generated from it-at-m/oss-repository-en-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Messfaehigkeit ergaenzt * remove unused field * remove MessstelleInfoDto * fix reload * change color
- Loading branch information
1 parent
5f9ecae
commit ce1dffb
Showing
13 changed files
with
168 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
<template> | ||
<v-sheet | ||
width="100%" | ||
:min-height="height" | ||
:max-height="height" | ||
> | ||
<v-card elevation="0"> | ||
<v-card-text> | ||
<v-form> | ||
<v-data-table | ||
class="overflow-y-auto" | ||
:height="tableHeight" | ||
dense | ||
:headers="header" | ||
:items="messfahigkeiten" | ||
:items-per-page="-1" | ||
hide-default-footer | ||
fixed-header | ||
:item-class="activeMessfaehigkeit" | ||
/> | ||
</v-form> | ||
</v-card-text> | ||
</v-card> | ||
</v-sheet> | ||
</template> | ||
|
||
<script setup lang="ts"> | ||
import MessfaehigkeitEditDTO from "@/domain/dto/messstelle/MessfaehigkeitEditDTO"; | ||
import { computed, ComputedRef } from "vue"; | ||
import _ from "lodash"; | ||
interface Props { | ||
height: string; | ||
messfahigkeiten: Array<MessfaehigkeitEditDTO>; | ||
} | ||
const props = defineProps<Props>(); | ||
const tableHeight: ComputedRef<string> = computed(() => { | ||
return parseInt(props.height.replace("px", "")) - 136 + "px"; | ||
}); | ||
function activeMessfaehigkeit(item: MessfaehigkeitEditDTO) { | ||
return _.isEmpty(item.gueltigBis) ? "blue darken-3" : ""; | ||
} | ||
const header = computed(() => { | ||
return [ | ||
{ | ||
text: "Fahrzeugklassen", | ||
align: "start", | ||
sortable: false, | ||
value: "fahrzeugklassen", | ||
divider: true, | ||
}, | ||
{ | ||
text: "Intervallwert", | ||
align: "start", | ||
sortable: false, | ||
value: "intervall", | ||
divider: true, | ||
}, | ||
{ | ||
text: "gültig ab", | ||
align: "start", | ||
sortable: false, | ||
value: "gueltigAb", | ||
divider: true, | ||
}, | ||
{ | ||
text: "gültig bis", | ||
align: "start", | ||
sortable: false, | ||
value: "gueltigBis", | ||
}, | ||
]; | ||
}); | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
export default interface MessfaehigkeitEditDTO { | ||
gueltigAb: string; | ||
gueltigBis: string; | ||
intervall: string; | ||
fahrzeugklassen: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.