@ -3,7 +3,7 @@ import {WordsBtn,markdownToHTML,ActionBtn,queryString,downloadFile} from 'educod
import { Form , Select , Input , Button , Checkbox , Upload , Icon , message , Modal , Table , Divider , InputNumber , Tag , DatePicker , Radio , Tooltip , Spin } from "antd" ;
import { Form , Select , Input , Button , Checkbox , Upload , Icon , message , Modal , Table , Divider , InputNumber , Tag , DatePicker , Radio , Tooltip , Spin } from "antd" ;
import { Link , Switch , Route , Redirect } from 'react-router-dom' ;
import { Link , Switch , Route , Redirect } from 'react-router-dom' ;
import axios from 'axios' ;
import axios from 'axios' ;
import moment from 'moment' ;
import ConclusionEvaluation from './shixunreport/ConclusionEvaluation' ;
import ConclusionEvaluation from './shixunreport/ConclusionEvaluation' ;
import OfficialAcademicTranscript from './shixunreport/OfficialAcademicTranscript' ;
import OfficialAcademicTranscript from './shixunreport/OfficialAcademicTranscript' ;
import Coursesshixundetails from './shixunreport/Coursesshixundetails' ;
import Coursesshixundetails from './shixunreport/Coursesshixundetails' ;
@ -156,7 +156,7 @@ class ShixunWorkReport extends Component {
showAppraiseModal = ( sum ) => {
showAppraiseModal = ( sum ) => {
if ( sum === undefined ) {
if ( sum === undefined ) {
this . setState ( {
this . setState ( {
showAppraiseModaltype : true
showAppraiseModaltype : true ,
} )
} )
} else {
} else {
this . setState ( {
this . setState ( {
@ -213,7 +213,8 @@ class ShixunWorkReport extends Component {
let homeworkid = this . props . match . params . homeworkid ;
let homeworkid = this . props . match . params . homeworkid ;
const antIcon = < Icon type = "loading" style = { { fontSize : 24 } } spin / > ;
const antIcon = < Icon type = "loading" style = { { fontSize : 24 } } spin / > ;
let showAppraiseModals = this . props && this . props . isAdminOrTeacher ( ) === true ? work _comment === null || work _comment === undefined ? false : true : work _comment === null || work _comment === undefined ? false : true ;
// let showAppraiseModals=this.props&&this.props.isAdminOrTeacher()===true?work_comment===null||work_comment===undefined?false:true:work_comment===null||work_comment===undefined?false:true;
let showAppraiseModals = work _comment === null || work _comment === undefined ? false : true ;
console . log ( showAppraiseModals )
console . log ( showAppraiseModals )
return (
return (
@ -341,7 +342,7 @@ class ShixunWorkReport extends Component {
< div className = "fl edu-back-white ml10 " >
< div className = "fl edu-back-white ml10 " >
< img alt = "头像" className = "radius" height = "91" id = "nh_user_logo" name = "avatar_image"
< img alt = "头像" className = "radius" height = "91" id = "nh_user_logo" name = "avatar_image"
src = { data && data . image _url }
src = { '/images/' + data && data . image _url }
width = "91" / >
width = "91" / >
< / d i v >
< / d i v >
@ -360,7 +361,7 @@ class ShixunWorkReport extends Component {
< / s p a n >
< / s p a n >
< span className = { "passbox" } >
< span className = { "passbox" } >
< div > < span className = { "color999" } > 通关时间 : < / s p a n > < s p a n c l a s s N a m e = { d a t a & & d a t a . p a s s e d _ t i m e = = = n u l l ? " c o l o r 9 9 9 " : " c o l o r 3 3 3 " } > { d a t a & & d a t a . p a s s e d _ t i m e = = = n u l l ? ' - - ' : da t a & & d a t a . p a s s e d _ t i m e } < / s p a n > < / d i v >
< div > < span className = { "color999" } > 通关时间 : < / s p a n > < s p a n c l a s s N a m e = { d a t a & & d a t a . p a s s e d _ t i m e = = = n u l l ? " c o l o r 9 9 9 " : " c o l o r 3 3 3 " } > { d a t a & & d a t a . p a s s e d _ t i m e = = = n u l l ? ' - - ' : mo m e n t ( da t a & & d a t a . p a s s e d _ t i m e ) . f o r m a t ( ' Y Y Y Y - M M - D D H H : m m ' ) } < / s p a n > < / d i v >
< div > < span className = { "color999" } > 实战耗时 : < / s p a n > < s p a n c l a s s N a m e = { d a t a & & d a t a . e f f i c i e n c y = = = n u l l ? " c o l o r 9 9 9 " : " c o l o r 3 3 3 " } > { d a t a & & d a t a . t i m e _ c o n s u m i n g = = = n u l l ? ' - - ' : d a t a & & d a t a . t i m e _ c o n s u m i n g } < / s p a n > < / d i v >
< div > < span className = { "color999" } > 实战耗时 : < / s p a n > < s p a n c l a s s N a m e = { d a t a & & d a t a . e f f i c i e n c y = = = n u l l ? " c o l o r 9 9 9 " : " c o l o r 3 3 3 " } > { d a t a & & d a t a . t i m e _ c o n s u m i n g = = = n u l l ? ' - - ' : d a t a & & d a t a . t i m e _ c o n s u m i n g } < / s p a n > < / d i v >
< / s p a n >
< / s p a n >
< / p >
< / p >
@ -442,7 +443,7 @@ class ShixunWorkReport extends Component {
< div className = "clearfix edu-back-white poll_list" >
< div className = "clearfix edu-back-white poll_list" >
< div className = "font-16 color-dark-21 shixunreporttitleboxtop pd20 color333" >
< div className = "font-16 color-dark-21 shixunreporttitleboxtop pd20 color333" >
老师评阅 < span > { showAppraiseModals=== true ? "" : "(仅对课堂老师可见) "} < / s p a n >
老师评阅 < span > { work_comment _hidden === true || this . state . work _type === 1 ? "(仅对课堂老师可见)" : " "} < / s p a n >
{ this . props && this . props . isAdminOrTeacher ( ) === true ? < a className = "color-blue font-14 fr ml20"
{ this . props && this . props . isAdminOrTeacher ( ) === true ? < a className = "color-blue font-14 fr ml20"
onClick = { ( ) => this . isdeleteModal ( ) }
onClick = { ( ) => this . isdeleteModal ( ) }