whychdw
2019-09-05 0600f47f23f2a8971e590bec88ee92f8fb5792bf
dist/pages/main/main.js
@@ -14,6 +14,11 @@
    var vm = new Vue({
        el: bs.$el[0],
        data: {
            block: {
                main: 0,
                block1: 0,
                alarmBlock1: 0
            },
            numbers: {
                alarms: 0,
                charge: 0,
@@ -53,7 +58,7 @@
                        key: 'battGroupName'
                    }, {
                        title: '告警名称',
                        minWidth: 240,
                        minWidth: 200,
                        align: 'center',
                        key: 'note'
                    }, {
@@ -63,7 +68,7 @@
                        key: 'MonNum'
                    }, {
                        title: '告警开始时间',
                        minWidth: 240,
                        minWidth: 200,
                        align: 'center',
                        key: 'alm_start_time'
                    }, {
@@ -191,6 +196,9 @@
            }, {
                path: 'battery',
                url: '../battery/battery.html'
            }, {
                path: 'system',
                url: '../system/system.html'
            }]
        },
        methods: {
@@ -456,6 +464,26 @@
                    url: '../battery/batteryInfo.html',
                    param: param
                });
            },
            setBlock: function setBlock() {
                var main = this.$refs.main.offsetHeight;
                var block1 = this.$refs.block1.offsetHeight;
                var alarmBlock1 = this.$refs.alarmBlock1.offsetHeight;
                this.block.main = main;
                this.block.block1 = block1;
                this.block.alarmBlock1 = alarmBlock1;
            },
            getAlarmHt: function getAlarmHt() {
                return this.getTblHt() - 45;
            },
            getTblHt: function getTblHt() {
                return this.block.main - this.block.block1 - 40;
            }
        },
        computed: {
            getAlarmHt: function getAlarmHt() {
                return 400;
            }
        },
        mounted: function mounted() {
@@ -470,6 +498,7 @@
            // 查询告警,充电,放电的数目
            this.searchNums();
            this.setBlock();
        },
        destroyed: function destroyed() {}
    });