set file build image

This commit is contained in:
Kittapath 2023-11-07 19:23:16 +07:00
parent a079fcd0ae
commit 970c582e34
7 changed files with 1793 additions and 2223 deletions

View file

@ -66,21 +66,21 @@ jobs:
docker-compose pull docker-compose pull
docker-compose up -d docker-compose up -d
echo "${{ steps.gen_ver.outputs.image_ver }}"> success echo "${{ steps.gen_ver.outputs.image_ver }}"> success
- uses: snow-actions/line-notify@v1.1.0 # - uses: snow-actions/line-notify@v1.1.0
if: success() # if: success()
with: # with:
access_token: ${{ env.TOKEN_LINE }} # access_token: ${{ env.TOKEN_LINE }}
message: | # message: |
-Success✅✅✅ # -Success✅✅✅
Image: ${{env.IMAGE_NAME}} # Image: ${{env.IMAGE_NAME}}
Version: ${{ github.event.inputs.IMAGE_VER }} # Version: ${{ github.event.inputs.IMAGE_VER }}
By: ${{secrets.DOCKER_USER}} # By: ${{secrets.DOCKER_USER}}
- uses: snow-actions/line-notify@v1.1.0 # - uses: snow-actions/line-notify@v1.1.0
if: failure() # if: failure()
with: # with:
access_token: ${{ env.TOKEN_LINE }} # access_token: ${{ env.TOKEN_LINE }}
message: | # message: |
-Failure❌❌❌ # -Failure❌❌❌
Image: ${{env.IMAGE_NAME}} # Image: ${{env.IMAGE_NAME}}
Version: ${{ github.event.inputs.IMAGE_VER }} # Version: ${{ github.event.inputs.IMAGE_VER }}
By: ${{secrets.DOCKER_USER}} # By: ${{secrets.DOCKER_USER}}

View file

@ -13,9 +13,9 @@ RUN mkdir /app
COPY --from=build-stage /app/dist /app COPY --from=build-stage /app/dist /app
COPY nginx.conf /etc/nginx/nginx.conf COPY nginx.conf /etc/nginx/nginx.conf
# COPY entrypoint.sh /usr/local/bin/entrypoint.sh COPY entrypoint.sh /usr/local/bin/entrypoint.sh
# RUN chmod u+x /usr/local/bin/entrypoint.sh RUN chmod u+x /usr/local/bin/entrypoint.sh
# ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]

View file

