Commit 4f03bb42 authored by wangxl's avatar wangxl

3333

parent ceabacbe
...@@ -58,6 +58,10 @@ ...@@ -58,6 +58,10 @@
<template slot="expertInfo" slot-scope="record"> <template slot="expertInfo" slot-scope="record">
<a-tag :color="record.expertType == 1 ? technology : finance">{{ record.expertType == 1 ? "技术专家" : "财务专家" }}</a-tag> <a-tag :color="record.expertType == 1 ? technology : finance">{{ record.expertType == 1 ? "技术专家" : "财务专家" }}</a-tag>
</template> </template>
<template slot="supportState" slot-scope="record">
<a-tag :color="'#87d068'" v-if="record.supportState==1"></a-tag>
<a-tag :color="'#f50'" v-if="record.supportState==0"></a-tag>
</template>
<template slot="option" slot-scope="record"> <template slot="option" slot-scope="record">
<a-popconfirm title="确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="recordClick(record,'del')"> <a-popconfirm title="确定要删除吗?" ok-text="确定" cancel-text="取消" @confirm="recordClick(record,'del')">
<a-button type="link" size="small">删除</a-button> <a-button type="link" size="small">删除</a-button>
...@@ -115,6 +119,7 @@ export default { ...@@ -115,6 +119,7 @@ export default {
// { title: '职称', dataIndex: 'titleName', align: 'center' }, // { title: '职称', dataIndex: 'titleName', align: 'center' },
// { title: '评审专业', scopedSlots: { customRender: 'spec' }, align: 'center' }, // { title: '评审专业', scopedSlots: { customRender: 'spec' }, align: 'center' },
{ title: '评分', dataIndex: 'totalScore', align: 'center', width: 60 }, { title: '评分', dataIndex: 'totalScore', align: 'center', width: 60 },
{ title: '是否推荐立项', scopedSlots: { customRender: 'supportState' }, align: 'center' },
{ title: '评审状态', scopedSlots: { customRender: 'expertEvaluation', colName: 'gradeScore' }, align: 'center' }, { title: '评审状态', scopedSlots: { customRender: 'expertEvaluation', colName: 'gradeScore' }, align: 'center' },
// { title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 120, }, // { title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 120, },
], ],
...@@ -242,6 +247,8 @@ export default { ...@@ -242,6 +247,8 @@ export default {
{ title: '专家单位', dataIndex: 'unitName' }, { title: '专家单位', dataIndex: 'unitName' },
{ title: '手机号', dataIndex: 'mobile' }, { title: '手机号', dataIndex: 'mobile' },
{ title: '评分', dataIndex: 'totalScore' }, { title: '评分', dataIndex: 'totalScore' },
{ title: '是否推荐立项', dataIndex: 'supportName' },
{ title: '不推荐原因', dataIndex: 'noSupportReason' },
{ title: '评审状态', dataIndex: 'stateName' }, { title: '评审状态', dataIndex: 'stateName' },
] ]
let pars = isEmptyParams(this.searchForm) let pars = isEmptyParams(this.searchForm)
...@@ -249,6 +256,17 @@ export default { ...@@ -249,6 +256,17 @@ export default {
this.$api.projectAssign.getListByPage(par).then(({ data = {} }) => { this.$api.projectAssign.getListByPage(par).then(({ data = {} }) => {
if (data) { if (data) {
const { dataList = [], total = 0 } = data const { dataList = [], total = 0 } = data
dataList.forEach(e => {
e.specNames = e.specList ? e.specList.map(x => x.specName).join(',') : ''
e.expertTypeName = e.expertType === 1 ? "技术专家" : "财务专家"
e.projClassName = e.projClass === 1 ? "一般项目" : "重点项目"
if (e.supportState != null) {
e.supportName = e.supportState == 1 ? '是' : '否'
} else {
e.supportName = ''
}
e.noSupportReason = e.supportState == 1 ? "" : e.noSupportReason != null ? e.noSupportReason : ""
})
this.$ToDoExcel(`项目分配列表`, tableColumnsName(column), filterExportExcelData(column, dataList)) this.$ToDoExcel(`项目分配列表`, tableColumnsName(column), filterExportExcelData(column, dataList))
dataList = [] dataList = []
} }
......
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