CN-1248: 新增实体左侧Top过滤条件

This commit is contained in:
刘洪洪
2023-08-22 10:34:18 +08:00
parent 6267851a2d
commit 8d15c0ff62
5 changed files with 96 additions and 21 deletions

View File

@@ -73,9 +73,8 @@ const columnList1 = [
}
]
let schemaEntityExplore = localStorage.getItem(storageKey.schemaEntityExplore)
// todo enityMetadata字段后续可能会改
schemaEntityExplore = schemaEntityExplore ? JSON.parse(schemaEntityExplore).enityMetadata : columnList1
export const columnList = schemaEntityExplore
schemaEntityExplore = schemaEntityExplore ? JSON.parse(schemaEntityExplore).entityMetadata.searchColumns : columnList1
const columnList = schemaEntityExplore
export const tableSort = {
// 是否需要排序
@@ -1489,7 +1488,7 @@ export const handleEntityTypeByStr = (str) => {
} else if (reg.test(str)) {
return `Domain LIKE '%${str}'`
} else {
return `App LIKE '%${str}'%`
return `App LIKE '%${str}%'`
}
}
}