dev_forum
杨树林 5 years ago
parent 86987a0422
commit 90b9a661d6

@ -1591,7 +1591,6 @@ class Listofworksstudentone extends Component {
// 设置数据 // 设置数据
seacthdatat = (teacherdata,student_works,work_efficiency,course_group_info) => { seacthdatat = (teacherdata,student_works,work_efficiency,course_group_info) => {
debugger
let {page, limit} = this.state; let {page, limit} = this.state;
let datalist = []; let datalist = [];
let columns = this.state.columns; let columns = this.state.columns;
@ -2640,7 +2639,7 @@ class Listofworksstudentone extends Component {
</div> </div>
:"") :"")
: :
(teacherdata&&teacherdata.homework_status!==undefined&&teacherdata.homework_status[0]=== "未发布"? "": (teacherdata&&teacherdata.time_status!==undefined&&teacherdata.time_status=== 0? "":
this.props.isNotMember()===false? this.props.isNotMember()===false?
<div className={"computeTimes font-13"}> <div className={"computeTimes font-13"}>
计算成绩 计算成绩

@ -24,7 +24,7 @@ class ShixunHomeworkPage extends Component {
super(props); super(props);
// this.answerMdRef = React.createRef(); // this.answerMdRef = React.createRef();
this.state = { this.state = {
tab: 0, tab: ["0"],
jobsettingsdata: undefined, jobsettingsdata: undefined,
teacherdata: undefined, teacherdata: undefined,
code_review: false, code_review: false,
@ -141,9 +141,8 @@ class ShixunHomeworkPage extends Component {
render() { render() {
let {tab, teacherdata, jobsettingsdata} = this.state; let {tab, teacherdata, jobsettingsdata} = this.state;
const isAdmin = this.props.isAdmin(); const isAdmin = this.props.isAdmin();
console.log(tab);
console.log("147147147147147147147");
return ( return (
<div className="newMain clearfix "> <div className="newMain clearfix ">
<div className={"educontent mb20"} style={{width: "1200px"}}> <div className={"educontent mb20"} style={{width: "1200px"}}>
@ -188,8 +187,8 @@ class ShixunHomeworkPage extends Component {
onClick={(e) => this.ChangeTab(2)}> onClick={(e) => this.ChangeTab(2)}>
代码查重</a> : ""} 代码查重</a> : ""}
{parseInt(tab) === 3? {parseInt(tab) === 3?
<style>{ <style>{
` `
.poll_list a.active:after { .poll_list a.active:after {
content: ''; content: '';
width: 57px; width: 57px;
@ -200,7 +199,7 @@ class ShixunHomeworkPage extends Component {
position: absolute; position: absolute;
} }
` `
}</style> }</style>
:""} :""}
<a className={parseInt(tab) === 3 ? "active" : ""} <a className={parseInt(tab) === 3 ? "active" : ""}
onClick={(e) => this.ChangeTab(3)} onClick={(e) => this.ChangeTab(3)}
@ -280,13 +279,10 @@ class ShixunHomeworkPage extends Component {
/> />
{parseInt(tab) === 0 ?<Listofworksstudentone triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone>:""} {parseInt(tab) === 0 ?<Listofworksstudentone triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Listofworksstudentone>
:parseInt(tab) === 1 ?<Workquestionandanswer triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Workquestionandanswer>
{parseInt(tab) === 1 ?<Workquestionandanswer triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Workquestionandanswer>:""} :parseInt(tab) === 2 ?<ShixunStudentWork triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></ShixunStudentWork>
:parseInt(tab) === 3 ?<Trainingjobsetting triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>:""}
{parseInt(tab) === 2 ?<ShixunStudentWork triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></ShixunStudentWork>:""}
{parseInt(tab) === 3 ?<Trainingjobsetting triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>:""}
</div> </div>
</div> </div>

@ -76,9 +76,12 @@ class ShixunStudentWork extends Component {
console.log("ShixunStudentWork"); console.log("ShixunStudentWork");
console.log("componentDidMount"); console.log("componentDidMount");
this.props.triggerRef(this); this.props.triggerRef(this);
this.getupdata(); this.getTrainingjobsettings();
this.getTrainingjobsetting();
} }
getTrainingjobsettings=()=>{
this.getupdata();
this.getTrainingjobsetting();
}
// 获取数据地方 // 获取数据地方
getTrainingjobsetting = () => { getTrainingjobsetting = () => {

Loading…
Cancel
Save