Commit 9c47c2fe authored by Sixiang_Zzb's avatar Sixiang_Zzb

修改下载路径

parent 1eedb243
...@@ -6,25 +6,34 @@ import { connect, history } from 'umi'; ...@@ -6,25 +6,34 @@ import { connect, history } from 'umi';
import { getCookie } from '@/utils/method'; import { getCookie } from '@/utils/method';
import { RA } from '@/utils/method'; import { RA } from '@/utils/method';
const module = "User" const module = 'User';
const ResultPageFailed = (props: any) => { const ResultPageFailed = (props: any) => {
const { dispatch, Data } = props; const { dispatch, Data } = props;
const formRef = useRef(null) const formRef = useRef(null);
const [resultTime, setResultTime] = useState(3); const [resultTime, setResultTime] = useState(3);
const backPage = () => { const backPage = () => {
history.go(-1) history.go(-1);
} };
return ( return (
<div style={{ width: "100%", minWidth: 1020, padding: 34, backgroundColor: "#ffffff" }}> <div style={{ width: '100%', minWidth: 1020, padding: 34, backgroundColor: '#ffffff' }}>
<Result <Result
status="error" status="error"
title="Error submit the file!" title="Error submit the file!"
subTitle={<p>server has been handled it ,please try again or back.</p>} subTitle={<p>server has been handled it ,please try again or back.</p>}
extra={[ extra={[
<Button type="primary" key="ok" ><a href={"http://47.74.233.180:8651/tos/excel/down?operator_id=" + getCookie("id")}>Download</a></Button>, <Button key="back" onClick={backPage}>Back</Button> <Button type="primary" key="ok">
{/* <a href={'http://47.74.233.180:8651/tos/excel/down?operator_id=' + getCookie('id')}>
Download
</a> */}
<a href={'http://192.168.1.28:8651/tos/excel/down?operator_id=' + getCookie('id')}>
Download
</a>
</Button>,
<Button key="back" onClick={backPage}>
Back
</Button>,
]} ]}
/> />
</div> </div>
...@@ -32,7 +41,7 @@ const ResultPageFailed = (props: any) => { ...@@ -32,7 +41,7 @@ const ResultPageFailed = (props: any) => {
}; };
function map(state: any) { function map(state: any) {
const { Data } = state[module] const { Data } = state[module];
return { Data } return { Data };
} }
export default connect(map)(ResultPageFailed); export default connect(map)(ResultPageFailed);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment