更新域名状态选项值,域名所有者增加初审状态字段

This commit is contained in:
jingrow 2025-08-05 17:07:42 +08:00
parent 059a4aa7b6
commit 89da3443a7
5 changed files with 35 additions and 13 deletions

View File

@ -133,6 +133,13 @@
> >
{{ $domain.pg.whois_protection ? '关闭隐私保护' : '开启隐私保护' }} {{ $domain.pg.whois_protection ? '关闭隐私保护' : '开启隐私保护' }}
</Button> </Button>
<Button
@click="showUploadRealName"
variant="outline"
class="bg-blue-100 text-blue-700 hover:bg-blue-200"
>
上传实名资料
</Button>
</div> </div>
</div> </div>
</div> </div>
@ -207,15 +214,23 @@ export default {
methods: { methods: {
getStatusText(status) { getStatusText(status) {
const statusMap = { const statusMap = {
'Active': '正常', 'ok': '正常',
'Expired': '已过期' 'clientHold': '锁定',
'clientUpdateProhibited': '更新锁定',
'clientTransferProhibited': '转移锁定',
'clientDeleteProhibited': '删除锁定',
'clientRenewProhibited': '续费锁定'
}; };
return statusMap[status] || status; return statusMap[status] || status;
}, },
getStatusVariant(status) { getStatusVariant(status) {
const variantMap = { const variantMap = {
'Active': 'success', 'ok': 'success',
'Expired': 'danger' 'clientHold': 'danger',
'clientUpdateProhibited': 'danger',
'clientTransferProhibited': 'danger',
'clientDeleteProhibited': 'danger',
'clientRenewProhibited': 'danger'
}; };
return variantMap[status] || 'default'; return variantMap[status] || 'default';
}, },

View File

@ -23,6 +23,7 @@
"c_pc", "c_pc",
"team", "team",
"r_status", "r_status",
"c_status",
"section_break_ssfs", "section_break_ssfs",
"c_org_m", "c_org_m",
"c_ln_m", "c_ln_m",
@ -226,16 +227,22 @@
"label": "模板标识" "label": "模板标识"
}, },
{ {
"default": "0",
"fieldname": "r_status", "fieldname": "r_status",
"fieldtype": "Check", "fieldtype": "Select",
"label": "实名认证" "label": "实名认证",
"options": "0\n1\n2\n3\n4\n5"
},
{
"fieldname": "c_status",
"fieldtype": "Select",
"label": "初审状态",
"options": "0\n1\n2\n3\n4"
} }
], ],
"grid_page_length": 50, "grid_page_length": 50,
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2025-08-03 12:37:48.526845", "modified": "2025-08-05 16:44:31.926846",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Jcloud", "module": "Jcloud",
"name": "Domain Owner", "name": "Domain Owner",

View File

@ -38,10 +38,11 @@ class DomainOwner(Document):
c_regtype: DF.Literal["", "I", "E"] c_regtype: DF.Literal["", "I", "E"]
c_st: DF.Data | None c_st: DF.Data | None
c_st_m: DF.Data | None c_st_m: DF.Data | None
c_status: DF.Literal["0", "1", "2", "3", "4"]
c_sysid: DF.Data | None c_sysid: DF.Data | None
cocode: DF.Data | None cocode: DF.Data | None
fullname: 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"] reg_contact_type: DF.Literal["", "cg", "hk", "tw", "jingwai"]
team: DF.Link | None team: DF.Link | None
title: DF.Data | None title: DF.Data | None

View File

@ -40,13 +40,12 @@
"options": "Team" "options": "Team"
}, },
{ {
"default": "Active",
"fieldname": "status", "fieldname": "status",
"fieldtype": "Select", "fieldtype": "Select",
"in_list_view": 1, "in_list_view": 1,
"in_standard_filter": 1, "in_standard_filter": 1,
"label": "状态", "label": "状态",
"options": "Active\nExpired" "options": "ok\nclientHold\nclientUpdateProhibited"
}, },
{ {
"fieldname": "order_id", "fieldname": "order_id",
@ -196,7 +195,7 @@
"grid_page_length": 50, "grid_page_length": 50,
"index_web_pages_for_search": 1, "index_web_pages_for_search": 1,
"links": [], "links": [],
"modified": "2025-08-02 20:35:58.740670", "modified": "2025-08-05 16:59:44.708289",
"modified_by": "Administrator", "modified_by": "Administrator",
"module": "Jcloud", "module": "Jcloud",
"name": "Jsite Domain", "name": "Jsite Domain",

View File

@ -34,7 +34,7 @@ class JsiteDomain(Document):
period: DF.Int period: DF.Int
price: DF.Int price: DF.Int
registration_date: DF.Datetime | None registration_date: DF.Datetime | None
status: DF.Literal["Active", "Expired"] status: DF.Literal["ok", "clientHold", "clientUpdateProhibited"]
team: DF.Link | None team: DF.Link | None
whois_protection: DF.Check whois_protection: DF.Check
# end: auto-generated types # end: auto-generated types