Commit 2e61453e by lixiaomin

修改商品分类

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