修改
This commit is contained in:
parent
8aafd9074c
commit
04eaeb3dd8
@ -203,7 +203,6 @@
|
||||
@change="change"
|
||||
style="width: 340px"
|
||||
:show-all-levels="false"
|
||||
:clearable="true"
|
||||
ref="cascader"
|
||||
:placeholder="form.parentName ? form.parentName : ''"
|
||||
>
|
||||
@ -520,6 +519,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 +530,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();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user