| | |
| | | removeCandidate |
| | | } from '@/api/evaluate/evaluateTask' |
| | | |
| | | const dataSourceStatus = { |
| | | 0: '系统分配', |
| | | 1: '手动添加' |
| | | } |
| | | |
| | | const config = getCurrentInstance().appContext.config.globalProperties |
| | | |
| | | const $props = defineProps({ |
| | |
| | | prop: 'postName', |
| | | type: 'input', |
| | | disabled: true, |
| | | }, |
| | | { |
| | | label: '数据来源', |
| | | prop: 'dataSource', |
| | | type: 'input', |
| | | display: false, |
| | | formatter: (row) => { |
| | | console.log(dataSourceStatus[row.dataSource]); |
| | | return dataSourceStatus[row.dataSource] || '系统分配' |
| | | }, |
| | | } |
| | | ] |
| | | }) |
| | |
| | | addCandidate({ |
| | | evaluateTaskId: id, |
| | | evaluateTaskName: taskName, |
| | | ...row |
| | | ...row, |
| | | dataSource: 1 |
| | | }).then(res => { |
| | | ElMessage.success('新增候选人成功'); |
| | | onLoad(table.page); |
| | |
| | | }, |
| | | handleSubmit() { |
| | | this.$refs.addFormRef.validate(valid => { |
| | | this.addForm.evaluateState = 1 |
| | | this.params.type && (this.addForm.evaluateState = 1) |
| | | add(this.addForm).then( |
| | | () => { |
| | | this.$message({ |