Commit 771cc48e authored by 徐俊's avatar 徐俊

xujun

parent 3f8e27da
......@@ -194,8 +194,13 @@ export default {
this.$api.auditManager.getAuditListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data;
this.tableData = dataList;
this.pagination.total = total;
this.tableData = dataList.map(item => {
return {
...item,
projClassName: item.projClass === 1 ? "一般项目" : "重点项目",
}
})
this.tableData.forEach(e => {
e.startDate = moment(e.startDate).format('YYYY-MM-DD')
e.endDate = moment(e.endDate).format('YYYY-MM-DD')
......@@ -269,7 +274,21 @@ export default {
this.taskFileInfoView = true
},
exportData () {
this.$ToDoExcel(`项目审核列表`, tableColumnsName(this.columns), filterExportExcelData(this.columns, this.tableData))
let column = [
{ title: "项目名称", dataIndex: 'projName' },
//{ title: "项目编号", dataIndex: "projNo", align: 'center' },
{ title: '申请编号', dataIndex: 'appNo' },
{ title: "开始时间", dataIndex: "startDate" },
{ title: "结束时间", dataIndex: "endDate" },
{ title: "申报年度", dataIndex: "reportYear" },
{ title: "项目类别", dataIndex: 'projClassName' },
{ title: "项目资金(万元)", dataIndex: "govFunding" },
{ title: '申报单位', dataIndex: 'appUnitName' },
{ title: '申报学科', dataIndex: 'knowledgeName' },
{ title: '申报人', dataIndex: 'appPersonName' },
{ title: '审核状态', dataIndex: 'auditResultName' },
]
this.$ToDoExcel(`项目审核列表`, tableColumnsName(column), filterExportExcelData(column, this.tableData))
}
},
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment