From 8d475da89346bdddc967ac610b8d460ce9964a30 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 03 十月 2022 23:14:35 +0800 Subject: [PATCH] 2022-10-03 --- src/views/menudesign/index.jsx | 36 ++++-------------------------------- 1 files changed, 4 insertions(+), 32 deletions(-) diff --git a/src/views/menudesign/index.jsx b/src/views/menudesign/index.jsx index d0a1225..790b5af 100644 --- a/src/views/menudesign/index.jsx +++ b/src/views/menudesign/index.jsx @@ -40,6 +40,7 @@ const StyleController = asyncComponent(() => import('@/menu/stylecontroller')) const ReplaceField = asyncComponent(() => import('@/menu/replaceField')) const Versions = asyncComponent(() => import('@/menu/versions')) +const TableNodes = asyncComponent(() => import('@/menu/tablenodes')) const SysInterface = asyncComponent(() => import('@/menu/sysinterface')) const UrlFieldComponent = asyncComponent(() => import('@/menu/urlfieldcomponent')) const PictureController = asyncComponent(() => import('@/menu/picturecontroller')) @@ -109,7 +110,6 @@ componentDidMount () { MKEmitter.addListener('delButtons', this.delButtons) MKEmitter.addListener('modalStatus', this.modalStatus) - // MKEmitter.addListener('thawButtons', this.thawButtons) MKEmitter.addListener('copyButtons', this.copyButtons) MKEmitter.addListener('changePopview', this.initPopview) MKEmitter.addListener('triggerMenuSave', this.triggerMenuSave) @@ -180,7 +180,6 @@ } MKEmitter.removeListener('delButtons', this.delButtons) MKEmitter.removeListener('modalStatus', this.modalStatus) - // MKEmitter.removeListener('thawButtons', this.thawButtons) MKEmitter.removeListener('copyButtons', this.copyButtons) MKEmitter.removeListener('changePopview', this.initPopview) MKEmitter.removeListener('triggerMenuSave', this.triggerMenuSave) @@ -356,10 +355,6 @@ copyButtons = (items) => { this.setState({copyButtons: [...this.state.copyButtons, ...items]}) } - - // thawButtons = (item) => { - // this.setState({thawButtons: [...this.state.thawButtons, item]}) - // } initPopview = (card, btn) => { const { oriConfig, config } = this.state @@ -757,28 +752,6 @@ } return Api.getSystemConfig(_param) } - // }).then(res => { // 鎸夐挳瑙i櫎鍐荤粨 - // if (!res) return - // if (!res.status) { - // notification.warning({ - // top: 92, - // message: res.message, - // duration: 5 - // }) - // return false - // } - - // let ids = thawButtons.filter(item => btnIds.indexOf(item) !== -1) - // if (ids.length === 0) { - // return { - // status: true - // } - // } else { - // return Api.getSystemConfig({ - // func: 'sPC_MainMenu_ReDel', - // MenuID: ids.join(',') - // }) - // } }).then(res => { // 椤甸潰淇濆瓨 if (!res) return @@ -1159,12 +1132,11 @@ </Collapse> </div> <div className={'menu-view' + (menuloading ? ' saving' : '') + (eyeopen ? ' eye-open' : '')}> - <Card title={ - <div style={{paddingLeft: '15px'}}> {config && config.MenuName} </div> - } bordered={false} extra={ - <div> + <Card title={config ? config.MenuName : ''} bordered={false} extra={ + <div className="mk-opeartion-list"> <Button className="mk-border-purple" onClick={() => this.setState({eyeopen: !eyeopen})}>{!eyeopen ? <EyeOutlined /> : <EyeInvisibleOutlined />} 缁勪欢鍚�</Button> <Versions MenuId={MenuId} open_edition={config ? config.open_edition : ''}/> + <TableNodes config={config} /> <ReplaceField type="custom" config={config} updateConfig={this.resetConfig}/> <SysInterface config={config} updateConfig={this.updateConfig}/> <PictureController/> -- Gitblit v1.8.0