diff --git a/src/views/basic/invWarehouse.vue b/src/views/basic/invWarehouse.vue index 204fc9c..bd564a6 100644 --- a/src/views/basic/invWarehouse.vue +++ b/src/views/basic/invWarehouse.vue @@ -575,10 +575,10 @@ export default { } } } else { - const parent = this.node.parent; - const children = parent.data.children || parent.data; - const index = children.findIndex((d) => d.id === data.id); - children.splice(index, 1, data); + // const parent = this.node.parent; + // const children = parent.data.children || parent.data; + // const index = children.findIndex((d) => d.id === data.id); + // children.splice(index, 1, data); } // 刷新表单 this.resetForm(); diff --git a/src/views/thrsys/ThrInvWarehouse.vue b/src/views/thrsys/ThrInvWarehouse.vue index 39c2402..7e8cd68 100644 --- a/src/views/thrsys/ThrInvWarehouse.vue +++ b/src/views/thrsys/ThrInvWarehouse.vue @@ -430,6 +430,7 @@ export default { return false; } this.$message.success("操作成功"); + this.formVisible = false; if (this.formName !== "edit") { if (response.data && response.data.id) { @@ -444,10 +445,10 @@ export default { } } } else { - const parent = this.node.parent; - const children = parent.data.children || parent.data; - const index = children.findIndex((d) => d.id === data.id); - children.splice(index, 1, data); + // const parent = this.node.parent; + // const children = parent.data.children || parent.data; + // const index = children.findIndex((d) => d.id === data.id); + // children.splice(index, 1, data); } // 刷新表单 this.resetForm();