fix: Bei den Messkurven der Kabelüberwachungen ist noch ein Fehler: Du übergibst für die erste Kabelüberwachung den Wert 1 anstatt 0.
Im Lastenheft steht 0 bis 31 für Kabelüberwachungen (Wert q):
This commit is contained in:
@@ -35,13 +35,18 @@ export const useLoopChartLoader = () => {
|
|||||||
const typeFolder =
|
const typeFolder =
|
||||||
type === 3 ? "isolationswiderstand" : "schleifenwiderstand";
|
type === 3 ? "isolationswiderstand" : "schleifenwiderstand";
|
||||||
|
|
||||||
|
let url: string;
|
||||||
|
|
||||||
if (process.env.NODE_ENV === "development") {
|
if (process.env.NODE_ENV === "development") {
|
||||||
return `/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`;
|
url = `/api/cpl/slotDataAPIHandler?slot=${slotNumber}&messart=${typeFolder}&dia=${mode}&vonDatum=${vonDatum}&bisDatum=${bisDatum}`;
|
||||||
|
} else {
|
||||||
|
url = `${window.location.origin}/CPL?seite.ACP&${mode}=${formatDate(
|
||||||
|
vonDatum
|
||||||
|
)};${formatDate(bisDatum)};${slotNumber};${type};`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `${window.location.origin}/CPL?seite.ACP&${mode}=${formatDate(
|
console.log("API URL:", url); // Hier wird die URL in der Konsole ausgegeben
|
||||||
vonDatum
|
return url;
|
||||||
)};${formatDate(bisDatum)};${slotNumber};${type};`;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const loadLoopChartData = async () => {
|
const loadLoopChartData = async () => {
|
||||||
|
|||||||
@@ -367,7 +367,7 @@ const Kue705FO: React.FC<Kue705FOProps> = ({
|
|||||||
) : (
|
) : (
|
||||||
<div className="flex items-center justify-center h-full text-gray-500">
|
<div className="flex items-center justify-center h-full text-gray-500">
|
||||||
{/* Das soll rausgenommen werden
|
{/* Das soll rausgenommen werden
|
||||||
<p>Kein Modul im Slot {slotIndex + 1}</p>
|
<p>Kein Modul im Slot {slotIndex + 0}</p>
|
||||||
*/}
|
*/}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|||||||
@@ -18,7 +18,8 @@ const handleOpenChartModal = (
|
|||||||
) => {
|
) => {
|
||||||
setShowChartModal(true);
|
setShowChartModal(true);
|
||||||
dispatch(setChartOpen(true));
|
dispatch(setChartOpen(true));
|
||||||
dispatch(setSlotNumber(slotIndex + 1));
|
dispatch(setSlotNumber(slotIndex));
|
||||||
|
console.log("SlotIndex:", slotIndex);
|
||||||
|
|
||||||
// ✅ Speichert den gewählten Slot in Redux
|
// ✅ Speichert den gewählten Slot in Redux
|
||||||
dispatch(setSelectedSlot(slotIndex));
|
dispatch(setSelectedSlot(slotIndex));
|
||||||
|
|||||||
Reference in New Issue
Block a user