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,8 +71,12 @@ export default { ...@@ -71,8 +71,12 @@ 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=""
} }
},
},
}, },
}, },
mounted() { mounted() {
......
...@@ -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 = "修改商品";
}); });
}, },
...@@ -273,8 +272,8 @@ export default { ...@@ -273,8 +272,8 @@ export default {
label: null, label: null,
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