|
@@ -2,15 +2,19 @@ import React from 'react';
|
|
|
import { connect } from 'react-redux';
|
|
|
import { getSearchList } from '@store/async-actions/medicalInfo';
|
|
|
import MedicalInfo from '@components/MedicalInfo';
|
|
|
-import {getAllConceptDetail} from '../store/async-actions/pushMessage';
|
|
|
+import {getAllConceptDetail, getScaleInfo} from '../store/async-actions/pushMessage';
|
|
|
import {getMedicalFilters} from '../store/async-actions/fetchModules';
|
|
|
+import {CLEAR_SCALE_SEARCH_LIST} from '@types/scaleSearch';
|
|
|
import {CLEAR_INFO_SEARCH_LIST,SET_FILTER_LIST} from '@types/medicalInfo';
|
|
|
+import {SHOW_TABLE_LIST} from '@store/types/pushMessage';
|
|
|
|
|
|
function mapStateToProps(state) {
|
|
|
- const {medicalInfo} = state;
|
|
|
+ const {medicalInfo,pushMessage} = state;
|
|
|
return{
|
|
|
searchResult: medicalInfo.searchResult,
|
|
|
- filterList:medicalInfo.filterList
|
|
|
+ filterList:medicalInfo.filterList,
|
|
|
+ formulaResult: pushMessage.formulaResult,
|
|
|
+ scaleInfo: pushMessage.scaleInfo,//量表内容
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -27,6 +31,18 @@ function mapDispatchToProps(dispatch) {
|
|
|
type:CLEAR_INFO_SEARCH_LIST
|
|
|
})
|
|
|
},
|
|
|
+ showScaleFn(item,isPop){
|
|
|
+ dispatch({
|
|
|
+ type:SHOW_TABLE_LIST,
|
|
|
+ name:'showTable',
|
|
|
+ value:true,
|
|
|
+ isPop,
|
|
|
+ item:Object.assign({},item)
|
|
|
+ });
|
|
|
+ },
|
|
|
+ getScale(item) {
|
|
|
+ dispatch(getScaleInfo(item))
|
|
|
+ },
|
|
|
getFilters(){
|
|
|
getMedicalFilters().then((res)=>{
|
|
|
if(res.data.code=='0'){
|