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";