cloud-ui
刘河平 2024-11-14 17:06:55 +08:00
parent 8432ebc62d
commit 083fbc8394
1 changed files with 2 additions and 1 deletions

View File

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