dev_forum
杨树明 6 years ago
parent bc9ee87ee1
commit b8556d8694

@ -135,8 +135,8 @@ class shixunAnswer extends Component{
let url=`/exercise_questions/${this.props.questionType.question_id}/adjust_score.json` let url=`/exercise_questions/${this.props.questionType.question_id}/adjust_score.json`
const list = Object.assign({}, this.state.dataCopy[key]) const list = Object.assign({}, this.state.dataCopy[key])
console.log("111111111111111111111111"); // console.log("111111111111111111111111");
console.log(this.props); // console.log(this.props);
// 调分值为0且和第一次的数据相同则不修改 // 调分值为0且和第一次的数据相同则不修改
if(parseInt(e.target.value)==parseInt(list.my_score)){ if(parseInt(e.target.value)==parseInt(list.my_score)){
return; return;

@ -464,7 +464,7 @@ class Poll extends Component{
modalsBottomval, modalsBottomval,
loadtype loadtype
}=this.state; }=this.state;
console.log(this.props); // console.log(this.props);
let {child}=this.props; let {child}=this.props;
let {coursesId,Id}=this.props.match.params let {coursesId,Id}=this.props.match.params
const isAdmin = this.props.isAdmin() const isAdmin = this.props.isAdmin()

@ -34,7 +34,7 @@ class PollDetailIndex extends Component{
} }
getPollInfo=()=>{ getPollInfo=()=>{
console.log(this.props); // console.log(this.props);
let pollId=this.props.match.params.pollId; let pollId=this.props.match.params.pollId;
let url=`/polls/${pollId}/common_header.json` let url=`/polls/${pollId}/common_header.json`
axios.get(url).then((result)=>{ axios.get(url).then((result)=>{

File diff suppressed because it is too large Load Diff

@ -42,7 +42,7 @@ class TPMNav extends Component {
className={`${match.url.indexOf('ranking_list') != -1 ? 'active' : ''} fl`}>排行榜</Link> className={`${match.url.indexOf('ranking_list') != -1 ? 'active' : ''} fl`}>排行榜</Link>
{/* target="_blank"*/} {/* target="_blank"*/}
<a <a
href={`/shixuns/${shixunId}/settings`} className="fr" href={`/shixuns/${shixunId}/settings`} className="edu-default-btn edu-blueline-btn ml20 fr"
style={{display: this.props.identity >4||this.props.identity===undefined ? "none" : 'block'}} style={{display: this.props.identity >4||this.props.identity===undefined ? "none" : 'block'}}
>配置</a> >配置</a>
</div> </div>

@ -14,7 +14,7 @@ class AccountNav extends Component {
} }
render() { render() {
let { basicInfo } = this.props let { basicInfo } = this.props
console.log(this.props); // console.log(this.props);
const path = window.location.pathname const path = window.location.pathname
const isBasic = path.indexOf('profile') != -1 || path == "/account" const isBasic = path.indexOf('profile') != -1 || path == "/account"
const isCertification = path.indexOf('certification') != -1 const isCertification = path.indexOf('certification') != -1

Loading…
Cancel
Save