Browse Source

长沙南雅打印单问题修改

28169 1 year ago
parent
commit
ffbf502d9a
2 changed files with 15 additions and 15 deletions
  1. 2 2
      src/xt_pages/workforce/schedulePrint.vue
  2. 13 13
      src/xt_permission.js

+ 2 - 2
src/xt_pages/workforce/schedulePrint.vue View File

62
             size="small"
62
             size="small"
63
             @click="searchPatientAction"
63
             @click="searchPatientAction"
64
           >搜索</el-button>
64
           >搜索</el-button>
65
-        <el-button style="float:right;" type="primary" @click="printAction">打印</el-button>
65
+        <!-- <el-button style="float:right;" type="primary" @click="printAction">打印</el-button> -->
66
 
66
 
67
-<!--        <el-button type="primary" size="small" style="margin-right" @click="toPrint">打印</el-button>-->
67
+       <el-button type="primary" size="small" style="margin-right" @click="toPrint">打印</el-button>
68
       </div>
68
       </div>
69
 
69
 
70
       <el-table
70
       <el-table

+ 13 - 13
src/xt_permission.js View File

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
   NProgress.start()
29
   NProgress.start()
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // console.log(store.getters.current_role_urls.indexOf(to.path))