Browse Source

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

XMLWAN 4 years ago
parent
commit
bf17a13db8

+ 20 - 1
src/xt_pages/user/patients.vue View File

@@ -1,5 +1,22 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
+
4
+    <el-dialog
5
+      title="提示"
6
+      :visible.sync="exportVisible"
7
+      width="40%"
8
+    >
9
+
10
+      <div>
11
+        您提交的患者名单已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果
12
+      </div>
13
+
14
+      <span slot="footer" class="dialog-footer">
15
+    <el-button @click="exportVisible = false">取 消</el-button>
16
+    <el-button type="primary" @click="exportVisible = false">确 定</el-button>
17
+  </span>
18
+    </el-dialog>
19
+
3 20
     <el-dialog
4 21
       title="提示"
5 22
       :visible.sync="dialogVisible"
@@ -573,6 +590,7 @@
573 590
         isIndeterminate: true,
574 591
         dialogVisible: false,
575 592
         exportLogVisible: false,
593
+        exportVisible:false,
576 594
         phoneVisible:false,
577 595
         idCardNoVisible:false,
578 596
         wechatbindimg: '',
@@ -1057,13 +1075,14 @@
1057 1075
                 return
1058 1076
               }
1059 1077
 
1060
-
1078
+              this.exportVisible = true
1061 1079
               let params = {
1062 1080
                 'patients': this.export_date
1063 1081
               }
1064 1082
               postExportPatients(params).then(
1065 1083
                 response => {
1066 1084
                   if (response.data.state === 1) {
1085
+
1067 1086
                     this.getList()
1068 1087
                   } else {
1069 1088
                     this.$message.error(response.data.msg)

+ 20 - 0
src/xt_pages/workforce/appointment.vue View File

@@ -1,5 +1,22 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
+    <el-dialog
4
+      title="提示"
5
+      :visible.sync="exportVisible"
6
+      width="40%"
7
+    >
8
+
9
+      <div>
10
+        您提交的排班信息已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果
11
+      </div>
12
+
13
+      <span slot="footer" class="dialog-footer">
14
+    <el-button @click="exportVisible = false">取 消</el-button>
15
+    <el-button type="primary" @click="exportVisible = false">确 定</el-button>
16
+  </span>
17
+    </el-dialog>
18
+
19
+
3 20
     <el-dialog
4 21
       title="提示"
5 22
       :visible.sync="exportLogVisible"
@@ -123,6 +140,7 @@
123 140
         msgTipVisible: false,
124 141
         dialogVisible: false,
125 142
         isExistRepeatVisible: false,
143
+        exportVisible:false,
126 144
         exportLogVisible: false,
127 145
         theWeek: {
128 146
           lastWeek: 0,
@@ -822,6 +840,8 @@
822 840
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
823 841
 
824 842
             var date = day2.getFullYear() + '-' + month + '-' + day
843
+            this.exportVisible = true
844
+
825 845
             exportSchedule(params, date).then(response => {
826 846
               if (response.data.state == 0) {
827 847
                 return false

+ 31 - 2
src/xt_pages/workforce/template.vue View File

@@ -1,5 +1,23 @@
1 1
 <template>
2 2
   <div class="main-contain">
3
+
4
+    <el-dialog
5
+      title="提示"
6
+      :visible.sync="exportVisible"
7
+      width="40%"
8
+    >
9
+
10
+      <div>
11
+        您提交的排班信息已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果
12
+      </div>
13
+
14
+      <span slot="footer" class="dialog-footer">
15
+    <el-button @click="exportVisible = false">取 消</el-button>
16
+    <el-button type="primary" @click="exportVisible = false">确 定</el-button>
17
+  </span>
18
+    </el-dialog>
19
+
20
+
3 21
     <el-dialog
4 22
       title="提示"
5 23
       :visible.sync="exportLogVisible"
@@ -76,6 +94,7 @@
76 94
           class="filter-item"
77 95
           type="primary"
78 96
           size="small"
97
+          v-loading="generateLoading"
79 98
         >下载日志
80 99
         </el-button>
81 100
 
@@ -146,8 +165,9 @@
146 165
         downloadLoading: false,
147 166
         isExistRepeatVisible:false,
148 167
         exportLogVisible:false,
168
+        exportVisible:false,
149 169
         logs:[],
150
-
170
+        generateLoading:false,
151 171
 
152 172
         days:[],
153 173
         msgTipVisible: false,
@@ -256,19 +276,26 @@
256 276
         return '您导入的文档共' + log.total_num + '条患者数据' + ',' + '已成功导入' + log.success_num + '条,导入失败' + log.fail_num + '条,'
257 277
       },
258 278
       generateLog() {
279
+        this.generateLoading = true
259 280
         let params = {
260 281
           'log_type': 3
261 282
         }
262 283
         generateLog(params).then(
263 284
           response => {
264 285
             if (response.data.state === 1) {
286
+              this.generateLoading = false
287
+
265 288
               this.logs = response.data.data.logs
266 289
               this.exportLogVisible = true
267 290
             } else {
268 291
               this.$message.error(response.data.msg)
292
+              this.generateLoading = false
293
+
269 294
             }
270 295
           }
271
-        )
296
+        ).catch(error => {
297
+          this.generateLoading = false
298
+        })
272 299
 
273 300
       },
274 301
       getInitDate(){
@@ -684,6 +711,7 @@
684 711
             this.isExistRepeatVisible = true
685 712
             return
686 713
           } else {
714
+            this.exportVisible = true
687 715
             let params = {
688 716
               schedule: datas
689 717
             }
@@ -692,6 +720,7 @@
692 720
             day2.setTime(day2.getTime())
693 721
             var month = day2.getMonth() + 1 < 10 ? '0' + (day2.getMonth() + 1).toString() : (day2.getMonth() + 1).toString()
694 722
             var day = day2.getDate() < 10 ? '0' + (day2.getDate()).toString() : (day2.getMonth() + 1).toString()
723
+
695 724
             exportScheduleTemplate(params).then(response => {
696 725
               if (response.data.state == 0) {
697 726
                 return false