!140 [sync] PR-137: 增加任务详情搜索输入限制
From: @openeuler-sync-bot Reviewed-by: @zhu-yuncheng Signed-off-by: @zhu-yuncheng
This commit is contained in:
commit
4b72ca6a25
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
|
||||
Version: v1.4.0
|
||||
Release: 2
|
||||
Release: 3
|
||||
Summary: Web for an intelligent diagnose frame
|
||||
License: MulanPSL2
|
||||
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
|
||||
Patch003: 003-change-search-placeholder.patch
|
||||
Patch004: 004-modify-search-key-for-hostlist.patch
|
||||
Patch005: 005-add-input-text-limit.patch
|
||||
|
||||
|
||||
BuildRequires: nodejs node-gyp nodejs-yarn
|
||||
@ -47,6 +48,9 @@ cp -r deploy/aops-hermes.service %{buildroot}/usr/lib/systemd/system/
|
||||
|
||||
|
||||
%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
|
||||
- Added keyword search for host list
|
||||
- Fixed the problem of abnormal list rendering in task details task running state
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user