From bf075380e17bfc4a70609c7b31da44c6f17149d4 Mon Sep 17 00:00:00 2001 From: xlsea Date: Thu, 18 Apr 2024 09:47:26 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BC=98=E5=8C=96=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=A1=86=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/operate-drawer.vue | 2 +- src/components/common/search-form.vue | 67 +++++++++++++++++++ src/typings/api.d.ts | 9 +-- src/typings/components.d.ts | 2 + src/views/group-config/index.vue | 15 +++-- .../modules/groupConfig-operate-drawer.vue | 22 ++---- .../modules/groupConfig-search.vue | 45 +++---------- .../namepase/modules/namespace-search.vue | 45 ++----------- .../modules/notify-recipient-search.vue | 63 +++++------------ .../scene/modules/notify-config-search.vue | 57 ++++------------ src/views/pods/index.vue | 8 +-- src/views/pods/modules/pods-search.vue | 45 ++----------- 12 files changed, 142 insertions(+), 238 deletions(-) create mode 100644 src/components/common/search-form.vue diff --git a/src/components/common/operate-drawer.vue b/src/components/common/operate-drawer.vue index 6bbae7b..07914c5 100644 --- a/src/components/common/operate-drawer.vue +++ b/src/components/common/operate-drawer.vue @@ -3,7 +3,7 @@ import { computed, nextTick, onUnmounted, reactive, ref, watch } from 'vue'; import { useAppStore } from '@/store/modules/app'; defineOptions({ - name: 'NamespaceOperateDrawer' + name: 'OperateDrawer' }); interface Props { diff --git a/src/components/common/search-form.vue b/src/components/common/search-form.vue new file mode 100644 index 0000000..ac5395f --- /dev/null +++ b/src/components/common/search-form.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/src/typings/api.d.ts b/src/typings/api.d.ts index 9ea9704..92f383b 100644 --- a/src/typings/api.d.ts +++ b/src/typings/api.d.ts @@ -483,6 +483,8 @@ declare namespace Api { groupName: string; /** 业务ID */ businessId: string; + /** 业务名称 */ + businessName?: string; /** 状态 */ notifyStatus: string; /** 通知类型 */ @@ -514,12 +516,7 @@ declare namespace Api { >; /** notify-config list */ - type NotifyConfigList = Common.PaginatingQueryRecord< - { - /** 业务名称 */ - businessName: string; - } & NotifyConfig - >; + type NotifyConfigList = Common.PaginatingQueryRecord; } /** diff --git a/src/typings/components.d.ts b/src/typings/components.d.ts index c4e950e..6b635d1 100644 --- a/src/typings/components.d.ts +++ b/src/typings/components.d.ts @@ -89,6 +89,8 @@ declare module 'vue' { ReloadButton: typeof import('./../components/common/reload-button.vue')['default'] RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] + Search: typeof import('../components/common/search-form.vue')['default'] + SearchForm: typeof import('./../components/common/search-form.vue')['default'] SoybeanAvatar: typeof import('./../components/custom/soybean-avatar.vue')['default'] SvgIcon: typeof import('./../components/custom/svg-icon.vue')['default'] SystemLogo: typeof import('./../components/common/system-logo.vue')['default'] diff --git a/src/views/group-config/index.vue b/src/views/group-config/index.vue index 7781965..6494fe3 100644 --- a/src/views/group-config/index.vue +++ b/src/views/group-config/index.vue @@ -149,7 +149,13 @@ function edit(id: string) {