fix: 关于实体搜索的处理都移入parser.js,方便统一整理

This commit is contained in:
刘洪洪
2023-09-08 11:11:56 +08:00
parent b25d1d4619
commit f3cf542bef
5 changed files with 642 additions and 673 deletions

View File

@@ -168,9 +168,7 @@ import Loading from '@/components/common/Loading'
import {
overwriteUrl,
urlParamsHandler,
numberWithCommas,
comparedEntityKey,
handleEntityTypeByStr
numberWithCommas
} from '@/utils/tools'
import Parser from '@/components/advancedSearch/meta/parser'
import { handleErrorTip } from '@/components/advancedSearch/meta/error'
@@ -670,7 +668,7 @@ export default {
}
}
const parser = new Parser(columnList)
const keyInfo = comparedEntityKey(handleEntityTypeByStr(str))
const keyInfo = parser.comparedEntityKey(parser.handleEntityTypeByStr(str))
if (keyInfo.isKey) {
const errorList = parser.validateStr(keyInfo.key)
if (_.isEmpty(errorList)) {