From d0f0c9428e504076b41cf7c66d1bf0f3fc0aaf7d Mon Sep 17 00:00:00 2001 From: lijiahang Date: Sat, 7 Oct 2023 18:08:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BB=E6=9C=BA=E5=8D=A1=E7=89=87=E5=88=97?= =?UTF-8?q?=E8=A1=A8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orion-ops-ui/src/api/asset/host.ts | 1 + orion-ops-ui/src/assets/style/layout.less | 4 ++ .../src/components/card/list/index.vue | 71 +++++++++++++++---- orion-ops-ui/src/types/card.ts | 13 +++- orion-ops-ui/src/types/table.ts | 26 ------- orion-ops-ui/src/utils/index.ts | 18 ++++- .../components/host-identity-table.vue | 6 +- .../host-key/components/host-key-table.vue | 6 +- .../asset/host/components/host-card-list.vue | 64 ++++++++++++++--- .../asset/host/components/host-table.vue | 23 +----- orion-ops-ui/src/views/asset/host/index.vue | 39 +++++++++- .../src/views/asset/host/types/card.fields.ts | 2 + .../src/views/asset/host/types/const.ts | 10 +-- .../views/user/role/components/role-table.vue | 6 +- .../views/user/user/components/user-table.vue | 6 +- 15 files changed, 203 insertions(+), 92 deletions(-) diff --git a/orion-ops-ui/src/api/asset/host.ts b/orion-ops-ui/src/api/asset/host.ts index 72bc22b7..aaea3050 100644 --- a/orion-ops-ui/src/api/asset/host.ts +++ b/orion-ops-ui/src/api/asset/host.ts @@ -23,6 +23,7 @@ export interface HostUpdateRequest extends HostCreateRequest { * 主机查询请求 */ export interface HostQueryRequest extends Pagination { + searchValue?: string; id?: number; name?: string; code?: string; diff --git a/orion-ops-ui/src/assets/style/layout.less b/orion-ops-ui/src/assets/style/layout.less index 3d160e75..22963d1f 100644 --- a/orion-ops-ui/src/assets/style/layout.less +++ b/orion-ops-ui/src/assets/style/layout.less @@ -80,6 +80,10 @@ cursor: pointer; } +.card-filter-wrapper { + padding: 18px 24px 14px 24px; +} + .usn { user-select: none; } diff --git a/orion-ops-ui/src/components/card/list/index.vue b/orion-ops-ui/src/components/card/list/index.vue index aab4417a..f00d6278 100644 --- a/orion-ops-ui/src/components/card/list/index.vue +++ b/orion-ops-ui/src/components/card/list/index.vue @@ -26,7 +26,7 @@
@@ -53,12 +53,28 @@ @change="e => emits('update:searchValue', e)" @keydown.enter="emits('search')" />
- -
- -
+ + +
+ + + +
+ +