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() {
-+{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 (