| | |
| | | <template> |
| | | <el-dialog v-model="props.params.visible" title="添加考核人" @close="dialogClose"> |
| | | <el-dialog v-model="props.params.visible" title="添加候选人" @close="dialogClose"> |
| | | <div style="margin-bottom: 20px;" v-if="!form.deptId"> |
| | | <el-alert title="请先选择部门信息" type="warning" /> |
| | | </div> |
| | |
| | | prop: 'deptName', |
| | | type: 'input' |
| | | }, |
| | | // { |
| | | // label: '票数', |
| | | // prop: 'voteNum', |
| | | // type: 'input' |
| | | // } |
| | | { |
| | | label: '票数', |
| | | prop: 'voteNum', |
| | | type: 'input' |
| | | } |
| | | ] |
| | | }, |
| | | dialogParams: { |
| | |
| | | }); |
| | | }, |
| | | sendBack(row) { |
| | | const { candidateState, evaluateState } = this.params.data |
| | | if (candidateState === 2 && evaluateState !== 2) { |
| | | return this.$message.warning('第一轮评优已结束无法驳回当前记录') |
| | | } |
| | | if (evaluateState === 2 && candidateState === 2) { |
| | | return this.$message.warning('当前评优任务已结束无法驳回当前记录') |
| | | } |
| | | this.$confirm('是否驳回当前投票记录?', { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | </template> |
| | | <template #evaluateState="{ row }"> |
| | | <div v-if="row.evaluateState !== 1">{{ setStatus(row.evaluateState) }}</div> |
| | | <el-button v-else :disabled="row.evaluateState !== 1" text type="success" icon="el-icon-edit" @click="updateState(row, 'evaluateState')">{{ |
| | | setStatus(row.evaluateState) }}</el-button> |
| | | <el-button v-else :disabled="row.evaluateState !== 1" text type="success" icon="el-icon-edit" |
| | | @click="updateState(row, 'evaluateState')">{{ |
| | | setStatus(row.evaluateState) }}</el-button> |
| | | </template> |
| | | <template #candidateCutoffTimeEnd="{ row }"> |
| | | <div class="time-box"> |
| | |
| | | } |
| | | name === 'candidateState' ? Object.assign(params, { candidateState: 2 }) : Object.assign(params, { evaluateState: 2 }) |
| | | update(params).then(res => { |
| | | if (res.code === 200) { |
| | | if (res.data.code !== 200) return this.$message.error(res.data.msg) |
| | | this.$message({ |
| | | type: 'success', |
| | | message: '操作成功!', |
| | | }); |
| | | this.onLoad(this.page); |
| | | } |
| | | }) |
| | | }) |
| | | } |