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

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

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