From 2ff3f1f6c4f2baeae03818f94f52ac970a8d6049 Mon Sep 17 00:00:00 2001 From: MrZhai Date: Fri, 18 Mar 2022 11:04:36 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E4=BB=93=E5=BA=93=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=BC=96=E8=BE=91=E6=8F=90=E4=BA=A4=E5=90=8E=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E5=88=B7=E6=96=B0=E6=95=B0=E6=8D=AE=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/basic/invWarehouse.vue | 8 ++++---- src/views/thrsys/ThrInvWarehouse.vue | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) 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();