diff options
| author | 刘洪洪 <[email protected]> | 2024-05-09 17:32:16 +0800 |
|---|---|---|
| committer | 陈劲松 <[email protected]> | 2024-05-11 06:49:38 +0000 |
| commit | 740e7bbae66ea130e095000199d43f8379cb98f1 (patch) | |
| tree | 29faef9bd25bf3de247d28a148bd8cb5285b585f | |
| parent | f020fe33b5fae13de4292d4fde3128a3c2cbae78 (diff) | |
fix: 修复entity的搜索测试用例报错的问题
(cherry picked from commit 3513a9c14583d73addd06fe29b140ce1a1d60dbb)
| -rw-r--r-- | src/components/advancedSearch/meta/parser.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/advancedSearch/meta/parser.js b/src/components/advancedSearch/meta/parser.js index f43359a9..78d89da2 100644 --- a/src/components/advancedSearch/meta/parser.js +++ b/src/components/advancedSearch/meta/parser.js @@ -1203,7 +1203,7 @@ export default class Parser { return { key: '[' + key + ']', isKey: false } } } else if (lowerQ.indexOf(' in ') > -1) { - const key = q.substring(0, q.indexOf(' in ')) + const key = lowerQ.substring(0, lowerQ.indexOf(' in ')) const obj = this.columnList.find(t => t.label.toLowerCase() === key.toLowerCase()) if (obj) { return { key: obj.label + q.substring(lowerQ.indexOf(' in '), q.length), isKey: true } |
