Merge pull request #3682 from dataease/pr@dev@feat_excel

feat(数据集): 数据集导出Excel
This commit is contained in:
xuwei-fit2cloud 2022-11-09 10:24:35 +08:00 committed by GitHub
commit 9bf308df67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -2886,6 +2886,7 @@ public class DataSetTableService {
if (StringUtils.isNotEmpty(request.getExpressionTree())) {
Gson gson = new Gson();
tree = gson.fromJson(request.getExpressionTree(), DatasetRowPermissionsTreeObj.class);
permissionsTreeService.getField(tree);
}
Map<String, Object> previewData = getPreviewData(request, 1, 100000, null, tree);
List<DatasetTableField> fields = (List<DatasetTableField>) previewData.get("fields");

View File

@ -153,7 +153,7 @@ public class PermissionsTreeService {
return result;
}
private void getField(DatasetRowPermissionsTreeObj tree) {
public void getField(DatasetRowPermissionsTreeObj tree) {
if (ObjectUtils.isNotEmpty(tree)) {
if (ObjectUtils.isNotEmpty(tree.getItems())) {
for (DatasetRowPermissionsTreeItem item : tree.getItems()) {

View File

@ -187,6 +187,7 @@
<!--导出数据集弹框-->
<el-dialog
v-if="showExport"
v-dialogDrag
:visible.sync="showExport"
width="600px"
@ -470,6 +471,7 @@ export default {
this.showExport = true
this.fetchFiledList()
this.exportForm.name = this.table.name
this.exportForm.expressionTree = ''
},
closeExport() {
this.showExport = false