| | |
| | | import ChartBox from "@/components/chartBox.vue"; |
| | | import HdwChart from "@/components/echarts/hdwChart.vue"; |
| | | import getNormalLine from "@/components/echarts/options/normalLine" |
| | | import {onMounted, ref} from "vue"; |
| | | import {nextTick, onMounted, ref} from "vue"; |
| | | import getRadiusBarOption from "@/components/echarts/options/radiusBar"; |
| | | |
| | | const carName = ref(""); |
| | |
| | | |
| | | let totalData = []; |
| | | const searchBattHistory = async ()=> { |
| | | slideVal.value = 100; |
| | | slideVal.value = 0; |
| | | try { |
| | | const rs = await getBattHistory(carName.value, timeRange.value); |
| | | let data = []; |
| | |
| | | data = rs.data; |
| | | } |
| | | totalData = data; |
| | | |
| | | slideVal.value = 100; |
| | | let currentDataIndex = getDataIndex(totalData.length, slideVal.value); |
| | | console.log(totalData[currentDataIndex]); |
| | | }catch (e) { |