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 | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Monitor-APP/pages/index/index.vue b/Monitor-APP/pages/index/index.vue index c93d416..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> @@ -352,6 +354,7 @@ staNo:'', matnr:'', maknx:'', + specs:'', count:'', orderNo:null, doneOfTray:'', @@ -385,6 +388,9 @@ that.baseCrnId = BaseCrnId this.getUrl() }, + onLoad() { + + }, onReady() { setInterval(() => { // 鑾峰緱鍒濆鏁版嵁 @@ -399,13 +405,15 @@ 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() { @@ -527,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 @@ -550,7 +559,6 @@ }); }, animation() { - console.log(this.move); if (this.move) { this.topMove = 'topUp' this.floorMove = 'floorUp' @@ -575,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