From fba8c3abbbf702f546d3599ebe946897278e0778 Mon Sep 17 00:00:00 2001 From: butubb <1422726308@qq.com> Date: Sat, 8 Aug 2026 17:01:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BE=AA=E7=8E=AF=E5=9D=97/=E8=BE=93?= =?UTF-8?q?=E5=85=A5=E6=96=87=E5=AD=97=E6=A8=A1=E5=BC=8F=E9=87=8D=E5=BC=80?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B8=8D=E4=B8=80=E8=87=B4=20-=20=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E6=97=B6=E6=8C=89=E4=BF=9D=E5=AD=98=E5=80=BC=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=AF=B9=E5=BA=94=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _toggleLoopMode/_toggleInputMode 只在 select onchange 时调用,重开编辑不触发, 导致"按时间"被选中但右侧仍显示次数框。改为渲染时直接按保存的 loop_mode/mode 决定显示轮次字段还是时长字段/随机还是指定文字。 --- templates/admin/monitor.html | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/templates/admin/monitor.html b/templates/admin/monitor.html index 8561516..f9297b0 100644 --- a/templates/admin/monitor.html +++ b/templates/admin/monitor.html @@ -1396,18 +1396,20 @@ var _stepEditor={ h+='
'; h+='
'; }else if(step.type==='input_text'){ + const im=p.mode==='fixed'?'fixed':'random'; h+='
'; - h+='
'; - h+=''; + ''+ + ''; + h+='
'; + h+='
'; h+='
需先用"点击元素"步骤定位到输入框,本步骤只负责输入文字
'; }else if(step.type==='loop'){ + const lm=p.loop_mode==='time'?'time':'rounds'; h+='
'+ - '
'+ - '
'; + ''+ + ''+ + '
'+ + '
'; h+='
将下方子步骤(拖拽到本卡片内)循环执行指定轮次或时长;按时间时配合"运行时长上限"看预计结束时间
'; }else if(step.type==='group'){ h+='
动作组:按顺序执行下方子步骤一次。把多个步骤打包成一个可复用的整体。
';