diff --git a/src/forge/Merge/NewMerge.js b/src/forge/Merge/NewMerge.js index 2ef27efa..3cbe4ddc 100644 --- a/src/forge/Merge/NewMerge.js +++ b/src/forge/Merge/NewMerge.js @@ -178,7 +178,7 @@ class NewMerge extends Component { let arr = projects_names && projects_names.filter(item=>item.id===value); let identifier = arr && arr[0].project_id; let login = arr && arr[0].project_user_login; - let is_fork_id = parseInt(value) !== parseInt(id) + let is_fork_id = parseInt(value) !== parseInt(id); this.setState({ isSpin: true, merge_head: is_fork_id, diff --git a/src/forge/Merge/merge_form.js b/src/forge/Merge/merge_form.js index 57886d04..1c75a9f9 100644 --- a/src/forge/Merge/merge_form.js +++ b/src/forge/Merge/merge_form.js @@ -34,17 +34,19 @@ class MergeForm extends Component { this.set_defatul(); }; componentDidUpdate=(prevPros)=>{ + const { projectsId ,owner } = this.props.match.params; + const pId = prevPros.match.params.projectsId; + const oId = prevPros.match.params.owner; + if(pId !== projectsId || oId !== owner ){ + // console.log("切换了项目分支···········"); + this.get_default_selects(); + } if(prevPros && this.props && !this.props.checkIfLogin()){ this.props.history.push("/403") return } } - // check_is_login =() =>{ - // if(!this.props.checkIfLogin()){ - // this.props.history.push("/403") - // return - // } - // }; + get_default_selects = () => { const { projectsId ,owner } = this.props.match.params; this.setState({ isSpin: true }); diff --git a/src/forge/Order/MilepostDetail.js b/src/forge/Order/MilepostDetail.js index 2cfb2f89..7954630d 100644 --- a/src/forge/Order/MilepostDetail.js +++ b/src/forge/Order/MilepostDetail.js @@ -218,7 +218,7 @@ class MilepostDetail extends Component {
编辑里程碑 - 创建任务 + 创建易修
diff --git a/src/forge/Order/order.js b/src/forge/Order/order.js index ac9e7a0e..8875aa85 100644 --- a/src/forge/Order/order.js +++ b/src/forge/Order/order.js @@ -352,12 +352,12 @@ class order extends Component { if (this.props.checkIfLogin()) { return( - + 创建任务 + + 创建易修 ) }else{ return( - + 创建任务 + + 创建易修 ) } } diff --git a/src/forge/Order/order_form.js b/src/forge/Order/order_form.js index db36c3ea..ed8d4d8b 100644 --- a/src/forge/Order/order_form.js +++ b/src/forge/Order/order_form.js @@ -310,14 +310,14 @@ class order_form extends Component {

- {form_type === "new" ? "新建" :( form_type === "copy" ? "复制" : "编辑")}任务 + {form_type === "new" ? "新建" :( form_type === "copy" ? "复制" : "编辑")}易修

{getFieldDecorator("subject", { rules: [ { required: true, - message: "请填写任务标题", + message: "请填写易修标题", }, ] })()} diff --git a/src/forge/Team/Group/GroupDetails.jsx b/src/forge/Team/Group/GroupDetails.jsx index 8d1c519b..49720c17 100644 --- a/src/forge/Team/Group/GroupDetails.jsx +++ b/src/forge/Team/Group/GroupDetails.jsx @@ -84,11 +84,12 @@ export default ((props) => { // 移除成员 function removeUser(username) { - const url = `/organizations/${OIdentifier}/teams/${groupId}/team_users/${username}.json`; if (username) { + const url = `/organizations/${OIdentifier}/teams/${groupId}/team_users/quit.json`; axios.delete(url).then((result) => { if (result && result.data) { - + props.showNotification(`已成功退出团队!`); + props.history.push(`/organize/${OIdentifier}`); } }).catch((error) => { }); } diff --git a/src/modules/tpm/TPMBanner.js b/src/modules/tpm/TPMBanner.js index 3f591a40..6760fe04 100644 --- a/src/modules/tpm/TPMBanner.js +++ b/src/modules/tpm/TPMBanner.js @@ -1062,7 +1062,7 @@ class TPMBanner extends Component {
:

- 尚未创建任务的实训,不能申请发布 + 尚未创建易修的实训,不能申请发布

}