YYC
2025-05-15 2df906a447195f9786dd468512ea895d6cc18532
igds-app/js/admin/depot-list.js
@@ -23,7 +23,7 @@
   
   var user = JSON.parse(localStorage.getItem('user'));
   var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId'));
   url = user.url + "/api-phone/v35/gateway";
   url = user.url + "/api/phone/v35/gateway";
   data.tokenAuth = user.tokenAuth;
   data.data.deptId = selectDeptId;
   getData();
@@ -41,7 +41,6 @@
      success: function(result) {
         if (result.code == "0000") {
            depotList = result.data;
            // console.log(JSON.stringify(depotList))
            renderDepotList();
         } else {
            mui.alert(result.msg, '提示', ["确定"], function() {}, "div");
@@ -55,6 +54,7 @@
//渲染
function renderDepotList() {
   if (depotList && depotList.length > 0) {
      var html = '';
      $.each(depotList, function(index, item) {
@@ -73,7 +73,7 @@
            html += '<img src="images/a9.png">';
         }
         
         html += '</div><div class="txt">' + item.name + '</div>';
         html += '</div><div class="txt">' + item.depotName + '</div>';
         //根据仓库状态显示不同颜色
         if(item.depotStatus == "01"){
@@ -116,9 +116,9 @@
//功能模块跳转
mui(".mui-content").on("tap", ".mui-scroll-wrapper ul li a", function() {
   var index = this.getAttribute("id");
   var depotId = depotList[index].id;
   var depotId = depotList[index].depotId;
   var depotType = depotList[index].depotType;
   var depotName = depotList[index].name;
   var depotName = depotList[index].depotName;
   var html = null;
   //粮情详细
   if (tag == "grain") {
@@ -134,7 +134,7 @@
   }
   //气调操作
   if (tag == "n2") {
      html = "device-n2";
      html = "device-modeN2";
   }
   //温控操作
   if (tag == "temp") {