fix: remove sep

This commit is contained in:
riefive
2025-11-19 12:38:41 +07:00
parent 05cc75fa95
commit 3e4931cda2
3 changed files with 9 additions and 6 deletions
+5 -2
View File
@@ -49,7 +49,7 @@ provide('rec_item', recItem)
provide('table_data_loader', isLoading) provide('table_data_loader', isLoading)
watch( watch(
() => recAction.value, [recId, recAction],
() => { () => {
if (recAction.value === 'showConfirmDel') { if (recAction.value === 'showConfirmDel') {
open.value = true open.value = true
@@ -147,7 +147,10 @@ onMounted(() => {
<p><strong>Nama Pasien:</strong> {{ sepData.patientName }}</p> <p><strong>Nama Pasien:</strong> {{ sepData.patientName }}</p>
</div> </div>
<DialogFooter class="mt-6 flex justify-end gap-3"> <DialogFooter class="mt-6 flex justify-end gap-3">
<Button variant="outline" class="border-green-600 text-green-600 hover:bg-green-50" @click="handleRemove"> <Button variant="outline" class="border-green-600 text-green-600 hover:bg-green-50" @click="() => {
recId = 0
open = false
}">
<X class="mr-1 h-4 w-4" /> <X class="mr-1 h-4 w-4" />
Tidak Tidak
</Button> </Button>
+2 -2
View File
@@ -1,4 +1,4 @@
import { ref, reactive, watch } from 'vue' import { ref, reactive } from 'vue'
// Components // Components
import { toast } from '~/components/pub/ui/toast' import { toast } from '~/components/pub/ui/toast'
// Types // Types
@@ -220,7 +220,6 @@ export function useIntegrationSepList() {
} }
const handlePageChange = (page: number) => { const handlePageChange = (page: number) => {
// kept for compatibility
console.log('pageChange', page) console.log('pageChange', page)
} }
@@ -249,6 +248,7 @@ export function useIntegrationSepList() {
variant: 'destructive', variant: 'destructive',
}) })
} finally { } finally {
recId.value = 0
open.value = false open.value = false
} }
} }
+2 -2
View File
@@ -1,7 +1,7 @@
import { defineEventHandler, getCookie, getRequestHeaders, getRequestURL, readBody } from 'h3' import { defineEventHandler, getCookie, getRequestHeaders, getRequestURL, readBody } from 'h3'
export default defineEventHandler(async (event) => { export default defineEventHandler(async (event) => {
const { method } = event.node.req const { method } = event.node.req as any
const headers = getRequestHeaders(event) const headers = getRequestHeaders(event)
const url = getRequestURL(event) const url = getRequestURL(event)
const config = useRuntimeConfig() const config = useRuntimeConfig()
@@ -36,7 +36,7 @@ export default defineEventHandler(async (event) => {
} }
let body: any let body: any
if (['POST', 'PATCH'].includes(method!)) { if (['POST', 'PATCH', 'PUT', 'DELETE'].includes(method)) {
if (headers['content-type']?.includes('multipart/form-data')) { if (headers['content-type']?.includes('multipart/form-data')) {
body = await readBody(event) body = await readBody(event)
} else { } else {