From 406d026e0d02e0a2e0fcf9891a8083d3ede884a9 Mon Sep 17 00:00:00 2001 From: caishi <1149225589@qq.com> Date: Sat, 17 Aug 2019 09:56:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E7=A8=8B=E8=AE=A4=E8=AF=81=E9=83=A8?= =?UTF-8?q?=E5=88=86=E5=AF=BC=E5=85=A5=E6=8C=89=E9=92=AE=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=BF=87=E9=95=BF=E5=8A=A0=E4=B8=8A=E5=8A=A0=E8=BD=BD=E6=95=88?= =?UTF-8?q?=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/index.js | 2 +- .../ecCourseEvaluations.js | 560 +++++++++--------- 2 files changed, 286 insertions(+), 276 deletions(-) diff --git a/public/react/src/index.js b/public/react/src/index.js index 55cebf17..98130846 100644 --- a/public/react/src/index.js +++ b/public/react/src/index.js @@ -41,7 +41,7 @@ var proxy = "http://localhost:3000" // proxy = "http://testbdweb.trustie.net" // proxy = "http://testbdweb.educoder.net" // proxy ="http://192.168.2.63:3000" - proxy='http://120.27.231.56:48080' + proxy='http://47.96.87.25:48080' const requestMap={}; // 在这里使用requestMap控制,避免用户通过双击等操作发出重复的请求; // 如果需要支持重复的请求,考虑config里面自定义一个allowRepeat参考来控制 diff --git a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js index c3e45ce9..8f091f7b 100644 --- a/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js +++ b/public/react/src/modules/ec/ecCourseEvaluations/ecCourseEvaluations.js @@ -55,7 +55,8 @@ class ecCourseEvaluations extends Component { isreload:false, newModallist:false, isreloads:false, - isSpin:false + isSpin:false, + listSpin:false } } componentWillMount(){ @@ -91,7 +92,8 @@ class ecCourseEvaluations extends Component { let newec_course_id=this.props.match.params.ec_course_id; this.setState({ - ec_course_id:newec_course_id + ec_course_id:newec_course_id, + listSpin:true }) const url = `/ec_course_evaluations?ec_course_id=`+newec_course_id; axios.get(url, { @@ -111,7 +113,8 @@ class ecCourseEvaluations extends Component { course_url:response.data.course_url, ec_course_id:response.data.ec_course_id, ec_year_id:response.data.ec_year_id, - ecmanager: response.data.is_manager + ecmanager: response.data.is_manager, + listSpin:false }) } }).catch(function (error) { @@ -565,6 +568,7 @@ class ecCourseEvaluations extends Component { } sync_course_data=()=>{ + this.setState({listSpin:true}) let ec_course_id=this.props.match.params.ec_course_id; let Url ='/ec_course_achievement_methods/sync_course_data'; axios.post(Url, { @@ -578,14 +582,16 @@ class ecCourseEvaluations extends Component { this.setState({ // titlemessage: response.data.message+"(支撑关系变更)", Modallist: response.data.message, - Modallisttype:true + Modallisttype:true, + listSpin:false }) this.UpdateEvaluations(); }else if(response.data.status===-1){ this.setState({ // titlemessage: response.data.message+"(支撑关系变更)", Modallist: response.data.message, - Modallisttype:true + Modallisttype:true, + listSpin:false }) } @@ -596,6 +602,7 @@ class ecCourseEvaluations extends Component { } uploadfile=(file)=>{ + this.setState({listSpin:true}) let Url =`/ec_course_evaluations/`+file.data+`/import_score`; const form = new FormData(); form.append('file', file.file); @@ -608,7 +615,8 @@ class ecCourseEvaluations extends Component { Modallist: '已成功导入'+response.data.count+"条数据", Modallisttype:true, isreload:true, - isreloads:true + isreloads:true, + listSpin:false }) }else if(response.data.status===0){ // message.warning(response.data.message); @@ -617,7 +625,8 @@ class ecCourseEvaluations extends Component { Modallist:response.data.message, Modallisttype:true, isreload:false, - isreloads:false + isreloads:false, + listSpin:false }) } }).catch((error) => { @@ -657,6 +666,7 @@ class ecCourseEvaluations extends Component { saveassclasslist=()=>{ // 列表清空 //搜索框清空 + this.setState({isSpin:true}); let{checkevalue}=this.state; let ec_course_id=this.props.match.params.ec_course_id; @@ -673,7 +683,8 @@ class ecCourseEvaluations extends Component { this.setState({ Modallist: "关联失败", Modallisttype:true, - isreload:false + isreload:false, + isSpin:false }) }else if(response.data.status===0)[ this.setState({ @@ -683,7 +694,8 @@ class ecCourseEvaluations extends Component { assclassvalue:"", Modallist: "关联成功", Modallisttype:true, - isreload:true + isreload:true, + isSpin:false }) ] @@ -767,6 +779,7 @@ class ecCourseEvaluations extends Component { return (
-- 项 - 名称 - 考核次数 - 支撑关系 - 考核分项名称 - - {/* 操作 */} - {ecmanager===false?"": - - - } - - - - 成绩导入状态 - - - 成绩来源 - - - 平均成绩导入模板 - - - 明细成绩导入模板 - -
-+ 项 + 名称 + 考核次数 + 支撑关系 + 考核分项名称 + + {/* 操作 */} + {ecmanager===false?"": + + + } + + + + 成绩导入状态 + + + 成绩来源 + + + 平均成绩导入模板 + + + 明细成绩导入模板 + +
+