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