Bläddra i källkod

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

XMLWAN 4 år sedan
förälder
incheckning
cc48d64960

+ 16 - 17
src/xt_pages/user/patients.vue Visa fil

@@ -80,10 +80,10 @@
80 80
     <div class="position">
81 81
       <bread-crumb :crumbs="crumbs"></bread-crumb>
82 82
 
83
-      <upload-excel style="float:right;" :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>
83
+      
84 84
 
85
-      <div style="float:right;"
86
-      >
85
+      <div style="display:flex;align-items:center">
86
+        <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>
87 87
         <el-link target="_blank" href="https://kuyi.shengws.com/patient_template.xlsx" :underline="false"
88 88
                  style="margin-left:15px">
89 89
           <el-button
@@ -96,6 +96,7 @@
96 96
 
97 97
 
98 98
         <el-button
99
+          style="margin-left:10px;"
99 100
           @click="generateLog()"
100 101
           class="filter-item"
101 102
           type="primary"
@@ -1056,20 +1057,18 @@
1056 1057
               }
1057 1058
 
1058 1059
 
1059
-
1060
-
1061
-              // let params = {
1062
-              //   'patients': this.export_date
1063
-              // }
1064
-              // postExportPatients(params).then(
1065
-              //   response => {
1066
-              //     if (response.data.state === 1) {
1067
-              //       this.getList()
1068
-              //     } else {
1069
-              //       this.$message.error(response.data.msg)
1070
-              //     }
1071
-              //   }
1072
-              // )
1060
+              let params = {
1061
+                'patients': this.export_date
1062
+              }
1063
+              postExportPatients(params).then(
1064
+                response => {
1065
+                  if (response.data.state === 1) {
1066
+                    this.getList()
1067
+                  } else {
1068
+                    this.$message.error(response.data.msg)
1069
+                  }
1070
+                }
1071
+              )
1073 1072
 
1074 1073
             }
1075 1074
           }

+ 3 - 8
src/xt_pages/workforce/appointment.vue Visa fil

@@ -50,13 +50,9 @@
50 50
 
51 51
     <div class="position">
52 52
       <bread-crumb :crumbs="crumbs"></bread-crumb>
53
-      <el-col :span="15" style="text-align: right;">
54
-        <div>
55
-          <schedule-upload-excel style="float:left;margin-right: -500px" :on-success='handleSuccess'
56
-                                 :before-upload="beforeUpload"></schedule-upload-excel>
57
-          <el-button v-if="isShow()" type="primary" size="small" @click="export_file()"
58
-                     :loading="downloadLoading"
59
-          >
53
+        <div style="display:flex;align-items:center">
54
+          <schedule-upload-excel style="margin-right:10px;" :on-success='handleSuccess' :before-upload="beforeUpload"></schedule-upload-excel>
55
+          <el-button v-if="isShow()" type="primary" size="small" @click="export_file()" :loading="downloadLoading">
60 56
             导出模版
61 57
           </el-button>
62 58
 
@@ -72,7 +68,6 @@
72 68
           <el-button type="primary" size="small" icon="el-icon-setting" @click="setScheduleTemplateAction">排班模板
73 69
           </el-button>
74 70
         </div>
75
-      </el-col>
76 71
     </div>
77 72
     <div class="app-container">
78 73
       <!-- <el-row>

+ 17 - 16
src/xt_pages/workforce/template.vue Visa fil

@@ -64,27 +64,28 @@
64 64
 
65 65
     <div class="position">
66 66
       <bread-crumb :crumbs="crumbs"></bread-crumb>
67
+      <div style="display:flex;align-items:center">
68
+        <!-- <el-col :span="3" style="text-align: right;"> -->
69
+        <el-button v-loading="downloadLoading" v-if="template_mode&&(template_mode.mode == 1 || template_mode.mode == 2)"
70
+                  size="small" icon="el-icon-setting" type="primary" @click="import_file()">导出模版
71
+        </el-button>
67 72
 
68
-      <!-- <el-col :span="3" style="text-align: right;"> -->
69
-      <el-button v-loading="downloadLoading" v-if="template_mode&&(template_mode.mode == 1 || template_mode.mode == 2)"
70
-                 size="small" icon="el-icon-setting" type="primary" @click="import_file()">导出模版
71
-      </el-button>
72 73
 
74
+        <el-button
75
+          @click="generateLog()"
76
+          class="filter-item"
77
+          type="primary"
78
+          size="small"
79
+        >下载错误日志
80
+        </el-button>
73 81
 
74
-      <el-button
75
-        @click="generateLog()"
76
-        class="filter-item"
77
-        type="primary"
78
-        size="small"
79
-      >下载错误日志
80
-      </el-button>
82
+        <!--<upload-excel style="float:right;" :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>-->
83
+        <schedule-template-upload-excel style="margin-right:10px;" :on-success='handleSuccess'
84
+                                        :before-upload="beforeUpload"></schedule-template-upload-excel>
81 85
 
82
-      <!--<upload-excel style="float:right;" :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>-->
83
-      <schedule-template-upload-excel style="float:right;" :on-success='handleSuccess'
84
-                                      :before-upload="beforeUpload"></schedule-template-upload-excel>
85 86
 
86
-
87
-      <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
87
+        <el-button size="small" icon="el-icon-setting" type="primary" @click="setScheduleTemplateAction">设置模板</el-button>
88
+      </div>
88 89
       <!-- </el-col> -->
89 90
     </div>
90 91
     <div class="app-container">

+ 13 - 13
src/xt_permission.js Visa fil

@@ -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();