Bladeren bron

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

XMLWAN 5 jaren geleden
bovenliggende
commit
71497f8fdf
3 gewijzigde bestanden met toevoegingen van 19 en 12 verwijderingen
  1. 15 7
      src/pages/main/DetailsPage.vue
  2. 1 4
      src/pages/main/dialysis/DialysisTab.vue
  3. 3 1
      src/pages/main/dialysis/RecordTable.vue

+ 15 - 7
src/pages/main/DetailsPage.vue Bestand weergeven

@@ -172,11 +172,6 @@ export default {
172 172
       this.$router.push("/mypatients/" + patient_id);
173 173
     }
174 174
   },
175
-  beforeRouteUpdate(to, from, next) {
176
-    console.log(1111111111111111111111111111)
177
-    console.log(to,from);    //345,123
178
-    next();
179
-  },
180 175
   watch: {
181 176
     clientHeight(val) {
182 177
       // 为了避免频繁触发resize函数导致页面卡顿,使用定时器
@@ -192,9 +187,22 @@ export default {
192 187
           that.mediaMatches();
193 188
         }, 400);
194 189
       }
195
-    }
190
+    },
196 191
   },
197
-  
192
+  beforeRouteUpdate(to, from){
193
+    console.log(to.active2)
194
+    if(to.query.active1 == "2" && to.active2 == undefined){
195
+      this.index = parseInt(to.query.active1)
196
+      var patient_id = to.query.patient_id;
197
+    var date = to.query.date;
198
+    var patient_name = to.query.patient_name;
199
+    this.patient_id = patient_id;
200
+    this.date = date;
201
+    this.patient_name = patient_name;
202
+    this.GetPatientInfoWithDiseases(this.patient_id);
203
+    }
204
+    console.log(from)
205
+  }
198 206
 };
199 207
 </script>
200 208
 

+ 1 - 4
src/pages/main/dialysis/DialysisTab.vue Bestand weergeven

@@ -20,7 +20,7 @@
20 20
 
21 21
     <div class="tab-content">
22 22
       <long-table v-show="index == 0" title="长期透析处方"></long-table>
23
-      <record-table v-show="index == 1" title="透析记录" @change="changeIndex"></record-table>
23
+      <record-table v-show="index == 1" title="透析记录"></record-table>
24 24
       <schedul-table v-show="index == 2" class="排班信息"></schedul-table>
25 25
       <mission-table v-show="index == 3" class="宣教信息"></mission-table>
26 26
     </div>
@@ -66,9 +66,6 @@ export default {
66 66
   methods: {
67 67
     ClickTab: function(tabIndex) {
68 68
       this.index = tabIndex;
69
-    },
70
-    changeIndex(index){
71
-      this.$emit("a",index)
72 69
     }
73 70
   },
74 71
   mounted(){

+ 3 - 1
src/pages/main/dialysis/RecordTable.vue Bestand weergeven

@@ -924,7 +924,9 @@ export default {
924 924
       })
925 925
     },
926 926
     toToday(){
927
-      this.$emit("change",1)
927
+      this.$router.push(
928
+        '/details?patient_id=' + 1064 + '&date=' + 1590508800 + '&patient_name=' + '黄晓' + '&active1=' + 2 
929
+      )
928 930
     }
929 931
   },
930 932
   created() {