fix: add task detail search input limit
(cherry picked from commit 0a9b596bb99fc66f86d9c636dd5b95ad44521ccc)
This commit is contained in:
parent
4aa75ab858
commit
5da05c633e
41
005-add-input-text-limit.patch
Normal file
41
005-add-input-text-limit.patch
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
From 36d6d8345ad7dc158f842d0cad7b5e9810b6e121 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Hu gang <18768366022@163.com>
|
||||||
|
Date: Tue, 19 Dec 2023 11:20:33 +0800
|
||||||
|
Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9AInaddnput=20box=20text=20limit?=
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
---
|
||||||
|
src/vendor/ant-design-pro/utils/request.js | 3 +++
|
||||||
|
src/views/leaks/LeakTaskDetail.vue | 1 +
|
||||||
|
2 files changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/src/vendor/ant-design-pro/utils/request.js b/src/vendor/ant-design-pro/utils/request.js
|
||||||
|
index 661bfd0..11be85a 100644
|
||||||
|
--- a/src/vendor/ant-design-pro/utils/request.js
|
||||||
|
+++ b/src/vendor/ant-design-pro/utils/request.js
|
||||||
|
@@ -170,6 +170,9 @@ request.interceptors.response.use((response) => {
|
||||||
|
message: response.data.label,
|
||||||
|
description: response.data.message
|
||||||
|
});
|
||||||
|
+ return new Promise((resolve) => {
|
||||||
|
+ resolve(null);
|
||||||
|
+ });
|
||||||
|
// err = new Error(response.data.message);
|
||||||
|
// err.data = response.data.data;
|
||||||
|
// err.response = response.data;
|
||||||
|
diff --git a/src/views/leaks/LeakTaskDetail.vue b/src/views/leaks/LeakTaskDetail.vue
|
||||||
|
index 81f0a88..56056c9 100644
|
||||||
|
--- a/src/views/leaks/LeakTaskDetail.vue
|
||||||
|
+++ b/src/views/leaks/LeakTaskDetail.vue
|
||||||
|
@@ -105,6 +105,7 @@
|
||||||
|
<a-input-search
|
||||||
|
:placeholder="taskType === 'hotpatch remove' ? `按CVE ID搜索` : `按主机名或IP搜索`"
|
||||||
|
style="width: 200px"
|
||||||
|
+ maxLength="20"
|
||||||
|
@search="onSearch"
|
||||||
|
/>
|
||||||
|
</a-col>
|
||||||
|
--
|
||||||
|
Gitee
|
||||||
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
Name: aops-hermes
|
Name: aops-hermes
|
||||||
Version: v1.4.0
|
Version: v1.4.0
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Web for an intelligent diagnose frame
|
Summary: Web for an intelligent diagnose frame
|
||||||
License: MulanPSL2
|
License: MulanPSL2
|
||||||
URL: https://gitee.com/openeuler/%{name}
|
URL: https://gitee.com/openeuler/%{name}
|
||||||
@ -12,6 +12,7 @@ Patch001: 001-bugfix-and-adapt-rollback-tasks.patch
|
|||||||
Patch002: 002-fix-hotpatch-remove-filter.patch
|
Patch002: 002-fix-hotpatch-remove-filter.patch
|
||||||
Patch003: 003-change-search-placeholder.patch
|
Patch003: 003-change-search-placeholder.patch
|
||||||
Patch004: 004-modify-search-key-for-hostlist.patch
|
Patch004: 004-modify-search-key-for-hostlist.patch
|
||||||
|
Patch005: 005-add-input-text-limit.patch
|
||||||
|
|
||||||
|
|
||||||
BuildRequires: nodejs node-gyp nodejs-yarn
|
BuildRequires: nodejs node-gyp nodejs-yarn
|
||||||
@ -47,6 +48,9 @@ cp -r deploy/aops-hermes.service %{buildroot}/usr/lib/systemd/system/
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Dec 19 2023 Hu gang<18768366022@163.com> - v1.4.0-3
|
||||||
|
- Add imput text limit
|
||||||
|
|
||||||
* Mon Dec 18 2023 Hu gang<18768366022@163.com> - v1.4.0-2
|
* Mon Dec 18 2023 Hu gang<18768366022@163.com> - v1.4.0-2
|
||||||
- Added keyword search for host list
|
- Added keyword search for host list
|
||||||
- Fixed the problem of abnormal list rendering in task details task running state
|
- Fixed the problem of abnormal list rendering in task details task running state
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user