提交 17a69839 authored 作者: junjie's avatar junjie

fix:数据源分组名称保持统一

上级 5514c2e7
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
if (!(element.type in types)) { if (!(element.type in types)) {
types[element.type] = [] types[element.type] = []
// newArr.push(...element, ...{ children: types[element.type] }) // newArr.push(...element, ...{ children: types[element.type] })
newArr.push({ id: element.type, name: element.type, type: 'folder', children: types[element.type] }) newArr.push({ id: element.type, name: this.transTypeToName(element.type), type: 'folder', children: types[element.type] })
} }
types[element.type].push(element) types[element.type].push(element)
// newArr.children.push({ id: element.id, label: element.name }) // newArr.children.push({ id: element.id, label: element.name })
...@@ -149,6 +149,14 @@ export default { ...@@ -149,6 +149,14 @@ export default {
return newArr return newArr
}, },
transTypeToName(type) {
if (type === 'mysql') {
return 'MySQL'
} else if (type === 'sqlServer') {
return 'SQL Server'
}
},
addFolder() { addFolder() {
this.switchMain('DsForm') this.switchMain('DsForm')
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论