This commit is contained in:
曹辉 2023-01-29 13:49:46 +08:00
parent cb218f72af
commit a48e243e44
2 changed files with 15 additions and 5 deletions

View File

@ -151,7 +151,7 @@ export default {
}
}))
});
}, 1000);
}, 300);
},
},
ruleForm: [],
@ -267,7 +267,6 @@ export default {
this.$refs.cascader.$refs.panel.clearCheckedNodes();
// 设置为空可以让节点不高亮显示
this.$refs.cascader.$refs.panel.activePath = [];
},
//页面所属护理站
ParamsStation(item) {

View File

@ -184,7 +184,13 @@
</el-row>
<!-- 添加或修改商品分类信息对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog
:title="title"
:visible.sync="open"
width="500px"
append-to-body
:before-close="cancel"
>
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-form-item
label="父级分类名称"
@ -293,7 +299,7 @@ export default {
})
);
});
}, 1000);
}, 300);
},
},
imgone: "",
@ -420,7 +426,12 @@ export default {
},
//
cancel() {
console.log(this.form);
if (this.form.parentId) {
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
}
var obj = { pictureUrlList: [] };
if (this.imgone != this.form.goodsCategoryPicture) {
obj.pictureUrlList.push(this.form.goodsCategoryPicture);