fix: 关于实体搜索的处理都移入parser.js,方便统一整理
This commit is contained in:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user