diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue index 7c78195f..78bcc1c0 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue @@ -9,18 +9,10 @@ - + 当前车流量: {{ carNum }}辆 - + @@ -148,13 +140,14 @@ export default { // this.dialogData.brand = data.brand; // }) + if (this.dialogData.iotDeviceId) { + this.getPropertiesHistory(this.dialogData.iotDeviceId); + } + const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); if (roadInfo) this.data.roadName = roadInfo.roadName; - if (this.dialogData.iotDeviceId) { - this.getPropertiesHistory(this.dialogData.iotDeviceId); - } }, methods: { changeRadio(value) { @@ -165,12 +158,9 @@ export default { } else { this.yData = this.hzYData; } - // console.log('xdata', this.xData); - // console.log('ydata', this.hzYData); - // console.log('rdata', this.jnYData); setTimeout(() => { this.isShowCar = true; - }, 1000); + }, 0); }, getPropertiesHistory(deviceId) { this.xData = []; @@ -248,7 +238,7 @@ div.switcher { align-items: center; justify-content: end; - > div { + >div { font-size: 16px; padding: 6px 12px; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js index 0c1bbfe1..8faea32f 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js @@ -121,7 +121,7 @@ export function getRoadInfoByStakeMark(stakeMark) { url: `/business/stakeMark/query`, method: "get", params: { - id: stakeMark, + stakeMark: stakeMark, direction: 1, }, })