Browse Source

Merge branch 'develop' of http://39.106.31.193:9211/mengff/jihe-hs into develop

wangqin
刘朋 8 months ago
parent
commit
f623728831
  1. 8
      ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue
  2. 28
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue
  3. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

8
ruoyi-ui/src/views/JiHeExpressway/components/Dialog/index.vue

@ -75,8 +75,7 @@ export default {
}, },
methods: { methods: {
updateDialogVisible(bool) { updateDialogVisible(bool) {
this.modelVisible = bool; this.modelVisible = bool;;
console.log("modelVisible", this.modelVisible);
}, },
}, },
mounted() { mounted() {
@ -88,15 +87,12 @@ export default {
return this.visible; return this.visible;
}, },
set(val) { set(val) {
console.log("val", "val")
this.$emit("update:value", val); this.$emit("update:value", val);
}, },
}, },
}, },
beforeDestroy() { beforeDestroy() {
console.log("beforeDestory111")
this.modelVisible = false; this.modelVisible = false;
this.emitter.off("updateDialogVisible", this.updateDialogVisible);
}, },
}; };
</script> </script>
@ -109,7 +105,7 @@ export default {
height: 100%; height: 100%;
background: rgba(0, 0, 0, 0.36); background: rgba(0, 0, 0, 0.36);
border-radius: 0px 0px 0px 0px; border-radius: 0px 0px 0px 0px;
z-index: 100; z-index: 1100;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;

28
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/Dialogs/Intermodulation/index.vue

@ -9,18 +9,10 @@
</ElTabPane> </ElTabPane>
<ElTabPane label="设备参数" name="second"> <ElTabPane label="设备参数" name="second">
<div class="content-second" style="height: 185px"> <div class="content-second" style="height: 185px">
<RadioGroup <RadioGroup v-model="roadType" :options="roadTypeList" @input="changeRadio" />
v-model="roadType"
:options="roadTypeList"
@input="changeRadio"
/>
<span>当前车流量: {{ carNum }}</span> <span>当前车流量: {{ carNum }}</span>
<LineChartForTraffic <LineChartForTraffic style="flex: 1" v-if="isShowCar && activeName === 'second'" :xData="xData"
style="flex: 1" :yData="yData" />
v-if="isShowCar && activeName === 'second'"
:xData="xData"
:yData="yData"
/>
</div> </div>
</ElTabPane> </ElTabPane>
<ElTabPane label="在线率统计" name="third"> <ElTabPane label="在线率统计" name="third">
@ -148,13 +140,14 @@ export default {
// this.dialogData.brand = data.brand; // this.dialogData.brand = data.brand;
// }) // })
if (this.dialogData.iotDeviceId) {
this.getPropertiesHistory(this.dialogData.iotDeviceId);
}
const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark);
if (roadInfo) this.data.roadName = roadInfo.roadName; if (roadInfo) this.data.roadName = roadInfo.roadName;
if (this.dialogData.iotDeviceId) {
this.getPropertiesHistory(this.dialogData.iotDeviceId);
}
}, },
methods: { methods: {
changeRadio(value) { changeRadio(value) {
@ -165,12 +158,9 @@ export default {
} else { } else {
this.yData = this.hzYData; this.yData = this.hzYData;
} }
// console.log('xdata', this.xData);
// console.log('ydata', this.hzYData);
// console.log('rdata', this.jnYData);
setTimeout(() => { setTimeout(() => {
this.isShowCar = true; this.isShowCar = true;
}, 1000); }, 0);
}, },
getPropertiesHistory(deviceId) { getPropertiesHistory(deviceId) {
this.xData = []; this.xData = [];
@ -248,7 +238,7 @@ div.switcher {
align-items: center; align-items: center;
justify-content: end; justify-content: end;
> div { >div {
font-size: 16px; font-size: 16px;
padding: 6px 12px; padding: 6px 12px;
} }

2
ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/httpList.js

@ -121,7 +121,7 @@ export function getRoadInfoByStakeMark(stakeMark) {
url: `/business/stakeMark/query`, url: `/business/stakeMark/query`,
method: "get", method: "get",
params: { params: {
id: stakeMark, stakeMark: stakeMark,
direction: 1, direction: 1,
}, },
}) })

Loading…
Cancel
Save