| | |
| | | import com.vci.pagemodel.PLDefinationVO; |
| | | import com.vci.pagemodel.PLTabButtonVO; |
| | | import com.vci.pagemodel.PLUILayoutCloneVO; |
| | | import com.vci.pagemodel.UICloneVO; |
| | | import com.vci.starter.web.annotation.log.VciBusinessLog; |
| | | import com.vci.starter.web.exception.VciBaseException; |
| | | import com.vci.starter.web.pagemodel.BaseQueryObject; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 业务类型下拉查询 |
| | | * @param baseQueryObject selectBtmType 选择的源对象,带分页信息 |
| | |
| | | }catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "业务类型下拉查询时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 链接类型下拉查询 |
| | | * @param baseQueryObject selectBtmType 选择的源对象,带分页信息 |
| | | * @return |
| | | * @throws PLException |
| | | */ |
| | | @GetMapping( "/getLinkDatasByPage") |
| | | @VciBusinessLog(operateName = "链接类型下拉查询") |
| | | public BaseResult getLinkDatasByPage(BaseQueryObject baseQueryObject){ |
| | | try { |
| | | return BaseResult.dataGrid(uiManagerService.getLinkDatasByPage(baseQueryObject)); |
| | | }catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "链接类型下拉查询时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | |
| | | * @param tabButtonVO |
| | | * @return 保存结果 |
| | | */ |
| | | @PostMapping("/addTapButton") |
| | | public BaseResult addTapButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | @PostMapping("/addTabButton") |
| | | public BaseResult addTabButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | try { |
| | | return uiManagerService.addTapButton(tabButtonVO); |
| | | return uiManagerService.addTabButton(tabButtonVO); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "按钮配置信息添加时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | |
| | | * @param tabButtonVO |
| | | * @return 修改结果 |
| | | */ |
| | | @PutMapping("/updateTapButton") |
| | | public BaseResult updateTapButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | @PutMapping("/updateTabbutton") |
| | | public BaseResult updateTabButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | try { |
| | | return uiManagerService.updateTapButton(tabButtonVO); |
| | | return uiManagerService.updateTabButton(tabButtonVO); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "修改按钮配置信息时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | |
| | | * @param tabButtonVO |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/deleteTapButton") |
| | | public BaseResult deleteTapButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | @DeleteMapping("/deleteTabButton") |
| | | public BaseResult deleteTabButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | try { |
| | | return uiManagerService.deleteTapButton(tabButtonVO) ? BaseResult.success("删除单个按钮配置成功!"):BaseResult.fail("删除单个按钮配置失败!"); |
| | | return uiManagerService.deleteTabButton(tabButtonVO) ? BaseResult.success("删除单个按钮配置成功!"):BaseResult.fail("删除单个按钮配置失败!"); |
| | | } catch (PLException e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "删除单个按钮配置时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | |
| | | @VciBusinessLog(operateName = "UI授权(树形结构)") |
| | | public BaseResult getUIAuthor(BaseQueryObject baseQueryObject){ |
| | | try { |
| | | return BaseResult.dataList( uiManagerService.getUIAuthor(baseQueryObject)); |
| | | return BaseResult.dataList(uiManagerService.getUIAuthor(baseQueryObject)); |
| | | }catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "UI授权加载出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 根据角色主键获取已授权的信息 |
| | | * @param roleId |
| | | * @return |
| | | * @throws PLException |
| | | */ |
| | | /* @GetMapping( "/getRightListByRoleId") |
| | | @VciBusinessLog(operateName = "根据角色主键获取已授权的UI主键集合") |
| | | public BaseResult getRightListByRoleId(String roleId){ |
| | | try { |
| | | return BaseResult.success(uiManagerService.getRightListByRoleId(roleId)); |
| | | }catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "获取已授权信息时错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | }*/ |
| | | |
| | | /*** |
| | | * @param uiAuthorDTO 勾选的需要保存的数据对象 |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 通过业务类型获取UI上下文包含其下关联的区域定义>页面定义等所有关联数据,归纳成tree结构 |
| | | * @param btmName |
| | | * @param level |
| | | * @return |
| | | */ |
| | | @GetMapping( "/getAllLevelTreeByBtm") |
| | | public BaseResult getAllLevelTreeByBtm(String btmName,String level){ |
| | | try { |
| | | return BaseResult.success(uiManagerService.getAllLevelTreeByBtm(btmName,level)); |
| | | }catch (Exception e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "获取UI树时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 克隆页签 |
| | | * @param uiCloneVO |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/clonetabPage") |
| | | public BaseResult clonetabPage(@RequestBody UICloneVO uiCloneVO){ |
| | | try { |
| | | return uiManagerService.clonetabPage(uiCloneVO); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "克隆页签时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 克隆页面定义 |
| | | * @param uiCloneVO |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/clonePageDef") |
| | | public BaseResult clonePageDef(@RequestBody UICloneVO uiCloneVO){ |
| | | try { |
| | | return uiManagerService.clonePageDef(uiCloneVO); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "克隆页面定义时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 克隆按钮 |
| | | * @param uiCloneVO |
| | | * @return |
| | | * @throws Throwable |
| | | */ |
| | | @PostMapping("/cloneTabButton") |
| | | public BaseResult cloneTabButton(@RequestBody UICloneVO uiCloneVO){ |
| | | try { |
| | | return uiManagerService.cloneTabButton(uiCloneVO); |
| | | } catch (Throwable e) { |
| | | e.printStackTrace(); |
| | | String exceptionMessage = "克隆按钮配置时出现错误,原因:" + VciBaseUtil.getExceptionMessage(e); |
| | | logger.error(exceptionMessage); |
| | | return BaseResult.fail(exceptionMessage); |
| | | } |
| | | } |
| | | |
| | | } |