- {item.polls_name}
+ { canNotLink ? {item.polls_name} :
+ {item.polls_name}
+ }
{
item.lock_status === 0 ?
diff --git a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
index 1ba8c85b7..f31cb954d 100644
--- a/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
+++ b/public/react/src/modules/courses/shixunHomework/Listofworksstudentone.js
@@ -1411,7 +1411,7 @@ class Listofworksstudentone extends Component {
// }
this.setState({
page: e.current,
- teacherlists: teacherlists
+ // teacherlists: teacherlists
})
}
diff --git a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
index 8cc79af8f..58a12eff1 100644
--- a/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
+++ b/public/react/src/modules/courses/shixunHomework/TraineetraininginformationModal.js
@@ -27,7 +27,7 @@ import '../css/members.css'
import "../common/formCommon.css"
import '../css/Courses.css'
import './style.css'
-import ShixunModal from "../coursesPublic/ShixunModal";
+
class TraineetraininginformationModal extends Component {
constructor(props) {
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index 42f5fbf6a..1913b0d2d 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -454,20 +454,6 @@ class ShixunHomework extends Component{
checkBoxValues:[]
})
- let coursesId=this.props.match.params.coursesId;
- let url ="/courses/"+coursesId+"/homework_commons/shixuns.json";
-
- axios.get(url).then((result)=>{
- if(result.status===200){
- this.setState({
- shixunmodallist:result.data,
- hometypepvisible:false,
- newshixunmodallist:result.data.shixun_list,
- })
- }
- }).catch((error)=>{
- console.log(error);
- })
}
@@ -477,24 +463,10 @@ class ShixunHomework extends Component{
this.setState({
hometypepvisible:true,
patheditarry:[],
- checkBoxValues:[]
+ checkBoxValues:[],
+ shixunpath: true,
})
- let coursesId=this.props.match.params.coursesId;
- let url ="/courses/"+coursesId+"/homework_commons/subjects.json";
-
- axios.get(url).then((result)=>{
- if(result.status===200){
- this.setState({
- shixunpath:true,
- shixunpathlist:result.data,
- hometypepvisible:false,
- newshixunpathlist:result.data.subject_list,
- })
- }
- }).catch((error)=>{
- console.log(error);
- })
}
@@ -508,116 +480,80 @@ class ShixunHomework extends Component{
})
}
- funshixunmodallist=(search,type,loading,page)=>{
- let{newshixunmodallist}=this.state;
- let newshixunmodallists=[]
- if(page>1){
- newshixunmodallists=newshixunmodallist;
- }
- this.setState({
- hometypepvisible:loading
- })
- let coursesId=this.props.match.params.coursesId;
- let url ="/courses/"+coursesId+"/homework_commons/shixuns.json";
-
- axios.get(url, {
- params: {
- search: search,
- type:type,
- page:page
- }
- }).then((result)=>{
- if(result.status===200){
-
- let shixun_list=result.data.shixun_list;
- for(var i=0; i{
- console.log(error);
- })
- }
-
- funshixunpathlist=(search,type,loading,page)=>{
- let{newshixunpathlist}=this.state;
- let newshixunmodallists=[]
- if(page>1){
- newshixunmodallists=newshixunpathlist;
- }
- this.setState({
- hometypepvisible:loading
- })
- let coursesId=this.props.match.params.coursesId;
- let url ="/courses/"+coursesId+"/homework_commons/subjects.json";
-
- axios.get(url, {
- params: {
- search: search,
- type:type,
- page:page
- }
- }).then((result)=>{
- if(result.status===200){
-
- let shixun_list=result.data.subject_list;
- for(var i=0; i{
- console.log(error);
- })
- }
-
- funshixunpathlist=(search,type,loading,page)=>{
- let{newshixunpathlist}=this.state;
- let newshixunmodallists=[]
- if(page>1){
- newshixunmodallists=newshixunpathlist;
- }
- this.setState({
- hometypepvisible:loading
- })
- let coursesId=this.props.match.params.coursesId;
- let url ="/courses/"+coursesId+"/homework_commons/subjects.json";
+ // funshixunmodallist=(search,type,loading,page)=>{
+ // let{newshixunmodallist}=this.state;
+ // let newshixunmodallists=[]
+ // if(page>1){
+ // newshixunmodallists=newshixunmodallist;
+ // }
+ // this.setState({
+ // hometypepvisible:loading
+ // })
+ // let coursesId=this.props.match.params.coursesId;
+ // let url ="/courses/"+coursesId+"/homework_commons/shixuns.json";
+ //
+ // axios.get(url, {
+ // params: {
+ // search: search,
+ // type:type,
+ // page:page
+ // }
+ // }).then((result)=>{
+ // if(result.status===200){
+ //
+ // let shixun_list=result.data.shixun_list;
+ // for(var i=0; i{
+ // console.log(error);
+ // })
+ // }
- axios.get(url, {
- params: {
- search: search,
- type:type,
- page:page
- }
- }).then((result)=>{
- if(result.status===200){
- let shixun_list=result.data.subject_list;
- for(var i=0; i{
- console.log(error);
- })
- }
+ // funshixunpathlist=(search,type,loading,page)=>{
+ // let{newshixunpathlist}=this.state;
+ // let newshixunmodallists=[]
+ // if(page>1){
+ // newshixunmodallists=newshixunpathlist;
+ // }
+ // this.setState({
+ // hometypepvisible:loading
+ // })
+ // let coursesId=this.props.match.params.coursesId;
+ // let url ="/courses/"+coursesId+"/homework_commons/subjects.json";
+ //
+ // axios.get(url, {
+ // params: {
+ // search: search,
+ // type:type,
+ // page:page
+ // }
+ // }).then((result)=>{
+ // if(result.status===200){
+ //
+ // let shixun_list=result.data.subject_list;
+ // for(var i=0; i{
+ // console.log(error);
+ // })
+ // }
PaginationCourse=(pageNumber)=>{
let {Coursename,order}=this.state;
@@ -1012,13 +948,16 @@ class ShixunHomework extends Component{
course_groups={course_groups}
getcourse_groupslist={(id)=>this.getcourse_groupslist(id)}
/>:""}
+
{/*选择实训*/}
{shixunmodal===true?this.funshixunmodallist(search,type,loading,page)}
+ // funshixunmodallist={(search,type,loading,page)=>this.funshixunmodallist(search,type,loading,page)}
hometypepvisible={hometypepvisible}
hidecouseShixunModal={this.hidecouseShixunModal}
newshixunmodallist={newshixunmodallist}
@@ -1027,6 +966,7 @@ class ShixunHomework extends Component{
funpatheditarry={(patheditarry)=>this.funpatheditarry(patheditarry)}
patheditarry={patheditarry}
/>:""}
+
{shixunmodal===true||shixunpath===true?:""}
{/*选择实训路径*/}
{shixunpath===true? this.funshixunpathlist(search,type,loading,page)}
+ // funshixunpathlist={(search,type,loading,page)=>this.funshixunpathlist(search,type,loading,page)}
hometypepvisible={hometypepvisible}
hidecouseShixunModal={this.hidecouseShixunModal}
coursesId={this.props.match.params.coursesId}
diff --git a/public/react/src/modules/home/shixunsHome.js b/public/react/src/modules/home/shixunsHome.js
index 9093ec22d..780691e6c 100644
--- a/public/react/src/modules/home/shixunsHome.js
+++ b/public/react/src/modules/home/shixunsHome.js
@@ -232,7 +232,7 @@ class ShixunsHome extends Component {
- {item.stages_count}
+ {item.stages_count}
diff --git a/public/react/src/modules/login/EducoderLogin.js b/public/react/src/modules/login/EducoderLogin.js
index 783e23b29..f31fcca88 100644
--- a/public/react/src/modules/login/EducoderLogin.js
+++ b/public/react/src/modules/login/EducoderLogin.js
@@ -72,7 +72,8 @@ class EducoderLogin extends Component {
showbool: 3,
logini:3,
namezh:"",
- passmm:""
+ passmm:"",
+ loginstatus:true,
}
}else {
if(props.match.url === "/login"){
@@ -98,8 +99,8 @@ class EducoderLogin extends Component {
showbool: 1,
logini:1,
namezh:"",
- passmm:""
-
+ passmm:"",
+ loginstatus:true,
}
}
@@ -162,7 +163,7 @@ class EducoderLogin extends Component {
this.Setshowbool(e,name,pass)} >
+ Setshowbool={(e)=>this.Setshowbool(e)} >
diff --git a/public/react/src/modules/login/LoginDialog.js b/public/react/src/modules/login/LoginDialog.js
index a5f0529e0..7e072e2bf 100644
--- a/public/react/src/modules/login/LoginDialog.js
+++ b/public/react/src/modules/login/LoginDialog.js
@@ -7,7 +7,7 @@ import Dialog, {
DialogContentText,
DialogTitle,
} from 'material-ui/Dialog';
-
+import {notification } from 'antd';
import axios from 'axios';
@@ -346,10 +346,19 @@ class LoginDialog extends Component {
if(response===undefined){
return
}
+ if(response.data.identity === null || response.data.identity === undefined){
+ this.props.history.push("/interesse");
+ return;
+ }
if(response.status===200){
if (response.data.status === 402) {
window.location.href = response.data.url;
- }else{
+ }else if (response.data.status === -2) {
+ notification.open({
+ message: '提示',
+ description:response.data.message,
+ });
+ }else{
broadcastChannelPostMessage('refreshPage')
this.setState({
isRender:false
diff --git a/public/react/src/modules/login/Trialapplication.js b/public/react/src/modules/login/Trialapplication.js
index 7900a68bb..02116ce7d 100644
--- a/public/react/src/modules/login/Trialapplication.js
+++ b/public/react/src/modules/login/Trialapplication.js
@@ -33,6 +33,8 @@ class Trialapplication extends Component {
user_phone_binded: props.user_phone_binded,
showTrial: false,
user: undefined,
+ borredss:"bor-reds",
+ borredssz:"bor-reds fl mr5",
}
//user_phone_binded 判断是否手机号验证
// console.log("Trialapplication");
@@ -371,7 +373,7 @@ class Trialapplication extends Component {
//执行view
render() {
- let {login, codes, reason, isRenders, user_phone_binded, Phonenumberisnotco, getverificationcodes, Phonenumberisnotcocodes, Phonenumberisnotcoreason, seconds} = this.state;
+ let {login, codes, reason, isRenders, user_phone_binded,borredss,borredssz, Phonenumberisnotco, getverificationcodes, Phonenumberisnotcocodes, Phonenumberisnotcoreason, seconds} = this.state;
// console.log("Trialapplication22222222");
// console.log(this.props);
@@ -600,12 +602,13 @@ class Trialapplication extends Component {
onChange={this.loginInputonChange}
onBlur={(e) => this.inputOnBlur(e)}
style={{"height": "38px",}}
+ className={Phonenumberisnotco && Phonenumberisnotco !== ""?borredss:""}
name="myiphone"
>
{
Phonenumberisnotco && Phonenumberisnotco != "" ?
-
- {Phonenumberisnotco}
+
+ {Phonenumberisnotco}
:
}
@@ -617,7 +620,9 @@ class Trialapplication extends Component {
user_phone_binded === true ? "" :
-
this.getverificationcode()}
- size={"large"}>验证码
+ size={"large"}>获取验证码
:
diff --git a/public/react/src/modules/page/main/CodeEvaluateView.css b/public/react/src/modules/page/main/CodeEvaluateView.css
index 99b08a496..137174d95 100644
--- a/public/react/src/modules/page/main/CodeEvaluateView.css
+++ b/public/react/src/modules/page/main/CodeEvaluateView.css
@@ -112,4 +112,19 @@
}
#evaluating_contents .-text-danger{
padding-bottom: 6px;
- }
\ No newline at end of file
+ }
+
+
+.-task-ces-top .description {
+ color: #616B77;
+ padding: 0 8px;
+ font-size: 12px;
+}
+.-task-ces-top .split {
+ border-right: 1px solid #616B77;
+ width: 1px;
+ display: inline-block;
+ height: 10px;
+ margin: 5px 0;
+ float: right;
+}
\ No newline at end of file
diff --git a/public/react/src/modules/page/main/CodeEvaluateView.js b/public/react/src/modules/page/main/CodeEvaluateView.js
index a738d03fb..8be0b8765 100644
--- a/public/react/src/modules/page/main/CodeEvaluateView.js
+++ b/public/react/src/modules/page/main/CodeEvaluateView.js
@@ -172,7 +172,7 @@ class CodeEvaluateView extends Component {
} else if (item.result == false) {
headIconClass = 'fa-exclamation-circle -text-danger'
}
-
+
testSetsComponentArray.push(
@@ -180,8 +180,13 @@ class CodeEvaluateView extends Component {
测试集 {index + 1}
+
{ headIconClass && }
{ _headLockIconClass && }
+
+ { item.ts_mem && 消耗内存{item.ts_mem}MB }
+ { item.ts_mem && item.ts_time && }
+ { item.ts_time && 代码执行时长:{item.ts_time}秒 }
diff --git a/public/react/src/modules/paths/PathDetail/DetailCards.js b/public/react/src/modules/paths/PathDetail/DetailCards.js
index 0cac533d1..115f7066c 100644
--- a/public/react/src/modules/paths/PathDetail/DetailCards.js
+++ b/public/react/src/modules/paths/PathDetail/DetailCards.js
@@ -228,7 +228,7 @@ class DetailCards extends Component{
isSpin:true,
})
axios.get(url).then((response) => {
- debugger
+ // debugger
if(response.status===200){
// let path="/shixuns/"+response.data.shixun_identifier+"/challenges";
// this.props.history.push(path);
diff --git a/public/react/src/modules/tpm/NewHeader.js b/public/react/src/modules/tpm/NewHeader.js
index 859c150c0..f53159c7c 100644
--- a/public/react/src/modules/tpm/NewHeader.js
+++ b/public/react/src/modules/tpm/NewHeader.js
@@ -118,22 +118,23 @@ function loadHeader(){
function header_search(reactHeaderComponnet){
console.log(old_url)
var keyword = $("input[name='search_keyword']").val(); // 搜索关键字
- if (!reactHeaderComponnet) {
- reactHeaderComponnet = window._header_componentHandler
- }
- if (!reactHeaderComponnet) {
- var index = $("#search_type").val(); // 搜索课程/项目
- keyword = encodeURIComponent(keyword);
- // $.get('/users/search_shixuns_or_course',
- // { search: keyword,
- // index: index});
- window.location.href = old_url+"/users/search_shixuns_or_courses" + "?search=" + keyword + "&index=" + index;
+ window.location.href ="/search"+"?value="+keyword;
+ // if (!reactHeaderComponnet) {
+ // reactHeaderComponnet = window._header_componentHandler
+ // }
+ // if (!reactHeaderComponnet) {
+ // var index = $("#search_type").val(); // 搜索课程/项目
+ // keyword = encodeURIComponent(keyword);
+ // // $.get('/users/search_shixuns_or_course',
+ // // { search: keyword,
+ // // index: index});
+ // window.location.href = old_url+"/users/search_shixuns_or_courses" + "?search=" + keyword + "&index=" + index;
//e.stopPropagation();//阻止冒泡
- } else {
- window.__headSearchKeyword = keyword
- reactHeaderComponnet.props.history.push(`/shixuns`)
- trigger('searchKeywordChange', keyword)
- }
+ // } else {
+ // window.__headSearchKeyword = keyword
+ // reactHeaderComponnet.props.history.push(`/shixuns`)
+ // trigger('searchKeywordChange', keyword)
+ // }
}
//头部导航条的隐藏
function closeSearch(){
@@ -169,8 +170,8 @@ class NewHeader extends Component {
RadioGroupvalue:undefined,
submitapplications:false,
isRender:false,
- isRenders:false,
- showTrial:false,
+ // isRenders:false,
+ // showTrial:false,
}
// console.log("176")
// console.log(props);
@@ -382,12 +383,14 @@ class NewHeader extends Component {
header_search(this)
}
onKeywordSearchKeyDown = (e) => {
- let code = e.keyCode;
+
+ window.location.href ="/search?value="+e.target.value;
+ // let code = e.keyCode;
- if(code == 13) {
- header_search(this);
- return false;
- }
+ // if(code == 13) {
+ // header_search(this);
+ // return false;
+ // }
}
hideAddcoursestypes=()=>{
@@ -547,13 +550,13 @@ submittojoinclass=(value)=>{
}
}
- trialapplications =()=>{
- console.log("点击了")
- this.setState({
- isRenders: true,
- showTrial:true,
- })
- }
+ // trialapplications =()=>{
+ // console.log("点击了")
+ // this.setState({
+ // isRenders: true,
+ // showTrial:true,
+ // })
+ // }
// 关闭
cancelModulationModels = () => {
@@ -618,20 +621,21 @@ submittojoinclass=(value)=>{
{/* :""*/}
{/*}*/}
- isRenders&&isRenders===true?
-
this.cancelModulationModels()}
- />
- :""
- }
+ {/*{*/}
+ {/* isRenders&&isRenders===true?*/}
+ {/* this.cancelModulationModels()}*/}
+ {/* />*/}
+ {/* :""*/}
+ {/*}*/}
this.cancelModulationModels()} >
{/*<%= link_to image_tag("/images/educoder/logo.png", alt:"高校智能化教学与实训平台", className:"logoimg"), home_path %>*/}
-
+
@@ -756,7 +761,7 @@ submittojoinclass=(value)=>{
我的项目
账号管理
{/*
this.educoderlogin()} >登入测试接口*/}
-
this.trialapplications()} >试用申请
+ {/*
this.trialapplications()} >试用申请 */}
{/*
兴趣页*/}
@@ -787,7 +792,7 @@ submittojoinclass=(value)=>{
- - 新建课堂
+ {this.props.current_user&&this.props.current_user.user_identity==="学生"?"":- 新建课堂
}
- 新建实训
- 新建实践课程
- 新建项目
diff --git a/public/react/src/modules/tpm/TPMIndex.css b/public/react/src/modules/tpm/TPMIndex.css
index d55369370..655f58637 100644
--- a/public/react/src/modules/tpm/TPMIndex.css
+++ b/public/react/src/modules/tpm/TPMIndex.css
@@ -188,3 +188,7 @@ body>.-task-title {
.HeaderSearch .ant-input-search .ant-input{
color: #fff;
}
+
+.HeaderSearch .ant-input-search .ant-input-suffix{
+ background: transparent !important;
+}
\ No newline at end of file
diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
index abeb18c9f..72bbbe3d0 100644
--- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
+++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
@@ -161,7 +161,20 @@ function updatamakedown(id){
}, 200)
}
-
+function range(start, end) {
+ const result = [];
+ for (let i = start; i < end; i++) {
+ result.push(i);
+ }
+ return result;
+}
+function disabledDateTime() {
+ return {
+ // disabledHours: () => range(0, 24).splice(4, 20),
+ disabledMinutes: () => range(1, 30).concat(range(31, 60)),
+ // disabledSeconds: () => [0, 60],
+ };
+}
export default class TPMsettings extends Component {
constructor(props) {
super(props)
@@ -1307,7 +1320,7 @@ export default class TPMsettings extends Component {
-