zhaobao 3 年之前
父節點
當前提交
c5af149d08

+ 58 - 0
settings.js

@@ -0,0 +1,58 @@
+module.exports = {
+  title: '节约型医院管理平台',
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether show the settings right-panel
+   */
+  showSettings: false,
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether need tagsView
+   */
+  tagsView: false,
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether fix the header
+   */
+  fixedHeader: false,
+
+  /**
+   * @type {boolean} true | false
+   * @description Whether show the logo in sidebar
+   */
+  sidebarLogo: true,
+  openeds: true,
+  /**
+   * @type {string | array} 'production' | ['production', 'development']
+   * @description Need show err logs component.
+   * The default is only used in the production env
+   * If you want to also use it in dev, you can pass ['production', 'development']
+   */
+  errorLog: 'production',
+
+  /**
+  * 服务API地址
+  */
+  // serverUrl: 'http://192.168.1.214:8080/', // 正式环境
+  // serverUrl: 'http://1.15.92.205:8080/', // 正式环境
+  serverUrl: 'http://114.116.19.14:8080/', // 正式环境
+  devServerUrl: 'http://1.15.92.205:8001/', // 开发环境
+  // devServerUrl: 'http://192.168.3.253:8001/', // 开发环境
+  // devServerUrl: 'http://127.0.0.1:8001/', // 开发环境
+  /**
+  * websocket 地址
+  * dev 开发环境
+  * pro正式环境
+  */
+  appID: '10005',
+  appKey: '82a8bf439373e309',
+  appSecret: '82a8bf439373e309',
+  permitTplId: 7,
+  wsServerUrl: {
+    dev: 'ws://ws.58yunkang.com/websocket/link',
+    pro: 'ws://ws.58yunkang.com/websocket/link'
+  }
+}

二進制
src/assets/images/logo/logo.png


二進制
src/assets/images/logo/logo2.png


二進制
src/assets/images/logo/lylc_jg.png


二進制
src/assets/images/logo/thumb.png


+ 26 - 12
src/layout/components/Navbar.vue

@@ -1,9 +1,18 @@
 <template>
   <div class="navbar">
     <div class="hos-name">
-      <img :src="logo" alt="logo">
+      <!-- <img :src="logo" alt="logo"> -->
+      <h1>节约型医院</h1>
       <hamburger id="hamburger-container" :is-active="sidebar.opened" class="hamburger-container" @toggleClick="toggleSideBar" />
-      <!-- <span v-if="userData.ocName" class="tag">/{{ userData.ocName }}</span> -->
+      <span v-if="userData.ocName" class="tag">{{ userData.ocName }}</span>
+      <countdown v-if="userData.licExpiredTime" :end-time="userData.licExpiredTime">
+        <div
+          slot="process"
+          slot-scope="{ timeObj }"
+          class="tag authorization"
+        >(授权时长:{{ `${timeObj.d}天${timeObj.h}:${timeObj.m}:${timeObj.s}` }})</div>
+        <div slot="finish" class="tag authorization error">(请续费使用)</div>
+      </countdown>
     </div>
     <!-- 隐藏标签 -->
     <breadcrumb v-if="0" id="breadcrumb-container" class="breadcrumb-container" />
