219 lines
4.0 KiB
XML

{
"widgettype":"VBox",
"options":{"cheight":40,"width":"100%"},
"subwidgets":[{
"id":"opp_reports_tbl",
"widgettype":"Tabular",
"options":{
"width":"100%",
"height":"100%",
"title":"研发报告",
"css":"card",
"editable":{
"new_data_url":"{{entire_url('add_opp_reports.dspy')}}",
"delete_data_url":"{{entire_url('delete_opp_reports.dspy')}}",
"update_data_url":"{{entire_url('update_opp_reports.dspy')}}"
},
"data_url":"{{entire_url('./get_opp_reports.dspy')}}",
"data_method":"GET",
"data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}},
"row_options":{
"browserfields": {
"exclouded": [
"content",
"confirm_task_id"
]
},
"editexclouded":[
"id",
"created_at",
"updated_at",
"confirm_task_id",
"confirmed_by",
"ppt_path"
],
"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,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "项目ID"
},
{
"name": "software",
"title": "软件/主题",
"type": "str",
"length": 128,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "软件/主题"
},
{
"name": "title",
"title": "报告标题",
"type": "str",
"length": 255,
"nullable": "no",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "报告标题"
},
{
"name": "content",
"title": "报告正文",
"type": "text",
"length": 0,
"uitype": "text",
"datatype": "text",
"label": "报告正文"
},
{
"name": "status",
"title": "报告状态",
"type": "str",
"length": 24,
"nullable": "no",
"default": "draft",
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "报告状态"
},
{
"name": "confirm_task_id",
"title": "确认任务ID",
"type": "str",
"length": 32,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "确认任务ID"
},
{
"name": "ppt_path",
"title": "PPT文件路径",
"type": "str",
"length": 500,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "PPT文件路径"
},
{
"name": "confirmed_by",
"title": "确认人",
"type": "str",
"length": 64,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "确认人"
},
{
"name": "created_by",
"title": "创建人",
"type": "str",
"length": 64,
"cwidth": 18,
"uitype": "str",
"datatype": "str",
"label": "创建人"
},
{
"name": "created_at",
"title": "创建时间",
"type": "timestamp",
"nullable": "no",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"label": "创建时间"
},
{
"name": "updated_at",
"title": "更新时间",
"type": "timestamp",
"length": 0,
"uitype": "str",
"datatype": "timestamp",
"label": "更新时间"
}
]
},
"data_filter":{
"AND": [
{
"field": "title",
"op": "LIKE",
"var": "title_input"
},
{
"field": "software",
"op": "LIKE",
"var": "software_input"
},
{
"field": "status",
"op": "=",
"var": "status_input"
}
]
},
"page_rows":160,
"cache_limit":5
}
,"binds":[]
}]
}