|
@@ -9,8 +9,9 @@ import { showHistory } from '@store/actions/historyTemplates';
|
|
|
import { initItemList,setInitHistory } from '@store/async-actions/historyTemplates';
|
|
|
import HistoryCases from '@containers/HistoryCases';
|
|
|
import $ from 'jquery';
|
|
|
-import Notify from '@commonComp/Notify';
|
|
|
-import {MODI_LOADING} from '@store/types/homePage.js';
|
|
|
+import {Notify,Loading} from '@commonComp';
|
|
|
+// import {MODI_LOADING} from '@store/types/homePage.js';
|
|
|
+import {SHOW_LOADING} from '@store/types/copyRight.js';
|
|
|
class InfoTitle extends Component {
|
|
|
constructor(props){
|
|
|
super(props);
|
|
@@ -49,7 +50,7 @@ class InfoTitle extends Component {
|
|
|
}
|
|
|
}
|
|
|
render() {
|
|
|
- const {disVisible,copyVisible,winWidth} = this.props;
|
|
|
+ const {disVisible,copyVisible,winWidth,loading} = this.props;
|
|
|
const {le} = this.state;
|
|
|
return <div className={style['title-wrapper']} style={{zIndex:disVisible||copyVisible?40:204,left:le}}>
|
|
|
<PatInfoContainer sizeFlag={winWidth <= 1065?true:false}/>
|
|
@@ -60,6 +61,7 @@ class InfoTitle extends Component {
|
|
|
<span><img src={health} /> 健康档案</span>
|
|
|
</div>
|
|
|
<HistoryCases></HistoryCases>
|
|
|
+ <Loading show={loading}/>
|
|
|
</div>;
|
|
|
}
|
|
|
}
|
|
@@ -67,17 +69,20 @@ function mapStateToProps(state) {
|
|
|
return {
|
|
|
disVisible: state.copyRight.disVisible,
|
|
|
copyVisible:state.copyRight.copyVisible,
|
|
|
- winWidth:state.homePage.windowWidth
|
|
|
+ winWidth:state.homePage.windowWidth,
|
|
|
+ loading:state.copyRight.loading,
|
|
|
}
|
|
|
}
|
|
|
|
|
|
function mapDispatchToProps(dispatch){
|
|
|
return{
|
|
|
showLoading(){
|
|
|
- dispatch({type:MODI_LOADING,flag:true});
|
|
|
+ // dispatch({type:MODI_LOADING,flag:true});
|
|
|
+ dispatch({type:SHOW_LOADING,flag:true});
|
|
|
},
|
|
|
hideLoading(){
|
|
|
- dispatch({type:MODI_LOADING,flag:false});
|
|
|
+ // dispatch({type:MODI_LOADING,flag:false});
|
|
|
+ dispatch({type:SHOW_LOADING,flag:false});
|
|
|
}
|
|
|
}
|
|
|
}
|