Merge branch 'develop' of github.com:Frappet/bma-ehr-frontend into develop
This commit is contained in:
commit
4f11619a7f
10 changed files with 389 additions and 389 deletions
|
|
@ -3,12 +3,21 @@ const KPI = `${env.API_URI}/kpi`;
|
|||
const kpiPeriod = `${env.API_URI}/kpi/period`;
|
||||
const kpiEvaluation = `${env.API_URI}/kpi/evaluation`;
|
||||
const kpiGroup = `${env.API_URI}/kpi/group`;
|
||||
const kpiPlan = `${env.API_URI}/kpi/plan`;
|
||||
export default {
|
||||
KPI,
|
||||
/** รอบการประเมินผล*/
|
||||
kpiPeriod: `${kpiPeriod}`,
|
||||
kpiPeriodById: (id: string) => `${kpiPeriod}/${id}`,
|
||||
kpiEvaluation,
|
||||
|
||||
|
||||
/** role */
|
||||
kpiRoleMainList:`${KPI}/role`,
|
||||
|
||||
|
||||
kpiGroup,
|
||||
kpiGroupById: (id: string) => `${kpiGroup}/${id}`
|
||||
kpiGroupById: (id: string) => `${kpiGroup}/${id}`,
|
||||
kpiPlan,
|
||||
kpiPlanById: (id: string) => `${kpiPlan}/${id}`,
|
||||
};
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ const menuList = readonly<any[]>([
|
|||
role: "dashboard",
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
key: 2,
|
||||
icon: "o_person",
|
||||
activeIcon: "person",
|
||||
label: "ข้อมูลหลัก (ใหม่)",
|
||||
|
|
@ -60,43 +60,41 @@ const menuList = readonly<any[]>([
|
|||
role: "metadata",
|
||||
children: [
|
||||
{
|
||||
key: 3.1,
|
||||
key: 2.0,
|
||||
label: "ข้อมูลเกี่ยวกับบุคคล",
|
||||
path: "masterPersonal",
|
||||
},
|
||||
{
|
||||
key: 3.2,
|
||||
key: 2.0,
|
||||
label: "ข้อมูลตำแหน่งข้าราชการฯ",
|
||||
path: "masterPosition",
|
||||
},
|
||||
{
|
||||
key: 3.3,
|
||||
key: 2.0,
|
||||
label: "ข้อมูลตำแหน่งลูกจ้างประจำ",
|
||||
path: "masterPositionEmployee",
|
||||
},
|
||||
{
|
||||
key: 3.4,
|
||||
key: 2.0,
|
||||
label: "ข้อมูลปฏิทินวันหยุด",
|
||||
path: "masterCalendarWork",
|
||||
},
|
||||
{
|
||||
key: 3.5,
|
||||
key: 2.0,
|
||||
label: "ข้อมูลเครื่องราชอิสริยาภรณ์",
|
||||
path: "masterInsignia",
|
||||
},
|
||||
{
|
||||
key: 3.6,
|
||||
key: 2.1,
|
||||
label: "ตัวชี้วัด",
|
||||
role: "evaluateKPI",
|
||||
children: [
|
||||
{
|
||||
key: 3.61,
|
||||
label: "ตามแผน",
|
||||
path: "KPIIndicatorByPlan",
|
||||
role: "evaluateKPI",
|
||||
},
|
||||
{
|
||||
key: 3.62,
|
||||
label: "ตามตำแหน่ง",
|
||||
path: "KPIIndicatorByRole",
|
||||
role: "evaluateKPI",
|
||||
|
|
@ -104,7 +102,7 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 3.7,
|
||||
key: 2.0,
|
||||
label: "สมรรถนะ",
|
||||
path: "KPICompetency",
|
||||
role: "evaluateKPI",
|
||||
|
|
@ -112,52 +110,15 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
key: 3,
|
||||
icon: "o_groups",
|
||||
activeIcon: "groups",
|
||||
label: "โครงสร้างอัตรากำลัง (ใหม่)",
|
||||
path: "organizationalNew",
|
||||
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: "ผังโครงสร้างลูกจ้าง",
|
||||
// path: "organizationalEmployee",
|
||||
// },
|
||||
// {
|
||||
// key: 3.6,
|
||||
// label: "จัดการบัญชี 2",
|
||||
// path: "manageReport2",
|
||||
// },
|
||||
// {
|
||||
// key: 3.7,
|
||||
// label: "รายงานบัญชี",
|
||||
// path: "organizationalReport",
|
||||
// },
|
||||
// ],
|
||||
},
|
||||
{
|
||||
key: 4,
|
||||
key: 3,
|
||||
icon: "o_groups",
|
||||
activeIcon: "groups",
|
||||
label: "อัตรากำลังลูกจ้างประจำฯ",
|
||||
|
|
@ -173,7 +134,7 @@ const menuList = readonly<any[]>([
|
|||
role: "organization",
|
||||
},
|
||||
{
|
||||
key: 2,
|
||||
key: 100,
|
||||
icon: "o_person",
|
||||
activeIcon: "person",
|
||||
label: "ข้อมูลหลัก",
|
||||
|
|
@ -181,7 +142,7 @@ const menuList = readonly<any[]>([
|
|||
role: "metadata",
|
||||
},
|
||||
{
|
||||
key: 3,
|
||||
key: 0,
|
||||
icon: "o_groups",
|
||||
activeIcon: "groups",
|
||||
label: "โครงสร้างอัตรากำลัง",
|
||||
|
|
@ -242,7 +203,7 @@ const menuList = readonly<any[]>([
|
|||
role: "registryverify",
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
key: 5,
|
||||
icon: "o_contact_page",
|
||||
activeIcon: "registry_employee_page",
|
||||
label: "ทะเบียนประวัติลูกจ้าง",
|
||||
|
|
@ -250,7 +211,7 @@ const menuList = readonly<any[]>([
|
|||
role: "registryEmployee",
|
||||
},
|
||||
{
|
||||
key: 10,
|
||||
key: 6,
|
||||
icon: "mdi-file-certificate-outline",
|
||||
activeIcon: "order",
|
||||
label: "ออกคำสั่ง",
|
||||
|
|
@ -258,7 +219,7 @@ const menuList = readonly<any[]>([
|
|||
role: "order",
|
||||
},
|
||||
{
|
||||
key: 5,
|
||||
key: 7,
|
||||
icon: "o_search",
|
||||
activeIcon: "search",
|
||||
label: "สรรหา",
|
||||
|
|
@ -268,13 +229,13 @@ const menuList = readonly<any[]>([
|
|||
{
|
||||
label: "ตั้งค่าเว็บสรรหา",
|
||||
path: "editorweb",
|
||||
key: 5.1,
|
||||
key: 7.1,
|
||||
role: "recruit",
|
||||
},
|
||||
{
|
||||
label: "สอบแข่งขัน",
|
||||
path: "",
|
||||
key: 5.2,
|
||||
key: 7.2,
|
||||
role: "recruit",
|
||||
children: [
|
||||
{
|
||||
|
|
@ -292,7 +253,7 @@ const menuList = readonly<any[]>([
|
|||
{
|
||||
label: "คัดเลือก",
|
||||
path: "",
|
||||
key: 5.3,
|
||||
key: 7.3,
|
||||
role: "recruit",
|
||||
children: [
|
||||
{
|
||||
|
|
@ -325,7 +286,7 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 6,
|
||||
key: 8,
|
||||
path: "placement",
|
||||
icon: "how_to_reg",
|
||||
activeIcon: "how_to_reg",
|
||||
|
|
@ -333,67 +294,46 @@ const menuList = readonly<any[]>([
|
|||
role: "placement",
|
||||
children: [
|
||||
{
|
||||
key: 6.1,
|
||||
label: "รายชื่อผู้สอบผ่าน",
|
||||
path: "placement",
|
||||
role: "placement",
|
||||
},
|
||||
// {
|
||||
// key: 6.2,
|
||||
// label: "ออกคำสั่ง",
|
||||
// path: "Orderplacement",
|
||||
// role: "placement",
|
||||
// },
|
||||
{
|
||||
key: 6.3,
|
||||
label: "การทดลองปฏิบัติหน้าที่ราชการ",
|
||||
path: "probation",
|
||||
role: "probation",
|
||||
},
|
||||
{
|
||||
key: 6.4,
|
||||
label: "รายการขอโอน",
|
||||
path: "transfer",
|
||||
role: "placement",
|
||||
},
|
||||
{
|
||||
key: 6.5,
|
||||
label: "รายการรับโอน",
|
||||
path: "receive",
|
||||
role: "placement",
|
||||
},
|
||||
{
|
||||
key: 6.6,
|
||||
label: "รายการช่วยราชการ",
|
||||
path: "help-government",
|
||||
role: "placement",
|
||||
},
|
||||
{
|
||||
key: 6.7,
|
||||
label: "รายการส่งตัวกลับ",
|
||||
path: "repatriate",
|
||||
role: "placement",
|
||||
},
|
||||
{
|
||||
key: 6.8,
|
||||
label: "รายการแต่งตั้ง-เลื่อน-ย้าย",
|
||||
path: "appoint-promote",
|
||||
role: "placement",
|
||||
},
|
||||
{
|
||||
key: 6.8,
|
||||
label: "ปรับระดับชั้นงาน-ย้ายลูกจ้าง",
|
||||
path: "appoint-employee",
|
||||
role: "placement",
|
||||
},
|
||||
// {
|
||||
// key: 6.9,
|
||||
// label: "รายการย้าย",
|
||||
// path: "relocation",
|
||||
// role: "placement",
|
||||
// },
|
||||
{
|
||||
key: 6.1,
|
||||
label: "รายการอื่นๆ",
|
||||
path: "other",
|
||||
role: "placement",
|
||||
|
|
@ -401,7 +341,7 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 7,
|
||||
key: 9,
|
||||
icon: "mdi-account-cancel-outline",
|
||||
activeIcon: "mdi-account-cancel",
|
||||
label: "พ้นจากราชการ",
|
||||
|
|
@ -409,51 +349,34 @@ const menuList = readonly<any[]>([
|
|||
role: "retirement",
|
||||
children: [
|
||||
{
|
||||
key: 7.1,
|
||||
label: "ประกาศเกษียณ",
|
||||
path: "retirement",
|
||||
role: "retirement",
|
||||
},
|
||||
{
|
||||
key: 7.2,
|
||||
label: "รายการลาออก",
|
||||
path: "resign",
|
||||
role: "retirement",
|
||||
},
|
||||
{
|
||||
key: 7.3,
|
||||
label: "Exit interview",
|
||||
path: "exit-Interview",
|
||||
role: "retirement",
|
||||
},
|
||||
{
|
||||
key: 7.4,
|
||||
label: "รายการบันทึกการถึงแก่กรรม",
|
||||
path: "deceased",
|
||||
role: "retirement",
|
||||
},
|
||||
{
|
||||
key: 7.5,
|
||||
label: "รายการให้ออก",
|
||||
path: "dismiss-order",
|
||||
role: "retirement",
|
||||
},
|
||||
// {
|
||||
// key: 7.6,
|
||||
// label: "รายการปลดออก",
|
||||
// path: "discharged",
|
||||
// role: "retirement",
|
||||
// },
|
||||
// {
|
||||
// key: 7.7,
|
||||
// label: "รายการไล่ออก",
|
||||
// path: "expulsion",
|
||||
// role: "retirement",
|
||||
// },
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 8,
|
||||
key: 10,
|
||||
icon: "mdi-medal-outline",
|
||||
activeIcon: "mdi-medal",
|
||||
label: "เครื่องราชฯ",
|
||||
|
|
@ -461,37 +384,31 @@ const menuList = readonly<any[]>([
|
|||
role: "insignia",
|
||||
children: [
|
||||
{
|
||||
key: 8.1,
|
||||
label: "รอบการเสนอขอ",
|
||||
path: "insigniaProposals",
|
||||
role: "insignia",
|
||||
},
|
||||
{
|
||||
key: 8.2,
|
||||
label: "จัดการคำขอ",
|
||||
path: "insigniaManage",
|
||||
role: "insignia",
|
||||
},
|
||||
{
|
||||
key: 8.3,
|
||||
label: "บันทึกผลการเสนอขอ",
|
||||
path: "insigniaRecord",
|
||||
role: "insignia",
|
||||
},
|
||||
{
|
||||
key: 8.4,
|
||||
label: "จัดสรรเครื่องราชฯ",
|
||||
path: "insigniaAllocate",
|
||||
role: "insignia",
|
||||
},
|
||||
{
|
||||
key: 8.6,
|
||||
label: "ยืม-คืนเครื่องราชฯ",
|
||||
path: "insigniaBorrow",
|
||||
role: "insignia",
|
||||
},
|
||||
{
|
||||
key: 8.5,
|
||||
label: "รายงาน",
|
||||
path: "insigniaReport",
|
||||
role: "insignia",
|
||||
|
|
@ -499,7 +416,7 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 9,
|
||||
key: 11,
|
||||
icon: "mdi-calendar",
|
||||
activeIcon: "mdi-calendar",
|
||||
label: "การลา",
|
||||
|
|
@ -507,37 +424,31 @@ const menuList = readonly<any[]>([
|
|||
role: "leave",
|
||||
children: [
|
||||
{
|
||||
key: 9.1,
|
||||
label: "รอบการปฏิบัติงาน",
|
||||
path: "/round-time",
|
||||
role: "leave",
|
||||
},
|
||||
{
|
||||
key: 9.2,
|
||||
label: "แก้ไขรอบการปฎิบัติงานผู้ใช้งาน",
|
||||
path: "/change-round",
|
||||
role: "leave",
|
||||
},
|
||||
{
|
||||
key: 9.3,
|
||||
label: "รายการลงเวลาปฏิบัติงาน",
|
||||
path: "/work-list",
|
||||
role: "leave",
|
||||
},
|
||||
{
|
||||
key: 9.4,
|
||||
label: "ลงเวลากรณีพิเศษ",
|
||||
path: "/timestamp-special",
|
||||
role: "leave",
|
||||
},
|
||||
{
|
||||
key: 9.5,
|
||||
label: "รายการลา",
|
||||
path: "/leave",
|
||||
role: "leave",
|
||||
},
|
||||
{
|
||||
key: 9.6,
|
||||
label: "รายงานสถิติการลา",
|
||||
path: "/leave-report",
|
||||
role: "leave",
|
||||
|
|
@ -545,56 +456,50 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 11,
|
||||
key: 12,
|
||||
icon: "mdi-scale-balance",
|
||||
activeIcon: "mdi-scale-balance",
|
||||
label: "วินัย",
|
||||
role: "discipline",
|
||||
children: [
|
||||
{
|
||||
key: 11.1,
|
||||
key: 12.0,
|
||||
label: "เรื่องร้องเรียน",
|
||||
path: "disciplineComplaints",
|
||||
role: "discipline",
|
||||
},
|
||||
{
|
||||
key: 11.2,
|
||||
key: 12.0,
|
||||
label: "สืบสวนข้อเท็จจริง",
|
||||
path: "disciplineInvestigatefacts",
|
||||
role: "discipline",
|
||||
},
|
||||
{
|
||||
key: 11.3,
|
||||
key: 12.0,
|
||||
label: "สอบสวนความผิดทางวินัย",
|
||||
path: "disciplineDisciplinary",
|
||||
role: "discipline",
|
||||
},
|
||||
{
|
||||
key: 11.4,
|
||||
key: 12.0,
|
||||
label: "สรุปผลการพิจารณาความผิดทางวินัย",
|
||||
path: "disciplineResult",
|
||||
role: "discipline",
|
||||
},
|
||||
{
|
||||
key: 11.5,
|
||||
key: 12.0,
|
||||
label: "รายชื่อผู้ถูกพักราชการ",
|
||||
path: "disciplineListSuspend",
|
||||
role: "discipline",
|
||||
},
|
||||
// {
|
||||
// key: 11.5,
|
||||
// label: "รายงาน",
|
||||
// path: "disciplineReport",
|
||||
// role: "discipline",
|
||||
// },
|
||||
{
|
||||
key: 11.5,
|
||||
key: 12.0,
|
||||
label: "อุทธรณ์/ร้องทุกข์",
|
||||
path: "appealComplain",
|
||||
role: "discipline",
|
||||
},
|
||||
{
|
||||
key: 11.5,
|
||||
key: 12.0,
|
||||
label: "ออกคำสั่งลงโทษทางวินัย",
|
||||
path: "disciplineOrder",
|
||||
role: "discipline",
|
||||
|
|
@ -602,7 +507,7 @@ const menuList = readonly<any[]>([
|
|||
{
|
||||
label: "ข้อมูลพื้นฐาน",
|
||||
path: "",
|
||||
key: 11.7,
|
||||
key: 12.1,
|
||||
role: "discipline",
|
||||
children: [
|
||||
{
|
||||
|
|
@ -620,14 +525,14 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 11,
|
||||
key: 13,
|
||||
icon: "mdi-account-check",
|
||||
activeIcon: "mdi-account-check",
|
||||
label: "ประเมินบุคคล",
|
||||
role: "evaluate",
|
||||
children: [
|
||||
{
|
||||
key: 11.1,
|
||||
key: 13.0,
|
||||
label: "คำขอประเมิน",
|
||||
path: "evaluate",
|
||||
role: "discipline",
|
||||
|
|
@ -635,7 +540,7 @@ const menuList = readonly<any[]>([
|
|||
{
|
||||
label: "กรรมการและการประชุม",
|
||||
path: "",
|
||||
key: 11.7,
|
||||
key: 13.1,
|
||||
role: "evaluate",
|
||||
children: [
|
||||
{
|
||||
|
|
@ -653,44 +558,38 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 12,
|
||||
key: 14,
|
||||
icon: "mdi-cash",
|
||||
activeIcon: "mdi-cash",
|
||||
label: "เงินเดือน/ค่าจ้าง",
|
||||
role: "salary",
|
||||
children: [
|
||||
{
|
||||
key: 12.1,
|
||||
label: "ผังบัญชีเงินเดือนข้าราชการฯ",
|
||||
path: "salaryChart",
|
||||
role: "salary",
|
||||
},
|
||||
{
|
||||
key: 12.2,
|
||||
label: "ผังบัญชีค่าจ้างลูกจ้างประจำ",
|
||||
path: "salaryEmployeeChart",
|
||||
role: "salary",
|
||||
},
|
||||
{
|
||||
key: 12.3,
|
||||
label: "รอบการขึ้นเงินเดือน",
|
||||
path: "salaryRound",
|
||||
role: "salary",
|
||||
},
|
||||
{
|
||||
key: 12.4,
|
||||
label: "เลื่อนเงินเดือนข้าราชการฯ",
|
||||
path: "salaryLists",
|
||||
role: "salary",
|
||||
},
|
||||
{
|
||||
key: 12.5,
|
||||
label: "เลื่อนค่าจ้างลูกจ้างประจำ",
|
||||
path: "salaryEmployeeLists",
|
||||
role: "salary",
|
||||
},
|
||||
{
|
||||
key: 12.6,
|
||||
label: "ออกคำสั่งเลื่อนเงินเดือน/ค่าจ้าง",
|
||||
path: "commandSalary",
|
||||
role: "salary",
|
||||
|
|
@ -698,14 +597,13 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 13,
|
||||
key: 15,
|
||||
icon: "mdi-account-star",
|
||||
activeIcon: "mdi-account-star",
|
||||
label: "ประเมินผลการปฏิบัติราชการระดับบุคคล",
|
||||
role: "evaluateKPI",
|
||||
children: [
|
||||
{
|
||||
key: 13.1,
|
||||
label: "รอบการประเมิน",
|
||||
path: "KPIRound",
|
||||
role: "evaluateKPI",
|
||||
|
|
@ -713,52 +611,39 @@ const menuList = readonly<any[]>([
|
|||
],
|
||||
},
|
||||
{
|
||||
key: 14,
|
||||
key: 16,
|
||||
icon: "mdi-briefcase-account",
|
||||
activeIcon: "mdi-briefcase-account",
|
||||
label: "พัฒนาบุคลากร",
|
||||
role: "development",
|
||||
children: [
|
||||
{
|
||||
key: 14.1,
|
||||
label: "โครงการ/หลักสูตรการฝึกอบรม",
|
||||
path: "developmentMain",
|
||||
role: "development",
|
||||
},
|
||||
{
|
||||
key: 14.2,
|
||||
label: "ประวัติฝึกอบรม/ดูงาน ขรก.",
|
||||
path: "developmentHistory",
|
||||
role: "development",
|
||||
},
|
||||
{
|
||||
key: 14.3,
|
||||
label: "ประวัติฝึกอบรม/ดูงานลูกจ้าง",
|
||||
path: "developmentEmployeeHistory",
|
||||
role: "development",
|
||||
},
|
||||
{
|
||||
key: 14.4,
|
||||
label: "ทุนการศึกษา/ฝึกอบรม",
|
||||
path: "developmentScholarship",
|
||||
role: "development",
|
||||
},
|
||||
{
|
||||
key: 14.5,
|
||||
label: "ยุทธศาสตร์",
|
||||
path: "developmentStrategic",
|
||||
role: "development",
|
||||
},
|
||||
],
|
||||
},
|
||||
// {
|
||||
// key: 99,
|
||||
// icon: "mdi-chat",
|
||||
// activeIcon: "mdi-chat",
|
||||
// label: "ถาม-ตอบ",
|
||||
// role: "support",
|
||||
// path: "support",
|
||||
// },
|
||||
]);
|
||||
|
||||
const tabList = readonly<tabType[]>([
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import http from "@/plugins/http";
|
|||
import config from "@/app.config";
|
||||
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
import IndicatorByPlan from "@/modules/14_KPI/components/indicatorByPlan/indicatorByPlan.vue";
|
||||
import IndicatorByPlan from "@/modules/14_KPI/components/indicatorByPlan/IndicatorByPlan.vue";
|
||||
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
|
|
@ -22,7 +22,25 @@ const {
|
|||
} = useCounterMixin();
|
||||
const title = ref<string>(route.params.id ? "แก้ไข" : "เพิ่ม");
|
||||
|
||||
onMounted(() => {});
|
||||
async function fetchData() {
|
||||
showLoader();
|
||||
await http
|
||||
.get(config.API.kpiPlan)
|
||||
.then(async (res) => {
|
||||
console.log(res.data.result);
|
||||
console.log("test");
|
||||
})
|
||||
.catch((err) => {
|
||||
messageError($q, err);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
onMounted(async () => {
|
||||
await fetchData();
|
||||
});
|
||||
</script>
|
||||
<template>
|
||||
<div class="toptitle text-dark col-12 row items-center">
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { useRouter, useRoute } from "vue-router";
|
|||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
|
||||
import DialogSelectAgency from "@/modules/15_development/components/DialogSelectAgency.vue";
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import type { FormDataRole } from "@/modules/14_KPI/interface/request/Main";
|
||||
|
|
@ -124,37 +123,80 @@ function selectAgency() {
|
|||
modalDialogSelect.value = true;
|
||||
}
|
||||
|
||||
function updateAgency(name: string) {
|
||||
form.org = name;
|
||||
}
|
||||
|
||||
/** บันทึกข้อมูล */
|
||||
function onSubmit() {
|
||||
// const url = id.value ? config.API.???:config.API.???
|
||||
showLoader();
|
||||
const url = id.value
|
||||
? config.API.kpiRoleMainList + `/${id.value}`
|
||||
: config.API.kpiRoleMainList;
|
||||
|
||||
const body = {
|
||||
position: form.position, //ตำแหน่ง
|
||||
year: form.year, //ปีงบประมาณ
|
||||
round: form.round, //รอบการประเมิน(เมษา->APR, ตุลา->OCT)
|
||||
including: form.including, //รหัสตัวชี้วัด
|
||||
includingName: form.includingName, //ชื่อตัวชี้วัด
|
||||
target: form.target, //ค่าเป้าหมาย
|
||||
unit: form.unit, //หน่วยนับ
|
||||
weight: form.weight, //น้ำหนัก
|
||||
achievement1: formScore.score1, //ผลสำเร็จของงาน 1
|
||||
achievement2: formScore.score2, //ผลสำเร็จของงาน 2
|
||||
achievement3: formScore.score3, //ผลสำเร็จของงาน 3
|
||||
achievement4: formScore.score4, //ผลสำเร็จของงาน 4
|
||||
achievement5: formScore.score5, //ผลสำเร็จของงาน 5
|
||||
meaning: form.meaning, //นิยามหรือความหมาย
|
||||
formula: form.formula, //สูตรคำนวณ
|
||||
|
||||
node: form.node, //ระดับหน่วยงาน
|
||||
nodeId: form.nodeId, //id หน่วยงาน
|
||||
orgRevisionId: form.orgRevisionId, //RevisionId หน่วยงาน
|
||||
};
|
||||
|
||||
http[id.value ? "put" : "post"](url, body)
|
||||
.then((res) => {
|
||||
success($q, "บันทึกสำเร็จ");
|
||||
router.push(`/KPI-indicator-role`);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
//
|
||||
//
|
||||
function getDetail() {
|
||||
// showLoader()
|
||||
// http
|
||||
// .get(config.API.???)
|
||||
// .then((res)=>{
|
||||
// const data = res.data.result
|
||||
// form.position = data.position
|
||||
// form.year = data.year
|
||||
// form.round = data.round
|
||||
// form.org = data.org
|
||||
// form.including = data.including
|
||||
// form.includingName = data.includingName
|
||||
// form.target = data.target
|
||||
// form.unit = data.unit
|
||||
// form.weight = data.weight
|
||||
// form.meaning = data.meaning
|
||||
// form.formula = data.formula
|
||||
// }).catch((e)=>{
|
||||
// messageError($q,e)
|
||||
// }).finally(()=>{
|
||||
// hideLoader()
|
||||
// })
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.kpiRoleMainList + `/${id.value}`)
|
||||
.then((res) => {
|
||||
const data = res.data.result;
|
||||
form.position = data.position;
|
||||
form.year = data.year;
|
||||
form.round = data.round;
|
||||
form.including = data.including;
|
||||
form.includingName = data.includingName;
|
||||
form.target = data.target;
|
||||
form.unit = data.unit;
|
||||
form.weight = data.weight;
|
||||
form.meaning = data.meaning;
|
||||
form.formula = data.formula;
|
||||
|
||||
formScore.score1 = data.achievement1;
|
||||
formScore.score2 = data.achievement2;
|
||||
formScore.score3 = data.achievement3;
|
||||
formScore.score4 = data.achievement4;
|
||||
formScore.score5 = data.achievement5;
|
||||
|
||||
form.node = data.node;
|
||||
form.nodeId = data.nodeId;
|
||||
form.orgRevisionId = data.orgRevisionId;
|
||||
})
|
||||
.catch((e) => {
|
||||
messageError($q, e);
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
function fetchActive() {
|
||||
|
|
@ -195,7 +237,7 @@ function updateTicked(val: any) {
|
|||
}
|
||||
|
||||
function updateSelected(data: any) {
|
||||
console.log(data)
|
||||
console.log(data);
|
||||
nodeId.value = data.orgTreeId;
|
||||
orgName.value = data.orgTreeName;
|
||||
form.node = data.orgLevel;
|
||||
|
|
@ -556,11 +598,6 @@ onMounted(() => {
|
|||
</q-card-actions>
|
||||
</q-form>
|
||||
</q-card>
|
||||
|
||||
<DialogSelectAgency
|
||||
v-model:modal="modalDialogSelect"
|
||||
@update:updateAgency="updateAgency"
|
||||
/>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
|
|
|||
|
|
@ -41,4 +41,11 @@ interface FormDataRole {
|
|||
orgRevisionId: string | null;
|
||||
}
|
||||
|
||||
export type { FormQueryRound, FormRound, FormCompetency, FormDataRole };
|
||||
interface NewPagination {
|
||||
descending: boolean;
|
||||
page: number;
|
||||
rowsPerPage: number;
|
||||
sortBy: string;
|
||||
}
|
||||
|
||||
export type { FormQueryRound, FormRound, FormCompetency, FormDataRole,NewPagination };
|
||||
|
|
|
|||
|
|
@ -1,52 +1,53 @@
|
|||
<script setup lang="ts">
|
||||
import { ref, reactive, onMounted } from "vue";
|
||||
import { ref, reactive, onMounted, watch } from "vue";
|
||||
import { useQuasar, type QTableProps } from "quasar";
|
||||
import { useRouter } from "vue-router";
|
||||
|
||||
/** importStore*/
|
||||
import { useCounterMixin } from "@/stores/mixin";
|
||||
|
||||
import http from "@/plugins/http";
|
||||
import config from "@/app.config";
|
||||
import type { NewPagination } from "@/modules/14_KPI/interface/request/Main";
|
||||
/** use*/
|
||||
const $q = useQuasar();
|
||||
const router = useRouter();
|
||||
const { showLoader, hideLoader, dialogRemove, success } = useCounterMixin();
|
||||
|
||||
const maxPage = ref<number>(1);
|
||||
const totalList = ref<number>(1); //จำนวนข้อมูลรายการ
|
||||
|
||||
/** หัวตาราง */
|
||||
const rows = ref<any>([]);
|
||||
const columns = ref<QTableProps["columns"]>([
|
||||
{
|
||||
name: "indicatorNo",
|
||||
name: "no",
|
||||
align: "left",
|
||||
label: "ลำดับตัวชี้วัด ",
|
||||
sortable: true,
|
||||
field: "indicatorNo",
|
||||
field: "no",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "indicatorPass",
|
||||
name: "including",
|
||||
align: "left",
|
||||
label: "รหัสตัวชี้วัด",
|
||||
sortable: true,
|
||||
field: "indicatorPass",
|
||||
field: "including",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
{
|
||||
name: "indicatorName",
|
||||
name: "includingName",
|
||||
align: "left",
|
||||
label: "ชื่อตัวชี้วัด",
|
||||
sortable: true,
|
||||
field: "indicatorName",
|
||||
field: "includingName",
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
]);
|
||||
const visibleColumns = ref<string[]>([
|
||||
"indicatorNo",
|
||||
"indicatorPass",
|
||||
"indicatorName",
|
||||
]);
|
||||
const visibleColumns = ref<string[]>(["no", "including", "includingName"]);
|
||||
|
||||
const positionOp = ref<any[]>([
|
||||
{ id: "1", name: "นักจัดการทั่วไป 1" },
|
||||
|
|
@ -65,27 +66,27 @@ const formFilter = reactive({
|
|||
round: "1",
|
||||
keyword: "",
|
||||
});
|
||||
const pagination = ref({
|
||||
page: formFilter.page,
|
||||
rowsPerPage: formFilter.pageSize,
|
||||
});
|
||||
|
||||
function fetchList() {
|
||||
showLoader();
|
||||
const data = [
|
||||
{
|
||||
id: "1",
|
||||
indicatorNo: "1",
|
||||
indicatorPass: "1กก",
|
||||
indicatorName: "ตัวชี้วัด 1",
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
indicatorNo: "2",
|
||||
indicatorPass: "2กก",
|
||||
indicatorName: "ตัวชี้วัด 2",
|
||||
},
|
||||
];
|
||||
rows.value = data;
|
||||
setTimeout(() => {
|
||||
hideLoader();
|
||||
}, 500);
|
||||
http
|
||||
.get(
|
||||
config.API.kpiRoleMainList +
|
||||
`?page=${formFilter.page}&pageSize=${formFilter.pageSize}`
|
||||
)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
const data = res.data.result.data;
|
||||
maxPage.value = Math.ceil(res.data.result.total / formFilter.pageSize);
|
||||
rows.value = data;
|
||||
})
|
||||
.finally(() => {
|
||||
hideLoader();
|
||||
});
|
||||
}
|
||||
|
||||
function onClickAddOrView(status: boolean = false, id: string = "") {
|
||||
|
|
@ -96,11 +97,34 @@ function onClickAddOrView(status: boolean = false, id: string = "") {
|
|||
|
||||
function onClickDelete(id: number) {
|
||||
dialogRemove($q, () => {
|
||||
rows.value.splice(id, 1);
|
||||
success($q, "ลบข้อมูลสำเร็จ");
|
||||
http
|
||||
.delete(config.API.kpiRoleMainList+`/${id}`)
|
||||
.then((res)=>{
|
||||
success($q, "ลบข้อมูลสำเร็จ");
|
||||
fetchList()
|
||||
}).finally(()=>{
|
||||
|
||||
})
|
||||
});
|
||||
}
|
||||
|
||||
function updatePage(val: number) {
|
||||
formFilter.page = val;
|
||||
fetchList();
|
||||
}
|
||||
|
||||
function updatePageSize(newPagination: NewPagination) {
|
||||
formFilter.page = 1;
|
||||
formFilter.pageSize = newPagination.rowsPerPage;
|
||||
}
|
||||
|
||||
watch(
|
||||
() => formFilter.pageSize,
|
||||
() => {
|
||||
fetchList();
|
||||
}
|
||||
);
|
||||
|
||||
onMounted(() => {
|
||||
fetchList();
|
||||
});
|
||||
|
|
@ -200,7 +224,22 @@ onMounted(() => {
|
|||
dense
|
||||
class="custom-header-table"
|
||||
:visible-columns="visibleColumns"
|
||||
:rows-per-page-options="[10, 20, 50, 100]"
|
||||
@update:pagination="updatePageSize"
|
||||
>
|
||||
<template v-slot:pagination="scope">
|
||||
<q-pagination
|
||||
v-model="formFilter.page"
|
||||
active-color="primary"
|
||||
color="dark"
|
||||
:max="maxPage"
|
||||
:max-pages="5"
|
||||
size="sm"
|
||||
boundary-links
|
||||
direction-links
|
||||
@update:model-value="updatePage"
|
||||
></q-pagination>
|
||||
</template>
|
||||
<template v-slot:header="props">
|
||||
<q-tr :props="props">
|
||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||
|
|
@ -217,7 +256,13 @@ onMounted(() => {
|
|||
:props="props"
|
||||
@click="onClickAddOrView(true, props.row.id)"
|
||||
>
|
||||
<div class="table_ellipsis">
|
||||
<div v-if="col.name === 'no'">
|
||||
{{
|
||||
(formFilter.page - 1) * Number(pagination.rowsPerPage) + props.rowIndex + 1
|
||||
}}
|
||||
</div>
|
||||
|
||||
<div v-else class="table_ellipsis">
|
||||
{{ col.value ? col.value : "-" }}
|
||||
</div>
|
||||
</q-td>
|
||||
|
|
@ -227,7 +272,7 @@ onMounted(() => {
|
|||
round
|
||||
icon="delete"
|
||||
color="red"
|
||||
@click.stop.pervent="onClickDelete(props.rowIndex)"
|
||||
@click.stop.pervent="onClickDelete(props.row.id)"
|
||||
>
|
||||
<q-tooltip>ลบข้อมูล </q-tooltip>
|
||||
</q-btn>
|
||||
|
|
|
|||
|
|
@ -73,10 +73,10 @@ const columns = ref<QTableProps["columns"]>([
|
|||
{
|
||||
name: "isActive",
|
||||
align: "left",
|
||||
label: "สะถานะ",
|
||||
label: "สถานะ",
|
||||
sortable: true,
|
||||
field: "isActive",
|
||||
format: (val) => (val ? "เปืดรอบ" : "ปิดรอบ"),
|
||||
format: (val) => (val ? "เปิด" : "ปิดแล้ว"),
|
||||
headerStyle: "font-size: 14px",
|
||||
style: "font-size: 14px",
|
||||
},
|
||||
|
|
@ -261,7 +261,7 @@ function onCloseRounde(id: string) {
|
|||
dialogConfirm(
|
||||
$q,
|
||||
() => {
|
||||
showLoader()
|
||||
showLoader();
|
||||
http
|
||||
.get(config.API.kpiPeriod + `/close/${id}`)
|
||||
.then(() => {
|
||||
|
|
|
|||
|
|
@ -350,6 +350,7 @@ onMounted(() => {
|
|||
>
|
||||
<template v-slot:header="props">
|
||||
<q-tr :props="props">
|
||||
<q-th auto-width></q-th>
|
||||
<q-th v-for="col in props.cols" :key="col.name" :props="props">
|
||||
<span class="text-weight-medium">{{ col.label }}</span>
|
||||
</q-th>
|
||||
|
|
@ -357,6 +358,11 @@ onMounted(() => {
|
|||
</template>
|
||||
<template v-slot:body="props">
|
||||
<q-tr :props="props" class="cursor-pointer">
|
||||
<q-td v-if="props.row.isDone">
|
||||
<q-icon name="mdi-check" color="green" size="xs">
|
||||
<q-tooltip>ส่งไปบันทึกที่ทะเบียนประวัติแล้ว</q-tooltip>
|
||||
</q-icon>
|
||||
</q-td>
|
||||
<q-td v-for="col in props.cols" :key="col.id">
|
||||
<div>{{ col.value ? col.value : "-" }}</div>
|
||||
</q-td>
|
||||
|
|
|
|||
|
|
@ -213,152 +213,122 @@ onMounted(() => {
|
|||
<q-card flat bordered class="q-pa-md">
|
||||
<q-toolbar class="q-pa-none">
|
||||
<div class="row q-gutter-sm">
|
||||
<div>
|
||||
<datepicker
|
||||
style="width: 150px"
|
||||
menu-class-name="modalfix"
|
||||
v-model="formQuery.year"
|
||||
:locale="'th'"
|
||||
autoApply
|
||||
year-picker
|
||||
:enableTimePicker="false"
|
||||
@update:model-value="fetchNewList"
|
||||
>
|
||||
<template #year="{ year }">{{ year + 543 }}</template>
|
||||
<template #year-overlay-value="{ value }">{{
|
||||
parseInt(value + 543)
|
||||
}}</template>
|
||||
<template #trigger>
|
||||
<q-input
|
||||
dense
|
||||
lazy-rules
|
||||
outlined
|
||||
:model-value="
|
||||
formQuery.year === 0
|
||||
? 'ทั้งหมด'
|
||||
: Number(formQuery.year) + 543
|
||||
"
|
||||
:label="`${'ปีงบประมาณ'}`"
|
||||
>
|
||||
<template v-if="formQuery.year" v-slot:append>
|
||||
<q-icon
|
||||
name="cancel"
|
||||
@click.stop.prevent="(formQuery.year = 0), fetchNewList()"
|
||||
class="cursor-pointer"
|
||||
/>
|
||||
</template>
|
||||
<template v-slot:prepend>
|
||||
<q-icon
|
||||
name="event"
|
||||
class="cursor-pointer"
|
||||
style="color: var(--q-primary)"
|
||||
>
|
||||
</q-icon>
|
||||
</template>
|
||||
</q-input>
|
||||
</template>
|
||||
</datepicker>
|
||||
</div>
|
||||
<div>
|
||||
<q-select
|
||||
dense
|
||||
outlined
|
||||
v-model="formQuery.type"
|
||||
:options="scholarshipTypeOp"
|
||||
emit-value
|
||||
map-options
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
label="เลือกประเภททุน"
|
||||
@update:model-value="fetchNewList"
|
||||
style="width: 350px"
|
||||
/>
|
||||
</div>
|
||||
<datepicker
|
||||
style="width: 150px"
|
||||
menu-class-name="modalfix"
|
||||
v-model="formQuery.year"
|
||||
:locale="'th'"
|
||||
autoApply
|
||||
year-picker
|
||||
:enableTimePicker="false"
|
||||
@update:model-value="fetchNewList"
|
||||
>
|
||||
<template #year="{ year }">{{ year + 543 }}</template>
|
||||
<template #year-overlay-value="{ value }">{{
|
||||
parseInt(value + 543)
|
||||
}}</template>
|
||||
<template #trigger>
|
||||
<q-input
|
||||
dense
|
||||
lazy-rules
|
||||
outlined
|
||||
:model-value="
|
||||
formQuery.year === 0 ? 'ทั้งหมด' : Number(formQuery.year) + 543
|
||||
"
|
||||
:label="`${'ปีงบประมาณ'}`"
|
||||
>
|
||||
<template v-if="formQuery.year" v-slot:append>
|
||||
<q-icon
|
||||
name="cancel"
|
||||
@click.stop.prevent="(formQuery.year = 0), fetchNewList()"
|
||||
class="cursor-pointer"
|
||||
/>
|
||||
</template>
|
||||
<template v-slot:prepend>
|
||||
<q-icon
|
||||
name="event"
|
||||
class="cursor-pointer"
|
||||
style="color: var(--q-primary)"
|
||||
>
|
||||
</q-icon>
|
||||
</template>
|
||||
</q-input>
|
||||
</template>
|
||||
</datepicker>
|
||||
|
||||
<q-select
|
||||
dense
|
||||
outlined
|
||||
v-model="formQuery.type"
|
||||
:options="scholarshipTypeOp"
|
||||
emit-value
|
||||
map-options
|
||||
option-value="id"
|
||||
option-label="name"
|
||||
label="เลือกประเภททุน"
|
||||
@update:model-value="fetchNewList"
|
||||
class="type"
|
||||
/>
|
||||
</div>
|
||||
<q-toolbar-title>
|
||||
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
dense
|
||||
icon="add"
|
||||
color="primary"
|
||||
@click="onClickAddOrView()"
|
||||
>
|
||||
<q-tooltip>เพิ่ม</q-tooltip>
|
||||
</q-btn>
|
||||
|
||||
<q-space />
|
||||
<div class="row q-gutter-sm">
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
dense
|
||||
icon="add"
|
||||
color="primary"
|
||||
@click="onClickAddOrView()"
|
||||
icon="mdi-arrow-down-bold-circle-outline"
|
||||
color="blue"
|
||||
@click="onDownload"
|
||||
>
|
||||
<q-tooltip>เพิ่ม</q-tooltip>
|
||||
<q-tooltip>ดาวน์โหลด</q-tooltip>
|
||||
</q-btn>
|
||||
</q-toolbar-title>
|
||||
|
||||
<q-space />
|
||||
<div class="row q-gutter-sm">
|
||||
<div>
|
||||
<q-btn
|
||||
flat
|
||||
round
|
||||
dense
|
||||
icon="mdi-arrow-down-bold-circle-outline"
|
||||
color="blue"
|
||||
@click="onDownload"
|
||||
>
|
||||
<q-tooltip>ดาวน์โหลด</q-tooltip>
|
||||
</q-btn>
|
||||
<!-- <q-btn
|
||||
flat
|
||||
round
|
||||
color="blue"
|
||||
icon="mdi-arrow-down-bold-circle-outline"
|
||||
>
|
||||
<q-menu>
|
||||
<q-list style="min-width: 100px" dense>
|
||||
<q-item clickable v-close-popup v-for="items in itemDownload">
|
||||
<q-item-section avatar>
|
||||
<q-icon :color="items.color" :name="items.icon" />
|
||||
</q-item-section>
|
||||
<q-item-section :class="`text-${items.color}`">{{
|
||||
items.label
|
||||
}}</q-item-section>
|
||||
</q-item>
|
||||
</q-list>
|
||||
</q-menu>
|
||||
<q-tooltip>ดาวน์โหลด</q-tooltip>
|
||||
</q-btn> -->
|
||||
</div>
|
||||
<div>
|
||||
<q-input
|
||||
standout
|
||||
dense
|
||||
v-model="formQuery.keyword"
|
||||
ref="filterRef"
|
||||
outlined
|
||||
placeholder="ค้นหา"
|
||||
@keyup.enter="fetchNewList()"
|
||||
>
|
||||
<template v-slot:append>
|
||||
<q-icon v-if="formQuery.keyword == ''" name="search" />
|
||||
<q-icon
|
||||
v-if="formQuery.keyword !== ''"
|
||||
name="clear"
|
||||
class="cursor-pointer"
|
||||
@click="(formQuery.keyword = ''), fetchNewList()"
|
||||
/>
|
||||
</template>
|
||||
</q-input>
|
||||
</div>
|
||||
<div>
|
||||
<q-select
|
||||
v-model="visibleColumns"
|
||||
multiple
|
||||
outlined
|
||||
dense
|
||||
options-dense
|
||||
:display-value="$q.lang.table.columns"
|
||||
emit-value
|
||||
map-options
|
||||
:options="columns"
|
||||
option-value="name"
|
||||
options-cover
|
||||
style="min-width: 150px"
|
||||
/>
|
||||
</div>
|
||||
<q-input
|
||||
standout
|
||||
dense
|
||||
v-model="formQuery.keyword"
|
||||
ref="filterRef"
|
||||
outlined
|
||||
placeholder="ค้นหา"
|
||||
@keyup.enter="fetchNewList()"
|
||||
>
|
||||
<template v-slot:append>
|
||||
<q-icon v-if="formQuery.keyword == ''" name="search" />
|
||||
<q-icon
|
||||
v-if="formQuery.keyword !== ''"
|
||||
name="clear"
|
||||
class="cursor-pointer"
|
||||
@click="(formQuery.keyword = ''), fetchNewList()"
|
||||
/>
|
||||
</template>
|
||||
</q-input>
|
||||
|
||||
<q-select
|
||||
v-model="visibleColumns"
|
||||
multiple
|
||||
outlined
|
||||
dense
|
||||
options-dense
|
||||
:display-value="$q.lang.table.columns"
|
||||
emit-value
|
||||
map-options
|
||||
:options="columns"
|
||||
option-value="name"
|
||||
options-cover
|
||||
style="min-width: 150px"
|
||||
/>
|
||||
</div>
|
||||
</q-toolbar>
|
||||
|
||||
|
|
@ -416,4 +386,11 @@ onMounted(() => {
|
|||
</q-card>
|
||||
</template>
|
||||
|
||||
<style scoped></style>
|
||||
<style scoped>
|
||||
.q-select.type >>> .q-field__native > span {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
width: 200px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -733,15 +733,18 @@ watch(
|
|||
@click="link = menuItem.label"
|
||||
active-class="text-primary menuActiveMini text-weight-medium"
|
||||
v-if="
|
||||
menuItem.key == 3 ||
|
||||
menuItem.key == 5 ||
|
||||
menuItem.key == 6 ||
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 0 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 8 ||
|
||||
menuItem.key == 9 ||
|
||||
menuItem.key == 10 ||
|
||||
menuItem.key == 11 ||
|
||||
menuItem.key == 12 ||
|
||||
menuItem.key == 14
|
||||
menuItem.key == 13 ||
|
||||
menuItem.key == 14 ||
|
||||
menuItem.key == 15 ||
|
||||
menuItem.key == 16
|
||||
"
|
||||
>
|
||||
<div class="row items-center no-wrap">
|
||||
|
|
@ -772,8 +775,24 @@ watch(
|
|||
:to="{ name: `${subMenu.path}` }"
|
||||
>
|
||||
<!-- เมนูย่อย 2 ชั้น -->
|
||||
<div v-if="menuItem.key == 5">
|
||||
<q-item dense clickable v-if="subMenu.key !== 5.1">
|
||||
<div
|
||||
v-if="
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 12 ||
|
||||
menuItem.key == 13
|
||||
"
|
||||
>
|
||||
<q-item
|
||||
dense
|
||||
clickable
|
||||
v-if="
|
||||
subMenu.key !== 2.0 &&
|
||||
subMenu.key !== 7.1 &&
|
||||
subMenu.key !== 12.0 &&
|
||||
subMenu.key !== 13.0
|
||||
"
|
||||
>
|
||||
<q-item-section
|
||||
>{{ subMenu.label }}
|
||||
</q-item-section>
|
||||
|
|
@ -898,16 +917,18 @@ watch(
|
|||
expand-icon="mdi-chevron-down"
|
||||
expanded-icon="mdi-chevron-up"
|
||||
v-if="
|
||||
menuItem.key == 3 ||
|
||||
menuItem.key == 5 ||
|
||||
menuItem.key == 6 ||
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 0 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 8 ||
|
||||
menuItem.key == 9 ||
|
||||
menuItem.key == 10 ||
|
||||
menuItem.key == 11 ||
|
||||
menuItem.key == 12 ||
|
||||
menuItem.key == 13 ||
|
||||
menuItem.key == 14
|
||||
menuItem.key == 14 ||
|
||||
menuItem.key == 15 ||
|
||||
menuItem.key == 16
|
||||
"
|
||||
>
|
||||
<template v-slot:header>
|
||||
|
|
@ -924,7 +945,10 @@ watch(
|
|||
<!-- เมนูย่อย 2 ชั้น (สรรหา) -->
|
||||
<div
|
||||
v-if="
|
||||
menuItem.key == 5 || menuItem.key == 11 || menuItem.key == 3
|
||||
menuItem.key == 2 ||
|
||||
menuItem.key == 7 ||
|
||||
menuItem.key == 12 ||
|
||||
menuItem.key == 13
|
||||
"
|
||||
>
|
||||
<div v-for="(subMenu, i) in menuItem.children" :key="i">
|
||||
|
|
@ -933,18 +957,10 @@ watch(
|
|||
dense-toggle
|
||||
:label="subMenu.label"
|
||||
v-if="
|
||||
subMenu.key !== 5.1 &&
|
||||
subMenu.key !== 11.1 &&
|
||||
subMenu.key !== 11.2 &&
|
||||
subMenu.key !== 11.3 &&
|
||||
subMenu.key !== 11.4 &&
|
||||
subMenu.key !== 11.5 &&
|
||||
subMenu.key !== 3.1 &&
|
||||
subMenu.key !== 3.2 &&
|
||||
subMenu.key !== 3.3 &&
|
||||
subMenu.key !== 3.4 &&
|
||||
subMenu.key !== 3.5 &&
|
||||
subMenu.key !== 3.7
|
||||
subMenu.key !== 2.0 &&
|
||||
subMenu.key !== 7.1 &&
|
||||
subMenu.key !== 12.0 &&
|
||||
subMenu.key !== 13.0
|
||||
"
|
||||
class="expan2"
|
||||
dense
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue