Browse Source

tagIdList

洪海涛 4 years ago
parent
commit
a3c14c3bc5

+ 4 - 6
src/components/Tag/TagSearch.vue

@@ -15,10 +15,10 @@
     <el-option
       v-for="(item, itemIndex) in options"
       :key="itemIndex"
-      :label="item"
-      :value="item"
+      :label="item.tag"
+      :value="item.id"
     >
-      {{ item }}
+      {{ item.tag }}
     </el-option>
   </el-select>
 </template>
@@ -60,8 +60,6 @@ export default {
   },
   methods: {
     change() {
-      this.tagSelectValue = Array.from(new Set(this.tagSelectValue))
-      this.options = Array.from(new Set([...this.options, ...this.tagSelectValue]))
       this.$emit('input', this.tagSelectValue)
       this.$emit('change', this.tagSelectValue)
     },
@@ -74,7 +72,7 @@ export default {
         bizId: bizId_id
       }).then(res => {
         if (res.code === 200) {
-          this.options = res.data.map(elm => elm.tag)
+          this.options = res.data.map(elm => elm)
         }
       })
     }

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

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

+ 1 - 1
src/views/projectManage/onlineproblem/component/header/searchData.js

@@ -80,7 +80,7 @@ const data = {
     },
     {
       name: '标签',
-      key: 'tags',
+      key: 'tagIdList',
       type: 'TagSearch',
       pageType: 'ONLINE_PROBLEM',
       placeholder: '请选择标签',

+ 1 - 1
src/views/projectManage/projectList/projectIndex.vue

@@ -47,7 +47,7 @@
             </div>
             <div class="Layout">
               <div class="queryName marginLeft">标签</div>
-              <TagSearch v-model="form_all.tags" type="PROEJCT" placeholder="请选择" @change="query_project(form_all)" />
+              <TagSearch v-model="form_all.tagIdList" type="PROEJCT" placeholder="请选择" @change="query_project(form_all)" />
             </div>
           </el-form>
         </div>

+ 1 - 1
src/views/projectManage/requirement/list/index.vue

@@ -151,7 +151,7 @@
             <el-form :model="searchForm" class="flex_start el-from-spacing">
               <div class="Layout item">
                 <div class="queryName">标签</div>
-                <TagSearch v-model="searchForm.tags" type="REQUIRE" placeholder="请选择" />
+                <TagSearch v-model="searchForm.tagIdList" type="REQUIRE" placeholder="请选择" />
               </div>
             </el-form>
             <div v-if="DemandStatus === true" style="color:#409EFF; cursor: pointer; margin-top: 15px;" @click="DemandSta"><i class="el-icon-circle-plus-outline" /> 添加需求状态停留时长条件</div>

+ 1 - 1
src/views/projectManage/taskList/taskIndex.vue

@@ -274,7 +274,7 @@
                 </div>
                 <div class="Layout item">
                   <div class="queryName">标签</div>
-                  <TagSearch v-model="form_task.tags" type="TASK" placeholder="请选择" />
+                  <TagSearch v-model="form_task.tagIdList" type="TASK" placeholder="请选择" />
                 </div>
               </el-form>
             </div>