king
2023-01-13 930a74e9fb7bd74e7fb0875b13d16657c1163c58
src/utils/utils.js
@@ -1487,7 +1487,7 @@
  }
  // 添加数据中字段,表单值优先(按钮不选行或多行拼接时跳过)
  if (data && btn.Ot !== 'notRequired' && btn.Ot !== 'requiredOnce' && columns && columns.length > 0) {
  if (data && btn.Ot !== 'notRequired' && columns && columns.length > 0) {
    datavars = {...data, ...datavars}
    const setField = (col) => {
@@ -2046,13 +2046,12 @@
  
  } else if (_actionType === 'delete') {      // 物理删除
    let _msg = ''
    if (data && columns && columns.length > 0) {
    if (data && columns && columns.length > 0 && btn.Ot !== 'notRequired') {
      let _index = 0
      columns.forEach(col => {
        if (col.Hide !== 'true' && col.type !== 'colspan' && col.type !== 'old_colspan' && _index < 4) {
        if (!col.field || col.Hide === 'true' || _index >= 4) return
          _msg += col.label + '=' + data[col.field] + ','
          _index++
        }
      })
    }