This commit is contained in:
luoshiwen 2023-03-23 09:39:23 +08:00
parent 08f785f516
commit ce9ceef392
8 changed files with 245 additions and 247 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() { mounted() {
this.drawBar(this.typeValue); // this.drawBar(this.typeValue);
}, },
watch: { watch: {
typeValue: {
handler(newVal) {
if (newVal) {
this.drawBar(newVal);
}
},
deep: true
}
} }
}; };
</script> </script>

View File

@ -169,20 +169,24 @@ export default {
}, 0); }, 0);
} }
}, },
//
getNewQueue(val) { getNewQueue(val) {
if (val[0].n_queue) { if (val[0].n_queue) {
this.queue = val[0].n_queue; this.queue = val[0].n_queue;
} else if (val[0].ave_queue) { }
if (val[0].ave_queue) {
this.queue = val[0].ave_queue; this.queue = val[0].ave_queue;
} else if (val[0].headway) { }
if (val[0].headway) {
this.newDataArr[0].headway = val[0].headway; this.newDataArr[0].headway = val[0].headway;
} else if (val[0].ave_headway) { }
if (val[0].ave_headway) {
this.newDataArr[0].headway = val[0].ave_headway; this.newDataArr[0].headway = val[0].ave_headway;
}else if (val[0].n_stay) { }
if (val[0].n_stay) {
this.newDataArr[0].n_stay = val[0].n_stay; this.newDataArr[0].n_stay = val[0].n_stay;
} else 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;
} }
}, },

View File

@ -508,6 +508,7 @@ 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)
} }
} }
} }