zhaobao 3 yıl önce
ebeveyn
işleme
c5bae6a0a5

+ 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('qhpt_tabIndex'))) {
+        index = parseFloat(localStorage.getItem('qhpt_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('qhpt_tabIndex', index)
+      var permission_routes = localStorage.getItem('qhpt_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('qhpt_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 - 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: 'qhpt',
   assetsDir: 'static',
   lintOnSave: process.env.NODE_ENV === 'development',
   productionSourceMap: false,