Commit bd28c3bd by lixiaomin

修改商品管理

parent 62cb9e7d
...@@ -28,12 +28,18 @@ export default { ...@@ -28,12 +28,18 @@ export default {
}, },
data() { data() {
return { return {
selectValue: this.value, selectValue:'',
options: [] options: []
}; };
}, },
watch: {
value(newName, oldName) {
this.selectValue=newName;
}
},
created() { created() {
this.getList(); this.getList();
this.selectValue=this.value;
}, },
methods: { methods: {
/** 查询列表 */ /** 查询列表 */
......
...@@ -71,7 +71,11 @@ export default { ...@@ -71,7 +71,11 @@ export default {
const newValue = JSON.parse(JSON.stringify(value)); const newValue = JSON.parse(JSON.stringify(value));
this.ids = newValue this.ids = newValue
this.specNames = newValue.map((item) => item.name).join(" "); this.specNames = newValue.map((item) => item.name).join(" ");
}else{
this.ids = [];
this.specNames=""
} }
}, },
}, },
}, },
......
...@@ -260,7 +260,6 @@ export default { ...@@ -260,7 +260,6 @@ export default {
this.goodsTagList=data.goodsTagList; this.goodsTagList=data.goodsTagList;
this.form = data; this.form = data;
this.open = true; this.open = true;
this.title = "修改商品"; this.title = "修改商品";
}); });
}, },
...@@ -274,7 +273,7 @@ export default { ...@@ -274,7 +273,7 @@ export default {
desc: null, desc: null,
remark: null remark: null
}; };
this.resetForm("form"); //this.resetForm("form");
}, },
/** 提交按钮 */ /** 提交按钮 */
submitForm() { submitForm() {
......
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