Commit 730fd2e3 authored by 徐俊's avatar 徐俊

xujun

parent 6abe54e0
......@@ -13,6 +13,9 @@
<a-form-item>
<a-input placeholder="姓名" v-model="searchForm.personName" :maxLength="100" style="width: 180px" />
</a-form-item>
<a-form-item>
<para-select v-model="searchForm.talentCategory" :typeId="21" :width="150" />
</a-form-item>
<a-form-item>
<a-button type="primary" icon="search" @click="search">搜索</a-button>
<a-button icon="reload" style="margin-left: 10px" @click="reset" class="bt-normal">重置</a-button>
......@@ -57,11 +60,12 @@ import { isEmptyParams, filterExportExcelData, tableColumnsName } from "@/views/
import talentView from "@/views/report/talent/components/talentView"
import batchAudit from '@/views/audit/talent/batchAudit'
import audit from '@/views/audit/talent/audit'
import paraSelect from '@/views/components/common/paraSelect'
export default {
name: "talentAudit",
components: {
talentView, audit, batchAudit
talentView, audit, batchAudit, paraSelect
},
// dicts: ['PROJECT_STATUS', 'PARAMETER_TYPE', 'STATUS_TYPE'],
// mounted () {
......@@ -84,6 +88,7 @@ export default {
certId: null,
personName: null,
reportYear: null,
talentCategory: null
},
activekey: '1',
tabDate: [
......@@ -124,6 +129,18 @@ export default {
description: '',
id: null,
objectId: null,
excelCol: [
{ title: '申报年度', dataIndex: 'reportYear', align: 'center' },
{ title: '申报单位', dataIndex: 'appUnitName', align: 'center' },
{ title: "身份证号", dataIndex: 'certId', align: 'center' },
{ title: "姓名", dataIndex: 'personName', align: 'center' },
{ title: '性别', dataIndex: 'sex', align: 'center' },
{ title: '专业', dataIndex: 'professionName', align: 'center' },
{ title: '职称', dataIndex: 'titleName', align: 'center' },
{ title: '人才类型', dataIndex: 'talentCategoryName', align: 'center' },
{ title: '总经费', dataIndex: 'totalFunding', align: 'center' },
{ title: '审核状态', dataIndex: 'auditResultName', align: 'center' }
]
};
},
created () {
......@@ -236,7 +253,16 @@ export default {
this.getListByPage()
},
exportData () {
this.loading = true;
let pars = isEmptyParams(this.searchForm);
let par = { ...pars, pageIndex: -1, pageSize: -1, }
this.$api.audit.getAuditListByPage(par).then(({ data = {} }) => {
if (data) {
const { dataList = [], total = 0 } = data;
this.$ToDoExcel(`人才审核列表`, tableColumnsName(this.excelCol), filterExportExcelData(this.excelCol, dataList))
this.loading = false
}
}).catch(() => { this.loading = false })
},
}
};
......
......@@ -8,7 +8,7 @@
</a-tabs>
</div>
<div class="page-footer">
<a-button type="primary" @click="onTalentExport">导出</a-button>
<!-- <a-button type="primary" @click="onTalentExport">导出</a-button> -->
<talent-info v-model="formData" :tabsData.sync="tabsData" />
</div>
</a-spin>
......
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