forked from github/dataease
Merge pull request #4360 from dataease/pr@dev@fix_relationship
fix(血缘关-数据源列表): 数据源列表按照类型和名称升序排序
This commit is contained in:
commit
91d6284b7e
@ -124,7 +124,7 @@
|
|||||||
and configuration = #{configuration,jdbcType=LONGVARCHAR}
|
and configuration = #{configuration,jdbcType=LONGVARCHAR}
|
||||||
</if>
|
</if>
|
||||||
</where>
|
</where>
|
||||||
<if test="sort == null">
|
<if test="sort != null">
|
||||||
order by ${sort}
|
order by ${sort}
|
||||||
</if>
|
</if>
|
||||||
</select>
|
</select>
|
||||||
|
@ -158,11 +158,9 @@ public class DatasourceService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public List<DatasourceDTO> getDatasourceList(DatasourceUnionRequest request) throws Exception {
|
public List<DatasourceDTO> getDatasourceList(DatasourceUnionRequest request) throws Exception {
|
||||||
request.setSort("update_time desc");
|
request.setSort("type,name");
|
||||||
List<DatasourceDTO> datasourceDTOS = extDataSourceMapper.queryUnion(request);
|
List<DatasourceDTO> datasourceDTOS = extDataSourceMapper.queryUnion(request);
|
||||||
datasourceDTOS.forEach(datasourceDTO -> {
|
datasourceDTOS.forEach(this::datasourceTrans);
|
||||||
datasourceTrans(datasourceDTO);
|
|
||||||
});
|
|
||||||
return datasourceDTOS;
|
return datasourceDTOS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@
|
|||||||
placement="bottom"
|
placement="bottom"
|
||||||
trigger="manual"
|
trigger="manual"
|
||||||
:width="popoverSize"
|
:width="popoverSize"
|
||||||
|
popper-class="relation-popover"
|
||||||
>
|
>
|
||||||
<el-tree
|
<el-tree
|
||||||
v-show="showTree"
|
v-show="showTree"
|
||||||
@ -630,4 +631,8 @@ export default {
|
|||||||
/*display: inline;*/
|
/*display: inline;*/
|
||||||
visibility: visible;
|
visibility: visible;
|
||||||
}
|
}
|
||||||
|
.relation-popover {
|
||||||
|
max-height: 100%;
|
||||||
|
overflow-y: scroll;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user