@@ -129,8 +138,8 @@ export default {
     },
     initsideTab() {
       let index = 0
-      if (this.isNotNull(localStorage.getItem('tabIndex'))) {
-        index = parseFloat(localStorage.getItem('tabIndex'))
+      if (this.isNotNull(localStorage.getItem('ehpt_tabIndex'))) {
+        index = parseFloat(localStorage.getItem('ehpt_tabIndex'))
       }
       this.sideTabChange(index, {
         path: this.$route.fullPath
@@ -143,8 +152,7 @@ export default {
       this.$emit('initMessage')
     },
     async logout() {
-      localStorage.clear('permission_routes') // 垃圾数据清除
-      localStorage.clear('tabIndex')
+      localStorage.clear()
       await this.$store.dispatch('user/logout')
       this.$router.push(`/login?redirect=${this.$route.fullPath}`)
     },
@@ -153,11 +161,11 @@ export default {
       this.$router.replace({
         path: item.path
       })
-      localStorage.setItem('tabIndex', index)
-      var permission_routes = localStorage.getItem('permission_routes')
+      localStorage.setItem('ehpt_tabIndex', index)
+      var permission_routes = localStorage.getItem('ehpt_permission_routes')
       if (permission_routes) { permission_routes = JSON.parse(permission_routes) } else {
         permission_routes = this.permission_routes
-        localStorage.setItem('permission_routes', JSON.stringify(permission_routes))
+        localStorage.setItem('ehpt_permission_routes', JSON.stringify(permission_routes))
       }
       // 获取权限路由,根据groupId进行过滤
       const filterRoutes = permission_routes.filter((item) => {
@@ -205,10 +213,16 @@ export default {
   }
   .tag{
     font-size: 16px;
-    line-height: 16px;
+    line-height: 1;
     font-weight: 600;
-    padding-left: 10px;
-    margin-top: 10px;
+    padding-left: 5px;
+    margin-top: 15px;
+    &.authorization{
+      font-size: 12px;
+      margin-top: 20px;
+      color: #a33e3e;
+      // color: rgba(255, 255, 255, 0.7);
+    }
   }
 }
   .hamburger-container {

+ 1 - 0
src/store/modules/user.js

@@ -57,6 +57,7 @@ const actions = {
       f.append('password', password)
       login(f).then(response => {
         const { data } = response
+        data.user.licExpiredTime = data.licExpiredTime
         commit('SET_TOKEN', data.accessToken)
         commit('SET_NAME', data.user.userName)
         commit('SET_AVATAR', data.user.userAvatar)

+ 1 - 1
src/utils/index.js

@@ -751,7 +751,7 @@ export function hosStoryTitle(i) {
       '未知',
       '平安医院',
       '质量医院',
-      '满意医院',
+      '节约型医院',
       '智慧医院',
       '健康医院',
       '节约型医院'

+ 1 - 1
src/views/hos/assess/index.vue

@@ -21,7 +21,7 @@ export default {
   props: {},
   data() {
     return {
-      title: '满意医院成果评价',
+      title: '节约型医院成果评价',
       storyId: 3
     }
   },

+ 1 - 1
src/views/hos/components/StoryList.vue

@@ -28,7 +28,7 @@ export default {
         },
         {
           type: 3,
-          title: '满意医院',
+          title: '节约型医院',
           icon: 'icon-common_safety'
         },
         {

+ 1 - 1
src/views/hos/doc/index.vue

@@ -25,7 +25,7 @@ export default {
   mounted() { this.getData() },
   methods: {
     getData() {
-      this.$refs['FileList'].loadData(this.dirId, '满意医院电子文档')
+      this.$refs['FileList'].loadData(this.dirId, '节约型医院电子文档')
     }
   }
 }

+ 1 - 1
src/views/hos/instruction/index.vue

@@ -20,7 +20,7 @@ export default {
   data() {
     return {
       artCatId: 31,
-      title: '满意医院-实施计划'
+      title: '节约型医院-实施计划'
     }
   },
   mounted() {},

+ 1 - 1
src/views/hos/news/index.vue

@@ -25,7 +25,7 @@ export default {
   mounted() { this.getData() },
   methods: {
     getData() {
-      this.$refs['ArtList'].loadData(this.artCatId, '满意医院-最新动态')
+      this.$refs['ArtList'].loadData(this.artCatId, '节约型医院-最新动态')
     }
   }
 }

+ 2 - 2
src/views/hos/overview/index.vue

@@ -4,7 +4,7 @@
       <el-col :span="6">
         <div class="group-box">
           <div class="group-title">
-            满意医院-{{ year }}年{{ month }}月
+            节约型医院-{{ year }}年{{ month }}月
             <ScoreIcon :score="score" />
           </div>
           <div class="group-content">
@@ -57,7 +57,7 @@
       <el-col :span="12">
         <div class="group-box">
           <div class="group-title">
-            满意医院-待改进项目
+            节约型医院-待改进项目
             <el-link @click="handleMoreAssess()">立即评价</el-link>
           </div>
           <el-row>

+ 1 - 1
src/views/hos/report/index.vue

@@ -21,7 +21,7 @@ export default {
     ])
   },
   mounted() {
-    this.selectStory(3, '满意医院')
+    this.selectStory(3, '节约型医院')
   },
   methods: {
     selectStory(storyId, storyTitle) {

+ 1 - 1
src/views/hos/story/index.vue

@@ -1,6 +1,6 @@
 <template>
   <div class="page-container">
-    <StoryPointList :story-id="3" title="满意医院" />
+    <StoryPointList :story-id="3" title="节约型医院" />
   </div>
 </template>
 

+ 1 - 1
src/views/hos/task/index.vue

@@ -18,7 +18,7 @@ export default {
   components: { TaskCounter, TaskList },
   data() {
     return {
-      title: '满意医院工作任务'
+      title: '节约型医院工作任务'
     }
   },
   mounted() {

+ 1 - 1
vue.config.js

@@ -25,7 +25,7 @@ module.exports = {
    * Detail: https://cli.vuejs.org/config/#publicpath
    */
   publicPath: './',
-  outputDir: 'dist',
+  outputDir: 'ehpt',
   assetsDir: 'static',
   lintOnSave: process.env.NODE_ENV === 'development',
   productionSourceMap: false,