From a24e6ad3dd99b50e29af6f74c57fa646bca86d43 Mon Sep 17 00:00:00 2001
From: czt <czt18638530771@163.com>
Date: 星期四, 02 一月 2025 17:15:48 +0800
Subject: [PATCH] 提交配置

---
 igds-app/warn-list.html |   68 +++++++++-------------------------
 1 files changed, 18 insertions(+), 50 deletions(-)

diff --git a/igds-app/warn-list.html b/igds-app/warn-list.html
index ba37091..8b655e8 100644
--- a/igds-app/warn-list.html
+++ b/igds-app/warn-list.html
@@ -22,18 +22,18 @@
 		</header>
 		<div class="mui-content">
 			<div class="g-date_box">
-				<span class="day prev">鍓嶄竴澶�</span>
+				<span class="day prev" onclick="addAndReduceMonth(-1)">鍓嶄竴澶�</span>
 				<div class="inpbox" onclick="chooseDate();">
-					<input id="date" type="text" value="2022-04-15" readonly class="inp" />
+					<input id="date" type="text" value="" readonly class="inp" />
 				</div>
-				<span class="day next">鍚庝竴澶�</span>
+				<span class="day next" onclick="addAndReduceMonth(1)">鍚庝竴澶�</span>
 			</div>
 			<div class="mui-scroll-wrapper jglb">
 				<div class="g-in-sl">
 					<div class="m-pow-dist">
 						<div class="m-caution-mana">
-							<ul class="ul-listmana ul-listcaut1">
-								<li>
+							<ul class="ul-listmana ul-listcaut1" id="recordList">
+								<!-- <li>
 									<div class="con myfancy" onclick="openPop('11')">
 										<span class="type">鏈鐞�</span>
 										<div class="tit">
@@ -132,6 +132,7 @@
 										<div class="time">2022-03-02 10:10</div>
 									</div>
 								</li>
+							 -->
 							</ul>
 						</div>
 					</div>
@@ -146,63 +147,30 @@
 						<div class="h3"><span class="red">*</span> 澶勭悊璇存槑</div>
 						<form class="">
 							<div class="mui-input-row">
-								<textarea rows="" cols="" placeholder="璇疯緭鍏ヨ鏄�"></textarea>
+								<textarea id="textareaPop" rows="" cols="" placeholder="璇疯緭鍏ヨ鏄�"></textarea>
 							</div>
 						</form>
-						<div class="btns">
-							<button type="button" class="mui-btn cancel"  onclick="handleWarn('1')">蹇界暐</button>
-							<button type="button" class="mui-btn confirm" onclick="handleWarn('2')">澶勭悊</button>
+						<div class="btns" id="handleWarn">
+							<div type="button" class="mui-btn cancel" onclick="handleWarn('1')">蹇界暐</div>
+							<div type="button" class="mui-btn confirm" onclick="handleWarn('2')">澶勭悊</div>
 						</div>
 					</div>
-					<div class="close" onclick="closePop()"><span class="mui-icon mui-icon-close"></span></div>
+					<div class="close"><span class="mui-icon mui-icon-close" onclick="closePop()"></span></div>
 				</div>
 			</div>
+		</div>
 	</body>
 	<script src="./js/mui.min.js"></script>
 	<script src="./js/mui.picker.min.js"></script>
 	<script src="./js/jquery.js"></script>
+	<script src="./js/admin/warn-list.js"></script>
 	<script type="text/javascript" charset="utf-8">
+		//mui鍒濆鍖�
 		mui.init();
 
-		function chooseDate() {
-			var dtpicker = new mui.DtPicker({
-				type: "date", //璁剧疆鏃ュ巻鍒濆瑙嗗浘妯″紡 
-				// beginDate: new Date(2015, 04, 25), //璁剧疆寮�濮嬫棩鏈� 
-				// endDate: new Date(2016, 04, 25), //璁剧疆缁撴潫鏃ユ湡 
-
-			})
-			dtpicker.show(function(e) {
-				document.getElementById("date").value = e.value
-			})
-		}
-
-		mui('.mui-scroll-wrapper').scroll({
-			indicators: false, //鏄惁鏄剧ず婊氬姩鏉�
-			deceleration: 0.0006, //闃诲凹绯绘暟,绯绘暟瓒婂皬婊戝姩瓒婄伒鏁�
-			bounce: false, //鏄惁鍚敤鍥炲脊
-			deceleration: 0.0005 //flick 鍑忛�熺郴鏁帮紝绯绘暟瓒婂ぇ锛屾粴鍔ㄩ�熷害瓒婃參锛屾粴鍔ㄨ窛绂昏秺灏忥紝榛樿鍊�0.0006
-		});
-		//鎵撳紑寮圭獥
-		function openPop(warnId) {
-			$('#m-pop').css('display', 'flex');
-		}
-		//璀﹀憡澶勭悊
-		function handleWarn(tag) {
-			if(tag == "1"){
-				mui.toast("蹇界暐璀﹀憡");
-			}
-			if(tag == "2"){
-				mui.toast("璀﹀憡澶勭悊");
-			}
-			closePop();
-		}
-		//鍏抽棴寮圭獥
-		function closePop() {
-			$("#m-pop").css('display', 'none');
-		}
-		$('.pop-bg,.m-pop .close').click(function(e) {
-			e.stopPropagation();
-			$('.m-pop').fadeOut();
-		});
+		mui.plusReady(function() {
+			//鏁版嵁鍒濆鍖�
+			init();
+		})
 	</script>
 </html>
\ No newline at end of file

--
Gitblit v1.9.3