Sfoglia il codice sorgente

调整系统名称为配置项

cfort 2 anni fa
parent
commit
2842f5e513
2 ha cambiato i file con 6 aggiunte e 2 eliminazioni
  1. 3 1
      public/config.js
  2. 3 1
      src/components/jbd-panel/index.vue

+ 3 - 1
public/config.js

@@ -62,7 +62,9 @@
         //element 颜色
         ELEMENT_COLOR: '#409EFF',
         // 系统版本
-        VERSION: '1.0.0'
+        VERSION: '1.0.0',
+        // 系统名称
+        SYSTEM_NAME: '金通医学实验室标准化数智化管理平台'
     }
 
 })(window)

+ 3 - 1
src/components/jbd-panel/index.vue

@@ -8,7 +8,7 @@
 -->
 <template>
     <div class="jbd-sys-title">
-        <span class="jbd-sys-title-cont-center" style="margin-left: 40px;float: left;">金通医学实验室标准化数智化管理平台</span>
+        <span class="jbd-sys-title-cont-center" style="margin-left: 40px;float: left;">{{ systemName }}</span>
         <span style="float: right; " class="jbd-sys-title-contact">
             <br>
             深圳市金源信通科技有限公司开发 <i style="margin-left: 10px;" class="el-icon-phone" /> 0755-2642-4403
@@ -17,12 +17,14 @@
     </div>
 </template>
 <script>
+const __IBPS_CONFIG__ = window.__IBPS_CONFIG__ || {}
 export default {
     data () {
         const { first = '' } = this.$store.getters.level || {}
         const { deptList = [] } = this.$store.getters || {}
         const dept = deptList.find(i => i.positionId === first)
         return {
+            systemName: __IBPS_CONFIG__.SYSTEM_NAME,
             deptName: dept ? dept.positionName : ''
         }
     }