Commit dcd9575c by zhaochengxiang

资产目录屏蔽挂载位置

parent db0f971a
......@@ -51,23 +51,28 @@ const ImportDirectory = (props) => {
setUploading(true);
let payload;
if (row.type === 'root') {
payload = {
let payload = {
params: {
ignoreRepeatPath
},
fileList: fileList,
};
} else {
payload = {
params: {
ignoreRepeatPath,
parentPath: dir.path
},
fileList: fileList
};
}
};;
// if (row.type === 'root') {
// payload = {
// params: {
// ignoreRepeatPath
// },
// fileList: fileList,
// };
// } else {
// payload = {
// params: {
// ignoreRepeatPath,
// parentPath: dir.path
// },
// fileList: fileList
// };
// }
dispatch({
type: 'assetmanage.directoryImport',
......@@ -150,7 +155,7 @@ const ImportDirectory = (props) => {
}
>
<Form {...formItemLayout} form={form}>
<Form.Item
{/* <Form.Item
label="挂载位置"
name="type"
rules={[{ required: true, message: '必填项'}]}
......@@ -159,7 +164,7 @@ const ImportDirectory = (props) => {
<Radio value='root' >根节点导入</Radio>
<Radio value='self' disabled={ dirId===null }>选中节点导入</Radio>
</Radio.Group>
</Form.Item>
</Form.Item> */}
<Form.Item
label="文件"
name="file"
......
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