| | |
| | | |
| | | let appIndeList = sessionStorage.getItem('appViewList') |
| | | appIndeList = JSON.parse(appIndeList) |
| | | appIndeList = appIndeList.map(item => (item.keys_type !== 'index' ? item.keys_id : '')).join(',') |
| | | appIndeList = appIndeList.map(item => (item.keys_type === 'navbar' ? item.keys_id : '')).join(',') |
| | | |
| | | if (sessionStorage.getItem('userbind')) { |
| | | appIndeList = appIndeList + ',' + sessionStorage.getItem('userbind') |
| | | } |
| | | // if (sessionStorage.getItem('userbind')) { |
| | | // appIndeList = appIndeList + ',' + sessionStorage.getItem('userbind') |
| | | // } |
| | | if (sessionStorage.getItem('instantMessage')) { |
| | | appIndeList = appIndeList + ',' + sessionStorage.getItem('instantMessage') |
| | | } |
| | |
| | | let menus = res.menus.filter(item => appIndeList.indexOf(item.MenuID) === -1) |
| | | menus = menus.map(item => { |
| | | item.value = item.MenuID |
| | | item.label = item.MenuName |
| | | if (item.MenuNo) { |
| | | item.label = item.MenuName + '(' + item.MenuNo + ')' |
| | | } else { |
| | | item.label = item.MenuName |
| | | } |
| | | return item |
| | | }) |
| | | sessionStorage.setItem('appMenus', JSON.stringify(menus)) |
| | |
| | | needUpdate: false |
| | | }) |
| | | |
| | | localStorage.setItem('mobUpdate', new Date().getTime() + ',' + config.uuid) |
| | | |
| | | notification.success({ |
| | | top: 92, |
| | | message: '保存成功', |
| | |
| | | {/* 表名添加 */} |
| | | {config ? <TableComponent config={config} updatetable={this.updateConfig}/> : null} |
| | | {config ? <Paragraph style={{padding: '15px 0px 0px 18px'}} copyable={{ text: MenuId }}>菜单ID</Paragraph> : null} |
| | | {config ? <Paragraph style={{padding: '10px 0px 0px 18px'}} copyable={{ text: `${window.GLOB.baseurl}mob/index.html#/index/${sessionStorage.getItem('kei_no')}/${sessionStorage.getItem('typename')}/${sessionStorage.getItem('lang')}/${MenuId}/@BID@` }}>菜单链接</Paragraph> : null} |
| | | </Panel> |
| | | {/* 组件添加 */} |
| | | <Panel header="组件" className="component" key="component"> |