提交 842ada46 authored 作者: 吴强's avatar 吴强

权属信息栏,搜索的检索关键字是客户端的权属编号

上级 9a2f6ff4
...@@ -29,6 +29,7 @@ export default { ...@@ -29,6 +29,7 @@ export default {
return { ...state, metas: payload }; return { ...state, metas: payload };
}, },
setSearchValue(state, { payload }) { setSearchValue(state, { payload }) {
console.info(payload);
return { return {
...state, ...state,
searchValue: payload, searchValue: payload,
...@@ -44,7 +45,7 @@ export default { ...@@ -44,7 +45,7 @@ export default {
})); }));
}, },
*getQSList({ payload }, { take, put, call, select }) { *getQSList({ payload }, { take, put, call, select }) {
const { clear, pZhengShuMingCheng } = payload; const { clear, pQuanShuBianMa } = payload;
// console.info(payload); // console.info(payload);
if (clear === 'clear') { if (clear === 'clear') {
yield put({ type: 'clearList', payload: {} }); yield put({ type: 'clearList', payload: {} });
...@@ -56,7 +57,7 @@ export default { ...@@ -56,7 +57,7 @@ export default {
containerName: 'query-DSRFWQuanShu', containerName: 'query-DSRFWQuanShu',
datasourceName: 'QueryfwqsTable', datasourceName: 'QueryfwqsTable',
}; };
const result = yield call(getData, coordinate, { pst: size, psz: 10, params: { pZhengShuMingCheng } }); const result = yield call(getData, coordinate, { pst: size, psz: 10, params: { pQuanShuBianMa } });
const meta = yield call(getMeta, coordinate); const meta = yield call(getMeta, coordinate);
yield put({ type: 'setMetas', payload: meta }); yield put({ type: 'setMetas', payload: meta });
for (const row of result) { for (const row of result) {
......
...@@ -13,20 +13,20 @@ import SearchComponent from '../../../components/searchComponent'; ...@@ -13,20 +13,20 @@ import SearchComponent from '../../../components/searchComponent';
class QuanshuList extends Component { class QuanshuList extends Component {
componentDidMount() { componentDidMount() {
const { dispatch } = this.props; const { dispatch } = this.props;
dispatch(createAction('QSInfo/getQSList')({ clear: '', pZhengShuMingCheng: this.props.QSInfo.searchValue })); dispatch(createAction('QSInfo/getQSList')({ clear: '', pQuanShuBianMa: this.props.QSInfo.searchValue }));
} }
onSearchSubmit = (pZhengShuMingCheng) => { onSearchSubmit = (pQuanShuBianMa) => {
this.props.dispatch(createAction('QSInfo/getQSList')({ clear: 'clear', pZhengShuMingCheng })); this.props.dispatch(createAction('QSInfo/getQSList')({ clear: 'clear', pQuanShuBianMa }));
}; };
onSearchChange = (pZhengShuMingCheng) => { onSearchChange = (pQuanShuBianMa) => {
this.props.dispatch(createAction('QSInfo/setSearchValue')(pZhengShuMingCheng)); this.props.dispatch(createAction('QSInfo/setSearchValue')(pQuanShuBianMa));
}; };
// 上拉加载更多 // 上拉加载更多
onEndReached = () => { onEndReached = () => {
// 以下是制造新数据 // 以下是制造新数据
if (!this.props.loading) { if (!this.props.loading) {
// console.info('执行了上啦加载'); // console.info('执行了上啦加载');
this.props.dispatch(createAction('QSInfo/getQSList')({ clear: '', pZhengShuMingCheng: this.props.QSInfo.searchValue })); this.props.dispatch(createAction('QSInfo/getQSList')({ clear: '', pQuanShuBianMa: this.props.QSInfo.searchValue }));
} }
}; };
onPressItem = (id) => { onPressItem = (id) => {
...@@ -65,7 +65,7 @@ class QuanshuList extends Component { ...@@ -65,7 +65,7 @@ class QuanshuList extends Component {
// 下拉刷新 // 下拉刷新
renderRefresh = () => { renderRefresh = () => {
if (!this.props.loading) { if (!this.props.loading) {
this.props.dispatch(createAction('QSInfo/getQSList')({ clear: 'clear', pZhengShuMingCheng: this.props.QSInfo.searchValue })); this.props.dispatch(createAction('QSInfo/getQSList')({ clear: 'clear', pQuanShuBianMa: this.props.QSInfo.searchValue }));
} }
}; };
/** /**
...@@ -80,7 +80,7 @@ class QuanshuList extends Component { ...@@ -80,7 +80,7 @@ class QuanshuList extends Component {
return ( return (
<FlatListItem <FlatListItem
height={120} height={120}
title={item.zhengShuMingCheng} title={item.quanShuBianMa}
meta={this.props.QSInfo.metas} meta={this.props.QSInfo.metas}
item={item} item={item}
onPressItem={this.onPressItem} onPressItem={this.onPressItem}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论