解决无回显bug
This commit is contained in:
parent
f539a05a6c
commit
81200868ba
|
@ -35,7 +35,8 @@ export default class exchangedit extends React.Component{
|
||||||
describe:'',
|
describe:'',
|
||||||
date_time:"",
|
date_time:"",
|
||||||
range:""
|
range:""
|
||||||
},
|
},
|
||||||
|
isload:false,
|
||||||
tempdata:[],
|
tempdata:[],
|
||||||
cur_product:null,
|
cur_product:null,
|
||||||
productOption:[],
|
productOption:[],
|
||||||
|
@ -66,6 +67,7 @@ export default class exchangedit extends React.Component{
|
||||||
}
|
}
|
||||||
|
|
||||||
this.setState({codeInfo:codeInfo})
|
this.setState({codeInfo:codeInfo})
|
||||||
|
this.setState({isload:true});
|
||||||
console.log("当前的商品信息66")
|
console.log("当前的商品信息66")
|
||||||
|
|
||||||
|
|
||||||
|
@ -401,29 +403,31 @@ export default class exchangedit extends React.Component{
|
||||||
width:'auto',
|
width:'auto',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
return(
|
return(
|
||||||
<div id="editcode">
|
<div id="editcode">
|
||||||
<div>
|
<div>
|
||||||
<Card style={{ width:'90%',"margin":"10px auto"}} title={'基本信息'}>
|
<Card style={{ width:'90%',"margin":"10px auto"}} title={'基本信息'}>
|
||||||
<p className="addcode">
|
<p className="addcode">
|
||||||
<Form model={this.state.codeInfo} rules={codeInfo} ref="code_info" className="addform">
|
<Form model={this.state.codeInfo} rules={codeInfo} ref="code_info" className="addform">
|
||||||
<FormItem labelname="兑换码名称" prop="code_name" id="code_name">
|
{
|
||||||
<Ipt onChange={(e)=>{
|
this.state.isload? <FormItem labelname="兑换码名称" prop="code_name" id="code_name">
|
||||||
let model = this.state.codeInfo;
|
<Ipt onChange={(e)=>{
|
||||||
model.code_name = e;
|
let model = this.state.codeInfo;
|
||||||
this.setState({codeInfo:model})
|
model.code_name = e;
|
||||||
}}
|
this.setState({codeInfo:model})
|
||||||
|
}}
|
||||||
|
|
||||||
onClearItem={(e)=>{
|
onClearItem={(e)=>{
|
||||||
let model = this.state.codeInfo;
|
let model = this.state.codeInfo;
|
||||||
model.code_name = "";
|
model.code_name = "";
|
||||||
this.setState({codeInfo:model})
|
this.setState({codeInfo:model})
|
||||||
}}
|
}}
|
||||||
|
|
||||||
|
|
||||||
value={this.state.codeInfo.code_name} placeholder={"请输入兑换码名称"} labelWidth={'0px'} maxLength={10} height={'36px'} width={'520px'} alignment={'left'}/>
|
value={this.state.codeInfo.code_name} placeholder={"请输入兑换码名称"} labelWidth={'0px'} maxLength={10} height={'36px'} width={'520px'} alignment={'left'}/>
|
||||||
</FormItem>
|
</FormItem>:null
|
||||||
|
}
|
||||||
|
|
||||||
<FormItem labelname="发放总量" prop="issued" id="issued">
|
<FormItem labelname="发放总量" prop="issued" id="issued">
|
||||||
<Ipt onChange={(e)=>{
|
<Ipt onChange={(e)=>{
|
||||||
let model= this.state.codeInfo;
|
let model= this.state.codeInfo;
|
||||||
|
|
Loading…
Reference in New Issue