From c5b925431860e7d4194bfe550e86866b11e4f7a4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 31 八月 2023 11:40:42 +0800 Subject: [PATCH] Merge branch 'positec' into dms --- src/views/pcdesign/index.jsx | 29 ++++++++++++++--------------- 1 files changed, 14 insertions(+), 15 deletions(-) diff --git a/src/views/pcdesign/index.jsx b/src/views/pcdesign/index.jsx index 79bb8c8..9a139f7 100644 --- a/src/views/pcdesign/index.jsx +++ b/src/views/pcdesign/index.jsx @@ -52,8 +52,6 @@ sessionStorage.setItem('typename', 'pc') document.body.className = '' -const memberLevel = Utils.getMemberLevel() - class MenuDesign extends Component { state = { loading: true, @@ -87,7 +85,7 @@ return } - if (memberLevel < 30) return + if (window.GLOB.memberLevel < 30) return sessionStorage.setItem('editMenuType', 'menu') // 缂栬緫鑿滃崟绫诲瀷 @@ -137,7 +135,7 @@ componentDidMount () { if (!sessionStorage.getItem('UserID')) return - if (memberLevel < 30) { + if (window.GLOB.memberLevel < 30) { document.getElementById('mk-pc-design-view').innerHTML = '<div style="text-align: center; font-size: 30px; margin-top: 40vh; height: 100vh; background: #fff;">鏈簲鐢ㄦ病鏈塒C绔〉闈㈢殑缂栬緫鏉冮檺锛岃鑱旂郴绠$悊鍛橈紒</div>' return } @@ -1691,17 +1689,18 @@ <Collapse accordion activeKey={activeKey} bordered={false} onChange={(key) => this.setState({activeKey: key})}> {/* 鍩烘湰淇℃伅 */} <Panel header="鍩烘湰淇℃伅" key="basedata"> - {/* 鑿滃崟淇℃伅 */} - {config ? <MenuForm - config={config} - MenuId={MenuId} - updateConfig={this.updateConfig} - /> : null} - {config ? <UrlFieldComponent config={config} updateConfig={this.updateConfig}/> : null} - {/* 琛ㄥ悕娣诲姞 */} - {config ? <TableComponent config={config} updatetable={this.updateConfig}/> : null} - {config ? <Paragraph style={{padding: '15px 0px 0px 18px'}} copyable={{ text: MenuId }}>鑿滃崟ID</Paragraph> : null} - {config ? <NormalCss config={config} updateConfig={this.updateConfig}/> : null} + {config ? <> + <MenuForm + config={config} + MenuId={MenuId} + updateConfig={this.updateConfig} + /> + <UrlFieldComponent config={config} updateConfig={this.updateConfig}/> + {/* 琛ㄥ悕娣诲姞 */} + <TableComponent config={config} updatetable={this.updateConfig}/> + <Paragraph style={{padding: '15px 0px 0px 18px'}} copyable={{ text: MenuId }}>鑿滃崟ID</Paragraph> + <NormalCss config={config} updateConfig={this.updateConfig}/> + </> : null} </Panel> {/* 缁勪欢娣诲姞 */} <Panel header="缁勪欢" key="component"> -- Gitblit v1.8.0