@7365admin1/layer-common 1.11.41 → 1.11.43
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 +12 -0
- package/components/AttachmentsViewer.vue +44 -15
- package/components/BulletinBoardForm.vue +11 -2
- package/components/BulletinBoardManagement.vue +2 -1
- package/components/ClientMain.vue +36 -22
- package/components/Input/DateTimePicker.vue +14 -1
- package/components/InvitationClientForm.vue +114 -60
- package/components/InvitationForm.vue +15 -4
- package/components/Layout/NavigationDrawer.vue +20 -19
- package/components/MemberMain.vue +9 -12
- package/components/TableMain.vue +1 -1
- package/components/VisitorManagement.vue +215 -628
- package/composables/useFile.ts +1 -1
- package/composables/useLocalAuth.ts +12 -0
- package/composables/useMember.ts +41 -14
- package/composables/useOrg.ts +49 -1
- package/composables/useUser.ts +46 -14
- package/package.json +1 -1
- package/types/nuxt-app.d.ts +7 -0
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
<!-- LayoutNavigationDrawer.vue -->
|
|
2
2
|
<template>
|
|
3
|
-
<v-navigation-drawer
|
|
4
|
-
v-model="drawer"
|
|
5
|
-
permanent
|
|
6
|
-
floating
|
|
7
|
-
class="bg-primary"
|
|
8
|
-
>
|
|
3
|
+
<v-navigation-drawer v-model="drawer" permanent floating class="bg-primary">
|
|
9
4
|
<v-list>
|
|
10
5
|
<v-list-item>
|
|
11
6
|
<v-list-item-title class="text-h6 text-white">
|
|
@@ -24,11 +19,17 @@
|
|
|
24
19
|
>
|
|
25
20
|
<template #activator="{ props: tooltipProps }">
|
|
26
21
|
<div v-bind="tooltipProps">
|
|
27
|
-
<NavigationItem
|
|
28
|
-
:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
<NavigationItem
|
|
23
|
+
:title="item.title"
|
|
24
|
+
:icon="item.icon"
|
|
25
|
+
:route="item.route"
|
|
26
|
+
:children="item.children"
|
|
27
|
+
:link="item.link"
|
|
28
|
+
:class="{
|
|
29
|
+
'opacity-50 pointer-events-none': item.disabled,
|
|
30
|
+
}"
|
|
31
|
+
@click="() => handleClick(item)"
|
|
32
|
+
/>
|
|
32
33
|
</div>
|
|
33
34
|
</template>
|
|
34
35
|
|
|
@@ -44,16 +45,16 @@
|
|
|
44
45
|
<script setup lang="ts">
|
|
45
46
|
const props = defineProps({
|
|
46
47
|
navigationItems: { type: Array, required: true },
|
|
47
|
-
title: { type: String, default: "" }
|
|
48
|
-
})
|
|
48
|
+
title: { type: String, default: "" },
|
|
49
|
+
});
|
|
49
50
|
|
|
50
|
-
const emit = defineEmits([
|
|
51
|
+
const emit = defineEmits(["navigate"]);
|
|
51
52
|
|
|
52
|
-
const { drawer } = useLocal()
|
|
53
|
-
const { APP_NAME } = useRuntimeConfig().public
|
|
53
|
+
const { drawer } = useLocal();
|
|
54
|
+
const { APP_NAME } = useRuntimeConfig().public;
|
|
54
55
|
|
|
55
56
|
const handleClick = (item: any) => {
|
|
56
|
-
if (item.disabled) return
|
|
57
|
-
emit(
|
|
58
|
-
}
|
|
57
|
+
if (item.disabled) return;
|
|
58
|
+
emit("navigate", item);
|
|
59
|
+
};
|
|
59
60
|
</script>
|
|
@@ -49,9 +49,9 @@
|
|
|
49
49
|
class="w-100"
|
|
50
50
|
>
|
|
51
51
|
<v-tab
|
|
52
|
-
v-for="tab in tabOptions"
|
|
52
|
+
v-for="(tab, i) in tabOptions"
|
|
53
53
|
:value="tab.status"
|
|
54
|
-
:key="
|
|
54
|
+
:key="i"
|
|
55
55
|
class="text-capitalize"
|
|
56
56
|
>
|
|
57
57
|
{{ tab.name }}
|
|
@@ -356,7 +356,7 @@ function toRoute(status: any) {
|
|
|
356
356
|
page.value = 1;
|
|
357
357
|
navigateTo({
|
|
358
358
|
name: routeName,
|
|
359
|
-
params: setRouteParams(normalizedRouteParams.value, { status
|
|
359
|
+
params: setRouteParams(normalizedRouteParams.value, { status }),
|
|
360
360
|
});
|
|
361
361
|
}
|
|
362
362
|
|
|
@@ -366,25 +366,26 @@ watch(
|
|
|
366
366
|
if (status && status !== selectedStatus.value) {
|
|
367
367
|
selectedStatus.value = status;
|
|
368
368
|
}
|
|
369
|
-
}
|
|
369
|
+
},
|
|
370
|
+
{ immediate: true }
|
|
370
371
|
);
|
|
371
372
|
|
|
372
373
|
const {
|
|
373
374
|
data: getAllReq,
|
|
374
375
|
refresh: getAll,
|
|
375
376
|
status: getAllReqStatus,
|
|
376
|
-
} =
|
|
377
|
-
|
|
377
|
+
} = useAsyncData(
|
|
378
|
+
() => `get-all-members-${props.status}-${props.orgId}`,
|
|
378
379
|
() =>
|
|
379
380
|
_getAll({
|
|
380
|
-
status:
|
|
381
|
+
status: props.status,
|
|
381
382
|
org: props.orgId,
|
|
382
383
|
search: headerSearch.value,
|
|
383
384
|
page: page.value,
|
|
384
385
|
type: props.type,
|
|
385
386
|
}),
|
|
386
387
|
{
|
|
387
|
-
watch: [
|
|
388
|
+
watch: [() => props.status, headerSearch],
|
|
388
389
|
}
|
|
389
390
|
);
|
|
390
391
|
|
|
@@ -398,10 +399,6 @@ watchEffect(() => {
|
|
|
398
399
|
}
|
|
399
400
|
});
|
|
400
401
|
|
|
401
|
-
watch(headerSearch, () => {
|
|
402
|
-
getAll();
|
|
403
|
-
});
|
|
404
|
-
|
|
405
402
|
const confirmDialog = ref(false);
|
|
406
403
|
const selectedMemberId = ref<string | null>(null);
|
|
407
404
|
const updateLoading = ref(false);
|