From c25de8e4afc7096f062a533d0c512d53d2dc8985 Mon Sep 17 00:00:00 2001 From: hanyuqing <1106611654@qq.com> Date: Sun, 28 Sep 2025 15:14:38 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E6=96=87=E4=BB=B6=E5=A4=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gyxtp/src/view/graphPageCopy0926.vue | 5 +++++ .../com/ruoyi/web/controller/system/ZhyRelationshipController.java | 2 ++ .../src/main/java/com/ruoyi/api/controller/DocApiController.java | 2 ++ 3 files changed, 9 insertions(+) diff --git a/gyxtp/src/view/graphPageCopy0926.vue b/gyxtp/src/view/graphPageCopy0926.vue index 60c0f72..62bf430 100644 --- a/gyxtp/src/view/graphPageCopy0926.vue +++ b/gyxtp/src/view/graphPageCopy0926.vue @@ -1622,6 +1622,11 @@ tr { font-weight: 600; color:white; } +.el-table .success-row:hover > .el-table__cell { + background-color: red !important; + color: white !important; + font-weight: 600; +} .el-table .cell{ width:400px; } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyRelationshipController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyRelationshipController.java index 25453a4..61da64b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyRelationshipController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/ZhyRelationshipController.java @@ -167,6 +167,7 @@ public class ZhyRelationshipController extends BaseController } zhyRelationship.setTargetName(dd2.getDocTitle()); zhyRelationship.setIsgraph(1l); + zhyRelationship.setRelationship("相关"); zhyRelationshipMapper.insertZhyRelationship(zhyRelationship); String cqr = "MATCH (a:Doc),(b:Doc) WHERE a.docId = '"+zhyRelationship.getSource()+"' AND b.docId = '"+zhyRelationship.getTarget()+"'CREATE (a)-[r:"+zhyRelationship.getRelationship()+"{ name: '"+zhyRelationship.getRelationship()+ "', DbId: '"+zhyRelationship.getId()+"' }] -> (b) RETURN r"; neo4jUtil.excuteCypherSql(cqr); @@ -219,6 +220,7 @@ public class ZhyRelationshipController extends BaseController ZhyDoc dd2 = test1Mapper.selectDocById(vv); zhyRelationship.setTargetName(dd2.getDocTitle()); zhyRelationship.setIsgraph(1l); + zhyRelationship.setRelationship("相关"); zhyRelationshipMapper.insertZhyRelationship(zhyRelationship); String cqr = "MATCH (a:Doc),(b:Doc) WHERE a.docId = '"+zhyRelationship.getSource()+"' AND b.docId = '"+zhyRelationship.getTarget()+"'CREATE (a)-[r:"+zhyRelationship.getRelationship()+"{ name: '"+zhyRelationship.getRelationship()+ "', DbId: '"+zhyRelationship.getId()+"' }] -> (b) RETURN r"; neo4jUtil.excuteCypherSql(cqr); diff --git a/ruoyi-api/src/main/java/com/ruoyi/api/controller/DocApiController.java b/ruoyi-api/src/main/java/com/ruoyi/api/controller/DocApiController.java index f681518..8e7feb8 100644 --- a/ruoyi-api/src/main/java/com/ruoyi/api/controller/DocApiController.java +++ b/ruoyi-api/src/main/java/com/ruoyi/api/controller/DocApiController.java @@ -1754,6 +1754,7 @@ public class DocApiController extends BaseController { taskInfo.setName2(doc2.getDocTitle()); taskInfo.setGroupId(1l); taskInfo.setStatus(0); + zhyTaskInfoService.insertZhyTaskInfo(taskInfo); } } for(int i=0;i