From 18715a9d20518abb1374408007759ab2988d1150 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期二, 08 十月 2024 11:58:35 +0800
Subject: [PATCH] 页签克隆
---
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java | 52 ++++++++++++++++++++++++++++++++++++++++++++--------
1 files changed, 44 insertions(+), 8 deletions(-)
diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java
index 547d42d..f3707d7 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/controller/UIManagerController.java
@@ -397,7 +397,6 @@
}
}
-
/**
* 涓氬姟绫诲瀷涓嬫媺鏌ヨ
* @param baseQueryObject selectBtmType 閫夋嫨鐨勬簮瀵硅薄,甯﹀垎椤典俊鎭�
@@ -412,6 +411,25 @@
}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);
}
@@ -500,9 +518,9 @@
* @return 淇濆瓨缁撴灉
*/
@PostMapping("/addTapButton")
- public BaseResult addTapButton(@RequestBody PLTabButtonVO tabButtonVO){
+ 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);
@@ -516,10 +534,10 @@
* @param tabButtonVO
* @return 淇敼缁撴灉
*/
- @PutMapping("/updateTapButton")
- public BaseResult updateTapButton(@RequestBody PLTabButtonVO tabButtonVO){
+ @PutMapping("/updateTapbutton")
+ 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);
@@ -534,9 +552,9 @@
* @return
*/
@DeleteMapping("/deleteTapButton")
- public BaseResult deleteTapButton(@RequestBody PLTabButtonVO tabButtonVO){
+ 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);
@@ -614,4 +632,22 @@
}
}
+ /**
+ * 閫氳繃涓氬姟绫诲瀷鑾峰彇UI涓婁笅鏂囧寘鍚叾涓嬪叧鑱旂殑鍖哄煙瀹氫箟>椤甸潰瀹氫箟绛夋墍鏈夊叧鑱旀暟鎹紝褰掔撼鎴恡ree缁撴瀯
+ * @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);
+ }
+ }
+
}
--
Gitblit v1.9.3