whychw
2020-11-13 9d7b9988d631a49055c9b3e95f4771a4d69d1811
src/pages/history.vue
@@ -336,6 +336,8 @@
            this.initGraph();
        },
        initGraph() {
            console.log(groupLine, groupLine.clear);
            console.trace('initpage...');
            groupLine.clear();
            monLine.clear();
            currLine.clear();
@@ -344,7 +346,6 @@
            allData=[];
        },
        setTestParams() {
          console.trace('setTestParams');
            var batt = this.getBatt();
            if(batt != -1) {
                this.testParams.num = batt.FBSDeviceId;
@@ -870,15 +871,15 @@
        // 设置导航栏
        this.$store.dispatch('changeNavActive', 1);
        this.$event.$on('showSettings', this.handleShowSettings);
        if (!this.$store.state.allBattList.length) {
// debugger;
        // if (!this.$store.state.allBattList.length) {
          this.getAllBattList().then(() => {
            this.initPage();
          });
        } else {
       /* } else {
          // 初始化页面
          this.initPage();
        }
        }*/
        // 端电压折线图
        groupLine = new EGraph(this.$refs.groupLine, {