tanyanfei před 1 rokem
rodič
revize
55d611049c

+ 1 - 1
src/components/PatBleedList.vue

@@ -59,7 +59,7 @@
     methods: {
       goPage(path) {
         if(path==-1){
-          this.$router.go(-1)
+          this.$router.push({name:'病例管理',params:{id:this.id}})
         }else{
           this.$router.push(path)
         }

+ 20 - 4
src/components/PatCaseList.vue

@@ -117,6 +117,7 @@
     },
     data() {
       return {
+        id:'',
         searchName: "",
         form: {},
         queryForm: {},
@@ -142,10 +143,13 @@
         }
       },
       goToPatient(item) {
-        this.queryForm.cur_doctor_id = item.id
-        this.getData()
-        this.selected = 2
-        this.curDoctor = item
+        if(item.id == this.id){
+          this.queryForm.cur_doctor_id = item.id
+          this.getData()
+          this.selected = 2
+          this.curDoctor = item
+        }
+
       },
       goToCase(item) {
         this.queryForm.patient_id = item.id
@@ -246,6 +250,18 @@
       }
     },
     created() {
+      console.log(this.$route)
+      let authinfo=localStorage.getItem('authinfo')
+      if(authinfo) this.id=JSON.parse(authinfo).id
+      if(this.$route.params.id){
+        this.selected=3
+        this.curDoctor.id=this.id
+        this.queryForm.cur_doctor_id=this.id
+        this.queryForm.patient_id=this.$route.params.id
+        this.curPatient.id=this.$route.params.id
+      }
+
+
       this.getData()
     },
     mounted() {

+ 2 - 1
src/components/PatClockBleed.vue

@@ -19,7 +19,8 @@
           @click.native="flag=2" placeholder="请选择">
           <img src="../assets/images/down.png" alt="" width="16px">
         </mt-field>
-        <mt-field v-else label="其他部位" placeholder="请输入"  v-model="form.bleed_part_desc"></mt-field>
+        <mt-field v-if='form.bleed_part == "其他部位"' label="其他部位" placeholder="请输入"  v-model="form.bleed_part_desc"></mt-field>
+        <mt-field v-if='form.bleed_part_detail == "其他关节"' label="其他关节" placeholder="请输入"  v-model="form.bleed_part_detail"></mt-field>
         <mt-field class="inputDisable" disabled label="出血原因" v-model="form.bleed_reason"
           @click.native="flag=3" placeholder="请选择">
           <img src="../assets/images/down.png" alt="" width="16px">

+ 3 - 2
src/components/PatInjectionList.vue

@@ -51,9 +51,10 @@
     methods: {
       goPage(path) {
         if(path==-1){
-          this.$router.go(-1)
+          // this.$router.go(-1)
+          this.$router.push({name:'病例管理',params:{id:this.id}})
         }else{
-          this.$router.push(path)
+          this.$router.push({path:path})
         }
       },
       getData() {

+ 1 - 1
src/components/UserAgree.1.vue

@@ -2,7 +2,7 @@
   <div class="container">
     <div class="bgimg"></div>
     <div class="content">
-      <div class="title">PK程序用户隐私条款</div>
+      <div class="title">用户隐私条款</div>
       <div class="loginForm">
         <div class="agreedoc">
           <p v-html="">