zhaobao 3 лет назад
Родитель
Сommit
4b736b9f36

+ 1 - 0
.gitignore

@@ -1,6 +1,7 @@
 .DS_Store
 node_modules/
 dist/
+overall-platform/
 npm-debug.log*
 yarn-debug.log*
 yarn-error.log*

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
   "scripts": {
     "dev": "vue-cli-service serve",
     "lint": "eslint --ext .js,.vue src",
-    "build:prod": "vue-cli-service build",
+    "build": "vue-cli-service build",
     "build:stage": "vue-cli-service build --mode staging",
     "preview": "node build/index.js --preview",
     "new": "plop",

+ 21 - 6
src/components/ImageGrid/index.vue

@@ -1,11 +1,25 @@
 <template>
-  <div class="grid-item" @click="clickItem">
-    <p class="title">{{ data.title }}
-      <ScoreIcon :key="1" :score="data[valKey]" />
-    </p>
-    <el-image :src="data[imageKey]" />
-    <p>{{ data[valKey] }} <span v-if="useUnit">{{ unit }}</span></p>
+  <div class="grid-item-box">
+    <template v-if="data.href">
+      <a class="grid-item" :href="data.href" target="_blank">
+        <p class="title">{{ data.title }}
+          <ScoreIcon :key="1" :score="data[valKey]" />
+        </p>
+        <el-image :src="data[imageKey]" />
+        <p>{{ data[valKey] }} <span v-if="useUnit">{{ unit }}</span></p>
+      </a>
+    </template>
+    <template v-else>
+      <div class="grid-item" @click="clickItem">
+        <p class="title">{{ data.title }}
+          <ScoreIcon :key="1" :score="data[valKey]" />
+        </p>
+        <el-image :src="data[imageKey]" />
+        <p>{{ data[valKey] }} <span v-if="useUnit">{{ unit }}</span></p>
+      </div>
+    </template>
   </div>
+
 </template>
 <script>
 
@@ -57,6 +71,7 @@ export default {
       padding-top: 10px;
       text-align: center;
       cursor: pointer;
+      display: block;
 
       .title {
         font-size: 16px;

+ 6 - 6
src/layout/components/Navbar.vue

@@ -96,12 +96,12 @@ export default {
       sideMenus: [],
       sideMenuTabList: [
         { name: '数据总览', icon: require('./nav/icon.png'), path: '/', permit: 'hos_overview', id: 0 },
-        { name: '平安医院', icon: require('./nav/icon-1.png'), path: '/hos/safe/overview', permit: 'hos_safe', id: 1, href: 'http://baidu.com' },
-        { name: '质量医院', icon: require('./nav/icon-2.png'), path: '/hos/quality/overview', permit: 'hos_quality', id: 2 },
-        { name: '满意医院', icon: require('./nav/icon-3.png'), path: '/hos/satisfy/overview', permit: 'hos_satisfy', id: 3 },
-        { name: '智慧医院', icon: require('./nav/icon-4.png'), path: '/hos/smart/overview', permit: 'hos_smart', id: 4 },
-        { name: '健康医院', icon: require('./nav/icon-5.png'), path: '/hos/health/overview', permit: 'hos_health', id: 5 },
-        { name: '节约型医院', icon: require('./nav/icon-6.png'), path: '/hos/economic/overview', permit: 'hos_economic', id: 6 },
+        { name: '平安医院', icon: require('./nav/icon-1.png'), path: '/hos/safe/overview', permit: 'hos_safe', id: 1, href: '../aqpt' },
+        { name: '质量医院', icon: require('./nav/icon-2.png'), path: '/hos/quality/overview', permit: 'hos_quality', id: 2, href: '../qhpt' },
+        { name: '满意医院', icon: require('./nav/icon-3.png'), path: '/hos/satisfy/overview', permit: 'hos_satisfy', id: 3, href: '../csat' },
+        { name: '智慧医院', icon: require('./nav/icon-4.png'), path: '/hos/smart/overview', permit: 'hos_smart', id: 4, href: '../shpt' },
+        { name: '健康医院', icon: require('./nav/icon-5.png'), path: '/hos/health/overview', permit: 'hos_health', id: 5, href: '../hhpt' },
+        { name: '节约型医院', icon: require('./nav/icon-6.png'), path: '/hos/economic/overview', permit: 'hos_economic', id: 6, href: '../ehpt' },
         { name: '系统管理', icon: require('./nav/icon-7.png'), path: '/hos/profile', permit: 'hos_economic', id: 7 }
       ]
     }

+ 1 - 1
src/settings.js

@@ -36,7 +36,7 @@ module.exports = {
   /**
   * 服务API地址
   */
-  serverUrl: 'http://1.15.92.205:8080/', // 正式环境
+  serverUrl: 'http://1.15.92.205:8001/', // 正式环境
   // serverUrl: 'http://114.116.19.14:8080/', // 正式环境
   devServerUrl: 'http://1.15.92.205:8001/', // 开发环境
   // devServerUrl: 'http://192.168.3.253:8001/', // 开发环境

+ 12 - 6
src/views/hos/overview/index.vue

@@ -98,37 +98,43 @@ export default {
           path: require('@/assets/images/overview/overview_safety.png'),
           title: '平安医院',
           text: '0',
-          pagePath: '/hos/safe/overview'
+          pagePath: '/hos/safe/overview',
+          href: '../aqpt'
         },
         {
           path: require('@/assets/images/overview/overview_quality.png'),
           title: '质量医院',
           text: '0',
-          pagePath: '/hos/quality/overview'
+          pagePath: '/hos/quality/overview',
+          href: '../qhpt'
         },
         {
           path: require('@/assets/images/overview/overview_satisfaction.png'),
           title: '满意医院',
           text: '0',
-          pagePath: '/hos/satisfy/overview'
+          pagePath: '/hos/satisfy/overview',
+          href: '../csat'
         },
         {
           path: require('@/assets/images/overview/overview_wisdom.png'),
           title: '智慧医院',
           text: '0',
-          pagePath: '/hos/smart/overview'
+          pagePath: '/hos/smart/overview',
+          href: '../shpt'
         },
         {
           path: require('@/assets/images/overview/overview_health.png'),
           title: '健康医院',
           text: '0',
-          pagePath: '/hos/health/overview'
+          pagePath: '/hos/health/overview',
+          href: '../hhpt'
         },
         {
           path: require('@/assets/images/overview/overview_saving.png'),
           title: '节约型医院',
           text: '0',
-          pagePath: '/hos/economic/overview'
+          pagePath: '/hos/economic/overview',
+          href: '../ehpt'
         }
       ],
       yearList: [],

+ 1 - 1
vue.config.js

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