Commit e99c26ef by lixiaomin

修改优惠券类别

parent 2f31f999
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
<el-form-item label="类别名" prop="name"> <el-form-item label="类别名" prop="name">
<el-input v-model="form.name" placeholder="请输入类别名" minlength="1" maxlength="7"/> <el-input v-model="form.name" placeholder="请输入类别名" minlength="1" maxlength="7"/>
</el-form-item> </el-form-item>
<el-form-item label="类别" prop="type"> <el-form-item label="折扣类别" prop="type">
<el-radio-group v-model="form.type"> <el-radio-group v-model="form.type">
<el-radio :label="1">抵扣</el-radio> <el-radio :label="1">抵扣</el-radio>
<el-radio :label="2">折扣</el-radio> <el-radio :label="2">折扣</el-radio>
...@@ -119,7 +119,7 @@ export default { ...@@ -119,7 +119,7 @@ export default {
// 表单校验 // 表单校验
rules: { rules: {
name: [{ required: true, message: "不能为空", trigger: "blur" }], name: [{ required: true, message: "不能为空", trigger: "blur" }],
type: [{ required: true, message: "不能为空", trigger: "blur" }], type: [{ required: true, message: "不能为空", trigger: "change" }],
desc: [{ required: true, message: "不能为空", trigger: "blur" }] desc: [{ required: true, message: "不能为空", trigger: "blur" }]
}, },
options: [{ options: [{
...@@ -159,7 +159,6 @@ export default { ...@@ -159,7 +159,6 @@ export default {
}).catch(() => { }).catch(() => {
}); });
this.reset();
}, },
// 表单重置 // 表单重置
reset() { reset() {
...@@ -186,6 +185,7 @@ export default { ...@@ -186,6 +185,7 @@ export default {
handleAdd() { handleAdd() {
this.open = true; this.open = true;
this.title = "新增类别"; this.title = "新增类别";
this.reset();
}, },
/** 上线、下线按钮操作 */ /** 上线、下线按钮操作 */
handleStatus(row,tag) { handleStatus(row,tag) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment