提交 16e90298 authored 作者: fit2cloud-chenyw's avatar fit2cloud-chenyw

Merge remote-tracking branch 'origin/main' into main

...@@ -21,6 +21,12 @@ ...@@ -21,6 +21,12 @@
<if test="mode != null"> <if test="mode != null">
and mode = #{mode,jdbcType=INTEGER} and mode = #{mode,jdbcType=INTEGER}
</if> </if>
<if test="typeFilter != null">
and type in
<foreach collection="typeFilter" item="item" open="(" separator="," close=")">
#{item,jdbcType=INTEGER}
</foreach>
</if>
</where> </where>
<if test="sort != null"> <if test="sort != null">
order by ${sort} order by ${sort}
......
...@@ -19,4 +19,5 @@ public class DataSetTableRequest extends DatasetTable { ...@@ -19,4 +19,5 @@ public class DataSetTableRequest extends DatasetTable {
private String userId; private String userId;
private Integer editType; private Integer editType;
private Boolean isRename; private Boolean isRename;
private List<String> typeFilter;
} }
...@@ -176,6 +176,7 @@ public class DataSetTableService { ...@@ -176,6 +176,7 @@ public class DataSetTableService {
public List<DataSetTableDTO> list(DataSetTableRequest dataSetTableRequest) { public List<DataSetTableDTO> list(DataSetTableRequest dataSetTableRequest) {
dataSetTableRequest.setUserId(String.valueOf(AuthUtils.getUser().getUserId())); dataSetTableRequest.setUserId(String.valueOf(AuthUtils.getUser().getUserId()));
dataSetTableRequest.setTypeFilter(dataSetTableRequest.getTypeFilter());
return extDataSetTableMapper.search(dataSetTableRequest); return extDataSetTableMapper.search(dataSetTableRequest);
} }
......
...@@ -23,7 +23,7 @@ ...@@ -23,7 +23,7 @@
</el-row> </el-row>
<el-col style="display: flex;flex-direction: row"> <el-col style="display: flex;flex-direction: row">
<el-col class="panel-height" style="width: 220px;border-right:solid 1px #dcdfe6;border-top:solid 1px #dcdfe6;padding-right: 15px;overflow-y: auto;"> <el-col class="panel-height" style="width: 220px;border-right:solid 1px #dcdfe6;border-top:solid 1px #dcdfe6;padding-right: 15px;overflow-y: auto;">
<dataset-group-selector :table="table" :mode="1" :checked-list="checkedList" :union-data="unionData" @getTable="getTable" /> <dataset-group-selector :custom-type="customType" :table="table" :mode="1" :checked-list="checkedList" :union-data="unionData" @getTable="getTable" />
</el-col> </el-col>
<el-col class="panel-height" style="width: 235px;border-top:solid 1px #dcdfe6;padding: 0 15px;overflow-y: auto;"> <el-col class="panel-height" style="width: 235px;border-top:solid 1px #dcdfe6;padding: 0 15px;overflow-y: auto;">
<dataset-custom-field :table="table" :checked-list="checkedList" @getChecked="getChecked" /> <dataset-custom-field :table="table" :checked-list="checkedList" @getChecked="getChecked" />
...@@ -83,7 +83,8 @@ export default { ...@@ -83,7 +83,8 @@ export default {
unionData: [], unionData: [],
height: 500, height: 500,
data: [], data: [],
fields: [] fields: [],
customType: ['db', 'sql', 'excel']
} }
}, },
watch: { watch: {
......
...@@ -108,6 +108,11 @@ import { isKettleRunning, post } from '@/api/dataset/dataset' ...@@ -108,6 +108,11 @@ import { isKettleRunning, post } from '@/api/dataset/dataset'
export default { export default {
name: 'DatasetGroupSelector', name: 'DatasetGroupSelector',
props: { props: {
customType: {
type: Array,
required: false,
default: null
},
mode: { mode: {
type: Number, type: Number,
required: false, required: false,
...@@ -226,7 +231,8 @@ export default { ...@@ -226,7 +231,8 @@ export default {
post('/dataset/table/list', { post('/dataset/table/list', {
sort: 'type asc,create_time desc,name asc', sort: 'type asc,create_time desc,name asc',
sceneId: this.currGroup.id, sceneId: this.currGroup.id,
mode: this.mode < 0 ? null : this.mode mode: this.mode < 0 ? null : this.mode,
typeFilter: this.customType ? this.customType : null
}, false).then(response => { }, false).then(response => {
this.tables = response.data this.tables = response.data
for (let i = 0; i < this.tables.length; i++) { for (let i = 0; i < this.tables.length; i++) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论