From 8d95d80fa697580dadca3a95280b3c9f9c0044db Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 27 一月 2022 21:24:41 +0800 Subject: [PATCH] 2022-01-27 --- src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx | 35 +++++++++++++++++++++++++++++------ 1 files changed, 29 insertions(+), 6 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx index 72cc3a2..dd5a7c2 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx @@ -49,16 +49,16 @@ min: 5, max: 200, editable: true, - width: '20%', + width: '14%', render: (text) => text || 20 }, { title: '绫诲瀷', dataIndex: 'type', - inputType: 'select', + inputType: 'radio', editable: true, required: false, - width: '20%', + width: '18%', render: (text) => { if (text === 'image') { return '鍥剧墖' @@ -74,12 +74,31 @@ { title: '鍙栫粷瀵瑰��', dataIndex: 'abs', - inputType: 'select', + inputType: 'radio', editable: true, required: false, - width: '20%', + width: '14%', render: (text) => { if (text === 'true') { + return '鏄�' + } else { + return '鍚�' + } + }, + options: [ + {value: 'true', text: '鏄�'}, + {value: 'false', text: '鍚�'} + ] + }, + { + title: '瀵煎嚭', + dataIndex: 'output', + inputType: 'radio', + editable: true, + required: false, + width: '14%', + render: (text) => { + if (text !== 'false') { return '鏄�' } else { return '鍚�' @@ -107,9 +126,10 @@ if (card.intertype !== 'system') { _verify.enable = 'false' } - if (_verify.columns[0] && !_verify.columns[0].type) { + if (_verify.columns[0] && (!_verify.columns[0].type || !_verify.columns[0].output)) { _verify.columns = _verify.columns.map(col => { col.type = col.type || 'text' + col.output = col.output || 'true' return col }) } @@ -192,6 +212,7 @@ } values.uuid = Utils.getuuid() values.abs = 'false' + values.output = 'true' verify.columns.push(values) this.setState({ @@ -398,6 +419,7 @@ Text: item.label, Width: 20, abs: 'false', + output: 'true', type: 'text', uuid: Utils.getuuid() }) @@ -437,6 +459,7 @@ Text: col.Text, Width: 20, abs: 'false', + output: 'true', type: 'text', } -- Gitblit v1.8.0