Merge branch 'develop' into dev
This commit is contained in:
commit
530d7de122
7 changed files with 473 additions and 5 deletions
|
|
@ -13,8 +13,9 @@ export default {
|
|||
fileByFile: (name: string, group: string, id: string, fileName: string) =>
|
||||
`${urlFile}/file/${name}/${group}/${id}/${fileName}`,
|
||||
|
||||
changePassword:`${orgKeycloak}/user/change-password`,
|
||||
resetPassword:`${orgKeycloak}/user/reset-password`,
|
||||
changePassword: `${orgKeycloak}/user/change-password`,
|
||||
resetPassword: `${orgKeycloak}/user/reset-password`,
|
||||
|
||||
checkoutCheck:`${leave}/user/checkout-check`
|
||||
checkoutCheck: `${leave}/user/checkout-check`,
|
||||
privacy: `${env.API_URI}/org/profile/privacy`,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@ import { loadModules } from 'esri-loader'
|
|||
import axios from 'axios'
|
||||
import { useCounterMixin } from '@/stores/mixin'
|
||||
import { useQuasar } from 'quasar'
|
||||
import { usePrivacyStore } from '@/stores/privacy'
|
||||
|
||||
const mixin = useCounterMixin()
|
||||
const { messageError } = mixin
|
||||
const privacyStore = usePrivacyStore()
|
||||
|
||||
// import type { LocationObject } from '@/interface/index/Main'
|
||||
const mapElement = ref<HTMLElement | null>(null)
|
||||
|
|
@ -200,6 +202,16 @@ async function initializeMap() {
|
|||
const locationGranted = ref(false)
|
||||
// Function to request location permission
|
||||
const requestLocationPermission = () => {
|
||||
// เช็คสิทธิ์ privacy ก่อนเข้าถึงแผนที่
|
||||
if (!privacyStore.isAccepted) {
|
||||
$q.notify({
|
||||
type: 'warning',
|
||||
message: 'กรุณายอมรับนโยบายคุ้มครองข้อมูลส่วนบุคคลก่อนใช้งานแผนที่',
|
||||
position: 'top',
|
||||
})
|
||||
return
|
||||
}
|
||||
|
||||
if (!navigator.geolocation) {
|
||||
messageError(
|
||||
$q,
|
||||
|
|
@ -261,7 +273,10 @@ defineExpose({
|
|||
})
|
||||
|
||||
onMounted(async () => {
|
||||
await initializeMap()
|
||||
// เรียกแผนที่เฉพาะเมื่อยอมรับ privacy แล้ว
|
||||
if (privacyStore.isAccepted) {
|
||||
await initializeMap()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
|||
352
src/components/PopupPrivacy.vue
Normal file
352
src/components/PopupPrivacy.vue
Normal file
|
|
@ -0,0 +1,352 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, computed, nextTick } from 'vue'
|
||||
import { useQuasar } from 'quasar'
|
||||
import http from '@/plugins/http'
|
||||
import config from '@/app.config'
|
||||
import { usePrivacyStore } from '@/stores/privacy'
|
||||
|
||||
const $q = useQuasar()
|
||||
const privacyStore = usePrivacyStore()
|
||||
|
||||
const modal = defineModel<boolean>('modal', {
|
||||
required: true,
|
||||
})
|
||||
|
||||
// Privacy content data
|
||||
const privacyContent = {
|
||||
title: 'การคุ้มครองข้อมูลส่วนบุคคล',
|
||||
mainText:
|
||||
'ระบบนี้มีการเก็บ และใช้ภาพถ่ายของท่าน เพื่อยืนยันตัวตนในการลงเวลาปฏิบัติราชการ ข้อมูลจะถูกใช้เฉพาะตามวัตถุประสงค์ของระบบ และจัดเก็บอย่างปลอดภัยตามกฎหมายคุ้มครองข้อมูลส่วนบุคคล (PDPA)',
|
||||
warningText: '* หากท่านไม่กดยอมรับ อาจทำให้ไม่สามารถใช้งานระบบได้',
|
||||
detailIntro:
|
||||
'ข้าพเจ้าตกลงให้กรุงเทพมหานครเก็บ ใช้ และประมวลผลข้อมูลส่วนบุคคลประเภทภาพถ่ายของข้าพเจ้า ซึ่งได้มาจากการใช้งานระบบลงเวลาปฏิบัติราชการอิเล็กทรอนิกส์ ของระบบบริหารทรัพยากรบุคคลของกรุงเทพมหานคร (BMA - HRMS) ทั้งนี้ เพื่อวัตถุประสงค์ดังต่อไปนี้',
|
||||
purposes: {
|
||||
title: 'วัตถุประสงค์การใช้ข้อมูล',
|
||||
items: [
|
||||
'เพื่อยืนยันตัวตนของผู้ปฏิบัติงานในการบันทึกเวลาเข้า-ออกการปฏิบัติราชการ',
|
||||
'เพื่อใช้เป็นหลักฐานประกอบการบริหารงานด้านทรัพยากรบุคคล การจ่ายค่าตอบแทน และการกำกับ ดูแลการปฏิบัติราชการ',
|
||||
'เพื่อรักษาความถูกต้อง โปร่งใส และป้องกันการทุจริตในการบันทึกเวลาการปฏิบัติงาน',
|
||||
],
|
||||
},
|
||||
understanding: {
|
||||
items: [
|
||||
'การเก็บ ใช้ และประมวลผลข้อมูลส่วนบุคคลดังกล่าว จะดำเนินการ เท่าที่จำเป็นตามวัตถุประสงค์ที่ระบุไว้เท่านั้น',
|
||||
'หน่วยงานจะจัดให้มีมาตรการรักษาความมั่นคงปลอดภัยของข้อมูลส่วนบุคคล ตามที่กฎหมายกำหนด',
|
||||
'ข้อมูลส่วนบุคคลของข้าพเจ้าจะถูกเก็บรักษา ตามระยะเวลาที่จำเป็น ต่อการปฏิบัติงานหรือเป็นไปตามที่กฎหมายกำหนด',
|
||||
],
|
||||
},
|
||||
rights: {
|
||||
title:
|
||||
'ข้าพเจ้าทราบถึง สิทธิของเจ้าของข้อมูลส่วนบุคคล ตามพระราชบัญญัติคุ้มครองข้อมูลส่วนบุคคล พ.ศ. ๒๕๖๒ ได้แก่',
|
||||
items: [
|
||||
'สิทธิขอเข้าถึงและขอรับสำเนาข้อมูล',
|
||||
'สิทธิขอแก้ไขข้อมูลให้ถูกต้อง',
|
||||
'สิทธิขอถอนความยินยอม (ทั้งนี้ การถอนความยินยอมอาจส่งผลต่อการใช้งานระบบลงเวลาการปฏิบัติราชการ)',
|
||||
'สิทธิร้องเรียนต่อคณะกรรมการคุ้มครองข้อมูลส่วนบุคคล',
|
||||
],
|
||||
},
|
||||
consentText:
|
||||
'ข้าพเจ้าได้อ่านและเข้าใจรายละเอียดทั้งหมดแล้ว และยินยอมให้เก็บ ใช้ และประมวลผลข้อมูลส่วนบุคคล ประเภทภาพถ่ายของข้าพเจ้า ตามที่ระบุไว้ข้างต้นโดยสมัครใจ',
|
||||
buttons: {
|
||||
accept: 'ยอมรับ',
|
||||
decline: 'ไม่ยอมรับ',
|
||||
},
|
||||
}
|
||||
|
||||
const scrollContainer = ref<HTMLElement | null>(null)
|
||||
const hasScrolledToBottom = ref(false)
|
||||
const acceptPrivacy = ref(false)
|
||||
const showDetails = ref(false)
|
||||
const isAcceptDisabled = computed(() => !acceptPrivacy.value)
|
||||
|
||||
const handleScroll = (event: Event) => {
|
||||
const target = event.target as HTMLElement
|
||||
|
||||
if (!target) return
|
||||
|
||||
const { scrollTop, scrollHeight, clientHeight } = target
|
||||
// Enable checkbox when scrolled to near bottom (within 20px)
|
||||
if (scrollTop + clientHeight >= scrollHeight - 20) {
|
||||
hasScrolledToBottom.value = true
|
||||
}
|
||||
}
|
||||
|
||||
const handleAccept = async () => {
|
||||
try {
|
||||
await http.put(config.API.privacy, {
|
||||
system: 'checkin',
|
||||
accept: true,
|
||||
})
|
||||
privacyStore.setAccepted(true)
|
||||
modal.value = false
|
||||
} catch (error) {}
|
||||
}
|
||||
|
||||
const toggleDetails = () => {
|
||||
showDetails.value = !showDetails.value
|
||||
checkIfScrollable()
|
||||
}
|
||||
|
||||
const checkIfScrollable = () => {
|
||||
nextTick(() => {
|
||||
const container = scrollContainer.value?.$el || scrollContainer.value
|
||||
if (container) {
|
||||
const { scrollHeight, clientHeight } = container
|
||||
|
||||
if (scrollHeight <= clientHeight + 20) {
|
||||
hasScrolledToBottom.value = true
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<q-dialog
|
||||
v-model="modal"
|
||||
persistent
|
||||
transition-show="slide-up"
|
||||
transition-hide="slide-down"
|
||||
:maximized="$q.screen.lt.sm"
|
||||
>
|
||||
<q-card class="privacy-card" style="max-width: 560px; max-height: 95vh">
|
||||
<!-- Header -->
|
||||
<q-card-section class="bg-primary text-white q-pa-sm">
|
||||
<div class="text-h6 text-center">
|
||||
{{ privacyContent.title }}
|
||||
</div>
|
||||
<q-btn
|
||||
icon="close"
|
||||
flat
|
||||
round
|
||||
dense
|
||||
class="absolute-top-right q-ma-sm"
|
||||
v-close-popup
|
||||
/>
|
||||
</q-card-section>
|
||||
|
||||
<!-- Scrollable Content -->
|
||||
<q-card-section
|
||||
ref="scrollContainer"
|
||||
class="col scroll q-px-lg q-pb-none"
|
||||
@scroll="handleScroll"
|
||||
>
|
||||
<!-- Main Content -->
|
||||
<div class="q-my-md">
|
||||
<p class="main-text">
|
||||
{{ privacyContent.mainText }}
|
||||
<q-link @click.stop="toggleDetails" class="privacy-link text-blue-7"
|
||||
>นโยบายคุ้มครองข้อมูลส่วนบุคคล (Privacy Policy)</q-link
|
||||
>
|
||||
</p>
|
||||
|
||||
<q-banner
|
||||
inline-actions
|
||||
class="bg-amber-1 rounded-borders text-center text-amber-7"
|
||||
style="border-left: 4px solid #f0ad4e"
|
||||
>
|
||||
{{ privacyContent.warningText }}
|
||||
</q-banner>
|
||||
</div>
|
||||
|
||||
<!-- Details Section -->
|
||||
<div
|
||||
v-show="showDetails"
|
||||
class="bg-white rounded-borders q-pa-sm details-section"
|
||||
>
|
||||
<p class="detail-intro q-mb-md">
|
||||
{{ privacyContent.detailIntro }}
|
||||
</p>
|
||||
|
||||
<!-- วัตถุประสงค์ -->
|
||||
<div class="q-mb-md">
|
||||
<ol class="q-pl-lg list-style">
|
||||
<li
|
||||
v-for="(item, index) in privacyContent.purposes.items"
|
||||
:key="`p-${index}`"
|
||||
class="q-mb-xs"
|
||||
>
|
||||
{{ item }}
|
||||
</li>
|
||||
</ol>
|
||||
</div>
|
||||
|
||||
<!-- ข้าพเจ้าทราบและเข้าใจว่า -->
|
||||
<div class="q-mx-sm">
|
||||
ข้าพเจ้าทราบและเข้าใจว่า
|
||||
<ul class="q-mt-sm">
|
||||
<li
|
||||
v-for="(item, index) in privacyContent.understanding.items"
|
||||
:key="`u-${index}`"
|
||||
class="q-mb-xs"
|
||||
>
|
||||
{{ item }}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<!-- สิทธิ์ของเจ้าของข้อมูล -->
|
||||
<div>
|
||||
<p>
|
||||
{{ privacyContent.rights.title }}
|
||||
</p>
|
||||
<ul>
|
||||
<li
|
||||
v-for="(item, index) in privacyContent.rights.items"
|
||||
:key="`r-${index}`"
|
||||
class="q-mb-xs"
|
||||
>
|
||||
{{ item }}
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p class="consent-text q-mt-lg">{{ privacyContent.consentText }}</p>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
||||
<!-- Fixed Bottom Section -->
|
||||
<q-card-section class="bg-white q-px-lg">
|
||||
<!-- Checkbox -->
|
||||
<div
|
||||
class="consent-box rounded-borders q-pa-sm row items-center"
|
||||
:class="{
|
||||
'consent-checked': acceptPrivacy,
|
||||
'consent-disabled': !hasScrolledToBottom,
|
||||
'cursor-pointer': hasScrolledToBottom,
|
||||
}"
|
||||
@click="hasScrolledToBottom && (acceptPrivacy = !acceptPrivacy)"
|
||||
>
|
||||
<q-checkbox
|
||||
v-model="acceptPrivacy"
|
||||
color="primary"
|
||||
size="md"
|
||||
:disable="!hasScrolledToBottom"
|
||||
class="q-mr-sm"
|
||||
/>
|
||||
<div class="col">
|
||||
ข้าพเจ้าได้อ่านและยอมรับ
|
||||
<q-link @click.stop="toggleDetails" class="privacy-link text-blue-7"
|
||||
>นโยบายคุ้มครองข้อมูลส่วนบุคคล</q-link
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
</q-card-section>
|
||||
|
||||
<!-- Action Buttons -->
|
||||
<q-card-actions
|
||||
align="center"
|
||||
class="bg-white q-pa-md q-gutter-md"
|
||||
:class="$q.screen.lt.sm ? 'row-reverse' : ''"
|
||||
>
|
||||
<q-btn
|
||||
:label="privacyContent.buttons.accept"
|
||||
color="primary"
|
||||
unelevated
|
||||
no-caps
|
||||
class="action-btn"
|
||||
:disable="isAcceptDisabled"
|
||||
@click="handleAccept"
|
||||
v-close-popup
|
||||
/>
|
||||
<q-btn
|
||||
:label="privacyContent.buttons.decline"
|
||||
color="grey-7"
|
||||
unelevated
|
||||
no-caps
|
||||
class="action-btn"
|
||||
v-close-popup
|
||||
/>
|
||||
</q-card-actions>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
.privacy-card {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
border-radius: 8px;
|
||||
border: 1px solid #dee2e6;
|
||||
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
|
||||
}
|
||||
|
||||
.main-text {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.details-section {
|
||||
border: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
.detail-intro {
|
||||
line-height: 1.7;
|
||||
}
|
||||
|
||||
.section-header {
|
||||
font-weight: 600;
|
||||
margin-bottom: 10px;
|
||||
padding-bottom: 6px;
|
||||
border-bottom: 1px solid #e9ecef;
|
||||
}
|
||||
|
||||
/* .list-style,
|
||||
.list-style-disc {
|
||||
font-size: 13px;
|
||||
line-height: 1.8;
|
||||
} */
|
||||
|
||||
.list-style {
|
||||
list-style-type: decimal;
|
||||
}
|
||||
|
||||
.list-style-disc {
|
||||
list-style-type: disc;
|
||||
}
|
||||
|
||||
.consent-box {
|
||||
background: #f8f9fa;
|
||||
border: 1px solid #ced4da;
|
||||
transition: background-color 0.2s ease;
|
||||
}
|
||||
|
||||
.consent-box:hover {
|
||||
background: #e9ecef;
|
||||
}
|
||||
|
||||
.consent-checked {
|
||||
border-color: var(--q-primary);
|
||||
background: #e7f1ff;
|
||||
}
|
||||
|
||||
.consent-disabled {
|
||||
opacity: 0.7;
|
||||
cursor: not-allowed;
|
||||
}
|
||||
|
||||
.consent-disabled:hover {
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
p {
|
||||
text-indent: 2em;
|
||||
}
|
||||
|
||||
.action-btn {
|
||||
flex: 1;
|
||||
max-width: 180px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.privacy-link {
|
||||
text-decoration: underline;
|
||||
text-decoration-color: #c4d0dd;
|
||||
cursor: pointer;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.privacy-link:hover {
|
||||
color: #7cadde;
|
||||
text-decoration-color: #7cadde;
|
||||
}
|
||||
</style>
|
||||
52
src/composables/usePermissions.ts
Normal file
52
src/composables/usePermissions.ts
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
import { useQuasar } from 'quasar'
|
||||
import { usePrivacyStore } from '@/stores/privacy'
|
||||
|
||||
export function usePermissions() {
|
||||
const $q = useQuasar()
|
||||
const privacyStore = usePrivacyStore()
|
||||
|
||||
// const checkCameraPermission = (): boolean => {
|
||||
// if (!privacyStore.isAccepted) {
|
||||
// privacyStore.modalPrivacy = true
|
||||
// $q.notify({
|
||||
// type: 'warning',
|
||||
// message: 'กรุณายอมรับนโยบายคุ้มครองข้อมูลส่วนบุคคลก่อนใช้งานกล้อง',
|
||||
// position: 'top',
|
||||
// })
|
||||
// return false
|
||||
// }
|
||||
// return true
|
||||
// }
|
||||
|
||||
// const checkLocationPermission = (): boolean => {
|
||||
// if (!privacyStore.isAccepted) {
|
||||
// privacyStore.modalPrivacy = true
|
||||
// $q.notify({
|
||||
// type: 'warning',
|
||||
// message: 'กรุณายอมรับนโยบายคุ้มครองข้อมูลส่วนบุคคลก่อนใช้งานแผนที่',
|
||||
// position: 'top',
|
||||
// })
|
||||
// return false
|
||||
// }
|
||||
// return true
|
||||
// }
|
||||
|
||||
const checkPrivacyAccepted = (): boolean => {
|
||||
if (!privacyStore.isAccepted) {
|
||||
privacyStore.modalPrivacy = true
|
||||
$q.notify({
|
||||
type: 'warning',
|
||||
message: 'กรุณายอมรับนโยบายคุ้มครองข้อมูลส่วนบุคคลก่อนใช้งาน',
|
||||
position: 'top',
|
||||
})
|
||||
return false
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
return {
|
||||
// checkCameraPermission,
|
||||
// checkLocationPermission,
|
||||
checkPrivacyAccepted,
|
||||
}
|
||||
}
|
||||
22
src/stores/privacy.ts
Normal file
22
src/stores/privacy.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const usePrivacyStore = defineStore('privacy', () => {
|
||||
const modalPrivacy = ref<boolean>(false)
|
||||
const isAccepted = ref<boolean>(false)
|
||||
|
||||
const setAccepted = (value: boolean) => {
|
||||
isAccepted.value = value
|
||||
}
|
||||
|
||||
const reset = () => {
|
||||
isAccepted.value = false
|
||||
}
|
||||
|
||||
return {
|
||||
modalPrivacy,
|
||||
isAccepted,
|
||||
setAccepted,
|
||||
reset,
|
||||
}
|
||||
})
|
||||
|
|
@ -7,6 +7,8 @@ import Camera from 'simple-vue-camera'
|
|||
import config from '@/app.config'
|
||||
import http from '@/plugins/http'
|
||||
import { useCounterMixin } from '@/stores/mixin'
|
||||
import { usePermissions } from '@/composables/usePermissions'
|
||||
import { usePrivacyStore } from '@/stores/privacy'
|
||||
|
||||
import type { FormRef, OptionReason } from '@/interface/response/checkin'
|
||||
|
||||
|
|
@ -15,6 +17,8 @@ import MapCheck from '@/components/AscGISMap.vue'
|
|||
const mixin = useCounterMixin()
|
||||
const { date2Thai, showLoader, hideLoader, messageError, dialogConfirm } = mixin
|
||||
const $q = useQuasar()
|
||||
const { checkPrivacyAccepted } = usePermissions()
|
||||
const privacyStore = usePrivacyStore()
|
||||
|
||||
const modalTime = ref<boolean>(false) // Dailog ลงเวลาเข้างานของคุณ
|
||||
const checkStatus = ref<string>('')
|
||||
|
|
@ -261,6 +265,11 @@ async function stopChecking() {
|
|||
|
||||
/** function เปิดกล้อง*/
|
||||
async function openCamera() {
|
||||
// เช็คสิทธิ์ privacy ก่อนเปิดกล้อง
|
||||
if (!checkPrivacyAccepted()) {
|
||||
return
|
||||
}
|
||||
|
||||
// change camera device
|
||||
if (cameraIsOn.value) {
|
||||
await camera.value?.stop()
|
||||
|
|
@ -336,6 +345,11 @@ const timeChickin = ref<string>('') //เวลาเข้างาน,เว
|
|||
|
||||
/** function ยืนยันการลงเวลาเข้า - ออก*/
|
||||
async function confirm() {
|
||||
// เช็คสิทธิ์ privacy ก่อนใช้งานแผนที่และกล้อง
|
||||
if (!checkPrivacyAccepted()) {
|
||||
return
|
||||
}
|
||||
|
||||
if (!formLocation.POI || !formLocation.lat || !formLocation.lng) {
|
||||
mapRef.value?.requestLocationPermission()
|
||||
return
|
||||
|
|
@ -473,7 +487,11 @@ onMounted(async () => {
|
|||
isLoadingCheckTime.value = true
|
||||
updateClock()
|
||||
startChecking() //เช็ค status จาก คิว #1
|
||||
mapRef.value?.requestLocationPermission()
|
||||
|
||||
// เรียกแผนที่เฉพาะเมื่อยอมรับ privacy แล้ว
|
||||
if (privacyStore.isAccepted) {
|
||||
mapRef.value?.requestLocationPermission()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
|
|
|
|||
|
|
@ -8,13 +8,16 @@ import config from '@/app.config'
|
|||
import avatar from '@/assets/avatar_user.jpg'
|
||||
import { logout, tokenParsed, getCookie } from '@/plugins/auth'
|
||||
import { useCounterMixin } from '@/stores/mixin'
|
||||
import { usePrivacyStore } from '@/stores/privacy'
|
||||
|
||||
import type { notiType } from '@/interface/index/Main'
|
||||
import type { Noti } from '@/interface/response/Main'
|
||||
|
||||
import DialogHeader from '@/components/DialogHeader.vue'
|
||||
import PopupPrivacy from '@/components/PopupPrivacy.vue'
|
||||
|
||||
const mixin = useCounterMixin()
|
||||
const privacyStore = usePrivacyStore()
|
||||
const {
|
||||
date2Thai,
|
||||
hideLoader,
|
||||
|
|
@ -23,6 +26,7 @@ const {
|
|||
success,
|
||||
showLoader,
|
||||
} = mixin
|
||||
|
||||
const router = useRouter()
|
||||
const $q = useQuasar()
|
||||
|
||||
|
|
@ -53,6 +57,7 @@ const reNewPassWord = ref<string>('')
|
|||
const isPwdOld = ref<boolean>(true)
|
||||
const isPwdNewOld = ref<boolean>(true)
|
||||
const isPwdReNewOld = ref<boolean>(true)
|
||||
|
||||
/**
|
||||
* ฟังก์ชั่นดึงข้อมูลจำนวนการแจ้งเตือน
|
||||
*/
|
||||
|
|
@ -168,6 +173,7 @@ async function fetchKeycloakPosition() {
|
|||
.get(config.API.keycloakPosition())
|
||||
.then(async (res) => {
|
||||
const data = await res.data.result
|
||||
privacyStore.modalPrivacy = !data.privacyCheckin ? true : false
|
||||
//เช็คว่ามีรูปไหม ถ้ามีรูปเรียกข้อมูลรูป
|
||||
if (data.avatarName) {
|
||||
await getImg(data.profileId, data.avatarName)
|
||||
|
|
@ -599,6 +605,8 @@ onMounted(async () => {
|
|||
</q-form>
|
||||
</q-card>
|
||||
</q-dialog>
|
||||
|
||||
<popup-privacy v-model:modal="privacyStore.modalPrivacy" />
|
||||
</template>
|
||||
|
||||
<style>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue