feat(数据集):自助数据集

This commit is contained in:
junjie 2021-05-10 18:41:49 +08:00
parent dd0096922d
commit 20ca335a4a
2 changed files with 4 additions and 2 deletions

View File

@ -475,6 +475,9 @@ public class DataSetTableService {
List<DatasetTableField> fieldList = new ArrayList<>();
list.forEach(ele -> {
List<DatasetTableField> listByIds = dataSetTableFieldsService.getListByIds(ele.getCheckedFields());
listByIds.forEach(f -> {
f.setDataeaseName(DorisTableUtils.dorisFieldName(ele.getTableId() + "_" + f.getDataeaseName()));
});
fieldList.addAll(listByIds);
});
for (int i = 0; i < fieldList.size(); i++) {
@ -482,7 +485,6 @@ public class DataSetTableService {
datasetTableField.setId(null);
datasetTableField.setTableId(datasetTable.getId());
datasetTableField.setColumnIndex(i);
datasetTableField.setDataeaseName(DorisTableUtils.dorisFieldName(datasetTable.getId() + "_" + datasetTableField.getDataeaseName()));
}
dataSetTableFieldsService.batchEdit(fieldList);
// custom 创建doris视图

View File

@ -101,7 +101,7 @@ export default {
const that = this
setTimeout(function() {
const currentHeight = document.documentElement.clientHeight
that.height = currentHeight - 56 - 15 - 26 - 25 - 43
that.height = currentHeight - 56 - 15 - 26 - 25 - 43 - 10
}, 10)
},