forked from github/dataease
Merge pull request #7699 from dataease/pr@dev-v2@fixds
feat: 数据源、数据集过滤是区分大小写
This commit is contained in:
commit
fa4b8663f6
@ -455,7 +455,7 @@ watch(nickName, (val: string) => {
|
|||||||
|
|
||||||
const filterNode = (value: string, data: BusiTreeNode) => {
|
const filterNode = (value: string, data: BusiTreeNode) => {
|
||||||
if (!value) return true
|
if (!value) return true
|
||||||
return data.name?.toLocaleLowerCase().includes(value.toLocaleLowerCase())
|
return data.name?.includes(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
const getMenuList = (val: boolean) => {
|
const getMenuList = (val: boolean) => {
|
||||||
|
@ -2,6 +2,12 @@ import { useI18n } from '@/hooks/web/useI18n'
|
|||||||
const { t } = useI18n()
|
const { t } = useI18n()
|
||||||
|
|
||||||
export const dsTypes = [
|
export const dsTypes = [
|
||||||
|
{
|
||||||
|
type: 'db2',
|
||||||
|
name: 'Db2',
|
||||||
|
catalog: 'OLTP',
|
||||||
|
extraParams: ''
|
||||||
|
},
|
||||||
{
|
{
|
||||||
type: 'mysql',
|
type: 'mysql',
|
||||||
name: 'MySQL',
|
name: 'MySQL',
|
||||||
|
@ -535,7 +535,7 @@ const nodeCollapse = data => {
|
|||||||
|
|
||||||
const filterNode = (value: string, data: BusiTreeNode) => {
|
const filterNode = (value: string, data: BusiTreeNode) => {
|
||||||
if (!value) return true
|
if (!value) return true
|
||||||
return data.name?.toLocaleLowerCase().includes(value.toLocaleLowerCase())
|
return data.name?.includes(value)
|
||||||
}
|
}
|
||||||
|
|
||||||
const editDatasource = (editType?: number) => {
|
const editDatasource = (editType?: number) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user