king
2023-08-27 da64ab0923bf8817fc8599a6e37b953ce38f64c8
src/menu/transfer/index.jsx
@@ -29,6 +29,22 @@
    const _this = this
    if (!config.enabled) {
      let tb = config.components[0]
      if (config.components.length === 1 && tb.setting.interType === 'system' && !tb.setting.dataresource) {
        confirm({
          title: '当前页面将清空,确定切换为自定义页面吗?',
          content: '',
          onOk() {
            return new Promise(resolve => {
              _this.execUpdate(resolve, true)
            })
          },
          onCancel() {}
        })
        return
      }
      notification.warning({
        top: 92,
        message: '未启用菜单不可升级!',
@@ -49,7 +65,7 @@
    })
  }
  execUpdate = (_resolve) => {
  execUpdate = (_resolve, clear) => {
    let _config = fromJS(this.props.config).toJS()
    _config.permission = 'true'
    _config.Template = 'CustomPage'
@@ -59,6 +75,10 @@
    delete _config.autoMatic
    let useMSearch = false
    if (clear) {
      _config.components = []
    } else {
    _config.components.forEach((item, i) => {
      if (item.type === 'tabs') {
        item.name = '标签组' + i
@@ -123,6 +143,7 @@
        })
      }
    })
    }
    if (useMSearch) {
      let cell = {
@@ -140,6 +161,7 @@
      cell.wrap.advanceWidth = _config.components[0].wrap.advanceWidth || 1000
      cell.wrap.searchLwidth = _config.components[0].wrap.searchLwidth || 33.3
      cell.wrap.searchRatio = _config.components[0].wrap.searchRatio || 6
      cell.wrap.resetContrl = _config.components[0].wrap.resetContrl || 'init'
      cell.wrap.show = _config.components[0].wrap.show || 'true'
      
      if (cell.wrap.advanceType === 'drawer') {
@@ -224,7 +246,7 @@
    param.timestamp = moment().format('YYYY-MM-DD HH:mm:ss')
    param.secretkey = Utils.encrypt(param.LText, param.timestamp)
    Api.getSystemConfig(param).then(res => {
    Api.getCloudConfig(param).then(res => {
      _resolve()
      if (!res.status) {
        Modal.warning({