70 lines
2.6 KiB
JSON
70 lines
2.6 KiB
JSON
{
|
|
"tblname": "pbl_domain_ref",
|
|
"title": "PBL基础域关联(world/scene/entity)",
|
|
"params": {
|
|
"browserfields": {
|
|
"exclouded": ["is_deleted", "ext_json", "bind_at", "updater_id", "remark"],
|
|
"alters": {
|
|
"ref_type": {
|
|
"uitype": "code",
|
|
"title": "关联类型",
|
|
"data": [
|
|
{"value": "world", "text": "世界"},
|
|
{"value": "scene", "text": "场景"},
|
|
{"value": "entity", "text": "实体"}
|
|
]
|
|
},
|
|
"bind_state": {
|
|
"uitype": "code",
|
|
"title": "绑定状态",
|
|
"data": [
|
|
{"value": "bound", "text": "已绑定"},
|
|
{"value": "unbound", "text": "已解绑"}
|
|
]
|
|
},
|
|
"ref_code": {
|
|
"uitype": "text",
|
|
"title": "对象编码"
|
|
},
|
|
"ref_name": {
|
|
"uitype": "text",
|
|
"title": "对象名称"
|
|
},
|
|
"blueprint_id": {
|
|
"uitype": "text",
|
|
"title": "蓝图ID"
|
|
},
|
|
"team_id": {
|
|
"uitype": "text",
|
|
"title": "团队ID"
|
|
},
|
|
"class_id": {
|
|
"uitype": "text",
|
|
"title": "班级ID"
|
|
}
|
|
}
|
|
},
|
|
"editexclouded": [
|
|
"id", "tenant_id", "ref_type", "ref_id", "ref_code", "ref_name",
|
|
"bind_state", "bind_at", "creator_id", "created_at",
|
|
"updater_id", "updated_at", "is_deleted", "ext_json"
|
|
],
|
|
"sortby": ["created_at desc", "id desc"],
|
|
"data_filter": {
|
|
"AND": [
|
|
{"field": "is_deleted", "op": "=", "const": "0"},
|
|
{"field": "tenant_id", "op": "=", "var": "tenant_id"},
|
|
{"field": "ref_type", "op": "=", "var": "ref_type"},
|
|
{"field": "ref_name", "op": "LIKE", "var": "ref_name_input"}
|
|
]
|
|
},
|
|
"confidential_fields": ["ext_json"],
|
|
"new_data_url": "{{entire_url('/pbl_domain_ext/api/pbl_domain_ref_bind.dspy')}}",
|
|
"update_data_url": "{{entire_url('/pbl_domain_ext/api/pbl_domain_ref_update.dspy')}}",
|
|
"delete_data_url": "{{entire_url('/pbl_domain_ext/api/pbl_domain_ref_unbind.dspy')}}",
|
|
"editable": {
|
|
"get_data_url": "{{entire_url('/pbl_domain_ext/api/pbl_domain_ref_get.dspy')}}"
|
|
}
|
|
}
|
|
}
|