|
@@ -104,11 +104,11 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
if(result[i].name.indexOf("${")!==-1){
|
|
|
- tmpResult=msg.prefix+(result[i].value||"")+msg.suffix;
|
|
|
- tmpResultp=msgp.prefix+(result[i].value||"")+msgp.suffix;
|
|
|
+ tmpResult=result[i].value?msg.prefix+(result[i].value||"")+msg.suffix:'';
|
|
|
+ tmpResultp=result[i].value?msgp.prefix+(result[i].value||"")+msgp.suffix:'';
|
|
|
}else{
|
|
|
- tmpResult=text||"无";
|
|
|
- tmpResultp=textp||"无";
|
|
|
+ tmpResult=text;
|
|
|
+ tmpResultp=textp;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -120,11 +120,15 @@ export default {
|
|
|
}
|
|
|
if(+this.symptomResult.flag===2){ //为诱因控件
|
|
|
const orgChoose = this.$store.state.symptom.choose;
|
|
|
- orgChoose[0].reason = tmpResult||"无";
|
|
|
- orgChoose[0].reasonP = tmpResultp||"无";
|
|
|
+ orgChoose[0].reason = tmpResult;
|
|
|
+ orgChoose[0].reasonP = tmpResultp;
|
|
|
this.$store.commit('setChoose', { choose: orgChoose, type: 1 });
|
|
|
}
|
|
|
//this.contentResult = tmpResult;
|
|
|
+ if(!tmpResult){
|
|
|
+ this.$emit("warning","选中项输入框必填");
|
|
|
+ return;
|
|
|
+ }
|
|
|
this.$emit("updataResultSingle", this.symptomResult, {val:tmpResult||"无",valp:tmpResultp||"无",flag:this.symptomResult.flag},++number);
|
|
|
},
|
|
|
selectResult(item,idx) {
|