hrms-mgt/src/interface/request/main/main.ts
2023-06-19 10:18:11 +07:00

314 lines
7 KiB
TypeScript

import { readonly } from "vue";
interface ScrollType {
position: number;
direction: string;
directionChanged: boolean;
inflectionPoint: number;
delta: number;
}
interface tabType {
key: number;
label: string;
tag: string;
}
interface childrenType {
key: number;
label: string;
path?: string;
}
interface menuType {
key: number;
icon: string;
activeIcon: string;
label: string;
path: string;
children?: childrenType[];
}
interface notiType {
id: number;
sender: string;
body: string;
timereceive: string;
}
interface optionType {
icon: string;
label: string;
value: string;
color: string;
}
const menuList = readonly<any[]>([
{
key: 1,
icon: "mdi-home-variant-outline",
activeIcon: "mdi-home-variant",
label: "หน้าแรก",
path: "dashboard",
role: "dashboard",
},
{
key: 2,
icon: "o_person",
activeIcon: "person",
label: "ข้อมูลหลัก",
path: "metadata",
role: "metadata",
},
{
key: 3,
icon: "o_groups",
activeIcon: "groups",
label: "โครงสร้างอัตรากำลัง",
path: "organizational",
role: "organization",
children: [
{
key: 3.1,
label: "จัดการตำแหน่ง",
path: "organizationalMapping",
},
{
key: 3.2,
label: "แผนภูมิโครงสร้าง",
path: "organizationalStructChart",
},
{
key: 3.3,
label: "แผนภูมิองค์กร",
path: "organizationalOrgChart",
},
{
key: 3.4,
label: "ผังโครงสร้าง",
path: "organizationalTree",
},
{
key: 3.5,
label: "จัดการบัญชี 2",
path: "manageReport2",
},
{
key: 3.6,
label: "รายงานบัญชี",
path: "organizationalReport",
},
],
},
{
key: 4,
icon: "o_contact_page",
activeIcon: "contact_page",
label: "ทะเบียนประวัติ",
path: "registry",
role: "registry",
},
{
key: 5,
icon: "o_search",
activeIcon: "search",
label: "สรรหา",
path: "recruiting",
role: "recruit",
children: [
{
label: "ตั้งค่าเว็บสรรหา",
path: "editorweb",
key: 5.1,
role: "recruit",
},
{
label: "สอบแข่งขัน",
path: "",
key: 5.2,
role: "recruit",
children: [
{
label: "จัดการข้อมูลผู้สมัครสอบ" /* แข่งขัน */,
path: "competePeriod",
role: "recruit",
},
{
label: "ข้อมูลสถิติการสมัครสอบ" /* แข่งขัน */,
path: "competePeriodStat",
role: "recruit",
},
],
},
{
label: "คัดเลือก",
path: "",
key: 5.3,
role: "recruit",
children: [
{
label: "จัดการรอบคัดเลือก",
path: "qualifyPeriod",
role: "recruit",
},
{
label: "จัดการรอบคัดเลือกคนพิการ",
path: "disablePeriod",
role: "recruit",
},
{
label: "จัดการรายชื่อคัดเลือก",
path: "manage",
role: "recruit",
},
{
label: "สถิติสมัครคัดเลือก",
path: "qualifyPeriodStat",
role: "recruit",
},
{
label: "สถิติสมัครคัดเลือกคนพิการ",
path: "qualifyPeriodStatDisable",
role: "recruit",
},
],
},
],
},
{
key: 6,
icon: "mdi-home-variant-outline",
activeIcon: "mdi-home-variant",
label: "บรรจุ แต่งตั้ง ย้าย โอน",
path: "placement",
role: "placement",
},
{
key: 7,
icon: "mdi-home-variant-outline",
activeIcon: "mdi-home-variant",
label: "พ้นจากราชการ",
path: "retirement",
role: "retirement",
},
{
key: 8,
icon: "mdi-home-variant-outline",
activeIcon: "mdi-home-variant",
label: "เครื่องราชอิสริยาภรณ์",
path: "insignia",
role: "insignia",
},
]);
const tabList = readonly<tabType[]>([
{
key: 1,
label: "ข้อมูลทั่วไป",
tag: "information",
},
{
key: 15,
label: "ใบอนุญาตประกอบอาชีพ",
tag: "certicate",
},
{
key: 2,
label: "ประวัติการศึกษา",
tag: "education",
},
{
key: 3,
label: "การฝึกอบรม/ดูงาน",
tag: "training",
},
{
key: 4,
label: "เครื่องราชอิสริยาภรณ์",
tag: "insignia",
},
{
key: 5,
label: "ประกาศเกียรติคุณ",
tag: "coined",
},
{
key: 6,
label: "ผลการประเมินปฏิบัติราชการ",
tag: "assessment",
},
{
key: 7,
label: "ตำแหน่ง/เงินเดือน",
tag: "position",
},
{
key: 8,
label: "วินัย",
tag: "rule",
},
{
key: 9,
label: "การลา",
tag: "leave",
},
{
key: 10,
label: "ความสามารถพิเศษ",
tag: "talent",
},
{
key: 11,
label: "ปฎิบัติราชการพิเศษ",
tag: "work",
},
{
key: 12,
label: "บันทึกวันที่ไม่ได้รับเงินเดือนฯ",
tag: "record",
},
{
key: 13,
label: "อื่นๆ",
tag: "other",
},
{
key: 14,
label: "เอกสารหลักฐาน",
tag: "document",
},
]);
const tabList_placement = readonly<tabType[]>([
{
key: 1,
label: "ข้อมูลทั่วไป",
tag: "information",
},
{
key: 2,
label: "ประวัติการศึกษา",
tag: "education",
},
{
key: 3,
label: "ใบอนุญาตประกอบอาชีพ",
tag: "certicate",
},
{
key: 4,
label: "เครื่องราชอิสริยาภรณ์",
tag: "insignia",
},
{
key: 5,
label: "ผลการสอบ",
tag: "examresult",
},
{
key: 6,
label: "การคัดกรองคุณสมบัติ",
tag: "qualification",
},
]);
export { menuList, tabList ,tabList_placement };
export type { ScrollType, tabType, menuType, notiType, optionType };