diff --git a/src/api/15_development/api.development.ts b/src/api/15_development/api.development.ts index c0e3329e7..f7649aa45 100644 --- a/src/api/15_development/api.development.ts +++ b/src/api/15_development/api.development.ts @@ -9,6 +9,8 @@ export default { /** history */ developmentHistoryList: (type: string) => `${development}/history/${type}/filter`, + developmentHistoryListByid: (type: string, id: string) => + `${development}/history/${type}/${id}`, developmentHistoryAdd: (type: string) => `${development}/history/${type}`, developmentProjectSearch: () => `${development}/main/search`, developmentHistoryListOrg: (type: string, year: number) => diff --git a/src/modules/14_KPI/components/competency/05ListDetail.vue b/src/modules/14_KPI/components/competency/05ListDetail.vue index 14a260f3c..5252f11aa 100644 --- a/src/modules/14_KPI/components/competency/05ListDetail.vue +++ b/src/modules/14_KPI/components/competency/05ListDetail.vue @@ -60,7 +60,7 @@
สมรรถนะหลัก
-
(๕ สมรรถนะ)
+
(5 สมรรถนะ)
@@ -92,7 +92,7 @@
สมรรถนะประจำกลุ่มงาน
-
(๓ สมรรถนะ ตามกลุ่มงาน)
+
(3 สมรรถนะ ตามกลุ่มงาน)
@@ -116,7 +116,7 @@
สมรรถนะประจำผู้บริหารกรุงเทพมหานคร
-
(๗ สมรรถนะ)
+
(7 สมรรถนะ)
@@ -140,7 +140,7 @@
สมรรถนะเฉพาะสำหรับตำแหน่งผู้อำนวยการเขต
-
(ู๔ สมรรถนะ)
+
(4 สมรรถนะ)
@@ -164,7 +164,7 @@
สมรรถนะเฉพาะสำหรับตำแหน่งผู้ตรวจราชการกรุงเทพมหานครและผู้ตรวจราชการ
-
(ู๒ สมรรถนะ)
+
(2 สมรรถนะ)
@@ -189,16 +189,16 @@
-
-
-
๑๒
-
๑๒
+
8
+
8
+
12
+
12
-
-
+
7
+
9
@@ -232,11 +232,11 @@
สูง
-
+
5
ต้น
-
+
4
@@ -246,11 +246,11 @@
สูง
-
+
4
ต้น
-
+
3
@@ -260,28 +260,28 @@
ทรงคุณวุฒิ
-
-
+
5
+
5
เชี่ยวชาญ
-
-
+
4
+
4
ชำนาญการพิเศษ
-
-
+
3
+
4
ชำนาญการ
-
-
+
2
+
3
ปฏิบัติการ
-
-
+
1
+
2
@@ -290,23 +290,23 @@
ทักษะพิเศษ
-
-
+
4
+
4
อาวุโส
-
-
+
3
+
3
ชำนาญงาน
-
-
+
2
+
2
ปฏิบัติงาน
-
-
+
1
+
1
diff --git a/src/modules/15_development/components/BasicInfo.vue b/src/modules/15_development/components/BasicInfo.vue index 187812b5b..0ae8749a7 100644 --- a/src/modules/15_development/components/BasicInfo.vue +++ b/src/modules/15_development/components/BasicInfo.vue @@ -43,9 +43,9 @@ const node = ref([]); const filter = ref(""); const expanded = ref([]); -async function fetchData(id: string) { +function fetchData(id: string) { showLoader(); - await http + http .get(config.API.developmentMainTab("tab1", id)) .then(async (res) => { const data = res.data.result; @@ -60,8 +60,8 @@ async function fetchData(id: string) { if (nodeTree) { expanded.value = []; const parts = nodeTree?.orgName.split("/"); - for (let i = 0; i < parts.length; i++) { - const arrangedParts = parts[i - 1]; + for (let i = 1; i < parts.length; i++) { + const arrangedParts = parts[i]; expanded.value.push(arrangedParts); } updateSelected(nodeTree); @@ -137,17 +137,19 @@ function updateSelected(data: any) { formData.orgRevisionId = data.orgRevisionId; } -function searchAndReplace(orgTreeData: any, treeId: string | null) { - for (let orgTree of orgTreeData) { - if (orgTree.orgTreeId === treeId) { - return orgTree; - } - let foundOrg: any = searchAndReplace(orgTree.children, treeId); - if (foundOrg) { - return foundOrg; +async function searchAndReplace(orgTreeData: any, treeId: string | null) { + if (orgTreeData) { + for (let orgTree of orgTreeData) { + if (orgTree.orgTreeId === treeId) { + return orgTree; + } + let foundOrg: any = await searchAndReplace(orgTree.children, treeId); + if (foundOrg) { + return foundOrg; + } } + return false; } - return null; } onMounted(async () => { diff --git a/src/modules/15_development/components/history/AddPage.vue b/src/modules/15_development/components/history/AddPage.vue index a58694bfe..824e7e155 100644 --- a/src/modules/15_development/components/history/AddPage.vue +++ b/src/modules/15_development/components/history/AddPage.vue @@ -1,32 +1,24 @@ @@ -224,206 +123,227 @@ onMounted(() => { class="q-mr-sm" @click="router.go(-1)" /> - {{ - id - ? `แก้ไขประวัติการฝึกอบรม/ดูงานของข้าราชการกรุงเทพมหานครสามัญ` - : `เพิ่มประวัติการฝึกอบรม/ดูงานของข้าราชการกรุงเทพมหานครสามัญ` - }} + ประวัติการฝึกอบรม / ดูงานของข้าราชการกรุงเทพมหานครสามัญ
- - - -
- ข้อมูลข้าราชการฯ - - -
-
-
-
-
-
- {{ - fieldLabels[field as keyof typeof fieldLabels] - }} -
-
- {{ formMain[field] ? formMain[field] : "-" }} -
-
+ + + +
+ ข้อมูลข้าราชการฯ +
+
+
+
+
+ เลขประจําตัวประชาชน
-
-
-
- {{ - fieldLabels[field as keyof typeof fieldLabels] - }} -
-
- {{ formMain[field] ? formMain[field] : "-" }} -
-
+
+ {{ formMain.citizenId ?? "-" }}
- - - -
- ข้อมูลโครงการ - -
-
-
-
-
-
- {{ - fieldLabelsProject[field as keyof typeof fieldLabelsProject] - }} -
-
- {{ - formMainProject[field] ? formMainProject[field] + 543 : "-" - }} - {{ - formMainProject[field] - ? date2Thai(formMainProject[field]) - : "-" - }} - {{ - formMainProject[field] ? formMainProject[field] : "-" - }} -
-
+
+
+ ระดับตําแหน่ง
-
-
-
- {{ - fieldLabelsProject[field as keyof typeof fieldLabelsProject] - }} -
-
- {{ - formMainProject[field] ? formMainProject[field] : "-" - }} -
-
+
+ {{ formMain.level ?? "-" }}
- +
+
+ ชื่อ - นามสกุล +
-
-
- +
+ {{ formMain.name ?? "-" }} +
-
- - - - - +
+
+ ตําแหน่งทางการบริหาร +
+ +
+ {{ formMain.positionSide ?? "-" }} +
+
+
+
+ ตําแหน่ง +
+ +
+ {{ formMain.position ?? "-" }} +
+
+
+
+ หน่วยงานที่สังกัด +
+ +
+ {{ formMain.oc ?? "-" }} +
+
+
+
+ ประเภทตําแหน่ง +
+ +
+ {{ formMain.type ?? "-" }} +
- - - - - + - - + + +
+ ข้อมูลโครงการ +
+
+
+
+
+ ชื่อโครงการ/หลักสูตรการฝึกอบรม +
+ +
+ {{ formMainProject.project ?? "-" }} +
+
+
+
+ วันเริ่มต้นการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ + formMainProject.trainingStart + ? date2Thai(formMainProject.trainingStart) + : "-" + }} +
+
+
+
+ ปีงบประมาณที่เข้ารับการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.year ?? "-" }} +
+
+
+
+ วันสิ้นสุดการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ + formMainProject.trainingEnd + ? date2Thai(formMainProject?.trainingEnd) + : "-" + }} +
+
+
+
+ หัวข้อการไปฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.topic ?? "-" }} +
+
+
+
+ รวมระยะเวลาในการฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.totalTraining ?? "-" }} +
+
+
+
+ สถานที่ไปฝึกอบรม/ศึกษาดูงาน +
+ +
+ {{ formMainProject.location ?? "-" }} +
+
+
+
+ หน่วยงานที่รับผิดชอบ +
+ +
+ {{ formMainProject.organizingTraining ?? "-" }} +
+
+
+
+ +
+
+ +
+
+ + + + + +
+
+ + diff --git a/src/modules/15_development/components/historyEmployee/AddPage.vue b/src/modules/15_development/components/historyEmployee/AddPage.vue index 90a7776df..bdc937a19 100644 --- a/src/modules/15_development/components/historyEmployee/AddPage.vue +++ b/src/modules/15_development/components/historyEmployee/AddPage.vue @@ -94,7 +94,7 @@ function getClass() { /** save */ function onSubmit() { const url = id.value - ? config.API.developmentHistoryList("employee") + `${id.value}` + ? config.API.developmentHistoryListByid("employee", id.value) : config.API.developmentHistoryAdd("employee"); const body = { @@ -115,7 +115,7 @@ function onSubmit() { dialogConfirm($q, () => { showLoader(); http[id.value ? "put" : "post"](url, body) - .then((res) => { + .then(() => { router.push(`/development/employee-history`); }) .catch((e) => { @@ -150,7 +150,7 @@ function upDateProject(data: any) { function getDataEdit() { showLoader(); http - .get(config.API.developmentHistoryList("employee") + `${id.value}`) + .get(config.API.developmentHistoryListByid("employee", id.value)) .then((res) => { const data = res.data.result; formMain.id = id.value; diff --git a/src/modules/15_development/components/scholarship/DetailView.vue b/src/modules/15_development/components/scholarship/DetailView.vue index c7c17ac50..c90fcdb8e 100644 --- a/src/modules/15_development/components/scholarship/DetailView.vue +++ b/src/modules/15_development/components/scholarship/DetailView.vue @@ -2330,11 +2330,11 @@ onMounted(() => { ? date2Thai(formBody.startDate) : null " - :label="`${'วันเริ่มต้นการฝึกอบรม'}`" + :label="`${'วันเริ่มต้น'}`" hide-bottom-space :rules="[ (val: string) => - !!val || `${'กรุณาเลือกวันเริ่มต้นการฝึกอบรม'}`, + !!val || `${'กรุณาเลือกวันเริ่มต้น'}`, ]" >