dev_new_shixunsrepository
杨树明 5 years ago
parent da05a529d4
commit 382df87165

@ -42,7 +42,7 @@ if (isDev) {
// 老师
//ebugType="teacher";
// 学生
//debugType="student";
debugType="student";
function railsgettimes(proxy) {

@ -112,6 +112,7 @@ class PollDetailTabForth extends Component{
// 已有设置数据的查询
getSettingInfo=()=>{
this.props.getPollInfo();
let pollId=this.props.match.params.pollId;
let url=`/polls/${pollId}/poll_setting.json`;
axios.get(url).then((result)=>{
@ -184,7 +185,6 @@ class PollDetailTabForth extends Component{
}
}
this.props.getPollInfo();
}).catch((error)=>{
console.log(error);
})
@ -443,7 +443,7 @@ class PollDetailTabForth extends Component{
})
}else{
this.setState({
flagPageEdit:true
flagPageEdit:this.props.isAdmin()?true:false
})
}
}

@ -343,6 +343,7 @@ class PollDetailTabForthRules extends Component{
render(){
let {rules,course_group,flagPageEdit}=this.state
let isAdmin=this.props.isAdmin();
console.log(flagPageEdit)
return(
<div className="bor-top-greyE pt20">
<p className="clearfix mb10">
@ -477,7 +478,7 @@ class PollDetailTabForthRules extends Component{
</p>
</div>
{
flagPageEdit ?
flagPageEdit ?this.props.isAdmin()?
<li className="fl pt5">
{rule.p_timeflag===undefined?r > 0&&rule.publish_time===null?<Tooltip title="删除">
<a className="mr20" onClick={()=>this.removeRules(`${r}`)}><i className="iconfont icon-shanchu color-grey-9 font-18"></i></a>
@ -508,7 +509,7 @@ class PollDetailTabForthRules extends Component{
}
<Tooltip title="新增"><a className="mt6" onClick={this.AddRules}><i className="iconfont icon-tianjiafangda color-green font-18"></i></a> </Tooltip>
</li>
:""
:"":""
}
</div>

Loading…
Cancel
Save