YYC
2026-03-03 59c99660816a0833f74ff1162b47bbf05d6805b5
igdss-app/js/admin/index.js
@@ -1,5 +1,6 @@
var listDept = null;
var url;
var userType;
var slider = mui(".mui-slider");
var data = {
   "interfaceId": "5002",
@@ -33,17 +34,19 @@
   mui('.mui-off-canvas-wrap').offCanvas().toggle();
   var id = this.getAttribute("id");
   var dept = listDept[id];
   $("#deptName").html("所在库区:" + dept.name);
   $("#deptName").html("所在库区:" + dept.kqmc);
   console.log(JSON.stringify(dept.id))
   localStorage.setItem('selectDeptId', JSON.stringify(dept.id));
});
//渲染分库列表
function renderListDept() {
   if (listDept) {
      var html = '';
      $.each(listDept, function(index, item) {
         html += '<li><a id="' + index + '" href="" class="link">';
         html += '<span class="t">' + item.name + '</span>';
         html += '<span class="t">' + item.kqmc + '</span>';
         html += '<span class="mui-icon mui-icon-arrowright"></span>';
         html += '</a></li>';
      })
@@ -92,6 +95,15 @@
   
   var id = this.getAttribute("id");
   if (id) {
      if(id.includes("work-manager")&userType!="30"){
         mui.openWindow({
            url: id + ".html",
            id: id
         })
         return;
      }
      var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId'));
      if(selectDeptId){
         mui.openWindow({
@@ -105,24 +117,3 @@
      mui.alert('无权查看此功能!', '提示', ["确定"], function() {}, "div");
   }
});
// //跳转气象页面
// function getWeatherView() {
//    mui.openWindow({
//       url: "./weather.html?url=" +
//          "https://widget-page.heweather.net/h5/index.html?md=03456&bg=1&lc=accu&key=3cb8c045697b43c2b858751a145464aa&demo=true&v=_1617326246190&demo=true",
//       id: 'weather'
//    })
// }
// //跳转设备操作页面
// function getDeviceView(tag, typeName) {
//    mui.openWindow({
//       url: "device-listDepot.html",
//       id: "device-listDepot",
//       extras: {
//          tag: tag,
//          typeName: typeName
//       }
//    })
// }