From 2d58a3ea2ab0ae0f148ba176240b3ccba933222a Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 20 十二月 2023 17:28:30 +0800 Subject: [PATCH] 2023-12-20 --- src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx b/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx index 7b073fc..aa4e7b5 100644 --- a/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx +++ b/src/templates/sharecomponent/actioncomponent/verifyexcelin/index.jsx @@ -59,6 +59,7 @@ width: '15%', editable: true, inputType: 'select', + keyCol: true, options: [ { value: 'Nvarchar(10)', text: 'Nvarchar(10)' }, { value: 'Nvarchar(20)', text: 'Nvarchar(20)' }, @@ -114,7 +115,10 @@ required: false, inputType: 'number', unlimit: true, - editable: true + editable: true, + keyVals: ['Int', 'Decimal(18,0)', 'Decimal(18,2)', 'Decimal(18,4)', 'Decimal(18,6)'], + render: (text, record) => /^Decimal/ig.test(record.type) || /^int/ig.test(record.type) ? text : '' + }, { title: '鏈�澶у��', @@ -123,7 +127,9 @@ required: false, inputType: 'number', unlimit: true, - editable: true + editable: true, + keyVals: ['Int', 'Decimal(18,0)', 'Decimal(18,2)', 'Decimal(18,4)', 'Decimal(18,6)'], + render: (text, record) => /^Decimal/ig.test(record.type) || /^int/ig.test(record.type) ? text : '' } ], uniqueColumns: [ -- Gitblit v1.8.0