|
@@ -2,7 +2,6 @@
|
|
|
<div class="label-wrap" v-if="item">
|
|
|
<p v-for="(it,index) in datas.questionMapping" :key="it.id" :class="['symp',{'check':it.select==1},{'exclu':exclusion !==999 && it.exclusionType !== exclusion}]" @click="handleClick(it,index,true)">
|
|
|
<span>{{it.description||it.name}}</span>
|
|
|
- <!-- <span v-if="it.select==1" @click="deletSymp($event,it,index)"><img src="../images/delete.png" alt=""></span> -->
|
|
|
<span v-if="it.select==1" @click="deletSymp($event,it,index)"><img src="../images/del.png" alt=""></span>
|
|
|
</p>
|
|
|
<Toast :message="delText"
|
|
@@ -72,7 +71,6 @@
|
|
|
this.$store.commit('setDatas',{type:this.moduleType,data:newItem,pId:this.datas.id,ppId:this.ppId});
|
|
|
this.$store.commit('setText',{type:this.moduleType,text:it.name,textP:(it.description||it.name),pId:it.id,order:this.order,index:index,arrFlag:true});
|
|
|
if(it.questionMapping&&it.questionMapping.length>0){//有明细
|
|
|
- // this.$emit("setDetail",{detail:it,ppId:this.ppId})
|
|
|
this.$store.commit('setDetail',{detail:it,ppId:this.ppId,moduleType:this.moduleType,order:this.order,index:index})
|
|
|
}
|
|
|
},
|
|
@@ -126,7 +124,6 @@
|
|
|
//存值
|
|
|
this.$store.commit('setDatas',{type:this.moduleType,data:newItem,pId:this.datas.id,ppId:this.ppId});
|
|
|
this.$store.commit('delText',{type:this.moduleType,pId:temp.id,order:this.order,index:this.delIndx});
|
|
|
- // this.$store.commit('setText',{type:this.moduleType,text:it.name,textP:(it.description||it.name),pId:it.id,order:this.order,index:index,arrFlag:true});
|
|
|
this.cancelDel();
|
|
|
},
|
|
|
cancelDel(){
|
|
@@ -141,7 +138,6 @@
|
|
|
.label-wrap{
|
|
|
font-size: .3rem;
|
|
|
.symp{
|
|
|
- // position: relative;
|
|
|
display: inline-block;
|
|
|
min-width:1.9rem;
|
|
|
height: .72rem;
|
|
@@ -150,21 +146,16 @@
|
|
|
vertical-align: top;
|
|
|
}
|
|
|
span:first-child{
|
|
|
- // min-width:1.34rem;
|
|
|
min-width:1.42rem;
|
|
|
height: .72rem;
|
|
|
line-height: .72rem;
|
|
|
text-align: center;
|
|
|
}
|
|
|
img{
|
|
|
- // width:.56rem;
|
|
|
width:.48rem;
|
|
|
height: .70rem;
|
|
|
vertical-align: top;
|
|
|
z-index: 22;
|
|
|
- // position: absolute;
|
|
|
- // top:0;
|
|
|
- // right: 0;
|
|
|
}
|
|
|
}
|
|
|
.symp:last-child{
|
|
@@ -172,13 +163,10 @@
|
|
|
}
|
|
|
.check{
|
|
|
color: #fff;
|
|
|
- // background: linear-gradient(-270deg, #4F4FFF, #4F8BFF);
|
|
|
background: linear-gradient(-270deg, #3638EE, #4E72FF);
|
|
|
box-shadow: 0 .08rem .16rem 0 rgba(79,129,255,0.40);
|
|
|
- // padding-right: 0.57rem;
|
|
|
}
|
|
|
.exclu{
|
|
|
- // background:#f0f1f5;
|
|
|
background:#E3E4E8;
|
|
|
}
|
|
|
}
|