|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="symptomTagGroupWrapper commomSymptom clearfix">
|
|
|
<div class="operation-row">
|
|
|
- <el-checkbox-group size="small" v-if="qaType==2">
|
|
|
+ <el-checkbox-group size="small" v-if="qaType==2" v-model="checkedExc">
|
|
|
<el-checkbox-button :label="0" @change="handleExclu">互斥项</el-checkbox-button>
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
@@ -64,6 +64,7 @@ export default {
|
|
|
props: ['ascription','sexType','options','type','qaType','relationId'],
|
|
|
data() {
|
|
|
return {
|
|
|
+ checkedExc:false,
|
|
|
leftTagsList: [],
|
|
|
selectLeftTagsList: [],
|
|
|
rightTagsList: [],
|
|
@@ -106,6 +107,12 @@ export default {
|
|
|
relationId(newVal, preVal){
|
|
|
this.ifReflashTagList(newVal, preVal);
|
|
|
},
|
|
|
+ 'selectRightTagsList':{
|
|
|
+ handler:function(newVal){
|
|
|
+ this.checkedExc = newVal[0]&&newVal[0].exclusionType===1;
|
|
|
+ },
|
|
|
+ deep:true
|
|
|
+ }
|
|
|
},
|
|
|
methods: {
|
|
|
handleExclu(){
|
|
@@ -119,7 +126,11 @@ export default {
|
|
|
}
|
|
|
const arr = this.rightTagsList.map((it)=>{
|
|
|
if(it.id==this.selectRightTagsList[0].id){
|
|
|
- it.exclusionType=1;
|
|
|
+ if(it.exclusionType===1){
|
|
|
+ it.exclusionType = 0
|
|
|
+ }else{
|
|
|
+ it.exclusionType=1;
|
|
|
+ }
|
|
|
}else{
|
|
|
it.exclusionType=0;
|
|
|
}
|