提交 9dc0dcdc authored 作者: taojinlong's avatar taojinlong

Merge branch 'dev' of github.com:dataease/dataease into dev

...@@ -34,7 +34,6 @@ public class DataSetGroupController { ...@@ -34,7 +34,6 @@ public class DataSetGroupController {
@Resource @Resource
private ExtractDataService extractDataService; private ExtractDataService extractDataService;
@RequiresPermissions("data:read")
@DePermissions(value = { @DePermissions(value = {
@DePermission(type = DePermissionType.DATASET, value = "id"), @DePermission(type = DePermissionType.DATASET, value = "id"),
@DePermission(type = DePermissionType.DATASET, value = "pid", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE) @DePermission(type = DePermissionType.DATASET, value = "pid", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE)
...@@ -57,7 +56,6 @@ public class DataSetGroupController { ...@@ -57,7 +56,6 @@ public class DataSetGroupController {
return dataSetGroupService.treeNode(datasetGroup); return dataSetGroupService.treeNode(datasetGroup);
} }
@RequiresPermissions("data:read")
@DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE) @DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE)
@ApiOperation("删除") @ApiOperation("删除")
@PostMapping("/delete/{id}") @PostMapping("/delete/{id}")
......
...@@ -36,7 +36,6 @@ public class DataSetTableController { ...@@ -36,7 +36,6 @@ public class DataSetTableController {
@Resource @Resource
private DataSetTableService dataSetTableService; private DataSetTableService dataSetTableService;
@RequiresPermissions("data:read")
@DePermissions(value = { @DePermissions(value = {
@DePermission(type = DePermissionType.DATASET, value = "id"), @DePermission(type = DePermissionType.DATASET, value = "id"),
@DePermission(type = DePermissionType.DATASET, value = "sceneId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE), @DePermission(type = DePermissionType.DATASET, value = "sceneId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE),
...@@ -48,7 +47,6 @@ public class DataSetTableController { ...@@ -48,7 +47,6 @@ public class DataSetTableController {
dataSetTableService.batchInsert(datasetTable); dataSetTableService.batchInsert(datasetTable);
} }
@RequiresPermissions("data:read")
@DePermissions(value = { @DePermissions(value = {
@DePermission(type = DePermissionType.DATASET, value = "id", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE), @DePermission(type = DePermissionType.DATASET, value = "id", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE),
@DePermission(type = DePermissionType.DATASET, value = "sceneId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE), @DePermission(type = DePermissionType.DATASET, value = "sceneId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE),
...@@ -64,7 +62,6 @@ public class DataSetTableController { ...@@ -64,7 +62,6 @@ public class DataSetTableController {
} }
} }
@RequiresPermissions("data:read")
@DePermissions(value = { @DePermissions(value = {
@DePermission(type = DePermissionType.DATASET, value = "id", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE), @DePermission(type = DePermissionType.DATASET, value = "id", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE),
@DePermission(type = DePermissionType.DATASET, value = "sceneId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE), @DePermission(type = DePermissionType.DATASET, value = "sceneId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE),
...@@ -76,7 +73,6 @@ public class DataSetTableController { ...@@ -76,7 +73,6 @@ public class DataSetTableController {
dataSetTableService.alter(request); dataSetTableService.alter(request);
} }
@RequiresPermissions("data:read")
@DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE) @DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE)
@ApiOperation("删除") @ApiOperation("删除")
@PostMapping("delete/{id}") @PostMapping("delete/{id}")
...@@ -147,7 +143,6 @@ public class DataSetTableController { ...@@ -147,7 +143,6 @@ public class DataSetTableController {
return dataSetTableService.getCustomPreview(dataSetTableRequest); return dataSetTableService.getCustomPreview(dataSetTableRequest);
} }
@RequiresPermissions("data:read")
@DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_USE, value = "tableId") @DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_USE, value = "tableId")
@ApiOperation("查询增量配置") @ApiOperation("查询增量配置")
@PostMapping("incrementalConfig") @PostMapping("incrementalConfig")
...@@ -155,7 +150,6 @@ public class DataSetTableController { ...@@ -155,7 +150,6 @@ public class DataSetTableController {
return dataSetTableService.incrementalConfig(datasetTableIncrementalConfig); return dataSetTableService.incrementalConfig(datasetTableIncrementalConfig);
} }
@RequiresPermissions("data:read")
@DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE, value = "tableId") @DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE, value = "tableId")
@ApiOperation("保存增量配置") @ApiOperation("保存增量配置")
@PostMapping("save/incrementalConfig") @PostMapping("save/incrementalConfig")
...@@ -181,7 +175,6 @@ public class DataSetTableController { ...@@ -181,7 +175,6 @@ public class DataSetTableController {
return dataSetTableService.excelSaveAndParse(file, tableId, editType); return dataSetTableService.excelSaveAndParse(file, tableId, editType);
} }
@RequiresPermissions("data:read")
@DePermission(type = DePermissionType.DATASET) @DePermission(type = DePermissionType.DATASET)
@ApiOperation("检测doris") @ApiOperation("检测doris")
@PostMapping("checkDorisTableIsExists/{id}") @PostMapping("checkDorisTableIsExists/{id}")
...@@ -189,7 +182,6 @@ public class DataSetTableController { ...@@ -189,7 +182,6 @@ public class DataSetTableController {
return dataSetTableService.checkDorisTableIsExists(id); return dataSetTableService.checkDorisTableIsExists(id);
} }
@RequiresPermissions("data:read")
@ApiOperation("搜索") @ApiOperation("搜索")
@PostMapping("search") @PostMapping("search")
public List<DataSetTableDTO> search(@RequestBody DataSetTableRequest dataSetTableRequest) { public List<DataSetTableDTO> search(@RequestBody DataSetTableRequest dataSetTableRequest) {
...@@ -203,7 +195,6 @@ public class DataSetTableController { ...@@ -203,7 +195,6 @@ public class DataSetTableController {
return dataSetTableService.syncDatasetTableField(id); return dataSetTableService.syncDatasetTableField(id);
} }
@RequiresPermissions("data:read")
@DePermission(type = DePermissionType.DATASET, value = "id") @DePermission(type = DePermissionType.DATASET, value = "id")
@ApiOperation("关联数据集预览数据") @ApiOperation("关联数据集预览数据")
@PostMapping("unionPreview") @PostMapping("unionPreview")
......
...@@ -27,14 +27,12 @@ public class DataSetTableUnionController { ...@@ -27,14 +27,12 @@ public class DataSetTableUnionController {
@Resource @Resource
private DataSetTableUnionService dataSetTableUnionService; private DataSetTableUnionService dataSetTableUnionService;
@RequiresPermissions("data:read")
@ApiOperation("保存") @ApiOperation("保存")
@PostMapping("save") @PostMapping("save")
public DatasetTableUnion save(@RequestBody DatasetTableUnion datasetTableUnion) { public DatasetTableUnion save(@RequestBody DatasetTableUnion datasetTableUnion) {
return dataSetTableUnionService.save(datasetTableUnion); return dataSetTableUnionService.save(datasetTableUnion);
} }
@RequiresPermissions("datasource:read")
@DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE) @DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE)
@ApiOperation("删除") @ApiOperation("删除")
@PostMapping("delete/{id}") @PostMapping("delete/{id}")
...@@ -42,7 +40,6 @@ public class DataSetTableUnionController { ...@@ -42,7 +40,6 @@ public class DataSetTableUnionController {
dataSetTableUnionService.delete(id); dataSetTableUnionService.delete(id);
} }
@RequiresPermissions("datasource:read")
@DePermission(type = DePermissionType.DATASET) @DePermission(type = DePermissionType.DATASET)
@ApiOperation("查询") @ApiOperation("查询")
@PostMapping("listByTableId/{tableId}") @PostMapping("listByTableId/{tableId}")
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
}, },
computed: { computed: {
itemActive() { itemActive() {
return this.curComponent.commonBackground && this.curComponent.commonBackground.innerImage === this.template.url return this.curComponent && this.curComponent.commonBackground && this.curComponent.commonBackground.innerImage === this.template.url
}, },
classBackground() { classBackground() {
if (this.template.url) { if (this.template.url) {
......
...@@ -102,7 +102,7 @@ export default { ...@@ -102,7 +102,7 @@ export default {
} }
}, },
mounted() { mounted() {
if (this.curComponent.commonBackground && this.curComponent.commonBackground.outerImage && typeof (this.curComponent.commonBackground.outerImage) === 'string') { if (this.curComponent && this.curComponent.commonBackground && this.curComponent.commonBackground.outerImage && typeof (this.curComponent.commonBackground.outerImage) === 'string') {
this.fileList.push({ url: this.curComponent.commonBackground.outerImage }) this.fileList.push({ url: this.curComponent.commonBackground.outerImage })
} }
this.backgroundOrigin = deepCopy(this.curComponent.commonBackground) this.backgroundOrigin = deepCopy(this.curComponent.commonBackground)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论