This commit is contained in:
北海一刀 2021-11-10 16:52:53 +08:00
parent 0a5c6e91ee
commit b760efb84f
4 changed files with 17 additions and 8 deletions

View File

@ -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>

View File

@ -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>

View File

@ -76,3 +76,9 @@
.step1 .btn-group{
text-align: left;
justify-content: flex-start;
}

View File

@ -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>