cloud-ui
parent
8432ebc62d
commit
083fbc8394
|
@ -246,6 +246,7 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ruleAddFormFun(){
|
ruleAddFormFun(){
|
||||||
|
|
||||||
if (this.ruleAddForm.name === null || this.ruleAddForm.name.length === 0){
|
if (this.ruleAddForm.name === null || this.ruleAddForm.name.length === 0){
|
||||||
this.$message({
|
this.$message({
|
||||||
message: '规格名称不可为空',
|
message: '规格名称不可为空',
|
||||||
|
@ -260,7 +261,6 @@ export default {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
let ruleAttr = this.form.ruleAttrList.find(ruleAttr => ruleAttr.name === this.ruleAddForm.name);
|
let ruleAttr = this.form.ruleAttrList.find(ruleAttr => ruleAttr.name === this.ruleAddForm.name);
|
||||||
if (ruleAttr === undefined){
|
if (ruleAttr === undefined){
|
||||||
this.form.ruleAttrList.push({
|
this.form.ruleAttrList.push({
|
||||||
|
@ -337,6 +337,7 @@ export default {
|
||||||
const id = row.id || this.ids
|
const id = row.id || this.ids
|
||||||
getRule(id).then(response => {
|
getRule(id).then(response => {
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
|
this.form.ruleAttrList=response.data.ruleAttrList
|
||||||
this.open = true;
|
this.open = true;
|
||||||
this.title = "修改商品规格";
|
this.title = "修改商品规格";
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue