Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m48s

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2026-02-19 13:08:40 +07:00
commit 4f107dcc55
2 changed files with 33 additions and 33 deletions

View file

@ -26,7 +26,7 @@ const statusCheckin = ref<boolean>(true) // สถานะเวลา เข
const checkDate = ref<boolean | null>(null)
const msgCheckTime = ref<string>('') //
const isDisabledCheckTime = ref<boolean>(false) //
const isDisabledCheckTime = ref<boolean>(true) //
const isErr = ref<boolean | null>(null) //
const endTimeAfternoon = ref<string>('12:00:00') //
@ -46,6 +46,7 @@ async function fetchCheckTime(load: any = true) {
statusCheckin.value = data.checkInId ? false : true
checkInId.value = data.checkInId ? data.checkInId : ''
endTimeAfternoon.value = data.endTimeAfternoon
isDisabledCheckTime.value = isDisabledCheckTime.value ? true : false
})
.catch((err) => {
if (err.response.status === 500) {
@ -304,9 +305,6 @@ async function capturePhoto() {
await camera.value?.stop()
const url = URL.createObjectURL(imageBlob)
img.value = url
// 3
startPhotoTimeout()
}
/** function เปลี่ยนรูปภาพ*/
@ -593,7 +591,7 @@ watch(
class="col-12 q-pa-md items-center gt-xs"
v-if="isLoadingCheckTime"
>
<q-skeleton type="QCard" width="100%" height="50px" />
<q-skeleton width="100%" height="50px" />
</div>
<div v-else :class="getClass(statusCheckin)" class="gt-xs">
<div class="col">

View file

@ -42,8 +42,8 @@ const modalReset = ref<boolean>(false) //ตัวแปร popup reset password
const fullName = ref<string>('') //
const notiTrigger = ref<boolean>(false) // ,
const notiList = ref<notiType[]>([]) //
const totalNotiList = ref<number>(0) //
const totalNoti = ref<number>(0) //
// const totalNotiList = ref<number>(0) //
// const totalNoti = ref<number>(0) //
const statusLoad = ref<boolean>(false) //
const modalDebug = ref<boolean>(false) // popup debug
//
@ -65,16 +65,16 @@ const isPwdReNewOld = ref<boolean>(true)
/**
* งกนดงขอมลจำนวนการแจงเตอน
*/
async function fetchTotolNotificate() {
await http
.get(config.API.msgNotificateTotal)
.then(async (res) => {
totalNoti.value = await res.data.result
})
.catch((err) => {
messageError($q, err)
})
}
// async function fetchTotolNotificate() {
// await http
// .get(config.API.msgNotificateTotal)
// .then(async (res) => {
// totalNoti.value = await res.data.result
// })
// .catch((err) => {
// messageError($q, err)
// })
// }
/**
* งกนดงขอมลรายการแจงเตอน
@ -201,19 +201,19 @@ function getImg(id: string, pathName: string) {
})
}
watch(
() => notiTrigger.value,
() => {
if (!notiTrigger.value) {
const updatedNotifications = notiList.value.map((item) => ({
...item,
isOpen: true,
}))
notiList.value = updatedNotifications
fetchTotolNotificate()
}
}
)
// watch(
// () => notiTrigger.value,
// () => {
// if (!notiTrigger.value) {
// const updatedNotifications = notiList.value.map((item) => ({
// ...item,
// isOpen: true,
// }))
// notiList.value = updatedNotifications
// fetchTotolNotificate()
// }
// }
// )
function onreset() {
modalReset.value = true
@ -291,7 +291,7 @@ function ruleReNewPassWord(val: string) {
const isSsoToken = ref<boolean>(false)
onMounted(async () => {
fetchTotolNotificate()
// fetchTotolNotificate()
await fetchKeycloakPosition()
const checkTokenParsed = await tokenParsed()
const SSO_TOKEN = await getCookie('SSO')
@ -348,11 +348,13 @@ onMounted(async () => {
dense
flat
color="white"
size="13px"
class="q-mr-md"
@click="router.push('/history')"
>
<q-tooltip>ไปหนาประวการลงเวลาฯ</q-tooltip>
</q-btn>
<q-btn round dense flat size="13px" class="q-mx-md">
<!-- <q-btn round dense flat size="13px" class="q-mx-md">
<q-icon name="notifications" size="24px" color="white" />
<q-badge
@ -457,7 +459,7 @@ onMounted(async () => {
</q-banner>
</div>
</q-menu>
</q-btn>
</q-btn> -->
<q-btn round dense color="white" flat style="font-size: 16px">
<q-avatar size="30px">