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