考勤记录导出需选部门和月份

This commit is contained in:
caoqianming 2023-02-02 19:03:14 +08:00
parent 1c625e08d5
commit fadcc97f3e
1 changed files with 6 additions and 0 deletions

View File

@ -172,6 +172,12 @@ export default {
exportList(){
let that = this;
this.dLoading = true;
if(this.query.employee__belong_dept && this.query.year && this.query.month){
}else{
this.$message.warning("请选择部门和月份后导出")
this.dLoading = false;
}
let days = new Date(this.query.year, this.query.month , 0).getDate();
let weekList = ['姓名','星期'],daysList=['姓名','日期'],titleData = [];
for(var i = 1;i<= days;i++){