|
@@ -7,6 +7,7 @@ import store from '@store';
|
|
import {fullfillText} from '@common/js/func';
|
|
import {fullfillText} from '@common/js/func';
|
|
import {getOtherHisRecord,getInitData} from '@store/async-actions/fetchModules.js';
|
|
import {getOtherHisRecord,getInitData} from '@store/async-actions/fetchModules.js';
|
|
import {initHistoryDetails} from '@store/async-actions/patInfo';
|
|
import {initHistoryDetails} from '@store/async-actions/patInfo';
|
|
|
|
+import { initItemList } from '@store/async-actions/tabTemplate';
|
|
|
|
|
|
const api = {
|
|
const api = {
|
|
getModules:'/api/icss/moduleInfo/getAll',
|
|
getModules:'/api/icss/moduleInfo/getAll',
|
|
@@ -57,6 +58,9 @@ export const getInitModules= (dispatch,getStore)=>{
|
|
saveEmpty:initSaveText.currentEmpty,
|
|
saveEmpty:initSaveText.currentEmpty,
|
|
});
|
|
});
|
|
dispatch(getOtherHisRecord()); //获取其他史最近记录
|
|
dispatch(getOtherHisRecord()); //获取其他史最近记录
|
|
|
|
+ if(state.tabTemplate.items.length == 0){
|
|
|
|
+ dispatch(initItemList()); //模板列表没有就获取模板列表
|
|
|
|
+ }
|
|
initHis(dispatch)
|
|
initHis(dispatch)
|
|
}else{
|
|
}else{
|
|
initHis(dispatch)
|
|
initHis(dispatch)
|