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
@@ -1058,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)
  }