Browse Source

修改个人信息和部分bug

csx 5 years ago
parent
commit
df063452eb

+ 16 - 2
src/pages/main/dialog/MonitDialog.vue View File

@@ -1,6 +1,7 @@
1 1
 <template>
2 2
 <div>
3
-    <div class="Dialog"  v-show="listPanel" >
3
+  <div v-loading="loading">
4
+  <div class="Dialog"  v-show="listPanel" >
4 5
         <div class="DialogTit">
5 6
             <span class="iconfont" @click="close()">&#xe6e9;</span>
6 7
             <h1 class="name">透析监测</h1>
@@ -60,6 +61,7 @@
60 61
             <h1 class="name">{{formTitle}}</h1>
61 62
             <span class="success" v-if="form.id>0" @click="submitEditAction()">完成</span>
62 63
             <span class="success" v-else @click="submitAction()">完成</span>
64
+
63 65
         </div>
64 66
         <div class="DialogContent choose">
65 67
           <div class="content">
@@ -154,8 +156,10 @@
154 156
           </div>
155 157
         </div>
156 158
     </div>
159
+  </div>
160
+
157 161
 
158
-    <mt-datetime-picker
162
+  <mt-datetime-picker
159 163
       ref="picker"
160 164
       type="datetime"
161 165
       @confirm="handleConfirm"
@@ -201,6 +205,7 @@ export default {
201 205
   },
