king
2022-09-06 bdfec44c9f3a37dbbe05bf14a252ffec04132a86
src/tabviews/subtabtable/index.jsx
@@ -160,6 +160,15 @@
        if (col.field) {
          _arrField.push(col.field)
          if (col.type === 'number') {
            col.decimal = col.decimal || 0
            col.round = Math.pow(10, col.decimal)
            if (col.format === 'percent') {
              col.decimal = col.decimal > 2 ? col.decimal - 2 : 0
            }
          }
          col.nameField && _arrField.push(col.nameField) // 链接名字段
          if (col.Hide !== 'true' && col.type === 'number' && col.sum === 'true') {
            statFields.push(col)
@@ -782,13 +791,13 @@
  /**
   * @description 导出Excel时,获取页面搜索排序等参数
   */
  queryModuleParam = (menuId, btnId) => {
  queryModuleParam = (menuId, callback) => {
    const { Tab, MenuID } = this.props
    const { arr_field, orderBy, search, setting} = this.state
    if (MenuID !== menuId) return
    MKEmitter.emit('returnModuleParam', MenuID, btnId, {
    callback({
      arr_field: arr_field,
      orderBy: orderBy || setting.order,
      search: search,