diff --git a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue index 797cdfcfe..700d0ac85 100644 --- a/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue +++ b/src/modules/04_registryNew/components/detail/PersonalInformation/04_Family.vue @@ -21,6 +21,7 @@ const { } = mixin; const store = useProfileDataStore(); +const { fetchPerson, filterSelector } = store; const route = useRoute(); const id = ref(route.params.id.toString()); const dialog = ref(false); @@ -121,7 +122,6 @@ async function fetchHistoryData(id: string) { await http .get(config.API.profileNewFamilyHisByFamilyId(id)) .then(async (res) => { - console.log(res.data.result); historyRows.value = res.data.result; }) .catch((err) => { @@ -243,23 +243,8 @@ onMounted(async () => { ) { await fetchPerson(); } - prefixFilter.value = store.Ops.prefixOps; await fetchData(id.value); }); - -function filterSelector(val: string, update: Function, refData: string) { - switch (refData) { - case "prefixOps": - update(() => { - store.Ops.prefixOps = prefixFilter.value.filter( - (v: any) => v.name.indexOf(val) > -1 - ); - }); - break; - default: - break; - } -}