|
@@ -56,9 +56,9 @@ class AssessResult extends Component {
|
|
//点确定关闭弹窗时把参数传到父组件去
|
|
//点确定关闭弹窗时把参数传到父组件去
|
|
const {handleSave,isAssessConfirm,clearChartData} = this.props;
|
|
const {handleSave,isAssessConfirm,clearChartData} = this.props;
|
|
clearChartData&&clearChartData();
|
|
clearChartData&&clearChartData();
|
|
- if(readyKeepHistory() == 1){
|
|
|
|
|
|
+ if(isAssessConfirm && readyKeepHistory() == 1){
|
|
Notify.error("主诉不能为空");
|
|
Notify.error("主诉不能为空");
|
|
- }else if(readyKeepHistory() == 2){
|
|
|
|
|
|
+ }else if(isAssessConfirm && readyKeepHistory() == 2){
|
|
Notify.info('诊断不能为空');
|
|
Notify.info('诊断不能为空');
|
|
}
|
|
}
|
|
isAssessConfirm&&handleSave(this.state,readyKeepHistory());
|
|
isAssessConfirm&&handleSave(this.state,readyKeepHistory());
|