refactor(sep): update vclaim visit service
This commit is contained in:
@@ -22,7 +22,7 @@ import type { VclaimSepData } from '~/models/vclaim'
|
||||
import { getList as geMonitoringVisitList } from '~/services/vclaim-monitoring-visit.service'
|
||||
|
||||
const search = ref('')
|
||||
const dateRange = ref('12 Agustus 2025 - 32 Agustus 2025')
|
||||
const dateRange = ref('12 Agustus 2025 - 31 Agustus 2025')
|
||||
const open = ref(false)
|
||||
|
||||
const sepData = {
|
||||
@@ -189,7 +189,7 @@ provide('table_data_loader', isLoading)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="rounded-md border p-4">
|
||||
<div class="p-4">
|
||||
<Header :prep="{ ...headerPrep }" />
|
||||
<!-- Filter Bar -->
|
||||
<div class="my-2 flex flex-wrap items-center gap-2">
|
||||
@@ -240,7 +240,7 @@ provide('table_data_loader', isLoading)
|
||||
</DropdownMenu>
|
||||
</div>
|
||||
|
||||
<div class="rounded-md border p-4">
|
||||
<div class="mt-4">
|
||||
<AppSepList
|
||||
v-if="!isLoading.dataListLoading"
|
||||
:data="data"
|
||||
|
||||
@@ -52,7 +52,7 @@ export async function getList(params: any = null) {
|
||||
const resp = await base.getList(url, params, name)
|
||||
|
||||
// Jika success false, return dummy response
|
||||
if (!resp.success) {
|
||||
if (!resp.success || !resp.body?.response) {
|
||||
return {
|
||||
success: true,
|
||||
body: dummyResponse,
|
||||
|
||||
Reference in New Issue
Block a user