From f645ce9c5579a8309de66507e88a41ea00feb118 Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期四, 05 十月 2023 11:00:03 +0800
Subject: [PATCH] #
---
Monitor-APP/pages/home/home.vue | 25 ++++++++++++++++++++-----
1 files changed, 20 insertions(+), 5 deletions(-)
diff --git a/Monitor-APP/pages/home/home.vue b/Monitor-APP/pages/home/home.vue
index 6de7340..b84ac6c 100644
--- a/Monitor-APP/pages/home/home.vue
+++ b/Monitor-APP/pages/home/home.vue
@@ -442,10 +442,10 @@
this.initPieChart()
this.getOther()
this.getDate2()
- // this.getInfo()
- // this.getError()
- this.getInfo2()
- this.getError2()
+ this.getInfo()
+ this.getError()
+ // this.getInfo2()
+ // this.getError2()
this.getUrl()
this.controller()
},1000)
@@ -515,7 +515,6 @@
},
infoModel(res) {
let that = this
- console.log(res);
if (res.data && res.data !== "") {
if (that.infoType == 2 || that.infoType == 3) {
return;
@@ -723,6 +722,9 @@
// 鏃ュ巻 鏈嶅姟鍣�
getDate2() {
let that = this
+ if(that.commonUrl == 'undefined') {
+ return
+ }
uni.request({
url: that.commonUrl + "/monitor/date",
method:"GET",
@@ -730,7 +732,11 @@
var res = result.data.data
that.calendar = res.year + "骞�" + res.month + "鏈�" + res.day + "鏃� " + res.hour + ":" + res.minute + ":" + res.second + " " + res.week
that.currDate = res.year + "/" + res.month + "/" + res.day
+ },
+ fail(res) {
+ console.log(res);
}
+
})
},
@@ -767,6 +773,9 @@
/*************** 鎶樼嚎鍥� *****************************************************************************************************/
initlineChart() {
let that = this
+ if(that.commonUrl == 'undefined') {
+ return
+ }
uni.request({
url: that.commonUrl + "/monitor/line/charts",
method:'GET',
@@ -785,6 +794,9 @@
/*************** 楗煎浘 *****************************************************************************************************/
initPieChart() {
let that = this
+ if(that.commonUrl == 'undefined') {
+ return
+ }
uni.request({
url: that.commonUrl + "/monitor/loc/rep",
method:'GET',
@@ -803,6 +815,9 @@
},
getOther() {
let that = this
+ if(that.commonUrl == 'undefined') {
+ return
+ }
uni.request({
url: that.commonUrl + "/monitor/other",
data: {
--
Gitblit v1.9.1