reedliuqing_i 5 vuotta sitten
vanhempi
sitoutus
fac4d893a5
1 muutettua tiedostoa jossa 4 lisäystä ja 5 poistoa
  1. 4 5
      src/views/workbench/team/index.vue

+ 4 - 5
src/views/workbench/team/index.vue

@@ -261,16 +261,15 @@ export default {
     radioChange(val) {
     radioChange(val) {
       if (val === '忙碌') {
       if (val === '忙碌') {
         this.queryTeamWorkList()
         this.queryTeamWorkList()
-      } else {
+      } else if (val === '空闲') {
         this.queryTeamIdleList()
         this.queryTeamIdleList()
       }
       }
       if (val === '今天') {
       if (val === '今天') {
-        // if (this.radio2TF) {
-        //   this.radio2 = ''
-        // }
         this.$refs.ganttHeader.recenterPosition()
         this.$refs.ganttHeader.recenterPosition()
-        // this.radio2TF = !this.radio2TF
       }
       }
+      this.changeDateLength(val)
+    },
+    changeDateLength(val) {
       if (val === '月') {
       if (val === '月') {
         this.$refs.ganttHeader.scale = 24
         this.$refs.ganttHeader.scale = 24
       }
       }