king
2025-01-27 2b639156302123d4490f03ec02385c4750d1fa11
src/menu/components/share/actioncomponent/actionform/index.jsx
@@ -226,9 +226,14 @@
      if (Ot === 'required') {
        shows.push('progress')
      }
      if (Ot === 'required' && (intertype === 'inner' || intertype === 'system')) {
        shows.push('execType')
        if (intertype === 'inner' || intertype === 'system') {
          shows.push('execType')
          if (this.record.execType === 'single') {
            shows.push('execInterval')
          }
        } else {
          shows.push('execInterval')
        }
      }
      if (this.record.openmenu && this.record.openmenu !== 'goback') {
        shows.push('open')
@@ -251,7 +256,7 @@
      if (openType === 'pop') {
        shows.push('extBtn')
        if (this.record.extBtn === 'true') {
          shows.push('extLabel', 'extValue')
          shows.push('extLabel', 'extStyle', 'confLabel', 'confStyle', 'extValue')
        }
      }
    } else if (openType === 'form') {
@@ -495,6 +500,9 @@
        shows.push('execSuccess', 'execError', 'tipTitle')
      } else if (_funcType === 'mkUnsubscribe' || _funcType === 'reAuth') {
        shows.push('tipTitle')
      } else if (_funcType === 'reSystem') {
        shows.push('tipTitle', 'Ot')
        reOptions.Ot = requireOptions.filter(op => op.value === 'requiredSgl')
      } else if (_funcType === 'closetab') {
        shows.push('refreshTab')
      } else if (_funcType === 'scan') {
@@ -616,6 +624,10 @@
      if (['pop', 'prompt', 'exec', 'popview', 'tab', 'innerpage'].includes(openType)) {
        shows.push('showName')
      }
    }
    if (shows.includes('refreshTab') && this.record.refreshTab && this.record.refreshTab.length) {
      shows.push('urlPar')
    }
    return {
@@ -741,6 +753,10 @@
            _fieldval.color = 'primary'
          }
        }
        this.record.resetPageIndex = 'false'
        if ([this.record.execSuccess, this.record.execError].includes('grid')) {
          _fieldval.resetPageIndex = 'false'
        }
      } else if (value === 'audit') {
        _fieldval.label = '审核'
        _fieldval.Ot = 'required'
@@ -756,6 +772,10 @@
          _fieldval.class = 'danger'
        } else {
          _fieldval.color = 'danger'
        }
        this.record.resetPageIndex = 'true'
        if ([this.record.execSuccess, this.record.execError].includes('grid')) {
          _fieldval.resetPageIndex = 'true'
        }
      } else if (value === 'custom') {
        _fieldval.Ot = 'required'
@@ -1272,6 +1292,19 @@
            delete values.extraParam
          }
          if (values.refreshTab && values.refreshTab.length && ['pop', 'prompt', 'exec'].includes(values.OpenType) && window.GLOB.customMenu) {
            let id = values.refreshTab[values.refreshTab.length - 1]
            if (id === window.GLOB.customMenu.uuid) {
              if (values.execSuccess !== 'never' || (values.syncComponent && values.syncComponent.length)) {
                notification.warning({
                  top: 92,
                  message: '按钮刷新菜单为当前菜单时,成功后的组件刷新(或关闭标签)将失效!',
                  duration: 5
                })
              }
            }
          }
          resolve(values)
        } else {
          reject(err)