From e31a6c0eba7a8425bbfe065adca304271723771a Mon Sep 17 00:00:00 2001 From: wenxin Date: Sat, 24 Dec 2022 15:28:54 +0800 Subject: [PATCH] Fix the problem that the task report is not displayed after the repo-set task is completed --- ...bug-the-task-report-is-not-displayed.patch | 46 +++++++++++++++++++ aops-hermes.spec | 6 ++- 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644 0004-fix-bug-the-task-report-is-not-displayed.patch diff --git a/0004-fix-bug-the-task-report-is-not-displayed.patch b/0004-fix-bug-the-task-report-is-not-displayed.patch new file mode 100644 index 0000000..782e2c5 --- /dev/null +++ b/0004-fix-bug-the-task-report-is-not-displayed.patch @@ -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 + diff --git a/aops-hermes.spec b/aops-hermes.spec index 68f05e1..0420024 100644 --- a/aops-hermes.spec +++ b/aops-hermes.spec @@ -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 - 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 - v1.1.2-4 - Fix the bugs that are found