79 lines
4.6 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"widgettype": "VBox",
"options": {"width": "100%", "height": "100%", "padding": "0"},
"subwidgets": [
{
"widgettype": "HBox",
"options": {"width": "100%", "alignItems": "center", "padding": "16px 24px 8px 24px", "cheight": 6, "gap": "12px"},
"subwidgets": [
{"widgettype": "Title2", "options": {"otext": "投标产线", "text": "投标产线", "i18n": true}},
{"widgettype": "Text", "options": {"otext": "收到招标文件(自动立项)→ 解析 → QC契合度审核 → 资质准备 → 分章节编写 → 评审 → 合成 → 评分 → 交付", "text": "收到招标文件(自动立项)→ 解析 → QC契合度审核 → 资质准备 → 分章节编写 → 评审 → 合成 → 评分 → 交付", "i18n": true, "cfontsize": 0.9, "color": "#94a3b8"}},
{"widgettype": "Filler"},
{
"widgettype": "Button",
"id": "new_session_btn",
"options": {"label": " 新建会话", "css": "small"},
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "script",
"target": "self",
"script": "var tp=bricks.getWidgetById('session_tabs',bricks.app);if(!tp)return;var sid='s'+Date.now()+'_'+Math.floor(Math.random()*100000);var n=tp.opts.items.length+1;tp.open_tab({name:'session_'+sid,label:'会话 '+n,removable:true,content:{widgettype:'VBox',options:{css:'filler',width:'100%',height:'100%'},subwidgets:[{widgettype:'urlwidget',options:{url:'/pipeline_core/api/agent_menus.dspy?session_id='+sid+'&pipeline_id=bidding_general',method:'GET'}},{widgettype:'AgentIO',options:{css:'filler',margin:'0 24px 24px 24px',url:'/pipeline_core/api/agent_chat.dspy?session_id='+sid+'&pipeline_id=bidding_general',model_dataurl:'/pipeline_core/api/agent_model_options.dspy?session_id='+sid+'&pipeline_id=bidding_general',model_cwidth:14,placeholder:'输入你的需求...'}}]}});"
}]
},
{
"widgettype": "Button",
"id": "task_tree_btn",
"options": {"label": "📋 任务树", "css": "small"},
"binds": [{
"wid": "self",
"event": "click",
"actiontype": "urlwidget",
"target": "Popup",
"popup_options": {"title": "投标项目任务树", "width": "92%", "height": "88%", "auto_open": true},
"url": "/pipeline-bidding/bid_task_tree_popup.ui"
}]
}
]
},
{
"widgettype": "TabPanel",
"id": "session_tabs",
"options": {
"css": "filler",
"width": "100%",
"height": "100%",
"tab_pos": "top",
"items": [
{
"name": "session_default",
"label": "会话 1",
"removable": false,
"content": {
"widgettype": "VBox",
"options": {"css": "filler", "width": "100%", "height": "100%"},
"subwidgets": [
{
"widgettype": "urlwidget",
"options": {"url": "{{entire_url('/pipeline_core/api/agent_menus.dspy')}}?session_id=default_bidding_general&pipeline_id=bidding_general", "method": "GET"}
},
{
"widgettype": "AgentIO",
"options": {
"css": "filler",
"margin": "0 24px 24px 24px",
"url": "/pipeline_core/api/agent_chat.dspy?session_id=default_bidding_general&pipeline_id=bidding_general",
"model_dataurl": "/pipeline_core/api/agent_model_options.dspy?session_id=default_bidding_general&pipeline_id=bidding_general",
"model_cwidth": 14,
"placeholder": "输入你的需求..."
}
}
]
}
}
]
}
}
]
}