Commit c6af1ebd authored by ninglx's avatar ninglx

wj-smartcity 处理济南反馈bug

parent 76268767
<template>
<msg-card class="item-crossDetail" title="路口监测">
<simple-card style="height: 15%" title="路口交通指标">
<simple-card style="height: 15%;" title="路口交通指标">
<traffic-index :crossData="clickCrossData"/>
</simple-card>
<simple-card style="height: 25%" title="交通状态">
......@@ -231,5 +231,8 @@ export default {
line-height: 25px;
color: white;
}
::v-deep .msg-card-content{
overflow: hidden;
}
}
</style>
......@@ -100,8 +100,8 @@ export default {
if (this.activeCode === 2) {
let start = `${new Date().toLocaleDateString().replaceAll('/','-')} 00:00:00`
let end = new Date().toLocaleString().replaceAll('/','-')
// let start = '2024-04-04 00:00:00'
// let end = '2024-04-04 00:00:00'
// let start = '2024-02-25 00:00:00'
// let end = '2024-02-26 00:00:00'
getCrossTurnData1({crossId: this.crossId, start, end}).then(res => {
this.loading = false
console.log('zhuanxaingji', res)
......@@ -350,9 +350,9 @@ export default {
renderTurn() {
let filterData = this.allTurnData.filter(item => {
return item.fRidDir === this.selectVal
})
}).reverse()
let xData = filterData.reduce((a,b) => {
let time = new Date(b.windowEndTime).toLocaleTimeString()
let time = new Date(b.windowEndTime).toLocaleTimeString().slice(0,5)
if(!a.includes(time)){
a.push(time)
}
......@@ -389,7 +389,7 @@ export default {
],
tooltip: {
enterable: true,
trigger: "item",
trigger: "axis",
axisPointer: {
type: "shadow",
},
......@@ -541,8 +541,15 @@ export default {
}
return a
},{})
let title = {
show:false,
}
if(!xData.length){
title = noDataTitle
}
console.log('x,y', xData, yDatas)
let option = {
title,
dataZoom: {
type: "inside",
startValue: Object.keys(yDatas).length - 6,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment