{ "widgettype":"VBox", "options":{"cheight":40,"width":"100%"}, "subwidgets":[{ "id":"pipeline_steps_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_steps.dspy')}}", "delete_data_url":"{{entire_url('delete_pipeline_steps.dspy')}}", "update_data_url":"{{entire_url('update_pipeline_steps.dspy')}}" }, "data_url":"{{entire_url('./get_pipeline_steps.dspy')}}", "data_method":"GET", "data_params":{{json.dumps(params_kw, indent=4, ensure_ascii=False)}}, "row_options":{ "browserfields": { "exclouded": [ "id", "step_config", "input_schema", "output_schema" ], "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": "所属产线", "type": "str", "length": 32, "nullable": "no", "label": "所属产线", "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": "step_order", "title": "步骤序号", "type": "int", "nullable": "no", "length": 0, "uitype": "int", "datatype": "int", "label": "步骤序号" }, { "name": "step_name", "title": "步骤名称", "type": "str", "length": 100, "nullable": "no", "cwidth": 18, "uitype": "str", "datatype": "str", "label": "步骤名称" }, { "name": "step_type", "title": "步骤类型", "type": "str", "length": 50, "nullable": "no", "cwidth": 18, "uitype": "str", "datatype": "str", "label": "步骤类型" }, { "name": "model_name", "title": "调用模型名称", "type": "str", "length": 100, "cwidth": 18, "uitype": "str", "datatype": "str", "label": "调用模型名称" }, { "name": "step_config", "title": "步骤配置JSON", "type": "text", "length": 0, "uitype": "text", "datatype": "text", "label": "步骤配置JSON" }, { "name": "input_schema", "title": "输入定义JSON", "type": "text", "length": 0, "uitype": "text", "datatype": "text", "label": "输入定义JSON" }, { "name": "output_schema", "title": "输出定义JSON", "type": "text", "length": 0, "uitype": "text", "datatype": "text", "label": "输出定义JSON" }, { "name": "timeout_seconds", "title": "超时秒数", "type": "int", "default": "300", "length": 0, "uitype": "int", "datatype": "int", "label": "超时秒数" }, { "name": "retry_count", "title": "重试次数", "type": "int", "default": "0", "length": 0, "uitype": "int", "datatype": "int", "label": "重试次数" }, { "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')}}" } } ] }] }