This commit is contained in:
parent
83e35aba5d
commit
0a5c6e91ee
|
@ -20,11 +20,12 @@ import Menu from "../menu/main.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
render() {
|
render() {
|
||||||
const {labelname,prop} = this.props
|
const {labelname,prop,labelwidth} = this.props
|
||||||
|
|
||||||
|
console.log(labelwidth)
|
||||||
return (
|
return (
|
||||||
<div className ="form-Item">
|
<div className ="form-Item">
|
||||||
<div className="form-label" style={{width:"180px"}}>
|
<div className="form-label" style={{width: labelwidth ? labelwidth : "180px" }}>
|
||||||
{labelname}
|
{labelname}
|
||||||
</div>
|
</div>
|
||||||
<div className="form-compontent">
|
<div className="form-compontent">
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
.form-label{
|
.form-label{
|
||||||
width: 180px;
|
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -50,7 +50,14 @@ export default class add extends React.Component{
|
||||||
<Card style={{ width:'100%' }} title={this.state.step1_pagetitle}>
|
<Card style={{ width:'100%' }} title={this.state.step1_pagetitle}>
|
||||||
<Step1/>
|
<Step1/>
|
||||||
</Card>
|
</Card>
|
||||||
|
<div className="btn-group">
|
||||||
|
<Button type="primary" htmlType="submit" onClick={()=>{this.submit()}}>
|
||||||
|
提交
|
||||||
|
</Button>
|
||||||
|
<Button type="normal" htmlType="reset" >
|
||||||
|
取消
|
||||||
|
</Button>
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -103,7 +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"
|
||||||
value={this.state.model.date_time}
|
value={this.state.model.date_time}
|
||||||
|
@ -114,19 +114,10 @@ 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 className="step-btn-group">
|
|
||||||
<div className="btn-group">
|
|
||||||
<Button type="primary" htmlType="submit" onClick={()=>{this.submit()}}>
|
|
||||||
提交
|
|
||||||
</Button>
|
|
||||||
<Button type="normal" htmlType="reset" >
|
|
||||||
取消
|
|
||||||
</Button>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue