diff --git a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js index 85099e359..4700e2b05 100644 --- a/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js +++ b/public/react/src/modules/courses/shixunHomework/ShixunHomeworkPage.js @@ -1,5 +1,4 @@ import React,{ Component } from "react"; -import {Checkbox,Input,Table, Pagination,Menu} from "antd"; import {Link,NavLink} from 'react-router-dom'; import { WordsBtn ,ActionBtn} from 'educoder'; import axios from 'axios'; diff --git a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js index 91e199c2e..b5e14ce12 100644 --- a/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js +++ b/public/react/src/modules/courses/shixunHomework/Trainingjobsetting.js @@ -1255,6 +1255,15 @@ class Trainingjobsetting extends Component { late_time:moment(handleDateString(dateString)).add(2, 'months'), late_times:moment(handleDateString(dateString)).add(2, 'months').format('YYYY-MM-DD HH:mm'), }); + try { + this.setState({ + unit_e_tip: "", + p_flag: false, + borredss:undefined, + }) + } catch (e) { + + } }else{ this.setState({ end_time:moment(handleDateString(dateString)).add(1, 'months'), @@ -1922,7 +1931,7 @@ class Trainingjobsetting extends Component {

{ - unit_p_tip && unit_p_tip != "" ? { unit_p_tip } + unit_p_tip && unit_p_tip != "" ? { unit_p_tip } : "" }

@@ -1956,7 +1965,7 @@ class Trainingjobsetting extends Component {

{ - unit_e_tip && unit_e_tip != "" ? { unit_e_tip } :"" + unit_e_tip && unit_e_tip != "" ? { unit_e_tip } :"" }