From dbd384fa53e9f7e8fede4f90ad2912258c1e1282 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 22 十二月 2023 15:37:50 +0800
Subject: [PATCH] #

---
 Monitor-APP/pages/home/home.vue |   63 ++++++++++++++++---------------
 1 files changed, 32 insertions(+), 31 deletions(-)

diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 59a0271..ff85a1e 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -215,11 +215,15 @@
 							<view class="text-content">
 								<!-- head -->
 								<view class="swiper-head">
-									<view style="width: 25%;">鐩爣绔欙細{{infoText.staNo}}</view>
-									<view style="width: 25%;">鍟嗗搧缂栧彿</view>
-									<view style="width: 25%;">鍟嗗搧鍚嶇О</view>
-									<!-- <view style="width: 20%;">瑙勬牸</view> -->
-									<view style="width: 25%;">鏁伴噺</view>
+									<view style="width: 10vw;">鐩爣绔欙細{{infoText.staNo}}</view>
+									<view style="flex: 1;">鍟嗗搧缂栧彿</view>
+									<view style="flex: 1;">鍟嗗搧鍚嶇О</view>
+									<view style="flex: 1;">瑙勬牸</view>
+									<!-- <view style="flex: 1;">鎵瑰彿</view> -->
+									<view style="width: 10vw;">鏁伴噺</view>
+									<!-- <view style="flex: 1;">绠辩爜</view> -->
+									<view style="width: 10vw;">搴撳瓨鏁伴噺</view>
+									<view style="width: 10vw;">鐜板瓨鏁伴噺</view>
 								</view>
 								<!-- body -->
 								<view class="swiper-body">
@@ -231,11 +235,14 @@
 									display-multiple-items="8"
 									circular="true" :autoplay="true" :interval="3000" :duration="1000">
 										<swiper-item class="swiper-item" v-for="(item,i) in swiperList" :key="i">
-											<view style="width: 25%;">No:{{i+1}}</view>
-											<view style="width: 25%;">{{item.matNo}}</view>
-											<view style="width: 25%;">{{item.maknx}}</view>
-											<!-- <view style="width: 20%;">{{item.specs}}</view> -->
-											<view style="width: 25%;">{{item.count}}</view>
+											<view style="width: 10vw;">No:{{i+1}}</view>
+											<view style="flex: 1;">{{item.matNo}}</view>
+											<view style="flex: 1;">{{item.maknx}}</view>
+											<view style="flex:1">{{item.specs}}</view>
+											<view style="width: 10vw;">{{item.count}}</view>
+											<!-- <view style="flex: 1;">{{item.zpallet}}</view> -->
+											<view style="width: 10vw;">{{item.anfme}}</view>
+											<view style="width: 10vw;">{{parseInt(item.anfme) - parseInt(item.count)}}</view>
 										</swiper-item>
 									</swiper>
 								</view>
@@ -245,9 +252,9 @@
 				</view>
 			</view>
 			<!-- <view class="btn"> -->
-				<!-- <button >鎷f枡鍥炲簱</button> -->
-				<!-- <button  size="mini" type="primary" @click="">鎷f枡鍥炲簱</button> -->
-			<!-- </view> -->
+				<!-- <button >鎷f枡鍥炲簱</button>
+				<button  size="mini" type="primary" @click="">鐩樼偣鍥炲簱</button>
+			</view> -->
 		</uni-transition>
 		<!-- 寮傚父淇℃伅 -->
 		<uni-transition :duration="duration" :mode-class="errorInfoMode" :show="errorInfoViewShow">
@@ -419,15 +426,12 @@
 			that.baseLedId = BaseLedId
 			that.basePort = BasePort
 			that.baseCrnId = BaseCrnId
-			
-			
-		
 			this.getDate2()
 			setTimeout(()=>{
-				// this.getServerData()
-				// this.initlineChart()
-				// this.initPieChart()
-				// this.getOther()
+				this.getServerData()
+				this.initlineChart()
+				this.initPieChart()
+				this.getOther()
 				setTimeout(()=>{
 					this.getServerData()
 					this.initlineChart()
@@ -438,13 +442,13 @@
 						this.initlineChart()
 						this.initPieChart()
 						this.getOther()
-					},3000)
-				},1000)
-			},1000)
+					},500)
+				},500)
+			},500)
 		},
 		onLoad() {
-			
 			setInterval(()=>{
+				this.getServerData()
 				this.getDate2()
 				this.getUrl()
 				this.getInfo()
@@ -455,13 +459,10 @@
 			},1000)
 			
 			setInterval(()=>{
-				this.getDate2()
-				this.getUrl()
-				this.getInfo()
-				this.getError()
-				// this.getInfo2()
-				// this.getError2()
-				this.controller()
+				this.getServerData()
+				this.initlineChart()
+				this.initPieChart()
+				this.getOther()
 			},600000)
 		},
 		methods: {

--
Gitblit v1.9.1