diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js index a1a741496..3d82db26f 100644 --- a/src/forge/Main/Detail.js +++ b/src/forge/Main/Detail.js @@ -681,17 +681,22 @@ class Detail extends Component { (props) => () } > - {/* 修改详情 */} - () } > - {/* 复制详情 */} - () } + > */} + () + } > {/* 任务详情 */} input{ - border:none; outline: none; - padding:0px 8px; - height: 40px; - line-height: 40px; - border-radius: 0px; - border: 1px solid #eee; - flex:1; + padding: 0px 8px; + height: 38px; + line-height: 38px; + border: none!important; + border-right: 1px solid #eee!important; + border-radius: 4px 0px 0px 4px; + flex: 1; + max-width: 249px; } .wrap-commit-table .ant-table-small > .ant-table-content > .ant-table-body{ margin:0px; diff --git a/src/forge/Order/CopyDetail.js b/src/forge/Order/CopyDetail.js index 1f61e7369..906de4be7 100644 --- a/src/forge/Order/CopyDetail.js +++ b/src/forge/Order/CopyDetail.js @@ -1,11 +1,13 @@ -import React, { Component } from "react"; +import React from "react"; import OrderItem from './order_form' -class CopyDetail extends Component { - render() { - return ( - - ) - } + + +function CopyDetail(props){ + const operate = props.match.params.operate; + console.log(operate); + return( + + ) } -export default CopyDetail; +export default CopyDetail; \ No newline at end of file diff --git a/src/forge/Order/UpdateDetail.js b/src/forge/Order/UpdateDetail.js index 9cbb3cd64..0bf4f0f13 100644 --- a/src/forge/Order/UpdateDetail.js +++ b/src/forge/Order/UpdateDetail.js @@ -1,11 +1,11 @@ -import React, { Component } from "react"; +import React from "react"; import OrderForm from './order_form' -class UpdateDetail extends Component { - render() { - return ( - - ) - } + +function CopyDetail(props){ + const operateName = props.match.params.operateName; + return( + + ) } -export default UpdateDetail; +export default CopyDetail; diff --git a/src/forge/Order/order_form.js b/src/forge/Order/order_form.js index 936dc3d11..2c572d594 100644 --- a/src/forge/Order/order_form.js +++ b/src/forge/Order/order_form.js @@ -153,7 +153,7 @@ class order_form extends Component { values.issue_tag_ids = [values.issue_tag_ids]; } const { description, start_date, due_date, issue_type } = this.state; - if (form_type === "new") { + if (form_type !== "edit") { const url = `/${owner}/${projectsId}/issues.json`; axios.post(url, { ...values, diff --git a/src/forge/Team/Sub/SubDetail.jsx b/src/forge/Team/Sub/SubDetail.jsx index b4f1d0363..8307a8b14 100644 --- a/src/forge/Team/Sub/SubDetail.jsx +++ b/src/forge/Team/Sub/SubDetail.jsx @@ -48,7 +48,7 @@ export default ((props)=>{
- {OIdentifier} + {detail && detail.organization && detail.organization.nickname} {detail ? detail.name : "新建团队"}