|
@@ -139,9 +139,9 @@ export default {
|
|
this.$emit("updataResult", this.symptomResult, {val:tmpResult.join('、'),valp:tmpResultp.join('、')},++number);
|
|
this.$emit("updataResult", this.symptomResult, {val:tmpResult.join('、'),valp:tmpResultp.join('、')},++number);
|
|
},
|
|
},
|
|
selectResult(item,idx) {
|
|
selectResult(item,idx) {
|
|
- const { exclusion, select, value } = item;
|
|
|
|
|
|
+ const { exclusion, select } = item;
|
|
let result = JSON.parse(JSON.stringify(this.result));
|
|
let result = JSON.parse(JSON.stringify(this.result));
|
|
- if (select&&!value) {//判断是否选中,选中的取消,关联id删除,未选中判断是否互斥
|
|
|
|
|
|
+ if (select) {//判断是否选中,选中的取消,关联id删除,未选中判断是否互斥
|
|
for (let i = 0; i < result.length; i++) {
|
|
for (let i = 0; i < result.length; i++) {
|
|
if(i == idx){
|
|
if(i == idx){
|
|
result[i].select = false
|
|
result[i].select = false
|
|
@@ -161,7 +161,7 @@ export default {
|
|
if(result[i].select&&+result[i].exclusion === 1){
|
|
if(result[i].select&&+result[i].exclusion === 1){
|
|
result[i].select=false
|
|
result[i].select=false
|
|
}else{
|
|
}else{
|
|
- if(i == idx&&value){
|
|
|
|
|
|
+ if(i == idx){
|
|
result[i].select = true
|
|
result[i].select = true
|
|
}
|
|
}
|
|
}
|
|
}
|