From d75b0b71c2feed580bf765c0d6007b3c1f17ca74 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 19 十月 2022 09:54:00 +0800
Subject: [PATCH] 1.消息列表静态页面实现

---
 pages/sbgl/dqby.html |   41 +++++++++++++++++++++++------------------
 1 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/pages/sbgl/dqby.html b/pages/sbgl/dqby.html
index c6ad4e0..1b0f97f 100644
--- a/pages/sbgl/dqby.html
+++ b/pages/sbgl/dqby.html
@@ -25,15 +25,15 @@
 
 		<script type="text/javascript">
 			var topContent = [
-				// {
-				// 	code: 'SB001',
-				// 	name: '鐢垫睜缁勪竴绾�',
-				// 	wksp_code: "CJ002",
-				// 	wksp_name: '鐢垫睜杞﹂棿',
-				// 	eapmai_code: "bybz004",
-				// 	eapmai_name: "鏍囧噯4",
-				// 	main_cycle: "M",
-				// },
+				{
+					code: 'SB001',
+					name: '鐢垫睜缁勪竴绾�',
+					wksp_code: "CJ002",
+					wksp_name: '鐢垫睜杞﹂棿',
+					eapmai_code: "bybz004",
+					eapmai_name: "鏍囧噯4",
+					main_cycle: "M",
+				},
 				// {
 				// 	code: 'SB003',
 				// 	name: '榻胯疆绠辩粍涓�绾�',
@@ -73,7 +73,7 @@
 
 			let bwcode = '' //鐐瑰嚮閮ㄤ綅鐨勬壂鎻忔 鐐规椤圭洰code
 
-			let number = [] //淇濆吇椤圭洰鍐呭 鍋囨暟缁�   鍋氭壂鐮佸洖鏉ヨ鍥炬洿鏂扮敤
+			let falseArray = [] //淇濆吇椤圭洰鍐呭 鍋囨暟缁�   鍋氭壂鐮佸洖鏉ヨ鍥炬洿鏂扮敤
 
 			// 鎵弿淇濆吇宸ヤ綅杩斿洖鏃舵墽琛屾柟娉�
 			function scaned(r) {
@@ -130,7 +130,7 @@
 							}
 
 
-							number.push({
+							falseArray.push({
 								id: '1'
 							})
 						}
@@ -247,9 +247,9 @@
 					</div>
 
 					<div class="head"
-						:style="{marginTop:topContent.length===0?'100px':'0',minHeight:topContent.length===0?'0':'220px'}"
+						 
 						style="margin-bottom: 130px;padding-bottom: 10px;overflow-y: ;"
-						:style="{marginTop:topContent.length===0?'78px':'0'}">
+						 >
 						<div class="head_block" style="margin-bottom:10px;">
 							<div class="head_left">
 								<div class="head_bar"></div>
@@ -323,7 +323,8 @@
 
 						<div
 							style="position:fixed;bottom: 0;width: 96%;display: flex;justify-content: center;flex-direction: column;align-items: center">
-							<van-button class="vanButtonInfo" :disabled="resultValue===''" @click="submit" type="info">
+							<van-button :load='submitIsDisabled' load-text="姝e湪鎻愪氦,璇风◢绛�..." class="vanButtonInfo"
+								:disabled="resultValue===''" @click="submit" type="info">
 								纭鎻愪氦</van-button>
 						</div>
 
@@ -345,6 +346,7 @@
 			el: '#app',
 			data: function() {
 				return {
+					submitIsDisabled: false,
 					overlayShow: false,
 					showPopover: false,
 					actions: [{
@@ -366,7 +368,7 @@
 					}],
 					topContent2: topContent,
 					centerContent2: centerContent,
-					number2: number,
+					falseArray2: falseArray,
 
 					sheetFlag: false,
 				}
@@ -401,14 +403,14 @@
 				// 	deep: true,
 				// 	immediate: true,
 				// },
-				'number2.length': {
+				'falseArray2.length': {
 					handler(newValue, oldValue) {
 						this.$forceUpdate()
 					},
 					deep: true,
 					immediate: true,
 				},
-				// 'number.length': {
+				// 'falseArray.length': {
 				// 	handler(newValue, oldValue) {
 				// 		this.$forceUpdate()
 				// 	},
@@ -452,7 +454,7 @@
 						username: localStorage.getItem('username'),
 						maintcyc: dropdownValue
 					}
-
+					this.submitIsDisabled = true
 					post('AppDeviceManage/AppDeviceRepairSave' + formatParams(params), data)
 						.then(res => {
 							if (res.code === '200') {
@@ -472,7 +474,10 @@
 									centerContent = []
 								}
 								resultValue = ''
+								this.submitIsDisabled = false
 								this.$forceUpdate()
+							} else {
+								this.submitIsDisabled = false
 							}
 						})
 

--
Gitblit v1.9.3