diff --git a/src/forge/Information/Pages/selfList.jsx b/src/forge/Information/Pages/selfList.jsx
index b7b315c21..d1b36a39d 100644
--- a/src/forge/Information/Pages/selfList.jsx
+++ b/src/forge/Information/Pages/selfList.jsx
@@ -19,6 +19,7 @@ function SelfList(props){
const [ deleId , setDeleId] = useState(undefined);
const pathname = props.location.pathname;
const { id , temp } = props;
+ const { deptId } = props.match.params;
const limit = 15;
useEffect(()=>{
@@ -57,7 +58,7 @@ function SelfList(props){
function getNew(){
getNewsMyList(id,{
- auditStatus:status,
+ auditStatus:status===0 ? 2 : status === 2 ? 0 : 1,
pageSize:limit
}).then(result=>{
setList(result.data.rows);
@@ -109,7 +110,7 @@ function SelfList(props){
- {source ? "资源发布":"领域资讯"}
+ {source ? "资源发布": temp==="zone1" ? "新闻资讯":"领域资讯"}
我的{source ? "资源":"文章"}
diff --git a/src/forge/Main/Detail.js b/src/forge/Main/Detail.js
index d81a53b34..2e72a274d 100644
--- a/src/forge/Main/Detail.js
+++ b/src/forge/Main/Detail.js
@@ -501,22 +501,30 @@ class Detail extends Component {
// 同步镜像
synchronismMirror = () => {
- const { platform } = this.state;
- if (!platform) return;
- const { projectsId, owner } = this.props.match.params;
- const url = `/${owner}/${projectsId}/sync_mirror.json`;
- axios.post(url).then(result => {
- if (result && result.data && result.data.status === 0) {
- this.setState({
- secondSync: true
- })
- this.canvasChannel(true);
- } else {
- this.props.showNotification("镜像同步失败!");
- }
- }).catch(error => {
- console.log(error);
- })
+ const { isManager } = this.state;
+ const { current_user , showLoginDialog } = this.props;
+ if(!(current_user && current_user.login)){
+ showLoginDialog();
+ return
+ }
+ if((current_user && current_user.admin) || isManager){
+ const { platform } = this.state;
+ if (!platform) return;
+ const { projectsId, owner } = this.props.match.params;
+ const url = `/${owner}/${projectsId}/sync_mirror.json`;
+ axios.post(url).then(result => {
+ if (result && result.data && result.data.status === 0) {
+ this.setState({
+ secondSync: true
+ })
+ this.canvasChannel(true);
+ } else {
+ this.props.showNotification("镜像同步失败!");
+ }
+ }).catch(error => {
+ console.log(error);
+ })
+ }
}
textFunc = (forked_from_project_id, fork_info) => {
@@ -580,7 +588,7 @@ class Detail extends Component {
firstSync ? "" :
{
- ((current_user && current_user.admin) || isManager) && (projectDetail && projectDetail.type && projectDetail.type === 2) ?
+ (projectDetail && projectDetail.type && projectDetail.type === 2) ?
同步镜像 : ""
}