Переглянути джерело

regpatinfo返回问题修改

Your Name 2 роки тому
батько
коміт
08b82f75ce
2 змінених файлів з 12 додано та 2 видалено
  1. 11 1
      src/components/DiagCalc.vue
  2. 1 1
      src/components/RegPatinfo.vue

+ 11 - 1
src/components/DiagCalc.vue

@@ -62,7 +62,7 @@
         </mt-field>
       </div> -->
       <div class="footer">
-        <div class="jbbtn" @click="$router.go(-1)">返回</div>
+        <div class="jbbtn" @click="goBackRegpatinfo">返回</div>
         <div class="jbbtn" @click="submit">确定</div>
       </div>
     </div>
@@ -195,6 +195,16 @@
       }
     },
     methods: {
+      goBackRegpatinfo(){
+        if(this.$route.query && this.$route.query.patid){
+          this.$router.push({
+            path:"regpatinfo",
+            query:{
+              patid:this.$route.query.patid
+            }
+          })
+        }
+      },
       goback() {
         if (this.$route.query && this.$route.query.edit && this.$route.query.back) {
           this.$router.push({

+ 1 - 1
src/components/RegPatinfo.vue

@@ -17,7 +17,7 @@
 
       </div>
       <div class="footer">
-        <div class="jbbtn" @click="$router.go(-1)">返回</div>
+        <div class="jbbtn" @click="goPage('docindex')">返回</div>
         <div class="jbbtn" @click="submit">确定</div>
         <!-- <div class="jbbtn" @click="birthdayClick">测试</div> -->
       </div>