!21 Fix the problem that the task report is not displayed after the repo-set task is completed
From: @rabbitali Reviewed-by: @Lostwayzxc Signed-off-by: @Lostwayzxc
This commit is contained in:
commit
47c7170154
46
0004-fix-bug-the-task-report-is-not-displayed.patch
Normal file
46
0004-fix-bug-the-task-report-is-not-displayed.patch
Normal file
@ -0,0 +1,46 @@
|
||||
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
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
Name: aops-hermes
|
||||
Version: v1.1.2
|
||||
Release: 4
|
||||
Release: 5
|
||||
Summary: Web for an intelligent diagnose frame
|
||||
License: MulanPSL2
|
||||
URL: https://gitee.com/openeuler/%{name}
|
||||
@ -11,6 +11,7 @@ Source1: node-modules.tar.gz
|
||||
Patch0001: 0001-some-bugfix-for-diana-website.patch
|
||||
Patch0002: 0002-bugfix-alarm-number-not-update-synchronously.patch
|
||||
Patch0003: 0003-fix-bugs-that-are-found.patch
|
||||
Patch0004: 0004-fix-bug-the-task-report-is-not-displayed.patch
|
||||
|
||||
|
||||
BuildRequires: nodejs node-gyp nodejs-yarn
|
||||
@ -46,6 +47,9 @@ cp -r deploy/aops-hermes.service %{buildroot}/usr/lib/systemd/system/
|
||||
|
||||
|
||||
%changelog
|
||||
* Sat Dec 24 2022 wenxin<shusheng.wen@outlook.com> - v1.1.2-5
|
||||
- Fix the problem that the task report is not displayed after the repo-set task is completed
|
||||
|
||||
* Mon Dec 19 2022 wenxin<shusheng.wen@outlook.com> - v1.1.2-4
|
||||
- Fix the bugs that are found
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user