mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 03:52:59 +08:00
fix: 【数据源】数据源校验通过保存后提示无法链接
This commit is contained in:
parent
1b636717e0
commit
616f6efb36
@ -919,25 +919,29 @@ const handleClick = (tabName: TabPaneName) => {
|
||||
switch (tabName) {
|
||||
case 'config':
|
||||
tableData.value = []
|
||||
listDatasourceTables({ datasourceId: nodeInfo.id }).then(res => {
|
||||
tabList.value = res.data.map(ele => {
|
||||
const { name, tableName } = ele
|
||||
return {
|
||||
value: name,
|
||||
label: tableName
|
||||
}
|
||||
})
|
||||
if (!!tabList.value.length && !activeTab.value) {
|
||||
activeTab.value = tabList.value[0].value
|
||||
if (nodeInfo.type === 'Excel') {
|
||||
if (nodeInfo.type === 'Excel') {
|
||||
listDatasourceTables({ datasourceId: nodeInfo.id }).then(res => {
|
||||
tabList.value = res.data.map(ele => {
|
||||
const { name, tableName } = ele
|
||||
return {
|
||||
value: name,
|
||||
label: tableName
|
||||
}
|
||||
})
|
||||
if (!!tabList.value.length && !activeTab.value) {
|
||||
activeTab.value = tabList.value[0].value
|
||||
handleTabClick(activeTab)
|
||||
}
|
||||
}
|
||||
tableData.value = res.data
|
||||
})
|
||||
tableData.value = res.data
|
||||
})
|
||||
}
|
||||
break
|
||||
case 'table':
|
||||
initSearch()
|
||||
tableData.value = []
|
||||
listDatasourceTables({ datasourceId: nodeInfo.id }).then(res => {
|
||||
tableData.value = res.data
|
||||
initSearch()
|
||||
})
|
||||
break
|
||||
default:
|
||||
break
|
||||
|
Loading…
Reference in New Issue
Block a user