| | |
| | | getCandidateList, |
| | | getFinallyResult |
| | | } from '@/api/evaluate/evaluateTask' |
| | | import _ from 'lodash' |
| | | |
| | | const { findObject } = getCurrentInstance().appContext.config.globalProperties; |
| | | |
| | |
| | | prop: 'evaluateState', |
| | | value: '', |
| | | width: '50%' |
| | | }, |
| | | { |
| | | title: '候选人数量', |
| | | prop: 'candidateNum', |
| | | value: '', |
| | | width: '100%' |
| | | }, |
| | | { |
| | | title: '候选结果', |
| | |
| | | { |
| | | title: '评优评先状态', |
| | | prop: 'evaluateState', |
| | | value: '', |
| | | width: '100%' |
| | | }, |
| | | { |
| | | title: '评优人数量', |
| | | prop: 'candidateNum', |
| | | value: '', |
| | | width: '100%' |
| | | }, |
| | |
| | | obj.evaluateState = data[item.prop] |
| | | } |
| | | } |
| | | |
| | | if (item.prop === 'candidateNum') { |
| | | const candidateNumStrArr = [] |
| | | const { candidateNum } = _.cloneDeep(data) |
| | | candidateNum.forEach(item => { |
| | | const userList = [] |
| | | item.users.forEach(user => { |
| | | userList.push(user.name) |
| | | }) |
| | | candidateNumStrArr.push(`${item.deptName}(${item.users.length}人):${userList.join('、')}`) |
| | | }) |
| | | item.value = candidateNumStrArr.join('\n') |
| | | } |
| | | |
| | | if (item.prop === 'candidateResult') { |
| | | const res = await candidateList() |