Messwerteingänge Messwerteingänge mit zwei Nachkommastellen
This commit is contained in:
@@ -5,6 +5,7 @@ import { RootState, AppDispatch } from "../../../redux/store";
|
|||||||
import { fetchAnalogeEingaengeThunk } from "../../../redux/thunks/fetchAnalogeEingaengeThunk";
|
import { fetchAnalogeEingaengeThunk } from "../../../redux/thunks/fetchAnalogeEingaengeThunk";
|
||||||
import { Icon } from "@iconify/react";
|
import { Icon } from "@iconify/react";
|
||||||
import settingsIcon from "@iconify/icons-mdi/settings";
|
import settingsIcon from "@iconify/icons-mdi/settings";
|
||||||
|
import waveformIcon from "@iconify/icons-mdi/waveform";
|
||||||
|
|
||||||
export default function AnalogeEingaengeTable({
|
export default function AnalogeEingaengeTable({
|
||||||
setSelectedId,
|
setSelectedId,
|
||||||
@@ -34,10 +35,9 @@ export default function AnalogeEingaengeTable({
|
|||||||
return (
|
return (
|
||||||
<div className="w-full">
|
<div className="w-full">
|
||||||
<h2 className="text-sm laptop:text-xs font-bold mb-3 flex items-center">
|
<h2 className="text-sm laptop:text-xs font-bold mb-3 flex items-center">
|
||||||
<img
|
<Icon
|
||||||
src="/images/analogeEingaengeIcon.svg"
|
icon={waveformIcon}
|
||||||
alt="Analoge Eingänge"
|
className="text-littwin-blue mr-2 text-xl laptop:text-lg xl:text-xl 2xl:text-2xl border border-littwin-blue"
|
||||||
className="w-6 h-6 mr-2 text-littwin-blue"
|
|
||||||
/>
|
/>
|
||||||
Messwerteingänge
|
Messwerteingänge
|
||||||
</h2>
|
</h2>
|
||||||
@@ -49,8 +49,8 @@ export default function AnalogeEingaengeTable({
|
|||||||
<tr className="bg-gray-100 text-gray-700">
|
<tr className="bg-gray-100 text-gray-700">
|
||||||
<th className="border p-1 text-left">Eingang</th>
|
<th className="border p-1 text-left">Eingang</th>
|
||||||
<th className="border p-3 text-left">Messwert</th>
|
<th className="border p-3 text-left">Messwert</th>
|
||||||
<th className="border p-3 text-left">Bezeichnung</th>
|
|
||||||
<th className="border p-3 text-left">Einheit</th>
|
<th className="border p-3 text-left">Einheit</th>
|
||||||
|
<th className="border p-3 text-left">Bezeichnung</th>
|
||||||
<th className="border p-3 text-left">Aktion</th>
|
<th className="border p-3 text-left">Aktion</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@@ -74,15 +74,16 @@ export default function AnalogeEingaengeTable({
|
|||||||
className="border p-3"
|
className="border p-3"
|
||||||
onClick={() => handleSelect(e.id!)}
|
onClick={() => handleSelect(e.id!)}
|
||||||
>
|
>
|
||||||
{e.value ?? "-"}
|
{typeof e.value === "number" ? e.value.toFixed(2) : "-"}
|
||||||
</td>
|
</td>
|
||||||
|
<td className="border p-3">{e.unit || "-"}</td>
|
||||||
<td
|
<td
|
||||||
className="border p-3"
|
className="border p-3"
|
||||||
onClick={() => handleSelect(e.id!)}
|
onClick={() => handleSelect(e.id!)}
|
||||||
>
|
>
|
||||||
{e.name || "----"}
|
{e.name || "----"}
|
||||||
</td>
|
</td>
|
||||||
<td className="border p-3">{e.unit || "-"}</td>
|
|
||||||
<td className="border p-3 text-center">
|
<td className="border p-3 text-center">
|
||||||
<button
|
<button
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
|
|||||||
@@ -6,5 +6,5 @@
|
|||||||
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
2: Patch oder Hotfix (Bugfixes oder kleine Änderungen).
|
||||||
|
|
||||||
*/
|
*/
|
||||||
const webVersion = "1.6.372";
|
const webVersion = "1.6.373";
|
||||||
export default webVersion;
|
export default webVersion;
|
||||||
|
|||||||
Reference in New Issue
Block a user