Skip to content

Commit

Permalink
Merge branch 'v1.8' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jinlong-T committed Mar 2, 2022
2 parents 2b05361 + 8592c90 commit 03d2208
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,18 @@ public class DataSetTableUnionController {
@Resource
private DataSetTableUnionService dataSetTableUnionService;

@DePermission(type = DePermissionType.DATASET, value = "sourceTableId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE)
@ApiOperation("保存")
@PostMapping("save")
public DatasetTableUnion save(@RequestBody DatasetTableUnion datasetTableUnion) {
return dataSetTableUnionService.save(datasetTableUnion);
}

@DePermission(type = DePermissionType.DATASET, level = ResourceAuthLevel.DATASET_LEVEL_MANAGE)
@DePermission(type = DePermissionType.DATASET, value = "sourceTableId", level = ResourceAuthLevel.DATASET_LEVEL_MANAGE)
@ApiOperation("删除")
@PostMapping("delete/{id}")
public void delete(@PathVariable String id) {
dataSetTableUnionService.delete(id);
@PostMapping("delete")
public void delete(@RequestBody DatasetTableUnion datasetTableUnion) {
dataSetTableUnionService.delete(datasetTableUnion.getId());
}

@DePermission(type = DePermissionType.DATASET)
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/dataset/data/UnionView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ export default {
cancelButtonText: this.$t('dataset.cancel'),
type: 'warning'
}).then(() => {
post('dataset/union/delete/' + item.id, {}).then(response => {
post('dataset/union/delete', item).then(response => {
this.$message({
type: 'success',
message: this.$t('dataset.delete_success'),
Expand Down

0 comments on commit 03d2208

Please sign in to comment.