From 410593e3cbd8084cde43610bde5d2089b105980f Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 28 十二月 2023 10:16:02 +0800
Subject: [PATCH] #

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

diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 0d3d959..456d233 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -317,6 +317,13 @@
 		<view style="color: #FFF;position: fixed;bottom: 10px;left: 10px;" v-show="timeOut">
 			杩炴帴瓒呮椂: {{times}} s
 		</view>
+		
+		<!-- 鐗堟湰鍙� -->
+		<!-- #ifdef APP-PLUS -->
+		<view class="version">
+			褰撳墠鐗堟湰:{{version}}
+		</view>
+		<!-- #endif -->
 	</view>
 </template>
 <!-- {"msg":"鎿嶄綔鎴愬姛","code":200,"data":[{"title":"鍏ㄦ澘鍑哄簱","workNo":7460,"staNo":110,"sourceStaNo":null,"locNo":null,"sourceLocNo":"0807102","matDtos":[{"matNo":"50460834","maknx":"200x60妗岄潰","count":26.0}],"emptyMk":false,"ioType":101}]} -->
@@ -326,6 +333,7 @@
 	export default {
 		data() {
 			return {
+				version: '1231313',
 				newModeClass: 'slide-top',
 				errorBoardShow: false,
 				carInfo: [],
@@ -510,7 +518,7 @@
 			that.baseCrnId = BaseCrnId
 
 
-
+			this.getVersion()
 			this.getDate2()
 			setTimeout(() => {
 				this.getShuttle()
@@ -551,8 +559,22 @@
 				this.initPieChart()
 				this.getOther()
 			}, 600000)
+			
+			// #ifdef APP-PLUS
+				setTimeout(()=>{
+					plus.runtime.restart()
+				},28800000)
+			// #endif
+			
+			
 		},
 		methods: {
+			getVersion() {
+				let that = this
+				plus.runtime.getProperty(plus.runtime.appid, (wgtinfo) => {
+					that.version = wgtinfo.version //瀹㈡埛绔増鏈彿
+				})
+			},
 			getShuttleTest() {
 				let res = ycqdata.infoData2.data
 				this.shuttleInfoModel(res)
@@ -1097,7 +1119,15 @@
 <style>
 	/* @import url("../../static/css/common.css"); */
 	@import url("home.css");
-
+	/* 鐗堟湰鍙� */
+	.version {
+		min-width: 100rpx;
+		position: fixed;
+		right: 20rpx;
+		bottom: 10rpx;
+		font-size: .1rem;
+		color: #909399;
+	}
 	/* 鍒� */
 	.flex-col {
 		display: flex;

--
Gitblit v1.9.1