qinzhipeng_v@didiglobal.com há 4 anos atrás
pai
commit
fa0b25280a
1 ficheiros alterados com 44 adições e 0 exclusões
  1. 44 0
      src/views/workbench/team/components/ganntViews.vue

+ 44 - 0
src/views/workbench/team/components/ganntViews.vue

@@ -19,6 +19,14 @@
         @change="radioChange"
       />
     </template>
+    <div class="member-list">
+      <div class="teamMember">优先级:</div>
+      <el-checkbox-group v-model="priorityList" @change="PrioritysChange_1">
+        <el-checkbox v-for="item in taskList" :key="item.value" :label="item.value">
+          <div class="check-point"> {{ item.label }} </div>
+        </el-checkbox>
+      </el-checkbox-group>
+    </div>
     <div v-loading="loading">
       <div v-if="ganttShow">
         <gantt-elastic :tasks="tasks" :options="options">
@@ -56,6 +64,7 @@ export default {
   },
   data() {
     return {
+      priorityList: [0, 1, 2, 3], // 优先级
       radio1: '按日程',
       timeSelectVal: [moment().format('YYYY.MM.DD'), moment().add(1, 'month').format('YYYY.MM.DD')], // 默认查询时间
       loading: false,
@@ -66,6 +75,12 @@ export default {
       tasks_personal: [], // 按成员task
       personal: false, // 按成员task
       options_personal: teamOptions, // // 按成员option
+      taskList: [
+        { value: 0, label: 'P0' },
+        { value: 1, label: 'P1' },
+        { value: 2, label: 'P2' },
+        { value: 3, label: 'P3' }
+      ],
       pickerOptions: {
         shortcuts: [{
           text: '最近一周',
@@ -113,6 +128,9 @@ export default {
           teamIds: this.searchForm.teamIds, // 团队id
           deptCodes: this.searchForm.deptCodes
         },
+        searchScheduleInfo: {
+          priorityList: this.priorityList
+        },
         timeInfo: {
           startTime: moment(this.timeSelectVal[0]).format('YYYY.MM.DD'),
           endTime: moment(this.timeSelectVal[1]).format('YYYY.MM.DD')
@@ -136,6 +154,10 @@ export default {
         }
       }
     },
+    PrioritysChange_1(val) { // 优先级变动
+      this.priorityList = val
+      this.radioChange()
+    },
     queryTeamIdleList(data) {
       const today = new Date()
       const colorlist = ['#A1DEFF', '#FAB5B5', '#BCED86', '#FFA87F', '#8E44AD', '#1EBC61', '#0287D0']
@@ -312,5 +334,27 @@ export default {
   .range-time {
     margin: 5px 30px 20px;
   }
+  .member-list {
+    display: flex;
+    .teamMember {
+      flex-shrink: 0;
+      font-size: 14px;
+      font-family: Microsoft Sans Serif;
+      font-weight: 400;
+      line-height: 22px;
+      color: #333333;
+      opacity: 1;
+      width: 100px;
+      margin: 0 10px 20px 5px;
+    }
+  }
 }
+.check-point {
+    display: flex;
+    align-items: center;
+    font-size: 14px;
+    font-family: PingFangSC-Regular;
+    line-height: 22px;
+    opacity: 1;
+  }
 </style>