#
whycq
2023-10-05 f645ce9c5579a8309de66507e88a41ea00feb118
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)
@@ -722,6 +722,9 @@
         // 日历 服务器
         getDate2() {
            let that = this
            if(that.commonUrl == 'undefined') {
               return
            }
            uni.request({
               url: that.commonUrl + "/monitor/date",
               method:"GET",
@@ -729,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);
               }
            })
         },
         
@@ -766,6 +773,9 @@
         /*************** 折线图 *****************************************************************************************************/
         initlineChart() {
            let that = this
            if(that.commonUrl == 'undefined') {
               return
            }
            uni.request({
               url: that.commonUrl + "/monitor/line/charts",
               method:'GET',
@@ -784,6 +794,9 @@
         /*************** 饼图 *****************************************************************************************************/
         initPieChart() {
            let that = this
            if(that.commonUrl == 'undefined') {
               return
            }
            uni.request({
               url: that.commonUrl + "/monitor/loc/rep",
               method:'GET',
@@ -802,6 +815,9 @@
         },
         getOther() {
            let that = this
            if(that.commonUrl == 'undefined') {
               return
            }
            uni.request({
               url: that.commonUrl + "/monitor/other",
               data: {