Просмотр исходного кода

Merge branch 'master' of http://git.shengws.com/csx/Vue_New into 20200710_pc_vue_new_branch

csx 4 лет назад
Родитель
Сommit
91e14276dc
2 измененных файлов: 15 добавлений и 15 удалений
  1. 2 2
      src/xt_pages/qcd/indicatorControlAnalysis/weight.vue
  2. 13 13
      src/xt_permission.js

+ 2 - 2
src/xt_pages/qcd/indicatorControlAnalysis/weight.vue Просмотреть файл

@@ -71,7 +71,7 @@
71 71
           <div style="width:160px">
72 72
 
73 73
             <div class="tableTitle">患者列表</div>
74
-            
74
+
75 75
 
76 76
             <el-table ref="table" :data="patientsData" border style="width: 100%;" height="500" :row-style="{ color: '#303133' }"
77 77
                       :header-cell-style="{backgroundColor: 'rgb(245, 247, 250)',color: '#606266'}"
@@ -619,6 +619,7 @@
619 619
         })
620 620
       }
621 621
     }, created() {
622
+      this.getCurrentOrgPatients()
622 623
       var date = new Date()
623 624
       var year = date.getFullYear() //获取完整的年份(4位)
624 625
       var month = date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1).toString() : date.getMonth() + 1 //获取当前月份(0-11,0代表1月)
@@ -630,7 +631,6 @@
630 631
       this.query.statistics_type = 1
631 632
       this.GetDialysisWeightChartData(this.query)
632 633
       this.GetDialysisWeightTableData(this.query)
633
-      this.getCurrentOrgPatients()
634 634
 
635 635
 
636 636
     }

+ 13 - 13
src/xt_permission.js Просмотреть файл

@@ -12,19 +12,19 @@ const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名
12 12
 
13 13
 router.beforeEach((to, from, next) => {
14 14
   // 线上注释
15
-  // if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
-  //   store.dispatch('VerifyConfigList', []).then(() => {
17
-  //     next()
18
-  //   })
19
-  // }
20
-  // if (store.getters.permission_routers === undefined) {
21
-  //   store.dispatch('xt_GenerateRoutes', []).then(() => {
22
-  //     next()
23
-  //   })
24
-  // } else {
25
-  //   next()
26
-  // }
27
-  // return
15
+  if (!store.getters.configlist || store.getters.configlist === undefined || store.getters.configlist.length <= 0) {
16
+    store.dispatch('VerifyConfigList', []).then(() => {
17
+      next()
18
+    })
19
+  }
20
+  if (store.getters.permission_routers === undefined) {
21
+    store.dispatch('xt_GenerateRoutes', []).then(() => {
22
+      next()
23
+    })
24
+  } else {
25
+    next()
26
+  }
27
+  return
28 28
   // 线上注释
29 29
 
30 30
   NProgress.start()