Commit 76c4805a by jianglong

新增20域getref按钮

parent 1769b9e0
......@@ -54,7 +54,10 @@ export default class T20 extends Component
help={errmsg.s1}
validateStatus={errmsg.s1?'error':null}
>
<Input maxLength={16} value={value.s1} defaultValue={ref} placeholder={this.props.desp} style={{'imeMode':'disabled'}} onChange={e=>this.onChange(e.target.value)}/>
<Input addonAfter={<Button size="small" type="primary" shape="circle" icon="reload" title="reload 20 ref"
onClick={(e)=>{let day = new Date();
let dayWrapper = moment(day);
let ref="BW"+mty+dayWrapper.format("X")+random.string(1);console.log(ref);this.props.onValue([{s1:ref},ref])}} /> } maxLength={16} value={value.s1} defaultValue={ref} placeholder={this.props.desp} style={{'imeMode':'disabled'}} onChange={e=>this.onChange(e.target.value)}/>
</FormItem>
</Col>
......
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