| | |
| | | </li> |
| | | </ul> |
| | | <ul class="layui-nav layui-layout-right" lay-filter="layadmin-layout-right"> |
| | | |
| | | <li class="layui-nav-item" lay-unselect> |
| | | <a href="系统管理/菜单自定义/Xt_DefineMenuDisplay.html">菜单自定义</a> |
| | | </li> |
| | | <li class="layui-nav-item" lay-unselect> |
| | | <a href="javascript:void(0);"> |
| | | <!--<a lay-href="app/message/index.html" layadmin-event="message" lay-text="消息中心">--> |
| | |
| | | // icon: 4, skin: 'layui-layer-lan', title: "温馨提示", closeBtn: 0, btn: ['重新登录'] |
| | | // }, function () { window.location.href = "user/login.html"; }); |
| | | //} |
| | | //判断用户是移动端还是PC端 |
| | | var judgeMorPCflag = judgeMorPC(); |
| | | if (!judgeMorPCflag) {//移动端 |
| | | var dd = '<dd><a href="车间管理/工序流转/MES_StationInBill_PDA.html">工序进站接收单PDA</a ></dd > <dd><a href="车间管理/工序流转/MES_StationOutBill_PDA.html">工序出站汇报单PDA</a></dd>'; |
| | | $("#append").prepend(dd); |
| | | } |
| | | if (!judgeMorPCflag) {//移动端 |
| | | window.location.href = 'index_Mobile.html' |
| | | } |
| | | |
| | | //获取菜单列表数据 |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/MenuList", |
| | | type: "GET", |
| | | async: false, |
| | | success: function (data) { |
| | | var data = JSON.parse(data.data); |
| | | console.log(data); |
| | | MenuMain(data); |
| | | }, |
| | | error: function (data) { |
| | | layer.alert("发生错误!", { icon: 5 }); |
| | | |
| | | //#region 页面初始化 |
| | | set_sideMenuDisPlay(); |
| | | //#endregion |
| | | |
| | | |
| | | //#region |
| | | |
| | | //#endregion |
| | | |
| | | //#region 页面其它方法 |
| | | //显示侧边菜单 |
| | | function set_sideMenuDisPlay() { |
| | | //判断用户是移动端还是PC端 |
| | | var judgeMorPCflag = judgeMorPC(); |
| | | if (!judgeMorPCflag) {//移动端 |
| | | var dd = '<dd><a href="车间管理/工序流转/MES_StationInBill_PDA.html">工序进站接收单PDA</a ></dd > <dd><a href="车间管理/工序流转/MES_StationOutBill_PDA.html">工序出站汇报单PDA</a></dd>'; |
| | | $("#append").prepend(dd); |
| | | } |
| | | }); |
| | | if (!judgeMorPCflag) {//移动端 |
| | | window.location.href = 'index_Mobile.html' |
| | | } |
| | | |
| | | //获取菜单列表数据 |
| | | $.ajax({ |
| | | url: GetWEBURL() + "/Web/MenuList", |
| | | type: "GET", |
| | | async: false, |
| | | data: { "HMakeName": sessionStorage["HUserName"] }, |
| | | success: function (data) { |
| | | var data = JSON.parse(data.data); |
| | | console.log(data); |
| | | MenuMain(data); |
| | | }, |
| | | error: function (data) { |
| | | layer.alert("发生错误!", { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | //遍历生成主菜单 |
| | | function MenuMain(data) { |
| | | |
| | |
| | | } |
| | | return subStr; |
| | | } |
| | | //#endregion |
| | | }); |
| | | |
| | | |
| | | document.getElementById('UserName').innerHTML = sessionStorage["HUserName"]; |
| | | document.getElementById('Organization').innerHTML = sessionStorage["Organization"]; |