From bfadd84fbc2b23c59695e5a94778ab7ac40fea03 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 26 六月 2021 22:54:17 +0800 Subject: [PATCH] 2021-06-26 --- src/views/mobdesign/index.jsx | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/src/views/mobdesign/index.jsx b/src/views/mobdesign/index.jsx index 7465b84..fe87a8c 100644 --- a/src/views/mobdesign/index.jsx +++ b/src/views/mobdesign/index.jsx @@ -5,7 +5,7 @@ import { is, fromJS } from 'immutable' import moment from 'moment' import HTML5Backend from 'react-dnd-html5-backend' -import { ConfigProvider, notification, Modal, Collapse, Switch, Button, message, Spin } from 'antd' +import { ConfigProvider, notification, Modal, Collapse, Switch, Button, message, Spin, Icon } from 'antd' import Api from '@/api' import Utils, { setGLOBFuncs } from '@/utils/utils.js' @@ -66,6 +66,8 @@ visible: false, customComponents: [], direction: 'vertical', + settingshow: true, + controlshow: true, comloading: false } @@ -795,6 +797,7 @@ duration: 5 }) this.setState({ + settingshow: true, activeKey: 'basedata' }) return @@ -1458,7 +1461,7 @@ } render () { - const { localedict, comloading, loading, activeKey, dict, MenuId, config, menuloading, customComponents } = this.state + const { localedict, comloading, loading, settingshow, controlshow, activeKey, dict, MenuId, config, menuloading, customComponents } = this.state return ( <ConfigProvider locale={localedict}> @@ -1466,7 +1469,11 @@ <Header changeView={this.changeView}/> {loading ? <Spin className="view-spin" size="large" /> : null} <DndProvider backend={HTML5Backend}> - <div className="menu-setting"> + <div className={'menu-setting ' + (!settingshow ? 'hidden' : '')}> + <div className="draw"> + {settingshow ? <Icon onClick={() => {this.setState({settingshow: false})}} type="double-left" /> : null} + {!settingshow ? <Icon onClick={() => {this.setState({settingshow: true})}} type="double-right" /> : null} + </div> <div className="pc-setting-tools"> <Collapse accordion activeKey={activeKey} bordered={false} onChange={(key) => this.setState({activeKey: key})}> {/* 鍩烘湰淇℃伅 */} @@ -1495,7 +1502,11 @@ </Collapse> </div> </div> - <div className="menu-control"> + <div className={'menu-control ' + (!controlshow ? 'hidden' : '')}> + <div className="draw"> + {controlshow ? <Icon onClick={() => {this.setState({controlshow: false})}} type="double-right" /> : null} + {!controlshow ? <Icon onClick={() => {this.setState({controlshow: true})}} type="double-left" /> : null} + </div> <Button type="primary" onClick={this.submitConfig} loading={menuloading}>{dict['mob.save']}</Button> <Switch className="big" checkedChildren={dict['mob.enable']} unCheckedChildren={dict['mob.disable']} checked={config && config.enabled} onChange={this.onEnabledChange} /> <CreateView resetmenu={this.getAppMenus} /> -- Gitblit v1.8.0