diff --git a/src/pages/04_property-managment/MainPage.vue b/src/pages/04_property-managment/MainPage.vue index 0137b782..a3ae4b05 100644 --- a/src/pages/04_property-managment/MainPage.vue +++ b/src/pages/04_property-managment/MainPage.vue @@ -1,4 +1,5 @@ diff --git a/src/pages/04_property-managment/PropertyDialog.vue b/src/pages/04_property-managment/PropertyDialog.vue index aab4caa5..3782afb7 100644 --- a/src/pages/04_property-managment/PropertyDialog.vue +++ b/src/pages/04_property-managment/PropertyDialog.vue @@ -1,3 +1,179 @@ - - + + diff --git a/src/stores/property/index.ts b/src/stores/property/index.ts index b3a322e5..c840c053 100644 --- a/src/stores/property/index.ts +++ b/src/stores/property/index.ts @@ -41,7 +41,7 @@ export const useProperty = defineStore('property-store', () => { return res; } - async function editProperty(data: Property & { id: string }) { + async function editProperty(data: Property) { const res = await api.put(`/property/${data.id}`, { ...data, id: undefined, diff --git a/src/stores/property/types.ts b/src/stores/property/types.ts index b93e8fb3..054083aa 100644 --- a/src/stores/property/types.ts +++ b/src/stores/property/types.ts @@ -1,5 +1,9 @@ +import { Status } from '../types'; + export type Property = { + id?: string; name: string; nameEN: string; type: Record; + status?: Status; };