Browse Source

仅显示有权限的应用

庄逸洲 6 years ago
parent
commit
eb66839c45
2 changed files with 13 additions and 14 deletions
  1. 1 1
      config/dev.env.js
  2. 12 13
      src/views/layout/components/Navbar.vue

+ 1 - 1
config/dev.env.js View File

6
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
8
   ENV_CONFIG: '"dev"',
9
-  BASE_API: '"http://localhost:9529"',//'"http://localhost:9529"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
9
+  BASE_API: '"http://api.xt.test.sgjyun.com"',//'"http://localhost:9529"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527
10
 }
10
 }

+ 12 - 13
src/views/layout/components/Navbar.vue View File

7
       <div>
7
       <div>
8
         <el-dropdown trigger="click" style="color:#fff;">
8
         <el-dropdown trigger="click" style="color:#fff;">
9
         <span class="el-dropdown-link">{{ this.$store.getters.xt_user.org.org_name }}
9
         <span class="el-dropdown-link">{{ this.$store.getters.xt_user.org.org_name }}
10
-          <!--<i class="el-icon-arrow-down el-icon&#45;&#45;right"></i>-->
11
         </span>
10
         </span>
12
         </el-dropdown>
11
         </el-dropdown>
13
       </div>
12
       </div>
14
       <div class="system-nav">
13
       <div class="system-nav">
14
+        <div class="system-nav-menu active">
15
+          <a>
16
+            <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
17
+          </a>
18
+        </div>
19
+        <div class="system-nav-menu">
20
+          <a href="http://cdm.kuyicloud.com/">
21
+          <!-- <a href=" http://cdm.test.sgjyun.com/"> -->
22
+            <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
23
+          </a>
24
+        </div>
15
         <div class="system-nav-menu">
25
         <div class="system-nav-menu">
16
           <a  href="http://jk.kuyicloud.com/">
26
           <a  href="http://jk.kuyicloud.com/">
17
           <!-- <a href="http://test1.sgjyun.com/"> -->
27
           <!-- <a href="http://test1.sgjyun.com/"> -->
24
             <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
34
             <span><i class="icon iconfont icon-service_fill"></i> 微商城</span>
25
           </a>
35
           </a>
26
         </div>
36
         </div>
27
-        <div class="system-nav-menu active">
28
-          <a>
29
-            <span><i class="icon iconfont icon-jiankangshuidi"></i> 血透管理</span>
30
-          </a>
31
-        </div>
32
-        <div class="system-nav-menu">
33
-          <a href="http://cdm.kuyicloud.com/">
34
-          <!-- <a href=" http://cdm.test.sgjyun.com/"> -->
35
-            <span><i class="icon iconfont icon-manbing-xuanzhong"></i> 慢病管理</span>
36
-          </a>
37
-        </div>
38
 
37
 
39
         <div class="system-nav-menu">
38
         <div class="system-nav-menu">
40
           <a href="http://sso.kuyicloud.com/org/app/create">
39
           <a href="http://sso.kuyicloud.com/org/app/create">
115
         this.$router.push('/service')
114
         this.$router.push('/service')
116
         return false
115
         return false
117
       }
116
       }
117
+
118
     },
118
     },
119
     create() {
119
     create() {
120
       var xtuser = this.$store.getters.xt_user
120
       var xtuser = this.$store.getters.xt_user
121
       this.orgname = xtuser.org.org_name
121
       this.orgname = xtuser.org.org_name
122
       console.log(this.orgname)
122
       console.log(this.orgname)
123
-
124
     }
123
     }
125
   }
124
   }
126
 </script>
125
 </script>