aops codes update
This commit is contained in:
parent
96253d1beb
commit
0ad6d317ee
136
0001-Fix-host-issues-and-batch-upload-host-issues.patch
Normal file
136
0001-Fix-host-issues-and-batch-upload-host-issues.patch
Normal file
@ -0,0 +1,136 @@
|
||||
From 6c76855ede6ab96aa26bc4b2cdf1aa57ccafc38f Mon Sep 17 00:00:00 2001
|
||||
From: wkl505997900 <2313665567@qq.com>
|
||||
Date: Fri, 28 Jul 2023 14:36:11 +0800
|
||||
Subject: [PATCH] Fix-host-issues-and-batch-upload-host-issues
|
||||
|
||||
---
|
||||
.npmrc | 1 -
|
||||
src/views/assests/HostManagement.vue | 3 +++
|
||||
src/views/assests/components/addMoreHost.vue | 1 +
|
||||
src/views/leaks/components/CvesTable.vue | 7 +++----
|
||||
vue.config.js | 10 +++++-----
|
||||
5 files changed, 12 insertions(+), 10 deletions(-)
|
||||
delete mode 100644 .npmrc
|
||||
|
||||
diff --git a/.npmrc b/.npmrc
|
||||
deleted file mode 100644
|
||||
index 03450f7..0000000
|
||||
--- a/.npmrc
|
||||
+++ /dev/null
|
||||
@@ -1 +0,0 @@
|
||||
-node-options="--openssl-legacy-provider"
|
||||
\ No newline at end of file
|
||||
diff --git a/src/views/assests/HostManagement.vue b/src/views/assests/HostManagement.vue
|
||||
index 5e7d1f9..6a02e80 100644
|
||||
--- a/src/views/assests/HostManagement.vue
|
||||
+++ b/src/views/assests/HostManagement.vue
|
||||
@@ -332,7 +332,10 @@ export default {
|
||||
} else {
|
||||
this.$message.success('删除成功');
|
||||
}
|
||||
+ _this.pagination.current = 1
|
||||
+ // 删除主机后重置当前分页为第一页
|
||||
_this.getHostList();
|
||||
+ // 重新请求主机列表
|
||||
if (isBash) {
|
||||
_this.selectedRowKeys = [];
|
||||
_this.selectedRowsAll = [];
|
||||
diff --git a/src/views/assests/components/addMoreHost.vue b/src/views/assests/components/addMoreHost.vue
|
||||
index 4cd9a65..717a7e8 100644
|
||||
--- a/src/views/assests/components/addMoreHost.vue
|
||||
+++ b/src/views/assests/components/addMoreHost.vue
|
||||
@@ -367,6 +367,7 @@ export default {
|
||||
tableParams.forEach((item) => {
|
||||
this.$set(item, 'host_name', String(item.host_name))
|
||||
item.management = Boolean(item.management)
|
||||
+ item.password = String(item.password)
|
||||
delete item.key;
|
||||
delete item.editable;
|
||||
delete item.result;
|
||||
diff --git a/src/views/leaks/components/CvesTable.vue b/src/views/leaks/components/CvesTable.vue
|
||||
index b29b03f..84c22c1 100644
|
||||
--- a/src/views/leaks/components/CvesTable.vue
|
||||
+++ b/src/views/leaks/components/CvesTable.vue
|
||||
@@ -102,7 +102,7 @@
|
||||
rowKey="cve_id"
|
||||
:columns="standalone ? tableColumnsStandalone : tableColumns"
|
||||
:data-source="standalone ? tableData : inputList"
|
||||
- :pagination="pagination.total === 0 ? false : pagination"
|
||||
+ :pagination="pagination.total === 0 ? false : (!standalone ? (paginationTotal === 0 ? false : pagination) : pagination)"
|
||||
:rowSelection="rowSelection"
|
||||
:expandIconAsCell="false"
|
||||
:expandIconColumnIndex="1"
|
||||
@@ -562,11 +562,11 @@ export default {
|
||||
})
|
||||
.then(function (res) {
|
||||
_this.cveAllList = res.data.result || [];
|
||||
- this.$emit('updataCveAllList', res.data.result || [])
|
||||
+ _this.$emit('updataCveAllList', res.data.result || [])
|
||||
// _this.cveAllListProp = res.data.result || [];
|
||||
})
|
||||
.catch(function (err) {
|
||||
- _this.$message.error(err.response.message);
|
||||
+ _this.$message.error(err.response);
|
||||
})
|
||||
.finally(function () {
|
||||
_this.cveAllIsLoading = false;
|
||||
@@ -621,7 +621,6 @@ export default {
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
- console.log(this.inputList)
|
||||
setTimeout(() => {
|
||||
this.getCvesAll();
|
||||
}, 500);
|
||||
diff --git a/vue.config.js b/vue.config.js
|
||||
index de4986a..db861b6 100644
|
||||
--- a/vue.config.js
|
||||
+++ b/vue.config.js
|
||||
@@ -137,7 +137,7 @@ const vueConfig = {
|
||||
},
|
||||
'/api/diag': {
|
||||
// target: serverMap.serverIpBase + ':11113',
|
||||
- target: serverMap.serveiIp1 + ':11113',
|
||||
+ target: serverMap.serveiIp2 + ':11113',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
@@ -146,7 +146,7 @@ const vueConfig = {
|
||||
},
|
||||
'/api/check': {
|
||||
// target: serverMap.serverIpBase + ':11112',
|
||||
- target: serverMap.serveiIp1 + ':11112',
|
||||
+ target: serverMap.serveiIp2 + ':11112',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
@@ -155,7 +155,7 @@ const vueConfig = {
|
||||
},
|
||||
'/api/vulnerability': {
|
||||
// target: serverMap.serverIpBase + ':11116',
|
||||
- target: serverMap.serveiIp1 + ':11116',
|
||||
+ target: serverMap.serveiIp2 + ':11116',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
@@ -164,7 +164,7 @@ const vueConfig = {
|
||||
},
|
||||
'/api/gala-spider': {
|
||||
// target: serverMap.serverIpBase + ':11115',
|
||||
- target: serverMap.serveiIp1 + ':11115',
|
||||
+ target: serverMap.serveiIp2 + ':11115',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
@@ -173,7 +173,7 @@ const vueConfig = {
|
||||
},
|
||||
'/api': {
|
||||
// target: serverMap.serverIpBase + ':11111',
|
||||
- target: serverMap.serveiIp1 + ':11111',
|
||||
+ target: serverMap.serveiIp2 + ':11111',
|
||||
ws: false,
|
||||
changeOrigin: true,
|
||||
pathRewrite: {
|
||||
--
|
||||
Gitee
|
||||
|
||||
@ -2,12 +2,13 @@
|
||||
|
||||
Name: aops-hermes
|
||||
Version: v1.2.2
|
||||
Release: 1
|
||||
Release: 2
|
||||
Summary: Web for an intelligent diagnose frame
|
||||
License: MulanPSL2
|
||||
URL: https://gitee.com/openeuler/%{name}
|
||||
Source0: %{name}-%{version}.tar.gz
|
||||
Source1: node_modules.tar.gz
|
||||
Patch0001: 0001-Fix-host-issues-and-batch-upload-host-issues.patch
|
||||
|
||||
|
||||
BuildRequires: nodejs node-gyp nodejs-yarn
|
||||
@ -19,14 +20,12 @@ Web for an intelligent diagnose frame
|
||||
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
%setup -T -D -a 1
|
||||
|
||||
|
||||
%build
|
||||
export NODE_OPTIONS=--openssl-legacy-provider
|
||||
ls ./.npmrc
|
||||
cat ./.npmrc
|
||||
yarn build
|
||||
|
||||
|
||||
@ -46,6 +45,11 @@ cp -r deploy/aops-hermes.service %{buildroot}/usr/lib/systemd/system/
|
||||
|
||||
|
||||
%changelog
|
||||
* Fri Jul 28 2023 wangkunlong<505997900@qq.com> - v1.2.2-2
|
||||
- Fixed an issue where deleting some hosts after bulk uploading resulted in incorrect display of the current host list
|
||||
- Fix an issue where a batch upload host failed due to field restrictions
|
||||
- Fixed the issue of incorrect display of host information after entering a part of the host list without CVE hosts
|
||||
|
||||
* Tue Jul 18 2023 wangkunlong<505997900@qq.com> - v1.2.2-1
|
||||
- Solved the problem of nodejs being unable to build successfully in the 23.03 environment on the master branch
|
||||
- Modify the front-end tab icon to the openeuler icon
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user