From 1002ee677c8d08ca1d8826ab8da30aabf14dbbc0 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期二, 03 三月 2026 16:10:55 +0800
Subject: [PATCH] APP功能修改

---
 igdss-app/js/admin/security-snapshot.js |    1 +
 igdss-app/js/admin/security-patrol.js   |    1 +
 igdss-app/js/admin/grain-quantity.js    |   41 +++++++++++++++++++----------------------
 igdss-app/js/admin/work-audit.js        |    2 ++
 igdss-app/grain-quantity.html           |    6 +++---
 igdss-app/js/admin/height-all.js        |    1 +
 igdss-app/js/admin/security-ai.js       |    1 +
 7 files changed, 28 insertions(+), 25 deletions(-)

diff --git a/igdss-app/grain-quantity.html b/igdss-app/grain-quantity.html
index 824b527..b0f8001 100644
--- a/igdss-app/grain-quantity.html
+++ b/igdss-app/grain-quantity.html
@@ -20,11 +20,11 @@
 		</header>
 		<div class="mui-content">
 			<div class="g-date_box">
-				<span class="day prev">鍓嶄竴澶�</span>
+				<span class="day prev">鍓嶄竴鏈�</span>
 				<div class="inpbox" onclick="chooseDate();">
 					<input id="date" type="text" value="2022-04-15" readonly class="inp" />
 				</div>
-				<span class="day next">鍚庝竴澶�</span>
+				<span class="day next">鍚庝竴鏈�</span>
 			</div>
 			<div class="mui-scroll-wrapper index-dzxg">
 				<div class="mui-scroll">
@@ -105,7 +105,7 @@
 							</div>
 						</li>
 					 -->
-					 <li><div class="item"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤宸ュ崟瀹℃牳淇℃伅</div></div></li>
+					 <li><div class="notItem"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤鏁伴噺鐩戞祴淇℃伅</div></div></li>
 					</ul>
 				</div>
 			</div>
diff --git a/igdss-app/js/admin/grain-quantity.js b/igdss-app/js/admin/grain-quantity.js
index 4c7aa6a..2a37ccf 100644
--- a/igdss-app/js/admin/grain-quantity.js
+++ b/igdss-app/js/admin/grain-quantity.js
@@ -2,18 +2,18 @@
 var uploadUrl = null;
 var quantityList = null;
 var ImgFile = null;
-var dateTime;
+var dateTime1;
 var length;
 var currentImageIndex;
 //鐢靛瓙宸℃洿璁板綍
 var data = {
 	"interfaceId": "5207",
 	"outId": "10207",
-	"reqDateTime": new Date(),
+	"reqdateTime1": new Date(),
 	"tokenAuth": "",
 	"data": {
 		"deptId": "",
-		"dateTime": "",
+		"dateTime1": "",
 	}
 };
 
