Commit dcd9575c by zhaochengxiang

资产目录屏蔽挂载位置

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