-
+
)
}
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js
index b50b302d2..4ac9a7cc5 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTasksSubmitnew.js
@@ -85,15 +85,9 @@ class GraduationTasksSubmitnew extends Component{
}
handleSubmit=(e) => {
- console.log("86");
+
let {fileList,selectmemberslist,workslist}=this.state;
- if(fileList.length === 0){
- this.setState({
- shixunsreplace:true,
- })
- return
- }
this.Commoninterface(fileList,selectmemberslist,workslist);
}
@@ -280,7 +274,19 @@ class GraduationTasksSubmitnew extends Component{
funtaskstatus=(checkedValues)=>{
- let{memberslist,selectobjct}=this.state;
+ let{memberslist,selectobjct,workslist}=this.state;
+ if(selectobjct.length>workslist.max_num){
+ this.setState({
+ minvalue:workslist.max_num,
+ setvalue:"大于",
+ minmaxtype:true
+ })
+ return
+ }else{
+ this.setState({
+ minmaxtype:false
+ })
+ }
let newlist =memberslist;
let newcheckedValues=checkedValues;
let selects=[];
@@ -382,17 +388,17 @@ class GraduationTasksSubmitnew extends Component{
}
if(workslist&&workslist.task_type===2){
if(userids!=undefined){
- if(userids.length<2){
+ if(userids.length
5){
+ }else if(userids.length>workslist.max_num){
this.setState({
- minvalue:5,
+ minvalue:workslist.max_num,
setvalue:"大于",
minmaxtype:true
})
@@ -405,7 +411,15 @@ class GraduationTasksSubmitnew extends Component{
spinnings:true
})
+
let id=this.props.match.params.task_Id;
+
+ if(fileList.length === 0){
+ this.setState({
+ shixunsreplace:true,
+ })
+ return
+ }
let url="/graduation_tasks/"+id+"/graduation_works.json";
axios.post(url, {
@@ -471,7 +485,7 @@ render(){
multiple: true,
// https://github.com/ant-design/ant-design/issues/15505
// showUploadList={false},然后外部拿到 fileList 数组自行渲染列表。
- showUploadList: false,
+ // showUploadList: false,
action: `${getUrl()}/api/attachments.json`,
onChange: this.handleChange,
onRemove: this.onAttachmentRemove,
@@ -593,37 +607,37 @@ render(){
(单个文件150M以内)
-
- {this.state.fileList.length===0?"":this.state.fileList.map((item,key)=>{
- return(
-
-
-
-
-
- {item.name}
-
-
- {item.response===undefined?"":bytesToSize(item.size)}
-
- this.onAttachmentRemove(item.response===undefined?"":item.response.id&&item.response.id)}>
-
- )
- })}
+ {/**/}
+ {/*{this.state.fileList.length===0?"":this.state.fileList.map((item,key)=>{*/}
+ {/*return(*/}
+ {/**/}
+ {/**/}
+ {/**/}
+ {/**/}
+ {/**/}
+ {/*{item.name}*/}
+ {/**/}
+ {/**/}
+ {/*{item.response===undefined?"":bytesToSize(item.size)}*/}
+ {/**/}
+ {/*this.onAttachmentRemove(item.response===undefined?"":item.response.id&&item.response.id)}>*/}
+ {/*
*/}
+ {/*)*/}
+ {/*})}*/}
@@ -638,7 +652,7 @@ render(){
>
-
成员要求:2~5人
+
成员要求:{workslist&&workslist.min_num}~{workslist&&workslist.max_num}人
this.onSearchKeywordKeyUp(e)}
onkeydown={(e)=>this.onSearchKeywordKeyUps(e)}/>
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
index ba80918dc..e01dfbb68 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js
@@ -7,15 +7,9 @@ import axios from 'axios';
import Modals from '../../../modals/Modals';
import DownloadMessage from '../../../modals/DownloadMessage';
import CoursesListType from '../../coursesPublic/CoursesListType';
-import PublishModals from "../../coursesPublic/PublishModals";
import HomeworkModal from "../../coursesPublic/HomeworkModal";
import moment from 'moment';
const { Option} = Select;
-const CheckboxGroup = Checkbox.Group;
-const confirm = Modal.confirm;
-let GraduationTasksnewtype=true;
-// const $ = window.$;
-const Search = Input.Search;
const RadioGroup = Radio.Group;
function range(start, end) {
diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js
index 7c1a1474a..abe4c0804 100644
--- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js
+++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssettingquestions.js
@@ -376,7 +376,7 @@ class GraduationTasksquestions extends Component{
width: '100%',
border: '1px solid transparent'
}}>
-
+
:""
}
diff --git a/public/react/src/modules/courses/shixunHomework/CommitSummary.js b/public/react/src/modules/courses/shixunHomework/CommitSummary.js
index 0eb1bad0b..c2900e538 100644
--- a/public/react/src/modules/courses/shixunHomework/CommitSummary.js
+++ b/public/react/src/modules/courses/shixunHomework/CommitSummary.js
@@ -160,7 +160,7 @@ class CommitSummary extends Component{
max: 5000, message: '最大限制为5000个字符',
}],
})(
-
)}
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
index 879f90cc7..5a16e21a5 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunStudentWork.js
@@ -751,7 +751,7 @@ class ShixunStudentWork extends Component {
{data&&data?
-
+
-
diff --git a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
index 9a331cdef..55d9cf60a 100644
--- a/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
+++ b/public/react/src/modules/courses/shixunHomework/ShixunWorkReport.js
@@ -1,5 +1,5 @@
import React, {Component} from "react";
-import {WordsBtn} from 'educoder';
+import {WordsBtn,markdownToHTML} from 'educoder';
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 axios from 'axios';
@@ -13,12 +13,10 @@ import 'codemirror/mode/cmake/cmake';
import 'codemirror/mode/xml/xml';
import 'codemirror/mode/javascript/javascript';
import 'codemirror/mode/clike/clike';
-
import '../css/members.css';
import "../common/formCommon.css";
import '../css/Courses.css';
import './style.css';
-import moment from 'moment';
import 'moment/locale/zh-cn';
class ShixunWorkReport extends Component {
@@ -172,7 +170,6 @@ class ShixunWorkReport extends Component {
- {data&&data.work_description}
+
+
diff --git a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
index 9cf381455..630b6861d 100644
--- a/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
+++ b/public/react/src/modules/courses/shixunHomework/Shixunworkdetails/ShixunWorkModal.js
@@ -184,10 +184,10 @@ class ShixunWorkModal extends Component{
if (response.data.status === 0) {
this.props.updatas()
this.props.issCancel()
- notification.open({
- message:"提示",
- description: response.data.message
- });
+ // notification.open({
+ // message:"提示",
+ // description: response.data.message
+ // });
this.props.history.replace(`/courses/${this.props.match.params.coursesId}/shixun_homeworks/${this.props.match.params.homeworkid}/student_work`);
}else if(response.data.status === -1){
notification.open({
diff --git a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
index 9616eae58..da13cd330 100644
--- a/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
+++ b/public/react/src/modules/courses/shixunHomework/Workquestionandanswer.js
@@ -509,7 +509,7 @@ class Workquestionandanswer extends Component {
}
{/* /!*{jobsettingsdata.data.description}*!/*/}
@@ -559,7 +559,7 @@ class Workquestionandanswer extends Component {
{jobsettingsdata === undefined ? "无" : jobsettingsdata === null ? "无" : jobsettingsdata === "null" ? "无" :
jobsettingsdata.data.explanation === undefined ? "无" : jobsettingsdata.data.explanation === null ? "无" :
-
}
diff --git a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js
index ee7579ddc..6843f678a 100644
--- a/public/react/src/modules/paths/PathDetail/PathDetailIndex.js
+++ b/public/react/src/modules/paths/PathDetail/PathDetailIndex.js
@@ -342,7 +342,7 @@ class PathDetailIndex extends Component{
{detailInfoList === undefined ? "" :detailInfoList.description===null?"":
-
+
}
diff --git a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
index 4ef6abfa3..b98e9a8ab 100644
--- a/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
+++ b/public/react/src/modules/tpm/shixunchild/Challenges/Challenges.js
@@ -304,7 +304,7 @@ class Challenges extends Component {
id="challenge_editorMd_description">
{ChallengesDataList === undefined ? "" :ChallengesDataList&&ChallengesDataList.description===null?"":
-
+
}