diff --git a/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue new file mode 100644 index 0000000..30cefed --- /dev/null +++ b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue @@ -0,0 +1,86 @@ + + + \ No newline at end of file diff --git a/src/components/Pages/Anomali/Gangguan/Table_62.vue b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPP.vue similarity index 77% rename from src/components/Pages/Anomali/Gangguan/Table_62.vue rename to src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPP.vue index 6d04224..d9c58f9 100755 --- a/src/components/Pages/Anomali/Gangguan/Table_62.vue +++ b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPP.vue @@ -4,14 +4,15 @@ Laporan Pengaduan PLN Mobile - + - + @@ -42,13 +43,16 @@ import { exportDataGrid as exportToPdf } from 'devextreme/pdf_exporter' import { exportDataGrid as exportToExcel } from 'devextreme/excel_exporter' import { saveAs } from 'file-saver' import { Workbook } from 'exceljs' -import { ref } from 'vue' -const position = { of: '#data' }; -const showIndicator = ref(true); -const shading = ref(true); -const showPane = ref(true); -const loading = ref(true) -const data = ref([]) +import { computed, ref } from 'vue' +const position = { of: '#data' } +const showIndicator = ref(true) +const shading = ref(true) +const showPane = ref(true) +const loading = ref(false) +const props = defineProps({ + data: Array as () => any[], +}) +const data = computed(() => props.data) const onExporting = (e: any) => { if (e.format === 'pdf') { diff --git a/src/components/Pages/Anomali/Gangguan/Table_61.vue b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue similarity index 72% rename from src/components/Pages/Anomali/Gangguan/Table_61.vue rename to src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue index 43cc45c..9ba3913 100755 --- a/src/components/Pages/Anomali/Gangguan/Table_61.vue +++ b/src/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue @@ -1,7 +1,4 @@ \ No newline at end of file diff --git a/src/components/Pages/Anomali/index.ts b/src/components/Pages/Anomali/index.ts index 99e79bb..0d9050c 100755 --- a/src/components/Pages/Anomali/index.ts +++ b/src/components/Pages/Anomali/index.ts @@ -1,5 +1,6 @@ -export { default as AnomaliTable1 } from '@/components/Pages/Anomali/Gangguan/Table_61.vue' -export { default as AnomaliTable2 } from '@/components/Pages/Anomali/Gangguan/Table_62.vue' +export { default as Anomali_LAPPGU } from '@/components/Pages/Anomali/Gangguan/Anomali_LAPPGU.vue' +export { default as AnomaliTable1 } from '@/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPT.vue' +export { default as AnomaliTable2 } from '@/components/Pages/Anomali/Gangguan/Anomali_LAPPGU_LPP.vue' export { default as AnomaliTable3 } from '@/components/Pages/Anomali/Table_63.vue' export { default as AnomaliTable4 } from '@/components/Pages/Anomali/Table_64.vue' export { default as AnomaliTable5 } from '@/components/Pages/Anomali/Keluhan/Table_65.vue' diff --git a/src/router/index.ts b/src/router/index.ts index ea54da9..c973c60 100755 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -72,12 +72,7 @@ import { MonalisaTable9 } from '@/components/Pages/Monalisa' import { CicoTable1 } from '@/components/Pages/Cico' -import { - AnomaliTable1, - AnomaliTable2, - AnomaliTable3, - AnomaliTable5 -} from '@/components/Pages/Anomali' +import { Anomali_LAPPGU, AnomaliTable3, AnomaliTable5 } from '@/components/Pages/Anomali' import { CttTable1 } from '@/components/Pages/Ctt' import { MaterialTable1, MaterialTable2 } from '@/components/Pages/Material' import { TransaksiTable1 } from '@/components/Pages/Transaksi' @@ -565,7 +560,7 @@ export const routes: RouteRecordRaw[] = [ { path: '1', name: 'Laporan Anomali Penangan Pengaduan Gangguan Unit', - component: AnomaliTable1 + component: Anomali_LAPPGU }, { path: '2',