diff --git a/src/modules/05_placement/components/probation/FormAssign.vue b/src/modules/05_placement/components/probation/FormAssign.vue index 3d0f966c2..21e000567 100644 --- a/src/modules/05_placement/components/probation/FormAssign.vue +++ b/src/modules/05_placement/components/probation/FormAssign.vue @@ -70,16 +70,16 @@ const activity_desc = ref(Array(activityCount.value).fill("")); const goal_desc = ref(Array(activityCount.value).fill("")); const checkRule = ref([]); -const OPmain = ref< Array<{ id: number; title: string; description: string; level: number; }> >([]); -const OPgroup = ref< Array<{ id: number; title: string; description: string; level: number; }> >([]); -const OPcomputer = ref< Array<{ id: number; title: string; level: number; level_description: string; }> >([]); -const OPenglish = ref< Array<{ id: number; title: string; level: number; level_description: string; }> >([]); -const OPinfomation = ref< Array<{ id: number; title: string; level: number; level_description: string; }> >([]); -const OPresourse = ref< Array<{ id: number; title: string; level: number; level_description: string; }> >([]); -const OPknowledge = ref< Array<{ id: number; title: number; description: string; level: string; }> >([]); -const OPcaretaker = ref< Array<{ id: string; prefix: string; firstName: string; lastName: string; name: string; citizenId: number; isDirector: boolean; }>[] >([]); -const OPcommander = ref< Array<{ id: string; prefix: string; firstName: string; lastName: string; name: string; citizenId: number; isDirector: boolean; }>[] >([]); -const OPchairman = ref[] >([]); +const OPmain = ref>([]); +const OPgroup = ref>([]); +const OPcomputer = ref>([]); +const OPenglish = ref>([]); +const OPinfomation = ref>([]); +const OPresourse = ref>([]); +const OPknowledge = ref>([]); +const OPcaretaker = ref[]>([]); +const OPcommander = ref[]>([]); +const OPchairman = ref[]>([]); const dataEdit = async (id: string) => { await myForm.value.validate().then((result: boolean) => { @@ -88,8 +88,8 @@ const dataEdit = async (id: string) => { const data = putDataEdit(id); http .put(config.API.saveEditAssign(id), data) - .then(() => {}) - .catch(() => {}) + .then(() => { }) + .catch(() => { }) .finally(async () => { status.value = false; getAssign(); @@ -205,27 +205,35 @@ const getUser = async () => { prefix: item.prefix, firstName: item.firstName, lastName: item.lastName, - name: item.prefix + "" + item.firstName + " " + item.lastName, + name: `${item.prefix} ${item.firstName} ${item.lastName} (${item.position} ${item.positionLevel && item.positionLevel != '' ? ', ' + item.positionLevel : ''})`, citizenId: item.citizenId, isDirector: item.isDirector, + positionLevel: item.positionLevel, + position: item.position })); + OPcommander.value = data.commander.map((item: any) => ({ id: item.id, prefix: item.prefix, firstName: item.firstName, lastName: item.lastName, - name: item.prefix + "" + item.firstName + " " + item.lastName, + name: `${item.prefix} ${item.firstName} ${item.lastName} (${item.position} ${item.positionLevel && item.positionLevel != '' ? ', ' + item.positionLevel : ''})`, citizenId: item.citizenId, isDirector: item.isDirector, + positionLevel: item.positionLevel, + position: item.position })); + OPchairman.value = data.chairman.map((item: any) => ({ id: item.id, prefix: item.prefix, firstName: item.firstName, lastName: item.lastName, - name: item.prefix + "" + item.firstName + " " + item.lastName, + name: `${item.prefix} ${item.firstName} ${item.lastName} (${item.position} ${item.positionLevel && item.positionLevel != '' ? ', ' + item.positionLevel : ''})`, citizenId: item.citizenId, isDirector: item.isDirector, + positionLevel: item.positionLevel, + position: item.position })); }); }; @@ -295,7 +303,7 @@ const postDateTime = async () => { const result = res.data; date_finish.value = result.finish_date; }) - .catch((e) => {}) + .catch((e) => { }) .finally(async () => { hideLoader(); }); @@ -703,51 +711,24 @@ onMounted(async () => {
- +
เพิ่มแบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
แบบมอบหมายงานการทดลองปฏิบัติหน้าที่ราชการ
- + ดาวน์โหลด - - + + ไฟล์ .PDF - - + + ไฟล์ .docx @@ -755,37 +736,16 @@ onMounted(async () => {
- + แก้ไขข้อมูล
- + ยกเลิก - + บันทึกข้อมูล
@@ -801,28 +761,12 @@ onMounted(async () => {
- +
- +
@@ -830,32 +774,14 @@ onMounted(async () => {
- +
- + @@ -863,38 +789,19 @@ onMounted(async () => { {{ parseInt(value + 543) }}
- + @@ -902,22 +809,11 @@ onMounted(async () => { {{ parseInt(value + 543) }} @@ -935,64 +831,22 @@ onMounted(async () => { ผู้ดูแลการทดลองปฏิบัติหน้าที่ราชการ (อาจมีได้มากกว่า 1 คน)
- - + +
- - + +
@@ -1007,71 +861,29 @@ onMounted(async () => {
3.1 ชื่องาน / ภารกิจงานที่มอบหมาย (ควรมีมากกว่า 1 ภารกิจงาน) - +
- +
- +
- +
-
- +
+
@@ -1088,59 +900,22 @@ onMounted(async () => {
ความรู้ความสามารถในการปฏิบัติงาน - +
-
+
- +
-
- +
+
@@ -1148,28 +923,13 @@ onMounted(async () => {
ความรู้เรื่องกฎหมายและกฎระเบียบ (ไม่เกิน 20 หัวข้อ)
- +
-
+
- +
{{ item.description }} @@ -1177,10 +937,7 @@ onMounted(async () => {
-
+
{{ item.description }} @@ -1188,27 +945,16 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
@@ -1217,27 +963,16 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
{{ item.description }} @@ -1245,27 +980,16 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
{{ item.description }} @@ -1273,27 +997,16 @@ onMounted(async () => {
-
+
{{ item.description }}
-
+
- +
{{ item.description }} @@ -1309,15 +1022,8 @@ onMounted(async () => {
- +
@@ -1325,121 +1031,60 @@ onMounted(async () => {
ทักษะ
- + +
- + +
- + +
- + +
@@ -1458,145 +1103,69 @@ onMounted(async () => {
สมรรถนะหลัก
- + +
- + +
- + +
- + +
- + +
@@ -1604,88 +1173,46 @@ onMounted(async () => {
สมรรถนะประจํากลุ่มงาน
- + +
- + +
- + +
@@ -1696,12 +1223,9 @@ onMounted(async () => {
- 3.4 พฤติกรรมที่จําเป็นสําหรับการปฏิบัติงาน + 3.4 พฤติกรรมที่จําเป็นสําหรับการปฏิบัติงาน ( ได้แก่ ความประพฤติ ความมีคุณธรรมจริยธรรม การรักษาวินัย - ) + )
@@ -1775,13 +1299,7 @@ onMounted(async () => {
- +
@@ -1789,70 +1307,28 @@ onMounted(async () => {
3.6 ผลผลิตของงานที่คาดหวังและตัวชี้วัดความสําเร็จของงาน - +
- +
- +
- +
-
- +
+
@@ -1921,14 +1397,8 @@ onMounted(async () => {
  • ความสำเร็จของงานที่ได้รับมอบหมาย
  • อื่นๆ (ถ้ามี) - +
  • @@ -2011,36 +1481,16 @@ onMounted(async () => {
    - +
    - +
    - + @@ -2048,23 +1498,12 @@ onMounted(async () => { {{ parseInt(value + 543) }}
    - - + +
    - + @@ -2192,30 +1562,13 @@ onMounted(async () => { {{ parseInt(value + 543) }}