From 8decea982ca7015fff0fa363355c1c578c37eb9b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 08 May 2025 18:20:41 +0800
Subject: [PATCH] 复核功能完善处理,增加loading
---
src/views/tickets/ticket.vue | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/views/tickets/ticket.vue b/src/views/tickets/ticket.vue
index 9267756..8517048 100644
--- a/src/views/tickets/ticket.vue
+++ b/src/views/tickets/ticket.vue
@@ -53,7 +53,8 @@
<el-button type="text" icon="el-icon-view" @click="handleViewDetail(row)">详情</el-button>
</template>
- <el-button v-if="row.status === 4" type="text" icon="el-icon-check" @click="reCheck(row)">复核</el-button>
+ <el-button v-if="row.status === 4 && row.isReview !== 1" type="text" icon="el-icon-check"
+ @click="reCheck(row)">复核</el-button>
</template>
<template #status="{ row }">
<span :style="getStatusTagType(row.status) ? 'color:' + getStatusTagType(row.status) : ''">
@@ -483,7 +484,7 @@
</template>
<script>
-import { ElMessageBox } from 'element-plus'
+import { ElMessageBox, ElLoading } from 'element-plus'
import { calculateDefaultRange } from '@/utils/util'
import { gcj02ToWgs84, wgs84ToGcj02 } from '@/utils/coordinateTransformation'
import {
@@ -2314,8 +2315,17 @@
this.fetchTabCounts()
})
} else {
+
+ const loading = ElLoading.service({
+ lock: true,
+ text: '复核任务创建中……',
+ background: 'rgba(0, 0, 0, 0.7)',
+ })
+
// 获取时间的接口
getCreateEventJob(that.reCheckData.id).then(res => {
+ loading.close()
+
ElMessageBox.confirm(`预计复核执行时间为${res.data.data}`, '提示', {
confirmButtonText: '确定',
showCancelButton: false, // 关键配置
--
Gitblit v1.9.3