diff --git a/src/main/resources/static/js/home/home.js b/src/main/resources/static/js/home/home.js index 4427113..960f6c1 100644 --- a/src/main/resources/static/js/home/home.js +++ b/src/main/resources/static/js/home/home.js @@ -12,6 +12,20 @@ layui.use(['form', 'layer', 'table', 'laydate','carousel','util'], function () { iniTable(); // layui-table-body }) + + +function openNewModule(type){ + console.log(type) + if(type==1){ + parent.parentOpen("pages/samples/samplesMge.html",152,"收样管理"); + } else if(type==2){ + parent.parentOpen("pages/basic/standard/testManagementList.html",154,"收样管理"); + } else if(type==3){ + parent.parentOpen("pages/basis/examine.html",161,"审查管理"); + } + + +} function initApproe(){ var dispatchWorkNum=0; var testNum =0; diff --git a/src/main/resources/static/js/main.js b/src/main/resources/static/js/main.js index 842defc..50456f7 100644 --- a/src/main/resources/static/js/main.js +++ b/src/main/resources/static/js/main.js @@ -1,3 +1,4 @@ +let urlIds=new Array(); initMenu(); initsy(); function initMenu(){ @@ -14,16 +15,16 @@ function initMenu(){ return; } var menu = $("#menu"); + $.each(data, function(i,item){ var a = $(""); - var css = item.css; if(css!=null && css!=""){ a.append(""); } a.append(""+item.name+""); a.attr("lay-id", item.id); - + urlIds.push(item.id); var href = item.href; if(href != null && href != ""){ a.attr("data-url", href); @@ -35,11 +36,10 @@ function initMenu(){ } li.append(a); menu.append(li); - //多级菜单 setChild(li, item.child) - }); + localStorage.setItem("uelData",urlIds.join("@")); } else if (result.status === 500) { layer.alert(result.msg, {icon: 2}) } @@ -69,7 +69,7 @@ function setChild(parentElement, child){ var ca = $(""); ca.attr("data-url", item2.href); ca.attr("lay-id", item2.id); - + urlIds.push(item2.id) var css2 = item2.css; if(css2!=null && css2!=""){ ca.append(""); @@ -82,9 +82,7 @@ function setChild(parentElement, child){ var dl = $("
|
-
+ 待派工
0
更新至2024-07-18
|
-
+ 待试验
0
更新至2024-07-18
|
-
+ 待重新审阅
0
更新至2024-07-18
@@ -59,21 +59,21 @@
|
|
-
+ 待审阅
0
更新至2024-07-18
|
-
+ 待审核
0
更新至2024-07-18
|
-
+ 待审批
0
更新至2024-07-18
|