+
+ แก้ไขข้อมูล
+
+
+ ยกเลิก
+
+
-
- แก้ไขข้อมูล
-
-
- ยกเลิก
+ บันทึกข้อมูล
-
-
- บันทึกข้อมูล
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ titleText }}
-
-
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
+ props.deleted();
+};
+
+const resetFilter = () => {
+ // reset ค่าที่ค้นหาเมื่อกดปุ่ม X ในกล่องค้นหา
+ emit("update:inputfilter", "");
+ filterRef.value.focus();
+};
+
+
diff --git a/src/modules/05_placement/interface/request/placement.ts b/src/modules/05_placement/interface/request/placement.ts
index ab12e8fd9..ceaa2bb80 100644
--- a/src/modules/05_placement/interface/request/placement.ts
+++ b/src/modules/05_placement/interface/request/placement.ts
@@ -1,5 +1,5 @@
interface TableName {
- position: string;
+ position: number;
Name: string;
ExamOrder: number;
Unit: string;
@@ -10,20 +10,8 @@ interface TableName {
}
-interface RequestReport2 {
- organizationShortNameId: string;
- organizationOrganizationId: string;
- positionNumId: string;
- positionTypeId: string;
- positionExecutiveId: string;
- positionExecutiveSideId: string;
- positionPathId: string;
- positionPathSideId: string;
- positionLevelId: string;
- status: string | null;
-}
export type {
TableName,
- RequestReport2,
+
};
\ No newline at end of file
diff --git a/src/modules/05_placement/store.ts b/src/modules/05_placement/store.ts
index ed479e584..5b83b8716 100644
--- a/src/modules/05_placement/store.ts
+++ b/src/modules/05_placement/store.ts
@@ -1,5 +1,32 @@
import { defineStore } from "pinia";
-
+import { ref, computed } from "vue";
export const useProfileDataStore = defineStore("placement", () => {
return {};
});
+export const usePlacementDataStore = defineStore("placement", () => {
+ interface placement {
+ mappingPosition: { columns: String[] };
+ }
+ const placementData = ref
({
+ mappingPosition: { columns: [] },
+ });
+ const changePlacementColumns = (system: String, val: String[]) => {
+ if (system == "mappingPosition")
+ placementData.value.mappingPosition.columns = val;
+ localStorage.setItem(
+ "placement",
+ JSON.stringify(placementData.value)
+ );
+ };
+
+ if (localStorage.getItem("placement") !== null) {
+ placementData.value = JSON.parse(
+ localStorage.getItem("placement") || "{}"
+ );
+ }
+
+ return {
+ placementData,
+ changePlacementColumns,
+ };
+});