Commit 35835eae by zhaochengxiang

字段导入模版

parent dd7361c5
...@@ -12,6 +12,10 @@ const FC = (props) => { ...@@ -12,6 +12,10 @@ const FC = (props) => {
const [ confirmLoading, setConfirmLoading ] = useState(false); const [ confirmLoading, setConfirmLoading ] = useState(false);
const app = useContext(AppContext); const app = useContext(AppContext);
const downloadTemplate = () => {
window.open("/data-govern/docs/BusinessColumn.xlsx");
}
const uploadProps = { const uploadProps = {
onRemove: file => { onRemove: file => {
...@@ -69,11 +73,18 @@ const FC = (props) => { ...@@ -69,11 +73,18 @@ const FC = (props) => {
}} }}
onOk={handleOk} onOk={handleOk}
> >
<div>
<Button icon={<DownloadOutlined />} onClick={ downloadTemplate }>
模版下载
</Button>
</div>
<div className='mt-3'>
<Upload {...uploadProps}> <Upload {...uploadProps}>
<Button icon={<UploadOutlined />}> <Button icon={<UploadOutlined />}>
选择文件上传 选择文件上传
</Button> </Button>
</Upload> </Upload>
</div>
</Modal> </Modal>
) )
} }
......
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