Parcourir la source

标签筛选项优化

洪海涛 il y a 4 ans
Parent
commit
22f7fd4c89

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

@@ -516,6 +516,7 @@ export default {
       this.$set(this.form_all, 'projectOwner', this.query_object.projectOwner)
       this.$set(this.form_all, 'bizType', '')
       this.$set(this.form_all, 'creater', '')
+      this.$set(this.form_all, 'tagIdList', [])
       this.$message({
         message: '已重置',
         type: 'success',

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

@@ -796,7 +796,8 @@ export default {
         rqmtProposer: '',
         sourceTypeList: [],
         isFromDpm: '',
-        date: []
+        date: [],
+        tagIdList: []
       }
       if (this.nowTab === 'charts') {
         this.searchForm = { ...this.searchForm, name: '', statusList: [] }

+ 1 - 1
src/views/projectManage/requirement/renderData/chartSearchForm.js

@@ -103,7 +103,7 @@ const data = [
     key: 'tagIdList',
     type: 'TagSearch',
     pageType: 'REQUIRE',
-    tyles: { marginBottom: '15px', width: '380px' },
+    styles: { marginBottom: '15px', width: '380px' },
     value: []
   }
 ]

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

@@ -923,7 +923,8 @@ export default {
         creater: '',
         isFromDpm: '',
         priority: '',
-        date: []
+        date: [],
+        tagIdList: []
       }
       if (this.nowTab === 'charts') {
         this.form_task = { ...this.form_task, name: '', statusList: [] }

+ 3 - 1
src/views/workbench/team/components/ganntViews.vue

@@ -151,7 +151,7 @@ export default {
           endTime: moment(this.timeSelectVal[1]).format('YYYY.MM.DD')
         },
         peoples: [
-          ...this.filtrate.checkedMembers
+          ...(this.filtrate.checkedMembers || [])
         ]
       }
       this.loading = true
@@ -177,6 +177,8 @@ export default {
       this.radioChange()
     },
     queryTeamIdleList(data) {
+      // 如果数据为空不执行
+      if (JSON.stringify(data) === '{}') return
       const today = new Date()
       const colorlist = ['#A1DEFF', '#FAB5B5', '#BCED86', '#FFA87F', '#8E44AD', '#1EBC61', '#0287D0']
       this.personal = false