| | |
| | | size |
| | | } |
| | | }) |
| | | } |
| | | |
| | | // export const getSectionFinallyResult = (params) => { |
| | | // return request({ |
| | | // url: '/evaluate/evaluateTaskSet/page', |
| | | // method: 'get', |
| | | // params: { |
| | | // ...params, |
| | | // descs: 'vote_num' |
| | | // } |
| | | // }) |
| | | // } |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getFinallyResult } from '@/api/evaluate/evaluateTask' |
| | | import { getFinallyResult, getFinallyTypeResult } from '@/api/evaluate/evaluateTask' |
| | | |
| | | export default { |
| | | inject: ['type'], |
| | |
| | | column: [ |
| | | { |
| | | label: '部门', |
| | | prop: 'user_name', |
| | | prop: 'dept_name', |
| | | type: 'input' |
| | | }, |
| | | { |
| | |
| | | ...this.query, |
| | | ...params |
| | | }; |
| | | getFinallyResult(page.currentPage, page.pageSize, id).then(res => { |
| | | !this.type() && getFinallyResult(page.currentPage, page.pageSize, id).then(res => { |
| | | const data = res.data.data; |
| | | this.data = data || []; |
| | | this.loading = false; |
| | | }); |
| | | this.type() && getFinallyTypeResult(page.currentPage, page.pageSize, { evaluateTaskId: id }).then(res => { |
| | | const data = res.data.data; |
| | | this.data = data.records || []; |
| | | this.page.total = data.total |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | view(result) { |
| | | const { category, resultList } = result |