|
@@ -11,15 +11,15 @@
|
|
|
<span>住院病案</span>
|
|
|
</li>
|
|
|
<li
|
|
|
- :class="[is_active == item.bllb && item.bllb != 49 ? 'is-active' : '', item.bllb == 49 || [2000002, 294, 303, 329, 288, 34, 87].includes(item.bllb) ? 'li-left-itemyz' : 'li-left-item']"
|
|
|
+ :class="[is_active == item.bllb && item.bllb != 49 ? 'is-active' : '', item.bllb == 49 || [2000002, 294, 303, 288, 87].includes(item.bllb) ? 'li-left-itemyz' : 'li-left-item']"
|
|
|
v-for="(item, index) in treeList"
|
|
|
:key="index"
|
|
|
@click="clickTree(item.bllb, item.name, item)"
|
|
|
>
|
|
|
<span>{{ item.name }}</span>
|
|
|
<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 v-if="item.bllb == 2000002">
|
|
|
<div :class="['li-left-item-li', is_active == jitem.ExamType ? 'is-active' : '']" v-for="(jitem, jindex) in item.list" :key="jindex" :id="jitem.type">
|
|
@@ -27,7 +27,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 病程记录、手术记录 -->
|
|
|
- <div v-if="[294, 303, 329, 288, 34, 87].includes(item.bllb)">
|
|
|
+ <div v-if="[294, 303, 288, 87].includes(item.bllb)">
|
|
|
<div
|
|
|
:class="['li-left-item-li', is_active == jitem.blbh ? 'is-active' : '']"
|
|
|
v-for="(jitem, jindex) in item.list"
|
|
@@ -338,11 +338,7 @@ export default {
|
|
|
if (item.blbh) {
|
|
|
this.is_active_blbh = item.blbh
|
|
|
} else {
|
|
|
- if (event.target.id) {
|
|
|
- this.is_active_blbh = event.target.id
|
|
|
- } else {
|
|
|
- return
|
|
|
- }
|
|
|
+ this.is_active_blbh = event.target.id
|
|
|
}
|
|
|
} else {
|
|
|
this.is_active_blbh = this.mainHomeData.MED_REC_ID
|
|
@@ -351,16 +347,18 @@ export default {
|
|
|
this.parentType = b;
|
|
|
let that = this;
|
|
|
// 判断点击的
|
|
|
- if (event.target.outerText == '长期医嘱' || event.target.outerText == '临时医嘱') {
|
|
|
- that.is_active = event.target.outerText;
|
|
|
- } else if (b == 2000002) {
|
|
|
- that.is_active = event.target.id;
|
|
|
- } else if (b == 294) {
|
|
|
- that.is_active = event.target.id;
|
|
|
- } else if (b == 303) {
|
|
|
- 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 (b == 2000002) {
|
|
|
+ that.is_active = event.target.id;
|
|
|
+ } else if (b == 294) {
|
|
|
+ that.is_active = event.target.id;
|
|
|
+ } else if (b == 303) {
|
|
|
+ that.is_active = event.target.id;
|
|
|
+ } else {
|
|
|
+ that.is_active = b;
|
|
|
+ }
|
|
|
}
|
|
|
that.name_title = n;
|
|
|
if (b != 0 && b != 292 && b != 1) {
|