| | |
| | | }) |
| | | } |
| | | |
| | | |
| | | // url: '/evaluate/evaluateCandidate/page', |
| | | export const getFinallyResult = (params) => { |
| | | return request({ |
| | | // url: '/evaluate/evaluateTaskSet/page', |
| | | url: '/evaluate/evaluateCandidate/page', |
| | | method: 'get', |
| | | params: { |
| | |
| | | descs: 'vote_num' |
| | | } |
| | | }) |
| | | } |
| | | |
| | | export const getSectionFinallyResult = (params) => { |
| | | return request({ |
| | | url: '/evaluate/evaluateTaskSet/page', |
| | | method: 'get', |
| | | params: { |
| | | ...params, |
| | | descs: 'vote_num' |
| | | } |
| | | }) |
| | | } |
| | |
| | | import { reactive, watch, getCurrentInstance, ref } from 'vue'; |
| | | import { |
| | | getCandidateList, |
| | | getFinallyResult |
| | | getFinallyResult, |
| | | getSectionFinallyResult |
| | | } from '@/api/evaluate/evaluateTask' |
| | | import _ from 'lodash' |
| | | |
| | |
| | | title: '候选人状态', |
| | | prop: 'candidateState', |
| | | value: '', |
| | | width: '50%' |
| | | width: 'calc(100% / 3)' |
| | | }, |
| | | { |
| | | title: '评优评先状态', |
| | | prop: 'evaluateState', |
| | | value: '', |
| | | width: '50%' |
| | | width: 'calc(100% / 3)' |
| | | }, |
| | | { |
| | | title: '评优数量', |
| | | prop: 'evaluateNum', |
| | | value: '', |
| | | width: 'calc(100% / 3)' |
| | | }, |
| | | { |
| | | title: '候选人数量', |
| | |
| | | title: '评优评先状态', |
| | | prop: 'evaluateState', |
| | | value: '', |
| | | width: '100%' |
| | | width: '50%' |
| | | }, |
| | | { |
| | | title: '评优数量', |
| | | prop: 'evaluateNum', |
| | | value: '', |
| | | width: '50%' |
| | | }, |
| | | { |
| | | title: '评优人数量', |
| | |
| | | size: evaluateNum, |
| | | type: !type ? 2 : 1 |
| | | } |
| | | return getFinallyResult(params).then(res => { |
| | | return (!type ? getFinallyResult(params) : getSectionFinallyResult(params)).then(res => { |
| | | return res.data.data.records |
| | | }) |
| | | } |
| | |
| | | };
|
| | |
|
| | | getList(page.currentPage, page.pageSize, values).then(res => {
|
| | | console.log(res.data.data.records);
|
| | | const data = res.data.data;
|
| | | this.page.total = data.total;
|
| | | this.data = data.records;
|