From 45929cee6e42ad4a24c88b6847e2765670943341 Mon Sep 17 00:00:00 2001 From: jingrow Date: Sat, 2 Aug 2025 20:56:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=9F=9F=E5=90=8D=E8=AF=A6?= =?UTF-8?q?=E6=83=85=E9=A1=B5=E7=9A=84=E8=BD=AC=E5=85=A5=E5=92=8C=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E5=9F=9F=E5=90=8D=E6=8C=89=E9=92=AE=E5=8F=8A=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src2/components/JsiteDomainOverview.vue | 67 ------------------- 1 file changed, 67 deletions(-) diff --git a/dashboard/src2/components/JsiteDomainOverview.vue b/dashboard/src2/components/JsiteDomainOverview.vue index 58d6dee..17c37d6 100644 --- a/dashboard/src2/components/JsiteDomainOverview.vue +++ b/dashboard/src2/components/JsiteDomainOverview.vue @@ -23,13 +23,6 @@ > 续费 - @@ -98,14 +91,6 @@ > {{ $domain.pg.whois_protection ? '关闭隐私保护' : '开启隐私保护' }} - @@ -169,11 +154,9 @@ export default { data() { return { renewLoading: false, - transferLoading: false, dnsLoading: false, autoRenewLoading: false, whoisProtectionLoading: false, - deleteLoading: false, domainOwner: null, }; }, @@ -247,15 +230,6 @@ export default { onSuccess: this.onRenewalSuccess })); }, - transferDomain() { - const JsiteDomainTransferDialog = defineAsyncComponent(() => import('./JsiteDomainTransferDialog.vue')); - - renderDialog(h(JsiteDomainTransferDialog, { - domain: this.domain, - domainDoc: this.$domain.pg, - onSuccess: this.onTransferSuccess - })); - }, async manageDNS() { if (!this.$domain.pg.domain) { toast.error('域名信息不存在'); @@ -345,51 +319,10 @@ export default { } }); }, - async deleteDomain() { - if (!this.$domain.pg.name) { - toast.error('域名记录不存在'); - return; - } - - confirmDialog({ - title: '删除域名', - message: `确定要删除域名 "${this.$domain.pg.domain}" 吗?此操作不可逆!`, - primaryAction: { - label: '确定删除', - onClick: ({ hide }) => { - toast.success('删除域名请求已提交'); - hide(); - - this.deleteLoading = true; - const deleteRequest = createResource({ - url: 'jcloud.api.domain_west.delete_domain', - params: { - pagetype: 'Jsite Domain', - name: this.$domain.pg.name - }, - onSuccess: () => { - this.deleteLoading = false; - toast.success('域名删除成功'); - this.$router.push('/domains'); - }, - onError: (error) => { - toast.error(getToastErrorMessage(error)); - this.deleteLoading = false; - } - }); - deleteRequest.submit(); - } - } - }); - }, onRenewalSuccess(data) { toast.success('域名续费成功!'); this.$domain.reload(); }, - onTransferSuccess(data) { - toast.success('域名转入成功!'); - this.$domain.reload(); - }, }, watch: { // 监听域名数据变化,重新获取所有者信息