| | |
| | | </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"> |
| | |
| | | return status[value] |
| | | }, |
| | | updateState(row, name) { |
| | | const text = (name === 'candidateState' ? '是否更改当前任务第一轮候选状态?' : '是否更改当前任务第二轮候选状态?') |
| | | const text = (name === 'candidateState' ? '是否提前结束第一轮评优?' : '是否提前结束评优任务?') |
| | | this.$confirm(text, { |
| | | confirmButtonText: '确定', |
| | | cancelButtonText: '取消', |
| | |
| | | } |
| | | 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); |
| | | } |
| | | }) |
| | | }) |
| | | } |