Merge pull request #7699 from dataease/pr@dev-v2@fixds

feat: 数据源、数据集过滤是区分大小写
This commit is contained in:
taojinlong 2024-01-18 16:56:20 +08:00 committed by GitHub
commit fa4b8663f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 2 deletions

View File

@ -455,7 +455,7 @@ watch(nickName, (val: string) => {
const filterNode = (value: string, data: BusiTreeNode) => {
if (!value) return true
return data.name?.toLocaleLowerCase().includes(value.toLocaleLowerCase())
return data.name?.includes(value)
}
const getMenuList = (val: boolean) => {

View File

@ -2,6 +2,12 @@ import { useI18n } from '@/hooks/web/useI18n'
const { t } = useI18n()
export const dsTypes = [
{
type: 'db2',
name: 'Db2',
catalog: 'OLTP',
extraParams: ''
},
{
type: 'mysql',
name: 'MySQL',

View File

@ -535,7 +535,7 @@ const nodeCollapse = data => {
const filterNode = (value: string, data: BusiTreeNode) => {
if (!value) return true
return data.name?.toLocaleLowerCase().includes(value.toLocaleLowerCase())
return data.name?.includes(value)
}
const editDatasource = (editType?: number) => {