Commit 410430cc authored by 徐俊's avatar 徐俊

xujun

parent 232fd6fe
......@@ -33,6 +33,14 @@
<a-button type="link" size="small" v-if="!!record.auditState && record.auditState == 2" @click="recordClick(record,'eView')">查看</a-button>
<a-button type="link" size="small" v-if="isButten" @click="recordClick(record,'eva')">评分</a-button>
</template>
<template slot="evaluationType" slot-scope="record">
<a-tag :color="'#87d068'" v-if="record.evaluationType==1">{{ evaluationTypeA }}</a-tag>
<a-tag :color="'#2db7f5'" v-if="record.evaluationType==2">{{ evaluationTypeB }}</a-tag>
<a-tag :color="'#f50'" v-if="record.evaluationType==3">{{ evaluationTypeC }}</a-tag>
</template>
<template slot="supportState" slot-scope="record">
{{ record.supportState == 1 ? "是" : "否" }}
</template>
</a-table>
<a-pagination v-if="pagination.total > 0" :total="pagination.total" show-size-changer show-quick-jumper v-model="pagination.pageIndex" :page-size="pagination.pageSize" :page-size-options="pagination.pageSizeOptions" @showSizeChange="showSizeChange" @change="change" :showTotal="() => `共 ${pagination.total} 条`" />
<a-modal v-model="visibleEvaluationView" title="专家评分" width="90%" :dialog-style="{ top: '5%' }" :footer="null" destroyOnClose>
......@@ -55,7 +63,7 @@
<script>
import { getType } from '@/views/utils/auth'
import moment from 'moment'
import { isEmptyParams, filterExportExcelData, tableColumnsName } from '@/views/utils/common'
import { isEmptyParams, filterExportExcelData, tableColumnsName, getEvaluationType } from '@/views/utils/common'
import assignExpertView from '@/views/assign/components/assignExpertView'
import evaluationEdit from '@/views/evaluation/components/evaluationEdit'
import score from '@/views/evaluation/components/score'
......@@ -78,6 +86,8 @@ export default {
{ title: "项目名称", scopedSlots: { customRender: 'projectName', colName: 'projName' }, align: 'left' },
{ title: "项目类别", scopedSlots: { customRender: 'projClassInfo' }, align: 'center', width: 80 },
{ title: '评分', dataIndex: 'totalScore', align: 'center' },
{ title: '评审结果', scopedSlots: { customRender: 'evaluationType' }, align: 'center' },
{ title: '是否推荐立项支持', scopedSlots: { customRender: 'supportState' }, align: 'center' },
{ title: '评审状态', scopedSlots: { customRender: 'expertEvaluation', colName: 'gradeScore' }, align: 'center' },
{ title: '操作', scopedSlots: { customRender: 'option' }, align: 'center', fixed: 'right', width: 120, },
],
......@@ -104,6 +114,17 @@ export default {
totalFunding: 0.00,
}
},
computed: {
evaluationTypeA () {
return getEvaluationType(0)
},
evaluationTypeB () {
return getEvaluationType(1)
},
evaluationTypeC () {
return getEvaluationType(2)
},
},
created () {
this.getYear()
},
......@@ -213,7 +234,15 @@ export default {
},
previewFile () {
this.visibleStandard = true
}
},
DetermineType(totalScore) {
if (totalScore >= 80)
this.evaluationType = 1
else if (totalScore < 80 && totalScore >= 60)
this.evaluationType = 2
else
this.evaluationType = 3
},
}
};
</script>
\ No newline at end of file
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