king
2019-12-06 72194d09bc2eb9ab0b60bd000d98dc94c99ce82d
src/components/sidemenu/editthdmenu/index.jsx
@@ -52,6 +52,7 @@
    usedTemplates: null,
    menuConfig: '',
    tempSearchKey: '',
    loading: false,
    baseTemplates: [{
      title: '基础表格',
      type: 'CommonTable',
@@ -105,6 +106,11 @@
        func: 'sPC_Get_LongParam',
        MenuID: _menu.MenuID
      }
      this.setState({
        loading: true
      })
      Api.getSystemConfig(param).then(res => {
        if (res.status) {
          let _LongParam = res.LongParam && window.decodeURIComponent(window.atob(res.LongParam))
@@ -127,6 +133,7 @@
          this.setState({
            type: 'edit',
            editMenu: _menu,
            loading: false,
            tabview: _Template.length > 0 ? _menu.PageParam.Template : 'template'
          })
          if (_Template.length === 0) {
@@ -137,6 +144,9 @@
            })
          }
        } else {
          this.setState({
            loading: false
          })
          notification.warning({
            top: 92,
            message: res.message,
@@ -506,6 +516,7 @@
          {!this.state.thawmenulist && <Spin style={{marginLeft: 'calc(50% - 22px)', marginTop: '70px', marginBottom: '70px'}} size="large" />}
          {this.state.thawmenulist && <TransferForm ref="trawmenu" dict={this.state.dict} menulist={this.state.thawmenulist}/>}
        </Modal>
        {this.state.loading && <Spin style={{position: 'fixed', left: 'calc(50vw - 22px)', top: 'calc(50vh - 70px)'}} size="large" />}
      </div>
    )
  }