diff --git a/src/forge/Main/CoderRootCommit.js b/src/forge/Main/CoderRootCommit.js
index 9b349938..b6ca0be6 100644
--- a/src/forge/Main/CoderRootCommit.js
+++ b/src/forge/Main/CoderRootCommit.js
@@ -9,6 +9,12 @@ import Nodata from '../Nodata';
import axios from 'axios';
import {Link} from "react-router-dom";
+function returnbar(str){
+ if(str && str.length>0 && str.indexOf("%2F")>-1){
+ return str.replaceAll('%2F','/');
+ }
+ return str;
+}
class CoderRootCommit extends Component{
constructor(props){
super(props)
@@ -57,11 +63,12 @@ class CoderRootCommit extends Component{
this.setState({
isSpining:true
})
+ console.log(returnbar(branch));
const { projectsId , owner } = this.props.match.params;
const url = `/${owner}/${projectsId}/commits.json`;
axios.get(url,{
params:{
- sha:branch,
+ sha:returnbar(branch),
page,
limit
}
@@ -106,7 +113,7 @@ class CoderRootCommit extends Component{
const { commitDatas , dataCount , limit , page , isSpining , branchList } = this.state;
const { projectDetail, commit_class , defaultBranch } = this.props;
const { projectsId , owner , branchName } = this.props.match.params;
- let branch = branchName || defaultBranch;
+ let branch = returnbar(branchName || defaultBranch);
return(
diff --git a/src/forge/Main/CoderRootIndex.js b/src/forge/Main/CoderRootIndex.js
index ceff9d9f..84ab94d3 100644
--- a/src/forge/Main/CoderRootIndex.js
+++ b/src/forge/Main/CoderRootIndex.js
@@ -102,6 +102,11 @@ class CoderRootIndex extends Component{
(props) => ()
}
>
+ ()
+ }
+ >
()
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index f7820f10..f6dc83e0 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -442,7 +442,7 @@ class Detail extends Component {
{project.author.name}
}
/
- {project && project.name}
+ {projectDetail && projectDetail.name}
{ projectDetail && projectDetail.private && 私有}
diff --git a/src/forge/Merge/MergeItem.js b/src/forge/Merge/MergeItem.js
index 5c08a61f..32f3f811 100644
--- a/src/forge/Merge/MergeItem.js
+++ b/src/forge/Merge/MergeItem.js
@@ -183,7 +183,7 @@ class MergeItem extends Component {
) : (
""
)}
- {user_admin_or_member ? (
+ {user_admin_or_member && item.pull_request_status === 0 ? (
{
const { project } = this.props;
+ const { pull } = this.state;
let oldProject = preProps.project;
if(project && oldProject && (oldProject.id !== project.id)){
- this.compareProject(this.state.id,"master","master");
+ this.compareProject(this.state.id,pull,"master");
}
}
// 页面销毁取消监听
@@ -78,7 +79,8 @@ class NewMerge extends Component {
this.set_default_pull(result.data.branches);
this.set_default_merge(result.data.merge_projects);
}
- this.compareProject(result.data.id,"master","master");
+ const { pull } = this.state;
+ this.compareProject(result.data.id,pull||"master","master");
this.setState({isSpin: false})
})
.catch((error) => {
diff --git a/src/forge/Merge/merge.js b/src/forge/Merge/merge.js
index c0c7e5ce..90e35dcc 100644
--- a/src/forge/Merge/merge.js
+++ b/src/forge/Merge/merge.js
@@ -159,14 +159,10 @@ class merge extends Component {
this.getOption(e, id, name)}>
{name}
- {array &&
- array.length > 0 &&
- array.map((item, key) => {
+ {array && array.length > 0 && array.map((item, key) => {
return (
-
this.getOption(e, id, item.name)}
- >
+ ((!item.permission) || (item.permission && item.permission !== "Reporter")) &&
+ this.getOption(e, id, item.name)}>
{item.name}
);
diff --git a/src/forge/Merge/merge_form.js b/src/forge/Merge/merge_form.js
index 95a38d95..3481cc8f 100644
--- a/src/forge/Merge/merge_form.js
+++ b/src/forge/Merge/merge_form.js
@@ -346,19 +346,21 @@ class MergeForm extends Component {
)}
-
-
-
- 必须审查代码
-
-
- 合并后删除提交分支
-
-
- 合并后关闭提到的任务
-
-
-
+ {/*
+ {getFieldDecorator("checkbox-group")(
+
+
+ 必须审查代码
+
+
+ 合并后删除提交分支
+
+
+ 合并后关闭提到的任务
+
+
+ )}
+ */}
diff --git a/src/forge/Notice/Index.jsx b/src/forge/Notice/Index.jsx
index 94c63804..63d09748 100644
--- a/src/forge/Notice/Index.jsx
+++ b/src/forge/Notice/Index.jsx
@@ -70,9 +70,9 @@ function Index(props){
function deleteEvent(type,count) {
let c = count;
if(type==="apply"){
- setApplyCount(applyCount-count);
+ setTransferCount(transferCount-count);
}else if(type==="undo"){
- setTransferCount(applyCount-count);
+ setApplyCount(applyCount-count);
}else{
setMessagesCount(0);
c = messagesCount;
diff --git a/src/forge/Notice/UndoEvent.jsx b/src/forge/Notice/UndoEvent.jsx
index c8c579dc..d93a1f83 100644
--- a/src/forge/Notice/UndoEvent.jsx
+++ b/src/forge/Notice/UndoEvent.jsx
@@ -53,7 +53,7 @@ function UndoEvent(props){
Axios.post(url).then(result=>{
if(result && result.data){
getList();
- props && props.deleteEvent("undo",1);
+ props && props.deleteEvent("apply",1);
}
}).catch(error=>{})
}
diff --git a/src/forge/Order/Milepost.js b/src/forge/Order/Milepost.js
index d87bfe0b..ede2d314 100644
--- a/src/forge/Order/Milepost.js
+++ b/src/forge/Order/Milepost.js
@@ -154,10 +154,10 @@ class Milepost extends Component {
const { projectsId , owner } = this.props.match.params;
const menu = (