| | |
| | | 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 tabButtonVO |
| | | * @return 保存结果 |
| | | */ |
| | | @PostMapping("/addTapButton") |
| | | @PostMapping("/addTabButton") |
| | | public BaseResult addTabButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | try { |
| | | return uiManagerService.addTabButton(tabButtonVO); |
| | |
| | | * @param tabButtonVO |
| | | * @return 修改结果 |
| | | */ |
| | | @PutMapping("/updateTapbutton") |
| | | @PutMapping("/updateTabbutton") |
| | | public BaseResult updateTabButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | try { |
| | | return uiManagerService.updateTabButton(tabButtonVO); |
| | |
| | | * @param tabButtonVO |
| | | * @return |
| | | */ |
| | | @DeleteMapping("/deleteTapButton") |
| | | @DeleteMapping("/deleteTabButton") |
| | | public BaseResult deleteTabButton(@RequestBody PLTabButtonVO tabButtonVO){ |
| | | try { |
| | | return uiManagerService.deleteTabButton(tabButtonVO) ? BaseResult.success("删除单个按钮配置成功!"):BaseResult.fail("删除单个按钮配置失败!"); |
| | |
| | | } |
| | | } |
| | | |
| | | /** |
| | | * 克隆页签 |
| | | * @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); |
| | | } |
| | | } |
| | | |
| | | } |