From f9730906ff42d4d2a57a999050dd10b17fe9ee53 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 07 三月 2024 21:05:55 +0800 Subject: [PATCH] 2024-03-07 --- src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx | 30 +++++++++++++++++++++++++++--- 1 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx index 11c9431..21d53fe 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelout/index.jsx @@ -68,7 +68,7 @@ editable: true, required: false, keyCol: true, - width: '12%', + width: '8%', render: (text) => { if (text === 'image') { return '鍥剧墖' @@ -90,7 +90,7 @@ inputType: 'radio', editable: true, required: false, - width: '12%', + width: '10%', render: (text) => { if (text !== 'false') { return '鏄�' @@ -122,11 +122,33 @@ editable: true, required: false, keyVals: ['number'], - width: '12%', + width: '10%', render: (text, record) => { if (record.type !== 'number') return '' if (text === 'true') { + return '鏄�' + } else { + return '鍚�' + } + }, + options: [ + {value: 'true', text: '鏄�'}, + {value: 'false', text: '鍚�'} + ] + }, + { + title: '0鍊煎鍑�', + dataIndex: 'noValue', + inputType: 'radio', + editable: true, + required: false, + keyVals: ['number'], + width: '10%', + render: (text, record) => { + if (record.type !== 'number') return '' + + if (text !== 'false') { return '鏄�' } else { return '鍚�' @@ -235,6 +257,7 @@ col.type = col.type || 'text' col.output = col.output || 'true' col.required = col.required || 'false' + col.noValue = col.noValue || 'true' if (!['text', 'image', 'number'].includes(col.type)) { if (/^Decimal/ig.test(col.type)) { @@ -779,6 +802,7 @@ col.type = col.type || 'text' col.output = col.output || 'true' col.required = col.required || 'false' + col.noValue = col.noValue || 'true' col.Width = col.Width || 20 if (!['text', 'image', 'number'].includes(col.type)) { -- Gitblit v1.8.0