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

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

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