|
|
@@ -66,8 +66,15 @@ public class SysDeptController extends BaseController {
|
|
|
*/
|
|
|
@RequiresPermissions("system:dept:list")
|
|
|
@GetMapping("/list")
|
|
|
- public TableDataInfo<SysOrg> list(SysOrg dept) {
|
|
|
- return orgService.selectPage(dept);
|
|
|
+ public AjaxResult list(SysOrg dept) {
|
|
|
+ AjaxResult ajaxResult = AjaxResult.success();
|
|
|
+ ajaxResult.put(AjaxResult.DATA_TAG, orgService.selectPage(dept));
|
|
|
+ boolean isEdit = false;
|
|
|
+ if (SecurityUtils.isAdmin(SecurityUtils.getUserId())) {
|
|
|
+ isEdit = true;
|
|
|
+ }
|
|
|
+ ajaxResult.put("isEdit", isEdit);
|
|
|
+ return ajaxResult;
|
|
|
}
|
|
|
|
|
|
@RequiresPermissions("system:dept:exportConstructionDetails")
|
|
|
@@ -100,6 +107,7 @@ public class SysDeptController extends BaseController {
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
@RequiresPermissions("system:dept:exportSecurityWork")
|
|
|
@PostMapping("/exportSecurityWork")
|
|
|
public void exportSecurityWork(SysOrg dept, HttpServletResponse response) {
|
|
|
@@ -129,6 +137,7 @@ public class SysDeptController extends BaseController {
|
|
|
response.setCharacterEncoding("utf-8");
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
@RequiresPermissions("system:dept:exportConstruction")
|
|
|
@PostMapping("/exportConstruction")
|
|
|
public void exportConstruction(SysOrg dept, HttpServletResponse response) {
|