อัตรากำลังลูกจ้างประจำ ฯ
This commit is contained in:
parent
68bbde3f04
commit
ac0bc84da3
11 changed files with 114 additions and 98 deletions
|
|
@ -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 () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue