Browse Source

健康矩阵页面跳转

chenminghua 3 years ago
parent
commit
bf4cf74a71
3 changed files with 8 additions and 10 deletions
  1. 4 5
      src/router/index.js
  2. 4 0
      src/views/HealthControl/Health4.vue
  3. 0 5
      src/views/HealthControl/Health7.vue

+ 4 - 5
src/router/index.js

@@ -157,6 +157,10 @@ const routes = [
     children: [{
       path: 'healthLineChart', // 健康趋势
       component: () => import(/* webpackChunkName: "healthLineChart" */ '../views/HealthControl/healthLineChart.vue'),
+    },
+    {
+      path: 'healthLineChart2', // 健康趋势
+      component: () => import(/* webpackChunkName: "healthLineChart2" */ '../views/HealthControl/healthLineChart2.vue'),
     }],
     component: () => import('../views/HealthControl/Health4.vue'),
   },
@@ -170,11 +174,6 @@ const routes = [
     name: 'health6',
     component: () => import('../views/HealthControl/Health6.vue'),
   },
-  {
-    path: '/health/health7/:wtId',
-    name: 'health7',
-    component: () => import('../views/HealthControl/Health7.vue'),
-  },
 ]
 
 const router = createRouter({

+ 4 - 0
src/views/HealthControl/Health4.vue

@@ -34,6 +34,10 @@ export default {
       menuDatas: [{
         icon: "svg-agc",
         path: "/health/health4/healthLineChart",
+      },
+      {
+        icon: "svg-agc",
+        path: "/health/health4/healthLineChart2",
       }]
     };
   },

+ 0 - 5
src/views/HealthControl/Health7.vue

@@ -72,13 +72,8 @@ export default {
   },
   created() {
     this.wtId = this.$route.params.wtId;
-     this.$nextTick(() => {
-        
-    console.log(this.wtId )
     this.requestHisValue()
     this.requestMttrrand()
-     })
-   
   },
   methods:{
      // 未确认缺陷按钮下的健康趋势选项