From b1335895022f7b2736547dfff86b5e5b62ca056d Mon Sep 17 00:00:00 2001
From: Jimmy Liow <18777396951@163.com>
Date: Fri, 12 May 2023 17:02:00 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AE=A1=E5=88=92=E9=A2=84?=
=?UTF-8?q?=E8=A7=88=E6=96=87=E6=A1=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/stores/Reservation.js | 7 -------
src/views/App.jsx | 18 +++++++++++++-----
src/views/reservation/Detail.jsx | 20 ++++++++++++++++----
src/views/reservation/NameCard.jsx | 1 -
src/views/reservation/Newest.jsx | 7 +++++++
src/views/reservation/Print.jsx | 9 +--------
6 files changed, 37 insertions(+), 25 deletions(-)
diff --git a/src/stores/Reservation.js b/src/stores/Reservation.js
index 9e3a978..e28cf66 100644
--- a/src/stores/Reservation.js
+++ b/src/stores/Reservation.js
@@ -71,9 +71,6 @@ class Reservation {
this.reservationDetail = {
referenceNumber: json.PlanDetail[0].GRI_Name, tourGuide: json.PlanDetail[0].Guide, arrivalDate: json.PlanDetail[0].eoi_getdate
};
- this.meetAndGreet = {
- customerNames: json.JJPInfo[0].CustomerName, referenceNumber: json.JJPInfo[0].GroupName, pax: json.JJPInfo[0].Str_PersonNum
- };
this.customerNames = json.CusAndRequest[0].GCI_CustomerList;
this.confirmationList = json.PlanChange.map((data, index) => {
return {
@@ -212,10 +209,6 @@ class Reservation {
referenceNumber: '', arrivalDate: '', tourGuide: ''
};
- meetAndGreet = {
- referenceNumber: '', customerNames: '', pax: ''
- }
-
reservationPage = {
current: 1,
size: 10,
diff --git a/src/views/App.jsx b/src/views/App.jsx
index e64af33..34ad535 100644
--- a/src/views/App.jsx
+++ b/src/views/App.jsx
@@ -34,8 +34,16 @@ function App() {
useEffect(() => {
// Check location
console.info("location.pathname: " + location.pathname);
+ console.info(location.pathname.split('/'));
}, [location]);
+ const splitPath = location.pathname.split('/');
+ let defaultPath = 'reservation';
+
+ if (splitPath.length > 1) {
+ defaultPath = splitPath[1];
+ }
+
const {
token: { colorBgContainer },
} = theme.useToken();
@@ -60,12 +68,12 @@ function App() {