导出EXCEL过滤字段

 //导出
      exportBeforeClick() {
        var map = {}
        var columns = traTableColumns(this.$refs.tab.columns.filter(column => column.label === '客户编码' || column.label === '客户名称' || column.label === '项目编码' || column.label === '项目名称'))
        map['dataList'] = this.exportList
        map['name'] = this.$route.meta.title
        map['columns'] = columns
        return map
      },
posted @ 2024-10-11 13:01  skystrivegao  阅读(0)  评论(0编辑  收藏  举报