|
@@ -10,6 +10,8 @@ import { host, prefix } from '@utils/config.js';
|
|
|
import { isIE, getUrlArgObject,getCurrentDate,setFontColorSize } from '@utils/tools.js';
|
|
|
import { dragBox } from '@utils/drag';
|
|
|
import WrapModalBody from '@containers/WrapModalBody';
|
|
|
+import {getMRAnalyse} from '@store/async-actions/pushMessage';
|
|
|
+import {SET_CURRENT_MODULE} from '@types/homePage';
|
|
|
|
|
|
|
|
|
(function ($) {
|
|
@@ -130,6 +132,7 @@ class Inspect extends React.Component {
|
|
|
}
|
|
|
}
|
|
|
store.dispatch(getExcelList(res.data));
|
|
|
+ store.dispatch(getMRAnalyse());
|
|
|
fetchPushInfos && fetchPushInfos();
|
|
|
if (message && message.length != 0) {
|
|
|
that.setState({
|
|
@@ -155,6 +158,15 @@ class Inspect extends React.Component {
|
|
|
}
|
|
|
handleImportExcel() {
|
|
|
this.inputRef.click();
|
|
|
+ const storeState = store.getState()
|
|
|
+ const {moduleName} = storeState.homePage
|
|
|
+ if(moduleName != '化验') {
|
|
|
+ store.dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName:'化验'
|
|
|
+ });
|
|
|
+ store.dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
}
|
|
|
cancel() {
|
|
|
this.setState({ visible: false })
|
|
@@ -182,6 +194,15 @@ class Inspect extends React.Component {
|
|
|
this.setState({
|
|
|
hide: true
|
|
|
})
|
|
|
+ const storeState = store.getState()
|
|
|
+ const {moduleName} = storeState.homePage
|
|
|
+ if(moduleName != '化验') {
|
|
|
+ store.dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName:'化验'
|
|
|
+ });
|
|
|
+ store.dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
}
|
|
|
onClose() {
|
|
|
this.setState({
|
|
@@ -199,6 +220,15 @@ class Inspect extends React.Component {
|
|
|
this.setState({
|
|
|
importLis:!flg
|
|
|
})
|
|
|
+ const storeState = store.getState()
|
|
|
+ const {moduleName} = storeState.homePage
|
|
|
+ if(moduleName != '化验') {
|
|
|
+ store.dispatch({
|
|
|
+ type: SET_CURRENT_MODULE,
|
|
|
+ moduleName:'化验'
|
|
|
+ });
|
|
|
+ store.dispatch(getMRAnalyse());
|
|
|
+ }
|
|
|
}
|
|
|
refreshScroller(){
|
|
|
//滚动条对象
|