|
|
|
@ -9,22 +9,7 @@ import { useStore } from '../../stores/StoreContext.js';
|
|
|
|
|
const { Title } = Typography;
|
|
|
|
|
const { TextArea } = Input;
|
|
|
|
|
|
|
|
|
|
const dataSource = [
|
|
|
|
|
{
|
|
|
|
|
key: '1',
|
|
|
|
|
name: '2',
|
|
|
|
|
age: '二',
|
|
|
|
|
address: '5月2日',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
key: '2',
|
|
|
|
|
name: '胡彦祖',
|
|
|
|
|
age: 42,
|
|
|
|
|
address: '西湖区湖底公园1号',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
|
const itineraryListColumns = [
|
|
|
|
|
{
|
|
|
|
|
title: '天数',
|
|
|
|
|
dataIndex: 'name',
|
|
|
|
@ -72,30 +57,11 @@ const columns = [
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
const customerList = [
|
|
|
|
|
{
|
|
|
|
|
title: 'Crane / Gemma Chelse',
|
|
|
|
|
description: '性别:男 生日:2002-07-02 国籍:英国 护照号:559489179 护照有效期:2029-03-11',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'McCracken / Ryan Lee',
|
|
|
|
|
description: '性别:男 生日:1964-11-21 国籍:英国 护照号:126793728 护照有效期:2031-08-03',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Ramlakhan / Darryl',
|
|
|
|
|
description: '性别:男 生日:1983-04-16 国籍:特立尼达和多巴哥 护照号:TB591985 护照有效期:2027-11-12',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: 'Ramlakhan / Reanne',
|
|
|
|
|
description: '性别:女 生日:1983-12-16 国籍:特立尼达和',
|
|
|
|
|
},
|
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
function Detail() {
|
|
|
|
|
const navigate = useNavigate();
|
|
|
|
|
const { reservationId } = useParams();
|
|
|
|
|
const { reservationStore } = useStore();
|
|
|
|
|
const { reservationList } = reservationStore;
|
|
|
|
|
const { itineraryList, customerList } = reservationStore;
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
|
console.info('Detail.useEffect: ' + reservationId);
|
|
|
|
@ -124,7 +90,12 @@ function Detail() {
|
|
|
|
|
</Row>
|
|
|
|
|
<Row>
|
|
|
|
|
<Col span={24}>
|
|
|
|
|
<Table dataSource={dataSource} columns={columns} />
|
|
|
|
|
<Table
|
|
|
|
|
pagination={{
|
|
|
|
|
hideOnSinglePage: true
|
|
|
|
|
}}
|
|
|
|
|
dataSource={itineraryList} columns={itineraryListColumns}
|
|
|
|
|
/>
|
|
|
|
|
</Col>
|
|
|
|
|
</Row>
|
|
|
|
|
<Row>
|
|
|
|
|