src/tabviews/zshare/actionList/exceloutbutton/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/tabviews/zshare/actionList/exceloutbutton/index.jsx
@@ -448,8 +448,6 @@ let imgCol = false let columns = btn.verify.columns.filter(col => { if (col.output === 'false') return false 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) } src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx
@@ -85,7 +85,9 @@ editable: true, required: false, width: '12%', render: (text) => { render: (text, record) => { if (record.type !== 'number') return '' if (text === 'true') { return '是' } else { @@ -105,7 +107,8 @@ max: 18, editable: true, required: false, width: '12%' width: '12%', render: (text, record) => record.type === 'number' ? text : '' }, { title: '导出', @@ -233,6 +236,13 @@ } } if (col.type !== 'number') { col.decimal = '' col.abs = 'false' } else { col.abs = col.abs || 'false' } return col })