hjm 5 years ago
commit 1ad5e2ada4

@ -111,6 +111,7 @@ export function initAxiosInterceptors(props) {
if(response===undefined){ if(response===undefined){
return return
} }
// locationurl(402);
const config = response.config const config = response.config
if (response.data.status === -1) { if (response.data.status === -1) {
// console.error('error:', response.data.message) // console.error('error:', response.data.message)

@ -1,8 +1,6 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { Modal } from 'antd'; import { Modal } from 'antd';
// import Notcompleted from './Notcompleted'; export function SetAppModel(options) {
export function SetAppModel(options = {}) {
return function wrap(WrappedComponent) { return function wrap(WrappedComponent) {
return class Wrapper extends Component { return class Wrapper extends Component {
constructor(props) { constructor(props) {
@ -11,6 +9,16 @@ export function SetAppModel(options = {}) {
this.state = { this.state = {
} }
console.log("SetAppModel");
console.log("13");
console.log(options);
}
modalCancel=()=>{
window.location.href = "/";
}
setDownload=()=>{
window.location.href ='/account/profile';
} }
componentDidMount(){ componentDidMount(){
console.log(this.props) console.log(this.props)
@ -18,13 +26,27 @@ export function SetAppModel(options = {}) {
render() { render() {
const { titlemessage, Modallisttype, Modallist, singleButton } = this.state; const { titlemessage, Modallisttype, Modallist, singleButton } = this.state;
console.log(this.state.Notcompleteds);
return ( return (
<div> <Modal
{/*<Notcompleted*/} keyboard={false}
{/*modalsType={this.state.Notcompleteds}*/} closable={false}
{/*/>*/} footer={null}
destroyOnClose={true}
title="提示"
centered={true}
visible={this.props.modalsType===undefined?false:this.props.modalsType}
width="530px"
>
<div className="educouddiv">
<div className={"tabeltext-alignleft mt10"}><p>您尚未完善个人资料</p></div>
<div className={"tabeltext-alignleft mt10"}><p>请在完成资料后提交试用申请</p></div>
<div className="clearfix mt30 edu-txt-center">
<a className="task-btn mr30" onClick={()=>this.modalCancel()}>取消</a>
<a className="task-btn task-btn-orange" onClick={()=>this.setDownload()}>立即完善资料</a>
</div> </div>
</div>
</Modal>
) )
} }
} }

@ -906,8 +906,11 @@ class Listofworksstudentone extends Component {
console.log("componentDidMount"); console.log("componentDidMount");
if(this.props.isAdmin() === true){ if(this.props.isAdmin() === true){
this.tearchar(); this.tearchar();
console.log("909");
}else{ }else{
this.student(); this.student();
console.log("911");
} }
} }
student=()=>{ student=()=>{
@ -1482,7 +1485,7 @@ class Listofworksstudentone extends Component {
} }
axios.post(urll, data).then((result) => { axios.post(urll, data).then((result) => {
debugger debugger
if (result !== undefined) { if (result) {
// console.log(url) // console.log(url)
// console.log("作品列表6789077") // console.log("作品列表6789077")
// console.log(JSON.stringify(result)) // console.log(JSON.stringify(result))
@ -1582,6 +1585,7 @@ class Listofworksstudentone extends Component {
let columns = this.state.columns; let columns = this.state.columns;
var columns2=[]; var columns2=[];
if (teacherdata !== undefined) { if (teacherdata !== undefined) {
console.log("1588");
for (var i = 0; i < student_works.length; i++) { for (var i = 0; i < student_works.length; i++) {
var timedata = moment(student_works[i].update_time).format('YYYY-MM-DD HH:mm'); var timedata = moment(student_works[i].update_time).format('YYYY-MM-DD HH:mm');
datalist.push({ datalist.push({
@ -1605,6 +1609,8 @@ class Listofworksstudentone extends Component {
user_name: student_works[i].user_name, user_name: student_works[i].user_name,
user_login: student_works[i].user_login, user_login: student_works[i].user_login,
}) })
console.log(datalist);
console.log("1612");
} }
@ -1701,6 +1707,9 @@ class Listofworksstudentone extends Component {
} else { } else {
} }
console.log(datalist);
console.log("1712");
this.setState({ this.setState({
data: datalist, data: datalist,
columns: columns2, columns: columns2,

@ -141,8 +141,9 @@ 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"}}>
@ -279,13 +280,13 @@ 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) === 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) === 3 ?<Trainingjobsetting triggerRef={this.bindRef} {...this.props} {...this.state} Getdataback={(jobsettingsdata, teacherdata) => this.Getdataback(jobsettingsdata, teacherdata)}></Trainingjobsetting>:""}
</div> </div>
</div> </div>

@ -171,7 +171,7 @@ class NewHeader extends Component {
submitapplications:false, submitapplications:false,
isRender:false, isRender:false,
// isRenders:false, // isRenders:false,
// showTrial:false, showTrial:false,
} }
// console.log("176") // console.log("176")
// console.log(props); // console.log(props);

@ -159,7 +159,7 @@
display: flex; display: flex;
justify-content:center; justify-content:center;
width: 60px; width: 60px;
margin-left: 21px; margin-left: 26px;
} }
.yslgouxuanimg{ .yslgouxuanimg{

Loading…
Cancel
Save