From ac6bf990779ca34e0ba0b6deb956d911bac23c25 Mon Sep 17 00:00:00 2001
From: Hu gang <18768366022@163.com>
Date: Wed, 17 Jan 2024 15:23:57 +0800
Subject: [PATCH] Modify the task description copy of the create hot patch
removal task
(cherry picked from commit 214f0223fa201e39c4b184c3ef634ae43548c8c6)
---
...of-the-create-hot-patch-removal-task.patch | 124 ++++++++++++++++++
aops-hermes.spec | 7 +-
2 files changed, 130 insertions(+), 1 deletion(-)
create mode 100644 010-modify-the-task-description-copy-of-the-create-hot-patch-removal-task.patch
diff --git a/010-modify-the-task-description-copy-of-the-create-hot-patch-removal-task.patch b/010-modify-the-task-description-copy-of-the-create-hot-patch-removal-task.patch
new file mode 100644
index 0000000..29fa9f8
--- /dev/null
+++ b/010-modify-the-task-description-copy-of-the-create-hot-patch-removal-task.patch
@@ -0,0 +1,124 @@
+From 33ba64d3fe7b96ad2a8d15d053e64f50401059f9 Mon Sep 17 00:00:00 2001
+From: Hu gang <18768366022@163.com>
+Date: Wed, 17 Jan 2024 14:49:13 +0800
+Subject: [PATCH] Modify the task description copy of the create hot patch removal task
+
+---
+ .../components/CreateRepairTaskDrawer.vue | 7 +++--
+ src/views/leaks/components/HostTable.vue | 31 ++++++++++---------
+ 2 files changed, 21 insertions(+), 17 deletions(-)
+
+diff --git a/src/views/leaks/components/CreateRepairTaskDrawer.vue b/src/views/leaks/components/CreateRepairTaskDrawer.vue
+index b7e4424..a9023da 100644
+--- a/src/views/leaks/components/CreateRepairTaskDrawer.vue
++++ b/src/views/leaks/components/CreateRepairTaskDrawer.vue
+@@ -241,7 +241,7 @@ const taskTypsbutton = {
+ 'cve fix': '生成修复任务',
+ 'repo set': '设置REPO',
+ 'cve rollback': '生成回滚任务',
+- 'hotpatch remove': '热补丁移除任务'
++ 'hotpatch remove': '热补丁移除'
+ };
+ const taskTypsEnum = {
+ 'cve fix': 'cve修复',
+@@ -486,7 +486,7 @@ export default {
+ if (this.taskType === 'cve fix') {
+ this.$message.info('至少需要选择一个CVE才能进行修复!');
+ } else {
+- this.$message.info('至少需要选择一个CVE才能进行回滚!');
++ this.$message.info('至少需要选择一个CVE才能进行移除!');
+ }
+ this.hostUnderCveLoading = false;
+ return true;
+@@ -515,6 +515,7 @@ export default {
+
+ // 每次展开抽屉时触发,替代mounted
+ handleOpen() {
++ console.log(111);
+ // inital defualt data
+ this.visible = true;
+ this.cveList = this.cveListProps;
+@@ -1060,7 +1061,7 @@ export default {
+ switch (this.taskType) {
+ case 'hotpatch remove':
+ this.taskNameDefault = '热补丁移除任务';
+- this.taskDescDefault = `移除以下${this.cveList.length}个CVE:${this.cveList
++ this.taskDescDefault = `移除以下${this.cveList.length}个CVE对应的热补丁:${this.cveList
+ .map((cve) => cve.cve_id)
+ .join('、')}`;
+ break;
+diff --git a/src/views/leaks/components/HostTable.vue b/src/views/leaks/components/HostTable.vue
+index 1546260..557c71e 100644
+--- a/src/views/leaks/components/HostTable.vue
++++ b/src/views/leaks/components/HostTable.vue
+@@ -79,43 +79,43 @@
+
+ 导出
+
+-
++
+
+
+-
++
+
+
+-
++
+
+
+-
++
+
+
+@@ -259,6 +259,9 @@ export default {
+ }
+ },
+ computed: {
++ isStandFixedSelected() {
++ return (standalone, fixed, selected) => !standalone && fixed && selected;
++ },
+ hostTableColumnsStandalone() {
+ let {filters} = this;
+ filters = filters || {};
+--
+2.33.0
+
diff --git a/aops-hermes.spec b/aops-hermes.spec
index 3d9b805..9f13fc3 100644
--- a/aops-hermes.spec
+++ b/aops-hermes.spec
@@ -2,7 +2,7 @@
Name: aops-hermes
Version: v1.4.0
-Release: 6
+Release: 7
Summary: Web for an intelligent diagnose frame
License: MulanPSL2
URL: https://gitee.com/openeuler/%{name}
@@ -17,6 +17,7 @@ Patch006: 006-host-status-adaption.patch
Patch007: 007-host-info-and-generate-task.patch
Patch008: 008-fix-diagnosis.patch
Patch009: 009-fix-hot-patch-prompts-are-only-executed-if-executed.patch
+Patch010: 010-modify-the-task-description-copy-of-the-create-hot-patch-removal-task.patch
BuildRequires: nodejs node-gyp nodejs-yarn
@@ -52,6 +53,10 @@ cp -r deploy/aops-hermes.service %{buildroot}/usr/lib/systemd/system/
%changelog
+* Wed Jan 17 2024 Hu gang<18768366022@163.com> - v1.4.0-7
+- Modify the task description copy of the create hot patch removal task
+- remove create rollback button in cve detail,add hotpatch button in cve detail
+
* Wed Dec 27 2023 Hu gang<18768366022@163.com> - v1.4.0-6
- Fix hot patch prompts are only executed ifexecuted