| | |
| | | |
| | | @ApiOperation("导出应用数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('app:list')") |
| | | @PreAuthorize("@el.check('app:download')") |
| | | public void exportApp(HttpServletResponse response, AppQueryCriteria criteria) throws IOException { |
| | | appService.download(appService.queryAll(criteria), response); |
| | | } |
| | |
| | | |
| | | @ApiOperation("导出数据库数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('database:list')") |
| | | @PreAuthorize("@el.check('database:download')") |
| | | public void exportDatabase(HttpServletResponse response, DatabaseQueryCriteria criteria) throws IOException { |
| | | databaseService.download(databaseService.queryAll(criteria), response); |
| | | } |
| | |
| | | |
| | | @ApiOperation("导出部署数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('database:list')") |
| | | @PreAuthorize("@el.check('database:download')") |
| | | public void exportDeployData(HttpServletResponse response, DeployQueryCriteria criteria) throws IOException { |
| | | deployService.download(deployService.queryAll(criteria), response); |
| | | } |
| | |
| | | |
| | | @ApiOperation("导出部署历史数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('deployHistory:list')") |
| | | @PreAuthorize("@el.check('deployHistory:download')") |
| | | public void exportDeployHistory(HttpServletResponse response, DeployHistoryQueryCriteria criteria) throws IOException { |
| | | deployhistoryService.download(deployhistoryService.queryAll(criteria), response); |
| | | } |
| | |
| | | |
| | | @ApiOperation("导出服务器数据") |
| | | @GetMapping(value = "/download") |
| | | @PreAuthorize("@el.check('serverDeploy:list')") |
| | | @PreAuthorize("@el.check('serverDeploy:download')") |
| | | public void exportServerDeploy(HttpServletResponse response, ServerDeployQueryCriteria criteria) throws IOException { |
| | | serverDeployService.download(serverDeployService.queryAll(criteria), response); |
| | | } |
| | |
| | | permission: { |
| | | add: ['admin', 'app:add'], |
| | | edit: ['admin', 'app:edit'], |
| | | del: ['admin', 'app:del'] |
| | | del: ['admin', 'app:del'], |
| | | download: ['admin', 'app:download'] |
| | | }, |
| | | rules: { |
| | | name: [ |
| | |
| | | permission: { |
| | | add: ['admin', 'database:add'], |
| | | edit: ['admin', 'database:edit'], |
| | | del: ['admin', 'database:del'] |
| | | del: ['admin', 'database:del'], |
| | | download: ['admin', 'database:download'] |
| | | }, |
| | | rules: { |
| | | name: [ |
| | |
| | | permission: { |
| | | add: ['admin', 'deploy:add'], |
| | | edit: ['admin', 'deploy:edit'], |
| | | del: ['admin', 'deploy:del'] |
| | | del: ['admin', 'deploy:del'], |
| | | download: ['admin', 'deploy:download'] |
| | | }, |
| | | rules: { |
| | | 'app.id': [ |
| | |
| | | return { |
| | | delLoading: false, |
| | | permission: { |
| | | del: ['admin', 'deployHistory:del'] |
| | | del: ['admin', 'deployHistory:del'], |
| | | download: ['admin', 'deployHistory:download'] |
| | | } |
| | | } |
| | | }, |
| | |
| | | permission: { |
| | | add: ['admin', 'serverDeploy:add'], |
| | | edit: ['admin', 'serverDeploy:edit'], |
| | | del: ['admin', 'serverDeploy:del'] |
| | | del: ['admin', 'serverDeploy:del'], |
| | | download: ['admin', 'serverDeploy:download'] |
| | | }, |
| | | rules: { |
| | | name: [ |