Commit 42349e81 by zhangleyuan

feat:修改新建文件夹下面的提示

parent 274f9160
...@@ -53,16 +53,17 @@ class OperateArea extends React.Component { ...@@ -53,16 +53,17 @@ class OperateArea extends React.Component {
// 显示创建文件夹弹窗 // 显示创建文件夹弹窗
handleToggleCreateFolderModal = async () => { handleToggleCreateFolderModal = async () => {
const { instId } = window.currentUserInstInfo; // const { instId } = window.currentUserInstInfo;
const ultimateRes = await Service.Business('public/inst/checkInstProduct', { // const ultimateRes = await Service.Business('public/inst/checkInstProduct', {
instId, // instId,
productCodeList: ['ULTIMATESELL', 'PIP_TO_ULTIMATE', 'HIGH_TO_ULTIMATE'] // productCodeList: ['ULTIMATESELL', 'PIP_TO_ULTIMATE', 'HIGH_TO_ULTIMATE']
}); // });
// 校验余额,旗舰版用户不需要校验余额 // // 校验余额,旗舰版用户不需要校验余额
if (this.props.balance <= 0 && !ultimateRes.result) { // if (this.props.balance <= 0 && !ultimateRes.result) {
this.handleShowNoticeModal(); // this.handleShowNoticeModal();
return; // return;
} // }
// 判断当前目录是否在第10层,如果是的话提示最多只能创建10层文件夹 // 判断当前目录是否在第10层,如果是的话提示最多只能创建10层文件夹
const { folderPathList } = this.props; const { folderPathList } = this.props;
......
...@@ -73,8 +73,9 @@ class CreateFolderModal extends React.Component { ...@@ -73,8 +73,9 @@ class CreateFolderModal extends React.Component {
const { folderName, warnText, validate } = this.state; const { folderName, warnText, validate } = this.state;
const { isOpen, title = '新建文件夹', folderPathList } = this.props; const { isOpen, title = '新建文件夹', folderPathList } = this.props;
let showTip = null; let showTip = null;
console.log('folderPathList',folderPathList)
if (folderPathList) { if (folderPathList) {
showTip = folderPathList.length < 2 ? true : false; showTip = folderPathList.length === 1 ? true : false;
} else { } else {
showTip = true; showTip = true;
} }
...@@ -94,12 +95,6 @@ class CreateFolderModal extends React.Component { ...@@ -94,12 +95,6 @@ class CreateFolderModal extends React.Component {
help={ !validate && warnText} help={ !validate && warnText}
validateStatus={!validate ? 'error' : null} validateStatus={!validate ? 'error' : null}
> >
{
this.props.disk === 'COMMON' && window.NewVersion && showTip &&
<div className="show-tip">
<ShowTips message="创建后仅自己可以查看,如需其他成员查看请设置权限" />
</div>
}
<Input <Input
value={folderName} value={folderName}
placeholder="请输入文件夹名称" placeholder="请输入文件夹名称"
...@@ -110,7 +105,9 @@ class CreateFolderModal extends React.Component { ...@@ -110,7 +105,9 @@ class CreateFolderModal extends React.Component {
/> />
</Form.Item> </Form.Item>
</Form> </Form>
<div className="create-tip">创建后仅自己可查看,如需其他成员查看请设置权限</div> { this.props.disk === 'COMMON' && showTip &&
<div className="create-tip">创建后仅自己可查看,如需其他成员查看请设置权限</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