@@ -21,7 +21,7 @@
 var data2 = {
 	"interfaceId": "5208",
 	"outId": "10208",
-	"reqDateTime": new Date(),
+	"reqdateTime1": new Date(),
 	"tokenAuth": "",
 	"data": {
 		"id": "",
@@ -35,8 +35,8 @@
 	data.tokenAuth = user.tokenAuth;
 	data2.tokenAuth = user.tokenAuth;
 	data.data.deptId = selectDeptId;
-	dateTime = getDate(new Date())
-	document.getElementById("date").value = dateTime;
+	dateTime1 = getDate(new Date())
+	document.getElementById("date").value = dateTime1;
 	//鑾峰彇鏁伴噺妫�娴嬪垪琛�
 	getQuantityList()
 
@@ -50,20 +50,16 @@
 	if (month > 0 && month <= 9) {
 		month = "0" + month;
 	}
-	day = date.getDate();
-	if (day > 0 && day <= 9) {
-		day = "0" + day;
-	}
-	return year + "-" + month + "-" + day
+	return year + "-" + month
 }
 //鍔犲噺澶╂暟
 function addAndReduceMonth(tag) {
 
-	var date = new Date(dateTime);
-	date = date.setDate(date.getDate() + tag);
+	var date = new Date(dateTime1);
+	date = date.setMonth(date.getMonth() + tag);
 	date = new Date(date);
-	dateTime = getDate(date);
-	document.getElementById("date").value = dateTime;
+	dateTime1 = getDate(date);
+	document.getElementById("date").value = dateTime1;
 	//鑾峰彇鏁伴噺妫�娴嬪垪琛�
 	getQuantityList()
 }
@@ -71,16 +67,16 @@
 //閫夋嫨鏃ユ湡
 function chooseDate() {
 	var dtpicker = new mui.DtPicker({
-		type: "date", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡 
+		type: "month", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡 
 		// beginDate: new Date(2015, 04, 25), //璁剧疆寮�濮嬫棩鏈� 
 		// endDate: new Date(2016, 04, 25), //璁剧疆缁撴潫鏃ユ湡 
-		value: dateTime
+		value: dateTime1
 	})
-	var time = dateTime;
+	var time = dateTime1;
 	dtpicker.show(function(e) {
-		dateTime = e.value;
+		dateTime1 = e.value;
 		document.getElementById("date").value = e.value
-		if (time != dateTime) {
+		if (time != dateTime1) {
 			getQuantityList();
 		}
 	})
@@ -88,7 +84,7 @@
 //鑾峰彇鏁伴噺妫�娴嬪垪琛�
 function getQuantityList() {
 	//璧嬪�煎弬鏁扮殑鏃ユ湡
-	data.data.dateTime = dateTime;
+	data.data.dateTime1 = dateTime1;
 	console.log(JSON.stringify(data.data), "鏁伴噺妫�娴�", "grain-quantity")
 	mui.ajax(url, {
 		type: "POST",
@@ -101,6 +97,7 @@
 				quantityList = result.data;
 				renderPatrol();
 			} else {
+				quantityList = ''
 				renderPatrol();
 				mui.toast(result.msg);
 				console.log(JSON.stringify(result))
@@ -124,7 +121,7 @@
 		})
 	} else {
 			html +=
-				'<li><div class="notItem"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤宸ュ崟瀹℃牳淇℃伅</div></div></li>';
+				'<li><div class="notItem"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤鏁伴噺鐩戞祴淇℃伅</div></div></li>';
 
 	}
 	$("#recordList").html(html)
diff --git a/igdss-app/js/admin/height-all.js b/igdss-app/js/admin/height-all.js
index e040b1a..2e30885 100644
--- a/igdss-app/js/admin/height-all.js
+++ b/igdss-app/js/admin/height-all.js
@@ -42,6 +42,7 @@
 				heightList = result.data;
 				renderHeight();
 			} else {
+				heightList = ''
 				renderHeight();
 				mui.toast(result.msg);
 				console.log(JSON.stringify(result))
diff --git a/igdss-app/js/admin/security-ai.js b/igdss-app/js/admin/security-ai.js
index c078be2..a0761b4 100644
--- a/igdss-app/js/admin/security-ai.js
+++ b/igdss-app/js/admin/security-ai.js
@@ -105,6 +105,7 @@
 				PatrolList = result.data;
 				renderPatrol();
 			} else {
+				PatrolList=''
 				renderPatrol();
 				mui.toast(result.msg);
 			}
diff --git a/igdss-app/js/admin/security-patrol.js b/igdss-app/js/admin/security-patrol.js
index 6ac3f02..9f13221 100644
--- a/igdss-app/js/admin/security-patrol.js
+++ b/igdss-app/js/admin/security-patrol.js
@@ -132,6 +132,7 @@
 				PatrolList = result.data;
 				renderPatrol();
 			} else {
+				PatrolList = ''
 				renderPatrol();
 				mui.toast(result.msg);
 				// console.log(JSON.stringify(result))
diff --git a/igdss-app/js/admin/security-snapshot.js b/igdss-app/js/admin/security-snapshot.js
index c696913..30bdda3 100644
--- a/igdss-app/js/admin/security-snapshot.js
+++ b/igdss-app/js/admin/security-snapshot.js
@@ -105,6 +105,7 @@
 				PatrolList = result.data;
 				renderPatrol();
 			} else {
+				PatrolList = ''
 				renderPatrol();
 				mui.toast(result.msg);
 				// console.log(JSON.stringify(result))
diff --git a/igdss-app/js/admin/work-audit.js b/igdss-app/js/admin/work-audit.js
index 5d18732..5e90dad 100644
--- a/igdss-app/js/admin/work-audit.js
+++ b/igdss-app/js/admin/work-audit.js
@@ -71,11 +71,13 @@
 				auditList = result.data;
 				renderAuditList();
 			} else {
+				auditList = ''
 				renderAuditList();
 				mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div");
 			}
 		},
 		error: function() {
+			auditList = ''
 			renderAuditList();
 			mui.alert('绯荤粺绻佸繖,璇烽噸鏂扮櫥褰曞皾璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div");
 

--
Gitblit v1.9.3