|
@ -237,8 +237,8 @@ async function exportAchievementDetail(ctx, dataList) { |
|
|
const { utils: { simpleExcelDown } } = ctx.app.fs; |
|
|
const { utils: { simpleExcelDown } } = ctx.app.fs; |
|
|
let exportData = [] |
|
|
let exportData = [] |
|
|
for (let { dataValues: item } of dataList) { |
|
|
for (let { dataValues: item } of dataList) { |
|
|
item.isApproval = JSON.stringify(item.isApproval) === 'null' ? '-' : item.isApproval ? '是' : '否'; |
|
|
//item.isApproval = JSON.stringify(item.isApproval) === 'null' ? '-' : item.isApproval ? '是' : '否';
|
|
|
item.reproducible = JSON.stringify(item.reproducible) === 'null' ? '-' : item.reproducible ? '是' : '否'; |
|
|
//item.reproducible = JSON.stringify(item.reproducible) === 'null' ? '-' : item.reproducible ? '是' : '否';
|
|
|
exportData.push(item) |
|
|
exportData.push(item) |
|
|
} |
|
|
} |
|
|
const fileName = `业绩明细表_${moment().format('YYYYMMDDHHmmss')}` + '.xlsx' |
|
|
const fileName = `业绩明细表_${moment().format('YYYYMMDDHHmmss')}` + '.xlsx' |
|
|