From 6cba92f5ae176bbc58f7e822de00b317a2a7f16b Mon Sep 17 00:00:00 2001
From: feige <feige@qq.com>
Date: 星期二, 21 十月 2025 14:59:53 +0800
Subject: [PATCH] 修改了对应的代码
---
ruoyi-ui/src/views/index.vue | 24 ++++++++++++++++--------
1 files changed, 16 insertions(+), 8 deletions(-)
diff --git a/ruoyi-ui/src/views/index.vue b/ruoyi-ui/src/views/index.vue
index 97d95f2..6b2f046 100644
--- a/ruoyi-ui/src/views/index.vue
+++ b/ruoyi-ui/src/views/index.vue
@@ -3,7 +3,7 @@
<!-- <div class="text" style="background-color: #FEF7FC;" >
<h1 style="font-size: 21px;">{{ greeting +'锛�' + user.userName }}</h1></div> -->
<div class="image-container" style="background-color: #FEF7FC;">
- <img class="top-image" src="../assets/images/zhang.png" alt="Top Image">
+ <img class="top-image" src="../assets/images/awd.png" alt="Top Image">
</div>
<superMindmap v-if="showMindMap" :active='active' :data="mapData" @activeChange="activeChange" class="mind-map-container ">
@@ -78,8 +78,12 @@
getUserProfile().then(response => {
this.user = response.data;
});
+
let clanId = this.$store.state.user.clanId
- // alert(clanId)
+ if(clanId==null)
+ {
+ //alert(clanId)
+ return}
listRoot(10,clanId).then(response =>{
this.rootList =response.data;
@@ -98,24 +102,28 @@
if (mpdata == null)
return null;
var data = {
- "label": mpdata['spouse'] != null ? eval(mpdata['spouse']).nickName : '',
- "prop": mpdata['nickName'],
+ "label": mpdata['spouse'] != null ? eval(mpdata['spouse']).oldName : '',
+ "prop": mpdata['oldName'],
"url": mpdata['url']!=null?'https://www.bendudu.com:8080/'+mpdata['url']:tp,
"purl": mpdata['spouse'] != null ? (mpdata['spouse'].url!=null? 'https://www.bendudu.com:8080/'+mpdata['spouse'].url:tp):tp,
"id": mpdata['userId'],
- "link": mpdata['nickName'],
+ "spid": mpdata['spouseId'] != null ? mpdata['spouseId'] : '',
+
+ "link": mpdata['oldName'],
"children": []
};
if (mpdata['childList'] != null) {
for (var i = 0; i < mpdata['childList'].length; i++) {
var dt = {
- "label": mpdata['childList'][i]['spouse'] != null ? eval(mpdata['childList'][i]['spouse']).nickName : "",
- "prop": mpdata['childList'][i]['nickName'],
+ "label": mpdata['childList'][i]['spouse'] != null ? eval(mpdata['childList'][i]['spouse']).oldName : "",
+ "prop": mpdata['childList'][i]['oldName'],
"url": mpdata['childList'][i]['url']!=null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['url']:tp,
"id": mpdata['childList'][i]['userId'],
+ "spid": mpdata['childList'][i]['spouseId'] != null ? mpdata['childList'][i]['spouseId'] : '',
+
"purl": (mpdata['childList'][i]['spouse'] != null ) ?( mpdata['childList'][i]['spouse'].url!= null?'https://www.bendudu.com:8080/'+mpdata['childList'][i]['spouse'].url:tp):tp,
- "link": mpdata['childList'][i]['nickName'],
+ "link": mpdata['childList'][i]['oldName'],
"children": []
};
if (mpdata['childList'][i]['childList'] != null) {
--
Gitblit v1.9.1