| | |
| | | import com.vci.corba.portal.data.PLTabPage; |
| | | import com.vci.corba.portal.data.PLUILayout; |
| | | import com.vci.dto.UIAuthorDTO; |
| | | import com.vci.pagemodel.PLDefinationVO; |
| | | import com.vci.pagemodel.PLUILayoutCloneVO; |
| | | import com.vci.starter.web.annotation.log.VciBusinessLog; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 删除数据 |
| | | * 删除区域定义数据 |
| | | * @param oids |
| | | * @return |
| | | */ |
| | |
| | | } |
| | | |
| | | /** |
| | | * 添加页面定义 |
| | | * @param pdVO |
| | | * @return 保存结果 |
| | | */ |
| | | @PostMapping("/addPageDefination") |
| | | public BaseResult addPageDefination(@RequestBody PLDefinationVO pdVO){ |
| | | try { |
| | | return uiManagerService.addPageDefination(pdVO) ? BaseResult.success("页面定义添加成功!"):BaseResult.fail("页面定义添加失败!"); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "页面定义添加时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 修改页面定义数据 |
| | | * @param pdVO |
| | | * @return 修改结果 |
| | | */ |
| | | @PutMapping("/updatePageDefination") |
| | | public BaseResult updatePageDefination(@RequestBody PLDefinationVO pdVO){ |
| | | try { |
| | | return uiManagerService.updatePageDefination(pdVO) ? BaseResult.success("修改页面定义成功!"):BaseResult.fail("修改页面定义失败!"); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "修改页面定义时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 删除页面定义数据 |
| | | * @param oids |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/delPageDefination") |
| | | public BaseResult delPageDefination(String[] oids){ |
| | | try { |
| | | return uiManagerService.delPageDefination(oids) ? BaseResult.success("删除页面定义成功!"):BaseResult.fail("删除页面定义数据失败!"); |
| | | } catch (PLException e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "删除页面定义数据时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据角色获取UI/表单/按钮的权限. |
| | | * @param baseQueryObject |
| | | * @return |