Merge branch 'main' of github.com:hainatravel/GHHub

release
Jimmy Liow 2 years ago
commit 3d56ec4883

@ -21,6 +21,8 @@ import ReservationNameCard from "@/views/reservation/NameCard";
import FeedbackIndex from "@/views/feedback/Index"; import FeedbackIndex from "@/views/feedback/Index";
import FeedbackDetail from "@/views/feedback/Detail"; import FeedbackDetail from "@/views/feedback/Detail";
import NoticeIndex from "@/views/notice/Index"; import NoticeIndex from "@/views/notice/Index";
import InvoiceIndex from "@/views/invoice/Index";
import InvoiceDetail from "@/views/invoice/Detail";
configure({ configure({
@ -46,6 +48,8 @@ const router = createBrowserRouter([
{ path: "feedback", element: <FeedbackIndex />}, { path: "feedback", element: <FeedbackIndex />},
{ path: "feedback/:GRI_SN", element: <FeedbackDetail />}, { path: "feedback/:GRI_SN", element: <FeedbackDetail />},
{ path: "notice", element: <NoticeIndex />}, { path: "notice", element: <NoticeIndex />},
{ path: "invoice",element:<InvoiceIndex />},
{ path: "invoice/detial/:GMDSN/:GSN",element:<InvoiceDetail />},
] ]
}, },
{ {

@ -2,12 +2,14 @@ import { makeAutoObservable } from "mobx";
import Reservation from "./Reservation"; import Reservation from "./Reservation";
import Feedback from "./Feedback"; import Feedback from "./Feedback";
import Auth from "./Auth"; import Auth from "./Auth";
import Invoice from "./Invoice";
class Root { class Root {
constructor() { constructor() {
this.reservationStore = new Reservation(this); this.reservationStore = new Reservation(this);
this.feedbackStore = new Feedback(this); this.feedbackStore = new Feedback(this);
this.authStore = new Auth(this); this.authStore = new Auth(this);
//this.invoice = new Invoice(this);
makeAutoObservable(this); makeAutoObservable(this);
} }
} }

@ -76,7 +76,7 @@ function App() {
items={[ items={[
{ key: "/reservation/newest", label: <Link to="/reservation/newest">Reservation</Link> }, { key: "/reservation/newest", label: <Link to="/reservation/newest">Reservation</Link> },
{ key: "/feedback", label: <Link to="/feedback">Feedback</Link> }, { key: "/feedback", label: <Link to="/feedback">Feedback</Link> },
{ key: "/invoice/list", label: <Link to="/invoice/list">Invoice</Link> }, { key: "/invoice", label: <Link to="/invoice">Invoice</Link> },
{ key: "/notice", label: <Link to="/notice">Notice</Link> }, { key: "/notice", label: <Link to="/notice">Notice</Link> },
]} ]}
/> />

@ -37,6 +37,8 @@ const feedbackListColumns = [
]; ];
function Index() { function Index() {
const { feedbackStore, authStore } = useStore(); const { feedbackStore, authStore } = useStore();
const { feedbackList } = feedbackStore; const { feedbackList } = feedbackStore;
const [selectedDateRange, onDateRangeChange] = useState([config.DATE_PRESETS[0].value]); const [selectedDateRange, onDateRangeChange] = useState([config.DATE_PRESETS[0].value]);

Loading…
Cancel
Save