dev_forum
杨树明 5 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;

@ -133,7 +133,7 @@ class GraduateTopicNew extends Component{
e.preventDefault(); e.preventDefault();
const cid = this.props.match.params.coursesId const cid = this.props.match.params.coursesId
const topicId = this.props.match.params.topicId const topicId = this.props.match.params.topicId
console.log(this.props); // console.log(this.props);
this.props.form.validateFieldsAndScroll((err, values) => { this.props.form.validateFieldsAndScroll((err, values) => {
if (!err) { if (!err) {
@ -279,7 +279,7 @@ class GraduateTopicNew extends Component{
const { current_user } = this.props const { current_user } = this.props
const { getFieldDecorator } = this.props.form; const { getFieldDecorator } = this.props.form;
let{ topicId,coursesId }=this.props.match.params let{ topicId,coursesId }=this.props.match.params
console.log(this.props); // console.log(this.props);
const formItemLayout = { const formItemLayout = {
labelCol: { labelCol: {
@ -312,8 +312,8 @@ class GraduateTopicNew extends Component{
return isLt150M; return isLt150M;
}, },
}; };
console.log("dfsf"); // console.log("dfsf");
console.log(this.props); // console.log(this.props);
return( return(
<div className="newMain "> <div className="newMain ">
<style>{` <style>{`

@ -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)=>{

@ -3,7 +3,7 @@ import React, { Component } from 'react';
import MonacoEditor from 'react-monaco-editor'; import MonacoEditor from 'react-monaco-editor';
//MonacoDiffEditor 对比模式 //MonacoDiffEditor 对比模式
import {Input, Select, Radio, Checkbox, Popconfirm, message, Modal,Icon,DatePicker} from 'antd'; import {Input, Select, Radio, Checkbox, Popconfirm, message, Modal,Icon,DatePicker,Breadcrumb} from 'antd';
// import "antd/dist/antd.css"; // import "antd/dist/antd.css";
@ -1256,7 +1256,12 @@ export default class TPMsettings extends Component {
let operateauthority=this.props.identity===1?true:this.props.identity<5&&this.state.status==0?true:false; let operateauthority=this.props.identity===1?true:this.props.identity<5&&this.state.status==0?true:false;
return ( return (
<div className="educontent mt30 mb50" id="shixun_settings_show" onClick={this.bigopens} > <div className="educontent mt30 mb50" id="shixun_settings_show" onClick={this.bigopens}>
<Breadcrumb separator=">" className={"mb20"}>
<Breadcrumb.Item href={"/shixuns/"+this.props.match.params.shixunId+"/challenges"}>实训详情</Breadcrumb.Item>
<Breadcrumb.Item>配置</Breadcrumb.Item>
</Breadcrumb>
<div className="edu-back-white mb10"> <div className="edu-back-white mb10">
<div className="padding30 bor-bottom-greyE clearfix"> <div className="padding30 bor-bottom-greyE clearfix">
<span className="fl font-16">配置</span> <span className="fl font-16">配置</span>

@ -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