From bb47f06e3c5eaf568aaecf870736787373ce73aa Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 18 六月 2021 13:28:11 +0800 Subject: [PATCH] 2021-06-18 --- 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