202 206
   data() {
203 207
     return {
208
+      loading:false,
204 209
       formTitle: "新增监测",
205 210
       formPanel: false,
206 211
       listPanel: true,
@@ -670,6 +675,7 @@ export default {
670 675
       // }
671 676
     },
672 677
     submitEditAction: function() {
678
+      this.loading = true
673 679
       Toast.loading({ forbidClick: true, duration: 0 });
674 680
       var params = {};
675 681
       params.patient_id = this.patient.id;
@@ -700,6 +706,8 @@ export default {
700 706
       editMonitorRecord(params).then(rs => {
701 707
         var resp = rs.data;
702 708
         if (resp.state == 1) {
709
+          this.loading = false
710
+
703 711
           var monitor = resp.data.monitor;
704 712
           this.$emit("did_edit_monitor", monitor);
705 713
 
@@ -729,11 +737,13 @@ export default {
729 737
           this.formPanel = false;
730 738
           this.listPanel = true;
731 739
         } else {
740
+          this.loading = false
732 741
           Toast.fail(resp.msg);
733 742
         }
734 743
       });
735 744
     },
736 745
     submitAction: function() {
746
+      this.loading = true
737 747
       Toast.loading({ forbidClick: true, duration: 0 });
738 748
       var params = {};
739 749
       params.patient_id = this.patient.id;
@@ -763,6 +773,8 @@ export default {
763 773
         .then(rs => {
764 774
           var resp = rs.data;
765 775
           if (resp.state == 1) {
776
+            this.loading = false
777
+
766 778
             var monitor = resp.data.monitor;
767 779
             this.$emit("did_add_monitor", monitor);
768 780
 
@@ -798,10 +810,12 @@ export default {
798 810
             this.formPanel = false;
799 811
             this.listPanel = true;
800 812
           } else {
813
+            this.loading = false
801 814
             Toast.fail(resp.msg);
802 815
           }
803 816
         })
804 817
         .catch(err => {
818
+          this.loading = false
805 819
           Toast.fail(err);
806 820
         });
807 821
     },

+ 2 - 0
src/pages/main/dialog/PrescriptionDialog.vue View File

@@ -1,5 +1,6 @@
1 1
 <template>
2 2
   <div>
3
+
3 4
     <div v-if="isShowDialog" class="Dialog">
4 5
       <div class="DialogTit">
5 6
         <span @click="close()" class="iconfont">&#xe6e9;</span>
@@ -253,6 +254,7 @@
253 254
     },
254 255
     data() {
255 256
       return {
257
+        loading:false,
256 258
         signUrl:"",
257 259
         isShowDesc:true,
258 260
         time: '03:00',

+ 4 - 4
src/pages/main/today/detailsInfo.vue View File

@@ -1,7 +1,7 @@
1
-<template>
1
+x<template>
2 2
   <div class="info ">
3
-    <h2 class="plateTitle"><span class="line"></span><p>基本信息</p><span class="line"></span> </h2> 
4
-    
3
+    <h2 class="plateTitle"><span class="line"></span><p>基本信息</p><span class="line"></span> </h2>
4
+
5 5
     <div class="ui-step clearfix">
6 6
       <ul class="ui-step-ul">
7 7
         <li v-for="(item, index) in step_data" :key="index" class="ui-step-done" >
@@ -12,7 +12,7 @@
12 12
     </div>
13 13
 
14 14
     <ul class="clearfix">
15
-      <li>  
15
+      <li>
16 16
         <label>姓名 : </label>
17 17
         <span>{{patient.name}}</span>
18 18
       </li>

+ 10 - 6
src/pages/personal/EditPersonal.vue View File

@@ -13,8 +13,12 @@
13 13
                    <div class="item">
14 14
                         <h2>个人头像</h2>
15 15
                        <div class="tx">
16
-                           <img src="@/assets/product/test.jpg" alt="">
17
-                           <span class="iconfont">&#xe6f9;</span>
16
+
17
+                         <!--<img :src="myinfo.avatar" alt="" v-if="myinfo.avatar != ''">-->
18
+                         <!--&lt;!&ndash;<h2>个人信息</h2>&ndash;&gt;-->
19
+                         <!--<img :src="avatar" alt="" v-if="myinfo.avatar == ''">-->
20
+
21
+
18 22
                        </div>
19 23
                    </div>
20 24
                 </div>
@@ -45,28 +49,28 @@
45 49
                        <div class="tx">
46 50
                            <input type="text" class="InputBox" placeholder="性别">
47 51
                            <span class="iconfont">&#xe6f9;</span>
48
-                       </div>                       
52
+                       </div>
49 53
                    </div>
50 54
                    <div class="item">
51 55
                         <h2>出生日期</h2>
52 56
                         <div class="tx">
53 57
                            <input type="text" class="InputBox" placeholder="出生日期">
54 58
                            <span class="iconfont">&#xe6f9;</span>
55
-                       </div>     
59
+                       </div>
56 60
                    </div>
57 61
                    <div class="item">
58 62
                         <h2>微信号</h2>
59 63
                        <div class="tx">
60 64
                            <input type="text" class="InputBox" placeholder="微信号">
61 65
                            <span class="iconfont">&#xe6f9;</span>
62
-                       </div> 
66
+                       </div>
63 67
                    </div>
64 68
                     <div class="item">
65 69
                         <h2>QQ号</h2>
66 70
                        <div class="tx">
67 71
                            <input type="text" class="InputBox" placeholder="QQ号">
68 72
                            <span class="iconfont">&#xe6f9;</span>
69
-                       </div> 
73
+                       </div>
70 74
                    </div>
71 75
                 </div>
72 76
             </div>

+ 7 - 6
src/pages/personal/index.vue View File

@@ -6,15 +6,15 @@
6 6
             <div class="information">
7 7
                 <div class="blueBorder"></div>
8 8
                 <div class="name">
9
-                    <router-link to="/EditPersonal">
9
+                    <!--<router-link to="/EditPersonal">-->
10 10
                         <div class="item">
11 11
                             <div class="tx">
12
-                                <img :src="myinfo.avatar" alt="" v-if="myinfo.avatar != ''">
13
-                                <h2>个人信息</h2>
12
+                              <img :src="myinfo.avatar" alt="" v-if="myinfo.avatar != ''">
13
+                              <img :src="avatar" alt="" v-if="myinfo.avatar == ''">
14 14
                             </div>
15
-                            <span class="iconfont">&#xe6f9;</span>
15
+                            <!--<span class="iconfont">&#xe6f9;</span>-->
16 16
                         </div>
17
-                    </router-link>
17
+                    <!--</router-link>-->
18 18
                 </div>
19 19
                 <div class="name">
20 20
                     <router-link to="/ElectronicSignature">
@@ -86,7 +86,8 @@ export default {
86 86
   data() {
87 87
     return {
88 88
       electronicsignature: "",
89
-      myinfo: {}
89
+      myinfo: {},
90
+      avatar:"@/assets/product/test.jpg"
90 91
     };
91 92
   },
92 93
   created() {