Commit 35835eae by zhaochengxiang

字段导入模版

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