From ac1391e1605f4a03cee03f3be2913b8e1997aa2e Mon Sep 17 00:00:00 2001
From: GuLiMmo <2820890765@qq.com>
Date: Fri, 19 Jan 2024 09:54:35 +0800
Subject: [PATCH] 样式调整

---
 src/views/evaluate/components/votingDetails.vue |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/src/views/evaluate/components/votingDetails.vue b/src/views/evaluate/components/votingDetails.vue
index 47340c3..9f71f35 100644
--- a/src/views/evaluate/components/votingDetails.vue
+++ b/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': {

--
Gitblit v1.9.3