From dce0fb61398bad714a45ea7ab3e7ba200433129c Mon Sep 17 00:00:00 2001
From: whycq <913841844@qq.com>
Date: 星期四, 12 九月 2024 14:41:43 +0800
Subject: [PATCH] 未完成
---
Monitor-APP/pages/home/home.vue | 78 ++++++++++++++++++++++++--------------
1 files changed, 49 insertions(+), 29 deletions(-)
diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 546e957..1c677a4 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -92,12 +92,12 @@
<swiper class="manu-body-main" vertical="true"
display-multiple-items="6"
circular="true" :autoplay="true" :interval="3000" :duration="2000">
- <swiper-item class="manu-item" v-for="(item,i) in swiperList" :key="i">
- <view style="width: 30%;">{{item.maknx}}</view>
- <view style="width: 20%;">{{item.owner}}</view>
- <view style="width: 30%;">{{item.matnr}}</view>
- <view style="width: 20%;">{{item.specs}}</view>
- <view style="width: 10%;">{{item.orderNo}}</view>
+ <swiper-item class="manu-item" v-for="(item,i) in boundInfoList" :key="i">
+ <view style="width: 30%;">{{item.orderNo}}</view>
+ <view style="width: 20%;">{{item.docType}}</view>
+ <view style="width: 30%;">{{item.outTime}}</view>
+ <view style="width: 20%;">{{item.outTime}}</view>
+ <view style="width: 10%;">{{item.useTime}}</view>
</swiper-item>
</swiper>
</view>
@@ -129,8 +129,8 @@
<!-- 鐧惧垎姣� -->
<view class="flex-col" style="align-items: flex-end;justify-content: flex-end;" >
<!-- style="justify-content: flex-end;position: absolute;top: 0;right: 1vw;text-align: right;" -->
- <text class="item-title">31</text>
- <text class="item-subTitle">浠婃棩璁㈠崟鏁�</text>
+ <text class="item-subTitle" style="font-size: 1.5vh;">浠婃棩鍏ュ簱锛�10</text>
+ <text class="item-subTitle" style="font-size: 1.5vh;">浠婃棩鍑哄簱锛�20</text>
</view>
</view>
</view>
@@ -214,12 +214,12 @@
<swiper class="manu-body-main" vertical="true"
display-multiple-items="3"
circular="true" :autoplay="true" :interval="3000" :duration="2000">
- <swiper-item class="manu-item" v-for="(item,i) in swiperList" :key="i">
- <view style="width: 20%;">{{item.maknx}}</view>
- <view style="width: 20%;">{{item.owner}}</view>
- <view style="width: 20%;">{{item.matnr}}</view>
- <view style="width: 20%;">{{item.specs}}</view>
- <view style="width: 20%;">{{item.orderNo}}</view>
+ <swiper-item class="manu-item" v-for="(item,i) in deviceInfoList" :key="i">
+ <view style="width: 20%;">{{item.errCode}}</view>
+ <view style="width: 20%;">{{item.errContext}}</view>
+ <view style="width: 20%;">{{item.errTime}}</view>
+ <view style="width: 20%;">{{item.reTime}}</view>
+ <view style="width: 20%;">{{item.stopTime}}</view>
</swiper-item>
</swiper>
</view>
@@ -279,7 +279,8 @@
<view style="width: 30%;">鍑哄簱: {{item.count}} / 鎬绘暟: {{item.total}}</view>
- <view style="width: 40%;">瑙勬牸: {{item.specs}}</view>
+ <view style="width: 20%;">瑙勬牸: {{item.specs}}</view>
+ <view style="width: 20%;">澶囨敞: {{item.memo}}</view>
<view style="width: 30%;">鍗曟嵁鍙�: {{item.orderNo}}</view>
@@ -434,6 +435,8 @@
barcode: ""
},
swiperList: [],
+ boundInfoList: [],
+ deviceInfoList: [],
timeOut: false,
times: 0,
currDate: '',
@@ -473,7 +476,9 @@
this.getInfo2()
this.getError2()
this.getUrl()
- // this.controller()
+ this.getBoundInfoTest()
+ this.getDeviceInfoTest()
+ this.controller()
// 娴嬭瘯鐢�
},1000)
@@ -489,6 +494,20 @@
this.chartsDataLine1=JSON.parse(JSON.stringify(this.chartsData.Line))
this.chartsDataPie2=JSON.parse(JSON.stringify(this.chartsData.Pie))
},
+ // 鑾峰彇鍑哄叆搴撶粺璁℃暟鎹�
+ getBoundInfoTest() {
+ let that = this
+ var result = ycqdata.boundInfoTest
+ var res = result.data
+ that.boundInfoList = res.data
+ },
+ // 鑾峰彇璁惧鏁呴殰鏁版嵁
+ getDeviceInfoTest() {
+ let that = this
+ var result = ycqdata.deviceInfoTest
+ var res = result.data
+ that.deviceInfoList = res.data
+ },
// 鑾峰彇閿欒淇℃伅
getInfo2() {
let that = this
@@ -499,20 +518,21 @@
return;
}
// infoType1:鍙湁鎷f枡绛変俊鎭�
+ that.infoText.title = res.data[0].title
that.infoType = 1
- if (res.data[0].ioType === 101) {
- that.infoText.title = '鍏ㄦ澘鍑哄簱'
- } else if(res.data[0].ioType === 103) {
- that.infoText.title = '妫�鏂欏嚭搴�'
- } else if(res.data[0].ioType === 107) {
- that.infoText.title = '鐩樼偣鍑哄簱'
- } else if(res.data[0].ioType === 1) {
- that.infoText.title = '鍏ュ簱'
- } else if(res.data[0].ioType === 10) {
- that.infoText.title = '绌烘墭鍏ュ簱'
- } else if(res.data[0].ioType === 110) {
- that.infoText.title = '绌烘墭鍑哄簱'
- }
+ // if (res.data[0].ioType === 101) {
+ // that.infoText.title = '鍏ㄦ澘鍑哄簱'
+ // } else if(res.data[0].ioType === 103) {
+ // that.infoText.title = '妫�鏂欏嚭搴�'
+ // } else if(res.data[0].ioType === 107) {
+ // that.infoText.title = '鐩樼偣鍑哄簱'
+ // } else if(res.data[0].ioType === 1) {
+ // that.infoText.title = '鍏ュ簱'
+ // } else if(res.data[0].ioType === 10) {
+ // that.infoText.title = '绌烘墭鍏ュ簱'
+ // } else if(res.data[0].ioType === 110) {
+ // that.infoText.title = '绌烘墭鍑哄簱'
+ // }
that.infoText.barcode = res.data[0].barcode
that.infoText.workNo = res.data[0].workNo
that.infoText.sourceLocNo = res.data[0].sourceLocNo
--
Gitblit v1.9.1