diff --git a/public/react/src/modules/courses/graduation/tasks/index.js b/public/react/src/modules/courses/graduation/tasks/index.js
index c044c1711..10d71afe4 100644
--- a/public/react/src/modules/courses/graduation/tasks/index.js
+++ b/public/react/src/modules/courses/graduation/tasks/index.js
@@ -235,15 +235,17 @@ class GraduationTasks extends Component{
this.setState({
Modalstype:true,
- Modalstopval:"公开后非课堂成员也可以访问查看",
- ModalsBottomval:"是否确认公开?",
+ Modalstopval:"设为公开后,非课堂成员也可以访问查看",
+ ModalsBottomval:"是否确认设为公开?",
ModalCancel:this.cancelmodel,
ModalSave:this.saveonOpen,
})
}
- // onSticky = (message) => {
+
+
+ // onSticky = (message) => {
// const cid = this.props.match.params.coursesId
// const url = `/messages/${message.id}/sticky_top.json`
// axios.put(url, {
diff --git a/public/react/src/modules/courses/shixunHomework/Homeworddescription.js b/public/react/src/modules/courses/shixunHomework/Homeworddescription.js
index a6e1351e0..405490f38 100644
--- a/public/react/src/modules/courses/shixunHomework/Homeworddescription.js
+++ b/public/react/src/modules/courses/shixunHomework/Homeworddescription.js
@@ -1,114 +1,114 @@
-import React, {Component} from "react";
-import {
- Form,
- Select,
- Input,
- Button,
- Checkbox,
- Upload,
- Icon,
- message,
- Modal,
- Table,
- Divider,
- InputNumber,
- Tag,
- DatePicker,
- Radio,
- Tooltip,
- notification
-} from "antd";
-import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor';
-import {Link, Switch, Route, Redirect} from 'react-router-dom';
-import axios from 'axios';
-import '../css/members.css'
-import "../common/formCommon.css"
-import '../css/Courses.css'
-import '../css/members.css'
-import "../common/formCommon.css"
-import '../css/Courses.css'
-import moment from 'moment';
-import '../css/members.css'
-import "../common/formCommon.css"
-import './style.css'
-import Workquestionandanswer from "./Workquestionandanswer";
-const { TextArea } = Input;
-
-
-class Homeworddescription extends Component {
-
- constructor(props) {
- super(props);
- this.state = {
- props: props,
- description:undefined,
- }
-
-
- }
-
- componentDidMount() {
-
-
- }
- //取消操作
- clickcancel =()=>{
- this.props.NOReleaseNotes();
- }
- //确认操作
- onSaveExercise=()=>{
- if(this.state.description === "" || this.state.description===undefined || this.state.description === null){
- this.props.showNotification("请输入作业说明");
- return
- }
- this.props.ReleaseNotes(this.state.description);
- }
- //获取输入框
- settextarea=(e)=>{
- this.setState({
- description:e
- })
- }
- render() {
- return (
-
-
-
-
- {/**/}
- {/**/}
-
-
-
-
-
-
-
-
-
-
- )
- }
-
-
-
-
-
-
-}
-const Homeworddescriptions = Form.create({name: 'taskPollNew'})(Homeworddescription);
+import React, {Component} from "react";
+import {
+ Form,
+ Select,
+ Input,
+ Button,
+ Checkbox,
+ Upload,
+ Icon,
+ message,
+ Modal,
+ Table,
+ Divider,
+ InputNumber,
+ Tag,
+ DatePicker,
+ Radio,
+ Tooltip,
+ notification
+} from "antd";
+import TPMMDEditor from '../../tpm/challengesnew/TPMMDEditor';
+import {Link, Switch, Route, Redirect} from 'react-router-dom';
+import axios from 'axios';
+import '../css/members.css'
+import "../common/formCommon.css"
+import '../css/Courses.css'
+import '../css/members.css'
+import "../common/formCommon.css"
+import '../css/Courses.css'
+import moment from 'moment';
+import '../css/members.css'
+import "../common/formCommon.css"
+import './style.css'
+import Workquestionandanswer from "./Workquestionandanswer";
+const { TextArea } = Input;
+
+
+class Homeworddescription extends Component {
+
+ constructor(props) {
+ super(props);
+ this.state = {
+ props: props,
+ description:undefined,
+ }
+
+
+ }
+
+ componentDidMount() {
+
+
+ }
+ //取消操作
+ clickcancel =()=>{
+ this.props.NOReleaseNotes();
+ }
+ //确认操作
+ onSaveExercise=()=>{
+ if(this.state.description === "" || this.state.description===undefined || this.state.description === null){
+ this.props.showNotification("请输入作业说明");
+ return
+ }
+ this.props.ReleaseNotes(this.state.description);
+ }
+ //获取输入框
+ settextarea=(e)=>{
+ this.setState({
+ description:e
+ })
+ }
+ render() {
+ return (
+
+
+
+
+ {/**/}
+ {/**/}
+
+
+
+
+
+
+
+
+
+
+ )
+ }
+
+
+
+
+
+
+}
+const Homeworddescriptions = Form.create({name: 'taskPollNew'})(Homeworddescription);
export default Homeworddescriptions;
\ No newline at end of file
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
index 272ac6418..a21d6f977 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunhomeWorkItem.js
@@ -334,7 +334,7 @@ class ShixunhomeWorkItem extends Component{
{discussMessage.commit_count===undefined?"":
{discussMessage.commit_count} 已交}
{discussMessage.uncommit_count===undefined?"":
{discussMessage.uncommit_count} 未交}
{/*
{discussMessage.replies_count} 3 未评*/}
-
0?"剩余时间":""} placement="bottom">
+
{discussMessage.status_time}
@@ -349,7 +349,7 @@ class ShixunhomeWorkItem extends Component{
{this.props.isAdmin?:""}
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index 7ebbeb473..438babfea 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -429,27 +429,36 @@ class Workquestionandanswer extends Component {
{jobsettingsdata === undefined|| jobsettingsdata.data.description===null? "无" :
+
{/* /!*{jobsettingsdata.data.description}*!/*/}
- {/* */}
+ {/* */}
- {/* */}
- {/*
*/}
- {/* /!*{ChallengesDataList === undefined ? "" :ChallengesDataList.description===null?""*!/*/}
- {/* */}
- {/* /!*}*!/*/}
- {/*
*/}
-
- {/*
*/}
+ {/* */}
+ {/*
*/}
+ {/* /!*{ChallengesDataList === undefined ? "" :ChallengesDataList.description===null?""*!/*/}
+ {/* */}
+ {/* /!*}*!/*/}
+ {/*
*/}
+
+ {/*
*/}
}
diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
index 70acf0f80..c3be53486 100644
--- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js
+++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js
@@ -827,8 +827,8 @@ class ShixunHomework extends Component{
this.setState({
Modalstype:true,
- Modalstopval:"公开后非课堂成员也可以访问查看",
- ModalsBottomval:"是否确认公开?",
+ Modalstopval:"设为公开后,非课堂成员也可以访问查看",
+ ModalsBottomval:"是否确认设为公开?",
ModalCancel:this.cancelmodel,
ModalSave:this.saveonOpen,
})
@@ -1190,6 +1190,7 @@ class ShixunHomework extends Component{
isAdmin={this.props.isAdmin()}
isStudent={this.props.isStudent()}
isNotMember={this.props.isNotMember()}
+ isClassManagement={this.props.isClassManagement()}
checkBox={this.props.isAdmin()?
- {
- pathList && pathList.length > 0 ?
- (
-
- {
- pathList && pathList.map((item,key)=>{
-
- return(
-
- {
- item.tag_name === null ? "" :
-
-
{item.tag_name}
-
-
- }
-
-
-
-
-
非试用内容,需要授权
-
-
-
-
-
-
- {item.name}
-
-
-
-
- {item.stages_count}
-
-
- {/**/}
- {/*{item.shixuns_count}*/}
- {/**/}
-
-
- {item.members_count}
-
-
-
-
- )
- })
- }
-
- ):(
-
-
-
暂无数据哦~
-
- )
- }
-
-
- )
- }
-}
+import React, { Component } from 'react';
+import {getImageUrl} from 'educoder';
+import { BrowserRouter as Router, Route, Link } from "react-router-dom";
+import { Tooltip } from 'antd';
+import axios from 'axios';
+
+
+class ShixunPathCard extends Component{
+ constructor(props) {
+ super(props)
+ }
+ render(){
+ let {pathList}=this.props;
+ return(
+
+ {
+ pathList && pathList.length > 0 ?
+ (
+
+ {
+ pathList && pathList.map((item,key)=>{
+
+ return(
+
+ {
+ item.tag_name === null ? "" :
+
+
{item.tag_name}
+
+
+ }
+
+
+
+
+
非试用内容,需要授权
+
+
+ {/*target="_blank"*/}
+
+
+
+
+ {item.name}
+ {/*target="_blank"*/}
+
+
+
+
+ {item.stages_count}
+
+
+ {/**/}
+ {/*{item.shixuns_count}*/}
+ {/**/}
+
+
+ {item.members_count}
+
+
+
+
+ )
+ })
+ }
+
+ ):(
+
+
+
暂无数据哦~
+
+ )
+ }
+
+
+ )
+ }
+}
export default ShixunPathCard;
\ No newline at end of file
diff --git a/public/react/src/modules/tpm/TPMIndexHOC.js b/public/react/src/modules/tpm/TPMIndexHOC.js
index 66d3d9273..1bdc505c3 100644
--- a/public/react/src/modules/tpm/TPMIndexHOC.js
+++ b/public/react/src/modules/tpm/TPMIndexHOC.js
@@ -183,7 +183,12 @@ export function TPMIndexHOC(WrappedComponent) {
// return false
return this.state.coursedata&&this.state.coursedata.course_identity === 0
}
- // 管理员等
+ // 课堂管理等
+ isClassManagement = () => {
+ // return this.state.coursedata&&this.state.coursedata.course_identity >= 0 &&
+ return this.state.coursedata&&this.state.coursedata.course_identity < 2
+ }
+ //老师等
isAdminOrCreator = () => {
// return this.state.coursedata&&this.state.coursedata.course_identity >= 0 &&
return this.state.coursedata&&this.state.coursedata.course_identity < 3
@@ -279,7 +284,7 @@ export function TPMIndexHOC(WrappedComponent) {
const common = {
isSuperAdmin:this.isSuperAdmin,
isAdminOrCreator:this.isAdminOrCreator,
-
+ isClassManagement:this.isClassManagement,
isAdmin: this.isAdmin,
isAdminOrTeacher: this.isAdminOrTeacher,
isStudent: this.isStudent,
diff --git a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
index 85275e620..b60b641e0 100644
--- a/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
+++ b/public/react/src/modules/tpm/TPMsettings/TPMsettings.js
@@ -324,7 +324,7 @@ export default class TPMsettings extends Component {
opening_time:response.data.shixun.opening_time,
newuse_scope:response.data.shixun.use_scope,
scope_partments: response.data.shixun.scope_partment.length,
- shixunmemoMDvalue:response.data.shixun.evaluate_script
+ shixunmemoMDvalue:response.data.shixun.evaluate_script,
})
// if(response.data.status===403){
@@ -598,7 +598,7 @@ export default class TPMsettings extends Component {
evaluate_script, exec_time, webssh, use_scope, trainee, can_copy, task_pass, test_set_permission, hide_code, code_hidden, forbid_copy, vnc,multi_webssh,
opening_time, pod_exist_time,shixunmemoMDvalue
} = this.state;
- let operateauthority=this.props.identity<4&&this.props.status==0||this.props.identity===1&&this.props.status==2||this.props.identity===1&&this.props.status==1;
+ let operateauthority=this.props.identity<4&&this.state.status==0||this.props.identity===1&&this.state.status==2||this.props.identity===1&&this.state.status==1;
const description_editormd = this.description_editormd.getValue();
@@ -1084,7 +1084,7 @@ export default class TPMsettings extends Component {
}
const dateFormat = 'YYYY-MM-DD HH:mm:ss';
- let operateauthority=this.props.identity===1?true:this.props.identity<4&&this.props.status==0;
+ let operateauthority=this.props.identity===1?true:this.props.identity<4&&this.state.status==0?true:false;
return (