Browse Source

计算公式弹窗关闭bug修改1916

zhouna 5 years ago
parent
commit
ae46804dcc
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/components/ChronicInfo/index.jsx

+ 7 - 0
src/components/ChronicInfo/index.jsx

@@ -488,6 +488,13 @@ class ChronicInfo extends React.Component{
     return list;
   }
   componentWillReceiveProps(next){
+    //计算公式可能结果弹窗关闭1916
+    if(!next.data||next.data.length==0){
+      this.setState({
+        formulaId:null,
+        optionId:null
+      });
+    }
     if(JSON.stringify(next.calcuValues)!=JSON.stringify(this.props.calcuValues)){
       this.setState({
         calcuValues:next.calcuValues