From d3935219f2aa50d6662c5b5ebf7ee25ad696ab2b Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 24 Dec 2024 23:14:12 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E8=B0=83=E6=95=B4=E5=88=9B=E5=BB=BA?= =?UTF-8?q?=E8=AF=81=E4=B9=A6=E8=A1=A8=E5=8D=95=E5=AD=97=E6=AE=B5=E7=9A=84?= =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/plugin/cert-plugin/index.ts | 34 +++++++++---------- .../notification-selector/index.vue | 16 +++++---- 2 files changed, 26 insertions(+), 24 deletions(-) diff --git a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts index aba9a1aef..503be4dc4 100644 --- a/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts +++ b/packages/plugins/plugin-cert/src/plugin/cert-plugin/index.ts @@ -62,6 +62,23 @@ export class CertApplyPlugin extends CertApplyBasePlugin { }) challengeType!: string; + @TaskInput({ + title: "证书颁发机构", + value: "letsencrypt", + component: { + name: "icon-select", + vModel: "value", + options: [ + { value: "letsencrypt", label: "Let's Encrypt", icon: "simple-icons:letsencrypt" }, + { value: "google", label: "Google", icon: "flat-color-icons:google" }, + { value: "zerossl", label: "ZeroSSL", icon: "emojione:digit-zero" }, + ], + }, + helper: "Let's Encrypt:申请最简单\nGoogle:大厂光环,兼容性好,仅首次需要翻墙获取EAB授权\nZeroSSL:需要EAB授权,无需翻墙", + required: true, + }) + sslProvider!: SSLProvider; + @TaskInput({ title: "DNS解析服务商", component: { @@ -125,23 +142,6 @@ export class CertApplyPlugin extends CertApplyBasePlugin { }) domainsVerifyPlan!: DomainsVerifyPlanInput; - @TaskInput({ - title: "证书颁发机构", - value: "letsencrypt", - component: { - name: "icon-select", - vModel: "value", - options: [ - { value: "letsencrypt", label: "Let's Encrypt", icon: "simple-icons:letsencrypt" }, - { value: "google", label: "Google", icon: "flat-color-icons:google" }, - { value: "zerossl", label: "ZeroSSL", icon: "emojione:digit-zero" }, - ], - }, - helper: "Let's Encrypt:申请最简单\nGoogle:大厂光环,兼容性好,仅首次需要翻墙获取EAB授权\nZeroSSL:需要EAB授权,无需翻墙", - required: true, - }) - sslProvider!: SSLProvider; - @TaskInput({ title: "Google公共EAB授权", isSys: true, diff --git a/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue b/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue index e851b86a8..c9b12ef63 100644 --- a/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue +++ b/packages/ui/certd-client/src/views/certd/notification/notification-selector/index.vue @@ -100,18 +100,20 @@ const renderLabel = (option: any) => { return {option.name}; }; -async function openTableSelectDialog(e: any) { - e.preventDefault(); - await tableSelectRef.value.open(); +async function openTableSelectDialog() { + selectOpened.value = false; + await tableSelectRef.value.open({}); await tableSelectRef.value.crudExpose.openAdd({}); } + +const selectOpened = ref(false); const selectSlots = ref({ - dropdownRender({ menuNode }: any) { + dropdownRender({ menuNode, props }: any) { const res = []; res.push(menuNode); - res.push(); - res.push(); - res.push(); + // res.push(); + // res.push(); + // res.push(); return res; } });