From 9a79adea1add2dd85acd791460bcfc55692fd893 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Thu, 4 May 2023 09:45:18 +0800 Subject: [PATCH] =?UTF-8?q?#bug292=E5=B1=85=E6=B0=91=E6=A0=87=E7=AD=BE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/communityService/labelConfig/addForm.vue | 10 ++++++---- .../modules/communityService/labelConfig/index.vue | 6 +++--- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/views/modules/communityService/labelConfig/addForm.vue b/src/views/modules/communityService/labelConfig/addForm.vue index 44e611073..74b8578b7 100644 --- a/src/views/modules/communityService/labelConfig/addForm.vue +++ b/src/views/modules/communityService/labelConfig/addForm.vue @@ -313,8 +313,9 @@ export default { this.formType = type; if(type == 'info'){ this.infoType = true + }else if(type == 'edit'){ + await this.getFormEdit(row.tagId); } - await this.getFormEdit(row.tagId); this.tagId = row.tagId; this.tagObj = row for (let i in this.tableData) { @@ -587,8 +588,8 @@ export default { } }, async addSubmit() { - let url = ""; - let params = {}; + var url = ""; + var params = {}; if (this.formType == "edit") { url = "/governance/resiSearchTag/updateResiSearchTag"; params = { @@ -603,7 +604,8 @@ export default { rules: this.tableData, }; } - let { data, msg, code } = await requestPost(url, params); + console.log(url); + const { data, msg, code } = await requestPost(url, params); if (code == 0) { this.$message.success("操作成功"); this.$emit("dialogOk"); diff --git a/src/views/modules/communityService/labelConfig/index.vue b/src/views/modules/communityService/labelConfig/index.vue index b7c7c5ec0..3ee86c8ac 100644 --- a/src/views/modules/communityService/labelConfig/index.vue +++ b/src/views/modules/communityService/labelConfig/index.vue @@ -173,9 +173,9 @@ export default { if(type=="add"){ this.formTitle = '新增标签' this.formShow = true - // this.$nextTick(() => { - // this.$refs.Config_form.initForm(type, row) - // }) + this.$nextTick(() => { + this.$refs.Config_form.initForm(type, row) + }) }else { this.formTitle = '修改标签' this.formShow = true