提交 803c89e5 authored 作者: 吴强's avatar 吴强

权利人信息栏,搜索的检索关键字是当事人编号

上级 842ada46
......@@ -45,7 +45,7 @@ export default {
}));
},
*getDSRList({ payload }, { take, put, call, select }) {
const { clear, pName } = payload;
const { clear, pDangShiRenBianHao } = payload;
// console.info(payload);
if (clear === 'clear') {
yield put({ type: 'clearList', payload: {} });
......@@ -57,7 +57,7 @@ export default {
containerName: 'query-DSRInfo',
datasourceName: 'QueryDSRInfoTable',
};
const result = yield call(getData, coordinate, { pst: size, psz: 10, params: { pName } });
const result = yield call(getData, coordinate, { pst: size, psz: 10, params: { pDangShiRenBianHao } });
// console.info('查询的结果');
// console.info(result);
const meta = yield call(getMeta, coordinate);
......
......@@ -10,10 +10,10 @@ import SearchComponent from '../../../components/searchComponent';
class DSRInfoScreeen extends Component {
componentDidMount() {
const { dispatch } = this.props;
dispatch(createAction('DSRInfo/getDSRList')({ clear: '', pName: this.props.DSRInfo.searchValue }));
dispatch(createAction('DSRInfo/getDSRList')({ clear: '', pDangShiRenBianHao: this.props.DSRInfo.searchValue }));
}
onSearchSubmit = (pName) => {
this.props.dispatch(createAction('DSRInfo/getDSRList')({ clear: 'clear', pName }));
onSearchSubmit = (pDangShiRenBianHao) => {
this.props.dispatch(createAction('DSRInfo/getDSRList')({ clear: 'clear', pDangShiRenBianHao }));
};
onSearchChange = (pName) => {
this.props.dispatch(createAction('DSRInfo/setSearchValue')(pName));
......@@ -23,7 +23,7 @@ class DSRInfoScreeen extends Component {
// 以下是制造新数据
if (!this.props.loading) {
// console.info('执行了上啦加载');
this.props.dispatch(createAction('DSRInfo/getDSRList')({ clear: '', pName: this.props.DSRInfo.searchValue }));
this.props.dispatch(createAction('DSRInfo/getDSRList')({ clear: '', pDangShiRenBianHao: this.props.DSRInfo.searchValue }));
}
};
onPressItem = (id) => {
......@@ -47,7 +47,7 @@ class DSRInfoScreeen extends Component {
renderFooter = () => (
<WingBlank size="lg">
<WhiteSpace size="lg" />
<Text>到底了!!!</Text>
<Text style={{ textAlign: 'center', justifyContent: 'center' }}>到底了!!!</Text>
<WhiteSpace size="lg" />
</WingBlank>
);
......@@ -55,14 +55,14 @@ class DSRInfoScreeen extends Component {
renderEmptyView = () => (
<WingBlank size="lg">
<WhiteSpace size="lg" />
<Text>当前无内容</Text>
<Text style={{ textAlign: 'center', justifyContent: 'center' }}>当前无内容</Text>
<WhiteSpace size="lg" />
</WingBlank>
);
// 下拉刷新
renderRefresh = () => {
if (!this.props.loading) {
this.props.dispatch(createAction('DSRInfo/getDSRList')({ clear: 'clear', pName: this.props.DSRInfo.searchValue }));
this.props.dispatch(createAction('DSRInfo/getDSRList')({ clear: 'clear', pDangShiRenBianHao: this.props.DSRInfo.searchValue }));
}
};
/**
......@@ -76,7 +76,7 @@ class DSRInfoScreeen extends Component {
renderItem = ({ item }) => {
return (
<FlatListItem
height={200}
height={150}
title={item.dangShiRenXingMing}
meta={this.props.DSRInfo.metas}
item={item}
......@@ -87,7 +87,7 @@ class DSRInfoScreeen extends Component {
render() {
return (
<View>
<View style={{ marginBottom: 50 }}>
<SearchComponent onSearchSubmit={this.onSearchSubmit} onSearchChange={this.onSearchChange} />
<FlatList
data={this.props.DSRInfo.sourceData}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论