162 lines
2.8 KiB
XML

{
"widgettype":"VBox",
"options":{"height":"100%","width":"100%"},
"subwidgets":[
{
"id":"sd_project_repos_tbl",
"widgettype":"Tabular",
"options":{
"width":"100%",
"height":"100%",
"title":"项目代码仓库",
"css":"card",
"editable":{
"new_data_url":"{{entire_url('add_sd_project_repos.dspy')}}",
"delete_data_url":"{{entire_url('delete_sd_project_repos.dspy')}}",
"update_data_url":"{{entire_url('update_sd_project_repos.dspy')}}"
},
"data_url":"{{entire_url('./get_sd_project_repos.dspy')}}",
"data_method":"GET",
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
"row_options":{
"browserfields": {
"exclouded": [
"org_id"
]
},
"editexclouded":[
"id",
"created_at",
"org_id"
],
"fields":[
{
"name": "id",
"title": "主键ID",
"type": "str",
"length": 32,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "主键ID"
},
{
"name": "project_id",
"title": "项目ID",
"type": "str",
"length": 32,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "项目ID"
},
{
"name": "repo_name",
"title": "仓库别名",
"type": "str",
"length": 100,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "仓库别名"
},
{
"name": "repo_url",
"title": "Git地址",
"type": "str",
"length": 500,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "Git地址"
},
{
"name": "default_branch",
"title": "默认分支",
"type": "str",
"length": 100,
"nullable": "no",
"default": "'main'",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "默认分支"
},
{
"name": "local_path",
"title": "本地相对路径",
"type": "str",
"length": 200,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "本地相对路径"
},
{
"name": "org_id",
"title": "组织ID",
"type": "str",
"length": 32,
"nullable": "no",
"default": "'0'",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "组织ID"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"label": "创建时间"
}
]
},
"page_rows":160,
"cache_limit":5
}
,"binds":[]
}]
}