yuwandanmian há 1 ano atrás
pai
commit
0a6b6b68d9
2 ficheiros alterados com 12 adições e 13 exclusões
  1. 1 0
      src/store/modules/user.js
  2. 11 13
      src/views/recordsRoom/qc/caseViews.vue

+ 1 - 0
src/store/modules/user.js

@@ -39,6 +39,7 @@ const actions = {
   login({ commit }, userInfo) {
   login({ commit }, userInfo) {
     const { account, password } = userInfo
     const { account, password } = userInfo
     return new Promise((resolve, reject) => {
     return new Promise((resolve, reject) => {
+      commit('SET_ROLES', [])
       login({ account: account.trim(), password: password }).then(response => {
       login({ account: account.trim(), password: password }).then(response => {
         const { p } = response
         const { p } = response
         commit('SET_TOKEN', p.token)
         commit('SET_TOKEN', p.token)

+ 11 - 13
src/views/recordsRoom/qc/caseViews.vue

@@ -15,8 +15,8 @@
           >
           >
             <span>{{ item.name }}</span>
             <span>{{ item.name }}</span>
             <div v-if="item.bllb == 49">
             <div v-if="item.bllb == 49">
-              <div :class="['li-left-item-li', is_active == '长期医嘱' ? 'is-active' : '']" data-li="49-1">长期医嘱</div>
-              <div :class="['li-left-item-li', is_active == '临时医嘱' ? 'is-active' : '']" data-li="49-2">临时医嘱</div>
+              <div :class="['li-left-item-li', is_active == '长期医嘱' ? 'is-active' : '']" data-li="49-1" :id="item.bllb">长期医嘱</div>
+              <div :class="['li-left-item-li', is_active == '临时医嘱' ? 'is-active' : '']" data-li="49-2" :id="item.bllb">临时医嘱</div>
             </div>
             </div>
             <div v-if="item.bllb == 2000002">
             <div v-if="item.bllb == 2000002">
               <div v-for="(jitem, jindex) in item.list" :id="jitem.type" :key="jindex" :class="['li-left-item-li', is_active == jitem.ExamType ? 'is-active' : '']">
               <div v-for="(jitem, jindex) in item.list" :id="jitem.type" :key="jindex" :class="['li-left-item-li', is_active == jitem.ExamType ? 'is-active' : '']">
@@ -391,11 +391,7 @@ export default {
         if (item.blbh) {
         if (item.blbh) {
           this.is_active_blbh = item.blbh
           this.is_active_blbh = item.blbh
         } else {
         } else {
-          if (event.target.id) {
-            this.is_active_blbh = event.target.id
-          } else {
-            return
-          }
+          this.is_active_blbh = event.target.id
         }
         }
       } else {
       } else {
         this.is_active_blbh = this.mainHomeData.MED_REC_ID
         this.is_active_blbh = this.mainHomeData.MED_REC_ID
@@ -404,12 +400,14 @@ export default {
       this.parentType = b
       this.parentType = b
       const that = this
       const that = this
       // 判断点击的
       // 判断点击的
-      if (event.target.outerText == '长期医嘱' || event.target.outerText == '临时医嘱') {
-        that.is_active = event.target.outerText
-      } else if ([329, 288, 34, 87, 303, 294, 2000002].includes(b)) {
-        that.is_active = event.target.id
-      } else {
-        that.is_active = b
+      if (event.target.id || !item.list) {
+        if (event.target.outerText == '长期医嘱' || event.target.outerText == '临时医嘱') {
+          that.is_active = event.target.outerText
+        } else if ([329, 288, 34, 87, 303, 294, 2000002].includes(b)) {
+          that.is_active = event.target.id
+        } else {
+          that.is_active = b
+        }
       }
       }
       that.name_title = n
       that.name_title = n
       if (b != 0 && b != 292 && b != 1) {
       if (b != 0 && b != 292 && b != 1) {