Commit 5f958ca0 by snail

更新17域

parent 25bbd6ff
import React,{Component} from 'react'
import {bindActionCreators} from 'redux';
import {connect} from 'react-redux';
import {Table,Steps,Row,Col} from 'antd'
import {Table,Steps,Row,Col,Input} from 'antd'
import { updateTreeValue,updateRcvBic,initSwiftMessageTree ,updateSwiftMessage} from '../store/modules/swift/swift_action';
......@@ -85,8 +85,15 @@ export const mty=[
// ]
export class LeadPage extends Component
{
constructor(props)
{
super(props)
this.state={fil:''}
}
columns = [{
title: '创建报文',
title: <div>
<Input placeholder="输入报文类型数字,快速筛选" size="large" onChange={e=>this.setState({fil:e.target.value})}/>
</div>,
dataIndex: 'desp',
key: 'desp',
render:(text,record)=>{
......@@ -99,6 +106,7 @@ export class LeadPage extends Component
},
]
render()
{
return (
......@@ -119,7 +127,7 @@ export class LeadPage extends Component
<Col span={3}/>
<Col span={18}>
<Table columns={this.columns} dataSource={mty} />
<Table columns={this.columns} dataSource={this.state.fil?mty.filter(item=>item.mty.startsWith('mt'+this.state.fil)):mty} />
</Col>
<Col span={3}/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment