Merge branch 'development' of github.com:defuj/eis into dev-bagus

This commit is contained in:
kur0nek-o
2023-11-02 17:01:09 +07:00
63 changed files with 3449 additions and 100 deletions

View File

@ -47,6 +47,38 @@ import {
KeluhanTable14,
KeluhanTable15,
} from '@/components/Pages/Keluhan'
import {
MonalisaTable1,
MonalisaTable10,
MonalisaTable11,
MonalisaTable12,
MonalisaTable13,
MonalisaTable14,
MonalisaTable15,
MonalisaTable16,
MonalisaTable17,
MonalisaTable18,
MonalisaTable19,
MonalisaTable2,
MonalisaTable20,
MonalisaTable21,
MonalisaTable22,
MonalisaTable23,
MonalisaTable24,
MonalisaTable3,
MonalisaTable4,
MonalisaTable5,
MonalisaTable6,
MonalisaTable7,
MonalisaTable8,
MonalisaTable9
} from '@/components/Pages/Monalisa'
import { CicoTable1 } from '@/components/Pages/Cico'
import { AnomaliTable1, AnomaliTable2, 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'
import { PencarianDataTable1 } from '@/components/Pages/PencarianData'
export const routes: RouteRecordRaw[] = [
{
@ -102,6 +134,10 @@ export const routes: RouteRecordRaw[] = [
name: 'Daftar Gangguan Diselesaikan Mobile APKT',
component: GangguanTable7,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -173,7 +209,15 @@ export const routes: RouteRecordRaw[] = [
name: 'Rekapitulasi Cleansing Transaksi TM',
component: GangguanTable20,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
]
},
@ -220,6 +264,10 @@ export const routes: RouteRecordRaw[] = [
name: 'Daftar Keluhan Selesai di CC123',
component: KeluhanTable7,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -261,13 +309,20 @@ export const routes: RouteRecordRaw[] = [
name: 'Rekapitulasi Keluhan Berdasarkan Media',
component: KeluhanTable14,
},
{
path: '8',
name: 'Rekapitulasi Rating Per Unit',
component: KeluhanTable15,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
@ -286,50 +341,58 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Jumlah Kali Gangguan',
component: EmptyPage,
component: MonalisaTable1,
},
{
path: '2',
name: 'Dispacthing Time (DT) Gangguan',
component: EmptyPage,
component: MonalisaTable2,
},
{
path: '3',
name: 'Recovery Time (RCT) Gangguan',
component: EmptyPage,
component: MonalisaTable3,
},
{
path: '4',
name: 'Response Time (RPT) Gangguan',
component: EmptyPage,
component: MonalisaTable4,
},
{
path: '5',
name: 'Jumlah dan Durasi RPT RCT Gangguan',
component: EmptyPage,
component: MonalisaTable5,
},
{
path: '6',
name: 'Rekapitulasi Gangguan Per Jenis Gangguan',
component: EmptyPage,
component: MonalisaTable6,
},
{
path: '7',
name: 'Rekapitulasi Lapor Ulang Gangguan',
component: EmptyPage,
component: MonalisaTable7,
},
{
path: '8',
name: 'Rekapitulasi ENS Gangguan',
component: EmptyPage,
component: MonalisaTable8,
},
{
path: '9',
name: 'Rekapitulasi Gangguan Belum Selesai',
component: EmptyPage,
component: MonalisaTable9,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -343,44 +406,52 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Jumlah Kali Keluhan',
component: EmptyPage,
component: MonalisaTable10,
},
{
path: '2',
name: 'Recovery Time (RCT) Keluhan',
component: EmptyPage,
component: MonalisaTable11,
},
{
path: '3',
name: 'Response Time (RPT) Keluhan',
component: EmptyPage,
component: MonalisaTable12,
},
{
path: '4',
name: 'Jumlah dan Durasi RPT RCT Keluhan',
component: EmptyPage,
component: MonalisaTable13,
},
{
path: '5',
name: 'Rekapitulasi Gangguan Per Jenis Keluhan',
component: EmptyPage,
component: MonalisaTable14,
},
{
path: '6',
name: 'Rekapitulasi Lapor Ulang Keluhan',
component: EmptyPage,
component: MonalisaTable15,
},
{
path: '7',
name: 'Rekapitulasi Keluhan Belum Selesai',
component: EmptyPage,
component: MonalisaTable16,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: 'kpi',
path: 'laporan-kpi',
name: 'Laporan KPI',
children: [
{
@ -389,24 +460,28 @@ export const routes: RouteRecordRaw[] = [
children: [
{
path: '1',
name: 'Penurunan Jumlah Komplain',
component: EmptyPage,
name: '(Monalisa) Penurunan Jumlah Komplain',
component: MonalisaTable17,
},
{
path: '2',
name: 'Aging Complaint',
component: EmptyPage,
name: '(Monalisa) Aging Complaint',
component: MonalisaTable18,
},
{
path: '3',
name: 'Energy Not Sales (ENS)',
component: EmptyPage,
name: '(Monalisa) Energy Not Sales (ENS)',
component: MonalisaTable19,
},
{
path: '4',
name: 'Kepatuhan dan Akurasi Dalam Pelaporan',
component: EmptyPage,
name: '(Monalisa) Kepatuhan dan Akurasi Dalam Pelaporan',
component: MonalisaTable20,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -416,27 +491,39 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Penurunan Jumlah Komplain',
component: EmptyPage,
component: MonalisaTable21,
},
{
path: '2',
name: 'Aging Complaint',
component: EmptyPage,
component: MonalisaTable22,
},
{
path: '3',
name: 'Energy Not Sales (ENS)',
component: EmptyPage,
component: MonalisaTable23,
},
{
path: '4',
name: 'Kepatuhan dan Akurasi Dalam Pelaporan',
component: EmptyPage,
component: MonalisaTable24,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
}
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
},
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
},
],
},
{
@ -450,10 +537,18 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Laporan Check In /Check Out (CICO)',
component: EmptyPage,
component: CicoTable1,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -467,13 +562,17 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Laporan Anomali Penangan Pengaduan Gangguan Unit',
component: EmptyPage,
component: AnomaliTable1,
},
{
path: '2',
name: 'Laporan Anomali Penangan Pengaduan Gangguan Petugas',
component: EmptyPage,
component: AnomaliTable3,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -483,10 +582,18 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Laporan Anomali Penangan Pengaduan Keluhan Unit',
component: EmptyPage,
component: AnomaliTable5,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -496,8 +603,12 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Laporan CTT & KWH Periksa',
component: EmptyPage,
component: CttTable1,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -511,8 +622,12 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Daftar Gangguan Dan Material Yang Dipakai',
component: EmptyPage,
component: MaterialTable1,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -522,9 +637,17 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Rekapitulasi Pemakaian Material',
component: EmptyPage,
component: MaterialTable2,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
@ -535,8 +658,12 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Transaksi APKT',
component: EmptyPage,
component: TransaksiTable1,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
],
},
{
@ -546,10 +673,18 @@ export const routes: RouteRecordRaw[] = [
{
path: '1',
name: 'Pencarian Report Number',
component: PencarianDataTable1,
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
]
},
{
path: ':pathMatch(.*)*',
component: EmptyPage,
}
]
},
{
@ -567,6 +702,12 @@ export const routes: RouteRecordRaw[] = [
name: 'Not Found',
component: NotFoundView
},
{
path: '/',
redirect: {
name: 'Home'
}
}
]
export const mergeChildrenRoutes = (routes: RouteRecordRaw[]): RouteRecordRaw[] => {
@ -652,8 +793,10 @@ export const fixRoute = (route: RouteRecordRaw[]): RouteRecordRaw[] => {
// remove duplicate route path and sort by path length
const uniqueRoute = newRoute.filter((nr, index, self) => self.findIndex((n) => n.path === nr.path) === index).sort((a, b) => b.path.length - a.path.length)
// console.log('route', newRoute);
return uniqueRoute
// return uniqueRoute
return newRoute
}
@ -661,7 +804,8 @@ const router = createRouter({
history: createWebHistory(),
linkActiveClass: 'active',
stringifyQuery: qs.stringify,
routes: fixRoute(routes)
routes: fixRoute(routes),
strict: true,
})
router.beforeEach((to, from, next) => {