修改button样式及其他的问题

This commit is contained in:
sylor_huang@126.com 2020-06-08 11:37:15 +08:00
parent 994f3e9716
commit 75768cf8b0
2 changed files with 13 additions and 19 deletions

View File

@ -216,7 +216,7 @@ class UserSubmitComponent extends Component {
</Form>
</div>
</div>
<div className="mt20 text-center">
<div className="mt20">
<Button
type="primary"
onClick={editor_type === "edit" ? this.UpdateFile : this.subMitFrom}

View File

@ -399,12 +399,11 @@ class order_form extends Component {
size={100}
showNotification={this.props.showNotification}
/>
<p className="clearfix mt20 text-right">
<p className="clearfix mt20">
<Button
type="primary"
loading={isSpin}
onClick={this.handleSubmit}
size="large"
>
<span className="plr10">
{form_type === "new" ? "创建" : "提交"}
@ -418,7 +417,6 @@ class order_form extends Component {
? `/projects/${projectsId || orderId}/orders` : `/projects/${projectsId}/orders/${orderId}/detail`
}
size="large"
>
<span className="plr10">取消</span>
</Button>
@ -494,21 +492,7 @@ class order_form extends Component {
</Select>
)}
</Form.Item>
<Form.Item label="完成度">
{getFieldDecorator("done_ratio", {
rules: [
{
required: true,
message: "请选择完成度",
},
],
initialValue: done_ratio,
})(
<Select onChange={this.changeRatio}>
{this.renderSelect(issue_chosen && issue_chosen.done_ratio)}
</Select>
)}
</Form.Item>
<Form.Item label="里程碑">
{getFieldDecorator("fixed_version_id", {
rules: [],
@ -571,6 +555,16 @@ class order_form extends Component {
onChange={this.changeEndTime}
/>
</Form.Item>
<Form.Item label="完成度">
{getFieldDecorator("done_ratio", {
rules: [],
initialValue: done_ratio,
})(
<Select onChange={this.changeRatio}>
{this.renderSelect(issue_chosen && issue_chosen.done_ratio)}
</Select>
)}
</Form.Item>
{/* <Form.Item label="">
<Switch
checkedChildren="是"