From e68e0ddd7dc5962759de8b7c1dcd2ad11bacd69b Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Wed, 3 Jul 2024 10:06:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=9B=A2=E8=AE=A1=E5=88=92=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20Tailwind=20CSS?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/zh/account.json | 1 + src/views/account/Management.jsx | 10 ++++----- src/views/reservation/Detail.jsx | 36 +++++++++++++++++--------------- src/views/reservation/Newest.jsx | 19 +++++++---------- 4 files changed, 32 insertions(+), 34 deletions(-) diff --git a/public/locales/zh/account.json b/public/locales/zh/account.json index 3849f07..a1d78c4 100644 --- a/public/locales/zh/account.json +++ b/public/locales/zh/account.json @@ -23,6 +23,7 @@ "detail": "详细信息", "username": "用户名", "realname": "姓名", + "travelAgency": "供应商", "travelAgencyName": "供应商名称", "email": "邮箱地址", "lastLogin": "最后登陆时间", diff --git a/src/views/account/Management.jsx b/src/views/account/Management.jsx index 7e0d236..4a32a66 100644 --- a/src/views/account/Management.jsx +++ b/src/views/account/Management.jsx @@ -23,14 +23,14 @@ function Management() { title: t('account:realname'), dataIndex: 'realname', }, - { - title: t('account:travelAgencyName'), - dataIndex: 'travelAgencyName', - }, { title: t('account:email'), dataIndex: 'email', }, + { + title: t('account:travelAgency'), + dataIndex: 'travelAgencyName', + }, { title: t('account:roleName'), dataIndex: 'role' @@ -283,7 +283,7 @@ function Management() { +
{formattedText}
); @@ -56,7 +56,7 @@ function Detail() { <> {confirm.attachmentList.map(attch => { return ( - }>{attch.file_name} + }>{attch.file_name} )} )} @@ -65,7 +65,7 @@ function Detail() { function confirmRender(text, confirm) { return ( - + ); } @@ -96,7 +96,7 @@ function Detail() { const showConfirmModal = (confirm) => { setIsModalOpen(true); - const formattedText = confirm.PCI_ConfirmText;//.replace(/\;/g, "\n——————————————————————\n"); + const formattedText = confirm.PCI_ConfirmText;//.replace(/\;/g, '\n——————————————————————\n'); setConfirmText(formattedText); selectConfirmation(confirm); }; @@ -140,7 +140,7 @@ function Detail() { {t('group:ConfirmationDetails')}
-
+
{confirmText}
@@ -155,7 +155,7 @@ function Detail() { }} /> - + {t('group:RefNo')}: {reservationDetail.referenceNumber}; {t('group:ArrivalDate')}: {reservationDetail.arrivalDate}; @@ -165,17 +165,19 @@ function Detail() { - - + + - - + + - + (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')), + render: (text) => (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')), }, { title: t('group:Pax'), @@ -43,7 +43,7 @@ function Newest() { { title: t('group:ResSendingDate'), dataIndex: 'reservationDate', - render: (text, record) => (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')), + render: (text) => (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')), }, { title: t('group:Guide'), @@ -52,7 +52,7 @@ function Newest() { }, ]; - function guideRender(text, reservation) { + function guideRender(_, reservation) { if (reservation.guide === '') { return ( @@ -69,13 +69,11 @@ function Newest() { } } - function cityGuideRender(text, city) { + function cityGuideRender(_, city) { return (
- +