From 1ab3b2b780c69b1d063ac21b9988593e94f67670 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期五, 09 六月 2023 10:16:19 +0800
Subject: [PATCH] 工单无数据调整

---
 igds-app/js/admin/work-record.js |  123 ++++++++++++++++++++++-------------------
 1 files changed, 66 insertions(+), 57 deletions(-)

diff --git a/igds-app/js/admin/work-record.js b/igds-app/js/admin/work-record.js
index bcbea44..958753a 100644
--- a/igds-app/js/admin/work-record.js
+++ b/igds-app/js/admin/work-record.js
@@ -35,7 +35,7 @@
 				renderRecordList();
 			} else {
 				renderRecordList();
-				mui.alert(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div");
+				mui.toast(result.msg, '鎻愮ず', ["纭畾"], function() {}, "div");
 			}
 		},
 		error: function() {
@@ -43,55 +43,57 @@
 			mui.alert('绯荤粺绻佸繖,璇烽噸鏂扮櫥褰曞皾璇曪紒', '鎻愮ず', ["纭畾"], function() {}, "div");
 		}
 	})
-	recordList = [{
-			"id": "59",
-			"deptName": "1鍙蜂粨",
-			"status": "10",
-			"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鍙蜂粨",
-			"status": "20",
-			"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鍙蜂粨",
-			"status": "20",
-			"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鍙蜂粨",
-			"status": "10",
-			"applyUserName": "榛勮秴",
-			"type": "nostrud elit",
-			"startTime": "2018-07-07 10:25",
-			"endTime": "2000-11-07 10:02",
-			"info": "et minim",
-			"depotId": "53",
-			"depotName": "浜虹瀹冨啗棰�"
-		}
-	]
+	// recordList = [{
+	// 		"id": "59",
+	// 		"deptName": "1鍙蜂粨",
+	// 		"status": "10",
+	// 		"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鍙蜂粨",
+	// 		"status": "20",
+	// 		"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鍙蜂粨",
+	// 		"status": "20",
+	// 		"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鍙蜂粨",
+	// 		"status": "10",
+	// 		"applyUserName": "榛勮秴",
+	// 		"type": "nostrud elit",
+	// 		"startTime": "2018-07-07 10:25",
+	// 		"endTime": "2000-11-07 10:02",
+	// 		"info": "et minim",
+	// 		"depotId": "53",
+	// 		"depotName": "浜虹瀹冨啗棰�"
+	// 	}
+	// ]
+	
+	
 }
 
 function renderRecordList() {
@@ -105,19 +107,26 @@
 			} else if (item.status == '20') { // 寰呭鏍�
 				html += '<img src="images/icons/g-i28.png" alt=""></span>'
 			}
-			html += '<div class="title">鎵�灞炲垎搴�:<b>' + item.deptName +
-				'</b></div><div class="box"><ul class="gd-list">';
+			html += '<div class="title"><b></b></div><div class="box"><ul class="gd-list">';
 			html += '<li><a href="" class="con"style="background-image: url(images/icons/a-bg12.png);">';
 			html += '<div class="tit">涓氬姟绫诲瀷:</div><div class="name">' + item.type + '</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">' + (item.depotName == null ? "--" : item
-				.depotName) + '</div></a></li></ul>';
+			html += '<div class="tit">鍏宠仈浠撳簱:</div><div class="name">' + (item.depotName == null ? "--" : item.depotName) + '</div></a></li></ul>';
 			html += '<div class="time"><p>鏈夋晥寮�濮嬫椂闂�: <span>' + item.startTime + '</span></p><p>鏈夋晥缁撴潫鏃堕棿: <span>' +
 				item.endTime + '</span></p></div>';
 		})
 	} else {
-		html +=
-			'<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">鏆傛棤鐢宠璁板綍淇℃伅</div></div></li>';
+		html += '<li><div class="con conInfo" info = "鏆傛棤鐢宠璁板綍"><span class="status">';
+		//宸插鏍�
+		html += '<img src="images/icons/g-i29.png" alt=""></span>'
+		html += '<div class="title"><b>鏆傛棤鐢宠璁板綍</b></div><div class="box"><ul class="gd-list">';
+		html += '<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"><p>鏈夋晥寮�濮嬫椂闂�: <span>2023-01-01</span></p><p>鏈夋晥缁撴潫鏃堕棿: <span>2023-01-01</span></p></div>';
+		// html +=
+		// 	'<li><div class="con"><div style="text-align: center;font-size: 20px;color:#dd524d;padding-top: 18px;">鏆傛棤鐢宠璁板綍淇℃伅</div></div></li>';
 	}
 	$("#handleList").html(html);
 }
@@ -137,7 +146,7 @@
 }
 
 mui('.mui-scroll-wrapper').scroll({
-	indicators: false, //鏄惁鏄剧ず婊氬姩鏉�
+	indicators: true, //鏄惁鏄剧ず婊氬姩鏉�
 	deceleration: 0.0006, //闃诲凹绯绘暟,绯绘暟瓒婂皬婊戝姩瓒婄伒鏁�
 	bounce: false, //鏄惁鍚敤鍥炲脊
 	deceleration: 0.0005 //flick 鍑忛�熺郴鏁帮紝绯绘暟瓒婂ぇ锛屾粴鍔ㄩ�熷害瓒婃參锛屾粴鍔ㄨ窛绂昏秺灏忥紝榛樿鍊�0.0006

--
Gitblit v1.9.3