From 47b6dea61de58370dcb0a2b0dd79f41ce9a3771d Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Mon, 16 Sep 2024 16:09:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJySet.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJySet.js | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/SrcJySet.js b/SrcJySet.js index b3ec3bad..33cdcc85 100644 --- a/SrcJySet.js +++ b/SrcJySet.js @@ -309,7 +309,7 @@ function SRCSet() { let oldtime = parseInt(checkSourcetime.split('|')[0]); let h = checkSourcetime=="0"?0:parseInt(checkSourcetime.split('|')[1]); if (nowtime < (oldtime+h*60*60*1000)) { - return "toast://下次允许批量较验时间:" + $.dateFormat(oldtime+h*60*60*1000, "yyyy-MM-dd HH:mm:ss"); + return "toast://下次允许批量较验时间\n" + $.dateFormat(oldtime+h*60*60*1000, "yyyy-MM-dd HH:mm:ss"); } let duoselect = storage0.getMyVar('SrcJu_duoselect') || []; duoselect = duoselect.filter(v=>!v.stop); @@ -521,7 +521,26 @@ function SRCSet() { setResult(d); },duoselect.length) }), - col_type: 'scroll_button' + col_type: 'scroll_button', + extra: { + longClick: [{ + title: "清除", + js: $.toString(() => { + return $("","口令").input(()=>{ + log(globalMap0.zip(input)); + function clear(key){ + if(globalMap0.zip(key)==""){ + clearItem('checkSourcetime'); + return "toast://已清除"; + }else{ + return "toast://口令错"; + } + } + return clear(input); + }) + }) + }] + } }) }else if(guanliType=='jx'){ d.push({