1152 lines
55 KiB
JavaScript
1152 lines
55 KiB
JavaScript
import { j as useTheme, s as storeToRefs, h as VApp, V as VAppBar, d as VSpacer, e as VBtn, f as VIcon, i as VMain, a as navigateTo, g as VTextField, k as VToolbar } from './server.mjs';
|
|
import { reactive, ref, withCtx, createTextVNode, createVNode, unref, useSSRContext } from 'vue';
|
|
import { ssrRenderAttrs, ssrRenderComponent } from 'vue/server-renderer';
|
|
import { d as useSubspesialisStore, e as useSubspesialisStorePost } from './users-C6PO6aD7.mjs';
|
|
import { V as VAppBarTitle } from './VAppBarTitle-DXp_6uL3.mjs';
|
|
import { c as VContainer, V as VCard, d as VRow, e as VCol } from './VCard-BaBxGxNH.mjs';
|
|
import { V as VDataTable } from './VDataTable-CPlx4hZ9.mjs';
|
|
import { V as VDialog } from './VDialog-Pje99w3C.mjs';
|
|
import '../_/nitro.mjs';
|
|
import 'node:http';
|
|
import 'node:https';
|
|
import 'node:fs';
|
|
import 'node:url';
|
|
import '@iconify/utils';
|
|
import 'consola/core';
|
|
import '../routes/renderer.mjs';
|
|
import 'vue-bundle-renderer/runtime';
|
|
import 'devalue';
|
|
import '@unhead/ssr';
|
|
import 'unhead';
|
|
import '@unhead/shared';
|
|
import 'vue-router';
|
|
import '@iconify/vue';
|
|
|
|
const _sfc_main = {
|
|
__name: "daftar",
|
|
__ssrInlineRender: true,
|
|
setup(__props) {
|
|
const theme = useTheme();
|
|
const dialog = reactive({
|
|
dialog: false
|
|
});
|
|
const hapusData = ref(null);
|
|
function toggleTheme() {
|
|
theme.global.name.value = theme.global.current.value.dark ? "light" : "myTheme";
|
|
}
|
|
const search = ref("");
|
|
const proses_edit = (item) => {
|
|
const { proses_edit: proses_edit2 } = useSubspesialisStorePost();
|
|
proses_edit2(item);
|
|
navigateTo(`/formSubspesialis`);
|
|
};
|
|
const modal_hapus = (item) => {
|
|
hapusData.value = item;
|
|
dialog.dialog = true;
|
|
};
|
|
const proses_hapus = () => {
|
|
console.log("proses hapus");
|
|
dialog.dialog = false;
|
|
};
|
|
const headers = [
|
|
{
|
|
align: "start",
|
|
key: "name",
|
|
sortable: false
|
|
},
|
|
{ key: "Nomor_surat_kontrol", title: "Nomor surat kontrol" },
|
|
{ key: "Nomor_sep", title: "Nomor sep" },
|
|
{ key: "Tanggal_cetak_surat_kontrol", title: "Tanggal Entry" },
|
|
{ key: "Tanggal_rencana_kontrol", title: "Tanggal Rencana Kontrol" },
|
|
{ key: "No_rm", title: "Nomor Rekam Medik" },
|
|
{ key: "NamaDokter", title: "Nama Dokter" },
|
|
{ text: "", value: "action" }
|
|
];
|
|
const { subspesialis_ } = storeToRefs(useSubspesialisStore());
|
|
useSubspesialisStore();
|
|
const { surkon } = storeToRefs(useSubspesialisStorePost());
|
|
useSubspesialisStorePost();
|
|
return (_ctx, _push, _parent, _attrs) => {
|
|
_push(`<div${ssrRenderAttrs(_attrs)}>`);
|
|
_push(ssrRenderComponent(VApp, null, {
|
|
default: withCtx((_, _push2, _parent2, _scopeId) => {
|
|
if (_push2) {
|
|
_push2(ssrRenderComponent(VAppBar, null, {
|
|
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
if (_push3) {
|
|
_push3(ssrRenderComponent(VAppBarTitle, null, {
|
|
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
if (_push4) {
|
|
_push4(`Hello`);
|
|
} else {
|
|
return [
|
|
createTextVNode("Hello")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent3, _scopeId2));
|
|
_push3(ssrRenderComponent(VSpacer, null, null, _parent3, _scopeId2));
|
|
_push3(ssrRenderComponent(VBtn, { onClick: toggleTheme }, {
|
|
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
if (_push4) {
|
|
_push4(ssrRenderComponent(VIcon, null, {
|
|
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
if (_push5) {
|
|
_push5(`ph:sun`);
|
|
} else {
|
|
return [
|
|
createTextVNode("ph:sun")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent4, _scopeId3));
|
|
_push4(` toggle thema`);
|
|
} else {
|
|
return [
|
|
createVNode(VIcon, null, {
|
|
default: withCtx(() => [
|
|
createTextVNode("ph:sun")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createTextVNode(" toggle thema")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent3, _scopeId2));
|
|
} else {
|
|
return [
|
|
createVNode(VAppBarTitle, null, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Hello")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VSpacer),
|
|
createVNode(VBtn, { onClick: toggleTheme }, {
|
|
default: withCtx(() => [
|
|
createVNode(VIcon, null, {
|
|
default: withCtx(() => [
|
|
createTextVNode("ph:sun")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createTextVNode(" toggle thema")
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent2, _scopeId));
|
|
_push2(ssrRenderComponent(VMain, null, {
|
|
default: withCtx((_2, _push3, _parent3, _scopeId2) => {
|
|
if (_push3) {
|
|
_push3(ssrRenderComponent(VContainer, null, {
|
|
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
if (_push4) {
|
|
_push4(ssrRenderComponent(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
if (_push5) {
|
|
_push5(ssrRenderComponent(VRow, null, {
|
|
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
|
if (_push6) {
|
|
_push6(ssrRenderComponent(VCol, null, {
|
|
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
|
if (_push7) {
|
|
_push7(ssrRenderComponent(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSurkon")
|
|
}, {
|
|
default: withCtx((_7, _push8, _parent8, _scopeId7) => {
|
|
if (_push8) {
|
|
_push8(`Tambah SURKON`);
|
|
} else {
|
|
return [
|
|
createTextVNode("Tambah SURKON")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent7, _scopeId6));
|
|
_push7(ssrRenderComponent(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSubspesialis")
|
|
}, {
|
|
default: withCtx((_7, _push8, _parent8, _scopeId7) => {
|
|
if (_push8) {
|
|
_push8(`Tambah SUBSPESIALIS`);
|
|
} else {
|
|
return [
|
|
createTextVNode("Tambah SUBSPESIALIS")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent7, _scopeId6));
|
|
} else {
|
|
return [
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSurkon")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SURKON")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSubspesialis")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SUBSPESIALIS")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent6, _scopeId5));
|
|
} else {
|
|
return [
|
|
createVNode(VCol, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSurkon")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SURKON")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSubspesialis")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SUBSPESIALIS")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent5, _scopeId4));
|
|
_push5(ssrRenderComponent(VTextField, {
|
|
class: "mt-5",
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, _parent5, _scopeId4));
|
|
} else {
|
|
return [
|
|
createVNode(VRow, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSurkon")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SURKON")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSubspesialis")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SUBSPESIALIS")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VTextField, {
|
|
class: "mt-5",
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
];
|
|
}
|
|
}),
|
|
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
if (_push5) {
|
|
_push5(ssrRenderComponent(VDataTable, {
|
|
headers,
|
|
items: unref(subspesialis_),
|
|
F: "",
|
|
search: search.value
|
|
}, {
|
|
"item.action": withCtx(({ item }, _push6, _parent6, _scopeId5) => {
|
|
if (_push6) {
|
|
_push6(ssrRenderComponent(VIcon, {
|
|
small: "",
|
|
class: "mr-2",
|
|
onClick: ($event) => proses_edit(item)
|
|
}, {
|
|
default: withCtx((_5, _push7, _parent7, _scopeId6) => {
|
|
if (_push7) {
|
|
_push7(`mdi-pencil`);
|
|
} else {
|
|
return [
|
|
createTextVNode("mdi-pencil")
|
|
];
|
|
}
|
|
}),
|
|
_: 2
|
|
}, _parent6, _scopeId5));
|
|
_push6(ssrRenderComponent(VIcon, {
|
|
small: "",
|
|
onClick: ($event) => modal_hapus(item)
|
|
}, {
|
|
default: withCtx((_5, _push7, _parent7, _scopeId6) => {
|
|
if (_push7) {
|
|
_push7(`mdi-delete`);
|
|
} else {
|
|
return [
|
|
createTextVNode("mdi-delete")
|
|
];
|
|
}
|
|
}),
|
|
_: 2
|
|
}, _parent6, _scopeId5));
|
|
} else {
|
|
return [
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
class: "mr-2",
|
|
onClick: ($event) => proses_edit(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-pencil")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"]),
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
onClick: ($event) => modal_hapus(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-delete")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent5, _scopeId4));
|
|
} else {
|
|
return [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(subspesialis_),
|
|
F: "",
|
|
search: search.value
|
|
}, {
|
|
"item.action": withCtx(({ item }) => [
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
class: "mr-2",
|
|
onClick: ($event) => proses_edit(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-pencil")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"]),
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
onClick: ($event) => modal_hapus(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-delete")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"])
|
|
]),
|
|
_: 1
|
|
}, 8, ["items", "search"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent4, _scopeId3));
|
|
} else {
|
|
return [
|
|
createVNode(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx(() => [
|
|
createVNode(VRow, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSurkon")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SURKON")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSubspesialis")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SUBSPESIALIS")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VTextField, {
|
|
class: "mt-5",
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(subspesialis_),
|
|
F: "",
|
|
search: search.value
|
|
}, {
|
|
"item.action": withCtx(({ item }) => [
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
class: "mr-2",
|
|
onClick: ($event) => proses_edit(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-pencil")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"]),
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
onClick: ($event) => modal_hapus(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-delete")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"])
|
|
]),
|
|
_: 1
|
|
}, 8, ["items", "search"])
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent3, _scopeId2));
|
|
_push3(ssrRenderComponent(VContainer, null, {
|
|
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
if (_push4) {
|
|
_push4(ssrRenderComponent(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
if (_push5) {
|
|
_push5(ssrRenderComponent(VTextField, {
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, _parent5, _scopeId4));
|
|
} else {
|
|
return [
|
|
createVNode(VTextField, {
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
];
|
|
}
|
|
}),
|
|
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
if (_push5) {
|
|
_push5(ssrRenderComponent(VDataTable, {
|
|
headers,
|
|
items: unref(surkon).list_data,
|
|
F: "",
|
|
search: search.value
|
|
}, null, _parent5, _scopeId4));
|
|
} else {
|
|
return [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(surkon).list_data,
|
|
F: "",
|
|
search: search.value
|
|
}, null, 8, ["items", "search"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent4, _scopeId3));
|
|
} else {
|
|
return [
|
|
createVNode(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx(() => [
|
|
createVNode(VTextField, {
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(surkon).list_data,
|
|
F: "",
|
|
search: search.value
|
|
}, null, 8, ["items", "search"])
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent3, _scopeId2));
|
|
_push3(ssrRenderComponent(VDialog, {
|
|
modelValue: dialog.dialog,
|
|
"onUpdate:modelValue": ($event) => dialog.dialog = $event,
|
|
"max-width": "400",
|
|
persistent: ""
|
|
}, {
|
|
default: withCtx((_3, _push4, _parent4, _scopeId3) => {
|
|
if (_push4) {
|
|
_push4(ssrRenderComponent(VCard, null, {
|
|
actions: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
if (_push5) {
|
|
_push5(ssrRenderComponent(VSpacer, null, null, _parent5, _scopeId4));
|
|
_push5(ssrRenderComponent(VBtn, {
|
|
onClick: ($event) => dialog.dialog = false
|
|
}, {
|
|
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
|
if (_push6) {
|
|
_push6(`Tidak`);
|
|
} else {
|
|
return [
|
|
createTextVNode("Tidak")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent5, _scopeId4));
|
|
_push5(ssrRenderComponent(VBtn, {
|
|
onClick: ($event) => proses_hapus()
|
|
}, {
|
|
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
|
if (_push6) {
|
|
_push6(`Ya`);
|
|
} else {
|
|
return [
|
|
createTextVNode("Ya")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent5, _scopeId4));
|
|
} else {
|
|
return [
|
|
createVNode(VSpacer),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => dialog.dialog = false
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tidak")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => proses_hapus()
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Ya")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
];
|
|
}
|
|
}),
|
|
default: withCtx((_4, _push5, _parent5, _scopeId4) => {
|
|
if (_push5) {
|
|
_push5(ssrRenderComponent(VToolbar, {
|
|
dense: "",
|
|
flat: "",
|
|
class: "body-2 font-weight-bold px-5"
|
|
}, {
|
|
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
|
if (_push6) {
|
|
_push6(` Konfirmasi `);
|
|
} else {
|
|
return [
|
|
createTextVNode(" Konfirmasi ")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent5, _scopeId4));
|
|
_push5(ssrRenderComponent(VRow, { class: "ma-1" }, {
|
|
default: withCtx((_5, _push6, _parent6, _scopeId5) => {
|
|
if (_push6) {
|
|
_push6(ssrRenderComponent(VCol, { cols: "12" }, {
|
|
default: withCtx((_6, _push7, _parent7, _scopeId6) => {
|
|
if (_push7) {
|
|
_push7(` Yakin akan dihapus? `);
|
|
} else {
|
|
return [
|
|
createTextVNode(" Yakin akan dihapus? ")
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent6, _scopeId5));
|
|
} else {
|
|
return [
|
|
createVNode(VCol, { cols: "12" }, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Yakin akan dihapus? ")
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent5, _scopeId4));
|
|
} else {
|
|
return [
|
|
createVNode(VToolbar, {
|
|
dense: "",
|
|
flat: "",
|
|
class: "body-2 font-weight-bold px-5"
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Konfirmasi ")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VRow, { class: "ma-1" }, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, { cols: "12" }, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Yakin akan dihapus? ")
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent4, _scopeId3));
|
|
} else {
|
|
return [
|
|
createVNode(VCard, null, {
|
|
actions: withCtx(() => [
|
|
createVNode(VSpacer),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => dialog.dialog = false
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tidak")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => proses_hapus()
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Ya")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VToolbar, {
|
|
dense: "",
|
|
flat: "",
|
|
class: "body-2 font-weight-bold px-5"
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Konfirmasi ")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VRow, { class: "ma-1" }, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, { cols: "12" }, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Yakin akan dihapus? ")
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent3, _scopeId2));
|
|
} else {
|
|
return [
|
|
createVNode(VContainer, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx(() => [
|
|
createVNode(VRow, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSurkon")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SURKON")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSubspesialis")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SUBSPESIALIS")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VTextField, {
|
|
class: "mt-5",
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(subspesialis_),
|
|
F: "",
|
|
search: search.value
|
|
}, {
|
|
"item.action": withCtx(({ item }) => [
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
class: "mr-2",
|
|
onClick: ($event) => proses_edit(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-pencil")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"]),
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
onClick: ($event) => modal_hapus(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-delete")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"])
|
|
]),
|
|
_: 1
|
|
}, 8, ["items", "search"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VContainer, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx(() => [
|
|
createVNode(VTextField, {
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(surkon).list_data,
|
|
F: "",
|
|
search: search.value
|
|
}, null, 8, ["items", "search"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VDialog, {
|
|
modelValue: dialog.dialog,
|
|
"onUpdate:modelValue": ($event) => dialog.dialog = $event,
|
|
"max-width": "400",
|
|
persistent: ""
|
|
}, {
|
|
default: withCtx(() => [
|
|
createVNode(VCard, null, {
|
|
actions: withCtx(() => [
|
|
createVNode(VSpacer),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => dialog.dialog = false
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tidak")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => proses_hapus()
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Ya")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VToolbar, {
|
|
dense: "",
|
|
flat: "",
|
|
class: "body-2 font-weight-bold px-5"
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Konfirmasi ")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VRow, { class: "ma-1" }, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, { cols: "12" }, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Yakin akan dihapus? ")
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent2, _scopeId));
|
|
} else {
|
|
return [
|
|
createVNode(VAppBar, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VAppBarTitle, null, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Hello")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VSpacer),
|
|
createVNode(VBtn, { onClick: toggleTheme }, {
|
|
default: withCtx(() => [
|
|
createVNode(VIcon, null, {
|
|
default: withCtx(() => [
|
|
createTextVNode("ph:sun")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createTextVNode(" toggle thema")
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VMain, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VContainer, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx(() => [
|
|
createVNode(VRow, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSurkon")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SURKON")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
class: "mx-2",
|
|
onClick: ($event) => ("navigateTo" in _ctx ? _ctx.navigateTo : unref(navigateTo))("/formSubspesialis")
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tambah SUBSPESIALIS")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VTextField, {
|
|
class: "mt-5",
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(subspesialis_),
|
|
F: "",
|
|
search: search.value
|
|
}, {
|
|
"item.action": withCtx(({ item }) => [
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
class: "mr-2",
|
|
onClick: ($event) => proses_edit(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-pencil")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"]),
|
|
createVNode(VIcon, {
|
|
small: "",
|
|
onClick: ($event) => modal_hapus(item)
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("mdi-delete")
|
|
]),
|
|
_: 2
|
|
}, 1032, ["onClick"])
|
|
]),
|
|
_: 1
|
|
}, 8, ["items", "search"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VContainer, null, {
|
|
default: withCtx(() => [
|
|
createVNode(VCard, {
|
|
title: "List Surat Kontrol",
|
|
flat: ""
|
|
}, {
|
|
text: withCtx(() => [
|
|
createVNode(VTextField, {
|
|
modelValue: search.value,
|
|
"onUpdate:modelValue": ($event) => search.value = $event,
|
|
label: "Search",
|
|
"prepend-inner-icon": "mdi-magnify",
|
|
variant: "outlined",
|
|
"hide-details": "",
|
|
"single-line": ""
|
|
}, null, 8, ["modelValue", "onUpdate:modelValue"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VDataTable, {
|
|
headers,
|
|
items: unref(surkon).list_data,
|
|
F: "",
|
|
search: search.value
|
|
}, null, 8, ["items", "search"])
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VDialog, {
|
|
modelValue: dialog.dialog,
|
|
"onUpdate:modelValue": ($event) => dialog.dialog = $event,
|
|
"max-width": "400",
|
|
persistent: ""
|
|
}, {
|
|
default: withCtx(() => [
|
|
createVNode(VCard, null, {
|
|
actions: withCtx(() => [
|
|
createVNode(VSpacer),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => dialog.dialog = false
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Tidak")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"]),
|
|
createVNode(VBtn, {
|
|
onClick: ($event) => proses_hapus()
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode("Ya")
|
|
]),
|
|
_: 1
|
|
}, 8, ["onClick"])
|
|
]),
|
|
default: withCtx(() => [
|
|
createVNode(VToolbar, {
|
|
dense: "",
|
|
flat: "",
|
|
class: "body-2 font-weight-bold px-5"
|
|
}, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Konfirmasi ")
|
|
]),
|
|
_: 1
|
|
}),
|
|
createVNode(VRow, { class: "ma-1" }, {
|
|
default: withCtx(() => [
|
|
createVNode(VCol, { cols: "12" }, {
|
|
default: withCtx(() => [
|
|
createTextVNode(" Yakin akan dihapus? ")
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
})
|
|
]),
|
|
_: 1
|
|
}, 8, ["modelValue", "onUpdate:modelValue"])
|
|
]),
|
|
_: 1
|
|
})
|
|
];
|
|
}
|
|
}),
|
|
_: 1
|
|
}, _parent));
|
|
_push(`</div>`);
|
|
};
|
|
}
|
|
};
|
|
const _sfc_setup = _sfc_main.setup;
|
|
_sfc_main.setup = (props, ctx) => {
|
|
const ssrContext = useSSRContext();
|
|
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("pages/Surat-Kontrol/daftar.vue");
|
|
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
};
|
|
|
|
export { _sfc_main as default };
|
|
//# sourceMappingURL=daftar-CSsm5UCl.mjs.map
|