king
2024-05-16 b69b5f6329ca5f87932436b7a6c1ddfc3377e10f
src/tabviews/custom/components/card/double-data-card/index.jsx
@@ -372,8 +372,8 @@
      } else {
        this.loadData(id)
      }
    } else if ((position === 'mainline' || position === 'popclose') && supModule && BID) { // 刷新源组件时,附带刷新上级行与当前组件
      MKEmitter.emit('reloadData', supModule, BID)
    } else if (['mainline', 'maingrid', 'popclose'].includes(position) && supModule) {
      MKEmitter.emit('reloadData', supModule, position === 'maingrid' ? '' : BID)
    } else if (!btn || btn.resetPageIndex !== 'false') {
      this.setState({
        pageIndex: 1
@@ -595,17 +595,8 @@
        total: 0,
        loading: false
      })
      if (selected !== 'false' || (id && config.wrap.selected !== 'false')) {
        setTimeout(() => {
          this.checkTopLine(id)
        }, 10)
        if (selected === 'init') {
          this.setState({selected: 'false'})
        }
      } else {
        MKEmitter.emit('resetSelectLine', config.uuid, '', '')
      }
      MKEmitter.emit('resetSelectLine', config.uuid, '', '')
      return
    }
@@ -1067,17 +1058,13 @@
    if (!menu) return
    menu.param = {}
    menu.param = {$BID: item.$$uuid || ''}
    if (card.setting.joint === 'true') {
      menu.param.$BID = item.$$uuid || ''
      Object.keys(item).forEach(key => {
        if (/^\$/.test(key)) return
        if (key === 'children') return
        menu.param[key] = item[key]
      })
    }
    Object.keys(item).forEach(key => {
      if (/^\$/.test(key)) return
      if (key === 'children') return
      menu.param[key] = item[key]
    })
    MKEmitter.emit('modifyTabs', menu, true)
  }