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()) ? '\\@' : '';
      }
  }
}

  

 

posted @ 2021-07-06 11:13  U丶Zero  阅读(1586)  评论(0编辑  收藏  举报