From 2df906a447195f9786dd468512ea895d6cc18532 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 15 五月 2025 14:53:54 +0800
Subject: [PATCH] APP3.5开发

---
 igds-app/js/admin/depot-list.js |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/igds-app/js/admin/depot-list.js b/igds-app/js/admin/depot-list.js
index 4fdc9fa..1891c19 100644
--- a/igds-app/js/admin/depot-list.js
+++ b/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") {

--
Gitblit v1.9.3