From 8e8e82cfcc77cc43b5d087e7c1c7bb24795dcf89 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 27 九月 2024 12:09:38 +0800 Subject: [PATCH] 2024-09-27 --- src/utils/utils.js | 23 ++++++++++++++++++++--- 1 files changed, 20 insertions(+), 3 deletions(-) diff --git a/src/utils/utils.js b/src/utils/utils.js index d63640a..47394e2 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -416,7 +416,11 @@ item.$first = true } } - + + if (window.backend && ['select', 'link', 'multiselect', 'checkcard', 'radio'].includes(item.type) && item.resourceType === '1') { + item.uuid = md5(config.uuid + item.uuid) + } + item.oriInitval = item.initval if (values) { @@ -714,6 +718,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 +847,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 +860,10 @@ } }) + searchText.forEach(item => { + item.match = matchs[item.match] || '01' + }) + return searchText } -- Gitblit v1.8.0