fixed remove text and service
This commit is contained in:
parent
ac18c0f932
commit
c4e246ed74
3 changed files with 28 additions and 14 deletions
|
|
@ -197,7 +197,7 @@ async function initializeMap() {
|
|||
'esri/views/MapView',
|
||||
'esri/geometry/Point',
|
||||
'esri/Graphic',
|
||||
'esri/layers/TileLayer',
|
||||
// 'esri/layers/TileLayer',
|
||||
])
|
||||
// Set apiKey
|
||||
// esriConfig.apiKey =
|
||||
|
|
|
|||
|
|
@ -298,9 +298,17 @@ async function stopChecking() {
|
|||
|
||||
function identifyCameraType(label: string): 'front' | 'back' | 'unknown' {
|
||||
const lowerLabel = label.toLowerCase()
|
||||
if (lowerLabel.includes('front') || lowerLabel.includes('user') || lowerLabel.includes('face')) {
|
||||
if (
|
||||
lowerLabel.includes('front') ||
|
||||
lowerLabel.includes('user') ||
|
||||
lowerLabel.includes('face')
|
||||
) {
|
||||
return 'front'
|
||||
} else if (lowerLabel.includes('back') || lowerLabel.includes('environment') || lowerLabel.includes('rear')) {
|
||||
} else if (
|
||||
lowerLabel.includes('back') ||
|
||||
lowerLabel.includes('environment') ||
|
||||
lowerLabel.includes('rear')
|
||||
) {
|
||||
return 'back'
|
||||
}
|
||||
return 'unknown'
|
||||
|
|
@ -356,8 +364,9 @@ async function changeCamera(targetCameraType?: 'front' | 'back') {
|
|||
return
|
||||
}
|
||||
|
||||
const matchingCameras = devices.filter((device: any) =>
|
||||
identifyCameraType(device.label || '') === targetCameraType
|
||||
const matchingCameras = devices.filter(
|
||||
(device: any) =>
|
||||
identifyCameraType(device.label || '') === targetCameraType
|
||||
)
|
||||
|
||||
if (matchingCameras.length > 0) {
|
||||
|
|
@ -470,7 +479,9 @@ const mapRefDesktop = ref<InstanceType<typeof MapCheck> | null>(null)
|
|||
const mapRefMobile = ref<InstanceType<typeof MapCheck> | null>(null)
|
||||
|
||||
// Computed ref that returns the correct map ref based on screen size
|
||||
const mapRef = computed(() => ($q.screen.gt.xs ? mapRefDesktop.value : mapRefMobile.value))
|
||||
const mapRef = computed(() =>
|
||||
$q.screen.gt.xs ? mapRefDesktop.value : mapRefMobile.value
|
||||
)
|
||||
|
||||
const timeChickin = ref<string>('') //เวลาเข้างาน,เวลาออกงาน
|
||||
|
||||
|
|
@ -923,7 +934,10 @@ watch(
|
|||
<!-- แสดงกล้องตอนกดถ่ายภาพ -->
|
||||
|
||||
<Camera
|
||||
:resolution="{ width: photoWidth, height: photoHeight }"
|
||||
:resolution="{
|
||||
width: photoWidth,
|
||||
height: photoHeight,
|
||||
}"
|
||||
ref="camera"
|
||||
:autoplay="false"
|
||||
:style="!img ? 'display: block' : 'display: none'"
|
||||
|
|
@ -1167,7 +1181,7 @@ watch(
|
|||
>
|
||||
<q-separator />
|
||||
<div class="col-12 q-pa-md">
|
||||
<p
|
||||
<!-- <p
|
||||
:class="
|
||||
$q.screen.gt.xs
|
||||
? 'text-red text-caption '
|
||||
|
|
@ -1175,7 +1189,7 @@ watch(
|
|||
"
|
||||
>
|
||||
*หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที
|
||||
</p>
|
||||
</p> -->
|
||||
<q-btn
|
||||
:label="
|
||||
!statusCheckin && inQueue
|
||||
|
|
@ -1282,7 +1296,7 @@ watch(
|
|||
<q-footer reveal v-if="$q.screen.xs" class="bg-grey-2">
|
||||
<q-separator />
|
||||
<div v-if="!isDisabledCheckTime" class="col-12 q-pa-md">
|
||||
<p
|
||||
<!-- <p
|
||||
:class="
|
||||
$q.screen.gt.xs
|
||||
? 'text-red text-caption '
|
||||
|
|
@ -1290,7 +1304,7 @@ watch(
|
|||
"
|
||||
>
|
||||
*หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที
|
||||
</p>
|
||||
</p> -->
|
||||
<q-btn
|
||||
:label="
|
||||
!statusCheckin && inQueue
|
||||
|
|
@ -1452,4 +1466,4 @@ watch(
|
|||
rgba(2, 169, 152, 1) 100%
|
||||
);
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -460,7 +460,7 @@ onMounted(async () => {
|
|||
<div class="col-12 text-right">
|
||||
<q-separator />
|
||||
<div class="col-12 q-pa-md">
|
||||
<p
|
||||
<!-- <p
|
||||
:class="
|
||||
$q.screen.gt.xs
|
||||
? 'text-red text-caption '
|
||||
|
|
@ -468,7 +468,7 @@ onMounted(async () => {
|
|||
"
|
||||
>
|
||||
*หมายเหตุ คลิกลงเวลาเข้างานแล้วระบบจะลงเวลาทันที
|
||||
</p>
|
||||
</p> -->
|
||||
<q-btn
|
||||
:label="
|
||||
stetusCheckin == true ? 'ลงเวลาเข้างาน' : 'ลงเวลาออกงาน'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue