king
2022-06-08 c6f8e27d35cd31bb6393a1e7f747b6b2593dbd7a
src/tabviews/custom/components/card/data-card/index.jsx
@@ -258,13 +258,9 @@
    if (config.uuid !== menuId) return
    if (supComs) {
      btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId)
      if (position === 'mainline' || position === 'popclose') { // 主表刷新,去除同步刷新组件
        let supNode = supNodes[supNodes.length - 1]
        supComs.forEach((item, i) => {
          if (item === btn.syncComponentId) return
          setTimeout(() => {
            if (supNode && supNode.key === item) {
              MKEmitter.emit('reloadData', item, supNode.value)
@@ -273,7 +269,7 @@
            }
          }, i * 10)
        })
      } else if (!btn.syncComponentId || !supComs.includes(btn.syncComponentId)) {
      } else {
        if (position === 'line') {
          if (lines && lines.length === 1) {
            this.loadLinedata(lines[0].$$uuid)
@@ -293,21 +289,14 @@
    } else {
      let supModule = config.setting.supModule
      btn.syncComponentId && MKEmitter.emit('reloadData', btn.syncComponentId)
      if (!btn.syncComponentId || btn.syncComponentId !== supModule) {
        if (position === 'line') {
          if (lines && lines.length === 1) {
            this.loadLinedata(lines[0].$$uuid)
          } else {
            this.loadData(id)
          }
        } else if (position === 'mainline' || position === 'popclose') { // 刷新源组件时,附带刷新上级行与当前组件
          if (supModule && BID) {
      } else if ((position === 'mainline' || position === 'popclose') && supModule && BID) { // 刷新源组件时,附带刷新上级行与当前组件
            MKEmitter.emit('reloadData', supModule, BID)
          } else {
            this.loadData(id)
          }
        } else if (!btn || btn.resetPageIndex !== 'false') {
          this.setState({
            pageIndex: 1
@@ -316,7 +305,6 @@
          })
        } else {
          this.loadData(id)
        }
      }
    }