Commit bd28c3bd by lixiaomin

修改商品管理

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