From 4109a5f3adb87196b250e1a9c19c18d69b64e30d Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期二, 02 七月 2024 15:49:42 +0800
Subject: [PATCH] #
---
Monitor-APP/pages/home/home.vue | 52 ++++++----------------------------------------------
1 files changed, 6 insertions(+), 46 deletions(-)
diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index d9631a0..79836b9 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -423,9 +423,9 @@
this.getOther()
// this.getDate()
this.getDate2()
- this.getInfo()
+ // this.getInfo()
// this.getError()
- // this.getInfo2()
+ this.getInfo2()
// this.getError2()
this.getUrl()
this.controller()
@@ -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