This commit is contained in:
parent
0a5c6e91ee
commit
b760efb84f
|
@ -20,11 +20,11 @@ import Menu from "../menu/main.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const {labelname,prop,labelwidth} = this.props
|
const {labelname,prop,labelwidth,myClassName} = this.props
|
||||||
|
|
||||||
console.log(labelwidth)
|
console.log(labelwidth)
|
||||||
return (
|
return (
|
||||||
<div className ="form-Item">
|
<div className ={ myClassName ? myClassName + " form-Item" :"form-Item"} >
|
||||||
<div className="form-label" style={{width: labelwidth ? labelwidth : "180px" }}>
|
<div className="form-label" style={{width: labelwidth ? labelwidth : "180px" }}>
|
||||||
{labelname}
|
{labelname}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,6 +19,10 @@ export default class add extends React.Component{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
submit(){
|
||||||
|
this.refs.step1.submit();
|
||||||
|
}
|
||||||
|
|
||||||
render(){
|
render(){
|
||||||
return(
|
return(
|
||||||
<div id="plan-add">
|
<div id="plan-add">
|
||||||
|
@ -48,13 +52,13 @@ export default class add extends React.Component{
|
||||||
<div className="plan-title">营销计划</div>
|
<div className="plan-title">营销计划</div>
|
||||||
<div id="step1" className="step1">
|
<div id="step1" className="step1">
|
||||||
<Card style={{ width:'100%' }} title={this.state.step1_pagetitle}>
|
<Card style={{ width:'100%' }} title={this.state.step1_pagetitle}>
|
||||||
<Step1/>
|
<Step1 ref="step1"/>
|
||||||
</Card>
|
</Card>
|
||||||
<div className="btn-group">
|
<div className="btn-group">
|
||||||
<Button type="primary" htmlType="submit" onClick={()=>{this.submit()}}>
|
<Button type="primary" size="medium" onClick={()=>{this.submit()}}>
|
||||||
提交
|
下一步
|
||||||
</Button>
|
</Button>
|
||||||
<Button type="normal" htmlType="reset" >
|
<Button type="normal" size="medium">
|
||||||
取消
|
取消
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -76,3 +76,9 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.step1 .btn-group{
|
||||||
|
text-align: left;
|
||||||
|
justify-content: flex-start;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -103,6 +103,7 @@ export default class acclist extends React.Component{
|
||||||
{return_val}
|
{return_val}
|
||||||
</Tabs>
|
</Tabs>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
||||||
<FormItem labelname="开始~结束时间" prop="date_time" >
|
<FormItem labelname="开始~结束时间" prop="date_time" >
|
||||||
<CombinedDateRangePicker
|
<CombinedDateRangePicker
|
||||||
className="zent-datepicker-plan"
|
className="zent-datepicker-plan"
|
||||||
|
@ -114,8 +115,6 @@ export default class acclist extends React.Component{
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
onChange={this.onChangeCombinedDate}
|
onChange={this.onChangeCombinedDate}
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
|
||||||
</FormItem>
|
</FormItem>
|
||||||
</Form>
|
</Form>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue