From 3d4bc79a80eb9cff0f8ef7c53f9685c9ff9fbd2d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 02 九月 2021 23:17:36 +0800 Subject: [PATCH] 2021-09-02 --- src/templates/sharecomponent/fieldscomponent/index.jsx | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/templates/sharecomponent/fieldscomponent/index.jsx b/src/templates/sharecomponent/fieldscomponent/index.jsx index b2337f8..8f2a184 100644 --- a/src/templates/sharecomponent/fieldscomponent/index.jsx +++ b/src/templates/sharecomponent/fieldscomponent/index.jsx @@ -217,12 +217,13 @@ let _columns = [...columnsMap.values()] _columns.forEach(item => { + let _t = item.$datatype || (item.type === 'number' ? 'Decimal(18,0)' : 'Nvarchar(50)') if (item.selected) { let newcard = { uuid: Utils.getuuid(), label: item.label, field: item.field, - datatype: item.type === 'number' ? 'Decimal(18,0)' : 'Nvarchar(50)' + datatype: _t } items.push(newcard) -- Gitblit v1.8.0