From 9bd66f1fd693477483eeda188956ff74b5a1842e Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 15 May 2025 19:15:20 +0800
Subject: [PATCH] 事件工单复核功能显示优化

---
 src/views/tickets/ticket.vue |   16 ++++++++++------
 1 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 6a355cf..e3b0b52 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -453,8 +453,7 @@
               :preview-src-list="getImageList()" :initial-index="currentImageIndex - 1" class="preview-image"
               style="cursor: pointer"> -->
             <el-image v-if="currentReviewImage" :src="getPreviewUrl(currentReviewImage)" fit="fill"
-              :initial-index="currentImageIndex - 1" class="preview-image"
-              style="cursor: pointer">
+              :initial-index="currentImageIndex - 1" class="preview-image" style="cursor: pointer">
               <template #error>
                 <div class="image-error">
                   <i class="el-icon-picture-outline"></i>
@@ -869,10 +868,10 @@
     formattedDetailFields () {
       const fields = [
         { label: '工单名称', value: this.currentDetail.orderName },
-        { 
-          label: '工单类型', 
+        {
+          label: '工单类型',
           // 修改这里:使用 types 数组查找对应的 label
-          value: this.types.find(t => t.value === this.currentDetail.type)?.label || this.currentDetail.type || '/' 
+          value: this.types.find(t => t.value === this.currentDetail.type)?.label || this.currentDetail.type || '/'
         },
         { label: '关联任务', value: this.currentDetail.job_name || '/' },
         { label: '任务发起人', value: this.currentDetail.creator },
@@ -2436,6 +2435,9 @@
 
         function closeConfirm () {
           that.reCheckDialog = false
+          that.page.currentPage = 1
+          that.fetchTableData()
+          that.fetchTabCounts()
           loading.close()
         }
 
@@ -2444,6 +2446,8 @@
           ElMessageBox.confirm(`预计复核执行时间为${res.data.data}`, '提示', {
             confirmButtonText: '确定',
             showCancelButton: false, // 关键配置
+            closeOnClickModal: false,
+            closeOnPressEscape: false,
             type: 'warning',
           }).then(() => {
             closeConfirm()
@@ -2979,7 +2983,7 @@
   :deep(.el-dialog__body) {
     padding: 0;
     background-color: #f5f7fa;
-    
+
   }
 }
 

--
Gitblit v1.9.3