From 53bf1e11c46964e15ab2d334457066ed3b68c98d Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期五, 06 六月 2025 12:57:57 +0800
Subject: [PATCH] refactor(lb-eims):调整代码和更新配置- 注释掉 EimsEquImportVo 中的 @ExcelProperty 注解 - 优化 EimsEquImportListener 中的异常日志输出- 更新 snailjob 监控页面的 iframe 源地址- 修改移动端项目的 API 基础 URL - 优化移动端页面跳转逻辑 - 改进维修请求列表的接单操作流程

---
 eims-ui-mobile/src/pages/my/index.vue |   51 +++++++++++++++++++++++++++++++++++++++++++++++++--
 1 files changed, 49 insertions(+), 2 deletions(-)

diff --git a/eims-ui-mobile/src/pages/my/index.vue b/eims-ui-mobile/src/pages/my/index.vue
index 169627b..41c97d5 100644
--- a/eims-ui-mobile/src/pages/my/index.vue
+++ b/eims-ui-mobile/src/pages/my/index.vue
@@ -1,6 +1,7 @@
 <route lang="json5" type="page">
 {
   layout: 'tabbar',
+  needLogin: true,
   style: {
     navigationBarTitleText: '鎴戠殑',
   },
@@ -8,11 +9,57 @@
 </route>
 
 <template>
-  <view class="pt-40 text-xl text-center text-green-500">鎴戠殑椤甸潰</view>
+  <view class="bg-base">
+    <wd-cell-group border>
+      <wd-cell title="鐧诲綍鐢ㄦ埛" :value="realName" icon="user"  custom-icon-class="icon-color-base" is-link />
+      <wd-cell title="瑙掕壊" :value="loginRoleName()" icon="bags"  custom-icon-class="icon-color-base" is-link />
+      <wd-cell title="浜哄憳绠$悊" icon="usergroup" is-link  custom-icon-class="icon-color-base" @click="handleInfo" />
+    </wd-cell-group>
+    <wd-cell-group border class="mt-2">
+      <wd-cell title="閫�鍑虹櫥褰�" icon="login" is-link  custom-icon-class="icon-color-base" @click="handleLogout" />
+    </wd-cell-group>
+  </view>
 </template>
 
 <script lang="ts" setup>
-//
+import { useUserStore, useAccessStore, useSystemConfigStore } from '@/store'
+import { loginRoleName } from '@/utils/RoleUtils'
+import { useMessage } from 'wot-design-uni'
+const message = useMessage()
+const userStore = useUserStore()
+const accessStore = useAccessStore()
+const configStore = useSystemConfigStore()
+const realName = computed(() => userStore?.userInfo?.realName)
+
+function handleLogout() {
+  if (!isLogined()) {
+    uni.navigateTo({ url: '/pages/login/index' })
+    return false
+  }
+  message
+    .confirm({
+      msg: '鎻愮ず',
+      title: '纭畾閫�鍑虹櫥褰曞悧锛�',
+    })
+    .then(() => {
+      userStore.clearUserInfo()
+      accessStore.clearAccessInfo()
+      configStore.clearConfigInfo()
+      uni.navigateTo({ url: '/pages/login/index' })
+    })
+    .catch(() => {})
+}
+
+const isLogined = () => {
+  return accessStore.isLogined
+}
+
+function handleInfo() {
+  uni.showToast({
+    title: '鍔熻兘寮�鍙戜腑',
+    icon: 'none',
+  })
+}
 </script>
 
 <style lang="scss" scoped>

--
Gitblit v1.9.3