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

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

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

Loading…
Cancel
Save