瀏覽代碼

多页签带名称

gaohaiyong 1 年之前
父節點
當前提交
ce28d15494
共有 2 個文件被更改,包括 4 次插入5 次删除
  1. 3 3
      src/views/outpatient/case/index.vue
  2. 1 2
      src/views/outpatient/control/detail.vue

+ 3 - 3
src/views/outpatient/case/index.vue

@@ -120,7 +120,7 @@
             </el-table-column>
             <el-table-column prop="" label="门诊号">
               <template slot-scope="scope">
-                <span class="blue" @click="funGoto(scope.row.BLBH)">
+                <span class="blue" @click="funGoto(scope.row.BLBH,scope.row.xm)">
                   {{ scope.row.mzh }}
                 </span>
               </template>
@@ -239,7 +239,7 @@ import { dateFormat } from '@/utils/index'
       this.getList(0)
     },
     methods: {
-      funGoto(blbh) {
+      funGoto(blbh,xm) {
       const { path } = this.$route;
       let toPath;
       if (path === '/whitelist-search') {
@@ -247,7 +247,7 @@ import { dateFormat } from '@/utils/index'
       } else {
         toPath = '/outpatientMedicalRecordDetail';
       }
-      this.$router.push({ path: toPath, query: { blbh, from: 'search' } })
+      this.$router.push({ path: toPath, query: { blbh,xm, from: 'search' } })
       },
       selectInfo() {
         this.$axios.post('/get_omr_department_list').then(res => {

+ 1 - 2
src/views/outpatient/control/detail.vue

@@ -104,6 +104,7 @@ export default {
   },
   created() {
     this.getDetails()
+    this.t_title(this.$route.query.xm);
     if (!this.$route.query.from) {
       this.getCaseQualityResults();
     }
@@ -128,8 +129,6 @@ export default {
     getDetails() {
       this.$axios.post('/omr_zk/omr_info', { blbh: this.$route.query.blbh }).then(res => {
         this.data = res.data;
-        this.t_title(res.data.xm);
-
       });
     }
   }