From 0e3ac2732eaa6bab942c71a5a3e27e9ba991ef64 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 29 七月 2024 15:58:43 +0800 Subject: [PATCH] # --- Monitor-APP/pages/home/home.vue | 48 ++++-------------------------------------------- 1 files changed, 4 insertions(+), 44 deletions(-) diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue index d9631a0..5bbda0d 100644 --- a/Monitor-APP/pages/home/home.vue +++ b/Monitor-APP/pages/home/home.vue @@ -449,33 +449,13 @@ let that = this var result = ycqdata.dataInfo2 var res = result.data - if (res.data && res.data !== "") { + if (res.data && res.data.length > 0) { if (that.infoType == 2 || that.infoType == 3) { return; } // infoType1:鍙湁鎷f枡绛変俊鎭� that.infoType = 1 - switch (res.data[0].ioType) { - case 101: - that.infoText.title = '鍏ㄦ澘鍑哄簱' - break; - case 103: - that.infoText.title = '妫�鏂欏嚭搴�' - break; - case 107: - that.infoText.title = '鐩樼偣鍑哄簱' - break; - case 1: - that.infoText.title = '鍏ュ簱' - break; - case 10: - that.infoText.title = '绌烘墭鍏ュ簱' - break; - case 110: - that.infoText.title = '绌烘墭鍑哄簱' - break; - } - + that.infoText.title = res.data[0].ioType$ that.swiperList = res.data } else { if (that.infoType == 2 || that.infoType == 3) { @@ -518,33 +498,13 @@ that.timeOuts = false that.times = 0 var res = result.data - if (res.data && res.data !== "") { + if (res.data && res.data.length > 0) { if (that.infoType == 2 || that.infoType == 3) { return; } // infoType1:鍙湁鎷f枡绛変俊鎭� that.infoType = 1 - switch (res.data[0].ioType) { - case 101: - that.infoText.title = '鍏ㄦ澘鍑哄簱' - break; - case 103: - that.infoText.title = '妫�鏂欏嚭搴�' - break; - case 107: - that.infoText.title = '鐩樼偣鍑哄簱' - break; - case 1: - that.infoText.title = '鍏ュ簱' - break; - case 10: - that.infoText.title = '绌烘墭鍏ュ簱' - break; - case 110: - that.infoText.title = '绌烘墭鍑哄簱' - break; - } - + that.infoText.title = res.data[0].ioType that.swiperList = res.data } else { if (that.infoType == 2 || that.infoType == 3) { -- Gitblit v1.9.1