Compare commits
No commits in common. "255481f009eb3ff6f3a8bbcac61a2691548c1da2" and "e98c8b7e82e4a4ffb1996788c3fa55e8f7213ee0" have entirely different histories.
255481f009
...
e98c8b7e82
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
|
@ -212,10 +212,17 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
// this.drawBar(this.typeValue);
|
this.drawBar(this.typeValue);
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
|
typeValue: {
|
||||||
|
handler(newVal) {
|
||||||
|
if (newVal) {
|
||||||
|
this.drawBar(newVal);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
deep: true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 30px; font-weight: bold" v-if="title == '排队数'">
|
<div style="font-size: 30px; font-weight: bold" v-if="title == '排队数'">
|
||||||
<span style="font-size: 15px;">排队数</span><br />
|
<span style="font-size: 15px;">排队数</span><br />
|
||||||
<span style="font-size: 30px; font-weight: bold">{{ queue }}</span>
|
<span style="font-size: 30px; font-weight: bold">{{ newDataArr[0].n_queue }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div style="font-size: 30px; font-weight: bold" v-if="title == '检测数'">
|
<div style="font-size: 30px; font-weight: bold" v-if="title == '检测数'">
|
||||||
<span style="font-size: 15px;">检测数</span><br />
|
<span style="font-size: 15px;">检测数</span><br />
|
||||||
|
@ -144,7 +144,6 @@ export default {
|
||||||
// 流量数值
|
// 流量数值
|
||||||
flow: 0,
|
flow: 0,
|
||||||
isRefer: true,
|
isRefer: true,
|
||||||
|
|
||||||
valueShow: {},
|
valueShow: {},
|
||||||
//排队数
|
//排队数
|
||||||
queue: '',
|
queue: '',
|
||||||
|
@ -159,8 +158,8 @@ export default {
|
||||||
methods: {
|
methods: {
|
||||||
// 计算类型数量的总和
|
// 计算类型数量的总和
|
||||||
getDataArr(val) {
|
getDataArr(val) {
|
||||||
this.newDataArr = val
|
|
||||||
this.getNewQueue(this.newDataArr)
|
this.getNewQueue(val)
|
||||||
},
|
},
|
||||||
getTotal(dataArr) {
|
getTotal(dataArr) {
|
||||||
if (this.title == '类型') {
|
if (this.title == '类型') {
|
||||||
|
@ -169,15 +168,17 @@ export default {
|
||||||
}, 0);
|
}, 0);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
// 计算类型的数值
|
||||||
getNewQueue(val) {
|
getNewQueue(val) {
|
||||||
|
console.log("val",val)
|
||||||
|
this.newDataArr = val
|
||||||
if (val[0].n_queue) {
|
if (val[0].n_queue) {
|
||||||
this.queue = val[0].n_queue;
|
this.newDataArr[0].n_queue = val[0].n_queue;
|
||||||
}
|
}
|
||||||
if (val[0].ave_queue) {
|
if (val[0].ave_queue) {
|
||||||
this.queue = val[0].ave_queue;
|
this.newDataArr[0].n_queue = val[0].ave_queue;
|
||||||
}
|
}
|
||||||
if (val[0].headway) {
|
if (val[0].headway) {
|
||||||
this.newDataArr[0].headway = val[0].headway;
|
this.newDataArr[0].headway = val[0].headway;
|
||||||
}
|
}
|
||||||
if (val[0].ave_headway) {
|
if (val[0].ave_headway) {
|
||||||
|
@ -189,6 +190,7 @@ export default {
|
||||||
if (val[0].ave_stay) {
|
if (val[0].ave_stay) {
|
||||||
this.newDataArr[0].n_stay = val[0].ave_stay;
|
this.newDataArr[0].n_stay = val[0].ave_stay;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
|
@ -508,7 +508,6 @@ export default {
|
||||||
if (itemTypeChart.componentName.includes('OD') && itemTypeChart.$refs.ODChartRef != undefined && itemTypeChart.dataArr[0].ob_data.length != 0) {
|
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)
|
itemTypeChart.$refs.ODChartRef.drawThermalChart(itemTypeChart.dataArr[0].ob_data, itemTypeChart.startEndData)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue