0109
This commit is contained in:
parent
fbfc4e7522
commit
34e968f849
|
@ -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;
|
||||
});
|
||||
})
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue