diff --git a/src/components/Dialogs/PopupPersonal.vue b/src/components/Dialogs/PopupPersonal.vue deleted file mode 100644 index 007c5b1cd..000000000 --- a/src/components/Dialogs/PopupPersonal.vue +++ /dev/null @@ -1,406 +0,0 @@ - - - - - diff --git a/src/components/Dialogs/PopupPersonalNew.vue b/src/components/Dialogs/PopupPersonalNew.vue index 6449b5f48..4ef7825b6 100644 --- a/src/components/Dialogs/PopupPersonalNew.vue +++ b/src/components/Dialogs/PopupPersonalNew.vue @@ -55,6 +55,7 @@ const emit = defineEmits(["update:modal"]); /** ตัวแปร*/ const modal = ref(false); +const isLoading = ref(true); const employeeClass = ref(""); const avatar = reactive({ avatar: "", @@ -128,7 +129,7 @@ function calculateAge(birthDate: Date | null) { * @param id profileID */ async function fetchInformation(id: string) { - showLoader(); + isLoading.value = true; await http .get( config.API.orgProfileById( @@ -182,7 +183,7 @@ async function fetchInformation(id: string) { messageError($q, err); }) .finally(() => { - hideLoader(); + isLoading.value = false; }); } @@ -309,7 +310,12 @@ watch(modal, (newValue) => { - ทะเบียนประวัติ{{ isLeave ? "ผู้พ้นจากราชการ" : "" }} {
- +
+ + + + +
+
{ />
+
{ ข้อมูลส่วนตัว
-
+
+
+ +
+
+
{ }}
-
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
-
- -
+ +
- -
-
- +
-
-
- +
+
+
+ +
+
+ +
+
+ +
+
+ +
-
- + +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
+
+ +
-
- -
+
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- -
+
+ +
-
- +
+ +
+ +
+ +
+ +
+ +
@@ -770,8 +834,4 @@ watch(modal, (newValue) => { - + diff --git a/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue b/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue index 8930247e3..e0e465e7d 100644 --- a/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue +++ b/src/modules/04_registryPerson/components/detail/Achievement/03_Insignia.vue @@ -1311,6 +1311,7 @@ onMounted(async () => { :title="`ประวัติแก้ไขเครื่องราชอิสริยาภรณ์`" :columns="columnsHistory" :fetch-data="fetchDataHistory" + :type="'insignia'" /> diff --git a/src/modules/04_registryPerson/components/detail/DialogHistory.vue b/src/modules/04_registryPerson/components/detail/DialogHistory.vue index 9da53b81a..ceab6ee49 100644 --- a/src/modules/04_registryPerson/components/detail/DialogHistory.vue +++ b/src/modules/04_registryPerson/components/detail/DialogHistory.vue @@ -17,6 +17,7 @@ const columns = defineModel("columns", { const visibleColumnsMain = defineModel("visibleColumns", { required: true, }); +const type = defineModel("type", { default: "" }); const props = defineProps({ fetchData: { type: Function, required: true }, @@ -114,7 +115,7 @@ watch(