|
@@ -2,11 +2,12 @@ import React from 'react';
|
|
|
import { connect } from 'react-redux';
|
|
|
import { getSearchList } from '@store/async-actions/ScaleSearch';
|
|
|
import ScaleSearch from '@components/ScaleSearch';
|
|
|
-import {getTableList} from '../store/async-actions/pushMessage';
|
|
|
+import {getScaleInfo} from '../store/async-actions/pushMessage';
|
|
|
|
|
|
function mapStateToProps(state) {
|
|
|
return{
|
|
|
searchResult: state.scaleSearch.searchResult,
|
|
|
+ formulaResult: state.pushMessage.formulaResult,//量表内容
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -16,7 +17,7 @@ function mapDispatchToProps(dispatch) {
|
|
|
dispatch(getSearchList(val))
|
|
|
},
|
|
|
getScale(name) {
|
|
|
- dispatch(getTableList(name))
|
|
|
+ dispatch(getScaleInfo(name))
|
|
|
}
|
|
|
}
|
|
|
}
|