From 2df78f11d946610eecaf7c9e9ca6de5d3b9ac54a Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 14 Sep 2026 12:58:17 +0800 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=E5=BB=BA=E5=8D=95=E8=A1=A8=E5=8D=95?= =?UTF-8?q?submited=E5=9B=9E=E8=B0=83=E6=8A=8AResponse=E5=BD=93JSON?= =?UTF-8?q?=E7=94=A8=E2=80=94=E2=80=94d.success=E6=81=92undefined=E8=87=B4?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E4=B8=8D=E5=88=B7=E6=96=B0/=E6=97=A0?= =?UTF-8?q?=E6=88=90=E5=8A=9F=E6=8F=90=E7=A4=BA(jjb=E6=8A=A5=E9=9A=9C:?= =?UTF-8?q?=E6=96=B0=E5=8D=95=E5=85=A5=E5=BA=93=E4=BD=86=E6=88=91=E7=9A=84?= =?UTF-8?q?=E5=B7=A5=E5=8D=95=E7=9C=8B=E4=B8=8D=E5=88=B0)=E3=80=82?= =?UTF-8?q?=E7=85=A7=E6=A1=86=E6=9E=B6=E6=83=AF=E4=BE=8B=E5=85=88await=20r?= =?UTF-8?q?esp.json()=E5=86=8D=E5=88=A4success,=E6=88=90=E5=8A=9F=E5=88=B7?= =?UTF-8?q?=E6=96=B0=E8=A1=A8=E6=A0=BC+=E5=85=B3=E5=BC=B9=E7=AA=97+Message?= =?UTF-8?q?=E6=8F=90=E7=A4=BA,=E5=A4=B1=E8=B4=A5=E5=BC=B9=E9=94=99?= =?UTF-8?q?=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wwwroot/my/new_ticket_form.ui | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wwwroot/my/new_ticket_form.ui b/wwwroot/my/new_ticket_form.ui index 650a076..847ddc6 100644 --- a/wwwroot/my/new_ticket_form.ui +++ b/wwwroot/my/new_ticket_form.ui @@ -21,6 +21,6 @@ {"wid": "attachments", "event": "changed", "actiontype": "script", "target": "self", "script": "var v=(event&&event.params)?event.params.attachments:null; var fs=v?(Array.isArray(v)?v:[v]):[]; var tot=0; for(var i=0;i9){new bricks.Message({title:'附件过多',message:'单条消息最多上传 9 个附件,已清空请重新选择'}).open(); if(w&&w.reset){w.reset();} return;} if(tot>9.5*1024*1024){new bricks.Message({title:'附件过大',message:'单次提交附件总大小不能超过 9.5MB,已清空请重新选择'}).open(); if(w&&w.reset){w.reset();} return;}"}, {"wid": "self", "event": "submited", "actiontype": "script", "target": "self", - "script": "var d=event.params||{}; await bricks.show_resp_message_or_error(d); if(d.success){ var pw=bricks.getWidgetById('new_ticket_pw',bricks.app); if(pw){pw.destroy();} var tbl=bricks.getWidgetById('my_ticket_table',bricks.app.root); if(tbl){await tbl.render({});} if(window.refreshTodo){window.refreshTodo();} }"} + "script": "var resp=event.params||{}; var d=null; try{ d=(resp&&typeof resp.json==='function')?await resp.json():resp; }catch(e){ d=null; } if(d&&d.success){ var pw=bricks.getWidgetById('new_ticket_pw',bricks.app); if(pw){pw.destroy();} var tbl=bricks.getWidgetById('my_ticket_table',bricks.app.root); if(tbl){await tbl.render({});} if(window.refreshTodo){window.refreshTodo();} new bricks.Message({title:'提交成功',message:d.message||'工单已提交,智能助手正在处理'}).open(); }else{ new bricks.Message({title:'提交失败',message:(d&&d.error)||'提交失败,请重试'}).open(); }"} ] }