update -测温曲线优化

master
yinq 4 months ago
parent b61a582437
commit 834cba4285

@ -12,14 +12,13 @@
<script>
import {getTestTemp} from '@/api/report/temperatureHistory'
import Chart from "@//components/board/Chart";
import { getTestTemp } from '@/api/report/temperatureHistory'
import Chart from '@//components/board/Chart'
const animationDuration = 3000
export default {
components: {Chart},
components: { Chart },
props: {
className: {
type: String,
@ -78,17 +77,17 @@ export default {
data: response.data.tempList[0],
axisLine: {
// show:true,
onZero: false,
},
onZero: false
}
},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross',
crossStyle: {
color: '#999',
},
},
color: '#999'
}
}
},
legend: {
// data: ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '']
@ -106,7 +105,7 @@ export default {
// min:0,
type: 'value',
axisLabel: {
formatter: '{value}V'
formatter: '{value}W'
}
}
],
@ -115,33 +114,30 @@ export default {
return
}
return {
name: '温度' + [i],
name: '温度' + [i] + '(℃)',
type: 'line',
data: this.reportDetailList[i],
label: {
show: true,
position: 'top'
}
data: this.reportDetailList[i]
// label: {
// show: true,
// position: 'top'
// }
}
}).concat(response.data.vList.map((e, i) => {
if (i === 0) {
return
}
return {
name: '电压' + [i],
yAxisIndex:1,
name: '功率(W)',
yAxisIndex: 1,
type: 'line',
data: this.reportDetailList[i],
label: {
show: true,
position: 'top'
}
data: e
// label: {
// show: true,
// position: 'top'
// }
}
}))
})
}
)
},
}
},
mounted() {
this.$nextTick(() => {

Loading…
Cancel
Save