Compare commits

...

2 Commits

Author SHA1 Message Date
luoshiwen 255481f009 l 3.23 2023-03-23 09:41:33 +08:00
luoshiwen ce9ceef392 l 3.23 2023-03-23 09:39:23 +08:00
8 changed files with 19 additions and 27 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -212,17 +212,10 @@ export default {
}
},
mounted() {
this.drawBar(this.typeValue);
// this.drawBar(this.typeValue);
},
watch: {
typeValue: {
handler(newVal) {
if (newVal) {
this.drawBar(newVal);
}
},
deep: true
}
}
};
</script>

View File

@ -45,7 +45,7 @@
</div>
<div style="font-size: 30px; font-weight: bold" v-if="title == '排队数'">
<span style="font-size: 15px;">排队数</span><br />
<span style="font-size: 30px; font-weight: bold">{{ newDataArr[0].n_queue }}</span>
<span style="font-size: 30px; font-weight: bold">{{ queue }}</span>
</div>
<div style="font-size: 30px; font-weight: bold" v-if="title == '检测数'">
<span style="font-size: 15px;">检测数</span><br />
@ -144,6 +144,7 @@ export default {
//
flow: 0,
isRefer: true,
valueShow: {},
//
queue: '',
@ -158,8 +159,8 @@ export default {
methods: {
//
getDataArr(val) {
this.getNewQueue(val)
this.newDataArr = val
this.getNewQueue(this.newDataArr)
},
getTotal(dataArr) {
if (this.title == '类型') {
@ -168,17 +169,15 @@ export default {
}, 0);
}
},
//
getNewQueue(val) {
console.log("val",val)
this.newDataArr = val
if (val[0].n_queue) {
this.newDataArr[0].n_queue = val[0].n_queue;
}
if (val[0].ave_queue) {
this.newDataArr[0].n_queue = val[0].ave_queue;
this.queue = val[0].n_queue;
}
if (val[0].headway) {
if (val[0].ave_queue) {
this.queue = val[0].ave_queue;
}
if (val[0].headway) {
this.newDataArr[0].headway = val[0].headway;
}
if (val[0].ave_headway) {
@ -186,11 +185,10 @@ export default {
}
if (val[0].n_stay) {
this.newDataArr[0].n_stay = val[0].n_stay;
}
}
if (val[0].ave_stay) {
this.newDataArr[0].n_stay = val[0].ave_stay;
}
},
},

View File

@ -508,6 +508,7 @@ export default {
if (itemTypeChart.componentName.includes('OD') && itemTypeChart.$refs.ODChartRef != undefined && itemTypeChart.dataArr[0].ob_data.length != 0) {
itemTypeChart.$refs.ODChartRef.drawThermalChart(itemTypeChart.dataArr[0].ob_data, itemTypeChart.startEndData)
}
}
}