From 89da3443a7aafbe6a52271f01eb7ff156d4afd20 Mon Sep 17 00:00:00 2001 From: jingrow Date: Tue, 5 Aug 2025 17:07:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=9F=9F=E5=90=8D=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E9=80=89=E9=A1=B9=E5=80=BC=EF=BC=8C=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E6=89=80=E6=9C=89=E8=80=85=E5=A2=9E=E5=8A=A0=E5=88=9D=E5=AE=A1?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src2/components/JsiteDomainOverview.vue | 23 +++++++++++++++---- .../pagetype/domain_owner/domain_owner.json | 15 ++++++++---- .../pagetype/domain_owner/domain_owner.py | 3 ++- .../pagetype/jsite_domain/jsite_domain.json | 5 ++-- .../pagetype/jsite_domain/jsite_domain.py | 2 +- 5 files changed, 35 insertions(+), 13 deletions(-) diff --git a/dashboard/src2/components/JsiteDomainOverview.vue b/dashboard/src2/components/JsiteDomainOverview.vue index 4940080..62bdfa2 100644 --- a/dashboard/src2/components/JsiteDomainOverview.vue +++ b/dashboard/src2/components/JsiteDomainOverview.vue @@ -133,6 +133,13 @@ > {{ $domain.pg.whois_protection ? '关闭隐私保护' : '开启隐私保护' }} + @@ -207,15 +214,23 @@ export default { methods: { getStatusText(status) { const statusMap = { - 'Active': '正常', - 'Expired': '已过期' + 'ok': '正常', + 'clientHold': '锁定', + 'clientUpdateProhibited': '更新锁定', + 'clientTransferProhibited': '转移锁定', + 'clientDeleteProhibited': '删除锁定', + 'clientRenewProhibited': '续费锁定' }; return statusMap[status] || status; }, getStatusVariant(status) { const variantMap = { - 'Active': 'success', - 'Expired': 'danger' + 'ok': 'success', + 'clientHold': 'danger', + 'clientUpdateProhibited': 'danger', + 'clientTransferProhibited': 'danger', + 'clientDeleteProhibited': 'danger', + 'clientRenewProhibited': 'danger' }; return variantMap[status] || 'default'; }, diff --git a/jcloud/jcloud/pagetype/domain_owner/domain_owner.json b/jcloud/jcloud/pagetype/domain_owner/domain_owner.json index 44a9070..698233a 100644 --- a/jcloud/jcloud/pagetype/domain_owner/domain_owner.json +++ b/jcloud/jcloud/pagetype/domain_owner/domain_owner.json @@ -23,6 +23,7 @@ "c_pc", "team", "r_status", + "c_status", "section_break_ssfs", "c_org_m", "c_ln_m", @@ -226,16 +227,22 @@ "label": "模板标识" }, { - "default": "0", "fieldname": "r_status", - "fieldtype": "Check", - "label": "实名认证" + "fieldtype": "Select", + "label": "实名认证", + "options": "0\n1\n2\n3\n4\n5" + }, + { + "fieldname": "c_status", + "fieldtype": "Select", + "label": "初审状态", + "options": "0\n1\n2\n3\n4" } ], "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-08-03 12:37:48.526845", + "modified": "2025-08-05 16:44:31.926846", "modified_by": "Administrator", "module": "Jcloud", "name": "Domain Owner", diff --git a/jcloud/jcloud/pagetype/domain_owner/domain_owner.py b/jcloud/jcloud/pagetype/domain_owner/domain_owner.py index 9d3e349..602fcd4 100644 --- a/jcloud/jcloud/pagetype/domain_owner/domain_owner.py +++ b/jcloud/jcloud/pagetype/domain_owner/domain_owner.py @@ -38,10 +38,11 @@ class DomainOwner(Document): c_regtype: DF.Literal["", "I", "E"] c_st: DF.Data | None c_st_m: DF.Data | None + c_status: DF.Literal["0", "1", "2", "3", "4"] c_sysid: DF.Data | None cocode: DF.Data | None fullname: DF.Data | None - r_status: DF.Check + r_status: DF.Literal["0", "1", "2", "3", "4", "5"] reg_contact_type: DF.Literal["", "cg", "hk", "tw", "jingwai"] team: DF.Link | None title: DF.Data | None diff --git a/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.json b/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.json index 40ffab9..537dbc1 100644 --- a/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.json +++ b/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.json @@ -40,13 +40,12 @@ "options": "Team" }, { - "default": "Active", "fieldname": "status", "fieldtype": "Select", "in_list_view": 1, "in_standard_filter": 1, "label": "状态", - "options": "Active\nExpired" + "options": "ok\nclientHold\nclientUpdateProhibited" }, { "fieldname": "order_id", @@ -196,7 +195,7 @@ "grid_page_length": 50, "index_web_pages_for_search": 1, "links": [], - "modified": "2025-08-02 20:35:58.740670", + "modified": "2025-08-05 16:59:44.708289", "modified_by": "Administrator", "module": "Jcloud", "name": "Jsite Domain", diff --git a/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.py b/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.py index cc722cc..322d55b 100644 --- a/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.py +++ b/jcloud/jcloud/pagetype/jsite_domain/jsite_domain.py @@ -34,7 +34,7 @@ class JsiteDomain(Document): period: DF.Int price: DF.Int registration_date: DF.Datetime | None - status: DF.Literal["Active", "Expired"] + status: DF.Literal["ok", "clientHold", "clientUpdateProhibited"] team: DF.Link | None whois_protection: DF.Check # end: auto-generated types