修改测试bug
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
<div>
|
||||
<!-- 历史趋势数据 -->
|
||||
<div>
|
||||
<TableHeader ref="tableHeaderRef" :showSearch="false" @selectChange="selectChange" >
|
||||
<template v-slot:select >
|
||||
<TableHeader ref="tableHeaderRef" :showSearch="false" @selectChange="selectChange">
|
||||
<template v-slot:select>
|
||||
<el-form-item>
|
||||
<DatePicker ref="datePickerRef"></DatePicker>
|
||||
</el-form-item>
|
||||
@@ -206,7 +206,7 @@ const init = async () => {
|
||||
if (item.phase == null) {
|
||||
key = item.unit
|
||||
} else {
|
||||
key = item.anotherName
|
||||
key = item.unit
|
||||
}
|
||||
|
||||
if (!acc[key]) {
|
||||
@@ -216,6 +216,7 @@ const init = async () => {
|
||||
return acc
|
||||
}, {})
|
||||
let result = Object.values(groupedData)
|
||||
console.log("🚀 ~ .then ~ result:", result)
|
||||
// console.log("🚀 ~ .then ~ result:", result)
|
||||
if (chartsList.length > 0) {
|
||||
unitList = result.map((item: any) => {
|
||||
@@ -233,7 +234,7 @@ const init = async () => {
|
||||
top: 5,
|
||||
right: 70,
|
||||
|
||||
width: 400,
|
||||
width: 550,
|
||||
height: 50
|
||||
},
|
||||
grid: {
|
||||
@@ -312,13 +313,13 @@ const init = async () => {
|
||||
series: []
|
||||
}
|
||||
}
|
||||
// console.log("🚀 ~ unitList.forEach ~ unitList:", unitList)
|
||||
console.log("🚀 ~ unitList.forEach ~ unitList:", unitList)
|
||||
|
||||
if (chartsList.length > 0) {
|
||||
echartsData.value.yAxis = []
|
||||
let setList = [...new Set(unitList)];
|
||||
|
||||
|
||||
unitList.forEach((item: any, index: any) => {
|
||||
setList.forEach((item: any, index: any) => {
|
||||
if (index > 2) {
|
||||
echartsData.value.grid.right = (index - 1) * 80
|
||||
}
|
||||
@@ -603,7 +604,7 @@ const flag = ref(true)
|
||||
const onIndexChange = (val: any) => {
|
||||
num.value += 1
|
||||
flag.value = true
|
||||
|
||||
|
||||
|
||||
// if (val.length == 0) {
|
||||
// searchForm.value.index = [indexOptions.value[0].id]
|
||||
|
||||
Reference in New Issue
Block a user