From 185becf5a89aad80169959d7a91b5d34d228ce7f Mon Sep 17 00:00:00 2001 From: jingrow Date: Fri, 1 Aug 2025 20:59:51 +0800 Subject: [PATCH] =?UTF-8?q?domain=5Fowner.py=E6=B7=BB=E5=8A=A0dashboard=5F?= =?UTF-8?q?fields=E5=AD=97=E6=AE=B5=E7=99=BD=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pagetype/domain_owner/domain_owner.py | 32 ++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/jcloud/jcloud/pagetype/domain_owner/domain_owner.py b/jcloud/jcloud/pagetype/domain_owner/domain_owner.py index b3a2c72..dfc0b7a 100644 --- a/jcloud/jcloud/pagetype/domain_owner/domain_owner.py +++ b/jcloud/jcloud/pagetype/domain_owner/domain_owner.py @@ -44,4 +44,34 @@ class DomainOwner(Document): team: DF.Link | None title: DF.Data | None # end: auto-generated types - pass + + dashboard_fields = ( + "fullname", + "title", + "c_fn", + "c_ln", + "c_em", + "c_ph", + "c_ph_num", + "c_ph_type", + "c_org", + "c_adr", + "c_ct", + "c_st", + "c_pc", + "c_regtype", + "reg_contact_type", + "team", + "cocode", + "c_idtype_gswl", + "c_idnum_gswl" + ) + + @staticmethod + def get_list_query(query): + DomainOwner = jingrow.qb.PageType("Domain Owner") + query = query.where(DomainOwner.team == jingrow.local.team().name) + return query.run(as_dict=True) + + def get_pg(self, pg): + return pg