dev_aliyun_beta
杨树明 5 years ago
parent b654864778
commit 680410923c

@ -4,14 +4,14 @@ import {Form,Checkbox,DatePicker,Button,Input,Select,Tooltip} from "antd";
import { handleDateString } from 'educoder';
import PollDetailTabForthRules from '../poll/PollDetailTabForthRules';
import '../css/members.css'
import '../css/busyWork.css'
import '../poll/pollStyle.css'
import '../css/members.css';
import '../css/busyWork.css';
import '../poll/pollStyle.css';
import moment from 'moment'
import moment from 'moment';
import locale from 'antd/lib/date-picker/locale/zh_CN';
import axios from 'axios'
import Modals from '../../modals/Modals'
import axios from 'axios';
import Modals from '../../modals/Modals';
const Search=Input.Search;
const Option=Select.Option;
@ -549,6 +549,7 @@ class Exercisesetting extends Component{
}
//取消编辑
cancelEdit=()=>{
this.getSettingInfo();
this.setState({
flagPageEdit:false
})

@ -778,6 +778,7 @@ class GraduationTaskssettingapp extends Component{
}
isgoback=()=>{
this.getsettings();
this.setState({
flagPageEdit: false,
})

@ -54,7 +54,8 @@ class ShixunHomework extends Component{
course_groupslist:[],
checkedtype:false,
checkBoxValues:[],
isSpin:false
isSpin:false,
antIcon:false
}
}
updateNavSuccess=()=>{
@ -660,10 +661,11 @@ class ShixunHomework extends Component{
savedelete=()=>{
this.setState({
antIcon:true
})
let {Coursename,page,order,checkBoxValues,datas}=this.state;
let category_id=this.props.match.params.category_id;
const cid = this.props.match.params.coursesId
const url = `/courses/`+cid+`/homework_commons/multi_destroy.json`;
axios.post(url, {
@ -691,11 +693,17 @@ class ShixunHomework extends Component{
Loadtype:false,
checkBoxValues:[],
checkedtype:false,
antIcon:false
})
this.props.showNotification(response.data.message)
this.homeworkupdatalist(Coursename,page,order);
this.props.updataleftNavfun()
}
}else{
this.setState({
antIcon:false
})
this.props.showNotification(response.data.message)
}
})
.catch(function (error) {
console.log(error);
@ -923,6 +931,7 @@ class ShixunHomework extends Component{
course_modules,
shixunpath,
order,
antIcon,
}=this.state;
let main_id=this.props.match.params.main_id;
@ -938,6 +947,7 @@ class ShixunHomework extends Component{
modalSave={this.state.ModalSave}
modalsBottomval={this.state.ModalsBottomval}
loadtype={this.state.Loadtype}
antIcon={this.state.antIcon}
/>:""}
{/*立即发布*/}
{visible===true?<HomeworkModal

Loading…
Cancel
Save