Merge branch 'develop' into dev
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m48s
All checks were successful
Build & Deploy on Dev / build (push) Successful in 2m48s
This commit is contained in:
commit
4f107dcc55
2 changed files with 33 additions and 33 deletions
|
|
@ -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">
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue