perf: 表格日期都加上格式

main
LiaoYijun 6 months ago
parent 85663335b4
commit adbf81242d

@ -6,10 +6,10 @@
"Status": "Status", "Status": "Status",
"City": "City", "City": "City",
"Guide": "Guide", "Guide": "Guide",
"ResSendingDate": "Res. sending date(YYYY-MM-DD)", "ResSendingDate": "Res. sending date",
"3DGuideTip": "Reservations without the tour guide information will be highlighted in red if the arrival date is within 3 days.", "3DGuideTip": "Reservations without the tour guide information will be highlighted in red if the arrival date is within 3 days.",
"Attachments": "Attachments", "Attachments": "Attachments",
"ConfirmationDate": "Confirmation Date(YYYY-MM-DD)", "ConfirmationDate": "Confirmation Date",
"ConfirmationDetails": "Confirmation Details", "ConfirmationDetails": "Confirmation Details",
"PNR": "PASSAGER NAME RECORD", "PNR": "PASSAGER NAME RECORD",

@ -40,7 +40,7 @@ function ReviewList() {
), ),
}, },
{ {
title: t("review.DatePosted"), title: (<><div>{t('review.DatePosted')}</div><div>YYYY-MM-DD</div></>),
dataIndex: "datePosted", dataIndex: "datePosted",
width: "120px", width: "120px",
ellipsis: true, ellipsis: true,
@ -85,7 +85,7 @@ function ReviewList() {
}, },
}, },
{ {
title: t("review.ApprovalDate"), title: (<><div>{t('review.ApprovalDate')}</div><div>YYYY-MM-DD</div></>),
dataIndex: "approvalDate", dataIndex: "approvalDate",
width: "150px", width: "150px",
ellipsis: true, ellipsis: true,

@ -21,7 +21,7 @@ function Detail() {
dataIndex: 'PCI_Changetext', dataIndex: 'PCI_Changetext',
}, },
{ {
title: t('group:ResSendingDate'), title: (<><div>{t('group:ResSendingDate')}</div><div>YYYY-MM-DD</div></>),
dataIndex: 'PCI_SendDate', dataIndex: 'PCI_SendDate',
}, },
{ {
@ -33,7 +33,7 @@ function Detail() {
render: attachmentRender render: attachmentRender
}, },
{ {
title: t('group:ConfirmationDate'), title: (<><div>{t('group:ConfirmationDate')}</div><div>YYYY-MM-DD</div></>),
dataIndex: 'PCI_ConfirmDate', dataIndex: 'PCI_ConfirmDate',
}, },
{ {
@ -73,7 +73,7 @@ function Detail() {
const flightColumns = [ const flightColumns = [
{ {
title: 'Date(YYYY-MM-DD)', title: (<><div>Date</div><div>YYYY-MM-DD</div></>),
dataIndex: 'FlightDate', dataIndex: 'FlightDate',
}, },
{ {
@ -97,7 +97,7 @@ function Detail() {
dataIndex: 'ToTerminal', dataIndex: 'ToTerminal',
}, },
{ {
title: 'Departure Time(YYYY-MM-DD)', title: (<><div>Departure Time</div><div>YYYY-MM-DD</div></>),
dataIndex: 'FlightDate', dataIndex: 'FlightDate',
}, },
{ {
@ -107,6 +107,7 @@ function Detail() {
{ {
title: 'Luggage Allowance', title: 'Luggage Allowance',
dataIndex: 'Baggage', dataIndex: 'Baggage',
width: "100px",
}, },
{ {
title: 'Tickets Number and Passports', title: 'Tickets Number and Passports',

@ -28,7 +28,7 @@ function Newest() {
}, },
}, },
{ {
title: t('group:ArrivalDate'), title: (<><div>{t('group:ArrivalDate')}</div><div>YYYY-MM-DD</div></>),
dataIndex: 'arrivalDate', dataIndex: 'arrivalDate',
render: (text) => (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')), render: (text) => (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')),
}, },
@ -41,7 +41,7 @@ function Newest() {
dataIndex: 'status' dataIndex: 'status'
}, },
{ {
title: t('group:ResSendingDate'), title: (<><div>{t('group:ResSendingDate')}</div><div>YYYY-MM-DD</div></>),
dataIndex: 'reservationDate', dataIndex: 'reservationDate',
render: (text) => (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')), render: (text) => (isEmpty(text) ? '' : dayjs(text).format('YYYY-MM-DD')),
}, },

Loading…
Cancel
Save