This commit is contained in:
曹辉 2023-01-29 14:20:49 +08:00
parent 24e3580d81
commit 28b2ee91b2

View File

@ -203,7 +203,6 @@
@change="change"
style="width: 340px"
:show-all-levels="false"
:clearable="true"
ref="cascader"
:placeholder="form.parentName ? form.parentName : ''"
>
@ -492,7 +491,6 @@ export default {
// }
this.form.parentName = this.queryParams.parentName;
this.form.categoryLevel = this.categoryLevel;
console.log(this.form);
},
/** 修改按钮操作 */
handleUpdate(row) {
@ -520,6 +518,10 @@ export default {
updatePicture(obj).then((res) => {});
}
this.$modal.msgSuccess("修改成功");
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
this.open = false;
this.getList();
this.info();
@ -527,6 +529,10 @@ export default {
} else {
addGoodsCategory(this.form).then((response) => {
this.$modal.msgSuccess("新增成功");
//
this.$refs.cascader.$refs.panel.clearCheckedNodes();
//
this.$refs.cascader.$refs.panel.activePath = [];
this.open = false;
this.getList();
this.info();