Introduced EntityList.vue and implemented it in projects
This commit is contained in:
@@ -5,6 +5,10 @@ import {useNumberRange} from "~/composables/useNumberRange.js";
|
||||
|
||||
//const supabase = createClient('https://uwppvcxflrcsibuzsbil.supabase.co','eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InV3cHB2Y3hmbHJjc2lidXpzYmlsIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MDA5MzgxOTQsImV4cCI6MjAxNjUxNDE5NH0.CkxYSQH0uLfwx9GVUlO6AYMU2FMLAxGMrwEKvyPv7Oo')
|
||||
|
||||
import projecttype from "~/components/columnRenderings/projecttype.vue"
|
||||
import customer from "~/components/columnRenderings/customer.vue"
|
||||
import plant from "~/components/columnRenderings/plant.vue"
|
||||
|
||||
// @ts-ignore
|
||||
export const useDataStore = defineStore('data', () => {
|
||||
|
||||
@@ -60,6 +64,54 @@ export const useDataStore = defineStore('data', () => {
|
||||
redirect:true,
|
||||
historyItemHolder: "project",
|
||||
numberRangeHolder: "projectNumber",
|
||||
filters: [
|
||||
{
|
||||
name: "Abgeschlossen",
|
||||
default: true,
|
||||
"filterFunction": function (row) {
|
||||
if(row.phases && row.phases.length > 0) {
|
||||
return row.phases.find(i => i.active).label !== "Abgeschlossen";
|
||||
} else {
|
||||
return true
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
],
|
||||
templateColumns: [
|
||||
{
|
||||
key: "projectNumber",
|
||||
label: "Projektnummer"
|
||||
},
|
||||
{
|
||||
key: "projecttype",
|
||||
label: "Typ",
|
||||
component: projecttype
|
||||
},{
|
||||
key: "phase",
|
||||
label: "Phase"
|
||||
},{
|
||||
key: "name",
|
||||
label: "Name"
|
||||
},
|
||||
{
|
||||
key: "customer",
|
||||
label: "Kunde",
|
||||
component: customer
|
||||
},
|
||||
{
|
||||
key: "notes",
|
||||
label: "Notizen",
|
||||
},
|
||||
{
|
||||
key: "plant",
|
||||
label: "Objekt",
|
||||
component: plant
|
||||
},
|
||||
{
|
||||
key: "profiles",
|
||||
label: "Benutzer"
|
||||
}]
|
||||
},
|
||||
vehicles: {
|
||||
label: "Fahrzeuge",
|
||||
|
||||
Reference in New Issue
Block a user