[55, 56],
};
}
+function disabledDateFunc(current) {
+ return current && current < moment().endOf('day').subtract(1, 'days');
+}
// 类似页面 http://localhost:3007/courses/1309/graduation/graduation_tasks/48/76/setting
class CommonWorkSetting extends Component{
@@ -1093,6 +1096,7 @@ class CommonWorkSetting extends Component{
onChange={this.onChangeTimeend}
disabled={this.props.isSuperAdmin()?false:end_time_type===true?true:false}
disabled={moment(this.state.init_end_time) < moment() || noAuth}
+ disabledDate={disabledDateFunc}
// disabledDate={ (end_time) =>
// {
@@ -1166,6 +1170,7 @@ class CommonWorkSetting extends Component{
disabledTime={disabledDateTime}
// || moment(init_late_time) < moment()
disabled={!allow_late || noAuth }
+ disabledDate={disabledDateFunc}
// disabledDate={ (late_time) =>
// {
// const end_time = this.state.end_time
@@ -1247,6 +1252,8 @@ class CommonWorkSetting extends Component{
onChange={this.onChangeEvaluationEnd}
disabledTime={disabledDateTime}
disabled={(anonymous_comment && !noAuth ? false : true) || moment(init_evaluation_end) < moment()}
+ disabledDate={disabledDateFunc}
+
// disabledDate={ (evaluation_end) =>
// {
// const evaluation_start = this.state.evaluation_start
@@ -1335,6 +1342,7 @@ class CommonWorkSetting extends Component{
dropdownClassName="hideDisable"
showTime={{ format: 'HH:mm' }}
disabledTime={disabledDateTime}
+ disabledDate={disabledDateFunc}
showToday={false}
locale={locale}
format={dateFormat}
diff --git a/public/react/src/modules/courses/common/CBreadcrumb.js b/public/react/src/modules/courses/common/CBreadcrumb.js
index aafab3a4f..d9d91f4be 100644
--- a/public/react/src/modules/courses/common/CBreadcrumb.js
+++ b/public/react/src/modules/courses/common/CBreadcrumb.js
@@ -8,7 +8,7 @@ class CBreadcrumb extends Component{
}
render(){
- let { items, className }=this.props;
+ let { items, className, separator }=this.props;
return(
{ items && items.map( (item, index) => {
@@ -18,7 +18,10 @@ class CBreadcrumb extends Component{
if (item.to) {
return
{item.name}
- >
+ {separator ?
+ {separator} :
+ >
+ }
} else {
return {item.name}
diff --git a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js
index afe7b606a..2ab4228bb 100644
--- a/public/react/src/modules/courses/coursesDetail/CoursesBanner.js
+++ b/public/react/src/modules/courses/coursesDetail/CoursesBanner.js
@@ -2,7 +2,7 @@ import React, {Component} from 'react';
import {Link} from "react-router-dom";
import axios from 'axios';
import {getImageUrl, trigger, on, off} from 'educoder';
-import { Tooltip, message,Popover} from 'antd';
+import { Tooltip, message,Popover,Breadcrumb} from 'antd';
import CoursesListType from '../coursesPublic/CoursesListType';
import AccountProfile from"../../user/AccountProfile";
import Addcourses from '../coursesPublic/Addcourses';
@@ -353,8 +353,8 @@ class CoursesBanner extends Component {
{AccountProfiletype===true?this.hideAccountProfile()}
- {...this.state}
{...this.props}
+ {...this.state}
/>:""}
@@ -489,23 +489,42 @@ class CoursesBanner extends Component {
- -
-
- 教师
- {coursedata.teacher_count}
-
-
+
+
+
+ 教师 {coursedata.teacher_count}
+
+
+ 学生 {coursedata.student_count}
+
+ {coursedata.credit===null?"":
+ 学分 {coursedata.credit}
+ }
+
+
+ {/*- */}
+ {/**/}
+ {/*教师*/}
+ {/*{coursedata.teacher_count}*/}
+ {/**/}
+ {/*
*/}
- -
-
- 学生
-
- {coursedata.student_count}
-
-
-
+ {/*- */}
+ {/**/}
+ {/*学生*/}
+ {/**/}
+ {/*{coursedata.student_count}*/}
+ {/**/}
+ {/**/}
+ {/*
*/}
{/*- */}
{/**/}
@@ -514,13 +533,13 @@ class CoursesBanner extends Component {
{/**/}
{/*
*/}
- {coursedata.credit===null?"":-
-
- 学分
- {coursedata.credit}
-
-
}
+ {/*{coursedata.credit===null?"":- */}
+ {/**/}
+ {/*学分*/}
+ {/*{coursedata.credit}*/}
+ {/**/}
+ {/*
}*/}
{/*{coursedata.course_end===true? - */}
{/*已结束*/}
diff --git a/public/react/src/modules/courses/coursesHome/CoursesHome.js b/public/react/src/modules/courses/coursesHome/CoursesHome.js
index 962413e54..2cf7aca90 100644
--- a/public/react/src/modules/courses/coursesHome/CoursesHome.js
+++ b/public/react/src/modules/courses/coursesHome/CoursesHome.js
@@ -16,7 +16,7 @@ class CoursesHome extends Component{
this.state = {
limit:16,
page:1,
- order:"all",
+ order:"created_at",
coursesHomelist:undefined,
search:"",
}
@@ -118,25 +118,25 @@ class CoursesHome extends Component{
diff --git a/public/react/src/modules/courses/coursesPublic/Addcourses.js b/public/react/src/modules/courses/coursesPublic/Addcourses.js
index a9d30f2b6..8c9709fee 100644
--- a/public/react/src/modules/courses/coursesPublic/Addcourses.js
+++ b/public/react/src/modules/courses/coursesPublic/Addcourses.js
@@ -248,7 +248,7 @@ class Addcourses extends Component{
}else{
- notification.open({
+ response.data.message && notification.open({
message:"提示",
description:response.data.message
});
diff --git a/public/react/src/modules/courses/coursesPublic/PathModal.js b/public/react/src/modules/courses/coursesPublic/PathModal.js
index 43901c87a..07ce55024 100644
--- a/public/react/src/modules/courses/coursesPublic/PathModal.js
+++ b/public/react/src/modules/courses/coursesPublic/PathModal.js
@@ -122,16 +122,20 @@ class PathModal extends Component{
contentViewScrolledit=(e)=>{
//滑动到底判断
+ const {shixunmodallist} = this.state;
if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
- let {Searchvalue,type,page,shixunpathlist}=this.state;
- let newpage=page+1
- this.funshixunpathlist(Searchvalue,type,true,newpage)
- this.setState({
- page:newpage
- })
-
+ if(shixunmodallist.subject_list.length===0){
+ return;
+ }else{
+ let {Searchvalue,type,page,shixunpathlist}=this.state;
+ let newpage=page+1
+ this.funshixunpathlist(Searchvalue,type,true,newpage)
+ this.setState({
+ page:newpage
+ })
+ }
}
}
@@ -288,17 +292,19 @@ class PathModal extends Component{
-
+
{item.shixun_count}
{item.myshixun_count}
-
+
详情
diff --git a/public/react/src/modules/courses/coursesPublic/ShixunModal.js b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
index 1ae63da90..2a53cf104 100644
--- a/public/react/src/modules/courses/coursesPublic/ShixunModal.js
+++ b/public/react/src/modules/courses/coursesPublic/ShixunModal.js
@@ -100,17 +100,21 @@ class ShixunModal extends Component{
}
contentViewScrolledit=(e)=>{
-
+ const {shixunmodallist}=this.state;
//滑动到底判断
- if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
- let {Searchvalue,type,page}=this.state;
- let newpage=page+1
- this.setupdatalist(Searchvalue,type,true,newpage)
- this.setState({
- page:newpage
- })
- }
-
+ if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight) {
+
+ if (shixunmodallist.shixun_list.length === 0) {
+ return;
+ } else {
+ let {Searchvalue, type, page} = this.state;
+ let newpage = page + 1
+ this.setupdatalist(Searchvalue, type, true, newpage)
+ this.setState({
+ page: newpage
+ })
+ }
+ }
}
//搜索
diff --git a/public/react/src/modules/courses/css/Courses.css b/public/react/src/modules/courses/css/Courses.css
index 47db2f595..b6388b1e7 100644
--- a/public/react/src/modules/courses/css/Courses.css
+++ b/public/react/src/modules/courses/css/Courses.css
@@ -477,9 +477,9 @@ a.white-btn.use_scope-btn:hover{
}
.pathInfobox li{
margin-right: 20px;
- height: 15px;
+ height: 20px;
/*overflow: hidden;*/
- line-height: 15px;
+ line-height: 20px;
}
.width70f{
width: 70px;
diff --git a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js
index 778829d72..c2c9b7bcf 100644
--- a/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js
+++ b/public/react/src/modules/courses/exercise/ExerciseReviewAndAnswer.js
@@ -526,7 +526,7 @@ class ExerciseReviewAndAnswer extends Component{
height: 28px;
}
`}
-
+ {/**/}
- { users && users.length ?
+ { loading || users.length ?
{/* https://github.com/CassetteRocks/react-infinite-scroller/issues/70 */}
12 }>
diff --git a/public/react/src/modules/courses/members/modal/AddTeacherModal.js b/public/react/src/modules/courses/members/modal/AddTeacherModal.js
index 7dfda8c11..720ca870f 100644
--- a/public/react/src/modules/courses/members/modal/AddTeacherModal.js
+++ b/public/react/src/modules/courses/members/modal/AddTeacherModal.js
@@ -205,7 +205,7 @@ class AddTeacherModal extends Component{
{`
.demo-loading-container {
position: absolute;
- bottom: 93px;
+ bottom: 210px;
width: 82%;
text-align: center;
}
@@ -219,8 +219,7 @@ class AddTeacherModal extends Component{
}
.df span.label {
margin-right: 8px;
- text-align: right;
- margin-left: 12px;
+ text-align: left;
}
.df .ant-input-affix-wrapper {
width: 32%;
@@ -232,11 +231,11 @@ class AddTeacherModal extends Component{
`}
- 姓名:
+ 姓名:
{this.setState({name: e.target.value})}}
- style={{ width: '200px'}}>
+ style={{ width: '200px', marginRight: '18px' }}>
- 单位:
+ 单位:
搜索
{/* graduation_groups && !!graduation_groups.length */}
- { this.hasGraduationModule() &&
-
答辩组:
-
-
}
- { course_groups && !!course_groups.length &&
- 管理权限:
-
-
}
+
@@ -296,7 +265,7 @@ class AddTeacherModal extends Component{
- { candidates && candidates.length ?
+ { loading || candidates.length ?
{/* https://github.com/CassetteRocks/react-infinite-scroller/issues/70 */}
+ {/* "color":"#4c4c4c" */}
12 }>
-
+
@@ -339,6 +314,40 @@ class AddTeacherModal extends Component{
:
}
+
+ { this.hasGraduationModule() &&
+
添加至答辩组:
+
+
}
+
+ { course_groups && !!course_groups.length &&
+ 管理权限:
+
+
}
+
)
}
diff --git a/public/react/src/modules/courses/poll/PollInfo.js b/public/react/src/modules/courses/poll/PollInfo.js
index 8429595c9..dfbfd3a74 100644
--- a/public/react/src/modules/courses/poll/PollInfo.js
+++ b/public/react/src/modules/courses/poll/PollInfo.js
@@ -305,7 +305,7 @@ class PollInfo extends Component{
let isStudent=this.props.isStudent();
return(
-
+ {/*
*/}
{
console.log(error)
@@ -179,7 +180,7 @@ class CommitSummary extends Component{
- 取消
+ 取消
diff --git a/public/react/src/modules/courses/shixunHomework/Guide.js b/public/react/src/modules/courses/shixunHomework/Guide.js
index a4ca9b373..d501b2ab5 100644
--- a/public/react/src/modules/courses/shixunHomework/Guide.js
+++ b/public/react/src/modules/courses/shixunHomework/Guide.js
@@ -21,21 +21,32 @@ class Guide extends Component {
}
componentDidMount() {
+ // 1366x768
+ // var mywidthone=7;
- var mywidthone=0;
+ var mywidthone=0;
if(window.screen.width===1024){
mywidthone=1;
}
- if(window.screen.width===1280){
+ else if(window.screen.width===1280){
mywidthone=2;
}
- if(window.screen.width===1440){
+ else if(window.screen.width===1440){
mywidthone=3;
}
- if(window.screen.width===1680){
+ else if(window.screen.width===1680){
mywidthone=4;
}
- if(window.screen.width===1920){
+ else if(window.screen.width===1920){
+ mywidthone=5;
+ }
+ else if(window.screen.width===1366){
+ mywidthone=6;
+ }
+ else if(window.screen.width===1600){
+ mywidthone=7;
+ }
+ else{
mywidthone=5;
}
this.setState({
@@ -54,8 +65,9 @@ class Guide extends Component {
render() {
let {page,mywidth}=this.state;
// console.log("屏幕宽度");
- // console.log(window.screen.width);
- // console.log(mywidth);
+ console.log(window.screen.width);
+ console.log(mywidth);
+
return (
-
+
{datajs === undefined ? "" :
{teacherdata === undefined ? "" : teacherdata.commit_count === undefined ? "" : teacherdata.commit_count}已交{teacherdata === undefined ? "" : teacherdata.uncommit_count}未交
+ className="color-orange-tip">{teacherdata === undefined ? "0" : teacherdata.commit_count === undefined ? "0" : teacherdata.commit_count}已交{teacherdata === undefined ? "0" : teacherdata.uncommit_count}未交
{teacherdata === undefined ? "" : teacherdata.left_time === undefined ? "" : teacherdata.left_time === null ? "" :
{teacherdata.left_time.status}
}
@@ -2723,15 +2966,30 @@ class Listofworksstudentone extends Component {
-
-
- {data === undefined ? "222222" :
+ {data === undefined ? "" :
-
+
+
{data === undefined ? "" :
}
{JSON.stringify(datas) !== "[]" ?
-
- {teacherdata === undefined ? "" : teacherdata.commit_count === undefined ? "" : teacherdata.commit_count}
+ {teacherdata === undefined ? "0" : teacherdata.commit_count === undefined ? "0" : teacherdata.commit_count}
已交
- {teacherdata === undefined ? "" : teacherdata.uncommit_count}未交
+ {teacherdata === undefined ? "0" : teacherdata.uncommit_count}未交
{teacherdata === undefined ? "" : teacherdata.left_time === undefined ? "" : teacherdata.left_time === null ? "" :
{teacherdata.left_time.status}}
{teacherdata === undefined ? "0" : teacherdata.left_time === undefined ? "0" : teacherdata.left_time === null ? "0" :
@@ -2913,14 +3190,29 @@ class Listofworksstudentone extends Component {
-
-
+
{datas === undefined ? "" :
}
- {
- teacherdata && teacherdata.work_count && teacherdata.work_count > limit ?
-
- : ""
- }
+
+ {
+ teacherdata && teacherdata.work_count && teacherdata.work_count > limit ?
+
+ : ""
+ }
:
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
index c827d73cd..ccf6c4547 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js
@@ -132,7 +132,7 @@ class ShixunHomeworkPage extends Component {
-
+
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
index 97bc651ea..511c40d61 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
@@ -783,7 +783,9 @@ class ShixunStudentWork extends Component {
+ style={{paddingTop: '4px',float: 'left',
+ maxWidth: '1020px'}}
+ >
{data&&data.group_info === undefined ? "" : data&&data.group_info.map((item, key) => {
return (
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
index 565121e1b..5a98a974d 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
@@ -75,10 +75,15 @@ class ShixunWorkReport extends Component {
let homeworkid=this.props.match.params.homeworkid;
let url = `/student_works/${homeworkid}/shixun_work_report.json`
axios.get(url).then((result) => {
+ if (result.data.status === 403||result.data.status === 401||result.data.status === 407||result.data.status === 408) {
+
+ }else{
this.setState({
data:result.data,
spinning:false
})
+ }
+
}).catch((error) => {
console.log(error)
this.setState({
@@ -109,8 +114,15 @@ class ShixunWorkReport extends Component {
this.props.history.push(this.props.current_user.first_category_url);
}
}
+
+ goback = () => {
+
+ this.props.history.goBack()
+ }
render() {
let{data} =this.state;
+ console.log(data)
+ console.log(this.props)
let category_id=data===undefined?"":data.category===null?"":data.category.category_id;
let homework_common_id=data===undefined?"":data.homework_common_id;
let homeworkid=this.props.match.params.homeworkid;
@@ -147,9 +159,10 @@ class ShixunWorkReport extends Component {
{/*className="fr color-blue font-16"*/}
{/*onClick={()=>this.confirmysl(`/student_works/${homeworkid}/export_shixun_work_report.pdf`)}*/}
{/*>导出实训报告数据 : ""}*/}
+ {/*返回*/}
-
+
总体评价
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
index b9aac1e6a..38ab63a4f 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
@@ -305,7 +305,7 @@ class ShixunhomeWorkItem extends Component{
}
{
- this.props.isStudent?
{discussMessage.name}:""
}
@@ -313,7 +313,7 @@ class ShixunhomeWorkItem extends Component{
{
this.props.isNotMember===true? this.props.discussMessage.private_icon===true?
{discussMessage.name}
- :
{discussMessage.name}:""
}
diff --git a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
index cc9586577..977b459d4 100644
--- a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
+++ b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
@@ -132,13 +132,14 @@ class ShixunWorkModal extends Component{
onChange=(e)=>{
let{group_list}=this.state;
-
let {data}=this.props;
if(e.target.checked===true){
if(data&&data.length===0){
let id=[]
group_list.forEach((item,key)=>{
- id.push(item.id)
+ if(item.works_count!=0){
+ id.push(item.id)
+ }
})
this.setState({
group_ids:id,
@@ -147,7 +148,9 @@ class ShixunWorkModal extends Component{
}else{
let id=[]
group_list.forEach((item,key)=>{
- id.push(item.id)
+ if(item.works_count!=0){
+ id.push(item.id)
+ }
})
this.setState({
group_ids:id,
@@ -161,6 +164,9 @@ class ShixunWorkModal extends Component{
})
}
+
+
+
}
@@ -189,7 +195,7 @@ class ShixunWorkModal extends Component{
// message:"提示",
// description: response.data.message
// });
- this.props.history.replace(`/courses/${this.props.match.params.coursesId}/shixun_homeworks/${this.props.match.params.homeworkid}/student_work?tab=2`);
+ window.location.href=`/courses/${this.props.match.params.coursesId}/shixun_homeworks/${this.props.match.params.homeworkid}/student_work?tab=2`;
}else if(response.data.status === -1){
notification.open({
message:"提示",
@@ -302,6 +308,7 @@ class ShixunWorkModal extends Component{
}
{onChangetype===true?"清除":"全选"}
+ {/*有效作品都为0*/}
diff --git a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
index cb3ce3af5..9b86483df 100644
--- a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
+++ b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
@@ -79,14 +79,14 @@ class TraineetraininginformationModal extends Component {
return str;
}
render() {
- console.log(83);
- console.log(this.props.boolgalist);
+ // console.log(83);
+ // console.log(this.props.boolgalist);
const columns = [
{
title: '关卡',
dataIndex: 'number',
key: 'number',
- width: 92,
+ width:"91px",
align: "center",
render: (text, record) => (
@@ -98,7 +98,7 @@ class TraineetraininginformationModal extends Component {
title: '完成时间',
dataIndex: 'name',
key: 'name',
- width: 178,
+ width:"150px",
align: "center",
render: (text, record) => (
@@ -113,7 +113,7 @@ class TraineetraininginformationModal extends Component {
title: '',
dataIndex: 'complete_status',
key: 'complete_status',
- width: 100,
+ width:"87px",
align: "center",
render: (text, record) => (
@@ -127,7 +127,7 @@ class TraineetraininginformationModal extends Component {
title: '耗时',
dataIndex: 'stduynumber',
key: 'stduynumber',
- width: 92,
+ width:"150px",
align: "center",
render: (text, record) => (
@@ -138,7 +138,7 @@ class TraineetraininginformationModal extends Component {
{
title: '经验值',
key: 'classroom',
- width: 92,
+
dataIndex: 'classroom',
align: "center",
render: (text, record) => (
@@ -147,7 +147,7 @@ class TraineetraininginformationModal extends Component {
),
}
- ]
+ ];
const columnss = [
{
@@ -155,7 +155,7 @@ class TraineetraininginformationModal extends Component {
dataIndex: 'number',
key: 'number',
align: "center",
- width: "117px",
+ width:"119px",
render: (text, record) => (
{record.number}
@@ -166,7 +166,7 @@ class TraineetraininginformationModal extends Component {
title: '完成时间',
dataIndex: 'name',
key: 'name',
- width: "203px",
+ width:"174px",
align: "center",
render: (text, record) => (
@@ -179,7 +179,7 @@ class TraineetraininginformationModal extends Component {
dataIndex: 'stduynumber',
key: 'stduynumber',
align: "center",
- width: "117px",
+ width:"119px",
render: (text, record) => (
{record.stduynumber}
@@ -191,14 +191,14 @@ class TraineetraininginformationModal extends Component {
key: 'classroom',
dataIndex: 'classroom',
align: "center",
- width: "117px",
+
render: (text, record) => (
{record.classroom}
),
}
- ]
+ ];
return (
@@ -209,6 +209,8 @@ class TraineetraininginformationModal extends Component {
visible={this.props.visible}
footer={null}
onCancel={this.Cancel}
+ maskClosable={false}
+ destroyOnClose={true}
>
@@ -252,7 +254,18 @@ class TraineetraininginformationModal extends Component {
{
` .ant-table-body{
overflow: hidden !important;
- }`
+ }
+ .edu-table .ant-table-tbody > tr > td {
+ height: 58px;
+ }
+ .edu-table .ant-table-thead > tr > th{
+ height: 58px;
+ }
+
+ .edu-table .ant-table-header {
+ overflow: hidden !important;
+ }
+ `
}
@@ -263,24 +276,33 @@ class TraineetraininginformationModal extends Component {
columns={columns}
loading={false}
pagination={false}
- onChange={this.TablePagination}
/>}
:
+
{this.props.game_list === undefined ? "" :
}
@@ -302,7 +324,15 @@ class TraineetraininginformationModal extends Component {
{
` .ant-table-body{
overflow: hidden !important;
- }`
+ }
+ .edu-table .ant-table-tbody > tr > td {
+ height: 58px;
+ }
+ .edu-table .ant-table-thead > tr > th{
+ height: 58px;
+ }
+
+ `
}
@@ -313,24 +343,32 @@ class TraineetraininginformationModal extends Component {
columns={columnss}
loading={false}
pagination={false}
- onChange={this.TablePagination}
/>}
:
+
{this.props.game_list === undefined ? "" :
}
diff --git a/public/react/src/modules/courses/shixunHomework/guide.css b/public/react/src/modules/courses/shixunHomework/guide.css
index b815b2937..efd7709aa 100755
--- a/public/react/src/modules/courses/shixunHomework/guide.css
+++ b/public/react/src/modules/courses/shixunHomework/guide.css
@@ -20,7 +20,7 @@
right: 0;
bottom: 0;
- background-color: rgba(0, 0, 0, 0.8);
+ background-color: rgba(0, 0, 0, 0.4);
transition: all .3s ease-out;
display: flex;
justify-content: center;
@@ -236,15 +236,19 @@
}
.ysldiv11680{
- margin-top: 11%;
- margin-left: 13%;
- margin-right: 10%;
+ margin-top: 11.5%;
+ margin-left: 13%;
+ margin-right: 9%;
+}
+.ysldiv11600{
+ margin-top: 12%;
+ margin-left: 11%;
+ margin-right: 7%;
}
.ysldiv11440{
margin-top: 14%;
margin-left: 7%;
margin-right: 3%;
- height: 60%;
}
.ysldiv11280{
@@ -253,6 +257,12 @@
margin-right: 0%;
height: 60%;
}
+.ysldiv11366{
+ margin-top: 15%;
+ margin-left: 5%;
+ margin-right: 2%;
+ height: 60%;
+}
.ysldiv11024{
margin-top: 20%;
margin-left: 0%;
@@ -270,16 +280,19 @@
}
.ysldiv21680{
- margin-top: 11%;
- margin-left: 45%;
+ margin-top: 11.5%;
+ margin-left: 45%;
+ margin-right: 20%;
+}
+.ysldiv21600{
+ margin-top: 12%;
+ margin-left: 47%;
margin-right: 20%;
- height: 24%;
}
.ysldiv21440{
margin-top: 14%;
margin-left: 47%;
margin-right: 17%;
- height: 25%;
}
.ysldiv21280{
@@ -288,6 +301,12 @@
margin-right: 14%;
height: 25%;
}
+.ysldiv21366{
+ margin-top: 15%;
+ margin-left: 51%;
+ margin-right: 14%;
+ height: 23%;
+}
.ysldiv21024{
margin-top: 20%;
margin-left: 61%;
@@ -303,12 +322,17 @@
}
.ysldiv31680{
- margin-top: 11%;
- margin-left: 14%;
+ margin-top: 11.5%;
+ margin-left: 14%;
+ margin-right: 45%;
+}
+.ysldiv31600{
+ margin-top: 12%;
+ margin-left: 12%;
margin-right: 45%;
}
.ysldiv31440{
- margin-top: 13%;
+ margin-top: 13.5%;
margin-left: 8%;
margin-right: 44%;
}
@@ -318,6 +342,11 @@
margin-left: 3%;
margin-right: 44%;
}
+.ysldiv31366{
+ margin-top: 14%;
+ margin-left: 6%;
+ margin-right: 43%;
+}
.ysldiv31024{
margin-top: 18%;
margin-left: 1%;
@@ -327,27 +356,37 @@
/*目录管理*/
.ysldiv41900{
- margin-top: 18%;
+ margin-top: 16%;
margin-left: 19%;
- margin-right: 28%;
+ margin-right: 29%;
}
.ysldiv41680{
- margin-top: 21%;
+ margin-top: 18%;
margin-left: 14%;
+ margin-right: 24%;
+}
+.ysldiv41600{
+ margin-top: 19%;
+ margin-left: 12%;
margin-right: 23%;
}
.ysldiv41440{
- margin-top: 24%;
+ margin-top: 21%;
margin-left: 8%;
- margin-right: 19%;
+ margin-right: 20%;
}
.ysldiv41280{
- margin-top: 27%;
+ margin-top: 24%;
margin-left: 3%;
margin-right: 17%;
}
+.ysldiv41366{
+ margin-top: 22%;
+ margin-left: 6%;
+ margin-right: 20%;
+}
.ysldiv41024{
margin-top: 29%;
margin-left: 0%;
@@ -356,27 +395,37 @@
/*导航排序*/
.ysldiv51900{
- margin-top: 18%;
+ margin-top: 16%;
margin-left: 18%;
margin-right: 42%;
}
.ysldiv51680{
- margin-top: 20%;
- margin-left: 13%;
- margin-right: 41%;
+ margin-top: 18%;
+ margin-left: 13%;
+ margin-right: 40%;
+}
+.ysldiv51600{
+ margin-top: 19%;
+ margin-left: 11%;
+ margin-right: 39%;
}
.ysldiv51440{
- margin-top: 24%;
+ margin-top: 21%;
margin-left: 7%;
- margin-right: 38%;
+ margin-right: 39%;
}
.ysldiv51280{
- margin-top: 27%;
+ margin-top: 24%;
margin-left: 2%;
margin-right: 38%;
}
+.ysldiv51366{
+ margin-top: 22%;
+ margin-left: 5%;
+ margin-right: 39%;
+}
.ysldiv51024{
margin-top: 34%;
margin-left: -1%;
@@ -395,6 +444,11 @@
margin-left: 31%;
margin-right: 14%;
}
+.ysldiv61600{
+ margin-top: 19%;
+ margin-left: 30%;
+ margin-right: 12%;
+}
.ysldiv61440{
margin-top: 21%;
margin-left: 28%;
@@ -407,6 +461,12 @@
margin-right: 3%;
height: 53%;
}
+.ysldiv61366{
+ margin-top: 22%;
+ margin-left: 26%;
+ margin-right: 6%;
+ height: 53%;
+}
.ysldiv61024{
margin-top: 26%;
margin-left: 27%;
diff --git a/public/react/src/modules/courses/shixunHomework/shixunreport/Coursesshixundetails.js b/public/react/src/modules/courses/shixunHomework/shixunreport/Coursesshixundetails.js
index 529a4646b..23f6d1e48 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunreport/Coursesshixundetails.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunreport/Coursesshixundetails.js
@@ -44,7 +44,7 @@ class Coursesshixundetails extends Component {
data&&data.forEach((item,key)=>{
datas.push({
number: item.position,
- name: item.output_detail
+ name: item.output_detail=== ""||item.output_detail===null?"暂无数据":item.output_detail
})
})
diff --git a/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js b/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
index c7c3b67e4..e2cefe247 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunreport/OfficialAcademicTranscript.js
@@ -177,6 +177,8 @@ class OfficialAcademicTranscript extends Component {
}
.TaskForms{
width: 500px;
+ text-align: left !important;
+ padding: 16px !important;
}
.TaskForms.ant-table-header-column{
width: 100%;
diff --git a/public/react/src/modules/courses/shixunHomework/shixunreport/Shixunechart.js b/public/react/src/modules/courses/shixunHomework/shixunreport/Shixunechart.js
index dff7c6859..c12ec13d5 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunreport/Shixunechart.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunreport/Shixunechart.js
@@ -12,6 +12,7 @@ function startechart(data){
var option = {
title: {
text: '工作效率',
+ subtext: '工作效率=log(实训总得分/实训总耗时)'
},
grid:{
left: '3%',
@@ -61,7 +62,7 @@ function startechart(data){
yAxis: [
{
type : "value",
- name : " 实训总得分/实训总耗时",
+ name : " ",
nameGap: 20,
nameTextStyle: {
color: '#000',
@@ -169,6 +170,7 @@ function startechart(data){
var option1 = {
title: {
text: '能力值',
+ subtext: '能力值(实训获得经验值/实训评测次数)'
},
backgroundColor: '#fff',
color: [
@@ -212,7 +214,7 @@ function startechart(data){
},
yAxis: {
type: 'value',
- name: " 实训获得经验值/实训评测次数",
+ name: " ",
nameLocation: 'end',
nameGap: 20,
nameTextStyle: {
@@ -356,7 +358,7 @@ class Shixunechart extends Component {
`}
-
+
姓名
diff --git a/public/react/src/modules/courses/shixunHomework/style.css b/public/react/src/modules/courses/shixunHomework/style.css
index ce937e597..f2b0c39ed 100644
--- a/public/react/src/modules/courses/shixunHomework/style.css
+++ b/public/react/src/modules/courses/shixunHomework/style.css
@@ -1,39 +1,56 @@
-.ant-checkbox-group > div .boardsList{
- /* border-top: 1px solid #ebebeb; */
- padding:10px 0px 20px!important;
-}
-.ant-checkbox-group > div:first-child .boardsList{
- border-top: none;
-}
-.boardsList .contentSection {
- flex: 1;
- margin-left: 15px;
-}
-
-
-.ant-select-selection--single,.ant-select-selection__rendered{
- height: 40px;
- line-height: 40px;
-}
-
-.ant-input:focus + .ant-input-group-addon{
- background-color: #fff!important;
-}
-.ant-input-group-addon{
- color: #666!important;
- font-size: 12px;
- border: 1px solid #d9d9d9!important;
- border-left: none!important;
-}
-
-.courseForm .ant-form-item-label{
- margin-left: unset;
-}
-
-/* 毕设选题列表 */
-.TopicDetailTable .topHead{background-color: #F5F5F5;height: 56px;color: #666666;padding:0px 30px}
-.TopicDetailTable .topHead span,.TopicDetailTable .bottomBody li span{display: block;float: left;justify-content: center;align-items: center;display: -webkit-flex;height: 56px;}
-.TopicDetailTable .bottomBody{padding:0px 30px}
-.TopicDetailTable .bottomBody li{border-bottom: 1px solid #eee;clear: both;}
-.TopicDetailTable .bottomBody li:last-child{border-bottom: none;}
-
+.ant-checkbox-group > div .boardsList{
+ /* border-top: 1px solid #ebebeb; */
+ padding:10px 0px 20px!important;
+}
+.ant-checkbox-group > div:first-child .boardsList{
+ border-top: none;
+}
+.boardsList .contentSection {
+ flex: 1;
+ margin-left: 15px;
+}
+
+
+.ant-select-selection--single,.ant-select-selection__rendered{
+ height: 40px;
+ line-height: 40px;
+}
+
+.ant-input:focus + .ant-input-group-addon{
+ background-color: #fff!important;
+}
+.ant-input-group-addon{
+ color: #666!important;
+ font-size: 12px;
+ border: 1px solid #d9d9d9!important;
+ border-left: none!important;
+}
+
+.courseForm .ant-form-item-label{
+ margin-left: unset;
+}
+
+/* 毕设选题列表 */
+.TopicDetailTable .topHead{background-color: #F5F5F5;height: 56px;color: #666666;padding:0px 30px}
+.TopicDetailTable .topHead span,.TopicDetailTable .bottomBody li span{display: block;float: left;justify-content: center;align-items: center;display: -webkit-flex;height: 56px;}
+.TopicDetailTable .bottomBody{padding:0px 30px}
+.TopicDetailTable .bottomBody li{border-bottom: 1px solid #eee;clear: both;}
+.TopicDetailTable .bottomBody li:last-child{border-bottom: none;}
+
+.maxnamewidth100{
+ max-width: 100px;
+ overflow:hidden;
+ text-overflow:ellipsis;
+ white-space:nowrap;
+ cursor: default;
+}
+.maxnamewidth110{
+ max-width: 110px;
+ overflow:hidden;
+ text-overflow:ellipsis;
+ white-space:nowrap;
+ cursor: default;
+}
+.ysyslxh{
+ background: #fafafa;
+}
\ No newline at end of file
diff --git a/public/react/src/modules/forums/MemoDetail.js b/public/react/src/modules/forums/MemoDetail.js
index 78242866e..d3007c433 100644
--- a/public/react/src/modules/forums/MemoDetail.js
+++ b/public/react/src/modules/forums/MemoDetail.js
@@ -22,8 +22,11 @@ import {ImageLayerOfCommentHOC} from '../page/layers/ImageLayerOfCommentHOC'
import MemoDetailKEEditor from './MemoDetailKEEditor'
import MemoDetailMDEditor from './MemoDetailMDEditor'
-import { bytesToSize } from 'educoder'
+import { bytesToSize, CBreadcrumb } from 'educoder'
import { Tooltip } from 'antd'
+
+// import CBreadcrumb from '../courses/common/CBreadcrumb'
+import { typeNameMap2 } from './MemoNew'
const $ = window.$
function urlStringify(params) {
let noParams = true;
@@ -682,6 +685,13 @@ class MemoDetail extends Component {
memo.isDetailPage = true;
// TODO 图片上传地址
return (
+
+
{/* fl with100 */}
}
{
- detailInfoList === undefined ? "" : detailInfoList.progress === null ? "" :
+ this.props.checkIfLogin()===false?"":detailInfoList === undefined ? "" : detailInfoList.progress === null ? "" :
我的进展
diff --git a/public/react/src/modules/paths/PathDetail/addCollaborators.js b/public/react/src/modules/paths/PathDetail/addCollaborators.js
index c828f1589..6100ab2f6 100644
--- a/public/react/src/modules/paths/PathDetail/addCollaborators.js
+++ b/public/react/src/modules/paths/PathDetail/addCollaborators.js
@@ -1,216 +1,213 @@
-import React, { Component } from 'react';
-import { Modal,Checkbox,Input } from "antd";
-import axios from 'axios';
-
-const Search = Input.Search;
-const CheckboxGroup = Checkbox.Group;
-class addCollaborators extends Component{
- constructor(props){
- super(props);
- this.state = {
- addPartner:false,
- page:1,
- partnerList:undefined,
- search:'',
- partnerListid:[],
- checkAll: false,
- optionss:[]
- }
- }
- addBox=()=>{
-
- this.setState({
- addPartner:true,
- search:"",
- page:1,
- partnerList:undefined,
- optionss:[]
- })
- this.searchList("")
-
- }
- hideAddBox=()=>{
- this.setState({
- addPartner:false,
- optionss:[],
- partnerListid:[]
- })
- }
- // 搜索框输入
- changeSearchValue=(e)=>{
- this.setState({
- search: e.target.value
- })
- }
- // 回车搜索--搜索成功后page为1
- searchList=()=>{
- let id=this.props.match.params.pathId;
- let {search,page}=this.state;
- let url='/paths/'+id+'/search_members.json?search='+search+"&page="+page;
- axios.post(url).then((result)=>{
- if(result.status==200){
- let list=result.data.users;
- let optionss=[]
- for(var i=0; i{
- console.log(error);
- })
- }
-
-
- SaveAddBox=()=>{
- let {partnerListid} =this.state;
- let id=this.props.match.params.pathId;
- let url="/paths/"+id+"/add_subject_members.json"
- axios.post(url,{
- user_ids:partnerListid
- }).then((response) => {
- if(response.status==200){
- this.setState({
- addPartner:false,
- optionss:[],
- partnerListid:[]
- })
- this.props.updatadetailInfoLists();
- }
- }).catch((error) => {
- console.log(error)
- });
- }
-
- addCollaboratorsid=(id)=>{
- this.setState({
- partnerListid:id
- })
- }
-
- onCheckAllChange = (e) => {
- let {optionss} =this.state;
-
- if(e.target.checked===true){
- this.setState({
- checkAll: e.target.checked,
- partnerListid:optionss
- });
- }else{
- this.setState({
- checkAll: e.target.checked,
- partnerListid:[]
- });
- }
-
- }
-
- contentViewScroll=(e)=>{
- //滑动到底判断
- if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
- // console.log("到达底部");
-
- let id=this.props.match.params.pathId;
- let {search,page,partnerList,optionss}=this.state;
- let newpage=page+1;
- let url='/paths/'+id+'/search_members.json?search='+search+"&page="+newpage;
-
- axios.post(url).then((result)=>{
- if(result.status==200){
- let list=result.data.users;
- let newlist=partnerList;
- for(var j=0; j{
- console.log(error);
- })
-
- }
-
- }
-
- render(){
- let {addPartner,search,partnerList,optionss,checkAll,partnerListid} = this.state;
-
- return(
-
- {
- this.props.detailInfoList===undefined?"":this.props.detailInfoList.allow_add_member===true?
-
+ 添加合作者
- :""
- }
-
-
-
-
- this.searchList(search)} />
-
-
-
- 姓名
- 昵称
- 职位
- 单位
-
-
-
- {
- partnerList && partnerList.map((item,key)=>{
- return(
- -
-
- {item.user_name}
- {item.nickname}
- {item.identity}
- {item.school_name}
-
- )
- })
- }
-
-
-
-
-
-
- )
- }
-}
+import React, { Component } from 'react';
+import { Modal,Checkbox,Input } from "antd";
+import axios from 'axios';
+
+const Search = Input.Search;
+const CheckboxGroup = Checkbox.Group;
+class addCollaborators extends Component{
+ constructor(props){
+ super(props);
+ this.state = {
+ addPartner:false,
+ page:1,
+ partnerList:undefined,
+ search:'',
+ partnerListid:[],
+ checkAll: false,
+ optionss:[]
+ }
+ }
+ addBox=()=>{
+
+ this.setState({
+ addPartner:true,
+ search:"",
+ page:1,
+ partnerList:undefined,
+ optionss:[]
+ })
+ this.searchList("")
+
+ }
+ hideAddBox=()=>{
+ this.setState({
+ addPartner:false,
+ optionss:[],
+ partnerListid:[]
+ })
+ }
+ // 搜索框输入
+ changeSearchValue=(e)=>{
+ this.setState({
+ search: e.target.value
+ })
+ }
+ // 回车搜索--搜索成功后page为1
+ searchList=()=>{
+ let id=this.props.match.params.pathId;
+ let {search,page}=this.state;
+ let url='/paths/'+id+'/search_members.json?search='+search+"&page="+page;
+ axios.post(url).then((result)=>{
+ if(result.status==200){
+ let list=result.data.users;
+ let optionss=[]
+ for(var i=0; i{
+ console.log(error);
+ })
+ }
+
+
+ SaveAddBox=()=>{
+ let {partnerListid} =this.state;
+ let id=this.props.match.params.pathId;
+ let url="/paths/"+id+"/add_subject_members.json"
+ axios.post(url,{
+ user_ids:partnerListid
+ }).then((response) => {
+ if(response.status==200){
+ this.setState({
+ addPartner:false,
+ optionss:[],
+ partnerListid:[]
+ })
+ this.props.updatadetailInfoLists();
+ }
+ }).catch((error) => {
+ console.log(error)
+ });
+ }
+
+ addCollaboratorsid=(id)=>{
+ this.setState({
+ partnerListid:id
+ })
+ }
+
+ onCheckAllChange = (e) => {
+ let {optionss} =this.state;
+
+ if(e.target.checked===true){
+ this.setState({
+ checkAll: e.target.checked,
+ partnerListid:optionss
+ });
+ }else{
+ this.setState({
+ checkAll: e.target.checked,
+ partnerListid:[]
+ });
+ }
+
+ }
+
+ contentViewScroll=(e)=>{
+ //滑动到底判断
+ if(e.currentTarget.scrollHeight-e.currentTarget.scrollTop===e.currentTarget.clientHeight){
+ // console.log("到达底部");
+
+ let id=this.props.match.params.pathId;
+ let {search,page,partnerList,optionss}=this.state;
+ let newpage=page+1;
+ let url='/paths/'+id+'/search_members.json?search='+search+"&page="+newpage;
+
+ axios.post(url).then((result)=>{
+ if(result.status==200){
+ let list=result.data.users;
+ let newlist=partnerList;
+ for(var j=0; j{
+ console.log(error);
+ })
+
+ }
+
+ }
+
+ render(){
+ let {addPartner,search,partnerList,optionss,checkAll,partnerListid} = this.state;
+
+ return(
+ this.props.detailInfoList===undefined?"":this.props.detailInfoList.allow_add_member===true?
+
+
+ 添加合作者
+
+
+
+ this.searchList(search)} />
+
+
+
+ 姓名
+ 昵称
+ 职位
+ 单位
+
+
+
+ {
+ partnerList && partnerList.map((item,key)=>{
+ return(
+ -
+
+ {item.user_name}
+ {item.nickname}
+ {item.identity}
+ {item.school_name}
+
+ )
+ })
+ }
+
+
+
+
+
+
:""
+
+ )
+ }
+}
export default addCollaborators;
\ No newline at end of file
diff --git a/public/react/src/modules/paths/PathDetail/sendPanel.js b/public/react/src/modules/paths/PathDetail/sendPanel.js
index 2f9059a18..ae7dd5b00 100644
--- a/public/react/src/modules/paths/PathDetail/sendPanel.js
+++ b/public/react/src/modules/paths/PathDetail/sendPanel.js
@@ -27,9 +27,27 @@ class sendPanel extends Component{
//发送至
SentToLesson =() =>{
- this.setState({
- sentShixunPath:true
- })
+ let id=this.props.detailInfoList.id;
+ let url="/paths/"+id+"/choose_course.json";
+ axios.get(url).then((result)=>{
+ if(result.status==200){
+
+ if (result.data.status === 403||result.data.status === 402||result.data.status === 407||result.data.status === 408) {
+
+ }else{
+ this.setState({
+ sendToCourseList:result.data,
+ sentShixunPath:true
+ })
+ }
+
+ }
+ }).catch((error)=>{
+ console.log(error);
+ })
+ // this.setState({
+ // sentShixunPath:true
+ // })
}
//隐藏发送至弹框
hideSenttothevalue =()=>{
@@ -99,17 +117,17 @@ class sendPanel extends Component{
}
componentDidMount(){
- let id=this.props.detailInfoList.id;
- let url="/paths/"+id+"/choose_course.json";
- axios.get(url).then((result)=>{
- if(result.status==200){
- this.setState({
- sendToCourseList:result.data
- })
- }
- }).catch((error)=>{
- console.log(error);
- })
+ // let id=this.props.detailInfoList.id;
+ // let url="/paths/"+id+"/choose_course.json";
+ // axios.get(url).then((result)=>{
+ // if(result.status==200){
+ // this.setState({
+ // sendToCourseList:result.data
+ // })
+ // }
+ // }).catch((error)=>{
+ // console.log(error);
+ // })
}
cardsModalcancel=()=>{
diff --git a/public/react/src/modules/paths/ShixunPathSearch.js b/public/react/src/modules/paths/ShixunPathSearch.js
index da19e0521..3cba8e33f 100644
--- a/public/react/src/modules/paths/ShixunPathSearch.js
+++ b/public/react/src/modules/paths/ShixunPathSearch.js
@@ -14,7 +14,7 @@ class ShixunPathSearch extends Component{
constructor(props) {
super(props)
this.state = {
- order:"publish_time",
+ order:"updated_at",
select:0,
search:"",
page:1,
@@ -126,20 +126,20 @@ class ShixunPathSearch extends Component{
{
diff --git a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js
index ba8655d9b..12894603a 100644
--- a/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js
+++ b/public/react/src/modules/projectPackages/PackageIndex/PackageConcent.js
@@ -204,14 +204,14 @@ class PackageConcent extends Component {
{isRender===true?
this.Modifyloginvalue()}
- {...this.state}
{...this.props}
+ {...this.state}
/>:""}
{AccountProfiletype===true?this.hideAccountProfile()}
- {...this.state}
{...this.props}
+ {...this.state}
/>:""}
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index 56b386288..b816448e0 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -8,7 +8,7 @@ import PropTypes from 'prop-types';
// /images/educoder/icon/search.svg
-import { getImageUrl, toPath } from 'educoder'
+import { getImageUrl, toPath ,trigger,broadcastChannelPostMessage} from 'educoder'
import axios from 'axios';
@@ -30,8 +30,6 @@ import 'antd/lib/input/style/index.css';
import './TPMIndex.css';
-import { trigger, broadcastChannelPostMessage } from 'educoder';
-
const $ = window.$
// TODO 这部分脚本从公共脚本中直接调用
@@ -316,6 +314,7 @@ class NewHeader extends Component {
// this.setState({
// isRender:true
// })
+ broadcastChannelPostMessage('refreshPage')
window.location.href = "/";
}
}).catch((error) => {
@@ -649,7 +648,7 @@ submittojoinclass=(value)=>{
return (
-
*/} - {/*列表中没有?*/} - {/*申请新建*/} - {/*
*/} ++ 列表中没有? + 申请新建 +
Web路由
+明日签到 +{next_gold} 金币
-明日签到 +{next_gold} 金币
+