| | |
| | | this.initGraph(); |
| | | }, |
| | | initGraph() { |
| | | console.log(groupLine, groupLine.clear); |
| | | console.trace('initpage...'); |
| | | groupLine.clear(); |
| | | monLine.clear(); |
| | | currLine.clear(); |
| | |
| | | allData=[]; |
| | | }, |
| | | setTestParams() { |
| | | console.trace('setTestParams'); |
| | | var batt = this.getBatt(); |
| | | if(batt != -1) { |
| | | this.testParams.num = batt.FBSDeviceId; |
| | |
| | | // 设置导航栏 |
| | | 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, { |