whychw
2020-07-16 a6fc9ec85765374fcc0aa4c60ed7ea57c68cd56c
U 图表不显示问题
3个文件已修改
21 ■■■■ 已修改文件
src/assets/css/base.css 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/BoxAll.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/index.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/assets/css/base.css
@@ -220,6 +220,14 @@
    flex: auto;
    display: -webkit-flex;
    display: flex;
    position: relative;
}
.box-all-inner {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}
src/components/BoxAll.vue
@@ -6,7 +6,9 @@
            <div class="box-all-title-content">{{title}}</div>
        </div>
        <div class="box-all-content">
            <slot></slot>
            <div class="box-all-inner">
                <slot></slot>
            </div>
        </div>
    </div>
</template>
src/pages/index.vue
@@ -221,7 +221,6 @@
            }, 4000);
        },
        startLB () {
            this.EGraphResize();
            if (!this.battList.delayTime || this.battList.delayTime < 0.6) {
                this.battList.delayTime = 0.6;
            }
@@ -247,7 +246,6 @@
        },
        //  上一个站
        prev () {
            this.EGraphResize();
            this.switch_status = false;
            let data = this.$store.state.allBattList;
            let len = data.length;
@@ -259,7 +257,6 @@
        },
        //  下一个站
        next () {
            this.EGraphResize();
            this.switch_status = false;
            let data = this.$store.state.allBattList;
            let len = data.length;
@@ -268,7 +265,6 @@
            this.$store.dispatch('changeBattGroup', data[idx]);
        },
        initRtState() {     // 初始化rtstate
            this.EGraphResize();
            var data = {
                batt_state: 0,
                online_vol: 0,  // 在线电压
@@ -443,11 +439,6 @@
            if (this.battList.delayTime > 100) {
                this.battList.delayTime = 100;
            }
        },
        EGraphResize () {
            monVol.resize();
            monTmp.resize();
            monRes.resize();
        }
    },
    computed: {