king
2022-09-06 bdfec44c9f3a37dbbe05bf14a252ffec04132a86
src/tabviews/custom/components/table/edit-table/index.jsx
@@ -18,7 +18,6 @@
class EditableTable extends Component {
  static propTpyes = {
    BID: PropTypes.any,              // 父级Id
    config: PropTypes.object,        // 组件配置信息
    mainSearch: PropTypes.any,       // 外层搜索条件
  }
@@ -48,11 +47,22 @@
   * 1、 initdata 为打印时使用的数据集
   */
  UNSAFE_componentWillMount () {
    const { BID, BData } = this.props
    let _config = fromJS(this.props.config).toJS()
    let _cols = new Map()
    let setting = {..._config.setting, ..._config.wrap}
    setting.tableId = Utils.getuuid()
    let BID = ''
    let BData = ''
    if (_config.setting.supModule) {
      BData = window.GLOB.CacheData.get(_config.setting.supModule)
    } else {
      BData = window.GLOB.CacheData.get(_config.$pageId)
    }
    if (BData) {
      BID = BData.$BID || ''
    }
    _config.submit.style = _config.submit.style || {}
    _config.submit.wrapStyle = {}
@@ -457,7 +467,7 @@
  /**
   * @description 导出Excel时,获取页面搜索排序等参数
   */
  queryModuleParam = (menuId, btnId) => {
  queryModuleParam = (menuId, callback) => {
    const { mainSearch } = this.props
    const { arr_field, config, orderBy, search, setting} = this.state
@@ -473,7 +483,7 @@
      })
    }
    MKEmitter.emit('returnModuleParam', config.uuid, btnId, {
    callback({
      arr_field: arr_field,
      orderBy: orderBy || setting.order,
      search: searches,