From 3549fed09cc87c323ca6c8a3d55c83fc495f4b7e Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期日, 10 九月 2023 11:55:19 +0800
Subject: [PATCH] 家庭设备的打印功能已经没有问题了 家庭设备详情的时候,不可以上传文件 家谱思维导图可以打击查看信息了

---
 ruoyi-ui/src/views/components/superMindmap.vue |   25 +++++++++++++++++++++----
 1 files changed, 21 insertions(+), 4 deletions(-)

diff --git a/ruoyi-ui/src/views/components/superMindmap.vue b/ruoyi-ui/src/views/components/superMindmap.vue
index 6ce4c1b..b1bd12b 100644
--- a/ruoyi-ui/src/views/components/superMindmap.vue
+++ b/ruoyi-ui/src/views/components/superMindmap.vue
@@ -3,6 +3,7 @@
 </template>
 <script>
     import * as d3 from 'd3';
+import { useRoute,useRouter } from 'vue-router'
 
     export default {
         props: {
@@ -79,6 +80,7 @@
         methods: {
             drawMap() {
                 let that = this
+                //alert(that.$router)
                 // 婧愭暟鎹�
                 let data = {}
                 // 鍒ゆ柇data鏄惁涓虹┖瀵硅薄
@@ -222,6 +224,19 @@
                     .text(function (d) {
                         return d.data.link;
                     })
+                    .on("click",function (event, node) {
+                             let data = node.data
+                      that.$router.push("/familymodel/jiagenwang/personInfo/" + data.id);
+
+                      })
+                      .attr("cursor",
+                          function (d) {
+                              if (d.data.disabled) {
+                                  return 'not-allowed'
+                              } else {
+                                  return 'pointer'
+                              }
+                          })
                 //缁樺埗鏂囧瓧
                 groups.append("text")
                     .on("click", function (event, node) {
@@ -231,10 +246,12 @@
                             return
                         }
                         // 鏈夊閾剧殑鑺傜偣锛屾墦寮�鏂扮獥鍙e悗鎭㈠鍒版�濈淮瀵煎浘椤甸潰
-                        if (data.url) {
-                            window.open(data.url)
-                            that.$emit('activeChange', 'map')
-                            return
+                        if (data.id) {
+                           // window.open(data.url)
+
+                            that.$router.push("/familymodel/jiagenwang/personInfo/" + data.id);
+                            //that.$emit('activeChange', 'map')
+                           // return
                         }
                         // 鏍囧噯鑺傜偣鈥斺�� 浼犲嚭 prop
                         if (data.dicType) {

--
Gitblit v1.9.1