From 90f95e6c0b2e11f959727bf0dd454f28381e9bed Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 10 May 2025 14:03:41 +0800
Subject: [PATCH] feat:点击复核按钮提示框直接关闭处理

---
 src/views/tickets/ticket.vue |   25 ++++++++++++++-----------
 1 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index c6e7687..7d5192c 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -2406,11 +2406,11 @@
     reCheckConfirm (key) {
       const that = this
       if (key == 1) {
-        getReviewById(this.reCheckData.id).then(res => {
-          this.reCheckDialog = false
-          this.page.currentPage = 1
-          this.fetchTableData()
-          this.fetchTabCounts()
+        getReviewById(that.reCheckData.id).then(res => {
+          that.reCheckDialog = false
+          that.page.currentPage = 1
+          that.fetchTableData()
+          that.fetchTabCounts()
         })
       } else {
         const loading = ElLoading.service({
@@ -2419,6 +2419,11 @@
           background: 'rgba(0, 0, 0, 0.7)',
         })
 
+        function closeConfirm () {
+          that.reCheckDialog = false
+          loading.close()
+        }
+
         // 获取时间的接口
         getCreateEventJob(that.reCheckData.id).then(res => {
           ElMessageBox.confirm(`预计复核执行时间为${res.data.data}`, '提示', {
@@ -2426,14 +2431,12 @@
             showCancelButton: false, // 关键配置
             type: 'warning',
           }).then(() => {
-            this.reCheckDialog = false
-            this.page.currentPage = 1
-            this.fetchTableData()
-            this.fetchTabCounts()
+            closeConfirm()
+          }).catch(() => {
+            closeConfirm()
           })
         }).catch(() => {
-          this.reCheckDialog = false
-          loading.close()
+          closeConfirm()
         })
       }
     },

--
Gitblit v1.9.3