|
|
@ -47,14 +47,14 @@ function Newest() {
|
|
|
|
if (reservation.guide === '') {
|
|
|
|
if (reservation.guide === '') {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Space size="middle">
|
|
|
|
<Space size="middle">
|
|
|
|
<Button type="link" onClick={() => showModal(reservation)}>Fill in</Button>
|
|
|
|
<Button type="link" onClick={() => showCityGuideModal(reservation)}>Fill in</Button>
|
|
|
|
</Space>
|
|
|
|
</Space>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Space size="middle">
|
|
|
|
<Space size="middle">
|
|
|
|
<span>{reservation.guide}</span>
|
|
|
|
<span>{reservation.guide}</span>
|
|
|
|
<Button type="link" onClick={() => showModal(reservation)}>Modify</Button>
|
|
|
|
<Button type="link" onClick={() => showCityGuideModal(reservation)}>Modify</Button>
|
|
|
|
</Space>
|
|
|
|
</Space>
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -103,7 +103,8 @@ function Newest() {
|
|
|
|
const [dataLoading, setDataLoading] = useState(false);
|
|
|
|
const [dataLoading, setDataLoading] = useState(false);
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
const { notification } = App.useApp();
|
|
|
|
|
|
|
|
|
|
|
|
const showModal = (reservation) => {
|
|
|
|
const showCityGuideModal = (reservation) => {
|
|
|
|
|
|
|
|
setDataLoading(true);
|
|
|
|
setIsModalOpen(true);
|
|
|
|
setIsModalOpen(true);
|
|
|
|
reservationStore.fetchCityList(reservation.referenceId)
|
|
|
|
reservationStore.fetchCityList(reservation.referenceId)
|
|
|
|
.catch(ex => {
|
|
|
|
.catch(ex => {
|
|
|
@ -152,6 +153,7 @@ function Newest() {
|
|
|
|
<Col span={24}>
|
|
|
|
<Col span={24}>
|
|
|
|
<Table
|
|
|
|
<Table
|
|
|
|
bordered
|
|
|
|
bordered
|
|
|
|
|
|
|
|
loading={dataLoading}
|
|
|
|
pagination={false}
|
|
|
|
pagination={false}
|
|
|
|
columns={[
|
|
|
|
columns={[
|
|
|
|
{
|
|
|
|
{
|
|
|
|