项目转移-转移权限

This commit is contained in:
caishi 2021-04-27 13:50:05 +08:00
parent e10f9893e0
commit 4ba63fd8fa
1 changed files with 3 additions and 4 deletions

View File

@ -29,7 +29,6 @@ class Setting extends Component {
project_units:['home',"activity","code"],
divertVisible:false,
is_transfering:undefined,
permission:undefined
};
}
@ -79,7 +78,6 @@ class Setting extends Component {
loading:false,
project_units:units,
is_transfering:result.data.is_transfering,
permission:result.data.permission
});
}
})
@ -227,8 +225,9 @@ class Setting extends Component {
render() {
const { getFieldDecorator } = this.props.form;
const { projectsId , owner } = this.props.match.params;
const { projectDetail } = this.props;
const { CategoryList, LanguageList, private_check ,loading , divertVisible , permission , is_transfering } = this.state;
const { CategoryList, LanguageList, private_check ,loading , divertVisible , is_transfering } = this.state;
return (
<div>
<DivertModal
@ -326,7 +325,7 @@ class Setting extends Component {
{/* <Mirror /> */}
</WhiteBack>
{
permission && (permission === "Admin" || permission === "Owner")?
projectDetail && projectDetail.permission && (projectDetail.permission === "Admin" || projectDetail.permission === "Owner")?
<WhiteBack className="dangerousBox mb20">
<div>
<div className="dangerousTitle">危险操作区</div>