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 | 69 ++++++++++++++++++++++++++++------ 1 files changed, 57 insertions(+), 12 deletions(-) diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue index 07169ae..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 @@ -485,22 +519,33 @@ data: JSON.stringify(param), success(res) { res = res.data - console.log(res); that.result = res - if (res.code === 200 && 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{ + 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 = '鍏ュ簱浣滀笟' } + + } } }) -- Gitblit v1.9.1