From ca73a173f008c8d7a9d700bad897ca24fe2d2203 Mon Sep 17 00:00:00 2001
From: k94314517 <8417338+k94314517@user.noreply.gitee.com>
Date: 星期一, 16 十月 2023 09:29:57 +0800
Subject: [PATCH] 111

---
 minipro_standard/pages/personal/personal.vue |   22 +++++++++++++---------
 1 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/minipro_standard/pages/personal/personal.vue b/minipro_standard/pages/personal/personal.vue
index 22f5c25..7bc7077 100644
--- a/minipro_standard/pages/personal/personal.vue
+++ b/minipro_standard/pages/personal/personal.vue
@@ -1,41 +1,45 @@
 <template>
 	<view class="info">
 		<view class="info_portrait">
-			<image src="@/static/2@2x.png" mode="widthFix" />
-			<text>鐢ㄦ埛鍚�</text>
+			<image :src="userInfo.avatar ? userInfo.avatar : avatar" mode="widthFix" />
+			<text>{{userInfo.companyUser ? userInfo.companyUser.name : ''}}</text>
 		</view>
 		<view class="info_list">
 			<view class="info_list_item">
 				<text>鏄电О</text>
-				<text>鏆傛棤鏄电О</text>
+				<text>{{userInfo.realname ? userInfo.realname : '鏆傛棤鏄电О'}}</text>
 			</view>
 			<view class="info_list_item">
 				<text>鎵嬫満鍙�</text>
-				<text>鏆傛棤鎵嬫満鍙�</text>
+				<text>{{userInfo.companyUser.phone ? userInfo.companyUser.phone : '鏆傛棤鎵嬫満鍙�'}}</text>
 			</view>
 			<view class="info_list_item">
 				<text>鎵�灞為儴闂�</text>
-				<text>鏆傛棤鎵�灞為儴闂�</text>
+				<text>{{userInfo.department.name ? userInfo.department.name : '鏆傛棤鎵�灞為儴闂�'}}</text>
 			</view>
 			<view class="info_list_item">
 				<text>宀椾綅</text>
-				<text>鏆傛棤宀椾綅</text>
+				<text>{{userInfo.companyUser.positionName ? userInfo.companyUser.positionName : '鏆傛棤宀椾綅'}}</text>
 			</view>
 			<view class="info_list_item">
 				<text>褰撳墠缁勭粐</text>
-				<text>鏆傛棤缁勭粐</text>
+				<text>{{userInfo.rootDepartment.name ? userInfo.rootDepartment.name : '鏆傛棤缁勭粐'}}</text>
 			</view>
 		</view>
 	</view>
 </template>
 
 <script>
+	import { mapState } from 'vuex'
 	export default {
 		data() {
 			return {
-				
+				avatar: require('@/static/2@2x.png'),
 			};
-		}
+		},
+		computed: mapState([
+			'userInfo'
+		])
 	}
 </script>
 

--
Gitblit v1.9.3