forked from github/dataease
Merge branch 'dev' into pr@dev_memory_component
This commit is contained in:
commit
f7ef2f6cfb
@ -2886,6 +2886,7 @@ public class DataSetTableService {
|
|||||||
if (StringUtils.isNotEmpty(request.getExpressionTree())) {
|
if (StringUtils.isNotEmpty(request.getExpressionTree())) {
|
||||||
Gson gson = new Gson();
|
Gson gson = new Gson();
|
||||||
tree = gson.fromJson(request.getExpressionTree(), DatasetRowPermissionsTreeObj.class);
|
tree = gson.fromJson(request.getExpressionTree(), DatasetRowPermissionsTreeObj.class);
|
||||||
|
permissionsTreeService.getField(tree);
|
||||||
}
|
}
|
||||||
Map<String, Object> previewData = getPreviewData(request, 1, 100000, null, tree);
|
Map<String, Object> previewData = getPreviewData(request, 1, 100000, null, tree);
|
||||||
List<DatasetTableField> fields = (List<DatasetTableField>) previewData.get("fields");
|
List<DatasetTableField> fields = (List<DatasetTableField>) previewData.get("fields");
|
||||||
|
@ -153,7 +153,7 @@ public class PermissionsTreeService {
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void getField(DatasetRowPermissionsTreeObj tree) {
|
public void getField(DatasetRowPermissionsTreeObj tree) {
|
||||||
if (ObjectUtils.isNotEmpty(tree)) {
|
if (ObjectUtils.isNotEmpty(tree)) {
|
||||||
if (ObjectUtils.isNotEmpty(tree.getItems())) {
|
if (ObjectUtils.isNotEmpty(tree.getItems())) {
|
||||||
for (DatasetRowPermissionsTreeItem item : tree.getItems()) {
|
for (DatasetRowPermissionsTreeItem item : tree.getItems()) {
|
||||||
|
@ -187,6 +187,7 @@
|
|||||||
|
|
||||||
<!--导出数据集弹框-->
|
<!--导出数据集弹框-->
|
||||||
<el-dialog
|
<el-dialog
|
||||||
|
v-if="showExport"
|
||||||
v-dialogDrag
|
v-dialogDrag
|
||||||
:visible.sync="showExport"
|
:visible.sync="showExport"
|
||||||
width="600px"
|
width="600px"
|
||||||
@ -470,6 +471,7 @@ export default {
|
|||||||
this.showExport = true
|
this.showExport = true
|
||||||
this.fetchFiledList()
|
this.fetchFiledList()
|
||||||
this.exportForm.name = this.table.name
|
this.exportForm.name = this.table.name
|
||||||
|
this.exportForm.expressionTree = ''
|
||||||
},
|
},
|
||||||
closeExport() {
|
closeExport() {
|
||||||
this.showExport = false
|
this.showExport = false
|
||||||
|
Loading…
Reference in New Issue
Block a user