|
|
|
@ -32,7 +32,7 @@ import InvoicePaid from "@/views/invoice/Paid";
|
|
|
|
|
import InvoicePaidDetail from "@/views/invoice/PaidDetail";
|
|
|
|
|
import Airticket from "@/views/airticket/Index";
|
|
|
|
|
|
|
|
|
|
import { PERM_ACCOUNT_MANAGEMENT } from '@/config'
|
|
|
|
|
import { PERM_ACCOUNT_MANAGEMENT, PERM_OVERSEA, PERM_AIR_TICKET } from '@/config'
|
|
|
|
|
|
|
|
|
|
import './i18n';
|
|
|
|
|
|
|
|
|
@ -52,22 +52,22 @@ const router = createBrowserRouter([
|
|
|
|
|
errorElement: <ErrorPage />,
|
|
|
|
|
children: [
|
|
|
|
|
{ index: true, element: <Index /> },
|
|
|
|
|
{ path: "reservation/newest", element: <ReservationNewest />},
|
|
|
|
|
{ path: "reservation/:reservationId", element: <ReservationDetail />},
|
|
|
|
|
{ path: "account/change-password", element: <ChangePassword />},
|
|
|
|
|
{ path: "account/profile", element: <AccountProfile />},
|
|
|
|
|
{ path: "account/management", element: <RequireAuth subject={PERM_ACCOUNT_MANAGEMENT} result={true}><AccountManagement /></RequireAuth>},
|
|
|
|
|
{ path: "feedback", element: <FeedbackIndex />},
|
|
|
|
|
{ path: "feedback/:GRI_SN/:CII_SN/:RefNo", element: <FeedbackCustomerDetail />},
|
|
|
|
|
{ path: "feedback/:GRI_SN/:RefNo", element: <FeedbackDetail />},
|
|
|
|
|
{ path: "report", element: <ReportIndex />},
|
|
|
|
|
{ path: "notice", element: <NoticeIndex />},
|
|
|
|
|
{ path: "notice/:CCP_BLID", element: <NoticeDetail />},
|
|
|
|
|
{ path: "invoice",element:<InvoiceIndex />},
|
|
|
|
|
{ path: "invoice/detail/:GMDSN/:GSN",element:<InvoiceDetail />},
|
|
|
|
|
{ path: "invoice/paid",element:<InvoicePaid />},
|
|
|
|
|
{ path: "invoice/paid/detail/:flid",element:<InvoicePaidDetail />},
|
|
|
|
|
{ path: "airticket",element:<Airticket />},
|
|
|
|
|
{ path: "reservation/newest", element: <RequireAuth subject={PERM_OVERSEA} result={true}><ReservationNewest /></RequireAuth>},
|
|
|
|
|
{ path: "reservation/:reservationId", element: <RequireAuth subject={PERM_OVERSEA} result={true}><ReservationDetail /></RequireAuth>},
|
|
|
|
|
{ path: "feedback", element: <RequireAuth subject={PERM_OVERSEA} result={true}><FeedbackIndex /></RequireAuth>},
|
|
|
|
|
{ path: "feedback/:GRI_SN/:CII_SN/:RefNo", element: <RequireAuth subject={PERM_OVERSEA} result={true}><FeedbackCustomerDetail /></RequireAuth>},
|
|
|
|
|
{ path: "feedback/:GRI_SN/:RefNo", element: <RequireAuth subject={PERM_OVERSEA} result={true}><FeedbackDetail /></RequireAuth>},
|
|
|
|
|
{ path: "report", element: <RequireAuth subject={PERM_OVERSEA} result={true}><ReportIndex /></RequireAuth>},
|
|
|
|
|
{ path: "notice", element: <RequireAuth subject={PERM_OVERSEA} result={true}><NoticeIndex /></RequireAuth>},
|
|
|
|
|
{ path: "notice/:CCP_BLID", element: <RequireAuth subject={PERM_OVERSEA} result={true}><NoticeDetail /></RequireAuth>},
|
|
|
|
|
{ path: "invoice",element:<RequireAuth subject={PERM_OVERSEA} result={true}><InvoiceIndex /></RequireAuth>},
|
|
|
|
|
{ path: "invoice/detail/:GMDSN/:GSN",element:<RequireAuth subject={PERM_OVERSEA} result={true}><InvoiceDetail /></RequireAuth>},
|
|
|
|
|
{ path: "invoice/paid",element:<RequireAuth subject={PERM_OVERSEA} result={true}><InvoicePaid /></RequireAuth>},
|
|
|
|
|
{ path: "invoice/paid/detail/:flid", element: <RequireAuth subject={PERM_OVERSEA} result={true}><InvoicePaidDetail /></RequireAuth>},
|
|
|
|
|
{ path: "airticket",element: <RequireAuth subject={PERM_AIR_TICKET} result={true}><Airticket /></RequireAuth>},
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|