|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="qcTypeWrapper commomSymptom clearfix">
|
|
|
- <QCTipPop :name="curName" :example="curEmp" :show="showPop" :top="popTop" :left="popLeft"></QCTipPop>
|
|
|
+ <QCTipPop :name="curName" :example="curEmp" :show="showPop" :top="popTop" :left="popLeft" @close="closePop"></QCTipPop>
|
|
|
<div class="bottomPartLeft">
|
|
|
<p style="height: 26px;"> </p>
|
|
|
<div class="pool">
|
|
@@ -11,9 +11,9 @@
|
|
|
:style="getStyle(item)?styles:null"
|
|
|
@click='selectLeftTag(item, index, $event)'
|
|
|
>
|
|
|
- <p class="ellipsis" >
|
|
|
+ <p class="ellipsis" @click="closePop">
|
|
|
<span class="tagName">{{item.name}}</span>
|
|
|
- <span :class="activeId==item.id?'tip-icon active':'tip-icon'" @click="showTipPop(item,$event)"></span>
|
|
|
+ <span :class="activeId==item.id?'tip-icon active':'tip-icon'" @click.stop="showTipPop(item,$event)"></span>
|
|
|
</p>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -32,9 +32,9 @@
|
|
|
:style="getStyle2(item)?styles:null"
|
|
|
@click='selectRightTag(item)'
|
|
|
>
|
|
|
- <p class="ellipsis">
|
|
|
+ <p class="ellipsis" @click="closePop">
|
|
|
<span class="tagName">{{item.name}}</span>
|
|
|
- <span :class="activeId==item.id?'tip-icon active':'tip-icon'" @click="showTipPop(item,$event)"></span>
|
|
|
+ <span :class="activeId==item.id?'tip-icon active':'tip-icon'" @click.stop="showTipPop(item,$event)"></span>
|
|
|
</p>
|
|
|
</li>
|
|
|
</ul>
|
|
@@ -97,21 +97,24 @@ export default {
|
|
|
}*/
|
|
|
},
|
|
|
methods: {
|
|
|
+ closePop(){
|
|
|
+ this.activeId = '';
|
|
|
+ this.curName = '';
|
|
|
+ this.curEmp = '';
|
|
|
+ this.popTop = 0;
|
|
|
+ this.popLeft=0;
|
|
|
+ this.showPop=false;
|
|
|
+ },
|
|
|
showTipPop(item,e){
|
|
|
- if(this.showPop){
|
|
|
- this.activeId = '';
|
|
|
- this.curName = '';
|
|
|
- this.curEmp = '';
|
|
|
- this.popTop = 0;
|
|
|
- this.popLeft=0;
|
|
|
- this.showPop=false;
|
|
|
+ if(this.showPop&&this.activeId===item.id){
|
|
|
+ this.closePop();
|
|
|
return;
|
|
|
}
|
|
|
this.activeId = item.id;
|
|
|
this.curName = item.name;
|
|
|
this.curEmp = item.behospitalCodes;
|
|
|
- this.popTop = e.clientX;
|
|
|
- this.popLeft=e.clientY;
|
|
|
+ this.popTop = e.clientY;
|
|
|
+ this.popLeft=e.clientX;
|
|
|
this.showPop = true;
|
|
|
},
|
|
|
handleExclu(){
|
|
@@ -312,6 +315,7 @@ export default {
|
|
|
.qcTypeWrapper {
|
|
|
padding-left: 60px;
|
|
|
margin:-20px 0 20px;
|
|
|
+ position: relative;
|
|
|
.bottomPartLeft {
|
|
|
width: 40%;
|
|
|
box-sizing: border-box;
|