47 lines
1.5 KiB
Diff
47 lines
1.5 KiB
Diff
From 9c88fc94b1a0231527ab5af4c72db78a4b3adfc1 Mon Sep 17 00:00:00 2001
|
|
From: wkl505997900 <505997900@qq.com>
|
|
Date: Fri, 23 Dec 2022 15:30:54 +0800
|
|
Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E7=AC=AC=E5=85=AD=E6=AC=A1?=
|
|
=?UTF-8?q?=E4=BF=AE=E6=94=B9?=
|
|
MIME-Version: 1.0
|
|
Content-Type: text/plain; charset=UTF-8
|
|
Content-Transfer-Encoding: 8bit
|
|
|
|
---
|
|
src/views/leaks/LeakTaskDetail.vue | 12 ++++++++++++
|
|
1 file changed, 12 insertions(+)
|
|
|
|
diff --git a/src/views/leaks/LeakTaskDetail.vue b/src/views/leaks/LeakTaskDetail.vue
|
|
index c8f98db..2094efe 100644
|
|
--- a/src/views/leaks/LeakTaskDetail.vue
|
|
+++ b/src/views/leaks/LeakTaskDetail.vue
|
|
@@ -445,6 +445,17 @@ export default {
|
|
_this.progressLoading = false;
|
|
});
|
|
},
|
|
+ getVisible(statusMap) {
|
|
+ for (const key in statusMap) {
|
|
+ if (key === 'running') {
|
|
+ if (statusMap[key] === '1') {
|
|
+ return true
|
|
+ } else {
|
|
+ return false
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ },
|
|
prgressFinishedCheck(statusMap) {
|
|
for (const taskId in statusMap) {
|
|
if (statusMap[taskId]['running']) {
|
|
@@ -571,6 +582,7 @@ export default {
|
|
pageSize: pagination.pageSize,
|
|
total: res.total_count || (res.total_count === 0 ? 0 : pagination.total)
|
|
};
|
|
+ _this.reportvisible = !_this.hostRepostatusCheck(res.result)
|
|
if (_this.hostRepostatusCheck(res.result)) {
|
|
setTimeout(function() {
|
|
_this.getHostList();
|
|
--
|
|
Gitee
|
|
|