(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4d9aee07"],{"2d51":function(e,t,a){},"321f":function(e,t,a){e.exports=a.p+"img/课程完成量.45a90d95.png"},"5b8a":function(e,t,a){"use strict";a("2d51")},"5e45":function(e,t,a){e.exports=a.p+"img/btn_back_hover_old.c904d071.png"},"8b11":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"dashboard-container"},[n("div",{staticClass:"header-container flex flex-between"},[n("div",{staticClass:"left-box"}),n("div",{staticClass:"right-box flex flex-start"},[e._m(0),n("div",{staticClass:"date"},[e._v(e._s(e.headDate))])])]),n("div",{staticClass:"header-btn-container flex flex-between"},[n("div",{staticClass:"left",on:{click:e.clickBackBtn}},[n("img",{attrs:{src:a("5e45"),alt:""}}),n("span",{staticClass:"text"},[e._v("返回")])]),n("div",{staticClass:"right flex flex-start"},[n("img",{staticClass:"search-icon",attrs:{src:a("0619"),alt:""}}),n("div",{staticClass:"search-input"},[n("input",{directives:[{name:"model",rawName:"v-model",value:e.searchWord,expression:"searchWord"}],attrs:{type:"text",placeholder:"可以输入姓名、学号进行搜索"},domProps:{value:e.searchWord},on:{input:function(t){t.target.composing||(e.searchWord=t.target.value)}}})]),n("div",{staticClass:"search-btn",on:{click:e.clickSearchBtn}},[e._v(" 搜索 ")])])]),n("div",{staticClass:"big-container flex flex-start"},[n("span",{staticClass:"container-title"},[e._v("学生学情数据")]),n("div",{staticClass:"left-container"},[n("div",{staticClass:"student-list flex flex-dr flex-center"},e._l(e.studentList,(function(t){return n("div",{class:e.studentInfo.id===t.id?"li active":"li",on:{click:function(a){return e.clickStudent(t)}}},[e._v(e._s(t.name)+" ")])})),0)]),n("div",{staticClass:"right-container flex flex-dr flex-center"},[n("div",{staticClass:"overview-box flex flex-start"},[n("div",{staticClass:"left flex flex-start"},[n("div",{staticClass:"name-box flex flex-dr flex-center"},[n("img",{directives:[{name:"show",rawName:"v-show",value:"女"===e.studentInfo.sex,expression:"studentInfo.sex==='女'"}],attrs:{src:a("919c"),alt:""}}),n("img",{directives:[{name:"show",rawName:"v-show",value:"男"===e.studentInfo.sex,expression:"studentInfo.sex==='男'"}],attrs:{src:a("9ca8"),alt:""}}),n("span",{staticClass:"name"},[e._v(e._s(e.studentInfo.name))])]),n("div",{staticClass:"info-box"},[n("div",{staticClass:"li flex flex-start"},[n("span",{staticClass:"title"},[e._v("班级：")]),n("span",{staticClass:"text"},[e._v(e._s(e.clazzName))])]),n("div",{staticClass:"li flex flex-start"},[n("span",{staticClass:"title"},[e._v("学号：")]),n("span",{staticClass:"text"},[e._v(e._s(e.studentInfo.account))])]),n("div",{staticClass:"li flex flex-start"},[n("span",{staticClass:"title"},[e._v("最近学习时间：")]),n("span",{staticClass:"text"},[e._v(e._s(e.studentOverview.lastSubmitTime?e.date_format(e.studentOverview.lastSubmitTime,"yyyy-MM-dd HH:mm:ss"):""))])])])]),n("div",{staticClass:"right flex flex-between"},[n("div",{staticClass:"li flex flex-dr flex-center"},[n("img",{attrs:{src:a("321f"),alt:""}}),n("span",{staticClass:"title"},[e._v("课程完成量")]),n("span",{staticClass:"number"},[e._v(e._s(e.studentOverview.completeNum))])]),n("div",{staticClass:"li flex flex-dr flex-center"},[n("img",{attrs:{src:a("adc0"),alt:""}}),n("span",{staticClass:"title"},[e._v("课程完成率")]),n("span",{staticClass:"number"},[e._v(e._s(0===e.studentOverview.scheduleNum?0:100*(e.studentOverview.completeNum/e.studentOverview.scheduleNum).toFixed(2))+"%")])]),n("div",{staticClass:"li flex flex-dr flex-center"},[n("img",{attrs:{src:a("c358"),alt:""}}),n("span",{staticClass:"title"},[e._v("平均得分")]),n("span",{staticClass:"number"},[e._v(e._s(e.studentOverview.completeAvgScore.toFixed(0)))])]),n("div",{staticClass:"li flex flex-dr flex-center"},[n("img",{attrs:{src:a("954f"),alt:""}}),n("span",{staticClass:"title"},[e._v("学习最高分")]),n("span",{staticClass:"number"},[e._v(e._s(e.studentOverview.completeMaxScore.toFixed(0)))])])])]),n("div",{staticClass:"course-box flex flex-dr flex-center"},[n("span",{staticClass:"box-title"},[e._v("课程完成情况")]),n("div",{staticClass:"course-list flex flex-dr flex-center"},e._l(e.experimentDataList,(function(t){return n("div",{staticClass:"li flex flex-start"},[n("div",{staticClass:"li-left flex flex-between"},[n("div",{staticClass:"avatar-box"},[n("img",{attrs:{src:t.experiment.icon}})]),n("div",{staticClass:"numbers"},[n("div",{staticClass:"number-li"},[n("div",{staticClass:"title flex flex-between"},[n("span",{staticClass:"title-name"},[e._v("完成人次")]),n("span",{staticClass:"number"},[e._v(e._s(t.data.completeNum)+"/"+e._s(t.data.scheduleNum))])]),n("div",{staticClass:"number-bar"},[n("div",{staticClass:"number-bar-bg"}),n("div",{staticClass:"number-bar-show",style:"width:"+t.data.completeNum/t.data.scheduleNum*300+"px"})])]),n("div",{staticClass:"number-li"},[n("div",{staticClass:"title flex flex-between"},[n("span",{staticClass:"title-name"},[e._v("平均得分")]),n("span",{staticClass:"number"},[e._v(e._s(t.data.completeAvgScore.toFixed(0))+"分")])]),n("div",{staticClass:"number-bar"},[n("div",{staticClass:"number-bar-bg"}),n("div",{staticClass:"number-bar-show",style:"width:"+t.data.completeAvgScore/100*300+"px"})])]),n("div",{staticClass:"number-li"},[n("div",{staticClass:"title flex flex-between"},[n("span",{staticClass:"title-name"},[e._v("完成率")]),n("span",{staticClass:"number"},[e._v(e._s(t.data.completeRate)+"%")])]),n("div",{staticClass:"number-bar"},[n("div",{staticClass:"number-bar-bg"}),n("div",{staticClass:"number-bar-show",style:"width:"+t.data.completeRate/100*300+"px"})])]),n("div",{staticClass:"number-li"},[n("div",{staticClass:"title flex flex-between"},[n("span",{staticClass:"title-name"},[e._v("平均耗时")]),n("span",{staticClass:"number"},[e._v(e._s((t.data.completeAvgUsedTime/60).toFixed(0))+"分钟")])]),n("div",{staticClass:"number-bar"},[n("div",{staticClass:"number-bar-bg"}),n("div",{staticClass:"number-bar-show",style:"width:"+t.data.completeAvgUsedTime/3600*300+"px"})])])])]),n("div",{staticClass:"li-right flex flex-dr flex-center"},[n("div",{staticClass:"line line1 flex flex-start"},[e._m(1,!0),n("div",{staticClass:"line-right flex flex-start"},[n("span",{staticClass:"t1"},[e._v("第")]),n("div",{staticClass:"box"},[e._v(" "+e._s(t.rankObject["classRank"]?t.rankObject["classRank"]:"大于100")+" ")]),n("span",{staticClass:"t2"},[e._v("名")])])]),n("div",{staticClass:"line line2 flex flex-start"},[e._m(2,!0),n("div",{staticClass:"line-right flex flex-start"},[n("span",{staticClass:"t1"},[e._v("第")]),n("div",{staticClass:"box"},[e._v(" "+e._s(t.rankObject["schoolRank"]?t.rankObject["schoolRank"]:"大于100")+" ")]),n("span",{staticClass:"t2"},[e._v("名")])])])])])})),0)])])]),n("div",{staticClass:"company-box"},[e._v("技术服务：成都智云鸿道信息技术有限公司")]),n("div",{directives:[{name:"show",rawName:"v-show",value:e.showFullDialog,expression:"showFullDialog"}],staticClass:"my-dialog-container"},[n("div",{staticClass:"mask"}),n("div",{staticClass:"dialog-box",staticStyle:{"background-color":"transparent",width:"100%",top:"50%"}},[n("div",{staticClass:"flex flex-center"},[n("el-button",{attrs:{id:"fullScreenBtn",type:"danger",size:""}},[e._v("全屏查看")])],1)])])])},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"clock"},[a("div",{staticClass:"hour-hand"}),a("div",{staticClass:"minute-hand"})])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"line-left"},[a("span",{staticClass:"text"},[e._v("班级综合排名")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"line-left"},[a("span",{staticClass:"text"},[e._v("校内综合排名")])])}],r=(a("99af"),a("b680"),a("3835")),i=(a("96cf"),a("1da1")),c=a("cab8"),l=a("2d48"),u=a("cf45"),o=a("a888"),d={name:"v1Class",directives:{elDragDialog:o["a"]},data:function(){return{date_format:u["f"],headDate:"",headDateTimeId:"",schoolId:this.$route.query["schoolId"],clazzId:this.$route.query["clazzId"],clazzName:this.$route.query["clazzName"],experimentList:[],studentList:[],studentInfo:{},experimentDataList:[],studentOverview:{completeNum:0,scheduleNum:0,completeAvgScore:0,completeMaxScore:0},searchWord:"",showFullDialog:!1}},mounted:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.headDateTimeId=setInterval((function(){e.formatHeadDate()}),1e3),t.next=3,e.getDashboardClazzExperiments();case 3:return t.next=5,e.getExperimentData();case 5:e.getStudentList(),document.fullscreenElement||(e.showFullDialog=!0),a=e,document.getElementById("fullScreenBtn").onclick=function(){document.documentElement.RequestFullScreen&&document.documentElement.RequestFullScreen(),document.documentElement.mozRequestFullScreen&&document.documentElement.mozRequestFullScreen(),document.documentElement.webkitRequestFullScreen&&document.documentElement.webkitRequestFullScreen(),document.documentElement.msRequestFullscreen&&document.documentElement.msRequestFullscreen(),setTimeout((function(){a.showFullDialog=!1}),1e3)},window.onresize=function(){!1===a.showFullDialog&&(a.showFullDialog=!0)};case 10:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){clearInterval(this.headDateTimeId)},methods:{clickSearchBtn:function(){this.getStudentList()},clickBackBtn:function(){this.$router.push("/dashboard/v1/index")},clickStudent:function(e){var t=this;return Object(i["a"])(regeneratorRuntime.mark((function a(){var n,s,r;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return t.studentInfo=e,a.next=3,l["a"].getDashboardClazzOneStudentOverview(e.id);case 3:t.studentOverview=a.sent,n=0;case 5:if(!(n<t.experimentDataList.length)){a.next=14;break}return s=t.experimentDataList[n]["experiment"].id,a.next=9,l["a"].getOneStudentOneExperimentRankOfClass(e.id,e.administrationClazzId,s,t.schoolId);case 9:r=a.sent,t.$set(t.experimentDataList[n],"rankObject",r);case 11:n++,a.next=5;break;case 14:case"end":return a.stop()}}),a)})))()},getStudentList:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,n,s;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return a={clazzid:e.clazzId},a=Object.assign(a,{search:e.searchWord}),t.next=4,c["a"].getList(1,500,a);case 4:n=t.sent,s=Object(r["a"])(n,1),e.studentList=s[0],e.clickStudent(e.studentList[0]);case 8:case"end":return t.stop()}}),t)})))()},getDashboardClazzExperiments:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,l["a"].getDashboardClazzExperiments(e.clazzId);case 2:e.experimentList=t.sent;case 3:case"end":return t.stop()}}),t)})))()},getExperimentData:function(){var e=this;return Object(i["a"])(regeneratorRuntime.mark((function t(){var a,n,s,r,i;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=0;case 1:if(!(a<e.experimentList.length)){t.next=17;break}return n=e.experimentList[a],s=n.id,t.next=6,l["a"].dashboard_index_1(e.schoolId,e.clazzId,null,null,s);case 6:if(r=t.sent,!r){t.next=14;break}return 0===r.scheduleNum?r.completeRate=0:r.completeRate=100*(r.completeNum/r.scheduleNum).toFixed(2),t.next=11,l["a"].dashboard_index_2(e.schoolId,e.clazzId,null,null,s);case 11:i=t.sent,r.completeAvgUsedTime=i.completeAvgUsedTime,e.experimentDataList.push({experiment:n,data:r,rankObject:{}});case 14:a++,t.next=1;break;case 17:case"end":return t.stop()}}),t)})))()},formatHeadDate:function(){var e=new Date,t=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],a=e.getFullYear(),n=e.getMonth()+1,s=e.getDate(),r=t[e.getDay()],i=e.getHours(),c=e.getMinutes();this.headDate="".concat(a,"-").concat(n<10?"0":"").concat(n,"-").concat(s<10?"0":"").concat(s," ").concat(r," ").concat(i<10?"0":"").concat(i,":").concat(c<10?"0":"").concat(c)}}},m=d,p=(a("5b8a"),a("2877")),v=Object(p["a"])(m,n,s,!1,null,"3e44a8b6",null);t["default"]=v.exports},cab8:function(e,t,a){"use strict";a.d(t,"a",(function(){return R}));a("99af"),a("d3b7");var n=a("3835"),s=(a("96cf"),a("1da1")),r=a("d4ec"),i=a("bee2"),c=a("8ce4"),l=a("7b67");function u(e){return o.apply(this,arguments)}function o(){return o=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["a"])(l["c"]+"consumer/student/list","post_json",t));case 1:case"end":return e.stop()}}),e)}))),o.apply(this,arguments)}function d(e){return m.apply(this,arguments)}function m(){return m=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["a"])(l["c"]+"consumer/student/administrationClazzOptions","get",t));case 1:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function p(e){return v.apply(this,arguments)}function v(){return v=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["a"])(l["c"]+"consumer/student/save","post_json",t));case 1:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function f(e){return x.apply(this,arguments)}function x(){return x=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["a"])(l["c"]+"consumer/student/update","post_json",t));case 1:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function b(e){return h.apply(this,arguments)}function h(){return h=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["a"])(l["c"]+"consumer/student/delete","post_json",t));case 1:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}function g(e){return C.apply(this,arguments)}function C(){return C=Object(s["a"])(regeneratorRuntime.mark((function e(t){return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["a"])(l["c"]+"consumer/student/deleteStudentFile/".concat(t),"get",{}));case 1:case"end":return e.stop()}}),e)}))),C.apply(this,arguments)}var w=a("2ca2"),_=a("bc3a"),k=a.n(_),O=a("5c8a"),R=function(){function e(){Object(r["a"])(this,e)}return Object(i["a"])(e,null,[{key:"getList",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a,s){var r,i,c,l,o,d;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return r={page:t,size:a},r=Object.assign(r,s),e.next=4,u(r);case 4:if(i=e.sent,c=Object(n["a"])(i,1),l=c[0],0!==a){e.next=11;break}return e.abrupt("return",l.data);case 11:return o=w["a"].generateListMybatisPlus(l.data),d=o[0],e.abrupt("return",[d,o[1]]);case 14:case"end":return e.stop()}}),e)})));function t(t,a,n){return e.apply(this,arguments)}return t}()},{key:"getAdministrationClazzOptions",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d(t);case 2:if(a=e.sent,s=Object(n["a"])(a,1),r=s[0],2e4!==r.code){e.next=9;break}return e.abrupt("return",r.data||[]);case 9:return e.abrupt("return",[]);case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"save",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p(t);case 2:if(a=e.sent,s=Object(n["a"])(a,1),r=s[0],2e4!==r.code){e.next=9;break}return e.abrupt("return",!0);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"update",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f(t);case 2:if(a=e.sent,s=Object(n["a"])(a,1),r=s[0],2e4!==r.code){e.next=9;break}return e.abrupt("return",!0);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"remove",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t,a){var s,r,i;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,b({studentids:t,clazzid:a});case 2:if(s=e.sent,r=Object(n["a"])(s,1),i=r[0],2e4!==i.code){e.next=9;break}return e.abrupt("return",!0);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t,a){return e.apply(this,arguments)}return t}()},{key:"deleteStudentFile",value:function(){var e=Object(s["a"])(regeneratorRuntime.mark((function e(t){var a,s,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,g(t);case 2:if(a=e.sent,s=Object(n["a"])(a,1),r=s[0],2e4!==r.code){e.next=9;break}return e.abrupt("return",!0);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"export",value:function(e,t,a){t||(t="null"),a||(a="null");var n=l["c"]+"consumer/student/export/student/information/".concat(e,"/").concat(t,"/").concat(a),s=document.createElement("a");s.style.display="none",s.href=n,s.setAttribute("download","学生列表.xlsx"),document.body.appendChild(s),s.click(),s.remove()}},{key:"import",value:function(e,t,a){return new Promise((function(n,s){var r=new FormData;r.append("multipartFile",e),k.a.create({baseURL:l["c"]}).request({url:"consumer/clazz/importStudent?clazzId=".concat(t,"&schoolId=").concat(a),method:"post",headers:{"Content-Type":"multipart/form-data"},data:r}).then((function(e){console.log(e),200===e.status&&2e4===e.data.code?n(!0):(Object(O["a"])(e.data.msg,"导入失败"),n(!1))}))}))}}]),e}()}}]);