king
2022-01-27 8d95d80fa697580dadca3a95280b3c9f9c0044db
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -478,11 +478,13 @@
  exportExcel = (data) => {
    const { btn } = this.props
    
    let columns = btn.verify.columns.filter(col => col.output !== 'false')
    try {
      let imgCol = btn.verify.columns.filter(col => col.type === 'image')[0]
      let imgCol = columns.filter(col => col.type === 'image')[0]
      if (imgCol) {
        const column = btn.verify.columns.map(item => {
        const column = columns.map(item => {
          let col = {
            title: item.Text, 
            key: item.Column,
@@ -503,7 +505,7 @@
  
          item.$Index = index + 1 + ''
  
          btn.verify.columns.forEach((col, i) => {
          columns.forEach((col, i) => {
            if (item[col.Column] && col.abs === 'true') {
              _row[col.Column] = Math.abs(item[col.Column])
            } else {
@@ -528,7 +530,7 @@
        let colwidth = []
        let abses = []
  
        btn.verify.columns.forEach(col => {
        columns.forEach(col => {
          if (_topRow[col.Column]) return
  
          _header.push(col.Column)