From 946716b8fffcc0af67c6751ecb8966ff71a8bc00 Mon Sep 17 00:00:00 2001 From: liuqimichale <123456lq> Date: Wed, 5 Dec 2018 21:07:04 +0800 Subject: [PATCH] 集合平台 导航 --- js/index.js | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/js/index.js b/js/index.js index 36e59b9..4232dd8 100644 --- a/js/index.js +++ b/js/index.js @@ -61,6 +61,18 @@ var fun={ var sysOpProList=JSON.parse(sysOpList); console.log(sysOpProList) + var arrlist = []; + var arrnewList = []; + $.each(sysOpProList,function (index,item) { + if(item.projectCode==="BUSINESS_PLATFORM"){ + arrlist.push(item) + }else{ + arrnewList.push(item) + } + }) + console.log(arrlist) + var sysOpProList = arrlist.concat(arrnewList) + console.log(sysOpProList) for(var i=0;i