Commit 1b6c0107 authored by wangxl's avatar wangxl

3333

parent e3666df6
...@@ -117,6 +117,19 @@ export default { ...@@ -117,6 +117,19 @@ export default {
{ title: '审核状态', dataIndex: 'auditResultName', align: 'center' }, { title: '审核状态', dataIndex: 'auditResultName', align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 120, }, { title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 120, },
], ],
excelCol: [
{ title: "项目名称", dataIndex: 'projName' },
{ 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' },
],
pagination: { pagination: {
pageIndex: 1, pageIndex: 1,
pageSize: this.$defaultPageSize, pageSize: this.$defaultPageSize,
...@@ -265,21 +278,23 @@ export default { ...@@ -265,21 +278,23 @@ export default {
this.disabledSubmit = value this.disabledSubmit = value
}, },
exportData () { exportData () {
let column = [ this.loading = true;
{ title: "项目名称", dataIndex: 'projName' }, let pars = isEmptyParams(this.searchForm);
//{ title: "项目编号", dataIndex: "projNo", align: 'center' }, let par = { ...pars, pageIndex: -1, pageSize: -1, }
{ title: '申请编号', dataIndex: 'appNo' }, this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
{ title: "开始时间", dataIndex: "startDate" }, if (data) {
{ title: "结束时间", dataIndex: "endDate" }, const { dataList = [], total = 0 } = data;
{ title: "申报年度", dataIndex: "reportYear" }, this.pagination.total = total;
{ title: "项目类别", dataIndex: 'projClassName' }, this.tableData = dataList
{ title: "项目资金(万元)", dataIndex: "govFunding" }, this.tableData.forEach(e => {
{ title: '申报单位', dataIndex: 'appUnitName' }, e.projClassName = e.projClass === "1" ? "一般项目" : "重点项目"
{ title: '申报学科', dataIndex: 'knowledgeName' }, e.startDate = moment(e.startDate).format('YYYY-MM-DD')
{ title: '申报人', dataIndex: 'appPersonName' }, e.endDate = moment(e.endDate).format('YYYY-MM-DD')
{ title: '审核状态', dataIndex: 'auditResultName' }, })
] this.$ToDoExcel(`项目审核列表`, tableColumnsName(this.excelCol), filterExportExcelData(this.excelCol, dataList))
this.$ToDoExcel(`项目审核列表`, tableColumnsName(column), filterExportExcelData(column, this.tableData)) this.loading = false
}
}).catch(() => { this.loading = false })
} }
}, },
}; };
......
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