Commit e535afc4 by gq777

gengxin

parents c9f339dd 5f958ca0
import React,{Component} from 'react' import React,{Component} from 'react'
import {bindActionCreators} from 'redux'; import {bindActionCreators} from 'redux';
import {connect} from 'react-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'; import { updateTreeValue,updateRcvBic,initSwiftMessageTree ,updateSwiftMessage} from '../store/modules/swift/swift_action';
...@@ -10,31 +10,60 @@ const Step = Steps.Step; ...@@ -10,31 +10,60 @@ const Step = Steps.Step;
export const mty=[ export const mty=[
{mty:"mt101",desp:"MT 101 Request for Transfer"},
{mty:"mt103",desp:"MT 103 Single Customer Credit Transfer"}, {mty:"mt103",desp:"MT 103 Single Customer Credit Transfer"},
{mty:"mt195",desp:"MT 195 Queries"}, {mty:"mt195",desp:"MT 195 Queries"},
{mty:"mt196",desp:"MT 196 Answers"}, {mty:"mt196",desp:"MT 196 Answers"},
{mty:"mt199",desp:"MT 199 Free Format Message"}, {mty:"mt199",desp:"MT 199 Free Format Message"},
{mty:"mt202",desp:"MT 202 General Financial Institution Transfer"}, {mty:"mt202",desp:"MT 202 General Financial Institution Transfer"},
{mty:"mt202COV",desp:"MT 202 COV General Financial Institution Transfer"}, {mty:"mt202COV",desp:"MT 202 COV General Financial Institution Transfer"},
{mty:"mt210",desp:"MT 210 Notice to Receive"},
{mty:"mt292",desp:"MT 292 Request for Cancellation"},
{mty:"mt295",desp:"MT 295 Queries"}, {mty:"mt295",desp:"MT 295 Queries"},
{mty:"mt296",desp:"MT 296 Answers"}, {mty:"mt296",desp:"MT 296 Answers"},
{mty:"mt299",desp:"MT 299 Free Format Message"}, {mty:"mt299",desp:"MT 299 Free Format Message"},
<<<<<<< HEAD
{mty:"mt300",desp:"MT 300 Foregin Exchang confirmation"}, {mty:"mt300",desp:"MT 300 Foregin Exchang confirmation"},
{mty:"mt320",desp:"MT 320 Fixed Loan/Deposit Confirmation"}, {mty:"mt320",desp:"MT 320 Fixed Loan/Deposit Confirmation"},
=======
{mty:"mt300",desp:"MT 300 Foreign Exchange Confirmation"},
{mty:"mt305",desp:"MT 305 Foreign Currency Option Confirmation"},
{mty:"mt320",desp:"MT 320 Fixed Loan/Deposit Confirmation"},
{mty:"mt360",desp:"MT 360 Single Currency Interest Rate Derivative Confirmation"},
{mty:"mt400",desp:"MT 400 Advice of Payment"},
>>>>>>> 5f958ca09fec2e32c28fb7949d1f4f41a25f80e9
{mty:"mt410",desp:"MT 410 Acknowledgement"}, {mty:"mt410",desp:"MT 410 Acknowledgement"},
{mty:"mt420",desp:"MT 420 Tracer"}, {mty:"mt420",desp:"MT 420 Tracer"},
{mty:"mt422",desp:"MT 422 Advice of Fate and Request for Instructions"}, {mty:"mt422",desp:"MT 422 Advice of Fate and Request for Instructions"},
{mty:"mt499",desp:"MT 499 Free Format Message"}, {mty:"mt499",desp:"MT 499 Free Format Message"},
{mty:"mt600",desp:"MT 600 Commodity Trade Confirmation"},
{mty:"mt605",desp:"MT 605 Commodity Notice to Receive"},
{mty:"mt620",desp:"MT 620 Commodity Fixed Loan/Deposit Confirmation"},
{mty:"mt700",desp:"MT 700 Issue of a Documentary Credit"}, {mty:"mt700",desp:"MT 700 Issue of a Documentary Credit"},
{mty:"mt701",desp:"MT 701 General Financial Institution Transfer"}, {mty:"mt701",desp:"MT 701 General Financial Institution Transfer"},
{mty:"mt707",desp:"MT 707 Amendment to a Documentary Credit"}, {mty:"mt707",desp:"MT 707 Amendment to a Documentary Credit"},
{mty:"mt710",desp:"MT 710 Advice of a Third Bank's or a Non-Bank's Documentary Credit"},
{mty:"mt720",desp:"MT 720 Transfer of a Documentary Credit"},
{mty:"mt730",desp:"MT 730 Acknowledgement"},
{mty:"mt732",desp:"MT 732 Advice of Discharge"}, {mty:"mt732",desp:"MT 732 Advice of Discharge"},
{mty:"mt740",desp:"MT 740 Authorisation to Reimburse"}, {mty:"mt740",desp:"MT 740 Authorisation to Reimburse"},
{mty:"mt742",desp:"MT 742 Reimbursement Claim"},
{mty:"mt747",desp:"MT 747 Amendment to an Authorisation to Reimburse"}, {mty:"mt747",desp:"MT 747 Amendment to an Authorisation to Reimburse"},
{mty:"mt750",desp:"MT 750 Advice of Discrepancy"}, {mty:"mt750",desp:"MT 750 Advice of Discrepancy"},
{mty:"mt752",desp:"MT 752 Authorisation to Pay, Accept or Negotiate"}, {mty:"mt752",desp:"MT 752 Authorisation to Pay, Accept or Negotiate"},
{mty:"mt754",desp:"MT 754 Advice of Payment/Acceptance/Negotiation"}, {mty:"mt754",desp:"MT 754 Advice of Payment/Acceptance/Negotiation"},
{mty:"mt756",desp:"MT 756 Advice of Reimbursement or Payment"},
{mty:"mt759",desp:"MT 759 Ancillary Trade Structured Message"}, {mty:"mt759",desp:"MT 759 Ancillary Trade Structured Message"},
...@@ -45,6 +74,7 @@ export const mty=[ ...@@ -45,6 +74,7 @@ export const mty=[
{mty:"mt769",desp:"MT 769 Advice of Reduction or Release"}, {mty:"mt769",desp:"MT 769 Advice of Reduction or Release"},
{mty:"mt799",desp:"MT 799 Free Format Message"}, {mty:"mt799",desp:"MT 799 Free Format Message"},
{mty:"mt999",desp:"MT 999 Free Format Message"}, {mty:"mt999",desp:"MT 999 Free Format Message"},
{mty:"mt1000",desp:"MT 1000 TEST"}, {mty:"mt1000",desp:"MT 1000 TEST"},
...@@ -60,8 +90,15 @@ export const mty=[ ...@@ -60,8 +90,15 @@ export const mty=[
// ] // ]
export class LeadPage extends Component export class LeadPage extends Component
{ {
constructor(props)
{
super(props)
this.state={fil:''}
}
columns = [{ columns = [{
title: '创建报文', title: <div>
<Input placeholder="输入报文类型数字,快速筛选" size="large" onChange={e=>this.setState({fil:e.target.value})}/>
</div>,
dataIndex: 'desp', dataIndex: 'desp',
key: 'desp', key: 'desp',
render:(text,record)=>{ render:(text,record)=>{
...@@ -74,6 +111,7 @@ export class LeadPage extends Component ...@@ -74,6 +111,7 @@ export class LeadPage extends Component
}, },
] ]
render() render()
{ {
return ( return (
...@@ -94,7 +132,7 @@ export class LeadPage extends Component ...@@ -94,7 +132,7 @@ export class LeadPage extends Component
<Col span={3}/> <Col span={3}/>
<Col span={18}> <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>
<Col span={3}/> <Col span={3}/>
......
...@@ -459,7 +459,8 @@ class SNDBIC extends Component{ ...@@ -459,7 +459,8 @@ class SNDBIC extends Component{
this.state = {snd_bic:props.snd_bic,err_msg:this.props.err_msg} this.state = {snd_bic:props.snd_bic,err_msg:this.props.err_msg}
} }
onChange = val=>{ onChange = val=>{
if((!val && !this.state.snd_bic) || val == this.state.snd_bic)
return
let err_msg = validateRCV_BIC(val) let err_msg = validateRCV_BIC(val)
this.props.onChange(val,err_msg) this.props.onChange(val,err_msg)
...@@ -493,7 +494,8 @@ class RCVBIC extends Component{ ...@@ -493,7 +494,8 @@ class RCVBIC extends Component{
this.state = {rcv_bic:props.rcv_bic,err_msg:this.props.err_msg} this.state = {rcv_bic:props.rcv_bic,err_msg:this.props.err_msg}
} }
onChange = val=>{ onChange = val=>{
if((!val && !this.state.rcv_bic) || val == this.state.rcv_bic)
return
let err_msg = validateRCV_BIC(val) let err_msg = validateRCV_BIC(val)
this.props.onChange(val,err_msg) this.props.onChange(val,err_msg)
......
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17E extends Component {
name = '17E'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
...@@ -40,8 +40,8 @@ export default class T17F extends Component { ...@@ -40,8 +40,8 @@ export default class T17F extends Component {
> >
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}> <Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option> <Option value="N">N</Option>
<Option value="D">Y</Option> <Option value="Y">Y</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
......
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17H extends Component {
name = '17H'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="A">A</Option>
<Option value="P">P</Option>
<Option value="U">U</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
...@@ -40,8 +40,8 @@ export default class T17I extends Component { ...@@ -40,8 +40,8 @@ export default class T17I extends Component {
> >
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}> <Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option> <Option value="N">N</Option>
<Option value="D">Y</Option> <Option value="Y">Y</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
......
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17L extends Component {
name = '17L'
desp = "Portfolio Compression Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17M extends Component {
name = '17M'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="A">A</Option>
<Option value="C">C</Option>
<Option value="F">F</Option>
<Option value="I">I</Option>
<Option value="L">L</Option>
<Option value="O">O</Option>
<Option value="R">R</Option>
<Option value="U">U</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
...@@ -40,8 +40,8 @@ export default class T17O extends Component { ...@@ -40,8 +40,8 @@ export default class T17O extends Component {
> >
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}> <Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option> <Option value="N">N</Option>
<Option value="D">Y</Option> <Option value="Y">Y</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
......
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17P extends Component {
name = '17P'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="F">F</Option>
<Option value="O">O</Option>
<Option value="P">P</Option>
<Option value="U">U</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17Q extends Component {
name = '17Q'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17S extends Component {
name = '17S'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
...@@ -40,8 +40,8 @@ export default class T17T extends Component { ...@@ -40,8 +40,8 @@ export default class T17T extends Component {
> >
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}> <Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option> <Option value="N">N</Option>
<Option value="D">Y</Option> <Option value="Y">Y</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
......
...@@ -40,8 +40,8 @@ export default class T17U extends Component { ...@@ -40,8 +40,8 @@ export default class T17U extends Component {
> >
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}> <Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="C">N</Option> <Option value="N">N</Option>
<Option value="D">Y</Option> <Option value="Y">Y</Option>
</Select> </Select>
</FormItem> </FormItem>
</Col> </Col>
......
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17W extends Component {
name = '17W'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17X extends Component {
name = '17X'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17Y extends Component {
name = '17Y'
desp = "Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="F">F</Option>
<Option value="N">N</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
import React, { Component } from 'react'
import { Form, Input, DatePicker, Row, Col, Button, Icon, Select } from 'antd';
import { InputSize, Currency } from "./Utils"
import YBIC from './YBIC'
const FormItem = Form.Item;
const Option = Select.Option
export default class T17Z extends Component {
name = '17Z'
desp = "Block Trade Indicator"
pattern = "1!a"
tno = -1
onChange = (index, val) => {
this.props.onValue([{ s1: val }, val])
}
render() {
let value = this.props.value
let mval = value && value.length ? value[1] : ''
let errmsg = value && value.length == 3 ? value[2] : {}
value = value && value.length ? value[0] : {}
return (
<div>
<Row>
<Col span={3}>
<FormItem
help={errmsg.s1}
validateStatus={errmsg.s1 ? 'error' : null}
>
<Select allowClear={true} value={value.s1} style={{ width: "100%" }} placeholder="N/Y" onChange={(val) => this.onChange(1, val)}>
<Option value="N">N</Option>
<Option value="Y">Y</Option>
</Select>
</FormItem>
</Col>
</Row>
</div>
)
}
}
\ No newline at end of file
...@@ -10,6 +10,11 @@ export default class ZTextArea extends Component ...@@ -10,6 +10,11 @@ export default class ZTextArea extends Component
{ {
const rows = this.props.maxLength/this.props.cols const rows = this.props.maxLength/this.props.cols
let nval = e.target.value
let oldval = this.props.value
if((!oldval && ! nval) || nval== oldval)
return
replace2(this.eibs.refs.input,e.nativeEvent,rows,this.props.cols,this.props.value) replace2(this.eibs.refs.input,e.nativeEvent,rows,this.props.cols,this.props.value)
this.props.onChange && this.props.onChange(e) this.props.onChange && this.props.onChange(e)
......
...@@ -124,7 +124,11 @@ import T64 from './T64' ...@@ -124,7 +124,11 @@ import T64 from './T64'
import T86 from './T86' import T86 from './T86'
import T65 from './T65' import T65 from './T65'
import T25P from './T25P' import T25P from './T25P'
<<<<<<< HEAD
=======
//xinzeng
>>>>>>> 5f958ca09fec2e32c28fb7949d1f4f41a25f80e9
import T90A from './T90A' import T90A from './T90A'
import T90B from './T90B' import T90B from './T90B'
import T90C from './T90C' import T90C from './T90C'
...@@ -153,13 +157,30 @@ import T22L from './T22L' ...@@ -153,13 +157,30 @@ import T22L from './T22L'
import T15E from './T15E' import T15E from './T15E'
import T24D from './T24D' import T24D from './T24D'
import T14S from './T14S' import T14S from './T14S'
<<<<<<< HEAD
=======
//新增
>>>>>>> 5f958ca09fec2e32c28fb7949d1f4f41a25f80e9
import T15A from './T15A' import T15A from './T15A'
import T94A from './T94A' import T94A from './T94A'
import T22C from './T22C' import T22C from './T22C'
import T17E from './T17E'
import T17F from './T17F'
import T17H from './T17H'
import T17I from './T17I'
import T17L from './T17L'
import T17M from './T17M'
import T17O from './T17O'
import T17P from './T17P'
import T17Q from './T17Q'
import T17S from './T17S'
import T17T from './T17T' import T17T from './T17T'
import T17U from './T17U' import T17U from './T17U'
import T17I from './T17I' import T17W from './T17W'
import T17X from './T17X'
import T17Y from './T17Y'
import T17Z from './T17Z'
import T82A from './T82A' import T82A from './T82A'
import T82D from './T82D' import T82D from './T82D'
import T82J from './T82J' import T82J from './T82J'
...@@ -175,6 +196,7 @@ import T14C from './T14C' ...@@ -175,6 +196,7 @@ import T14C from './T14C'
import T32E from './T32E' import T32E from './T32E'
import T30U from './T30U' import T30U from './T30U'
import T39M from './T39M' import T39M from './T39M'
<<<<<<< HEAD
import T21A from './T21A' import T21A from './T21A'
import T14E from './T14E' import T14E from './T14E'
import T15B from './T15B' import T15B from './T15B'
...@@ -192,6 +214,8 @@ import T96A from './T96A' ...@@ -192,6 +214,8 @@ import T96A from './T96A'
import T21N from './T21N' import T21N from './T21N'
import T22B from './T22B' import T22B from './T22B'
import T30P from './T30P' import T30P from './T30P'
=======
>>>>>>> 5f958ca09fec2e32c28fb7949d1f4f41a25f80e9
export default function(tag,props,onValue){ export default function(tag,props,onValue){
switch(tag) switch(tag)
...@@ -321,9 +345,12 @@ export default function(tag,props,onValue){ ...@@ -321,9 +345,12 @@ export default function(tag,props,onValue){
case "T65" :return <T65 {...props} onValue={onValue} />; case "T65" :return <T65 {...props} onValue={onValue} />;
case "T86" :return <T86 {...props} onValue={onValue} />; case "T86" :return <T86 {...props} onValue={onValue} />;
case "T25P" :return <T25P {...props} onValue={onValue} />; case "T25P" :return <T25P {...props} onValue={onValue} />;
<<<<<<< HEAD
case "T16A" :return <T16A {...props} onValue={onValue} />; case "T16A" :return <T16A {...props} onValue={onValue} />;
//Gaoq //Gaoq
=======
>>>>>>> 5f958ca09fec2e32c28fb7949d1f4f41a25f80e9
case "T90A" :return <T90A {...props} onValue={onValue} />; case "T90A" :return <T90A {...props} onValue={onValue} />;
case "T90B" :return <T90B {...props} onValue={onValue} />; case "T90B" :return <T90B {...props} onValue={onValue} />;
case "T90C" :return <T90C {...props} onValue={onValue} />; case "T90C" :return <T90C {...props} onValue={onValue} />;
...@@ -352,6 +379,7 @@ export default function(tag,props,onValue){ ...@@ -352,6 +379,7 @@ export default function(tag,props,onValue){
case "T15E" :return <T15E {...props} onValue={onValue} />; case "T15E" :return <T15E {...props} onValue={onValue} />;
case "T24D" :return <T24D {...props} onValue={onValue} />; case "T24D" :return <T24D {...props} onValue={onValue} />;
case "T14S" :return <T14S {...props} onValue={onValue} />; case "T14S" :return <T14S {...props} onValue={onValue} />;
<<<<<<< HEAD
case "T21A" :return <T21A {...props} onValue={onValue} />; case "T21A" :return <T21A {...props} onValue={onValue} />;
case "T14E" :return <T14E {...props} onValue={onValue} />; case "T14E" :return <T14E {...props} onValue={onValue} />;
case "T15B" :return <T15B {...props} onValue={onValue} />; case "T15B" :return <T15B {...props} onValue={onValue} />;
...@@ -370,12 +398,28 @@ export default function(tag,props,onValue){ ...@@ -370,12 +398,28 @@ export default function(tag,props,onValue){
case "T30P" :return <T30P {...props} onValue={onValue} />; case "T30P" :return <T30P {...props} onValue={onValue} />;
//Z //Z
=======
//新增
>>>>>>> 5f958ca09fec2e32c28fb7949d1f4f41a25f80e9
case "T15A" :return <T15A {...props} onValue={onValue} />; case "T15A" :return <T15A {...props} onValue={onValue} />;
case "T94A" :return <T94A {...props} onValue={onValue} />; case "T94A" :return <T94A {...props} onValue={onValue} />;
case "T22C" :return <T22C {...props} onValue={onValue} />; case "T22C" :return <T22C {...props} onValue={onValue} />;
case "T17E" :return <T17E {...props} onValue={onValue} />;
case "T17F" :return <T17F {...props} onValue={onValue} />;
case "T17H" :return <T17H {...props} onValue={onValue} />;
case "T17I" :return <T17I {...props} onValue={onValue} />;
case "T17L" :return <T17L {...props} onValue={onValue} />;
case "T17M" :return <T17M {...props} onValue={onValue} />;
case "T17O" :return <T17O {...props} onValue={onValue} />;
case "T17P" :return <T17P {...props} onValue={onValue} />;
case "T17Q" :return <T17Q {...props} onValue={onValue} />;
case "T17S" :return <T17S {...props} onValue={onValue} />;
case "T17T" :return <T17T {...props} onValue={onValue} />; case "T17T" :return <T17T {...props} onValue={onValue} />;
case "T17U" :return <T17U {...props} onValue={onValue} />; case "T17U" :return <T17U {...props} onValue={onValue} />;
case "T17I" :return <T17I {...props} onValue={onValue} />; case "T17W" :return <T17W {...props} onValue={onValue} />;
case "T17X" :return <T17X {...props} onValue={onValue} />;
case "T17Y" :return <T17Y {...props} onValue={onValue} />;
case "T17Z" :return <T17Z {...props} onValue={onValue} />;
case "T82A" :return <T82A {...props} onValue={onValue} />; case "T82A" :return <T82A {...props} onValue={onValue} />;
case "T82D" :return <T82D {...props} onValue={onValue} />; case "T82D" :return <T82D {...props} onValue={onValue} />;
case "T82J" :return <T82J {...props} onValue={onValue} />; case "T82J" :return <T82J {...props} onValue={onValue} />;
......
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