From 0adbc72b09cbc1fd3c0f59cb65c3c476d65adc15 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期三, 17 五月 2023 18:36:02 +0800
Subject: [PATCH] 工单申请

---
 igds-app/js/admin/security-patrol.js |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)

diff --git a/igds-app/js/admin/security-patrol.js b/igds-app/js/admin/security-patrol.js
index 8c84ff7..1e58491 100644
--- a/igds-app/js/admin/security-patrol.js
+++ b/igds-app/js/admin/security-patrol.js
@@ -49,9 +49,10 @@
 	data1.tokenAuth = user.tokenAuth;
 	data2.tokenAuth = user.tokenAuth;
 	data.data.deptId = selectDeptId;
-	data2.data.deptId = selectDeptId;
+	data1.data.deptId = selectDeptId;
 	dateTime = getDate(new Date())
 	document.getElementById("date").value = dateTime;
+	console.log(JSON.stringify(data.data),"鐢靛瓙宸℃洿璁板綍","security-patrol")
 	//鑾峰彇宸℃洿璁板綍
 	getPatrolList()
 
@@ -113,7 +114,7 @@
 			} else {
 				renderPatrol();
 				mui.toast(result.msg);
-				console.log(JSON.stringify(result))
+				// console.log(JSON.stringify(result))
 			}
 		},
 		error: function() {
@@ -151,8 +152,7 @@
 	if (PatrolList && PatrolList.length > 0) {
 		$.each(PatrolList, function(index, item) {
 			html += '<li><div class="item"><div class="top">'
-			html += '<div class="date">' + item.createTime + '</div><div class="r-btn" id = "' + item.id +
-				'">鏌ョ湅鐓х墖</div></div>';
+			html += '<div class="date">' + item.createTime + '</div><div class="r-btn" id = "' + item.id + '">鏌ョ湅鐓х墖</div></div>';
 			html += '<div class="cards"><div class="cd"><div class="con user">'
 			html += '<div class="tit">鎵撳崱浜�</div><div class="txt">' + item.userName + '</div></div></div>';
 			html += '<div class="cd"><div class="con loc"><div class="tit">鍧愭爣</div>'
@@ -217,8 +217,6 @@
 	$('.m-pop').fadeOut();
 });
 
-
-
 //浣跨敤鐩告満鎷嶇収
 function cameraImg() {
 	var cmr = plus.camera.getCamera();
@@ -245,7 +243,7 @@
 		},
 		function(t, status) { //涓婁紶瀹屾垚
 			if (status == 200) {
-				var html = '';
+				// var html = '';
 				var obj = JSON.parse(t.responseText);
 				mui.toast("涓婁紶鎴愬姛锛�");
 				data1.data.imgName = obj.data.fileName;
@@ -290,8 +288,6 @@
 		}
 	})
 }
-
-
 
 // function getLatLon() {
 // 	plus.geolocation.getCurrentPosition(function(position) {

--
Gitblit v1.9.3