|
|
|
@ -324,7 +324,7 @@ export default class TPMsettings extends Component {
|
|
|
|
|
opening_time:response.data.shixun.opening_time,
|
|
|
|
|
newuse_scope:response.data.shixun.use_scope,
|
|
|
|
|
scope_partments: response.data.shixun.scope_partment.length,
|
|
|
|
|
shixunmemoMDvalue:response.data.shixun.evaluate_script
|
|
|
|
|
shixunmemoMDvalue:response.data.shixun.evaluate_script,
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// if(response.data.status===403){
|
|
|
|
@ -598,7 +598,7 @@ export default class TPMsettings extends Component {
|
|
|
|
|
evaluate_script, exec_time, webssh, use_scope, trainee, can_copy, task_pass, test_set_permission, hide_code, code_hidden, forbid_copy, vnc,multi_webssh,
|
|
|
|
|
opening_time, pod_exist_time,shixunmemoMDvalue
|
|
|
|
|
} = this.state;
|
|
|
|
|
let operateauthority=this.props.identity<4&&this.props.status==0||this.props.identity===1&&this.props.status==2||this.props.identity===1&&this.props.status==1;
|
|
|
|
|
let operateauthority=this.props.identity<4&&this.state.status==0||this.props.identity===1&&this.state.status==2||this.props.identity===1&&this.state.status==1;
|
|
|
|
|
|
|
|
|
|
const description_editormd = this.description_editormd.getValue();
|
|
|
|
|
|
|
|
|
@ -1084,7 +1084,7 @@ export default class TPMsettings extends Component {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const dateFormat = 'YYYY-MM-DD HH:mm:ss';
|
|
|
|
|
let operateauthority=this.props.identity===1?true:this.props.identity<4&&this.props.status==0;
|
|
|
|
|
let operateauthority=this.props.identity===1?true:this.props.identity<4&&this.state.status==0?true:false;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<div className="educontent mt30 mb50" id="shixun_settings_show" onClick={this.bigopens} onMouseEnter={this.bigopens}>
|
|
|
|
@ -1092,21 +1092,21 @@ export default class TPMsettings extends Component {
|
|
|
|
|
<div className="padding30 bor-bottom-greyE clearfix">
|
|
|
|
|
<span className="fl font-16">配置</span>
|
|
|
|
|
{
|
|
|
|
|
this.props.identity===1&&this.props.status==2?
|
|
|
|
|
this.props.identity===1&&this.state.status==2?
|
|
|
|
|
<a className="edu-default-btn edu-blueline-btn ml20 fr"
|
|
|
|
|
onClick={()=>this.operateshixuns(2)}>
|
|
|
|
|
永久关闭
|
|
|
|
|
</a>:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.props.identity < 4 && this.props.status==0?
|
|
|
|
|
this.props.identity < 4 && this.state.status==0?
|
|
|
|
|
<a className="edu-default-btn edu-blueline-btn ml20 fr"
|
|
|
|
|
onClick={()=>this.operateshixuns(1)}>
|
|
|
|
|
删除实训
|
|
|
|
|
</a>:""
|
|
|
|
|
}
|
|
|
|
|
{
|
|
|
|
|
this.props.identity == 1 && this.props.status == 2 ?
|
|
|
|
|
this.props.identity == 1 && this.state.status == 2 ?
|
|
|
|
|
<a className="edu-default-btn edu-blueline-btn ml20 fr"
|
|
|
|
|
onClick={()=>this.operateshixuns(1)}>
|
|
|
|
|
删除实训
|
|
|
|
@ -1510,7 +1510,7 @@ export default class TPMsettings extends Component {
|
|
|
|
|
</RadioGroup>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div className="edu-back-white mb10 padding40-20" style={{display:this.props.identity===1?"block":this.props.status===2&&newuse_scope===0||this.props.status===1&&newuse_scope===0?"none":"block"}}>
|
|
|
|
|
<div className="edu-back-white mb10 padding40-20" style={{display:this.props.identity===1?"block":this.state.status===2&&newuse_scope===0||this.state.status===1&&newuse_scope===0?"none":"block"}}>
|
|
|
|
|
<p className="color-grey-6 font-16 mb30">公开程度</p>
|
|
|
|
|
<RadioGroup onChange={this.SelectOpenpublic} value={use_scope}>
|
|
|
|
|
<Radio className="radioStyle" value={0}><span>对所有公开</span> <span className="color-grey-9">(选中则所有已被试用授权的用户可以学习)</span></Radio>
|
|
|
|
@ -1556,7 +1556,7 @@ export default class TPMsettings extends Component {
|
|
|
|
|
onClick={(key)=>this.deleteScopeInput(key)}
|
|
|
|
|
// style={{display:this.props.status===2&&this.props.identity>1||this.props.status===1&&this.props.identity>1===true?"none":"block"}}
|
|
|
|
|
>
|
|
|
|
|
{this.props.identity===1?"x":this.props.status===2&&scope_partment===scope_partments||this.props.status===1&&scope_partment===scope_partments?"":"×"}
|
|
|
|
|
{this.props.identity===1?"x":this.state.status===2&&scope_partment===scope_partments||this.state.status===1&&scope_partment===scope_partments?"":"×"}
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
)
|
|
|
|
|