wangggziwen 3 жил өмнө
parent
commit
52fbf33136

+ 22 - 1
ui/src/views/training/spec/seasonalfeedback/index.vue

@@ -805,7 +805,28 @@ export default {
       // 搜索条件默认为当年、当季度
       this.queryParams.feedbackYear = date.getFullYear().toString();
       this.queryParams.feedbackYearTemp = date.getFullYear().toString();
-      this.queryParams.feedbackSeason = ( ( date.getMonth() + 2 ) / 3 ).toString();
+      switch (date.getMonth() + 1) {
+        case 1:
+        case 2:
+        case 3:
+          this.queryParams.feedbackSeason = "1";
+          break;
+        case 4:
+        case 5:
+        case 6:
+          this.queryParams.feedbackSeason = "2";
+          break;
+        case 7:
+        case 8:
+        case 9:
+          this.queryParams.feedbackSeason = "3";
+          break;
+        case 10:
+        case 11:
+        case 12:
+          this.queryParams.feedbackSeason = "4";
+          break;
+      }
       // 获取当前用户id
       getStaffId().then(response => {
         this.staffId = response.data;