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/work-audit.js |   84 +++++++++++++++--------------------------
 1 files changed, 31 insertions(+), 53 deletions(-)

diff --git a/igds-app/js/admin/work-audit.js b/igds-app/js/admin/work-audit.js
index d7dd63c..3058289 100644
--- a/igds-app/js/admin/work-audit.js
+++ b/igds-app/js/admin/work-audit.js
@@ -1,6 +1,7 @@
 var url = null;
 var auditList = null;
 var workAuditData = null;
+var dateTime;
 //宸ュ崟瀹℃牳鍒楄〃
 var data = {
 	"interfaceId": "5703",
@@ -26,14 +27,29 @@
 function init() {
 	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;
 	data1.tokenAuth = user.tokenAuth;
 	data.data.deptId = selectDeptId;
-
+	dateTime = getDate(new Date());
 	getAuditList();
 }
-
+//鏃ユ湡鏍煎紡鍖杫yyy-MM-dd
+function getDate(date) {
+	var year = date.getFullYear();
+	var month, day,hour,minute;
+	month = date.getMonth() + 1;
+	if (month > 0 && month <= 9) {
+		month = "0" + month;
+	}
+	day = date.getDate()
+	if (day > 0 && day <= 9) {
+		day = "0" + day
+	}
+	hour = date.getHours();
+	minute = date.getMinutes();
+	return year + "-" + month + "-" + day + " "+ hour + ":" + minute
+}
 //鑾峰彇宸ュ崟瀹℃牳鍒楄〃
 function getAuditList() {
 	console.log(JSON.stringify(data.data),"work-aduit","宸ュ崟瀹℃牳鍒楄〃")
@@ -59,55 +75,6 @@
 
 		}
 	})
-	// auditList = [{
-	// 		"id": "59",
-	// 		"deptName": "1鍙蜂粨",
-	// 		"applyUser": "in anim exercitation",
-	// 		"applyUserName": "閮濆啗",
-	// 		"type": "exercitation reprehenderit sint",
-	// 		"startTime": "1974-07-05 21:56",
-	// 		"endTime": "2013-08-19 05:43",
-	// 		"info": "sed adipisicing quis irure",
-	// 		"depotId": "90",
-	// 		"depotName": "鍗充紶鐘舵柊浜旈檯"
-	// 	},
-	// 	{
-	// 		"id": "39",
-	// 		"deptName": "1鍙蜂粨",
-	// 		"applyUser": "dolor laboris",
-	// 		"applyUserName": "琚佸己",
-	// 		"type": "sed et sit irure eu",
-	// 		"startTime": "2015-10-25 12:30",
-	// 		"endTime": "1971-04-18 19:34",
-	// 		"info": "reprehenderit qui quis pariatur anim",
-	// 		"depotId": "89",
-	// 		"depotName": "褰撳叆鐗╄繕绠�"
-	// 	},
-	// 	{
-	// 		"id": "55",
-	// 		"deptName": "3鍙蜂粨",
-	// 		"applyUser": "quis",
-	// 		"applyUserName": "瀹嬩附",
-	// 		"type": "in",
-	// 		"startTime": "1994-10-12 18:25",
-	// 		"endTime": "2008-01-19 00:26",
-	// 		"info": "ex ullamco id dolor",
-	// 		"depotId": "42",
-	// 		"depotName": "鏂板父鎶�浣嶄腑"
-	// 	},
-	// 	{
-	// 		"id": "50",
-	// 		"deptName": "2鍙蜂粨",
-	// 		"applyUser": "dolor",
-	// 		"applyUserName": "榛勮秴",
-	// 		"type": "nostrud elit",
-	// 		"startTime": "2018-07-07 10:25",
-	// 		"endTime": "2000-11-07 10:02",
-	// 		"info": "et minim",
-	// 		"depotId": "53",
-	// 		"depotName": "浜虹瀹冨啗棰�"
-	// 	}
-	// ]
 }
 
 function renderAuditList() {
@@ -128,8 +95,19 @@
 			html += '</div></div></div></li>';
 		})
 	} else {
+		html += '<li><div class="con"><div class="top"><div class="left">';
+		html += '<div class="line"><div class="t">鐢宠浜�: </div><div class="v">鏆傛棤宸ュ崟瀹℃牳</div></div></div>';
+		html += '<div class="right"><div class="icon" info="鏆傛棤宸ュ崟瀹℃牳淇℃伅"><img src="images/icons/g-i26.png" alt=""></div></div></div>';
 		html +=
-			'<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤宸ュ崟瀹℃牳淇℃伅</div></div></li>';
+			'<div class="box"><ul class="gd-list"><li><a href="" class="con" style="background-image: url(images/icons/a-bg12.png);">';
+		html += '<div class="tit">涓氬姟绫诲瀷:</div><div class="name">--</div></a></li>';
+		html += '<li><a href="" class="con" style="background-image: url(images/icons/a-bg13.png);">';
+		html += '<div class="tit">鍏宠仈浠撳簱:</div><div class="name">--</div></a></li></ul>';
+		html += '<div class="time">鏈夋晥鏈�: ' + dateTime + '  鑷�  ' + dateTime + ' </div>';
+		html += '</div></div></div></li>';
+		
+		// html +=
+		// 	'<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding: 18px;">鏆傛棤宸ュ崟瀹℃牳淇℃伅</div></div></li>';
 	}
 	$("#handleList").html(html);
 }

--
Gitblit v1.9.3