king
2023-10-04 ae46c8e640ed64abd7605b289554377e0cdc0cb7
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -447,9 +447,7 @@
    const { btn } = this.props
    
    let imgCol = false
    let columns = btn.verify.columns.filter(col => {
      if (col.output === 'false') return false
    let columns = btn.verify.columns.map(col => {
      if (col.type === 'image') {
        imgCol = true
      }
@@ -464,6 +462,7 @@
    if (data && data[0]) {
      let errors = []
      columns.forEach(col => {
        if (col.output === 'false') return
        if (col.Column && data[0][col.Column] === undefined) {
          errors.push(col.Text)
        }
@@ -509,7 +508,13 @@
  
          columns.forEach((col, i) => {
            let val = item[col.Column]
            if (col.type === 'number' && typeof(val) === 'number') {
            if (col.output === 'false') {
              if (col.type === 'number') {
                val = 0
              } else {
                val = ''
              }
            } else if (col.type === 'number' && typeof(val) === 'number') {
              if (col.abs === 'true') {
                val = Math.abs(val)
              }
@@ -594,7 +599,13 @@
          columns.forEach((col, i) => {
            let val = item[col.Column]
            if (col.type === 'number' && typeof(val) === 'number') {
            if (col.output === 'false') {
              if (col.type === 'number') {
                val = 0
              } else {
                val = ''
              }
            } else if (col.type === 'number' && typeof(val) === 'number') {
              if (col.abs === 'true') {
                val = Math.abs(val)
              }
@@ -813,8 +824,11 @@
      _orderBy = btn.verify.order || ''
    } else {
      _setting = {...setting}
      _setting.$name = btn.logLabel
      _setting.laypage = pagination
      _setting.arr_field = _setting.all_field || _setting.arr_field
      delete _setting.sub_field
    }
    let primaryId = ''