|
@@ -68,15 +68,15 @@ class AssessResult extends Component {
|
|
|
}
|
|
|
componentWillUnmount(){
|
|
|
//点确定关闭弹窗时把参数传到父组件去
|
|
|
- const {handleSave,isAssessConfirm,clearChartData,handleSaveCalcu} = this.props;
|
|
|
+ const {handleSave,isAssessConfirm,clearChartData,handleSaveCalcu,isRecommend} = this.props;
|
|
|
clearChartData&&clearChartData();
|
|
|
- if(isAssessConfirm && readyKeepHistory() == 1){
|
|
|
+ if(!isRecommend&&isAssessConfirm && readyKeepHistory() == 1){
|
|
|
Notify.error("主诉不能为空");
|
|
|
- }else if(isAssessConfirm && readyKeepHistory() == 2){
|
|
|
+ }else if(!isRecommend&&isAssessConfirm && readyKeepHistory() == 2){
|
|
|
Notify.info('诊断不能为空');
|
|
|
}
|
|
|
handleSaveCalcu&&handleSaveCalcu(this.state.wholeResults);
|
|
|
- isAssessConfirm&&handleSave(this.state,readyKeepHistory());
|
|
|
+ isAssessConfirm&&handleSave(this.state,readyKeepHistory(),isRecommend);
|
|
|
}
|
|
|
handoutTypes(item,i){
|
|
|
const {getIndexData,indexData,timeTypes,wholeAssessData,closeAssess,showScaleFn,calcuFormula,isRecommend,chronicPushItems,
|