Fastadmin导出设置只导出excle,屏蔽不需要的字段

exportTypes: ['excel'],

exportOptions: { ignoreColumn: [0, 'operate', 'avatar'] //默认不导出第一列(checkbox)与操作(operate)列 },

  

在require-table.js 中找到

exportOptions: {

  mso:{
    // fileFormat: 'xlsx',
    //修复导出数字不显示为科学计数法
      onMsoNumberFormat:function (cell, row, col) {
          return !isNaN($(cell) . text()) ? '\@' : '';
      }
  }
}

  

原文地址:https://www.cnblogs.com/sisl/p/14976015.html