diff --git a/packages/core/pipeline/src/context/index.ts b/packages/core/pipeline/src/context/index.ts index 38aab45e..0c35aef4 100644 --- a/packages/core/pipeline/src/context/index.ts +++ b/packages/core/pipeline/src/context/index.ts @@ -6,9 +6,9 @@ export type PipelineContext = IContext; export type PageReq = { offset?: number; limit?: number; - query?: string; - sortBy?: string; - sortOrder?: "asc" | "desc"; + searchKey?: string; + // sortBy?: string; + // sortOrder?: "asc" | "desc"; }; export type PageRes = { diff --git a/packages/plugins/plugin-lib/src/common/util.ts b/packages/plugins/plugin-lib/src/common/util.ts index d5a88b70..ba060170 100644 --- a/packages/plugins/plugin-lib/src/common/util.ts +++ b/packages/plugins/plugin-lib/src/common/util.ts @@ -39,6 +39,8 @@ export function createRemoteSelectInputDefine(opts?: { rules?: any; mergeScript?: string; search?: boolean; + pager?: boolean; + component?: any; }) { const title = opts?.title || "请选择"; const certDomainsInputKey = opts?.certDomainsInputKey || "certDomains"; @@ -49,6 +51,7 @@ export function createRemoteSelectInputDefine(opts?: { const watches = opts?.watches || []; const helper = opts?.helper || "请选择"; const search = opts?.search ?? false; + const pager = opts?.pager ?? true; let mode = "tags"; if (opts.multi === false) { mode = undefined; @@ -66,7 +69,9 @@ export function createRemoteSelectInputDefine(opts?: { typeName, action, search, + pager, watches: [certDomainsInputKey, accessIdInputKey, ...watches], + ...opts.component, }, rules: opts?.rules, required: opts.required ?? true, diff --git a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue index 2b564bcb..05c24ffe 100644 --- a/packages/ui/certd-client/src/components/plugins/common/remote-select.vue +++ b/packages/ui/certd-client/src/components/plugins/common/remote-select.vue @@ -19,6 +19,10 @@ + +
+ +
@@ -32,7 +36,7 @@