diff --git a/src/api/02_organizational/api.organization.ts b/src/api/02_organizational/api.organization.ts index 1d8d2aab3..564ec057e 100644 --- a/src/api/02_organizational/api.organization.ts +++ b/src/api/02_organizational/api.organization.ts @@ -26,6 +26,7 @@ export default { organizationHistoryNew: `${organization}/history`, organizationHistoryPostNew: `${organization}/history/publish`, orgChart: (id: string) => `${organization}/org-chart/${id}`, + orgIsLock: `${organization}/lock`, /** position*/ orgPosPosition: `${orgPos}/position`, @@ -123,13 +124,14 @@ export default { * รายการคำร้องขอแก้ไขทะเบียนประวัติ */ requestEdit: `${orgProfile}/edit/`, - requestEditByType:(type:string)=> `${orgProfile}${type}/edit/`, + requestEditByType: (type: string) => `${orgProfile}${type}/edit/`, /** * ข้อมูลการพัฒนารายบุคคล IDP */ requestDevelopmentEdit: `${orgProfile}/development-request/`, - requestDevelopmentEditByType:(type:string)=> `${orgProfile}${type}/development-request/`, + requestDevelopmentEditByType: (type: string) => + `${orgProfile}${type}/development-request/`, /** * รายการเมนู @@ -151,4 +153,6 @@ export default { `${workflow}/keycloak/isofficer/${type}`, positionCondition: `${orgPos}/master/position-condition`, + + keycloakLogSSO: `${organization}/keycloak/log/sso`, }; diff --git a/src/components/Dialogs/DialogOrgSelect.vue b/src/components/Dialogs/DialogOrgSelect.vue index 684e28013..014bd7d7e 100644 --- a/src/components/Dialogs/DialogOrgSelect.vue +++ b/src/components/Dialogs/DialogOrgSelect.vue @@ -545,7 +545,7 @@ onMounted(async () => { dense :nodes="lazy" node-key="orgTreeId" - label-key="orgTreeName" + label-key="labelName" :filter="filter" no-results-label="ไม่พบข้อมูลที่ค้นหา" no-nodes-label="ไม่มีข้อมูล" diff --git a/src/components/Dialogs/DialogOrgSelectEmployee.vue b/src/components/Dialogs/DialogOrgSelectEmployee.vue index bcea6fee4..ab718ed46 100644 --- a/src/components/Dialogs/DialogOrgSelectEmployee.vue +++ b/src/components/Dialogs/DialogOrgSelectEmployee.vue @@ -520,7 +520,7 @@ onMounted(() => { dense :nodes="lazy" node-key="orgTreeId" - label-key="orgTreeName" + label-key="labelName" :filter="filter" no-results-label="ไม่พบข้อมูลที่ค้นหา" no-nodes-label="ไม่มีข้อมูล" @@ -627,7 +627,6 @@ onMounted(() => { map-options :options="columns" option-value="name" - style="min-width: 140px" /> @@ -636,9 +635,7 @@ onMounted(() => { { { dense :nodes="lazy" node-key="orgTreeId" - label-key="orgTreeName" + label-key="labelName" :filter="filter" no-results-label="ไม่พบข้อมูลที่ค้นหา" no-nodes-label="ไม่มีข้อมูล" diff --git a/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue b/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue index c5203aced..3329d40f6 100644 --- a/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue +++ b/src/modules/01_masterdata/components/Indicators/indicatorByPlan/IndicatorByPlan.vue @@ -528,7 +528,7 @@ onMounted(async () => { dense :nodes="nodeAgency" node-key="orgTreeId" - label-key="orgTreeName" + label-key="labelName" selected-color="primary" :filter="filterAgency" no-results-label="ไม่พบข้อมูลที่ค้นหา" diff --git a/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue b/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue index 6b52779cf..9eedebad1 100644 --- a/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue +++ b/src/modules/01_masterdata/components/Indicators/indicatorByRole/DetailView.vue @@ -455,7 +455,7 @@ onMounted(() => { dense :nodes="node" node-key="orgTreeId" - label-key="orgTreeName" + label-key="labelName" v-model:expanded="expanded" :filter="filter" no-results-label="ไม่พบข้อมูลที่ค้นหา" diff --git a/src/modules/02_organization/components/StructureMain.vue b/src/modules/02_organization/components/StructureMain.vue index 626fc5c24..c6da85fa5 100644 --- a/src/modules/02_organization/components/StructureMain.vue +++ b/src/modules/02_organization/components/StructureMain.vue @@ -8,9 +8,7 @@ import http from "@/plugins/http"; import config from "@/app.config"; import { useCounterMixin } from "@/stores/mixin"; import { useOrganizational } from "@/modules/02_organization/store/organizational"; -import { useStructStore } from "@/modules/02_organization/store/chart"; -const storeOrg = useStructStore(); const $q = useQuasar(); const mixin = useCounterMixin(); const store = useOrganizational(); diff --git a/src/modules/02_organization/components/TreeMain.vue b/src/modules/02_organization/components/TreeMain.vue index 65723ab4f..81ab199c6 100644 --- a/src/modules/02_organization/components/TreeMain.vue +++ b/src/modules/02_organization/components/TreeMain.vue @@ -384,7 +384,10 @@ watch(
-
+
{ const typeOrganizational = ref("current"); // ประเภทโครงสร้าง const statusView = ref("list"); // การแสดงผล รายการ,map - const rootId = ref('') - const isOfficer = ref(null); - const isStaff = ref(null); + const rootId = ref(""); + const isOfficer = ref(null); + const isStaff = ref(null); const dataActive = ref(); //ข้อมูลโครงสร้าง const activeId = ref(); // id โครงสร้างปัจจุบัน @@ -24,6 +24,7 @@ export const useOrganizational = defineStore("organizationalStore", () => { const treeId = ref(); // id โหนด const level = ref(); // ระดับโหนด const orgPublishDate = ref(null); // วันเผยแพร่ + const isLosck = ref(false); const sumPosition = reactive({ total: 0, use: 0, @@ -166,6 +167,7 @@ export const useOrganizational = defineStore("organizationalStore", () => { getSumPosition, isOfficer, isStaff, - rootId + rootId, + isLosck, }; }); diff --git a/src/modules/02_organization/views/main.vue b/src/modules/02_organization/views/main.vue index 632fb0805..c786c035b 100644 --- a/src/modules/02_organization/views/main.vue +++ b/src/modules/02_organization/views/main.vue @@ -56,6 +56,7 @@ async function fetchOrganizationActive() { const data = await res.data.result; if (data) { await store.fetchDataActive(data); + await fetchCheckIslock(data.draftId); if (data.activeName === null && data.draftName === null) { isStatusData.value = false; } else { @@ -146,6 +147,18 @@ async function workflowSystem() { .finally(() => {}); } +async function fetchCheckIslock(id: string) { + http + .get(config.API.orgIsLock + `/${id}`) + .then((res) => { + const data = res.data.result; + store.isLosck = data; + }) + .catch((e) => { + messageError($q, e); + }); +} + watch( () => store.typeOrganizational, () => { @@ -305,7 +318,10 @@ onMounted(async () => { ([ headerStyle: "font-size: 14px", style: "font-size: 14px", format: (val: string) => { - return val === "SLIP" ? "เลื่อน" : val === "MOVE" ? "ย้าย" : "-"; + return val === "SLIP" + ? "ปรับระดับชั้นงาน" + : val === "MOVE" + ? "ย้าย" + : "-"; }, }, { @@ -221,7 +225,7 @@ watch( emit-value map-options use-input - style="width: 350px; max-width: auto" + style="width: 380px; max-width: auto" @update:model-value="filterSelectOrder" @filter="(inputValue:string, doneFn:Function) => filterSelector(inputValue, doneFn @@ -267,7 +271,6 @@ watch( map-options :options="columns2" option-value="name" - style="min-width: 140px" />
diff --git a/src/modules/05_placement/views/07_appointEmployeeMain.vue b/src/modules/05_placement/views/07_appointEmployeeMain.vue index fb06f0b9d..83aed4a80 100644 --- a/src/modules/05_placement/views/07_appointEmployeeMain.vue +++ b/src/modules/05_placement/views/07_appointEmployeeMain.vue @@ -121,7 +121,11 @@ const columns = ref([ headerStyle: "font-size: 14px", style: "font-size: 14px", format: (val: string) => { - return val === "SLIP" ? "เลื่อน" : val === "MOVE" ? "ย้าย" : "-"; + return val === "SLIP" + ? "ปรับระดับชั้นงาน" + : val === "MOVE" + ? "ย้าย" + : "-"; }, }, { @@ -342,7 +346,6 @@ onMounted(() => { map-options :options="columns" option-value="name" - style="min-width: 140px" class="col-xs-12 col-sm-3 col-md-2 q-ml-sm" /> diff --git a/src/modules/06_retirement/components/resignEMP/Main.vue b/src/modules/06_retirement/components/resignEMP/Main.vue index dd0d26dc0..0d475bdb7 100644 --- a/src/modules/06_retirement/components/resignEMP/Main.vue +++ b/src/modules/06_retirement/components/resignEMP/Main.vue @@ -7,7 +7,9 @@ const stroe = useDataStore();