{ "widgettype":"VBox", "options":{"cheight":40,"width":"100%"}, "subwidgets":[{ "id":"pipeline_versions_tbl", "widgettype":"Tabular", "options":{ "width":"100%", "height":"100%", "title":"产线发布记录表", "toolbar":{ "tools": [ { "selected_row": true, "name": "pipelines", "icon": "{{entire_url('/imgs/pipelines.svg')}}", "label": "所属产线" } ] }, "css":"card", "editable":{ "new_data_url":"{{entire_url('add_pipeline_versions.dspy')}}", "delete_data_url":"{{entire_url('delete_pipeline_versions.dspy')}}", "update_data_url":"{{entire_url('update_pipeline_versions.dspy')}}" }, "data_url":"{{entire_url('./get_pipeline_versions.dspy')}}", "data_method":"GET", "data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}}, "row_options":{ "browserfields": { "exclouded": [ "id", "config_snapshot" ], "cwidth": {} }, "editexclouded":[ "id", "created_at" ], "fields":[ { "name": "id", "title": "id", "type": "str", "length": 32, "nullable": "no", "cwidth": 18, "uitype": "str", "datatype": "str", "label": "id" }, { "name": "pipeline_id", "title": "产线ID", "type": "str", "length": 32, "nullable": "no", "label": "产线ID", "uitype": "code", "valueField": "pipeline_id", "textField": "pipeline_id_text", "params": { "dbname": "{{get_module_dbname('pipeline_core')}}", "table": "pipelines", "tblvalue": "id", "tbltext": "name", "valueField": "pipeline_id", "textField": "pipeline_id_text" }, "dataurl": "{{entire_url('/appbase/get_code.dspy')}}" }, { "name": "version", "title": "版本号", "type": "str", "length": 20, "nullable": "no", "cwidth": 18, "uitype": "str", "datatype": "str", "label": "版本号" }, { "name": "publish_status", "title": "发布状态", "type": "str", "length": 20, "nullable": "no", "default": "pending", "cwidth": 18, "uitype": "str", "datatype": "str", "label": "发布状态" }, { "name": "published_by", "title": "发布人", "type": "str", "length": 32, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "发布人" }, { "name": "published_at", "title": "发布时间", "type": "timestamp", "length": 0, "uitype": "str", "datatype": "timestamp", "label": "发布时间" }, { "name": "changelog", "title": "变更说明", "type": "text", "length": 0, "uitype": "text", "datatype": "text", "label": "变更说明" }, { "name": "config_snapshot", "title": "配置快照JSON", "type": "text", "length": 0, "uitype": "text", "datatype": "text", "label": "配置快照JSON" }, { "name": "created_at", "title": "创建时间", "type": "timestamp", "length": 0, "uitype": "str", "datatype": "timestamp", "label": "创建时间" } ] }, "page_rows":160, "cache_limit":5 } ,"binds":[ { "wid": "self", "event": "pipelines", "actiontype": "urlwidget", "target": "PopupWindow", "popup_options": { "title": "所属产线", "icon": "{{entire_url('/appbase/get_icon.dspy')}}?id=pipelines", "resizable": true, "height": "70%", "width": "70%" }, "params_mapping": { "mapping": { "id": "pipeline_id", "referer_widget": "referer_widget" }, "need_other": false }, "options": { "method": "POST", "params": {}, "url": "{{entire_url('../pipelines')}}" } } ] }] }