Commit 42349e81 by zhangleyuan

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

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