Skip to content

Commit

Permalink
review eingearbeitet
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielOber committed Mar 26, 2024
1 parent d6be363 commit 198f9b2
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
3 changes: 2 additions & 1 deletion frontend/src/api/service/LadeMessdatenService.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import FetchService from "@/api/service/FetchService";
import LadeProcessedZaehldatenDTO from "@/types/zaehlung/zaehldaten/LadeProcessedZaehldatenDTO";
import MessstelleOptionsDTO from "@/types/messstelle/MessstelleOptionsDTO";
import LadeProcessedMessdatenDTO from "@/types/messstelle/LadeProcessedMessdatenDTO";

export default class LadeMessdatenService {
private static readonly ENDPOINT_LADE_MESSDATEN_PROCESSED: string =
Expand All @@ -9,7 +10,7 @@ export default class LadeMessdatenService {
public static ladeMessdatenProcessed(
messstelleId: string,
options: MessstelleOptionsDTO
): Promise<LadeProcessedZaehldatenDTO> {
): Promise<LadeProcessedMessdatenDTO> {
return FetchService.postData(
options,
`${this.ENDPOINT_LADE_MESSDATEN_PROCESSED}?messstelle_id=${messstelleId}`,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ function drawNorthSymbol() {
function drawMessstelleInfo() {
canvas.value
.text(function (add) {
add.tspan(
`Messstelle ${props.belastungsplanData.messstelleId}`
).font({ weight: "bold" });
add.tspan(`Messstelle ${props.belastungsplanData.mstId}`).font({
weight: "bold",
});
add.tspan(
`Stadtbezirk: ${props.belastungsplanData.stadtbezirkNummer}`
).newLine();
Expand All @@ -480,7 +480,7 @@ function drawMessstelleInfo() {
).newLine();
}
})
.move(startX.value - 80, 10);
.move(600, 10);
}
function drawLegende() {
Expand All @@ -496,13 +496,13 @@ function drawLegende() {
chosenFahrzeugartAsTextArray.push("KFZ");
}
if (chosenOptionsCopyFahrzeuge.value.schwerverkehr) {
chosenFahrzeugartAsTextArray.push("SV");
chosenFahrzeugartAsTextArray.push("(SV)");
}
if (chosenOptionsCopyFahrzeuge.value.gueterverkehr) {
chosenFahrzeugartAsTextArray.push("GV");
}
if (isSv_pInBelastungsPlan.value) {
chosenFahrzeugartAsTextArray.push("SV%");
chosenFahrzeugartAsTextArray.push("(SV%)");
}
if (isGv_pInBelastungsPlan.value) {
chosenFahrzeugartAsTextArray.push("GV%");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ import StepLineCard from "@/components/zaehlstelle/charts/StepLineCard.vue";
import HeatmapCard from "@/components/zaehlstelle/charts/HeatmapCard.vue";
import ZeitreiheCard from "@/components/zaehlstelle/charts/ZeitreiheCard.vue";
import LadeMessdatenService from "@/api/service/LadeMessdatenService";
import LadeProcessedZaehldatenDTO from "@/types/zaehlung/zaehldaten/LadeProcessedZaehldatenDTO";
import LadeProcessedMessdatenDTO from "@/types/messstelle/LadeProcessedMessdatenDTO";
import Loader from "@/components/common/Loader.vue";
import { useStore } from "@/api/util/useStore";
import { useRoute } from "vue-router/composables";
Expand Down Expand Up @@ -225,7 +225,7 @@ function loadProcessedChartData() {
messstelleId.value,
options.value
)
.then((processedZaehldaten: LadeProcessedZaehldatenDTO) => {
.then((processedZaehldaten: LadeProcessedMessdatenDTO) => {
zaehldatenSteplineDTO.value =
processedZaehldaten.zaehldatenStepline;
zaehldatenHeatmapDTO.value = processedZaehldaten.zaehldatenHeatmap;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default interface BelastungsplanMessquerschnitteDTO {
ladeBelastungsplanMessquerschnittDataDTOList: LadeBelastungsplanMessqueschnittDataDTO[];
strassenname: string;
stadtbezirkNummer: string;
messstelleId: string;
mstId: string;
totalKfz: number;
totalSv: number;
totalGv: number;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import LadeZaehldatenSteplineDTO from "@/types/zaehlung/zaehldaten/LadeZaehldate
import LadeZaehldatenHeatmapDTO from "@/types/zaehlung/zaehldaten/LadeZaehldatenHeatmapDTO";
import BelastungsplanMessquerschnitteDTO from "@/types/messstelle/BelastungsplanMessquerschnitteDTO";

export default interface LadePrcessedMessdatenDTO {
export default interface LadeProcessedMessdatenDTO {
zaehldatenTable: LadeZaehldatenTableDTO;

zaehldatenStepline: LadeZaehldatenSteplineDTO;
Expand Down

0 comments on commit 198f9b2

Please sign in to comment.