解决值回显
This commit is contained in:
parent
95898ac09c
commit
8eead77573
|
@ -23,6 +23,7 @@ export default class acclist extends React.Component{
|
|||
date_time:[ moment().add(30, 'minutes').format("YYYY-MM-DD HH:mm:ss"),""]
|
||||
},
|
||||
reseller_option:[],
|
||||
lodshow:false,
|
||||
|
||||
}
|
||||
|
||||
|
@ -45,7 +46,7 @@ export default class acclist extends React.Component{
|
|||
|
||||
model.date_time=[data.begin_time,data.end_time]
|
||||
|
||||
this.setState({model:model})
|
||||
this.setState({model:model,lodshow:true})
|
||||
|
||||
|
||||
|
||||
|
@ -224,7 +225,8 @@ export default class acclist extends React.Component{
|
|||
return(
|
||||
<div id="step1">
|
||||
<Form model={this.state.model} rules={rules} ref="form1">
|
||||
<FormItem labelname="营销计划名称" prop="title" id="title">
|
||||
{
|
||||
this.state.lodshow? <FormItem labelname="营销计划名称" prop="title" id="title">
|
||||
|
||||
<Ipt onChange={(e)=>{
|
||||
let model2 = this.state.model;
|
||||
|
@ -245,7 +247,9 @@ export default class acclist extends React.Component{
|
|||
|
||||
|
||||
|
||||
</FormItem>
|
||||
</FormItem>:null
|
||||
}
|
||||
|
||||
<FormItem labelname="计划类型" prop="type" id="type">
|
||||
<RadioGroup onChange={(e)=>{this.onTypeChange(e)}} value={this.state.model.type}>
|
||||
<RadioButton value={1} disabled={true}>活动</RadioButton>
|
||||
|
|
Loading…
Reference in New Issue