Jelajahi Sumber

reqiurement_226

cldu 2 bulan lalu
induk
melakukan
ffe09975f9
4 mengubah file dengan 51 tambahan dan 40 penghapusan
  1. 12 3
      src/layouts/Index.vue
  2. 2 1
      src/views/Login.vue
  3. 33 33
      src/views/tabbar/Home.vue
  4. 4 3
      src/views/tabbar/User.vue

+ 12 - 3
src/layouts/Index.vue

@@ -4,12 +4,14 @@ import {Base64} from 'js-base64'
 import { useRouter } from 'vue-router'
 import {useUserInfo} from '@/hooks/common'
 import {useCachedViewsStore} from '@/store/modules/cachedViews'
+import {_apiLogin} from '@/api/user'
 
 const cachedViewsStore=useCachedViewsStore()
 
 const cachedViewsList=computed(()=>{
     return cachedViewsStore.cachesList||[]
 })
+let CompanyName = ref('')
 
 const router=useRouter()
 
@@ -31,7 +33,14 @@ function goBack(){
     }
 }
 
-
+function getCompanyName(){
+    _apiLogin.getBaseInfo().then(res=>{
+        if(res.Ret == 200){
+            CompanyName.value = res.Data.CompanyName.ConfVal;
+        }
+    })
+}
+getCompanyName()
 
 </script>
 
@@ -57,11 +66,11 @@ function goBack(){
                     </div>
                     <div class="info-item">
                         <span>公司名称:</span>
-                        <span>弘则弥道(上海)投资咨询有限公司</span>
+                        <span>{{ CompanyName }}</span>
                     </div>
                     <div class="info-item">
                         <span>所属部门:</span>
-                        <span>{{userInfo.DepartmentName}}</span>
+                        <span>{{userInfo.GroupName || userInfo.DepartmentName}}</span>
                     </div>
                     <div class="info-item">
                         <span>角色:</span>

+ 2 - 1
src/views/Login.vue

@@ -132,7 +132,8 @@ function userLogin(params,values){
             RoleTypeCode:res.Data.RoleTypeCode,
             SysRoleTypeCode:res.Data.SysRoleTypeCode,
             AdminId:res.Data.AdminId,
-            DepartmentName:res.Data.DepartmentName
+            DepartmentName:res.Data.DepartmentName,
+            GroupName:res.Data.GroupName,
         }
         localStorage.setItem('userInfo',Base64.encode(JSON.stringify(userInfo)))
         router.replace('/')

+ 33 - 33
src/views/tabbar/Home.vue

@@ -106,17 +106,17 @@ const menuConfig=[
         backgroundColor:'#FFF5F3',
         show:false
     },
-    {
-        name:'数据源',
-        des:'数据对接与整合',
-        key:'数据源',
-        type:'zh',
-        level:1,
-        path:'',
-        icon:getStaticImg('tabbar/icon_dataSource.png'),
-        backgroundColor:'#F8F9FF',
-        show:false
-    },
+    // {
+    //     name:'数据源',
+    //     des:'数据对接与整合',
+    //     key:'数据源',
+    //     type:'zh',
+    //     level:1,
+    //     path:'',
+    //     icon:getStaticImg('tabbar/icon_dataSource.png'),
+    //     backgroundColor:'#F8F9FF',
+    //     show:false
+    // },
     {
         name:'指标库',
         des:'数据归类与分析',
@@ -128,17 +128,17 @@ const menuConfig=[
         backgroundColor:'#F5FAFF',
         show:false
     },
-    {
-        name:'预测指标',
-        des:'模型预测趋势',
-        key:'预测指标',
-        type:'zh',
-        level:1,
-        path:'',
-        icon:getStaticImg('tabbar/icon_preEDB.png'),
-        backgroundColor:'#FFF5F3',
-        show:false
-    },
+    // {
+    //     name:'预测指标',
+    //     des:'模型预测趋势',
+    //     key:'预测指标',
+    //     type:'zh',
+    //     level:1,
+    //     path:'',
+    //     icon:getStaticImg('tabbar/icon_preEDB.png'),
+    //     backgroundColor:'#FFF5F3',
+    //     show:false
+    // },
     {
         name:'图库',
         des:'数据可视化平台',
@@ -161,17 +161,17 @@ const menuConfig=[
         backgroundColor:'#F5FAFF',
         show:false
     },
-    {
-        name:'表格',
-        des:'快速建立平衡表',
-        key:'表格',
-        type:'zh',
-        level:1,
-        path:'',
-        icon:getStaticImg('tabbar/icon_table.png'),
-        backgroundColor:'#FFFBF6',
-        show:false
-    },
+    // {
+    //     name:'表格',
+    //     des:'快速建立平衡表',
+    //     key:'表格',
+    //     type:'zh',
+    //     level:1,
+    //     path:'',
+    //     icon:getStaticImg('tabbar/icon_table.png'),
+    //     backgroundColor:'#FFFBF6',
+    //     show:false
+    // },
 ]
 const menuOpts=computed(()=>{
     // 过滤中英文

+ 4 - 3
src/views/tabbar/User.vue

@@ -5,7 +5,7 @@ import { useRouter } from 'vue-router'
 import {useUserInfo} from '@/hooks/common'
 import {_apiLogin} from '@/api/user'
 const router=useRouter()
-
+let CompanyName = ref('')
 let userInfo=useUserInfo()
 
 function handleLoginOut(){
@@ -16,6 +16,7 @@ function handleLoginOut(){
 const getSetTitle=()=>{
     _apiLogin.getBaseInfo().then(res=>{
         if(res.Ret == 200){
+            CompanyName.value = res.Data.CompanyName.ConfVal;
             document.title=res.Data.TabNameMobile?res.Data.TabNameMobile.ConfVal:''
         }
     })
@@ -36,11 +37,11 @@ getSetTitle()
         <div class="info-list">
             <div class="item">
                 <span>公司名称:</span>
-                <span>弘则弥道(上海)投资咨询有限公司</span>
+                <span>{{ CompanyName }}</span>
             </div>
             <div class="item">
                 <span>所属部门:</span>
-                <span>{{userInfo.DepartmentName}}</span>
+                <span>{{userInfo.GroupName || userInfo.DepartmentName}}</span>
             </div>
             <div class="item">
                 <span>角色:</span>