diff --git a/src/modules/05_placement/views/Domination.vue b/src/modules/05_placement/components/exams_korkor/Main.vue
similarity index 53%
rename from src/modules/05_placement/views/Domination.vue
rename to src/modules/05_placement/components/exams_korkor/Main.vue
index 0db669f8d..2b53fb1bb 100644
--- a/src/modules/05_placement/views/Domination.vue
+++ b/src/modules/05_placement/components/exams_korkor/Main.vue
@@ -1,7 +1,7 @@
@@ -287,165 +297,79 @@ const paginationLabel = (start: string, end: string, total: string) => {
รายการสอบแข่งขัน / คัดเลือก
-
-
@@ -456,7 +380,7 @@ const paginationLabel = (start: string, end: string, total: string) => {
background-color: #EDEDED;
}
-.toggle-expired-account{
+.toggle-expired-account {
font-size: 12px;
font-weight: 400;
font-size: 15px;
@@ -465,32 +389,37 @@ const paginationLabel = (start: string, end: string, total: string) => {
}
.icon-color {
- color: #4154b3;
+ color: #4154b3;
+}
+
+.custom-header-table {
+ max-height: 64vh;
+
+ .q-table tr:nth-child(odd) td {
+ background: white;
}
- .custom-header-table {
- max-height: 64vh;
- .q-table tr:nth-child(odd) td {
- background: white;
- }
- .q-table tr:nth-child(even) td {
- background: #f8f8f8;
- }
-
- .q-table thead tr {
- background: #ecebeb;
- }
-
- .q-table thead tr th {
- position: sticky;
- z-index: 1;
- }
- /* this will be the loading indicator */
- .q-table thead tr:last-child th {
- /* height of all previous header rows */
- top: 48px;
- }
- .q-table thead tr:first-child th {
- top: 0;
- }
+
+ .q-table tr:nth-child(even) td {
+ background: #f8f8f8;
}
+
+ .q-table thead tr {
+ background: #ecebeb;
+ }
+
+ .q-table thead tr th {
+ position: sticky;
+ z-index: 1;
+ }
+
+ /* this will be the loading indicator */
+ .q-table thead tr:last-child th {
+ /* height of all previous header rows */
+ top: 48px;
+ }
+
+ .q-table thead tr:first-child th {
+ top: 0;
+ }
+}
diff --git a/src/modules/05_placement/components/exams_sorkorcho/Main.vue b/src/modules/05_placement/components/exams_sorkorcho/Main.vue
new file mode 100644
index 000000000..2b53fb1bb
--- /dev/null
+++ b/src/modules/05_placement/components/exams_sorkorcho/Main.vue
@@ -0,0 +1,425 @@
+
+
+
+
+ รายการสอบแข่งขัน / คัดเลือก
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/modules/05_placement/router.ts b/src/modules/05_placement/router.ts
index f4af5d34e..0d6745f2f 100644
--- a/src/modules/05_placement/router.ts
+++ b/src/modules/05_placement/router.ts
@@ -2,15 +2,25 @@
* Router บรรจุ แต่งตั้ง ย้าย โอน (Placement)
*/
-const Main = () => import("@/modules/05_placement/views/Main.vue");
+const MainSorkorcho = () => import("@/modules/05_placement/components/exams_sorkorcho/Main.vue");
+const MainSorkorkor = () => import("@/modules/05_placement/components/exams_korkor/Main.vue");
const PlacementDetail = () => import("@/modules/05_placement/components/pass/Detail.vue");
-const Domination = () => import("@/modules/05_placement/views/Domination.vue");
export default [
{
path: "/placement",
name: "placement",
- component: Main,
+ component: MainSorkorcho,
+ meta: {
+ Auth: true,
+ Key: [7],
+ Role: "placement",
+ },
+ },
+ {
+ path: "/placement2",
+ name: "placement2",
+ component: MainSorkorkor,
meta: {
Auth: true,
Key: [7],
@@ -37,15 +47,5 @@ export default [
Role: "placement",
},
},
- {
- path: "/domination",
- name: "domination",
- component: Domination,
- meta: {
- Auth: true,
- Key: [7],
- Role: "placement",
- },
- },
];
diff --git a/src/modules/05_placement/store.ts b/src/modules/05_placement/store.ts
index 1769692af..06308826e 100644
--- a/src/modules/05_placement/store.ts
+++ b/src/modules/05_placement/store.ts
@@ -1,6 +1,6 @@
import { defineStore } from "pinia";
import { ref } from "vue";
-import type { FormPlacementMainData } from "@/modules/05_placement/interface/request/Main"
+import type { FormPlacementMainData } from "@/modules/05_placement/interface/request/Main"
export const useProfileDataStore = defineStore("placement", () => {
return {};
});
@@ -26,19 +26,60 @@ export const usePlacementDataStore = defineStore("placement", () => {
);
}
- let DataMainOrig = ref([]) // ข้อมูลหลัก
+ let DataMainYear = ref