Explorar o código

院区系统名称

seimin hai 1 ano
pai
achega
5fac33be8f
Modificáronse 3 ficheiros con 8 adicións e 6 borrados
  1. 2 2
      package.json
  2. 5 3
      src/components/AppHeader.vue
  3. 1 1
      src/main.js

+ 2 - 2
package.json

@@ -3,8 +3,8 @@
3
   "version": "0.1.0",
3
   "version": "0.1.0",
4
   "private": true,
4
   "private": true,
5
   "scripts": {
5
   "scripts": {
6
-    "start": "vue-cli-service serve",
7
-    "build": "vue-cli-service build",
6
+    "start": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve",
7
+    "build": "set NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service build",
8
     "lint": "vue-cli-service lint",
8
     "lint": "vue-cli-service lint",
9
     "development": "node ./upload/development.js",
9
     "development": "node ./upload/development.js",
10
     "production": "node ./upload/production.js"
10
     "production": "node ./upload/production.js"

+ 5 - 3
src/components/AppHeader.vue

@@ -100,8 +100,8 @@ export default {
100
         this.runTime()
100
         this.runTime()
101
       }, 500)
101
       }, 500)
102
     },
102
     },
103
-    getSysNameAndLogo () {
104
-      get('/auth/getSysNameAndLogo')
103
+    getSysNameAndLogo (hosId) {
104
+      get('/auth/getSysNameAndLogo' + (hosId ? '?hosId=' + hosId : ''))
105
         .then((result) => {
105
         .then((result) => {
106
           this.logoTitle = result.largeScreenName || ''
106
           this.logoTitle = result.largeScreenName || ''
107
           this.faviconUrl = location.origin + '/file' + result.favicon || ''
107
           this.faviconUrl = location.origin + '/file' + result.favicon || ''
@@ -111,8 +111,10 @@ export default {
111
     }
111
     }
112
   },
112
   },
113
   mounted () {
113
   mounted () {
114
+    const loginUser = JSON.parse(localStorage.getItem('user'))
115
+    const hosId = loginUser.user.currentHospital ? loginUser.user.currentHospital.id : ''
114
     this.runTime()
116
     this.runTime()
115
-    this.getSysNameAndLogo()
117
+    this.getSysNameAndLogo(hosId)
116
   },
118
   },
117
   beforeDestroy () {
119
   beforeDestroy () {
118
     clearTimeout(this.timer)
120
     clearTimeout(this.timer)

+ 1 - 1
src/main.js

@@ -14,7 +14,7 @@ Vue.use(fullScreenContainer)
14
 Vue.prototype.$moment = moment
14
 Vue.prototype.$moment = moment
15
 
15
 
16
 Vue.config.productionTip = false
16
 Vue.config.productionTip = false
17
-console.info('v2.4.6')
17
+console.info('v2.4.7')
18
 
18
 
19
 new Vue({
19
 new Vue({
20
   router,
20
   router,