|
@@ -11,8 +11,8 @@ import {
|
|
|
import { saveMessage, clearMessages } from "../store/async-actions/print";
|
|
|
import { saveTemplateDetail, getDepartments, saveAdminTemplateDetail, getFloderList,newFloder,orderFloder } from '@store/async-actions/tabTemplate';
|
|
|
import { getDptLis,folderModal,folderOrder } from '@store/actions/tabTemplate';
|
|
|
-import { saveClickNum, getInitModules } from '@store/async-actions/homePage';
|
|
|
-import { getOtherHisRecord } from '@store/async-actions/fetchModules';
|
|
|
+import { saveClickNum } from '@store/async-actions/homePage';
|
|
|
+/*import { getOtherHisRecord } from '@store/async-actions/fetchModules';*/
|
|
|
import { RECOVER_TAG_MAIN } from '@store/types/mainSuit';
|
|
|
import { RECOVER_TAG_CURRENT } from '@store/types/currentIll';
|
|
|
import { RECOVER_TAG_OTHER } from '@store/types/otherHistory';
|
|
@@ -101,14 +101,9 @@ function mapDispatchToProps(dispatch) {
|
|
|
|
|
|
dispatch(() => saveMessage())
|
|
|
},
|
|
|
- clear: (flag) => {
|
|
|
+ clear: () => {
|
|
|
clearMessages();
|
|
|
- // console.log('清除数据');
|
|
|
- // dispatch(getOtherHisRecord()); //清除后重新获取其他史记录
|
|
|
- // 清除时如果是慢病模板则重新获取模板
|
|
|
- if (flag) {
|
|
|
- dispatch(getInitModules);
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
saveDataAlls(val, sex, id,fstName,folderId,folderName) {
|
|
|
dispatch(saveAdminTemplateDetail(val, sex, id,fstName,folderId,folderName))
|
|
@@ -116,7 +111,15 @@ function mapDispatchToProps(dispatch) {
|
|
|
saveDataAll(val, sex, spell) {
|
|
|
dispatch(saveTemplateDetail(val, sex, spell))
|
|
|
},
|
|
|
+ hideAllSearch(){
|
|
|
+ dispatch({
|
|
|
+ type:'HIDE_ALL_SEARCH'
|
|
|
+ });
|
|
|
+ },
|
|
|
diagShowTmp(bool) {
|
|
|
+ dispatch({
|
|
|
+ type:'HIDE_ALL_SEARCH'
|
|
|
+ });
|
|
|
dispatch({
|
|
|
type: DIAG_SHOW,
|
|
|
data: bool
|