| | |
| | | <li> |
| | | <a id="work-manager" class="con"> |
| | | <div class="icon"> |
| | | <img src="images/s-p9.png" alt=""> |
| | | <img src="images/s-p5.png" alt=""> |
| | | </div> |
| | | <div class="txt">监管管理</div> |
| | | </a> |
| | |
| | | <li> |
| | | <a id="grain-manager" class="con"> |
| | | <div class="icon"> |
| | | <img src="images/s-p4.png" alt=""> |
| | | <img src="images/s-p1.png" alt=""> |
| | | </div> |
| | | <div class="txt">智能仓储</div> |
| | | </a> |
| | |
| | | mui.plusReady(function() { |
| | | var user = JSON.parse(localStorage.getItem('user')); |
| | | data.tokenAuth = user.tokenAuth; |
| | | url = user.url + "/api-phone/gateway"; |
| | | |
| | | url = user.url + "/api/phone/v1/gateway"; |
| | | userType = user.userType; |
| | | console.log(JSON.stringify(user)) |
| | | $("#cname").html(user.cname); |
| | | if(userType=="30"){ |
| | | document.getElementById('work-manager').closest('li').remove(); |
| | | return; |
| | | } |
| | | if (user.companyId == user.deptId) { |
| | | data.data.companyId = user.companyId; |
| | | data.data.deptId = user.deptId; |
| | | getListDept(); |
| | | } else { |
| | | $("#deptName").html("所在库区:" + user.deptName); |