From fdf0635d145941288edd4cfaa6da68324fa5129a Mon Sep 17 00:00:00 2001 From: zjj <3272660260@qq.com> Date: 星期二, 23 九月 2025 18:31:17 +0800 Subject: [PATCH] ## --- Monitor-APP/pages/index/index.vue | 32 +++++++++++++++++++------------- 1 files changed, 19 insertions(+), 13 deletions(-) diff --git a/Monitor-APP/pages/index/index.vue b/Monitor-APP/pages/index/index.vue index 7f842f0..b24e432 100644 --- a/Monitor-APP/pages/index/index.vue +++ b/Monitor-APP/pages/index/index.vue @@ -25,9 +25,11 @@ <!-- 鐩爣绔� --> <view class="box-items">{{staNo}}</view> <!-- 鍟嗗搧缂栧彿 --> - <view class="box-items">{{matnr}}</view> + <!-- <view class="box-items">{{matnr}}</view> --> <!-- 鍟嗗搧鍚嶇О --> <view class="box-items">{{maknx}}</view> + <!-- 鍟嗗搧鍚嶇О --> + <view class="box-items">{{specs}}</view> <!-- 鍑哄簱鏁伴噺 --> <view class="box-items">{{count}}</view> </view> @@ -187,7 +189,6 @@ <p class="english">Today</p> </view> <view class="sub-main"> - <!-- 鎶樼嚎鍥� --> <view class="charts-box ring"> <qiun-data-charts type="ring" :opts="{legend:{position:'bottom'}}" :eopts="ringOpts" :chartData="chartsDataPie2" :echartsH5="true" :echartsApp="true"/> </view> @@ -218,8 +219,8 @@ <view class="box-border box-border4"></view> <!-- <text>娴欐睙涓壃绔嬪簱鎶�鏈湁闄愬叕鍙�</text> <text>褰撳墠鐗堟湰鍙�</text> --> - <view @click="crn()">娴欐睙涓壃绔嬪簱鎶�鏈湁闄愬叕鍙�</view> - <image src="../../static/barcode.png" mode="aspectFit"></image> + <view @click="crn()">鍢夊杽杈归攱鏈烘鑲′唤鏈夐檺鍏徃</view> + <!-- <image src="../../static/barcode.png" mode="aspectFit"></image> --> </view> </view> </view> @@ -353,6 +354,7 @@ staNo:'', matnr:'', maknx:'', + specs:'', count:'', orderNo:null, doneOfTray:'', @@ -386,30 +388,32 @@ that.baseCrnId = BaseCrnId this.getUrl() }, + onLoad() { + + }, onReady() { - // 鑾峰緱鍒濆鏁版嵁 - setTimeout(() => { + setInterval(() => { + // 鑾峰緱鍒濆鏁版嵁 this.initlineChart(); this.initPieChart(); - }, 0); - setTimeout(() => { + // 涓婚〉淇℃伅 this.getServerData(); this.getOther(); - // this.getPakin(); - }, 1000); - setInterval(() => { + // 鍏朵粬淇℃伅 this.getDate(); this.getPakin(); this.getError(); // this.getYYY(); // this.getEEE(); - this.animation(); + this.animation() + this.getUrl() },1000) }, methods: { // 鑾峰彇url getUrl() { this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + this.baseUrl + this.chartsDataLine1 = JSON.parse(JSON.stringify(demodata.Line)) }, // 鑾峰彇閿欒淇℃伅 getYYY() { @@ -420,6 +424,7 @@ // 娴嬭瘯鐢� 鈫� // 杩斿洖缁撴灉鏈夊�� 涓斿�间笉绛変簬绌哄�� 灏辨槸鏈夐敊璇俊鎭渶瑕佸睍绀� if (res.data && res.data !== "") { + that.errorMsg = res.data that.errorShow = true that.move = false // 鏄剧ず @@ -530,6 +535,7 @@ that.staNo = '鐩爣绔�:' + res.data[0].staNo that.matnr = '鍟嗗搧缂栧彿锛�' + res.data[0].matDtos[0].matnr that.maknx = '鍟嗗搧鍚嶇О锛�' + res.data[0].matDtos[0].maknx + that.specs = '瑙勬牸锛�' + res.data[0].matDtos[0].specs that.count = '鍑哄簱鏁伴噺锛�' + res.data[0].matDtos[0].count if (res.data[0].orderNo) { that.orderNo = "璁㈠崟鍙凤細" + res.data[0].orderNo @@ -553,7 +559,6 @@ }); }, animation() { - console.log(this.move); if (this.move) { this.topMove = 'topUp' this.floorMove = 'floorUp' @@ -578,6 +583,7 @@ method:'GET', success(result) { var res = result.data + console.log(result); if (res.code === 200) { that.chartsData.Line.categories = [ that.getDateFormat(-11),that.getDateFormat(-10),that.getDateFormat(-9),that.getDateFormat(-8), -- Gitblit v1.9.1