Przeglądaj źródła

试验室看板时间失效

wangxiaoyi 9 miesięcy temu
rodzic
commit
6c1c9aff82
1 zmienionych plików z 6 dodań i 5 usunięć
  1. 6 5
      src/views/statistics/index.vue

+ 6 - 5
src/views/statistics/index.vue

@@ -803,7 +803,8 @@
               return t2;
         },
         /* 查询统计配置中的完成率*/
-        getConfigData (end, allDept, filterDept) {
+        getConfigData (dataRange, allDept, filterDept) {
+          let end = JSON.parse(JSON.stringify(dataRange))
           let that = this
           end[2] = end[1]
           end[1] = this.getNextMonth(end[1])
@@ -867,7 +868,7 @@
             that.guanshenObj = response16.variables.data
             that.bufuheObj = response17.variables.data
             that.gaijinxiangObj = response18.variables.data
-            that.getzzzbNum()
+            that.getzzzbNum(end)
             that.zaigangrenyuanfb = fb.variables.data
             that.gangqianpeixunfb = fb1.variables.data
             that.neibuObjfb = fb2.variables.data
@@ -1058,11 +1059,11 @@
           
           
         // },
-        getzzzbNum(){
+        getzzzbNum(end){
           //生成月份
           let that = this
-          let d1 = this.endDate[0];
-          let d2 = this.endDate[2];
+          let d1 = end[0];
+          let d2 = end[2];
           let dateArry = new Array();
           let s1 = d1.split("-");
           let s2 = d2.split("-");