Commit 946716b8fffcc0af67c6751ecb8966ff71a8bc00
1 parent
677ea2f3
集合平台 导航
Showing
1 changed file
with
12 additions
and
0 deletions
js/index.js
@@ -61,6 +61,18 @@ var fun={ | @@ -61,6 +61,18 @@ var fun={ | ||
61 | var sysOpProList=JSON.parse(sysOpList); | 61 | var sysOpProList=JSON.parse(sysOpList); |
62 | 62 | ||
63 | console.log(sysOpProList) | 63 | console.log(sysOpProList) |
64 | + var arrlist = []; | ||
65 | + var arrnewList = []; | ||
66 | + $.each(sysOpProList,function (index,item) { | ||
67 | + if(item.projectCode==="BUSINESS_PLATFORM"){ | ||
68 | + arrlist.push(item) | ||
69 | + }else{ | ||
70 | + arrnewList.push(item) | ||
71 | + } | ||
72 | + }) | ||
73 | + console.log(arrlist) | ||
74 | + var sysOpProList = arrlist.concat(arrnewList) | ||
75 | + console.log(sysOpProList) | ||
64 | for(var i=0;i<sysOpProList.length;i++){ | 76 | for(var i=0;i<sysOpProList.length;i++){ |
65 | if(sysOpProList[i].projectCode=='BUSINESS_PLATFORM'){ | 77 | if(sysOpProList[i].projectCode=='BUSINESS_PLATFORM'){ |
66 | 78 |