机票计划详细页
parent
b62bba8587
commit
a7f3faac13
@ -0,0 +1,42 @@
|
||||
import { useState, useEffect } from "react";
|
||||
import { Grid, Divider, Layout, Spin, Input, Col, Row, Space, List, Table, Button } from "antd";
|
||||
import { PhoneOutlined, CustomerServiceOutlined, AudioOutlined } from "@ant-design/icons";
|
||||
import { useParams, useHref, useNavigate, NavLink } from "react-router-dom";
|
||||
import { isEmpty } from "@/utils/commons";
|
||||
import dayjs from "dayjs";
|
||||
import { HT_HOST, OFFICEWEBVIEWERURL } from "@/config";
|
||||
|
||||
import airTicketStore from "@/stores/Airticket";
|
||||
import useAuthStore from "@/stores/Auth";
|
||||
|
||||
const AirticketPlan = props => {
|
||||
const href = useHref();
|
||||
const navigate = useNavigate();
|
||||
const { coli_sn } = useParams();
|
||||
const [travelAgencyId, loginToken] = useAuthStore(
|
||||
state => state.loginUser.travelAgencyId,
|
||||
state => state.loginUser.loginToken
|
||||
);
|
||||
const [getPlanList, planList, loading] = airTicketStore(state => [state.getPlanList, state.planList, state.loading]);
|
||||
const [loginUser] = useAuthStore(state => [state.loginUser]);
|
||||
|
||||
const reservationUrl = `https://p9axztuwd7x8a7.mycht.cn/service-fileServer/DownloadPlanDoc?GRI_SN=${coli_sn}&VEI_SN=${travelAgencyId}&token=${loginToken}&FileType=1`;
|
||||
|
||||
const reservationPreviewUrl = OFFICEWEBVIEWERURL + encodeURIComponent(reservationUrl);
|
||||
|
||||
useEffect(() => {}, []);
|
||||
|
||||
return (
|
||||
<Space direction="vertical" style={{ width: "100%" }}>
|
||||
<Row>
|
||||
<Col md={24} lg={24} xxl={24} style={{ height: "100%" }}>
|
||||
<iframe id="msdoc-iframe-reservation" title="msdoc-iframe-reservation" src={reservationPreviewUrl} frameBorder="0" style={{ width: "100%", height: "600px" }}></iframe>
|
||||
<Button type="link" target="_blank" href={reservationUrl}>
|
||||
下载
|
||||
</Button>
|
||||
</Col>
|
||||
</Row>
|
||||
</Space>
|
||||
);
|
||||
};
|
||||
export default AirticketPlan;
|
Loading…
Reference in New Issue