Sfoglia il codice sorgente

修改 病例兼容高级搜索

yuwandanmian 2 anni fa
parent
commit
19cbf9d812

+ 15 - 1
src/views/login/index.vue

@@ -105,7 +105,21 @@ export default {
               this.loading = false;
               //获取权限菜单
               menu.getMenu().then( () =>{
-                this.$router.push(this.redirect || '/');
+                const routes = JSON.parse(sessionStorage.getItem('route'))
+                let bSwitch = 0
+                for(let i=0; i<routes.length; i++) {
+                  if(routes[i].path === '/hospital-search') {
+                    bSwitch = 1
+                    break
+                  } else {
+                    bSwitch = 0
+                  }
+                }
+                if (bSwitch) {
+                  this.$router.push({ path: '/hospital-search'});
+                } else {
+                  this.$router.push(this.redirect || '/');
+                }
               }).catch(() => {
                 this.$message.error('获取导航菜单失败!');
               })

+ 4 - 1
src/views/searchSystem/components/BLSearch.vue

@@ -337,7 +337,10 @@
                 prop="YZMC"
                 label="医嘱名称">
                 <template slot-scope="scope">
-                  <span v-html="scope.row.YZMC[0]"></span>
+                  <!-- 高级搜索 -->
+                  <span v-if="choice" v-html="scope.row.YZMC"></span>
+                  <!-- 普通搜索 -->
+                  <span v-else v-html="scope.row.YZMC[0]"></span>
                 </template>
               </el-table-column>
               <el-table-column