diff --git a/src/assets/css/style.css b/src/assets/css/style.css index 1c70833..273fce5 100644 --- a/src/assets/css/style.css +++ b/src/assets/css/style.css @@ -1124,6 +1124,10 @@ select { margin-top: 0.75rem; } +.mt-3\.5 { + margin-top: 0.875rem; +} + .mt-4 { margin-top: 1rem; } @@ -1136,10 +1140,6 @@ select { margin-top: 1.5rem; } -.mt-3\.5 { - margin-top: 0.875rem; -} - .line-clamp-1 { overflow: hidden; display: -webkit-box; @@ -1231,6 +1231,10 @@ select { height: calc(100% - 64px); } +.h-\[calc\(90vh-24px\)\] { + height: calc(90vh - 24px); +} + .h-fit { height: -moz-fit-content; height: fit-content; @@ -1244,18 +1248,6 @@ select { height: 80vh; } -.h-screen { - height: 100vh; -} - -.h-\[90vh\] { - height: 90vh; -} - -.h-\[calc\(90vh-24px\)\] { - height: calc(90vh - 24px); -} - .max-h-0 { max-height: 0px; } diff --git a/src/components/Pages/Gangguan/Daftar/Daftar_1.vue b/src/components/Pages/Gangguan/Daftar/Daftar_1.vue index b6b4d64..cff4b72 100644 --- a/src/components/Pages/Gangguan/Daftar/Daftar_1.vue +++ b/src/components/Pages/Gangguan/Daftar/Daftar_1.vue @@ -12,7 +12,9 @@ - + + @@ -31,6 +33,12 @@ + + @@ -45,8 +53,10 @@ import { exportDataGrid as exportToExcel } from 'devextreme/excel_exporter' import type { Data1 } from '@/types/gangguan' import { saveAs } from 'file-saver' import { Workbook } from 'exceljs' -import { readDataJson, writeDataJson } from '@/utils/storage' +import { writeDataJson } from '@/utils/storage' +import { useDialogStore } from '@/stores/dialog' +const dialog = useDialogStore() const data = ref([]) const onExporting = (e: any) => { @@ -108,7 +118,15 @@ const createDummy = () => { const onSelectionChanged = ({ selectedRowsData }: any) => { const data = selectedRowsData[0] console.log(data) -}; +} + +const showData = (data: string) => { + dialog.type = 'success' + dialog.title = 'Detail Data' + dialog.content = data + dialog.confirmText = 'Tutup' + dialog.open = true +} onMounted(() => { createDummy()