From 43aefe24c17cbbf33a3fd756a861116b43190ccf Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期日, 15 九月 2024 22:55:46 +0800 Subject: [PATCH] 2024-09-15 --- src/utils/utils.js | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index d63640a..48c79b6 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -714,6 +714,15 @@ static getSearchkeys (searches) { let searchText = [] + let matchs = { + 'like': '01', + 'not like': '02', + '=': '03', + '>': '04', + '<': '05', + '>=': '06', + '<=': '07', + } searches.forEach(item => { if (item.forbid || !item.value) return @@ -834,12 +843,12 @@ searchText.push({ key: item.key, match: '>=', - type: 'number', + type: 'text', value: val[0] || -999999999 }, { key: item.key, match: '<=', - type: 'number', + type: 'text', value: val[1] || 999999999 }) } else { @@ -847,6 +856,10 @@ } }) + searchText.forEach(item => { + item.match = matchs[item.match] || '01' + }) + return searchText } -- Gitblit v1.8.0