Commit c034db0a by wufan

feat:modal加点击蒙层不关闭属性

parent ce2f8a60
...@@ -289,6 +289,7 @@ class ChooseMembersModal extends React.Component { ...@@ -289,6 +289,7 @@ class ChooseMembersModal extends React.Component {
onOk={this.addMember} onOk={this.addMember}
title={title} title={title}
width={560} width={560}
maskClosable={false}
> >
<div className='choose-container'> <div className='choose-container'>
{/* 拥有文件夹权限的成员列表 */} {/* 拥有文件夹权限的成员列表 */}
......
...@@ -242,6 +242,7 @@ class CopyFileModal extends React.Component { ...@@ -242,6 +242,7 @@ class CopyFileModal extends React.Component {
title={title} title={title}
width={560} width={560}
onCancel={this.handleClose} onCancel={this.handleClose}
maskClosable={false}
footer={[ footer={[
<Button key="back" onClick={this.handleClose}> <Button key="back" onClick={this.handleClose}>
取消 取消
......
...@@ -292,6 +292,7 @@ class ManagingMembersModal extends React.Component { ...@@ -292,6 +292,7 @@ class ManagingMembersModal extends React.Component {
onCancel={this.handleClose} onCancel={this.handleClose}
title={title} title={title}
width={560} width={560}
maskClosable={false}
> >
<div className='managing-header'> <div className='managing-header'>
<div className='managing-left'> <div className='managing-left'>
......
...@@ -30,6 +30,7 @@ class NonCompliantFileModal extends React.Component { ...@@ -30,6 +30,7 @@ class NonCompliantFileModal extends React.Component {
cancelText="放弃上传" cancelText="放弃上传"
onCancel={this.props.onClose} onCancel={this.props.onClose}
onOk={this.props.onOk} onOk={this.props.onOk}
maskClosable={false}
className="prepare-lesson__non-compliant-file-modal" className="prepare-lesson__non-compliant-file-modal"
> >
<div className="file-list"> <div className="file-list">
......
/* /*
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-07-23 14:54:16 * @Date: 2020-07-23 14:54:16
* @LastEditors: 吴文洁 * @LastEditors: wufan
* @LastEditTime: 2020-08-24 13:05:09 * @LastEditTime: 2020-12-22 20:29:39
* @Description: 大班直播课预览弹窗 * @Description: 大班直播课预览弹窗
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -80,6 +80,7 @@ class PreviewCourseModal extends React.Component { ...@@ -80,6 +80,7 @@ class PreviewCourseModal extends React.Component {
width={680} width={680}
onCancel={this.props.close} onCancel={this.props.close}
footer={null} footer={null}
maskClosable={false}
className="preview-live-course-modal" className="preview-live-course-modal"
> >
<div className="container__wrap"> <div className="container__wrap">
......
...@@ -106,6 +106,7 @@ class ShareLiveModal extends React.Component { ...@@ -106,6 +106,7 @@ class ShareLiveModal extends React.Component {
width={680} width={680}
visible={true} visible={true}
footer={null} footer={null}
maskClosable={false}
className="share-live-modal" className="share-live-modal"
onCancel={this.props.close} onCancel={this.props.close}
> >
......
...@@ -100,6 +100,7 @@ const CropperModal = (props: CropperModalProps) => { ...@@ -100,6 +100,7 @@ const CropperModal = (props: CropperModalProps) => {
width={600} width={600}
title={title || '设置头像'} title={title || '设置头像'}
visible={true} visible={true}
maskClosable={false}
footer={[ footer={[
<Button <Button
id='cancel_avatar_btn' id='cancel_avatar_btn'
...@@ -110,7 +111,6 @@ const CropperModal = (props: CropperModalProps) => { ...@@ -110,7 +111,6 @@ const CropperModal = (props: CropperModalProps) => {
确定 确定
</Button>, </Button>,
]} ]}
maskClosable={false}
onCancel={close}> onCancel={close}>
<Row> <Row>
<Col span={14}> <Col span={14}>
......
...@@ -42,6 +42,7 @@ class DownloadLiveModal extends React.Component { ...@@ -42,6 +42,7 @@ class DownloadLiveModal extends React.Component {
const { image, tip, text, type } = this.state; const { image, tip, text, type } = this.state;
return <Modal return <Modal
visible={true} visible={true}
maskClosable={false}
title="下载客户端" title="下载客户端"
className="download-live-modal" className="download-live-modal"
footer={null} footer={null}
......
...@@ -116,6 +116,7 @@ class ImgCutModal extends React.Component { ...@@ -116,6 +116,7 @@ class ImgCutModal extends React.Component {
width={width} width={width}
visible={visible} visible={visible}
onCancel={onClose} onCancel={onClose}
maskClosable={false}
footer={[ footer={[
<Choose> <Choose>
<When condition={!needReUpload}> <When condition={!needReUpload}>
......
...@@ -144,6 +144,7 @@ class ImgCutModalNew extends React.Component { ...@@ -144,6 +144,7 @@ class ImgCutModalNew extends React.Component {
width={width} width={width}
visible={visible} visible={visible}
onCancel={onClose} onCancel={onClose}
maskClosable={false}
footer={[ footer={[
!needReUpload ? !needReUpload ?
<Button <Button
......
...@@ -288,6 +288,7 @@ class AddLiveBasic extends React.Component { ...@@ -288,6 +288,7 @@ class AddLiveBasic extends React.Component {
title="设置图片" title="设置图片"
width={1080} width={1080}
visible={visible} visible={visible}
maskClosable={false}
onCancel={() => { onCancel={() => {
this.setState({ visible: false }); this.setState({ visible: false });
}} }}
......
...@@ -54,6 +54,7 @@ class AbnormalModal extends React.Component { ...@@ -54,6 +54,7 @@ class AbnormalModal extends React.Component {
visible={true} visible={true}
footer={null} footer={null}
onCancel={onClose} onCancel={onClose}
maskClosable={false}
className="abnormal-modal" className="abnormal-modal"
> >
{ content } { content }
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: 云课堂充值 * @Description: 云课堂充值
* @Author: zhangyi * @Author: zhangyi
* @Date: 2020-05-09 15:02:39 * @Date: 2020-05-09 15:02:39
* @LastEditors: zhangleyuan * @LastEditors: wufan
* @LastEditTime: 2020-12-09 16:55:25 * @LastEditTime: 2020-12-22 20:30:26
*/ */
import React from 'react'; import React from 'react';
import { Modal, message, Form, InputNumber, Row, Col, Button } from "antd"; import { Modal, message, Form, InputNumber, Row, Col, Button } from "antd";
...@@ -286,6 +286,7 @@ class AccountChargeModal extends React.Component { ...@@ -286,6 +286,7 @@ class AccountChargeModal extends React.Component {
visible={true} visible={true}
width={550} width={550}
footer={null} footer={null}
maskClosable={false}
className="account-charge-modal" className="account-charge-modal"
onCancel={() => { onCancel={() => {
this.handleCancel(); this.handleCancel();
......
...@@ -78,6 +78,7 @@ class AccountChargeRecords extends React.Component{ ...@@ -78,6 +78,7 @@ class AccountChargeRecords extends React.Component{
visible={true} visible={true}
width={680} width={680}
footer={null} footer={null}
maskClosable={false}
onCancel={() => { onCancel={() => {
this.props.close(); this.props.close();
}} }}
......
...@@ -46,6 +46,7 @@ class ChargeArgeement extends React.Component { ...@@ -46,6 +46,7 @@ class ChargeArgeement extends React.Component {
width={800} width={800}
className="charge-agreement-modal" className="charge-agreement-modal"
footer={null} footer={null}
maskClosable={false}
onCancel={() => { onCancel={() => {
this.props.close(); this.props.close();
}} }}
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: 计费说明 * @Description: 计费说明
* @Author: zhangyi * @Author: zhangyi
* @Date: 2020-05-09 15:21:22 * @Date: 2020-05-09 15:21:22
* @LastEditors: zhangleyuan * @LastEditors: wufan
* @LastEditTime: 2020-12-11 14:01:32 * @LastEditTime: 2020-12-22 20:30:54
*/ */
import React from 'react' import React from 'react'
import { Modal, Button, Table } from "antd"; import { Modal, Button, Table } from "antd";
...@@ -30,6 +30,7 @@ function ChargeExplainModal(props) { ...@@ -30,6 +30,7 @@ function ChargeExplainModal(props) {
visible={true} visible={true}
className="charge-explain-modal" className="charge-explain-modal"
width={880} width={880}
maskClosable={false}
onCancel={() => { onCancel={() => {
props.close(); props.close();
}} }}
......
...@@ -106,6 +106,7 @@ class ChargingDetailModal extends React.Component { ...@@ -106,6 +106,7 @@ class ChargingDetailModal extends React.Component {
title="计费人数详情" title="计费人数详情"
visible={true} visible={true}
width={680} width={680}
maskClosable={false}
className="charging-detail-modal" className="charging-detail-modal"
footer={null} footer={null}
onCancel={() => { onCancel={() => {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
* @Description: 直播开始上课之前对余额的校验 * @Description: 直播开始上课之前对余额的校验
* @Author: zhangyi * @Author: zhangyi
* @Date: 2020-05-18 13:47:42 * @Date: 2020-05-18 13:47:42
* @LastEditors: zhangleyuan * @LastEditors: wufan
* @LastEditTime: 2020-12-09 16:36:33 * @LastEditTime: 2020-12-22 20:31:04
*/ */
import React from 'react'; import React from 'react';
import { Modal, Button } from "antd"; import { Modal, Button } from "antd";
...@@ -46,6 +46,7 @@ class CheckBalanceModal extends React.Component { ...@@ -46,6 +46,7 @@ class CheckBalanceModal extends React.Component {
footer={null} footer={null}
width={550} width={550}
title="余额不足" title="余额不足"
maskClosable={false}
onCancel={() => { onCancel={() => {
this.props.close(); this.props.close();
}} }}
......
...@@ -234,6 +234,7 @@ class ClassRecordModal extends React.Component { ...@@ -234,6 +234,7 @@ class ClassRecordModal extends React.Component {
visible={true} visible={true}
footer={null} footer={null}
width={680} width={680}
maskClosable={false}
className="class-record-modal" className="class-record-modal"
onCancel={() => { onCancel={() => {
this.props.close(); this.props.close();
......
...@@ -23,6 +23,7 @@ class LackConsumeStudentModal extends React.Component { ...@@ -23,6 +23,7 @@ class LackConsumeStudentModal extends React.Component {
visible={true} visible={true}
okText="继续保存" okText="继续保存"
onOk={onOk} onOk={onOk}
maskClosable={false}
onCancel={onClose} onCancel={onClose}
className="lack-consume-student-modal" className="lack-consume-student-modal"
> >
......
...@@ -288,6 +288,7 @@ class LiveStudentListModal extends React.Component { ...@@ -288,6 +288,7 @@ class LiveStudentListModal extends React.Component {
visible={true} visible={true}
width={680} width={680}
footer={null} footer={null}
maskClosable={false}
className="live-student-list-modal" className="live-student-list-modal"
onCancel={this.props.close} onCancel={this.props.close}
> >
......
...@@ -342,12 +342,12 @@ class ManageCoursewareModal extends React.Component { ...@@ -342,12 +342,12 @@ class ManageCoursewareModal extends React.Component {
visible={true} visible={true}
title="课件管理" title="课件管理"
footer={null} footer={null}
maskClosable={false}
className="manage-courseware-modal" className="manage-courseware-modal"
width={_.isEmpty(_list) ? 680 : 800} width={_.isEmpty(_list) ? 680 : 800}
onCancel={() => { onCancel={() => {
this.props.onCancel() this.props.onCancel()
}} }}
maskClosable={false}
> >
{_.isEmpty(_list) ? {_.isEmpty(_list) ?
<div className="empty-body"> <div className="empty-body">
......
...@@ -178,6 +178,7 @@ class PlayBackRecordModal extends React.Component { ...@@ -178,6 +178,7 @@ class PlayBackRecordModal extends React.Component {
className="play-back-modal" className="play-back-modal"
width={680} width={680}
visible={true} visible={true}
maskClosable={false}
footer={null} footer={null}
onCancel={() => { onCancel={() => {
this.props.close(); this.props.close();
......
/* /*
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-07-23 14:54:16 * @Date: 2020-07-23 14:54:16
* @LastEditors: zhangleyuan * @LastEditors: wufan
* @LastEditTime: 2020-12-11 14:04:08 * @LastEditTime: 2020-12-22 20:31:31
* @Description: 大班直播课预览弹窗 * @Description: 大班直播课预览弹窗
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -79,6 +79,7 @@ class PreviewCourseModal extends React.Component { ...@@ -79,6 +79,7 @@ class PreviewCourseModal extends React.Component {
width={680} width={680}
onCancel={this.props.close} onCancel={this.props.close}
footer={null} footer={null}
maskClosable={false}
className="preview-live-course-modal" className="preview-live-course-modal"
> >
<div className="container__wrap"> <div className="container__wrap">
......
...@@ -101,6 +101,7 @@ class ShareLiveModal extends React.Component { ...@@ -101,6 +101,7 @@ class ShareLiveModal extends React.Component {
width={680} width={680}
visible={true} visible={true}
footer={null} footer={null}
maskClosable={false}
className="share-live-modal" className="share-live-modal"
onCancel={this.props.close} onCancel={this.props.close}
> >
......
...@@ -75,6 +75,7 @@ class StartLiveModal extends React.Component { ...@@ -75,6 +75,7 @@ class StartLiveModal extends React.Component {
visible={true} visible={true}
width={550} width={550}
footer={null} footer={null}
maskClosable={false}
onCancel={this.props.close} onCancel={this.props.close}
> >
<div className="live-start-modal"> <div className="live-start-modal">
......
...@@ -45,6 +45,7 @@ class TeacherLiveModal extends React.Component { ...@@ -45,6 +45,7 @@ class TeacherLiveModal extends React.Component {
width={740} width={740}
onCancel={this.props.close} onCancel={this.props.close}
footer={null} footer={null}
maskClosable={false}
> >
<TeacherTip isXiaomai={isXiaomai} /> <TeacherTip isXiaomai={isXiaomai} />
</Modal> </Modal>
......
/* /*
* @Author: 吴文洁 * @Author: 吴文洁
* @Date: 2020-08-07 16:23:27 * @Date: 2020-08-07 16:23:27
* @LastEditors: 吴文洁 * @LastEditors: wufan
* @LastEditTime: 2020-09-27 19:33:20 * @LastEditTime: 2020-12-22 20:31:52
* @Description: 选择学员组件 * @Description: 选择学员组件
* @Copyright: 杭州杰竞科技有限公司 版权所有 * @Copyright: 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -376,6 +376,7 @@ class SelectStudent extends React.Component { ...@@ -376,6 +376,7 @@ class SelectStudent extends React.Component {
visible={true} visible={true}
width={720} width={720}
onCancel={this.props.close} onCancel={this.props.close}
maskClosable={false}
className="livecourse__select-student-modal" className="livecourse__select-student-modal"
onOk={this.handleSelectDone} onOk={this.handleSelectDone}
> >
......
...@@ -113,9 +113,9 @@ function ChangePhoneModal(props: changePhoneModalProps) { ...@@ -113,9 +113,9 @@ function ChangePhoneModal(props: changePhoneModalProps) {
visible={true} visible={true}
title="更换手机号" title="更换手机号"
width={448} width={448}
maskClosable={false}
onCancel={onClose} onCancel={onClose}
className="change-phone-modal" className="change-phone-modal"
maskClosable={false}
footer={[ footer={[
<Button <Button
id='cancel_allot_btn' id='cancel_allot_btn'
......
...@@ -88,6 +88,7 @@ function IdentificationModal(props: IdentificationModalProps) { ...@@ -88,6 +88,7 @@ function IdentificationModal(props: IdentificationModalProps) {
title="身份验证" title="身份验证"
width={448} width={448}
onCancel={onClose} onCancel={onClose}
maskClosable={false}
className="identification-modal" className="identification-modal"
footer={[ footer={[
<Button <Button
...@@ -103,7 +104,6 @@ function IdentificationModal(props: IdentificationModalProps) { ...@@ -103,7 +104,6 @@ function IdentificationModal(props: IdentificationModalProps) {
确认 确认
</Button> </Button>
]} ]}
maskClosable={false}
> >
<div className="desc">为了你的账户安全,请验证身份。验证成功后进行下一步操作</div> <div className="desc">为了你的账户安全,请验证身份。验证成功后进行下一步操作</div>
......
...@@ -78,6 +78,7 @@ class CreateFolderModal extends React.Component { ...@@ -78,6 +78,7 @@ class CreateFolderModal extends React.Component {
visible={isOpen} visible={isOpen}
onCancel={this.handleCancel} onCancel={this.handleCancel}
onOk={this.handleOk} onOk={this.handleOk}
maskClosable={false}
width={448} width={448}
className="create-folder-modal" className="create-folder-modal"
> >
......
...@@ -28,6 +28,7 @@ class NonCompliantFileModal extends React.Component { ...@@ -28,6 +28,7 @@ class NonCompliantFileModal extends React.Component {
visible={isOpen} visible={isOpen}
okText="继续上传" okText="继续上传"
cancelText="放弃上传" cancelText="放弃上传"
maskClosable={false}
onCancel={this.props.onClose} onCancel={this.props.onClose}
onOk={this.props.onOk} onOk={this.props.onOk}
className="prepare-lesson__non-compliant-file-modal" className="prepare-lesson__non-compliant-file-modal"
......
...@@ -25,6 +25,7 @@ class ScanFileModal extends React.Component { ...@@ -25,6 +25,7 @@ class ScanFileModal extends React.Component {
footer={null} footer={null}
width={680} width={680}
className="scan-file-modal" className="scan-file-modal"
maskClosable={false}
> >
<div className="scan-file-modal" style={{ width: 632 }}> <div className="scan-file-modal" style={{ width: 632 }}>
{(fileType === "JPG" || fileType === 'PNG') && ( {(fileType === "JPG" || fileType === 'PNG') && (
......
...@@ -567,6 +567,7 @@ class SelectPrepareFileModal extends React.Component { ...@@ -567,6 +567,7 @@ class SelectPrepareFileModal extends React.Component {
title={title} title={title}
footer={footer} footer={footer}
width={560} width={560}
maskClosable={false}
onCancel={this.handleClose} onCancel={this.handleClose}
className="select-prepare-file-modal" className="select-prepare-file-modal"
> >
......
...@@ -146,6 +146,10 @@ class FolderList extends React.Component { ...@@ -146,6 +146,10 @@ class FolderList extends React.Component {
id: folder.id, id: folder.id,
folderName: folder.folderName folderName: folder.folderName
}); });
console.log("folder.rights---",folder.rights);
this.setState({
parentRights: folder.rights,
})
this.props.onChangeFolderPath(folderPathList); this.props.onChangeFolderPath(folderPathList);
this.props.onRefresh({ this.props.onRefresh({
parentId: folder.id, parentId: folder.id,
......
...@@ -85,6 +85,7 @@ class CreateFolderModal extends React.Component { ...@@ -85,6 +85,7 @@ class CreateFolderModal extends React.Component {
onCancel={this.handleCancel} onCancel={this.handleCancel}
onOk={this.handleOk} onOk={this.handleOk}
width={448} width={448}
maskClosable={false}
className="create-folder-modal" className="create-folder-modal"
> >
<Form> <Form>
......
...@@ -23,6 +23,7 @@ class ScanFileModal extends React.Component { ...@@ -23,6 +23,7 @@ class ScanFileModal extends React.Component {
title="查看文件" title="查看文件"
footer={null} footer={null}
width={680} width={680}
maskClosable={false}
className="scan-file-modal" className="scan-file-modal"
> >
<div className="scan-file-modal" style={{ width: 632 }}> <div className="scan-file-modal" style={{ width: 632 }}>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-22 13:48:59 * @LastEditTime: 2020-12-22 20:32:53
* @Description: web店铺banner页面 * @Description: web店铺banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -385,6 +385,7 @@ class StoreWebDecoration extends React.Component { ...@@ -385,6 +385,7 @@ class StoreWebDecoration extends React.Component {
onCancel={() => { onCancel={() => {
this.setState({ visible: false }); this.setState({ visible: false });
}} }}
maskClosable={false}
footer={[ footer={[
<Button <Button
key="back" key="back"
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: wufan * @Author: wufan
* @Date: 2020-11-30 10:47:38 * @Date: 2020-11-30 10:47:38
* @LastEditors: wufan * @LastEditors: wufan
* @LastEditTime: 2020-12-22 13:49:20 * @LastEditTime: 2020-12-22 20:29:02
* @Description: web店铺banner页面 * @Description: web店铺banner页面
* @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有 * @@Copyrigh: © 2020 杭州杰竞科技有限公司 版权所有
*/ */
...@@ -242,6 +242,7 @@ class StoreWebDecoration extends React.Component { ...@@ -242,6 +242,7 @@ class StoreWebDecoration extends React.Component {
}, },
fail: (failInfo) => { fail: (failInfo) => {
console.log("failInfo-----", failInfo); console.log("failInfo-----", failInfo);
message.error("图片上传失败了,请重新上传");
}, },
loadComplete: (img) => { loadComplete: (img) => {
this.refs.headPicModal.click(); this.refs.headPicModal.click();
...@@ -287,6 +288,7 @@ class StoreWebDecoration extends React.Component { ...@@ -287,6 +288,7 @@ class StoreWebDecoration extends React.Component {
StoreService.editStoreBanner(params).then((res) => { StoreService.editStoreBanner(params).then((res) => {
message.success("设置成功"); message.success("设置成功");
this.getStoreDecorationList(); this.getStoreDecorationList();
this.state.photoclip.clear();
}); });
}; };
...@@ -301,6 +303,7 @@ class StoreWebDecoration extends React.Component { ...@@ -301,6 +303,7 @@ class StoreWebDecoration extends React.Component {
this.getStoreDecorationList(); this.getStoreDecorationList();
}); });
}; };
addStoreBanner = () => { addStoreBanner = () => {
const { previewUrl, addBannerPath } = this.state; const { previewUrl, addBannerPath } = this.state;
const params = { const params = {
...@@ -311,6 +314,7 @@ class StoreWebDecoration extends React.Component { ...@@ -311,6 +314,7 @@ class StoreWebDecoration extends React.Component {
StoreService.addStoreBanner(params).then((res) => { StoreService.addStoreBanner(params).then((res) => {
message.success("设置成功"); message.success("设置成功");
this.getStoreDecorationList(); this.getStoreDecorationList();
this.state.photoclip.clear();
}); });
}; };
...@@ -394,6 +398,7 @@ class StoreWebDecoration extends React.Component { ...@@ -394,6 +398,7 @@ class StoreWebDecoration extends React.Component {
onCancel={() => { onCancel={() => {
this.setState({ visible: false }); this.setState({ visible: false });
}} }}
maskClosable={false}
footer={[ footer={[
<Button <Button
key="back" key="back"
......
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