Merge pull request #4360 from dataease/pr@dev@fix_relationship

fix(血缘关-数据源列表): 数据源列表按照类型和名称升序排序
This commit is contained in:
wisonic-s 2023-01-12 10:58:23 +08:00 committed by GitHub
commit 91d6284b7e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 5 deletions

View File

@ -124,7 +124,7 @@
and configuration = #{configuration,jdbcType=LONGVARCHAR}
</if>
</where>
<if test="sort == null">
<if test="sort != null">
order by ${sort}
</if>
</select>

View File

@ -158,11 +158,9 @@ public class DatasourceService {
}
public List<DatasourceDTO> getDatasourceList(DatasourceUnionRequest request) throws Exception {
request.setSort("update_time desc");
request.setSort("type,name");
List<DatasourceDTO> datasourceDTOS = extDataSourceMapper.queryUnion(request);
datasourceDTOS.forEach(datasourceDTO -> {
datasourceTrans(datasourceDTO);
});
datasourceDTOS.forEach(this::datasourceTrans);
return datasourceDTOS;
}

View File

@ -39,6 +39,7 @@
placement="bottom"
trigger="manual"
:width="popoverSize"
popper-class="relation-popover"
>
<el-tree
v-show="showTree"
@ -630,4 +631,8 @@ export default {
/*display: inline;*/
visibility: visible;
}
.relation-popover {
max-height: 100%;
overflow-y: scroll;
}
</style>