Bläddra i källkod

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

csx 4 år sedan
förälder
incheckning
91e14276dc
2 ändrade filer med 15 tillägg och 15 borttagningar
  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 Visa fil

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

+ 13 - 13
src/xt_permission.js Visa fil

12
 
12
 
13
 router.beforeEach((to, from, next) => {
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
   NProgress.start()
30
   NProgress.start()