ソースを参照

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

csx 5 年 前
コミット
383bfca9c6
共有1 個のファイルを変更した37 個の追加4 個の削除を含む
  1. 37 4
      src/xt_pages/user/patients.vue

+ 37 - 4
src/xt_pages/user/patients.vue ファイルの表示

1
 <template>
1
 <template>
2
   <div class="main-contain">
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
     <el-dialog
20
     <el-dialog
4
       title="提示"
21
       title="提示"
5
       :visible.sync="dialogVisible"
22
       :visible.sync="dialogVisible"
62
         <br/>
79
         <br/>
63
         <br/>
80
         <br/>
64
         <span>{{getContent(item)}}</span>
81
         <span>{{getContent(item)}}</span>
65
-        <span style="color:blue" @click="generateTxt(item)">点击</span>
66
-        <span>查看详情</span>
82
+        <span >点击</span>
83
+        <span style="color:blue" @click="generateTxt(item)">查看详情</span>
67
         <br/>
84
         <br/>
68
         <br/>
85
         <br/>
69
       </div>
86
       </div>
81
 
98
 
82
 
99
 
83
       <div style="display:flex;align-items:center">
100
       <div style="display:flex;align-items:center">
84
-        <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload"></upload-excel>
101
+        <upload-excel :on-success='handleSuccess' :before-upload="beforeUpload" v-if="isShow"></upload-excel>
85
         <el-link target="_blank" href="https://kuyi.shengws.com/patient_template.xlsx" :underline="false"
102
         <el-link target="_blank" href="https://kuyi.shengws.com/patient_template.xlsx" :underline="false"
86
                  style="margin-left:15px">
103
                  style="margin-left:15px">
87
           <el-button
104
           <el-button
576
         phoneVisible:false,
593
         phoneVisible:false,
577
         idCardNoVisible:false,
594
         idCardNoVisible:false,
578
         wechatbindimg: '',
595
         wechatbindimg: '',
596
+        isShow:true,
579
         active: true,
597
         active: true,
580
         schedulType: 0,
598
         schedulType: 0,
581
         lapsetoForm: {
599
         lapsetoForm: {
708
         }
726
         }
709
         const aLink = document.createElement('a')
727
         const aLink = document.createElement('a')
710
         aLink.href = url
728
         aLink.href = url
711
-        aLink.download = this.timestampToTime(log.export_time) + '错误日志' + '.txt'
729
+        aLink.download = this.timestampToTime(log.export_time) + '患者导入日志' + '.txt'
712
         aLink.click()
730
         aLink.click()
713
 
731
 
714
       },
732
       },
1058
               }
1076
               }
1059
 
1077
 
1060
 
1078
 
1079
+
1080
+              // this.exportVisible = true
1081
+              this.$alert('您提交的患者名单已上传成功,系统正在执行导入,请稍候点击当前页面右上角“下载日志”查看导入结果', '上传成功', {
1082
+                confirmButtonText: '确定',
1083
+                callback: action => {
1084
+
1085
+                }
1086
+              });
1087
+
1088
+              this.isShow = false
1061
               let params = {
1089
               let params = {
1062
                 'patients': this.export_date
1090
                 'patients': this.export_date
1063
               }
1091
               }
1064
               postExportPatients(params).then(
1092
               postExportPatients(params).then(
1065
                 response => {
1093
                 response => {
1066
                   if (response.data.state === 1) {
1094
                   if (response.data.state === 1) {
1095
+
1067
                     this.getList()
1096
                     this.getList()
1097
+                    this.isShow = true
1098
+
1068
                   } else {
1099
                   } else {
1100
+                    this.isShow = true
1101
+
1069
                     this.$message.error(response.data.msg)
1102
                     this.$message.error(response.data.msg)
1070
                   }
1103
                   }
1071
                 }
1104
                 }