From 680410923ccaf24597e56e4509a7b2ef8fbee716 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Fri, 30 Aug 2019 09:35:12 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../courses/exercise/Exercisesetting.js | 13 +++++++------ .../graduation/tasks/GraduationTaskssetting.js | 1 + .../courses/shixunHomework/shixunHomework.js | 18 ++++++++++++++---- 3 files changed, 22 insertions(+), 10 deletions(-) diff --git a/public/react/src/modules/courses/exercise/Exercisesetting.js b/public/react/src/modules/courses/exercise/Exercisesetting.js index a93aa9942..96cc17ca8 100644 --- a/public/react/src/modules/courses/exercise/Exercisesetting.js +++ b/public/react/src/modules/courses/exercise/Exercisesetting.js @@ -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 }) diff --git a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js index 7e5707695..e0b327016 100644 --- a/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js +++ b/public/react/src/modules/courses/graduation/tasks/GraduationTaskssetting.js @@ -778,6 +778,7 @@ class GraduationTaskssettingapp extends Component{ } isgoback=()=>{ + this.getsettings(); this.setState({ flagPageEdit: false, }) diff --git a/public/react/src/modules/courses/shixunHomework/shixunHomework.js b/public/react/src/modules/courses/shixunHomework/shixunHomework.js index 528495a9b..bf59380f5 100644 --- a/public/react/src/modules/courses/shixunHomework/shixunHomework.js +++ b/public/react/src/modules/courses/shixunHomework/shixunHomework.js @@ -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?