接入对比报表指定版本打印权限
新增导出动作权限,指定版本打印和修订记录导出只读取正式版本快照与摘要,不重读来源或记录下载成功。
| | |
| | | @GetMapping("/{id}/versions/{versionNo}") |
| | | public AjaxResult version(@PathVariable long id, @PathVariable int versionNo) { return success(service.get(id, versionNo)); } |
| | | |
| | | /** 导出仅返回指定已保存版本;不读取来源,也不记录浏览器无法确认的 PDF 保存结果。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:compare-report:export')") |
| | | @GetMapping("/{id}/versions/{versionNo}/print") |
| | | public AjaxResult print(@PathVariable long id, @PathVariable int versionNo) { return success(service.get(id, versionNo)); } |
| | | |
| | | /** 修订 CSV 使用正式版本摘要,导出权限独立于历史查看权限。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:compare-report:export')") |
| | | @GetMapping("/{id}/versions/export") |
| | | public AjaxResult exportHistory(@PathVariable long id) { return success(reports.history(id)); } |
| | | |
| | | /** 编辑权限可读取最新快照作为基准,无需来源测试权限。 */ |
| | | @PreAuthorize("@ss.hasPermi('system:compare-report:edit')") |
| | | @GetMapping("/{id}/editing") |
| New file |
| | |
| | | -- 打印指定保存版本与修订 CSV 共用导出权限,不建立下载记录。 |
| | | INSERT INTO sys_menu(menu_name,parent_id,order_num,path,menu_type,visible,status,perms,create_by,create_time) |
| | | SELECT '导出',parent_id,5,'#','F','0','0','system:compare-report:export','system',UTC_TIMESTAMP(3) |
| | | FROM sys_menu WHERE perms='system:compare-report:query'; |