king
2022-05-11 fe15ff1f9136ec964abdc8b8e3bad8466e215c3d
src/views/menudesign/index.jsx
@@ -4,6 +4,7 @@
import moment from 'moment'
import HTML5Backend from 'react-dnd-html5-backend'
import { ConfigProvider, notification, Modal, Collapse, Card, Switch, Button, Typography } from 'antd'
import { DoubleLeftOutlined, DoubleRightOutlined } from '@ant-design/icons'
import html2canvas from 'html2canvas'
import Api from '@/api'
@@ -72,7 +73,8 @@
    popBtn: null,             // 弹窗标签页
    visible: false,
    customComponents: [],
    comloading: false
    comloading: false,
    settingshow: !['linkage_navigation', 'linkage', 'menu_board', 'menu_board_navigation'].includes(window.GLOB.navBar)
  }
  UNSAFE_componentWillMount() {
@@ -397,7 +399,9 @@
          config = null
        }
        let _settingshow = this.state.settingshow
        if (!config) {
          _settingshow = true
          config = {
            version: 1.0,
            uuid: MenuId,
@@ -442,6 +446,7 @@
        window.GLOB.urlFields = config.urlFields || []
        this.setState({
          settingshow: _settingshow,
          oriConfig: config,
          config: fromJS(config).toJS()
        })
@@ -1089,7 +1094,7 @@
  }
  render () {
    const { activeKey, comloading, MenuType, popBtn, visible, dict, MenuId, config, ParentId, MenuName, MenuNo, menuloading, customComponents } = this.state
    const { activeKey, comloading, MenuType, popBtn, visible, dict, MenuId, config, settingshow, ParentId, MenuName, MenuNo, menuloading, customComponents } = this.state
    return (
      <ConfigProvider locale={_locale}>
@@ -1097,7 +1102,11 @@
          <Header />
          {!popBtn && !visible ? <DndProvider backend={HTML5Backend}>
            <div className="menu-body">
              <div className="menu-setting">
              <div className={'menu-setting ' + (!settingshow ? 'hidden' : '')}>
                <div className="draw">
                  {settingshow ? <DoubleLeftOutlined onClick={() => this.setState({settingshow: false})}/> : null}
                  {!settingshow ? <DoubleRightOutlined onClick={() => this.setState({settingshow: true})}/> : null}
                </div>
                <Collapse accordion activeKey={activeKey} bordered={false} onChange={(key) => this.setState({activeKey: key})}>
                  {/* 基本信息 */}
                  <Panel header={dict['mob.basemsg']} key="basedata">
@@ -1146,7 +1155,7 @@
              </div>
              <div className={'menu-view ' + (menuloading ? 'saving' : '')}>
                <Card title={
                  <div> {config && config.MenuName} </div>
                  <div style={{paddingLeft: '15px'}}> {config && config.MenuName} </div>
                } bordered={false} extra={
                  <div>
                    <Versions MenuId={MenuId} open_edition={config ? config.open_edition : ''}/>