From dfe46f3b7c399a8e043daa61de42afb5e9ac4686 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Thu, 1 Feb 2024 09:54:03 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJuPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJuPublic.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/SrcJuPublic.js b/SrcJuPublic.js index 1a510703..098fe671 100644 --- a/SrcJuPublic.js +++ b/SrcJuPublic.js @@ -37,16 +37,22 @@ let erdatalist = yxdatalist.filter(it=>{ }); //获取类型名称数组 function getTypeNames(is) { - is = is || 1; let snames = []; if(is==1){ - snames = runTypes; - }else{ runTypes.forEach(it=>{ if(stopTypes.indexOf(it)==-1){ snames.push(it); } }) + }else if(is==2){ + runTypes.forEach(it=>{ + if(stopTypes.indexOf(it)==-1){ + snames.push(it); + } + }) + snames.splice(snames.indexOf("其他"), 1); + }else{ + snames = runTypes; } return snames; }