@ -4,7 +4,7 @@
"private": true, "private": true,
"scripts": { "scripts": {
"dev": "vite", "dev": "vite",
"build": "run-p ", "build": "run-p build-only",
"preview": "vite preview", "preview": "vite preview",
"test:unit": "vitest --environment jsdom --root src/", "test:unit": "vitest --environment jsdom --root src/",
"test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'", "test:e2e": "start-server-and-test preview :4173 'cypress run --e2e'",

File diff suppressed because it is too large Load diff

View file

@ -1,11 +1,11 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from "vue"; import { ref } from "vue"
const rightDrawerOpen = ref(false); const rightDrawerOpen = ref(false)
const text = ref(""); const text = ref("")
</script> </script>
<template> <template>
<!-- <div class="row col-12"> <!-- <div class="row col-12">
<div class="col-9"> <div class="col-9">
<div class="toptitle text-dark col-12 row items-center"> <div class="toptitle text-dark col-12 row items-center">
อการใชงานระบบบรหารทรพยากรบคคลของกรงเทพมหานคร อการใชงานระบบบรหารทรพยากรบคคลของกรงเทพมหานคร
@ -26,422 +26,170 @@ const text = ref("");
</div> </div>
</q-card> --> </q-card> -->
<q-card <q-card flat bordered class="col-12 q-pa-md" style="border-radius: 0px 0px 8px 8px">
flat <div style="font-weight: bold; font-size: 15px; color: #00aa86">2.3 อมลตำแหนงของขาราชการ</div>
bordered
class="col-12 q-pa-md"
style="border-radius: 0px 0px 8px 8px"
>
<div style="font-weight: bold; font-size: 15px; color: #00aa86">
2.3 อมลตำแหนงของขาราชการ
</div>
<div class="col-12" style="margin-top: 20px; margin-left: 10px"> <div class="col-12" style="margin-top: 20px; margin-left: 10px">- เมอกดเลอกเมน อมลตำแหนงของขาราชการ จะปรากฏรายละเอยดดงรปภาพ</div>
- เมอกดเลอกเมน อมลตำแหนงของขาราชการ จะปรากฏรายละเอยดดงรปภาพ
</div>
<div class="col-12"> <div class="col-12">
<q-img <q-img src="@/assets/manual/02_data/4_officer/2-41.png" style="display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px" />
src="@/assets/manual/02_data/4_Officer/2-41.png" <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 41 รายละเอยดขอมลตำแหนงของขาราชการ</div>
style=" </div>
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 41 รายละเอยดขอมลตำแหนงของขาราชการ
</div>
</div>
<div class="col-12" style="margin-top: 50px; margin-left: 10px"> <div class="col-12" style="margin-top: 50px; margin-left: 10px">
<p> <p>
- เลอกกดแถบเมนอย ตำแหนงประเภท, อสายงาน, อตำแหนงสายงาน, - เลอกกดแถบเมนอย ตำแหนงประเภท, อสายงาน, อตำแหนงสายงาน, าน/สาขาของสายงาน, ระดบตำแหน, อตำแหนงทางการบรหาร, านทางการบรหารหร สถานะของตำแหน
าน/สาขาของสายงาน, ระดบตำแหน, อตำแหนงทางการบรหาร, ระบบแสดงขอมลโดยสามารถเพ ลบหรอแกไขขอมลไดงรปภาพ งเมนอยอนๆสามารถทำตามขนตอนดงตอไปนไดเนองจากมการทำและการแสดง
านทางการบรหารหร สถานะของตำแหน ระบบแสดงขอมลโดยสามารถเพ หนาจอเหมอนกนและในกรอบสแดงทองคนหาสามารถสบคนขอมลและชองคอลมนสามารถเลอกรายการเพอซอน
ลบหรอแกไขขอมลไดงรปภาพ </p>
งเมนอยอนๆสามารถทำตามขนตอนดงตอไปนไดเนองจากมการทำและการแสดง </div>
หนาจอเหมอนกนและในกรอบสแดงทองคนหาสามารถสบคนขอมลและชองคอลมนสามารถเลอกรายการเพอซอน
</p>
</div>
<div class="col-12"> <div class="col-12">
<q-img <q-img src="@/assets/manual/02_data/4_officer/2-42.png" style="display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px" />
src="@/assets/manual/02_data/4_Officer/2-42.png"
style="
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px"> <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 42 แถบเมนอมลตำแหนงของขาราชการ</div>
ปภาพท 2 - 42 แถบเมนอมลตำแหนงของขาราชการ
</div>
<div <div class="col-12" style="margin-top: -; padding: 10px; background-color: rgb(243, 243, 243); font-size: 14px; margin-top: 20px; border-radius: 5px">
class="col-12" หมายเลข 1 คอลมนแสดงชอคอลมนแสดงขอมลยอยของขอมลตำแหนงของขาราชการ <br />
style=" หมายเลข 2 องสำหรบกรอกคนหาและเลอกคอลมนแสดงขอมลตามทไดไดการคนหา
margin-top: -; </div>
padding: 10px; </div>
background-color: rgb(243, 243, 243);
font-size: 14px;
margin-top: 20px;
border-radius: 5px;
"
>
หมายเลข 1
คอลมนแสดงชอคอลมนแสดงขอมลยอยของขอมลตำแหนงของขาราชการ <br />
หมายเลข 2
องสำหรบกรอกคนหาและเลอกคอลมนแสดงขอมลตามทไดไดการคนหา
</div>
</div>
<div class="col-12"> <div class="col-12">
<p style="margin-top: 50px; margin-left: 10px"> <p style="margin-top: 50px; margin-left: 10px">
- กดไอคอน - กดไอคอน
<q-icon <q-icon name="mdi-pencil-outline" style="margin: 0 5px; color: #02a998" size="xs" />
name="mdi-pencil-outline" เพอเพ ลบหรอแกไขขอม ระบบแสดงดงรปภาพ โดยสามารถแกไขรายการทอยไดเลย
style="margin: 0 5px; color: #02a998" </p>
size="xs" </div>
/>
เพอเพ ลบหรอแกไขขอม ระบบแสดงดงรปภาพ
โดยสามารถแกไขรายการทอยไดเลย
</p>
</div>
<div class="col-12"> <div class="col-12">
<q-img <q-img src="@/assets/manual/02_data/4_officer/2-43.png" style="display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px" />
src="@/assets/manual/02_data/4_Officer/2-43.png"
style="
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px"> <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 43 แกไขหรอลบขอม</div>
ปภาพท 2 - 43 แกไขหรอลบขอม </div>
</div>
</div>
<div class="col-12"> <div class="col-12">
<p style="margin-top: 50px; margin-left: 10px"> <p style="margin-top: 50px; margin-left: 10px">
- กดไอคอน - กดไอคอน
<q-icon <q-icon name="mdi-plus" style="margin: 0 5px; color: #00aa86" size="xs" />
name="mdi-plus" เพอเพมขอมลระบบจะปรากฏชองเพอใหเพมขอมลดงรปภาพและเมอกรอกเพอเพมขอมลเรยบรอยแลวใหกดไอคอน
style="margin: 0 5px; color: #00aa86" <q-icon name="mdi-content-save-outline" style="margin: 0 5px; color: #01435f" size="xs" />
size="xs" เพอบนทกราง (อมลยงไมการ-เผยแพร) โดยการบนทกเฉพาะขอมลรางนนจะมเพยงผแลระบบเทานนทเหนได สามารถกดไอคอน
/> <q-icon name="mdi-file-remove-outline" style="margin: 0 5px; color: hsl(0, 100%, 50%)" size="xs" />
เพอเพมขอมลระบบจะปรากฏชองเพอใหเพมขอมลดงรปภาพและเมอกรอกเพอเพมขอมลเรยบรอยแลวใหกดไอคอน เพอลบบนทกรางและสามารถกดไอคอน
<q-icon <q-icon name="mdi-cloud-upload-outline" style="margin: 0 5px; color: #01435f" size="xs" />
name="mdi-content-save-outline" เพอเผยแพรอม โดยในสวนการเผยแพรอมลนนผแลระบบมการตรวจสอบความถกตองเรยบรอยแล และไดทำการเผยแพรใหเจาหนาทกคนเหนขอม
style="margin: 0 5px; color: #01435f" </p>
size="xs"
/>
เพอบนทกราง (อมลยงไมการ-เผยแพร)
โดยการบนทกเฉพาะขอมลรางนนจะมเพยงผแลระบบเทานนทเหนได
สามารถกดไอคอน
<q-icon
name="mdi-file-remove-outline"
style="margin: 0 5px; color: hsl(0, 100%, 50%)"
size="xs"
/>
เพอลบบนทกรางและสามารถกดไอคอน
<q-icon
name="mdi-cloud-upload-outline"
style="margin: 0 5px; color: #01435f"
size="xs"
/>
เพอเผยแพรอม
โดยในสวนการเผยแพรอมลนนผแลระบบมการตรวจสอบความถกตองเรยบรอยแล
และไดทำการเผยแพรใหเจาหนาทกคนเหนขอม
</p>
<q-img <q-img src="@/assets/manual/02_data/4_officer/2-44.png" style="max-width: 100%; display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px; border: 1px solid #97b2de" />
src="@/assets/manual/02_data/4_Officer/2-44.png" <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 44 เพมขอมลในชองทปรากฏ</div>
style="
max-width: 100%;
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
border: 1px solid #97b2de;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 44 เพมขอมลในชองทปรากฏ
</div>
<div <div style="margin-top: 20px; padding: 10px; background-color: #f3f3f3; font-size: 14px; color: #000000; border-radius: 5px">
style=" หมายเลข 1 องสำหรบกรอกเพมขอมลชอหนวยงาน/หนวยงานตนสงก/วนรายการตนสงก
margin-top: 20px; <div style="margin-left: 50px">
padding: 10px; - เมอไมองการเพมขอมลแลวใหกดไอคอน
background-color: #f3f3f3; <q-icon name="mdi-trash-can-outline" style="margin: 0 5px; color: hsl(0, 100%, 50%)" size="xs" />
font-size: 14px; เพอลบชองเพมขอม <br />
color: #000000; - เมอตองการปดสถานะใหกดตรงไอคอน
border-radius: 5px; <div
" class="q-toggle__inner relative-position non-selectable q-toggle__inner--truthy text-positive"
> aria-hidden="true"
หมายเลข 1 style="font-size: 24px; display: inline-block; padding: 0 0.3em !important ; height: 0.35em"
องสำหรบกรอกเพมขอมลชอหนวยงาน/หนวยงานตนสงก/วนรายการตนสงก >
<div style="margin-left: 50px"> <div class="q-toggle__thumb absolute flex flex-center no-wrap" style="top: -0.08em"></div>
- เมอไมองการเพมขอมลแลวใหกดไอคอน <div class="q-toggle__track"></div>
<q-icon </div>
name="mdi-trash-can-outline" เพอทจะไมแสดงขอมลนนในหนาอนจากนนใหกดไอคอน
style="margin: 0 5px; color: hsl(0, 100%, 50%)" <q-icon name="mdi-content-save-outline" style="margin: 0 5px; color: #01435f" size="xs" />
size="xs" เพอบนทกราง และกดไอคอน
/> <q-icon name="mdi-cloud-upload-outline" style="margin: 0 5px; color: #01435f" size="xs" />
เพอลบชองเพมขอม <br /> เพอเผยแพรอม
- เมอตองการปดสถานะใหกดตรงไอคอน </div>
<div </div>
class="q-toggle__inner relative-position non-selectable q-toggle__inner--truthy text-positive" </div>
aria-hidden="true"
style="
font-size: 24px;
display: inline-block;
padding: 0 0.3em !important ;
height: 0.35em;
"
>
<div
class="q-toggle__thumb absolute flex flex-center no-wrap"
style="top: -0.08em"
></div>
<div class="q-toggle__track"></div>
</div>
เพอทจะไมแสดงขอมลนนในหนาอนจากนนใหกดไอคอน
<q-icon
name="mdi-content-save-outline"
style="margin: 0 5px; color: #01435f"
size="xs"
/>
เพอบนทกราง และกดไอคอน
<q-icon
name="mdi-cloud-upload-outline"
style="margin: 0 5px; color: #01435f"
size="xs"
/>
เพอเผยแพรอม
</div>
</div>
</div>
<div class="col-12" style="margin-top: 50px; margin-left: 10px"> <div class="col-12" style="margin-top: 50px; margin-left: 10px">
<p> <p>
- เมอกดไอคอน - เมอกดไอคอน
<q-icon <q-icon name="mdi-content-save-outline" style="margin: 0 5px; color: #01435f" size="xs" />
name="mdi-content-save-outline" เพอบนทกราง (อมลยงไมการเผยแพร) ระบบปรากฏปาย นทกขอมลรางสำเร งรปภาพ
style="margin: 0 5px; color: #01435f" </p>
size="xs" </div>
/> <div class="col-12">
เพอบนทกราง (อมลยงไมการเผยแพร) ระบบปรากฏปาย <q-img src="@/assets/manual/02_data/4_officer/2-45.png" style="display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px" />
นทกขอมลรางสำเร งรปภาพ <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 45 าย นทกขอมลรางสำเร</div>
</p>
</div>
<div class="col-12">
<q-img
src="@/assets/manual/02_data/4_Officer/2-45.png"
style="
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 45 าย นทกขอมลรางสำเร
</div>
<div <div class="col-12" style="margin-top: -; padding: 10px; background-color: rgb(243, 243, 243); font-size: 14px; margin-top: 20px; border-radius: 5px">
class="col-12" หมายเลข 1 ระบบแสดงสถานะ นทกขอมลรางสำเร หลงจากกดบนทกเพมขอมลตำแหนงของขาราชการ
style=" </div>
margin-top: -; </div>
padding: 10px;
background-color: rgb(243, 243, 243);
font-size: 14px;
margin-top: 20px;
border-radius: 5px;
"
>
หมายเลข 1 ระบบแสดงสถานะ นทกขอมลรางสำเร
หลงจากกดบนทกเพมขอมลตำแหนงของขาราชการ
</div>
</div>
<div class="col-12" style="margin-top: 50px; margin-left: 10px"> <div class="col-12" style="margin-top: 50px; margin-left: 10px">
- กดไอคอน - กดไอคอน
<q-icon <q-icon name="mdi-file-remove-outline" style="margin: 0 5px; color: hsl(0, 100%, 50%)" size="xs" />
name="mdi-file-remove-outline" เพอลบบนทกราง ระบบจะขนปาย องการลบขอมลบนทกรางนหรอไม? งรปภาพ
style="margin: 0 5px; color: hsl(0, 100%, 50%)"
size="xs"
/>
เพอลบบนทกราง ระบบจะขนปาย องการลบขอมลบนทกรางนหรอไม?
งรปภาพ
<q-img <q-img
class="col-12" class="col-12"
src="@/assets/manual/02_data/4_Officer/2-46.png" src="@/assets/manual/02_data/4_officer/2-46.png"
style=" style="max-width: 70%; display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px; border: 1px solid #97b2de"
max-width: 70%; />
display: block; <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 46 าย องการลบขอมลบนทกรางนหรอไม?</div>
margin: 0 auto; </div>
border-radius: 20px;
margin-top: 20px;
border: 1px solid #97b2de;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 46 าย องการลบขอมลบนทกรางนหรอไม?
</div>
</div>
<div class="col-12" style="margin-top: 50px; margin-left: 10px"> <div class="col-12" style="margin-top: 50px; margin-left: 10px">
<p> <p>- เมอกดป ลบบนท ระบบปรากฏปาย ลบขอมลรางสำเร งรปภาพ และเมอกดป ยกเล ระบบจะไมทำการลบขอมลราง</p>
- เมอกดป ลบบนท ระบบปรากฏปาย ลบขอมลรางสำเร งรปภาพ </div>
และเมอกดป ยกเล ระบบจะไมทำการลบขอมลราง <div class="col-12">
</p> <q-img src="@/assets/manual/02_data/4_officer/2-47.png" style="display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px" />
</div> <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 47 าย ลบขอมลรางสำเร</div>
<div class="col-12">
<q-img
src="@/assets/manual/02_data/4_Officer/2-47.png"
style="
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 47 าย ลบขอมลรางสำเร
</div>
<div <div class="col-12" style="margin-top: -; padding: 10px; background-color: rgb(243, 243, 243); font-size: 14px; margin-top: 20px; border-radius: 5px">
class="col-12" หมายเลข 1 ระบบแสดงสถานะ ลบขอมลสำเร หลงจากคลกยนยนการลบขอมลตำแหนงของขาราชการ
style=" </div>
margin-top: -; </div>
padding: 10px;
background-color: rgb(243, 243, 243);
font-size: 14px;
margin-top: 20px;
border-radius: 5px;
"
>
หมายเลข 1 ระบบแสดงสถานะ ลบขอมลสำเร
หลงจากคลกยนยนการลบขอมลตำแหนงของขาราชการ
</div>
</div>
<div class="col-12" style="margin-top: 50px; margin-left: 10px"> <div class="col-12" style="margin-top: 50px; margin-left: 10px">
<p> <p>
- กดไอคอน - กดไอคอน
<q-icon <q-icon name="mdi-cloud-upload-outline" style="margin: 0 5px; color: #01435f" size="xs" />
name="mdi-cloud-upload-outline" เพอเผยแพรอมลระบบปรากฏปาย องการเผยแพรอมลนหรอไม? งรปภาพ
style="margin: 0 5px; color: #01435f" </p>
size="xs" </div>
/> <div class="col-12">
เพอเผยแพรอมลระบบปรากฏปาย องการเผยแพรอมลนหรอไม? <q-img src="@/assets/manual/02_data/4_officer/2-48.png" style="max-width: 70%; display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px; border: 1px solid #97b2de" />
งรปภาพ <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 48 าย องการเผยแพรอมลนหรอไม?</div>
</p> </div>
</div>
<div class="col-12">
<q-img
src="@/assets/manual/02_data/4_Officer/2-48.png"
style="
max-width: 70%;
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
border: 1px solid #97b2de;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 48 าย องการเผยแพรอมลนหรอไม?
</div>
</div>
<div class="col-12" style="margin-top: 50px; margin-left: 10px"> <div class="col-12" style="margin-top: 50px; margin-left: 10px">
<p> <p>- เมอกดป เผยแพร ระบบปรากฏปาย เผยแพรอมลสำเร งรปภาพ และเมอกดปยกเล ระบบจะไมทำการเผยแพรอม</p>
- เมอกดป เผยแพร ระบบปรากฏปาย เผยแพรอมลสำเร งรปภาพ </div>
และเมอกดปยกเล ระบบจะไมทำการเผยแพรอม <div class="col-12">
</p> <q-img src="@/assets/manual/02_data/4_officer/2-49.png" style="display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px" />
</div> <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 49 าย เผยแพรอมลสำเร</div>
<div class="col-12">
<q-img
src="@/assets/manual/02_data/4_Officer/2-49.png"
style="
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 49 าย เผยแพรอมลสำเร
</div>
<div <div class="col-12" style="margin-top: -; padding: 10px; background-color: rgb(243, 243, 243); font-size: 14px; margin-top: 20px; border-radius: 5px">
class="col-12" หมายเลข 1 ระบบแสดงสถานะ เผยแพรอมลสำเร หลงจากคลกเผยแพรอมลตำแหน
style=" </div>
margin-top: -; </div>
padding: 10px;
background-color: rgb(243, 243, 243);
font-size: 14px;
margin-top: 20px;
border-radius: 5px;
"
>
หมายเลข 1 ระบบแสดงสถานะ เผยแพรอมลสำเร
หลงจากคลกเผยแพรอมลตำแหน
</div>
</div>
<div class="col-12" style="margin-top: 50px; margin-left: 10px"> <div class="col-12" style="margin-top: 50px; margin-left: 10px">
<p> <p>
- กดไอคอน - กดไอคอน
<q-icon <q-icon name="mdi-history" style="margin: 0 5px; color: #31ccec" size="xs" />
name="mdi-history" เพอดประวอมลแกไข งรปภาพ ในกรอบสแดงสามารถกรอกทองคนหาเพอสบคนขอมลหรอทองคอลมนสามารถเลอกรายการเพอซอน
style="margin: 0 5px; color: #31ccec" </p>
size="xs" </div>
/> <div class="col-12">
เพอดประวอมลแกไข งรปภาพ <q-img src="@/assets/manual/02_data/4_officer/2-50.png" style="display: block; margin: 0 auto; border-radius: 20px; margin-top: 20px" />
ในกรอบสแดงสามารถกรอกทองคนหาเพอสบคนขอมลหรอทองคอลมนสามารถเลอกรายการเพอซอน <div class="text-center text-grey-6" style="margin-top: 20px">ปภาพท 2 - 50 หนาประวแกไขขอม</div>
</p>
</div>
<div class="col-12">
<q-img
src="@/assets/manual/02_data/4_Officer/2-50.png"
style="
display: block;
margin: 0 auto;
border-radius: 20px;
margin-top: 20px;
"
/>
<div class="text-center text-grey-6" style="margin-top: 20px">
ปภาพท 2 - 50 หนาประวแกไขขอม
</div>
<div <div class="col-12" style="margin-top: -; padding: 10px; background-color: rgb(243, 243, 243); font-size: 14px; margin-top: 20px; border-radius: 5px">
class="col-12" หมายเลข 1 องสำหรบกรอกขอมลเพอคนหาและเลอกคอลมนแสดงขอมลประวแกไขชอตำแหนงของขาราชการททำการกรอกคนหา
style=" </div>
margin-top: -; </div>
padding: 10px; </q-card>
background-color: rgb(243, 243, 243); <!-- </div>
font-size: 14px;
margin-top: 20px;
border-radius: 5px;
"
>
หมายเลข 1
องสำหรบกรอกขอมลเพอคนหาและเลอกคอลมนแสดงขอมลประวแกไขชอตำแหนงของขาราชการททำการกรอกคนหา
</div>
</div>
</q-card>
<!-- </div>
</div> --> </div> -->
</template> </template>

View file

@ -1,79 +1,79 @@
import { createRouter, createWebHistory } from "vue-router"; import { createRouter, createWebHistory } from "vue-router"
const MainLayout = () => import("@/views/MainLayout.vue"); const MainLayout = () => import("@/views/MainLayout.vue")
const Dashboard = () => import("@/views/Dashboard.vue"); const Dashboard = () => import("@/views/Dashboard.vue")
const Error404NotFound = () => import("@/views/Error404NotFound.vue"); const Error404NotFound = () => import("@/views/Error404NotFound.vue")
import ModuleManual from "@/modules/01_manual/router"; import ModuleManual from "@/modules/01_manual/router"
// TODO: ใช้หรือไม่? // TODO: ใช้หรือไม่?
import keycloak from "@/plugins/keycloak"; import keycloak from "@/plugins/keycloak"
const router = createRouter({ const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL), history: createWebHistory(import.meta.env.BASE_URL),
routes: [ routes: [
{ {
path: "/", path: "/",
name: "home", name: "home",
component: MainLayout, component: MainLayout,
children: [ children: [
{ // {
path: "/", // path: "/",
name: "dashboard", // name: "dashboard",
component: Dashboard, // component: Dashboard,
meta: { // meta: {
Auth: true, // Auth: true,
Key: [7], // Key: [7],
Role: "dashboard", // Role: "dashboard",
}, // },
}, // },
...ModuleManual, ...ModuleManual,
], ],
}, },
/** /**
* 404 Not Found * 404 Not Found
* ref: https://router.vuejs.org/guide/essentials/dynamic-matching.html#catch-all-404-not-found-route * ref: https://router.vuejs.org/guide/essentials/dynamic-matching.html#catch-all-404-not-found-route
*/ */
{ {
// path: "/:catchAll(.*)*", // TODO: ใช้ pathMatch แทนตามในเอกสารแนะนำ คงไว้เผื่อจำเป็น // path: "/:catchAll(.*)*", // TODO: ใช้ pathMatch แทนตามในเอกสารแนะนำ คงไว้เผื่อจำเป็น
path: "/:pathMatch(.*)*", path: "/:pathMatch(.*)*",
component: Error404NotFound, component: Error404NotFound,
}, },
], ],
scrollBehavior(to, from, savedPosition) { scrollBehavior(to, from, savedPosition) {
if (savedPosition) { if (savedPosition) {
return savedPosition; return savedPosition
} else if (to.hash) { } else if (to.hash) {
return { return {
el: to.hash, el: to.hash,
behavior: "smooth", behavior: "smooth",
}; }
} }
}, },
}); })
router.beforeEach((to, from, next) => { router.beforeEach((to, from, next) => {
if (to.meta.Auth) { // if (to.meta.Auth) {
if (!keycloak.authenticated) { // if (!keycloak.authenticated) {
keycloak.login({ // keycloak.login({
redirectUri: `${window.location.protocol}//${window.location.host}${to.path}`, // redirectUri: `${window.location.protocol}//${window.location.host}${to.path}`,
locale: "th", // locale: "th",
}); // })
} else { // } else {
// keycloak.updateToken(60); // // keycloak.updateToken(60);
const role = keycloak.tokenParsed?.role; // const role = keycloak.tokenParsed?.role
if (role.includes(to.meta.Role)) { // if (role.includes(to.meta.Role)) {
next(); // next()
} else { // } else {
next({ path: "" }); // next({ path: "" })
// next(); // // next();
} // }
} // }
} else { // } else {
next(); // next()
} // }
// next(); next()
}); })
export default router; export default router

File diff suppressed because it is too large Load diff