From c4c8e7e74b784c1d5a719b60e8d0adefc005ae3e Mon Sep 17 00:00:00 2001 From: zhouwx <1175765986@qq.com> Date: 星期四, 28 八月 2025 10:16:57 +0800 Subject: [PATCH] 修改 --- src/views/safetyReview/expertManage/postEvaluation/components/expertList.vue | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/safetyReview/expertManage/postEvaluation/components/expertList.vue b/src/views/safetyReview/expertManage/postEvaluation/components/expertList.vue index c9c3b07..f9c5063 100644 --- a/src/views/safetyReview/expertManage/postEvaluation/components/expertList.vue +++ b/src/views/safetyReview/expertManage/postEvaluation/components/expertList.vue @@ -17,7 +17,7 @@ <el-table-column label="身份证号" align="center" prop="idCard" /> <el-table-column label="等级" align="center" prop="ratingLevel"> <template #default="scope"> - {{scope.row.ratingLevel == 1?'一级':scope.row.ratingLevel == 2?'二级':scope.row.ratingLevel == 3?'三级':'暂无'}} + {{scope.row.ratingLevel == 1 ?'一级':scope.row.ratingLevel == 1?'二级':scope.row.ratingLevel == 3?'三级':scope.row.ratingLevel == 10?'库外':''}} </template> </el-table-column> <el-table-column label="专业领域" align="center" prop="domain"/> @@ -143,7 +143,7 @@ const downloadFile = async (val) => { - const res = await getExpertEvaDetail({projectExpertId: val.id}); + const res = await getExpertEvaDetail({projectExpertId: val.id,expertType:val.expertType}); if(res.code == 200){ let outData = res.data outData.deptName = state.deptName @@ -151,12 +151,12 @@ outData.sex = val.sex == 0?'男':'女' outData.domain = val.domain outData.jobCategory = res.data.jobCategory?res.data.jobCategory.split(',').map(item=>{ return state.directionList.find(i=>i.value == item)?.label}):'暂无' - outData.professionalEthics = state.rateList.find(i=>i.value == res.data.professionalEthics)?.label - outData.impartialHonest = state.rateList.find(i=>i.value == res.data.impartialHonest)?.label - outData.comprehensiveCoordination = state.rateList.find(i=>i.value == res.data.comprehensiveCoordination)?.label - outData.professionalAbility = state.rateList.find(i=>i.value == res.data.professionalAbility)?.label - outData.expressingOpinions = state.rateList.find(i=>i.value == res.data.expressingOpinions)?.label - outData.comprehensiveEvaluation = state.rateList.find(i=>i.value == res.data.comprehensiveEvaluation)?.label + outData.professionalEthicsList = state.rateList.map(i => ({...i, checked: i.value !== res.data.professionalEthics})) + outData.impartialHonestList = state.rateList.map(i=> ({...i, checked: i.value !== res.data.impartialHonest})) + outData.comprehensiveCoordinationList = state.rateList.map(i=> ({...i, checked: i.value !== res.data.comprehensiveCoordination})) + outData.professionalAbilityList = state.rateList.map(i=> ({...i, checked: i.value !== res.data.professionalAbility})) + outData.expressingOpinionsList = state.rateList.map(i=> ({...i, checked: i.value !== res.data.expressingOpinions})) + outData.comprehensiveEvaluationList = state.rateList.map(i=> ({...i, checked: i.value !== res.data.comprehensiveEvaluation})) try { generateWordDocument('/evaluateFile.docx',outData, outData.name + '专家考评表.docx'); } catch (error){ -- Gitblit v1.9.2