YYC
2025-05-15 2df906a447195f9786dd468512ea895d6cc18532
igds-app/js/admin/index.js
@@ -8,7 +8,8 @@
   "reqDateTime": new Date(),
   "tokenAuth": "",
   "data": {
      "companyId": ""
      "companyId": "",
      "deptId":""
   }
};
@@ -33,8 +34,8 @@
   mui('.mui-off-canvas-wrap').offCanvas().toggle();
   var id = this.getAttribute("id");
   var dept = listDept[id];
   $("#deptName").html("所在库区:" + dept.name);
   localStorage.setItem('selectDeptId', JSON.stringify(dept.id));
   $("#deptName").html("所在库区:" + dept.deptName);
   localStorage.setItem('selectDeptId', JSON.stringify(dept.deptId));
});
//渲染分库列表
@@ -43,7 +44,7 @@
      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.deptName + '</span>';
         html += '<span class="mui-icon mui-icon-arrowright"></span>';
         html += '</a></li>';
      })
@@ -53,6 +54,8 @@
//获取库区列表
function getListDept() {
   console.log(url)
   console.log(JSON.stringify(data.data))
   //请求
   mui.ajax(url, {
      type: "POST",