From 592ff0aa0f2d45d143872b672a1468e268d3157f Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期六, 22 二月 2020 17:25:20 +0800 Subject: [PATCH] 2020-02-22 --- src/utils/utils.js | 16 +++++++++------- 1 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index 6de456a..ba0e8e1 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -1021,7 +1021,6 @@ config.search.forEach(item => { if (item.field) { let type = '' - let _f = item.field if (item.type.match(/date/ig)) { type = 'datetime=null' @@ -1029,12 +1028,15 @@ type = 'nvarchar(50)=\'\'' } - if (_fields.has(item.field)) { - _f = _f + '1' - } - - _fields.set(item.field, true) - formParam = formParam + `mchr13k@${_f} ${type},` + item.field.split(',').forEach(cell => { + let _f = cell + if (_fields.has(cell)) { + _f = _f + '1' + } + + _fields.set(cell, true) + formParam = formParam + `mchr13k@${_f} ${type},` + }) } }) } -- Gitblit v1.8.0