洪海涛 пре 4 година
родитељ
комит
4eaad6c873
2 измењених фајлова са 8 додато и 12 уклоњено
  1. 7 11
      src/components/Tag/TagSearch.vue
  2. 1 1
      src/views/projectManage/bugList/bugindex.vue

+ 7 - 11
src/components/Tag/TagSearch.vue

@@ -1,7 +1,7 @@
 <template>
   <el-select
     ref="select"
-    v-model="tagSelectValue"
+    :value="value"
     style="width: 100%"
     multiple
     remote
@@ -13,8 +13,8 @@
     @change="change"
   >
     <el-option
-      v-for="(item, itemIndex) in options"
-      :key="itemIndex"
+      v-for="item in options"
+      :key="item.id"
       :label="item.tag"
       :value="item.id"
     >
@@ -47,11 +47,7 @@ export default {
   },
   data() {
     return {
-      visible: false,
-      isAddTag: true,
-      options: [],
-      tagSelectValue: [],
-      tagValue: []
+      options: []
     }
   },
   mounted() {
@@ -60,9 +56,9 @@ export default {
     }, 700)
   },
   methods: {
-    change() {
-      this.$emit('input', this.tagSelectValue)
-      this.$emit('change', this.tagSelectValue)
+    change(value) {
+      this.$emit('input', value)
+      this.$emit('change', value)
     },
     remoteMethod(searchTag = '') {
       if (!this.$route.query.bizId) return

+ 1 - 1
src/views/projectManage/bugList/bugindex.vue

@@ -218,7 +218,7 @@
                     </div>
                     <div class="Layout searchItem">
                       <div class="queryName">标签</div>
-                      <TagSearch v-model="formInline.tagIdList" type="BUG" placeholder="请选择" @change="query_project(form_all)" />
+                      <TagSearch v-model="formInline.tagIdList" type="BUG" placeholder="请选择" />
                     </div>
                   </div>
                   <div align="right">