|
@@ -5,9 +5,10 @@ import {getInfos} from '@store/actions/getInfoByUuid';
|
|
import {getUrlArgObject,pushAllDataList} from '@utils/tools';
|
|
import {getUrlArgObject,pushAllDataList} from '@utils/tools';
|
|
import {getInitModules,getCommonList} from '@store/async-actions/homePage.js';
|
|
import {getInitModules,getCommonList} from '@store/async-actions/homePage.js';
|
|
import store from '@store'
|
|
import store from '@store'
|
|
-import {ISREAD,MODI_LOADING,SETPRE} from "../types/homePage";
|
|
|
|
|
|
+import {ISREAD,MODI_LOADING,SETPRE,SETPREDATA} from "../types/homePage";
|
|
import { initItemList } from '@store/async-actions/tabTemplate';
|
|
import { initItemList } from '@store/async-actions/tabTemplate';
|
|
import config from '@config/index';
|
|
import config from '@config/index';
|
|
|
|
+import {Notify} from '@commonComp';
|
|
|
|
|
|
const api = {
|
|
const api = {
|
|
getPatInfo: '/patientInfo/getTopPatientInfo',
|
|
getPatInfo: '/patientInfo/getTopPatientInfo',
|
|
@@ -34,10 +35,10 @@ export const getPreMsg = (dispatch, getState) => {
|
|
other:result.qts?new Array(result.qts):[],
|
|
other:result.qts?new Array(result.qts):[],
|
|
checkBody:result.supplement?result.supplement:''
|
|
checkBody:result.supplement?result.supplement:''
|
|
}
|
|
}
|
|
- pushAllDataList(1,'push',preIcss,'preIcss');
|
|
|
|
- dispatch({type:SETPRE,show:false});
|
|
|
|
|
|
+ dispatch({type:SETPRE,show:true});
|
|
|
|
+ dispatch({type:SETPREDATA,preData:preIcss});
|
|
} else {
|
|
} else {
|
|
- console.log(res)
|
|
|
|
|
|
+ // console.log(res)
|
|
}
|
|
}
|
|
})
|
|
})
|
|
}
|
|
}
|
|
@@ -93,7 +94,9 @@ export const initHistoryDetails = (dispatch) => {
|
|
pushAllDataList(detail.sign,'push',detail,'history');
|
|
pushAllDataList(detail.sign,'push',detail,'history');
|
|
}else{
|
|
}else{
|
|
let pre = baseList.homePage.sysConfig.connect_prec;
|
|
let pre = baseList.homePage.sysConfig.connect_prec;
|
|
- (pre==1)&&dispatch({type:SETPRE,show:true});
|
|
|
|
|
|
+ getPreMsg(dispatch)
|
|
|
|
+ // (pre==1)&&dispatch({type:SETPRE,show:true});
|
|
|
|
+
|
|
}
|
|
}
|
|
dispatch({
|
|
dispatch({
|
|
type:ISREAD
|
|
type:ISREAD
|