king
2022-04-15 21d92eff0e23974d76e3e5a79ba50e3fc1c0b879
src/tabviews/custom/components/form/tab-form/index.jsx
@@ -70,10 +70,16 @@
    config.subcards = config.subcards.map(group => {
      group.subButton.uuid = group.uuid
      group.subButton.$menuId = group.uuid
      group.subButton.Ot = 'requiredSgl'
      group.subButton.Ot = config.wrap.datatype === 'static' ? 'notRequired' : 'requiredSgl'
      group.subButton.$forbid = true
      group.subButton.OpenType = 'formSubmit'
      group.subButton.execError = 'never'
      group.subButton.syncComponentId = group.subButton.syncComponent ? group.subButton.syncComponent.pop() : ''
      if (group.subButton.syncComponentId === config.uuid) {
        group.subButton.syncComponentId = ''
      }
      if (group.subButton.enable === 'false') {
        group.subButton.style.display = 'none'
@@ -111,7 +117,9 @@
      arr_field: config.columns.map(col => col.field).join(','),
    }, () => {
      if (config.wrap.datatype !== 'static' && config.setting && config.setting.sync !== 'true' && config.setting.onload === 'true') {
        this.loadData()
        setTimeout(() => {
          this.loadData()
        }, config.setting.delay || 0)
      }
    })
  }
@@ -182,16 +190,16 @@
    if (group.uuid !== menuId) return
    if (btn.syncComponentId && btn.syncComponentId !== config.uuid && btn.syncComponentId !== config.setting.supModule) {
      MKEmitter.emit('reloadData', btn.syncComponentId)                        // 同级标签刷新
    btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId)
    if (!btn.syncComponentId || btn.syncComponentId !== config.setting.supModule) {
      if (config.wrap.datatype !== 'static' && config.setting) {
        this.loadData()
      }
    }
    if (id) {
      MKEmitter.emit('resetSelectLine', config.uuid, id, '')
    }
    if (config.wrap.datatype !== 'static' && config.setting) {
      this.loadData()
    }
    this.execSuccess(btn, id)