@7365admin1/layer-common 1.11.44 → 1.11.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/components/AccessCardPreviewDialog.vue +9 -5
- package/components/AccessManagement.vue +1 -0
- package/components/ClientMain.vue +719 -299
- package/components/DashboardMain.vue +2041 -117
- package/components/DocumentManagement.vue +351 -53
- package/components/InvitationClientForm.vue +23 -10
- package/components/InvitationForm.vue +6 -2
- package/components/TableV3.vue +179 -0
- package/composables/useAccessManagement.ts +8 -0
- package/composables/useOrg.ts +9 -1
- package/composables/useOrganizationSwitcher.ts +11 -0
- package/composables/usePeople.ts +24 -5
- package/composables/useUser.ts +36 -30
- package/package.json +1 -1
- package/types/people.d.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 1.11.46
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1e4f7b6: update latest version add prop for invitation form
|
|
8
|
+
- 2e14129: update latest layer common
|
|
9
|
+
|
|
10
|
+
## 1.11.45
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- e925b28: Update layout for super admin
|
|
15
|
+
|
|
3
16
|
## 1.11.44
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
</div>
|
|
21
21
|
|
|
22
22
|
<!-- Person Type Filter -->
|
|
23
|
-
<div class="text-caption font-weight-bold mb-1 text-uppercase text-grey-darken-1">Person Type</div>
|
|
23
|
+
<!-- <div class="text-caption font-weight-bold mb-1 text-uppercase text-grey-darken-1">Person Type</div>
|
|
24
24
|
<v-btn-toggle
|
|
25
25
|
v-model="assignPersonType"
|
|
26
26
|
color="primary"
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
<v-btn value="owner" size="small" class="text-none px-3">Unit Owner</v-btn>
|
|
34
34
|
<v-btn value="resident" size="small" class="text-none px-3">Resident</v-btn>
|
|
35
35
|
<v-btn value="tenant" size="small" class="text-none px-3">Tenant</v-btn>
|
|
36
|
-
</v-btn-toggle>
|
|
36
|
+
</v-btn-toggle> -->
|
|
37
37
|
|
|
38
38
|
<!-- Person Selector -->
|
|
39
39
|
<div class="text-caption font-weight-bold mb-1 text-uppercase text-grey-darken-1">
|
|
@@ -384,6 +384,10 @@ const props = defineProps({
|
|
|
384
384
|
type: String,
|
|
385
385
|
default: "",
|
|
386
386
|
},
|
|
387
|
+
orgId: {
|
|
388
|
+
type: String,
|
|
389
|
+
default: "",
|
|
390
|
+
},
|
|
387
391
|
});
|
|
388
392
|
|
|
389
393
|
const emit = defineEmits<{
|
|
@@ -394,7 +398,7 @@ const emit = defineEmits<{
|
|
|
394
398
|
"assign-to-person": [{ card: Record<string, any> | null; person: Record<string, any> | null }];
|
|
395
399
|
}>();
|
|
396
400
|
|
|
397
|
-
const {
|
|
401
|
+
const { getResidents } = useAccessManagement();
|
|
398
402
|
|
|
399
403
|
const historyDialog = ref(false);
|
|
400
404
|
const showAssignForm = ref(false);
|
|
@@ -442,10 +446,10 @@ async function openAssignForm() {
|
|
|
442
446
|
assignPersonType.value = "";
|
|
443
447
|
peopleItems.value = [];
|
|
444
448
|
|
|
445
|
-
if (!props.unit?._id) return;
|
|
449
|
+
if (!props.unit?._id || !props.orgId || !props.siteId) return;
|
|
446
450
|
peopleLoading.value = true;
|
|
447
451
|
try {
|
|
448
|
-
const res = await
|
|
452
|
+
const res = await getResidents({ orgId: props.orgId, siteId: props.siteId, unitId: props.unit._id });
|
|
449
453
|
peopleItems.value = res?.data ?? [];
|
|
450
454
|
} catch {
|
|
451
455
|
peopleItems.value = [];
|