อัตรากำลังลูกจ้างประจำ ฯ

This commit is contained in:
DESKTOP-1R2VSQH\Lenovo ThinkPad E490 2024-12-03 13:07:22 +07:00
parent 68bbde3f04
commit ac0bc84da3
11 changed files with 114 additions and 98 deletions

View file

@ -8,25 +8,20 @@ import { checkPermission } from "@/utils/permissions";
import { useOrganizational } from "@/modules/02_organization/store/organizational";
import { useCounterMixin } from "@/stores/mixin";
/**
* importType
*/
/** importType*/
import type { DataOrgRevision } from "@/modules/02_organization/interface/index/Main";
import type { OrgRevision } from "@/modules/02_organization/interface/response/organizational";
/**
* importComponents
*/
import TreeView from "@/modules/02_organization/components/TreeView.vue";
/** importComponents*/
import TreeView from "@/modules/02_organization/components/MainView.vue";
import StructureView from "@/modules/02_organization/components/StructureMain.vue";
import StructureOrgMain from "@/modules/02_organization/components/StructureOrgMain.vue";
import DialogFormNewStructure from "@/modules/02_organization/components/DialogNewStructure.vue";
import DialogDateTime from "@/modules/02_organization/components/DialogFormDateTime.vue";
import DialogCreateCommandORG from "@/modules/18_command/components/DialogCreateCommandORG.vue"; //
import DialogHeader from "@/components/DialogHeader.vue";
/**
* use
*/
/** use*/
const $q = useQuasar();
const { showLoader, hideLoader, messageError, date2Thai } = useCounterMixin();
const store = useOrganizational();
@ -84,9 +79,7 @@ async function fetchOrganizationActive() {
});
}
/**
* function เรยกขอมรายการลประวโครงสราง
*/
/** function เรียกข้อมูรายการลประวัติโครงสร้าง*/
async function fetchHistory() {
await http
.get(config.API.organizationHistoryNew)
@ -118,9 +111,7 @@ function ocClickAddStructure(type: string) {
typeStructure.value = type;
}
/**
* function openPopup งเวลาเผยแพร
*/
/** function openPopup ตั้งเวลาเผยแพร่ */
function onClickDateTime() {
modalDateTime.value = !modalDateTime.value;
}
@ -138,20 +129,16 @@ function onClickHistory(id: string, name: string) {
}
async function workflowSystem() {
showLoader();
http
.get(config.API.workflowKeycloakSystem("SYS_ORG"))
.then((res) => {
const data = res.data.result;
store.isOfficer = data.isOfficer;
store.isStaff = data.isStaff;
hideLoader();
})
.catch((e) => {
messageError($q, e);
hideLoader();
})
.finally(() => {});
});
}
async function fetchCheckIslock(id: string) {
@ -183,7 +170,6 @@ watch(
/**
* lifecycleHook ทำงานเมอมการเรยกใช Components
*
* งขอมลโครงสรางและรายการประวโครงสราง
*/
onMounted(async () => {