#
whycq
2023-11-04 6c52e356b3514c6737ad42121177488c2d48144d
#
1个文件已修改
32 ■■■■ 已修改文件
Monitor-APP/pages/home/home.vue 32 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Monitor-APP/pages/home/home.vue
@@ -329,6 +329,7 @@
    export default {
        data() {
            return {
                commonUrl: '',
                series: [],
                homeViewShow: true,
                infoViewShow: false    ,
@@ -418,29 +419,41 @@
            that.baseLedId = BaseLedId
            that.basePort = BasePort
            that.baseCrnId = BaseCrnId
            // this.getUrl()
        },
        onLoad() {
            this.getServerData()
            this.initlineChart()
            this.initPieChart()
            this.getOther()
            this.getDate2()
            this.getUrl()
            this.getServerData()
            // this.initlineChart()
            // this.initPieChart()
            this.getOther()
            setTimeout(()=>{
                this.initlineChart()
                this.getServerData()
                this.initPieChart()
                this.getOther()
            },1000)
        },
        onLoad() {
            setInterval(()=>{
                this.getDate2()
                this.getUrl()
                this.getInfo()
                this.getError()
                // this.getInfo2()
                // this.getError2()
                this.controller()
            },1000)
            setInterval(()=>{
                this.getServerData()
                this.initlineChart()
                this.initPieChart()
                this.getOther()
                this.getDate2()
            },600000)
        },
        methods: {
            timeOuts() {
@@ -723,6 +736,7 @@
                var m = date.getMonth() + 1
                var d = date.getDate()
                var newDate = m + '-' + d
                console.log(newDate);
                return newDate
            },
            /*************** 折线图 *****************************************************************************************************/
@@ -776,7 +790,7 @@
                uni.request({
                    url: that.commonUrl + "/monitor/other",
                    data: {
                        crnId: that.baseCrnId,
                        crnId: that.baseCrnId,
                        ledId: that.baseLedId,
                    },
                    success(result) {