liuhj hace 5 días
padre
commit
33e1c5e7b7
Se han modificado 1 ficheros con 14 adiciones y 4 borrados
  1. 14 4
      src/components/OP/performanceanalysis.vue

+ 14 - 4
src/components/OP/performanceanalysis.vue

@@ -590,6 +590,10 @@ export default {
             // var new_year = this.months.getFullYear()
             // var month = this.months.getMonth();
             // var new_month = month + 1;
+            if (this.months == ''||this.months==null) {
+                this.$message.error('请选择月份!');
+                return
+            }
             var url = "/api/PersonnelModule/AiPerformanceAnalysis_UserList"
             var that = this
             this.$axios({
@@ -707,7 +711,7 @@ export default {
         },
         //下载
         FileDownAi(val) {
-            if (this.months == '') {
+            if (this.months == ''||this.months==null) {
                 this.$message.error('请选择月份!');
                 return
             }
@@ -725,7 +729,7 @@ export default {
         },
         //查看
         AiPerformanceAnalysis_Query(val) {
-            if (this.months == '') {
+            if (this.months == ''||this.months==null) {
                 this.$message.error('请选择月份!');
                 return
             }
@@ -1169,6 +1173,12 @@ export default {
         },
         //省外人员统一分析
          AiPerformanceAnalysis_otherProvincesEmployee() {
+            console.log(this.months);
+            
+            if (this.months == ''||this.months==null) {
+                this.$message.error('请选择月份!');
+                return
+            }
             this.performanLoading = true;
             var url = "/api/PersonnelModule/AiPerformanceAnalysis_otherProvincesEmployee?start=" + this.datetime(this.months[0]) + "&end=" + this.datetime(this.months[1])
             var that = this
@@ -1192,7 +1202,7 @@ export default {
         AiPerformanceAnalysis_GroupStatistics(val, text) {
             this.bumensb = val.depName;
             var Fixedpersonnelarr = ['文案专员', '总经理助理', '商邀文案'];
-            if (this.months == '') {
+            if (this.months == ''||this.months==null) {
                 this.$message.error('请选择月份!');
                 return
             }
@@ -1414,7 +1424,7 @@ export default {
         }
     },
     mounted() {
-        this.months = new Date();
+        // this.months = new Date();
         this.userId = JSON.parse(localStorage.getItem('userinif')).userInfo.userId;
         // this.AiPerformanceAnalysis_UserList();
     },