From 1258697843989ba05d09a7a838f8efcc6c1a8642 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 24 六月 2024 16:13:37 +0800 Subject: [PATCH] # --- Monitor-APP/pages/home/home.vue | 40 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 39 insertions(+), 1 deletions(-) diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue index ad44654..1ab3d1a 100644 --- a/Monitor-APP/pages/home/home.vue +++ b/Monitor-APP/pages/home/home.vue @@ -463,11 +463,45 @@ // 娴嬭瘯鐢� this.getVisualized() + // this.getVisualizedTest() },1000) }, methods: { getUrl() { this.commonUrl = this.baseHttp + this.baseIP + ':' +this.basePort + "/" +this.baseUrl + }, + getVisualizedTest() { + let that = this + var result = ycqdata.dataInfo3 + console.log(result); + let res = result.data + if (res.code === 200) { + console.log(res.data.agvWaitPakins); + if (res.data.agvWrkDetls != null) { + 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 if (res.data.agvWrkMast.ioType == 57) { + that.infoText.title = '鐩樼偣鍐嶅叆搴�' + } else if (res.data.agvWrkMast.ioType == 53) { + that.infoText.title = '鎷f枡鍐嶅叆搴�' + } else if (res.data.agvWrkMast.ioType == 101) { + that.infoText.title = '鍏ㄦ澘鍑哄簱' + } + } else{ + that.infoText.title = '鍏ュ簱浣滀笟' + } + } else if (res.data.agvWaitPakins != null) { + that.locs = res.data.agvWaitPakins + that.infoText.title = '鍏ュ簱浣滀笟' + } + + + + } }, getVisualized() { let that = this @@ -495,7 +529,11 @@ that.infoText.title = '鐩樼偣鍑哄簱' } else if (res.data.agvWrkMast.ioType == 103) { that.infoText.title = '鎷f枡鍑哄簱' - } else { + } else if (res.data.agvWrkMast.ioType == 57) { + that.infoText.title = '鐩樼偣鍐嶅叆搴�' + } else if (res.data.agvWrkMast.ioType == 53) { + that.infoText.title = '鎷f枡鍐嶅叆搴�' + } else if (res.data.agvWrkMast.ioType == 101) { that.infoText.title = '鍏ㄦ澘鍑哄簱' } } else{ -- Gitblit v1.9.1