| | |
| | | </el-radio-group> |
| | | </template> |
| | | <template #menu="{ row }"> |
| | | <el-button type="warning" icon="el-icon-info-filled" text @click="sendBack(row)">驳回</el-button> |
| | | <el-button type="warning" icon="el-icon-info-filled" text @click="sendBack(row)"> |
| | | 驳回 |
| | | </el-button> |
| | | </template> |
| | | </avue-crud> |
| | | </el-dialog> |
| | |
| | | }, |
| | | sendBack(row) { |
| | | const { candidateState, evaluateState } = this.params.data |
| | | if (candidateState === 2 && evaluateState !== 2) { |
| | | if (candidateState === 2 && this.selectedRoundValue === 0) { |
| | | return this.$message.warning('第一轮评优已结束无法驳回当前记录') |
| | | } |
| | | if (evaluateState === 2 && candidateState === 2) { |
| | | if (evaluateState === 2 && this.selectedRoundValue === 1) { |
| | | return this.$message.warning('当前评优任务已结束无法驳回当前记录') |
| | | } |
| | | this.$confirm('是否驳回当前投票记录?', { |
| | |
| | | selectedChange(value) { |
| | | this.onLoad(this.page); |
| | | }, |
| | | dialogOpen() {} |
| | | dialogOpen() { } |
| | | }, |
| | | watch: { |
| | | 'params.visible': { |