From 28a6ee45ba66f9993f2310594bb7e94ec276eb2a Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 12 八月 2024 16:15:16 +0800
Subject: [PATCH] 生命周期:在非编辑状态下,左边的状态列表不显示,中间的图不能拖动。在编辑状态下,左边的生命周期列表不能切换选中项。

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsLifeCycleServiceImpl.java |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsLifeCycleServiceImpl.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsLifeCycleServiceImpl.java
index a8e5b77..bbf8729 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsLifeCycleServiceImpl.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsLifeCycleServiceImpl.java
@@ -238,6 +238,7 @@
 				Arrays.stream(bounds).forEach(bound->{
 					OsLifeCycleLineBoundVO boundVO = new OsLifeCycleLineBoundVO();
 					boundVO.setId(bound.id);
+					boundVO.setName(bound.name);
 					boundVO.setCellx(bound.cellx);
 					boundVO.setCelly(bound.celly);
 					boundVO.setCellh(bound.cellh);
@@ -299,7 +300,7 @@
 		lifeCyle.name = lifeCycleVO.getId();
 		lifeCyle.tag = lifeCycleVO.getName();
 		lifeCyle.oid = lifeCycleVO.getOid();
-		String userId = "developer";//WebThreadLocalUtil.getCurrentUserSessionInfoInThread().getUserId();
+		String userId = WebThreadLocalUtil.getCurrentUserSessionInfoInThread().getUserId();
 		lifeCyle.creator = Func.isBlank(lifeCycleVO.getCreator()) ? userId:lifeCycleVO.getCreator();
 		lifeCyle.description = lifeCycleVO.getDescription();
 		lifeCyle.modifier = Func.isBlank(lifeCycleVO.getLastModifier()) ? userId:lifeCycleVO.getLastModifier();
@@ -863,13 +864,24 @@
 					group.setStartStatus(po.getStartStatus());
 					group.setDescription(po.getDescription());
 					groupPOMap.put(key, group);
-
+					//绗竴琛岃捣濮嬬姸鎬侀渶瑕佸崟鐙鐞�
+					if(po.getRowIndex().equals("1")){
+						OsLifeCycleLineBoundVO boundVO = new OsLifeCycleLineBoundVO();
+						boundVO.setName(po.getStartStatus());
+						boundVO.setCellh("30.0");
+						boundVO.setCellw("80.0");
+						boundVO.setCellx(String.valueOf(200+(Integer.parseInt(po.getRowIndex())*60)));
+						boundVO.setCelly(String.valueOf(300+(Integer.parseInt(po.getRowIndex())*60)));
+						boundVO.setCellicon("");
+						defaultBoundList.add(boundVO);
+					}
 					//澶勭悊鐢熷懡鍛ㄦ湡鍥炬爣鐨勯粯璁ょ殑鍧愭爣淇℃伅
 					OsLifeCycleLineBoundVO boundVO = new OsLifeCycleLineBoundVO();
+					boundVO.setName(po.getTargetLifeStatus());
 					boundVO.setCellh("30.0");
 					boundVO.setCellw("80.0");
-					boundVO.setCellx(String.valueOf(200+(Integer.parseInt(po.getRowIndex())*60)));
-					boundVO.setCelly(String.valueOf(300+(Integer.parseInt(po.getRowIndex())*60)));
+					boundVO.setCellx(String.valueOf(250+(Integer.parseInt(po.getRowIndex())*60)));
+					boundVO.setCelly(String.valueOf(350+(Integer.parseInt(po.getRowIndex())*60)));
 					boundVO.setCellicon("");
 					defaultBoundList.add(boundVO);
 				}

--
Gitblit v1.9.3