|
|
@ -16,10 +16,7 @@ |
|
|
|
</div> |
|
|
|
</ElTabPane> |
|
|
|
<ElTabPane label="在线率统计" name="third"> |
|
|
|
<LineChart |
|
|
|
v-if="activeName === 'third'" |
|
|
|
:productId="dialogData.productId" |
|
|
|
/> |
|
|
|
<LineChart v-if="activeName === 'third'" :productId="dialogData.productId" /> |
|
|
|
</ElTabPane> |
|
|
|
</ElTabs> |
|
|
|
</div> |
|
|
@ -160,9 +157,9 @@ export default { |
|
|
|
} else { |
|
|
|
this.yData = this.hzYData; |
|
|
|
} |
|
|
|
console.log('xdata', this.xData); |
|
|
|
console.log('ydata', this.hzYData); |
|
|
|
console.log('rdata', this.jnYData); |
|
|
|
// console.log('xdata', this.xData); |
|
|
|
// console.log('ydata', this.hzYData); |
|
|
|
// console.log('rdata', this.jnYData); |
|
|
|
setTimeout(() => { |
|
|
|
this.isShowCar = true; |
|
|
|
}, 1000) |
|
|
@ -179,8 +176,8 @@ export default { |
|
|
|
method: "get", |
|
|
|
}).then((result) => { |
|
|
|
if (result.code != 200) return Message.error(result?.msg); |
|
|
|
this.objectValue = result.data[0]; |
|
|
|
this.carNum = result.data[0]['1']; |
|
|
|
this.objectValue = result.data[result.data.length - 1]; |
|
|
|
this.carNum = result.data[result.data.length - 1]['1']; |
|
|
|
result.data.forEach(it => { |
|
|
|
this.xData.push(moment(it.timestamp).format("HH:mm")); |
|
|
|
this.hzYData.push(it['1']); |
|
|
|