|
@@ -13,36 +13,35 @@ import {didPushParamChange} from '@utils/tools.js';
|
|
|
|
|
|
|
|
|
|
function mapStateToProps(state) { //console.log(111,state);
|
|
function mapStateToProps(state) { //console.log(111,state);
|
|
- const {homePage} = state;
|
|
|
|
|
|
+ const {homePage,currentIll,mainSuit,diagnosticList} = state;
|
|
return {
|
|
return {
|
|
- data:state.currentIll.data,//主诉模板
|
|
|
|
- emptyData:state.currentIll.emptyData,//空模板
|
|
|
|
- searchData:state.currentIll.searchDatas,//搜索结果
|
|
|
|
- focusIndex:state.currentIll.focusIndex,
|
|
|
|
- processModule:state.currentIll.processModule,//病程变化模板
|
|
|
|
|
|
+ data:currentIll.data,//主诉模板
|
|
|
|
+ emptyData:currentIll.emptyData,//空模板
|
|
|
|
+ searchData:currentIll.searchDatas,//搜索结果
|
|
|
|
+ focusIndex:currentIll.focusIndex,
|
|
|
|
+ processModule:currentIll.processModule,//病程变化模板
|
|
showArr:homePage.showDrop,
|
|
showArr:homePage.showDrop,
|
|
- span:state.currentIll.span,
|
|
|
|
- update:state.currentIll.update,//用于更新
|
|
|
|
- mainText:state.mainSuit.saveText,//主诉选中的数据
|
|
|
|
- mainData:state.mainSuit.data,//主诉使用的模板
|
|
|
|
- symptomFeature:state.mainSuit.symptomFeature,//主诉分词数据
|
|
|
|
- moduleNum:state.mainSuit.moduleNum,//主诉使用的模板
|
|
|
|
|
|
+ span:currentIll.span,
|
|
|
|
+ update:currentIll.update,//用于更新
|
|
|
|
+ mainText:mainSuit.saveText,//主诉选中的数据
|
|
|
|
+ mainData:mainSuit.data,//主诉使用的模板
|
|
|
|
+ symptomFeature:mainSuit.symptomFeature,//主诉分词数据
|
|
|
|
+ moduleNum:mainSuit.moduleNum,//主诉使用的模板
|
|
type: state.typeConfig.typeConfig,
|
|
type: state.typeConfig.typeConfig,
|
|
- mainIds:state.mainSuit.mainIds,//主诉症状选中的id(去重用)
|
|
|
|
- fillInfo: state.fillInfo,
|
|
|
|
|
|
+ mainIds:mainSuit.mainIds,//主诉症状选中的id(去重用)
|
|
showArr:homePage.showDrop,
|
|
showArr:homePage.showDrop,
|
|
totalHide: homePage.totalHide,
|
|
totalHide: homePage.totalHide,
|
|
- saveText:state.currentIll.saveText,
|
|
|
|
- selecteds:state.currentIll.selecteds, //普通多选选中状态
|
|
|
|
- editClear:state.currentIll.editClear,
|
|
|
|
- symptomIds:state.currentIll.symptomIds,//症状id,去重用
|
|
|
|
- isRead:state.homePage.isRead,
|
|
|
|
- fuzhen:state.diagnosticList.mainSuitStr,//诊断第一个复诊值
|
|
|
|
- boxTop:state.homePage.boxTop,
|
|
|
|
- boxLeft:state.homePage.boxLeft,
|
|
|
|
- allModules:state.homePage.allModules,
|
|
|
|
- // isChronic:!!state.diagnosticList.chronicMagItem,
|
|
|
|
- isChronic:state.mainSuit.chronicDesease,
|
|
|
|
|
|
+ saveText:currentIll.saveText,
|
|
|
|
+ selecteds:currentIll.selecteds, //普通多选选中状态
|
|
|
|
+ editClear:currentIll.editClear,
|
|
|
|
+ symptomIds:currentIll.symptomIds,//症状id,去重用
|
|
|
|
+ isRead:homePage.isRead,
|
|
|
|
+ fuzhen:diagnosticList.mainSuitStr,//诊断第一个复诊值
|
|
|
|
+ boxTop:homePage.boxTop,
|
|
|
|
+ boxLeft:homePage.boxLeft,
|
|
|
|
+ allModules:homePage.allModules,
|
|
|
|
+ // isChronic:!!diagnosticList.chronicMagItem,
|
|
|
|
+ isChronic:mainSuit.chronicDesease&&mainSuit.chronicDesease.name?mainSuit.chronicDesease:diagnosticList.chronicMagItem,
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|