Browse Source

bug修改

luolei 4 years atrás
parent
commit
c41cad4335
2 changed files with 3 additions and 2 deletions
  1. 2 1
      src/components/DiagnosticList/index.jsx
  2. 1 1
      src/containers/DiagnosticList.js

+ 2 - 1
src/components/DiagnosticList/index.jsx

@@ -241,7 +241,8 @@ class DiagnosticList extends Component {
       dragBox('dragModalWrap','dragModalTitle','del')
     }
     componentWillReceiveProps(nextprops) {
-      if (this.props.diagnosticStr != nextprops.diagnosticStr) {
+      let flg = store.getState().print.mrInfo.mrId&&store.getState().print.mrInfo.mrId.indexOf('reStart')>-1
+      if (this.props.diagnosticStr != nextprops.diagnosticStr&&!flg) {
         this.props.getBilling({mode:10});
       }
     }

+ 1 - 1
src/containers/DiagnosticList.js

@@ -12,7 +12,7 @@ import {autoFillModules} from '@store/async-actions/fetchModules';
 import {SET_ASSESS_DATA} from '@types/assessResult';
 import {didPushParamChange} from '@utils/tools';
 
-function mapStateToProps(state) {//console.log(state.homePage)
+function mapStateToProps(state) {console.log(state)
     const {diagnosticList,assessResult,pushMessage } = state;
     let diagnC = diagnosticList.chronicMagItem;
     return {