king
2021-08-17 76766991b5e2fd5c7e85fdb1c8323f4dbacb4eb3
src/utils/utils.js
@@ -826,6 +826,11 @@
  // 控制台打印数据
  let conLtext = []
  let cols = ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
  for (let i = 0; i < 26; i++) {
    cols.push('A' + cols[i])
  }
  let _Ltext = data.map((item, lindex) => {
    let vals = []
    let convals = []
@@ -833,7 +838,8 @@
      if (col.import === 'false') return
      let val = item[col.Column] !== undefined ? item[col.Column] : ''
      let _position = (_topline + lindex + 1) + dict['main.excel.line'] + ' ' + (cindex + 1) + dict['main.excel.column']  + ' '
      let _colindex = cols[cindex] || (cindex + 1)
      let _position = (_topline + lindex + 1) + dict['main.excel.line'] + ' ' + _colindex + dict['main.excel.column']  + ' '
      if (/^Nvarchar/ig.test(col.type)) {
        if (typeof(val) === 'number') {
@@ -1181,6 +1187,10 @@
      if (!_initvars.includes(_key)) {
        let _val = datavars.hasOwnProperty(_key) ? datavars[_key] : ''
        if (col.datatype && /^date/ig.test(col.datatype) && !_val) {
          _val = '1900-01-01'
        }
        _initvars.push(_key)
        _initColfields.push(`@${_key}='${_val}'`)
@@ -1805,7 +1815,6 @@
      }
    }
  }
}
/**