From d9d43099040699b71e3e84138c12a768b1f2ef1e Mon Sep 17 00:00:00 2001 From: jianjun Date: Thu, 26 May 2022 18:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=88=86=E6=9E=90=E5=B9=B3?= =?UTF-8?q?=E5=8F=B0=E8=8F=9C=E5=8D=95=20=E5=86=8D=E4=BC=A0=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/modules/workPc/menu-add-or-update.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/epmet-oper-web/src/views/modules/workPc/menu-add-or-update.vue b/epmet-oper-web/src/views/modules/workPc/menu-add-or-update.vue index 46e512a..ad90292 100644 --- a/epmet-oper-web/src/views/modules/workPc/menu-add-or-update.vue +++ b/epmet-oper-web/src/views/modules/workPc/menu-add-or-update.vue @@ -144,7 +144,6 @@ export default { }, methods: { init () { - this.dataForm.tableName = this.tableName this.visible = true this.$nextTick(() => { this.$refs['dataForm'].resetFields() @@ -169,7 +168,7 @@ export default { }, // 获取信息 getInfo () { - this.$http.get(`/gov/access/menu/${this.dataForm.id}`).then(({ data: res }) => { + this.$http.get(`/gov/access/menu/${this.dataForm.id}?tableName=`+this.tableName).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) } @@ -217,6 +216,7 @@ export default { if (!valid) { return false } + this.dataForm.tableName = this.tableName; this.$http[!this.dataForm.id ? 'post' : 'put']('/gov/access/menu', this.dataForm).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg)