diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 897f2e298..7fe463c7c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,5 +1,5 @@ -name: release-test -run-name: release-test ${{ github.actor }} +name: release +run-name: release ${{ github.actor }} on: push: tags: @@ -9,11 +9,11 @@ env: REGISTRY: docker.frappet.com IMAGE_NAME: ehr/bma-ehr-app DEPLOY_HOST: frappet.com - # COMPOSE_PATH: /home/frappet/docker/bma-ehr COMPOSE_PATH: /home/frappet/docker/bma/bma-ehr + jobs: # act workflow_dispatch -W .github/workflows/release.yaml --input IMAGE_VER=latest -s DOCKER_USER=kittapath@frappet.com -s DOCKER_PASS=P@ssw0rd -s SSH_PASSWORD=FPTadmin2357 - release-test: + release: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 @@ -67,21 +67,40 @@ jobs: docker compose pull docker compose up -d echo "${{ steps.gen_ver.outputs.image_ver }}"> success - - uses: snow-actions/line-notify@v1.1.0 + - name: Notify Discord Success if: success() - with: - access_token: ${{ secrets.TOKEN_LINE }} - message: | - -Success✅✅✅ - Image: ${{env.IMAGE_NAME}} - Version: ${{ steps.gen_ver.outputs.IMAGE_VER }} - By: ${{github.actor}} - - uses: snow-actions/line-notify@v1.1.0 + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "✅ Deployment Success!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Deployed by: `${{github.actor}}`", + "color": 3066993, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/success-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} + + - name: Notify Discord Failure if: failure() - with: - access_token: ${{ secrets.TOKEN_LINE }} - message: | - -Failure❌❌❌ - Image: ${{env.IMAGE_NAME}} - Version: ${{ steps.gen_ver.outputs.IMAGE_VER }} - By: ${{github.actor}} + run: | + curl -H "Content-Type: application/json" \ + -X POST \ + -d '{ + "embeds": [{ + "title": "❌ Deployment Failed!", + "description": "**Details:**\n- Image: `${{env.IMAGE_NAME}}`\n- Version: `${{ steps.gen_ver.outputs.image_ver }}`\n- Attempted by: `${{github.actor}}`", + "color": 15158332, + "footer": { + "text": "Release Notification", + "icon_url": "https://example.com/failure-icon.png" + }, + "timestamp": "'$(date -u +%Y-%m-%dT%H:%M:%SZ)'" + }] + }' \ + ${{ secrets.DISCORD_WEBHOOK }} diff --git a/src/modules/07_insignia/views/06_ReportMain.vue b/src/modules/07_insignia/views/06_ReportMain.vue index 5f02e0595..e2e651ec6 100644 --- a/src/modules/07_insignia/views/06_ReportMain.vue +++ b/src/modules/07_insignia/views/06_ReportMain.vue @@ -1,51 +1,433 @@ รายงานเครื่องราชอิสริยาภรณ์ - - - - - - - - - บัญชีรายชื่อข้าราชการผู้ขอพระราชทานเครื่องราชอิสริยาภรณ์ - - - - - - - - บัญชีระดับผลการประเมินผลการปฏิบัติราชการในรอบ 5 ปี - - + + + + + + - - - - - - บัญชีแสดงจำนวนชั้นตราเครื่องราชฯ - - + + + + + + + ไฟล์ .pdf + + + + ไฟล์ .docx + + + + ไฟล์ .xlsx + + + + + + + + + + + + + + + + filterSelector(inputValue, doneFn,'round') " + > + + + + ไม่มีข้อมูล + + + + + + + + + + + + + + + + + + + + + + + + + + {{ prop.node.orgTreeName }} + + + {{ prop.node.orgCode == null ? null : prop.node.orgCode }} + {{ + prop.node.orgTreeShortName == null + ? null + : prop.node.orgTreeShortName + }} + + + + + + + + + + + + + + + + + + + + + หน้าที่ {{ page }} จาก {{ numOfPages }} + + + + + + + + + + + + + + + + + + + + + + + + หน้าที่ {{ page }} จาก {{ numOfPages }} + + + + + + + + + + + + @@ -57,4 +439,18 @@ function nextPage(type: string) { .q-item.hover-green { padding: 10px; } + +.tree-container { + overflow: auto; + height: 60vh; + border: 1px solid #e6e6e7; + border-radius: 10px; +} +.my-list-link { + color: rgb(118, 168, 222); + border-radius: 5px; + background: #a3d3fb48 !important; + font-weight: 600; + border: 1px solid rgba(175, 185, 196, 0.217); +} diff --git a/src/modules/09_leave/views/06_ReportMain.vue b/src/modules/09_leave/views/06_ReportMain.vue index 7422243b0..c26c5863b 100644 --- a/src/modules/09_leave/views/06_ReportMain.vue +++ b/src/modules/09_leave/views/06_ReportMain.vue @@ -289,6 +289,7 @@ onMounted(() => { { - + { /> - - + + { - - - {{ year + 543 }} - {{ - parseInt(value + 543) - }} - - - - - - - - - - - - {{ year + 543 }} - {{ - parseInt(value + 543) - }} - - - - - - - - - - - {{ year + 543 }} - {{ - parseInt(value + 543) - }} - - - - - - - - - + + + + {{ year + 543 }} + {{ + parseInt(value + 543) + }} + + + + + + + + + + + + + {{ year + 543 }} + {{ + parseInt(value + 543) + }} + + + + + + + + + + + + + {{ year + 543 }} + {{ + parseInt(value + 543) + }} + + + + + + + + + + diff --git a/src/modules/09_leave/views/07_ReportCheckin.vue b/src/modules/09_leave/views/07_ReportCheckin.vue index e19a341ec..8bedf36d6 100644 --- a/src/modules/09_leave/views/07_ReportCheckin.vue +++ b/src/modules/09_leave/views/07_ReportCheckin.vue @@ -287,7 +287,6 @@ onMounted(() => { option-label="name" option-value="id" @update:model-value="updateFilterType(filterType)" - style="width: 230px" > @@ -318,7 +317,7 @@ onMounted(() => { - + { /> - + { { {