From 666e98f2fb2fad2f12d44125d637767984826d44 Mon Sep 17 00:00:00 2001 From: whycq <913841844@qq.com> Date: 星期三, 07 二月 2024 19:19:08 +0800 Subject: [PATCH] # --- Monitor-APP/pages/home/home.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue index 3ebeac2..07169ae 100644 --- a/Monitor-APP/pages/home/home.vue +++ b/Monitor-APP/pages/home/home.vue @@ -420,7 +420,7 @@ infoType: 0, text: '', infoText: { - title: 'AGV鎷i�変俊鎭�', + title: '', staNo: "", matnr: "", maknx: "", @@ -471,7 +471,6 @@ }, getVisualized() { let that = this - console.log(this.devNo); let param = {devNo: `${that.devNo}`} uni.request({ url: `${that.commonUrl}/rpc/info`, @@ -489,7 +488,19 @@ console.log(res); that.result = res if (res.code === 200 && res.data) { - that.locs = res.data + that.locs = res.data.agvWrkDetls + if (res.data.agvWrkMast) { + if (res.data.agvWrkMast.ioType == 107) { + that.infoText.title = '鐩樼偣鍑哄簱' + } else if (res.data.agvWrkMast.ioType == 103) { + that.infoText.title = '鎷f枡鍑哄簱' + } else { + that.infoText.title = '鍏ㄦ澘鍑哄簱' + } + } else{ + that.infoText.title = '鍏ュ簱浣滀笟' + } + } } }) -- Gitblit v1.9.1