forked from github/dataease
fix:【数据源】数据源列表缺少状态显示
This commit is contained in:
parent
a965640597
commit
b565414c0d
@ -1155,8 +1155,11 @@ public class DatasourceServer implements DatasourceApi {
|
|||||||
if (!Arrays.asList("API", "Excel", "folder").contains(coreDatasource.getType())) {
|
if (!Arrays.asList("API", "Excel", "folder").contains(coreDatasource.getType())) {
|
||||||
calciteProvider.updateDsPoolAfterCheckStatus(datasourceDTO);
|
calciteProvider.updateDsPoolAfterCheckStatus(datasourceDTO);
|
||||||
}
|
}
|
||||||
|
} catch (DEException e) {
|
||||||
|
datasourceDTO.setStatus("Error");
|
||||||
|
DEException.throwException(e.getMessage());
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
coreDatasource.setStatus("Error");
|
datasourceDTO.setStatus("Error");
|
||||||
DEException.throwException(e.getMessage());
|
DEException.throwException(e.getMessage());
|
||||||
} finally {
|
} finally {
|
||||||
coreDatasource.setStatus(datasourceDTO.getStatus());
|
coreDatasource.setStatus(datasourceDTO.getStatus());
|
||||||
|
@ -380,7 +380,6 @@ const initSearch = () => {
|
|||||||
state.filterTable = tableData.value.filter(ele =>
|
state.filterTable = tableData.value.filter(ele =>
|
||||||
ele.tableName.toLowerCase().includes(nickName.value.toLowerCase())
|
ele.tableName.toLowerCase().includes(nickName.value.toLowerCase())
|
||||||
)
|
)
|
||||||
console.log(tableData.value)
|
|
||||||
state.paginationConfig.total = state.filterTable.length
|
state.paginationConfig.total = state.filterTable.length
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -867,7 +866,6 @@ const operation = (cmd: string, data: Tree, nodeType: string) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const handleClick = (tabName: TabPaneName) => {
|
const handleClick = (tabName: TabPaneName) => {
|
||||||
console.log(tabName)
|
|
||||||
switch (tabName) {
|
switch (tabName) {
|
||||||
case 'config':
|
case 'config':
|
||||||
listDatasourceTables({ datasourceId: nodeInfo.id }).then(res => {
|
listDatasourceTables({ datasourceId: nodeInfo.id }).then(res => {
|
||||||
@ -1091,8 +1089,22 @@ const getMenuList = (val: boolean) => {
|
|||||||
:title="node.label"
|
:title="node.label"
|
||||||
class="label-tooltip ellipsis"
|
class="label-tooltip ellipsis"
|
||||||
:class="data.type === 'Excel' && 'excel'"
|
:class="data.type === 'Excel' && 'excel'"
|
||||||
|
v-if="data.extraFlag > -1"
|
||||||
>{{ node.label }}</span
|
>{{ node.label }}</span
|
||||||
>
|
>
|
||||||
|
<el-tooltip
|
||||||
|
effect="dark"
|
||||||
|
v-else
|
||||||
|
:content="`${t('data_set.invalid_data_source')}: ${node.label}`"
|
||||||
|
placement="top"
|
||||||
|
>
|
||||||
|
<span
|
||||||
|
:title="node.label"
|
||||||
|
class="label-tooltip ellipsis"
|
||||||
|
:class="data.type === 'Excel' && 'excel'"
|
||||||
|
>{{ node.label }}</span
|
||||||
|
>
|
||||||
|
</el-tooltip>
|
||||||
<div class="icon-more" v-if="data.weight >= 7">
|
<div class="icon-more" v-if="data.weight >= 7">
|
||||||
<handle-more
|
<handle-more
|
||||||
icon-size="24px"
|
icon-size="24px"
|
||||||
|
Loading…
Reference in New Issue
Block a user