From 44dd2c7c73d5fead948902cad2695ae30d4620e2 Mon Sep 17 00:00:00 2001
From: liukangdong <898885815@qq.com>
Date: 星期四, 24 十月 2024 09:50:29 +0800
Subject: [PATCH] 大屏
---
pda/pages/index/center.vue | 32 ++++++++++++++++++++------------
1 files changed, 20 insertions(+), 12 deletions(-)
diff --git a/pda/pages/index/center.vue b/pda/pages/index/center.vue
index 1452c7a..a852ade 100644
--- a/pda/pages/index/center.vue
+++ b/pda/pages/index/center.vue
@@ -32,9 +32,9 @@
<view class="status" v-if="item.status == 4">鍙彿涓� {{ item.callDateTemp }}</view>
<view class="status scs" v-if="item.status == 5">宸蹭綔涓� {{ item.startDateTemp }}</view>
</view>
- <view class="line" v-if="item.code">
+ <view class="line" v-if="item.billCode">
<text class="label">杩愯緭鍗曞彿</text>
- <text class="value">{{ item.code }}</text>
+ <text class="value">{{ item.billCode }}</text>
<text class="primaryColor" @click="handleDetail(item)">杩愬崟璇︽儏</text>
</view>
<view class="line" v-else>
@@ -246,27 +246,31 @@
transformPlatId: '', // 杞Щ璁板綍鏈堝彴id
transformId: '', // 杞Щ璁板綍浠诲姟id
- wmsInfo: {}
+ wmsInfo: {},
+ timer: null
}
},
onLoad() {
this.getPlatformGroup()
- setInterval(() => {
- this.getPlatformGroup()
- }, 1000 * 30)
+ // setInterval(() => {
+ // this.getPlatformGroup()
+ // }, 1000 * 30)
},
methods: {
getPlatformGroup() {
getPlatformGroupList({
queryData: 1,
- queryType: 0
+ queryType: 1
}).then(res => {
this.platformGroupList = res.data || []
if (this.platformGroupList.length > 0) {
this.activePlatformGroup = this.platformGroupList[0]
if (this.activePlatformGroup.platformList && this.activePlatformGroup.platformList.length > 0) {
- this.activePlatform = this.activePlatformGroup.platformList[0]
- this.getPlatformTask()
+ this.activePlatform = this.activePlatformGroup.platformList[0]
+ this.getPlatformTask()
+ this.timer = setInterval(() => {
+ this.getPlatformTask()
+ }, 60 * 1000)
}
}
})
@@ -298,7 +302,7 @@
if (item.newStartDate) {
let timeNum = time.getTime() - new Date(item.newStartDate).getTime()
if (timeNum > 3600000) {
- item.startDateTemp = dayjs.duration(timeNum).format('H灏忔椂m鍒唖s绉�')
+ item.startDateTemp = dayjs.duration(timeNum).format('H灏忔椂m鍒唖绉�')
} else {
item.startDateTemp = dayjs.duration(timeNum).format('m鍒唖绉�')
}
@@ -311,8 +315,12 @@
const index = e.indexs[0]
this.activePlatformGroup = this.platformGroupList[index]
if (this.activePlatformGroup.platformList && this.activePlatformGroup.platformList.length > 0) {
- this.activePlatform = this.activePlatformGroup.platformList[0]
- this.getPlatformTask()
+ this.activePlatform = this.activePlatformGroup.platformList[0]
+ this.getPlatformTask()
+ clearInterval(this.timer)
+ this.timer = setInterval(() => {
+ this.getPlatformTask()
+ }, 60 * 1000)
}
this.showPlatformgroup = false
},
--
Gitblit v1.9.3