From 1d5b1c239cf350920eb2eb9fd293af74ef412853 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Thu, 22 Jan 2026 18:33:39 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=AF=81=E4=B9=A6=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E5=88=9B=E5=BB=BA=E5=9F=9F=E5=90=8D=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E6=A1=86=E6=94=AF=E6=8C=81=E8=8E=B7=E5=8F=96=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=BF=9B=E8=A1=8C=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cname-record-info.vue | 1 + .../plugins/common/domain-selector.vue | 167 ++++++++++++++++++ .../plugins/common/remote-select.vue | 4 +- .../src/components/plugins/index.ts | 2 + .../plugins/synology/device-id-getter.vue | 2 +- .../src/components/vip-button/index.vue | 10 +- .../plugin/cert-plugin/base-convert.ts | 8 +- 7 files changed, 184 insertions(+), 10 deletions(-) create mode 100644 packages/ui/certd-client/src/components/plugins/common/domain-selector.vue diff --git a/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue b/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue index 06e5e90d6..561c5eaf6 100644 --- a/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue +++ b/packages/ui/certd-client/src/components/plugins/cert/domains-verify-plan-editor/cname-record-info.vue @@ -39,6 +39,7 @@ import { dict } from "@fast-crud/fast-crud"; import * as api from "./api.js"; import CnameTip from "./cname-tip.vue"; import { Modal } from "ant-design-vue"; +import { utils } from "/@/utils/index.js"; const statusDict = dict({ data: [ { label: "待设置CNAME", value: "cname", color: "warning" }, diff --git a/packages/ui/certd-client/src/components/plugins/common/domain-selector.vue b/packages/ui/certd-client/src/components/plugins/common/domain-selector.vue new file mode 100644 index 000000000..f09fe13c9 --- /dev/null +++ b/packages/ui/certd-client/src/components/plugins/common/domain-selector.vue @@ -0,0 +1,167 @@ + + + + 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 8a42a66a9..55c0bcc11 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 @@ -85,7 +85,9 @@ const message = ref(""); const hasError = ref(false); const loading = ref(false); const pagerRef: Ref = ref({ - current: 1, + pageNo: 1, + total: 0, + pageSize: 100, }); const getOptions = async () => { if (loading.value) { diff --git a/packages/ui/certd-client/src/components/plugins/index.ts b/packages/ui/certd-client/src/components/plugins/index.ts index 5335d5c09..117d66864 100644 --- a/packages/ui/certd-client/src/components/plugins/index.ts +++ b/packages/ui/certd-client/src/components/plugins/index.ts @@ -4,6 +4,7 @@ import RemoteSelect from "./common/remote-select.vue"; import RemoteInput from "./common/remote-input.vue"; import RemoteTreeSelect from "./common/remote-tree-select.vue"; import CertDomainsGetter from "./common/cert-domains-getter.vue"; +import DomainSelector from "./common/domain-selector.vue"; import OutputSelector from "/@/components/plugins/common/output-selector/index.vue"; import DnsProviderSelector from "/@/components/plugins/cert/dns-provider-selector/index.vue"; import DomainsVerifyPlanEditor from "/@/components/plugins/cert/domains-verify-plan-editor/index.vue"; @@ -29,6 +30,7 @@ export default { app.component("RemoteTreeSelect", RemoteTreeSelect); app.component("RemoteInput", RemoteInput); app.component("CertDomainsGetter", CertDomainsGetter); + app.component("DomainSelector", DomainSelector); app.component("InputPassword", InputPassword); app.component("ParamsShow", ParamsShow); }, diff --git a/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue b/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue index c59412b6b..e34ac6b79 100644 --- a/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue +++ b/packages/ui/certd-client/src/components/plugins/synology/device-id-getter.vue @@ -10,7 +10,7 @@