216 lines
4.6 KiB
XML
216 lines
4.6 KiB
XML
|
|
{
|
|
"id":"compute_pool_tbl",
|
|
"widgettype":"Tabular",
|
|
"options":{
|
|
"width":"100%",
|
|
"height":"100%",
|
|
|
|
|
|
"title":"算力池",
|
|
|
|
|
|
|
|
|
|
"toolbar":{
|
|
"tools": [
|
|
{
|
|
"selected_row": true,
|
|
"name": "compute_node",
|
|
"icon": "{{entire_url('/imgs/compute_node.svg')}}",
|
|
"label": "算力节点"
|
|
}
|
|
]
|
|
},
|
|
|
|
"css":"card",
|
|
|
|
|
|
"editable":{
|
|
|
|
"new_data_url":"{{entire_url('add_compute_pool.dspy')}}",
|
|
|
|
|
|
"delete_data_url":"{{entire_url('delete_compute_pool.dspy')}}",
|
|
|
|
|
|
"update_data_url":"{{entire_url('update_compute_pool.dspy')}}"
|
|
|
|
},
|
|
|
|
|
|
"data_url":"{{entire_url('./get_compute_pool.dspy')}}",
|
|
|
|
"data_method":"GET",
|
|
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
|
|
"row_options":{
|
|
|
|
|
|
|
|
"browserfields": {
|
|
"name": {
|
|
"title": "池名称",
|
|
"width": 150
|
|
},
|
|
"pool_type": {
|
|
"title": "集群类型",
|
|
"width": 100
|
|
},
|
|
"status": {
|
|
"title": "状态",
|
|
"width": 80
|
|
}
|
|
},
|
|
|
|
|
|
"editexclouded":[
|
|
"id",
|
|
"resellerid",
|
|
"description",
|
|
"created_at",
|
|
"updated_at"
|
|
],
|
|
|
|
"fields":[
|
|
{
|
|
"name": "id",
|
|
"title": "id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "id"
|
|
},
|
|
{
|
|
"name": "resellerid",
|
|
"title": "商户机构id",
|
|
"type": "str",
|
|
"length": 32,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "商户机构id"
|
|
},
|
|
{
|
|
"name": "name",
|
|
"title": "池名称",
|
|
"type": "str",
|
|
"length": 128,
|
|
"nullable": "no",
|
|
"cwidth": 18,
|
|
"uitype": "str",
|
|
"datatype": "str",
|
|
"label": "池名称"
|
|
},
|
|
{
|
|
"name": "pool_type",
|
|
"title": "集群类型(k8s/slurm/ray)",
|
|
"type": "char",
|
|
"length": 16,
|
|
"nullable": "no",
|
|
"label": "集群类型(k8s/slurm/ray)",
|
|
"uitype": "code",
|
|
"valueField": "pool_type",
|
|
"textField": "pool_type_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pcpool')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "pool_type",
|
|
"textField": "pool_type_text",
|
|
"cond": "parentid='cluster_type'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "description",
|
|
"title": "描述",
|
|
"type": "text",
|
|
"length": 0,
|
|
"uitype": "text",
|
|
"datatype": "text",
|
|
"label": "描述"
|
|
},
|
|
{
|
|
"name": "status",
|
|
"title": "状态(1=启用 0=停用)",
|
|
"type": "char",
|
|
"length": 1,
|
|
"default": "1",
|
|
"label": "状态(1=启用 0=停用)",
|
|
"uitype": "code",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"params": {
|
|
"dbname": "{{get_module_dbname('pcpool')}}",
|
|
"table": "appcodes_kv",
|
|
"tblvalue": "k",
|
|
"tbltext": "v",
|
|
"valueField": "status",
|
|
"textField": "status_text",
|
|
"cond": "parentid='product_status'"
|
|
},
|
|
"dataurl": "{{entire_url('/appbase/get_code.dspy')}}"
|
|
},
|
|
{
|
|
"name": "created_at",
|
|
"title": "创建时间",
|
|
"type": "timestamp",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "创建时间"
|
|
},
|
|
{
|
|
"name": "updated_at",
|
|
"title": "更新时间",
|
|
"type": "timestamp",
|
|
"nullable": "no",
|
|
"length": 0,
|
|
"uitype": "str",
|
|
"datatype": "timestamp",
|
|
"label": "更新时间"
|
|
}
|
|
]
|
|
},
|
|
|
|
|
|
|
|
"page_rows":160,
|
|
"cache_limit":5
|
|
}
|
|
|
|
,"binds":[
|
|
{
|
|
"wid": "self",
|
|
"event": "compute_node",
|
|
"actiontype": "urlwidget",
|
|
"target": "PopupWindow",
|
|
"popup_options": {
|
|
"title": "算力节点",
|
|
"icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=compute_node",
|
|
"resizable": true,
|
|
"height": "70%",
|
|
"width": "70%"
|
|
},
|
|
"params_mapping": {
|
|
"mapping": {
|
|
"id": "pool_id",
|
|
"referer_widget": "referer_widget"
|
|
},
|
|
"need_other": false
|
|
},
|
|
"options": {
|
|
"method": "POST",
|
|
"params": {},
|
|
"url": "{{entire_url('../compute_node_list')}}"
|
|
}
|
|
}
|
|
]
|
|
|
|
} |