GuLiMmo
2024-01-19 ac1391e1605f4a03cee03f3be2913b8e1997aa2e
src/views/evaluate/components/votingDetails.vue
@@ -11,7 +11,9 @@
                </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>
@@ -192,10 +194,10 @@
        },
        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('是否驳回当前投票记录?', {
@@ -216,7 +218,7 @@
        selectedChange(value) {
            this.onLoad(this.page);
        },
        dialogOpen() {}
        dialogOpen() { }
    },
    watch: {
        'params.visible': {