From 1eb1522eb39f58603155302f072e2ead3045d2ef Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期二, 25 十一月 2025 09:57:49 +0800
Subject: [PATCH] 修改信息
---
ruoyi-ui/src/views/components/superMindmap.vue | 65 ++++++++++++++++++++------------
1 files changed, 40 insertions(+), 25 deletions(-)
diff --git a/ruoyi-ui/src/views/components/superMindmap.vue b/ruoyi-ui/src/views/components/superMindmap.vue
index 7675fc7..0c2da1e 100644
--- a/ruoyi-ui/src/views/components/superMindmap.vue
+++ b/ruoyi-ui/src/views/components/superMindmap.vue
@@ -239,6 +239,9 @@
})
.on("click",function (event, node) {
let data = node.data
+ // alert(23)
+ // alert(213)
+ // alert("/familymodel/jiagenwang/personInfo/" + data.id)
that.$router.push("/familymodel/jiagenwang/personInfo/" + data.id);
})
@@ -250,28 +253,39 @@
return 'pointer'
}
})
- // 娣诲姞澶村儚
- groups.append("image")
- .attr("xlink:href", function (d) {
- return d.data.url; // 澶村儚鍥剧墖鐨勮矾寰�
- })
- .attr("x", 12) // 澶村儚鐩稿浜庤妭鐐圭殑姘村钩浣嶇疆
- .attr("y", 3) // 澶村儚鐩稿浜庤妭鐐圭殑鍨傜洿浣嶇疆
- .attr("width", 24) // 澶村儚鐨勫搴�
- .attr("height", 24); // 澶村儚鐨勯珮搴�
- //缁樺埗鏍囨敞(鑺傜偣鍓嶇殑鐭╁舰)
- groups.append("rect")
- .attr("x", 37)
- .attr("y", 3)
- .attr("width",
- function (d) {
- return d.data.link ? (getPXwidth(d.data.link) + 30) : 0
- }
- )
- .attr("height", 26)
- .attr("fill", "#FFFFFF")
- // 娣诲姞鍦嗚
- .attr("rx", 4)
+ // 娣诲姞澶村儚
+ let pu = null
+ let gp = groups.append("image")
+ .attr("xlink:href", function (d) {
+ // console.log(d.data.purl)
+ pu = d.data.purl
+ // console.log(d.data.prop)
+ // console.log(d.data.label==="")
+ if(d.data.label==="")
+ return ""
+ else
+ return d.data.purl; // 澶村儚鍥剧墖鐨勮矾寰�
+ })
+ if (pu!=null){
+ gp.attr("x", 12) // 澶村儚鐩稿浜庤妭鐐圭殑姘村钩浣嶇疆
+ .attr("y", 3) // 澶村儚鐩稿浜庤妭鐐圭殑鍨傜洿浣嶇疆
+ .attr("width", 24) // 澶村儚鐨勫搴�
+ .attr("height", 24); // 澶村儚鐨勯珮搴�
+
+ //缁樺埗鏍囨敞(鑺傜偣鍓嶇殑鐭╁舰)
+ gp.append("rect")
+ .attr("x", 37)
+ .attr("y", 3)
+ .attr("width",
+ function (d) {
+ return d.data.link ? (getPXwidth(d.data.link) + 30) : 0
+ }
+ )
+ .attr("height", 26)
+ .attr("fill", "#FFFFFF")
+ // 娣诲姞鍦嗚
+ .attr("rx", 4)
+ }
//缁樺埗鏂囧瓧
groups.append("text")
.on("click", function (event, node) {
@@ -281,11 +295,12 @@
return
}
// 鏈夊閾剧殑鑺傜偣锛屾墦寮�鏂扮獥鍙e悗鎭㈠鍒版�濈淮瀵煎浘椤甸潰
- if (data.id) {
+ if (data.spid) {
// window.open(data.url)
-
- that.$router.push("/familymodel/jiagenwang/personInfo/" + data.id);
+
+ that.$router.push("/familymodel/jiagenwang/personInfo/" + data.spid);
//that.$emit('activeChange', 'map')
+
// return
}
// 鏍囧噯鑺傜偣鈥斺�� 浼犲嚭 prop
--
Gitblit v1.9.1