This commit is contained in:
shijing 2023-01-09 13:51:35 +08:00
parent fbfc4e7522
commit 34e968f849
1 changed files with 4 additions and 2 deletions

View File

@ -171,6 +171,7 @@ export default {
},
exportList(){
let that = this;
this.dLoading = true;
let days = new Date(this.query.year, this.query.month , 0).getDate();
let weekList = ['姓名','星期'],daysList=['姓名','日期'],titleData = [];
for(var i = 1;i<= days;i++){
@ -194,8 +195,8 @@ export default {
promiseList.push(that.getOneData(item.id))
})
Promise.all(promiseList).then(res=> {
debugger;
console.log(res)
// debugger;
// console.log(res)
that.userList.forEach ((item,index)=> {
let recordList = res[index];
rowData1 = [
@ -250,6 +251,7 @@ export default {
ws['!cols'] = closList;
XLSX2.utils.book_append_sheet(wb, ws, chartName); // 簿
XLSX2.writeFile(wb, chartName+'.xlsx'); //
that.dLoading = false;
});
})
},