考勤记录导出需选部门和月份
This commit is contained in:
parent
1c625e08d5
commit
fadcc97f3e
|
@ -172,6 +172,12 @@ export default {
|
||||||
exportList(){
|
exportList(){
|
||||||
let that = this;
|
let that = this;
|
||||||
this.dLoading = true;
|
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 days = new Date(this.query.year, this.query.month , 0).getDate();
|
||||||
let weekList = ['姓名','星期'],daysList=['姓名','日期'],titleData = [];
|
let weekList = ['姓名','星期'],daysList=['姓名','日期'],titleData = [];
|
||||||
for(var i = 1;i<= days;i++){
|
for(var i = 1;i<= days;i++){
|
||||||
|
|
Loading…
Reference in New Issue