Commit 2e61453e by lixiaomin

修改商品分类

parent f557328b
...@@ -9,8 +9,8 @@ ...@@ -9,8 +9,8 @@
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="12"> <el-col :span="12">
<el-form-item label="分类" prop="category"> <el-form-item label="分类" prop="categoryIds">
<SelectCategory v-model="form.category" :multiple="multiple" :collapseTags="collapseTags"/> <SelectCategory v-model="form.categoryIds" :multiple="multiple" :collapseTags="collapseTags"/>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
...@@ -205,12 +205,13 @@ export default { ...@@ -205,12 +205,13 @@ export default {
form: { form: {
pics: {}, pics: {},
spec: [], spec: [],
categoryIds:[],
}, },
open: false, open: false,
// 表单校验 // 表单校验
rules: { rules: {
name: [{ required: true, message: "不能为空", trigger: "blur" }], name: [{ required: true, message: "不能为空", trigger: "blur" }],
category: [{required: true, message: "不能为空", trigger: "blur" }], categoryIds: [{required: true, message: "不能为空", trigger: "blur" }],
spec: [{required: true, message: "不能为空", trigger: "blur" }], spec: [{required: true, message: "不能为空", trigger: "blur" }],
takeTime: [{required: true, message: "不能为空", trigger: "blur" }], takeTime: [{required: true, message: "不能为空", trigger: "blur" }],
discount: [{required: true,validator: validateDiscount, trigger: "blur" }], discount: [{required: true,validator: validateDiscount, trigger: "blur" }],
......
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