From 55a8f8b78c793f86e7bbdcf7d7990b7bf352eeca Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 8 Nov 2023 16:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=BD=93=E5=89=8D=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=A0=87=E7=AD=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../communityService/labelConfig/addForm.vue | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/views/modules/communityService/labelConfig/addForm.vue b/src/views/modules/communityService/labelConfig/addForm.vue index 0dc56d0d1..4d7580514 100644 --- a/src/views/modules/communityService/labelConfig/addForm.vue +++ b/src/views/modules/communityService/labelConfig/addForm.vue @@ -7,28 +7,29 @@ class="div_form" :rules="rules" > + - +

* 匹配数据

@@ -292,6 +293,7 @@ export default { methods: { async initForm(type, row) { this.formType = type; + if (type == "info") { await this.getFormEdit(row.tagId); } else if (type == "edit") { @@ -315,6 +317,7 @@ export default { this.tableData = [] this.handleClickAddRow(); this.addFormLabel = false + this.formType = "add"; } else { this.formType = "info"; } @@ -324,8 +327,9 @@ export default { }, 3000 * Math.random()); }, handelChangeTagName(val){ - if(this.formData.tagName.length == 0 && !this.addFormLabel){ - console.log('我在查看页面并且搜索框为空'); + if(this.formData.tagName.length == 0 ){ + this.formType = 'info' + this.tableData = [] this.addFormLabel = true } }, @@ -336,7 +340,7 @@ export default { }, async handleSelect(item) { console.log(item); - await this.initForm("info", item); + await this.initForm(item.editable?'edit':'info', item); }, async getLabelList() { const url = "/governance/resiSearchTag/listResiSearchTags";