diff --git a/src/modules/04_registryPerson/components/TableView.vue b/src/modules/04_registryPerson/components/TableView.vue
index 018c0e843..cb4000d20 100644
--- a/src/modules/04_registryPerson/components/TableView.vue
+++ b/src/modules/04_registryPerson/components/TableView.vue
@@ -35,7 +35,7 @@ const props = defineProps({
rows: { type: Array },
fetchData: { type: Function },
fetchType: { type: Function },
- total: { type: Number },
+ total: { type: Number, default: 0 },
});
/**
@@ -239,6 +239,9 @@ watch(
>
+
+ พบข้อมูลทั้งหมด {{ total.toLocaleString() }} รายการ
+
{
rangeYear: { min: 0, max: 60 },
isShowRetire: false,
isProbation: false,
+ isAll: true,
});
const labelOption = reactive({
diff --git a/src/modules/04_registryPerson/views/list.vue b/src/modules/04_registryPerson/views/list.vue
index 5c1ca07d8..822f35cb2 100644
--- a/src/modules/04_registryPerson/views/list.vue
+++ b/src/modules/04_registryPerson/views/list.vue
@@ -147,6 +147,8 @@ function fetchDataPerson() {
queryParams.node = store.nodeData.node;
queryParams.nodeId = store.nodeData.nodeId;
}
+
+ queryParams.isAll = store.formFilter.isAll;
http
.get(
config.API.registryNew(empType.value !== "officer" ? "-employee" : ""),
@@ -242,6 +244,8 @@ async function selectType() {
store.formFilter.isProbation = null;
fetchOptionGroup();
} else {
+ store.formFilter.isShowRetire = false;
+ store.formFilter.isProbation = false;
fetchType();
}
@@ -432,7 +436,7 @@ onMounted(async () => {
clearable
placeholder="ค้นหา"
class="col-9 q-pr-md"
- @clear="fetchDataPerson"
+ @clear="store.formFilter.keyword = ''"
>
@@ -450,18 +454,16 @@ onMounted(async () => {
-
-
- พบข้อมูลทั้งหมด {{ total.toLocaleString() }} รายการ
-
-
+ >
+ -->
-
+
+
+
+
+
+
+
+
@@ -723,8 +757,8 @@ onMounted(async () => {
- ค้นหา
+ ค้นหา