(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-32af69a8"],{"1add":function(e,t,a){},"2d48":function(e,t,a){"use strict";a.d(t,"a",(function(){return R}));var n=a("3835"),r=(a("96cf"),a("1da1")),s=a("d4ec"),i=a("bee2"),c=a("8ce4"),o=a("7b67");function l(e){return u.apply(this,arguments)}function u(){return u=Object(r["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"])(o["c"]+"consumer/statistic/dashboard_index_1","post_json",t));case 1:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function d(e){return m.apply(this,arguments)}function m(){return m=Object(r["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"])(o["c"]+"consumer/statistic/dashboard_index_2","post_json",t));case 1:case"end":return e.stop()}}),e)}))),m.apply(this,arguments)}function p(e){return b.apply(this,arguments)}function b(){return b=Object(r["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"])(o["c"]+"consumer/statistic/dashboard_index_3","post_json",t));case 1:case"end":return e.stop()}}),e)}))),b.apply(this,arguments)}function f(e){return x.apply(this,arguments)}function x(){return x=Object(r["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"])(o["c"]+"consumer/statistic/dashboard_index_all_clazz_list","post_json",t));case 1:case"end":return e.stop()}}),e)}))),x.apply(this,arguments)}function h(e){return v.apply(this,arguments)}function v(){return v=Object(r["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"])(o["b"]+"admin/experiment/oneSchoolExperimentInfoList?schoolId=".concat(t),"get",{}));case 1:case"end":return e.stop()}}),e)}))),v.apply(this,arguments)}function g(e){return _.apply(this,arguments)}function _(){return _=Object(r["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"])(o["c"]+"consumer/statistic/dashboard_clazz_1","post_json",t));case 1:case"end":return e.stop()}}),e)}))),_.apply(this,arguments)}function w(e){return y.apply(this,arguments)}function y(){return y=Object(r["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"])(o["c"]+"consumer/statistic/dashboard_clazz_2","post_json",t));case 1:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function C(e){return z.apply(this,arguments)}function z(){return z=Object(r["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"])(o["c"]+"consumer/statistic/dashboard_clazz_3","post_json",t));case 1:case"end":return e.stop()}}),e)}))),z.apply(this,arguments)}function k(e){return O.apply(this,arguments)}function O(){return O=Object(r["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"])(o["c"]+"consumer/statistic/getClazzAnswersAnalysis","get",t));case 1:case"end":return e.stop()}}),e)}))),O.apply(this,arguments)}var R=function(){function e(){Object(s["a"])(this,e)}return Object(i["a"])(e,null,[{key:"dashboard_index_all_clazz_list",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,f({schoolId:t});case 2:if(a=e.sent,r=Object(n["a"])(a,1),s=r[0],2e4!==s.code){e.next=9;break}return e.abrupt("return",s.data);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:"getOneSchoolExperimentInfoList",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,h(t);case 2:if(a=e.sent,r=Object(n["a"])(a,1),s=r[0],2e4!==s.code){e.next=9;break}return e.abrupt("return",s.data);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:"dashboard_index_1",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a,r,s,i){var c,o,u;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,l({schoolId:t,clazzId:a,startTime:r,endTime:s,experimentId:i});case 2:if(c=e.sent,o=Object(n["a"])(c,1),u=o[0],2e4!==u.code){e.next=9;break}return e.abrupt("return",u.data);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t,a,n,r,s){return e.apply(this,arguments)}return t}()},{key:"dashboard_index_2",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a,r,s,i){var c,o,l;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,d({schoolId:t,clazzId:a,startTime:r,endTime:s,experimentId:i});case 2:if(c=e.sent,o=Object(n["a"])(c,1),l=o[0],2e4!==l.code){e.next=9;break}return e.abrupt("return",l.data);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t,a,n,r,s){return e.apply(this,arguments)}return t}()},{key:"dashboard_index_3",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a,r,s){var i,c,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,p({schoolId:t,clazzId:a,startTime:r,endTime:s});case 2:if(i=e.sent,c=Object(n["a"])(i,1),o=c[0],2e4!==o.code){e.next=9;break}return e.abrupt("return",o.data);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t,a,n,r){return e.apply(this,arguments)}return t}()},{key:"getDashboardClazzExperiments",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,g({clazzId:t});case 2:if(a=e.sent,r=Object(n["a"])(a,1),s=r[0],2e4!==s.code){e.next=9;break}return e.abrupt("return",s.data);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:"getDashboardClazzOneStudentOverview",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,w({studentId:t,startTime:null,endTime:null,experimentId:null});case 2:if(a=e.sent,r=Object(n["a"])(a,1),s=r[0],2e4!==s.code){e.next=9;break}return e.abrupt("return",s.data);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:"getOneStudentOneExperimentRankOfClass",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t,a,r,s){var i,c,o;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,C({studentId:t,clazzId:a,experimentId:r,schoolId:s});case 2:if(i=e.sent,c=Object(n["a"])(i,1),o=c[0],2e4!==o.code){e.next=9;break}return e.abrupt("return",o.data);case 9:return e.abrupt("return",!1);case 10:case"end":return e.stop()}}),e)})));function t(t,a,n,r){return e.apply(this,arguments)}return t}()},{key:"getClazzAnswersAnalysis",value:function(){var e=Object(r["a"])(regeneratorRuntime.mark((function e(t){var a,r,s;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,k({scheduleId:t});case 2:if(a=e.sent,r=Object(n["a"])(a,1),s=r[0],2e4!==s.code){e.next=9;break}return e.abrupt("return",s.data);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}()}]),e}()},5809:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAZCAYAAAAv3j5gAAAACXBIWXMAAC4jAAAuIwF4pT92AAAC6ElEQVRIiaXWy4tcVRAG8F/3tMnYOjExomES8YUQCYKPf0DQjbpQcBUEEWF8hSAKgo8E4wMf+MKNujEbdSMu3GUT1wMu3OiEKGoSDBpHx2TUaNJ2urOouunTnb6dEQsu59yvq07VrfqqTjfa8301cgdexLfYWqeUModH8DmeHKfQmmB8FW7CNedwAtfjRnTqFJoTjP/N9cgKHP2d61KdQgs7cDPaiR3Eq/gh33/FBXgOWwxn4RBeKHQX0cDbuC6xJvY1RR2uxjKO4UHchV9S8UJcLnK/OvWqZw63px2ch0vxGP4p9B5uJXAPvkvli7ABX+EZfJkpOYHbRjKyB5vwUeruwRR+xN2F3u4WeqLglaPpjPQQFtLxK4lfkXgl5+PRPHhBpPapzMAqA3LMtDKnU4XxO3hc0LWXv5/CpyNOKt0nsB391O3iPcMMnGq05/t/ipp8jY2ieD1nS1eQolFgJ9PBqPTya//AfnzcygOO4HXcl5F0Rw6U79NjnHfOoTuLnyuqNnEl3sUbIpWLgiizgk0y+p9EKjcapLyHw/k+m9g67MVlDHqiStd+HCgiW+/sukyLnjswgl+cgX1fYMfSeaOcDKcwk/vN+C2fnYXOrTiOo7i3wO8XLXActxRfdKbedSNoW34N0fmV7Cps3irw13JtCBYyQpI6Rx8KRsGbBV7uywBeLvYfFE7PSN30/gJrcIkofiWfiVqsMhhRRD99IqbH0XEHTromOsZP4+UauyVR57FSl7obRLOdMJyWO/Owk3iowLcl1hUX5oodPWDAwKcLvLw9dxX7Z4v9XK4rIsP7+D33zxf4SyJqYnhWsiPXrmh6JpChKRoO9gl6rzdcp71YK8hQFn23IEoHfyW2LHqoWTrqp/EGcS00RFcviUFajqBl0ZgzhkdQlYE1efi6PKuPfuWog2/EuN9q8n+JlUorgzxcOVorBuR20e3tWtP/Jn0xmBdxbaM93z+YXhdEfkdH/v+VTdhyGg7HtjHT+hEcAAAAAElFTkSuQmCC"},"78be":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:"container-box flex flex-between"},[n("div",{staticClass:"left-content flex flex-dr flex-center"},[n("div",{staticClass:"data-box course-complete-box"},[n("div",{staticClass:"title-box"},[e._v("课程完成情况")]),n("div",{staticClass:"content-box"},e._l(e.experimentDataList,(function(t){return n("div",{staticClass:"course-li 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"})])])])])})),0)]),n("div",{staticClass:"data-box course-use-time-box"},[n("div",{staticClass:"title-box"},[e._v("学习用时情况")]),n("div",{staticClass:"content-box flex flex-around"},[n("div",{staticClass:"cylinder-box cylinder-box1 flex flex-dr flex-center"},[n("div",{staticClass:"number"},[e._v(e._s((e.totalUsedTimeInfo.completeTotalUsedTime/2700).toFixed(0))+"学时")]),n("div",{staticClass:"cylinder cylinder1 "}),n("div",{staticClass:"title"},[e._v("总学习时长")])]),n("div",{staticClass:"cylinder-box cylinder-box2 flex flex-dr flex-center"},[n("div",{staticClass:"number"},[e._v(" "+e._s(0===e.totalUsedTimeInfo.completeNum?0:(e.totalUsedTimeInfo.completeTotalUsedTime/2700/e.totalUsedTimeInfo.completeNum).toFixed(2))+"学时 ")]),n("div",{staticClass:"cylinder cylinder2"}),n("div",{staticClass:"title"},[e._v("人均学习时长")])]),n("div",{staticClass:"cylinder-box cylinder-box3 flex flex-dr flex-center"},[n("div",{staticClass:"number"},[e._v(" "+e._s(0===e.totalUsedTimeInfo.completeNum?0:(e.totalUsedTimeInfo.scoreNum/e.totalUsedTimeInfo.completeNum).toFixed(2))+"次 ")]),n("div",{staticClass:"cylinder cylinder3"}),n("div",{staticClass:"title"},[e._v("人均实验次数")])])])])]),n("div",{staticClass:"center-content"},[e._m(1),n("div",{staticClass:"class-box flex flex-between"},[n("div",{staticClass:"text"},[e._v(e._s(e.clazzName))])]),n("el-select",{staticClass:"select-input",on:{change:e.classChange},model:{value:e.clazzId,callback:function(t){e.clazzId=t},expression:"clazzId"}},e._l(e.clazzList.data,(function(e,t){return n("el-option",{key:t,attrs:{value:e.value,label:e.label}})})),1),n("div",{staticClass:"data-qiu-box"},[n("div",{staticClass:"qiu qiu-1 flex flex-dr flex-center"},[n("div",{staticClass:"title"},[e._v("完成实验总人次")]),n("div",{staticClass:"number"},[e._v(e._s(e.dashboard_index_1_result["completeNum"]))])]),n("div",{staticClass:"qiu qiu-2 flex flex-dr flex-center"},[n("div",{staticClass:"title"},[e._v("实验完成率")]),n("div",{staticClass:"number"},[e._v(e._s(e.dashboard_index_1_result["completeRate"])+"%")])]),n("div",{staticClass:"qiu qiu-3 flex flex-dr flex-center"},[n("div",{staticClass:"title"},[e._v("安排实验总人次")]),n("div",{staticClass:"number"},[e._v(e._s(e.dashboard_index_1_result["scheduleNum"]))])]),n("div",{staticClass:"qiu qiu-4 flex flex-dr flex-center"},[n("div",{staticClass:"title"},[e._v("实验质量")]),n("div",{staticClass:"number"},[e._v(e._s(e.dashboard_index_1_result["qualityText"]))])])]),n("div",{staticClass:"sprite-box"}),n("div",{staticClass:"go-class-box",on:{click:function(t){return e.clickGoToClassBtn()}}},[n("img",{attrs:{src:a("db6f"),alt:""}}),n("span",{staticClass:"text"},[e._v("点我查看班级详情吧")])]),n("div",{staticClass:"company-box"},[e._v("技术服务：成都智云鸿道信息技术有限公司")])],1),n("div",{staticClass:"right-content flex flex-dr flex-center"},[n("div",{staticClass:"data-box study-action-box"},[n("div",{staticClass:"title-box"},[e._v("学习行为数据")]),n("div",{staticClass:"content-box flex flex-dr flex-center"},[n("div",{staticClass:"number-box flex flex-between"},[n("div",{staticClass:"number-li flex flex-start"},[n("span",{staticClass:"square"}),n("span",{staticClass:"text"},[e._v("安排人次")]),n("div",{staticClass:"number"},[e._v(e._s(this.studyAction.totalScheduleCount))])]),n("div",{staticClass:"number-li flex flex-start"},[n("span",{staticClass:"square"}),n("span",{staticClass:"text"},[e._v("学习人次")]),n("div",{staticClass:"number"},[e._v(e._s(this.studyAction.totalScoreCount))])])]),n("div",{staticClass:"chart-box",attrs:{id:"action-chart"}})])]),e._m(2),n("div",{staticClass:"right-date-box flex flex-between"},[n("div",{staticClass:"left-box"},[e._v("数据时段:")]),n("div",{staticClass:"right-box"},[n("div",{staticClass:"btn-box flex flex-between"},[n("div",{class:1===e.date_type?"btn active":"btn",on:{click:function(t){return e.clickDateBtn(1)}}},[e._v("本月度")]),n("div",{class:2===e.date_type?"btn active":"btn",on:{click:function(t){return e.clickDateBtn(2)}}},[e._v("本季度")]),n("div",{class:3===e.date_type?"btn active":"btn",on:{click:function(t){return e.clickDateBtn(3)}}},[e._v("本年度")])]),n("div",{staticClass:"select-box flex flex-between"},[n("img",{staticClass:"icon",attrs:{src:a("5809"),alt:""}}),n("span",{staticClass:"start-date"},[e._v(e._s(e.start_date_text))]),n("span",{staticClass:"text"},[e._v("至")]),n("span",{staticClass:"end-date"},[e._v(e._s(e.end_date_text))]),n("el-date-picker",{staticClass:"date_picker",attrs:{type:"daterange","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期","default-time":["00:00:00","23:59:59"],"value-format":"yyyy-MM-dd HH:mm:ss"},on:{change:e.dateChange},model:{value:e.dateRange,callback:function(t){e.dateRange=t},expression:"dateRange"}})],1)])])])]),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)])])])},r=[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,n=e._self._c||t;return n("div",{staticClass:"title-banner"},[n("img",{staticClass:"title-banner",attrs:{src:a("8060"),alt:""}}),n("span",{staticClass:"text"},[e._v("综合数据")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"data-box score-chart-box"},[a("div",{staticClass:"title-box"},[e._v("优良占比数据")]),a("div",{staticClass:"content-box flex flex-around"},[a("div",{staticClass:"chart-box",attrs:{id:"score-chart"}})])])}],s=(a("99af"),a("c975"),a("fb6a"),a("b0c0"),a("b680"),a("96cf"),a("1da1")),i=a("2d48"),c=a("2ca2"),o=a("cf45"),l=(a("5c8a"),a("22b4")),u=a("1be7"),d=a("4cb5"),m=a("3620"),p=a("9394"),b=a("2da7"),f=a("4b2a"),x=a("5e81"),h=a("e600"),v=a("ff32"),g=a("104d"),_=a("ee29"),w=a("c55a"),y=a("f95e");l["a"]([p["a"],b["a"],f["a"],x["a"],h["a"],d["a"],_["a"],w["a"],y["a"],v["a"],g["a"],m["a"]]);var C={name:"v2Index",data:function(){return{schoolId:this.$route.query["schoolId"],clazzList:{data:[],object:{}},experimentList:{},experimentDataList:[],totalUsedTimeInfo:{completeTotalUsedTime:0,scoreNum:0,completeNum:0},clazzId:null,clazzName:"选择班级",dateRange:[],date_type:0,start_time:null,end_time:null,start_date_text:"开始日期",end_date_text:"结束日期",headDate:"",headDateTimeId:"",dashboard_index_1_result:{},showFullDialog:!1,studyAction:{totalScoreCount:0,totalScheduleCount:0}}},mounted:function(){var e=this;return Object(s["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),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)},window.$(".class-box").click((function(){window.$(".select-input").click()})),window.$(".select-box .start-date,.select-box .end-date").click((function(){window.$(".date_picker").click()})),e.getClazzList(),t.next=10,e.getExperimentList();case 10:e.getData();case 11:case"end":return t.stop()}}),t)})))()},beforeDestroy:function(){clearInterval(this.headDateTimeId),sessionStorage.setItem("fullScreen","false")},methods:{clickGoToClassBtn:function(){this.$router.push("/dashboard/v2/chart?clazzId="+this.clazzId+"&schoolId="+this.schoolId+"&clazzName="+this.clazzName+"&start_time="+this.start_time+"&end_time="+this.end_time)},getData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:""===e.clazzId&&(e.clazzId=null),e.experimentDataList=[],e.totalUsedTimeInfo={completeTotalUsedTime:0,scoreNum:0,completeNum:0},e.get_dashboard_index_1(),e.getExperimentData(),e.getStudyActionDate();case 6:case"end":return t.stop()}}),t)})))()},classChange:function(e){var t=this;return Object(s["a"])(regeneratorRuntime.mark((function a(){return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:if(t.clazzName=t.clazzList.object[e],!t.clazzId){a.next=6;break}return a.next=4,t.getDashboardClazzExperiments();case 4:a.next=8;break;case 6:return a.next=8,t.getExperimentList();case 8:t.getData();case 9:case"end":return a.stop()}}),a)})))()},getDashboardClazzExperiments:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i["a"].getDashboardClazzExperiments(e.clazzId);case 2:e.experimentList=t.sent;case 3:case"end":return t.stop()}}),t)})))()},dateChange:function(e){this.start_time=e[0],this.end_time=e[1],this.start_date_text=e[0].slice(0,10),this.end_date_text=e[1].slice(0,10),this.getData()},clickDateBtn:function(e){this.date_type=e;var t="",a=Object(o["f"])((new Date).setHours(23,59,59,0),"yyyy-MM-dd HH:mm:ss");switch(e){case 1:var n=new Date;n.setDate(1),n.setHours(0,0,0,0),t=Object(o["f"])(n,"yyyy-MM-dd HH:mm:ss");break;case 2:var r=new Date;r.setHours(0,0,0,0);var s=r.getMonth(),i=Math.floor(s/3)+1,c=3*i-2;r.setMonth(c-1);var l=r.setDate(1);t=Object(o["f"])(l,"yyyy-MM-dd HH:mm:ss");break;case 3:var u=new Date;u.setHours(0,0,0,0),u.setDate(1),u.setMonth(0),t=Object(o["f"])(u,"yyyy-MM-dd HH:mm:ss");break}this.start_time=t,this.end_time=a,this.dateRange=[],this.start_date_text=t.slice(0,10),this.end_date_text=a.slice(0,10),this.getData()},get_dashboard_index_1:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i["a"].dashboard_index_1(e.schoolId,e.clazzId,e.start_time,e.end_time,null);case 2:a=t.sent,a&&(0===a.scheduleNum?a.completeRate=0:a.completeRate=(100*(a.completeNum/a.scheduleNum).toFixed(2)).toFixed(0),a.qualityText="良好",a.completeAvgScore>=90&&(a.qualityText="优秀"),a.completeAvgScore<=80&&(a.qualityText="及格"),e.dashboard_index_1_result=a);case 4:case"end":return t.stop()}}),t)})))()},getClazzList:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n,r,s,o;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i["a"].dashboard_index_all_clazz_list(e.schoolId);case 2:if(a=t.sent,a){for(n=c["a"].generateListFilterOptions("name","id",a,!0),r=[],s=0;s<n[0].length;s++)-1===n[0][s].label.indexOf("teacher")&&r.push(n[0][s]);o={data:r,object:n[1]},e.clazzList=o}case 4:case"end":return t.stop()}}),t)})))()},getExperimentList:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i["a"].getOneSchoolExperimentInfoList(e.schoolId);case 2:a=t.sent,a&&(e.experimentList=a);case 4:case"end":return t.stop()}}),t)})))()},getExperimentData:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n,r,s,c,l,u;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a=[],n=0;case 2:if(!(n<e.experimentList.length)){t.next=23;break}return r=e.experimentList[n],s=r.id,t.next=7,i["a"].dashboard_index_1(e.schoolId,e.clazzId,e.start_time,e.end_time,s);case 7:if(c=t.sent,!c){t.next=20;break}return 0===c.scheduleNum?c.completeRate=0:c.completeRate=(100*(c.completeNum/c.scheduleNum).toFixed(2)).toFixed(0),t.next=12,i["a"].dashboard_index_2(e.schoolId,e.clazzId,e.start_time,e.end_time,s);case 12:l=t.sent,c.completeAvgUsedTime=l.completeAvgUsedTime,e.$set(e.totalUsedTimeInfo,"completeTotalUsedTime",e.totalUsedTimeInfo.completeTotalUsedTime+l.completeTotalUsedTime),e.$set(e.totalUsedTimeInfo,"scoreNum",e.totalUsedTimeInfo.scoreNum+l.scoreNum),e.$set(e.totalUsedTimeInfo,"completeNum",e.totalUsedTimeInfo.completeNum+c.completeNum),e.experimentDataList.push({experiment:r,data:c}),u=Object(o["h"])("id",s,e.experimentList)[1]["name"],a.push([u,(100*l.perfectScorePercent.toFixed(2)).toFixed(0),(100*l.goodScorePercent.toFixed(2)).toFixed(0),(100*l.passScorePercent.toFixed(2)).toFixed(0)]);case 20:n++,t.next=2;break;case 23:e.drawScoreChart(a);case 24:case"end":return t.stop()}}),t)})))()},formatHeadDate:function(){var e=new Date,t=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],a=e.getFullYear(),n=e.getMonth()+1,r=e.getDate(),s=t[e.getDay()],i=e.getHours(),c=e.getMinutes();this.headDate="".concat(a,"-").concat(n<10?"0":"").concat(n,"-").concat(r<10?"0":"").concat(r," ").concat(s," ").concat(i<10?"0":"").concat(i,":").concat(c<10?"0":"").concat(c)},drawScoreChart:function(e){var t=[["product","优秀","良好","及格"]];t=t.concat(e);var a,n=document.getElementById("score-chart"),r=u["b"](n);a={legend:{textStyle:{color:"rgb(255,255,255,0.9)"}},tooltip:{enterable:!0,trigger:"axis"},color:["#4d9af2","#f2b94b","#87dde1"],textStyle:{fontSize:15,color:"#6c7fba"},dataset:{source:t},dataZoom:[{type:"slider",show:!0,backgroundColor:"rgb(19, 63, 100)",fillerColor:"rgb(16, 171, 198)",borderColor:"rgb(19, 63, 100)",showDetail:!0,startValue:0,endValue:5,filterMode:"empty",width:"100%",height:15,left:"center",zoomLoxk:!0,handleSize:0,bottom:3},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:{type:"category"},yAxis:{axisLabel:{formatter:"{value}%"}},series:[{type:"bar"},{type:"bar"},{type:"bar"}]},a&&r.setOption(a)},getStudyActionDate:function(){var e=this;return Object(s["a"])(regeneratorRuntime.mark((function t(){var a,n,r,s,c,l,d,m,p,b,f,x,h,v;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:"","",a={},n="",r="",e.start_time?(n=e.start_time,r=e.end_time):(s=new Date,s.setDate(1),s.setHours(0,0,0,0),c=new Date,n=Object(o["f"])(s,"yyyy-MM-dd HH:mm:ss"),r=Object(o["f"])(c,"yyyy-MM-dd HH:mm:ss")),l=[],d=new Date(n),m=new Date(r);while(d<=m)l.push(Object(o["f"])(new Date(d),"yyyy-MM-dd")),d.setDate(d.getDate()+1);e.studyAction.totalScoreCount=0,e.studyAction.totalScheduleCount=0,p=[["product","安排人次","学习人次"]],b=document.getElementById("action-chart"),f=u["b"](b),x={title:{text:""},legend:{textStyle:{color:"rgb(255,255,255,0.9)"},show:!1},tooltip:{enterable:!0,trigger:"axis"},color:["#83d3b8","#e19ff4"],textStyle:{fontSize:15,color:"#6c7fba",show:!1},dataset:{source:p},dataZoom:[{type:"slider",show:!0,backgroundColor:"rgb(19, 63, 100)",fillerColor:"rgb(16, 171, 198)",borderColor:"rgb(19, 63, 100)",showDetail:!0,startValue:0,endValue:5,filterMode:"empty",width:"100%",height:15,left:"center",zoomLoxk:!0,handleSize:0,bottom:3},{type:"inside",zoomOnMouseWheel:!1,moveOnMouseMove:!0,moveOnMouseWheel:!0}],xAxis:[{axisLine:{lineStyle:{color:"#3e4148",width:1}},type:"category",boundaryGap:!1}],yAxis:[{splitLine:{lineStyle:{color:"#21242b"}},type:"value",axisLine:{lineStyle:{color:"#43484e",width:0}}}],series:[{type:"line",symbol:"none",smooth:!0,itemStyle:{normal:{lineStyle:{color:"#83d3b8"}}}},{type:"line",symbol:"none",smooth:!0,itemStyle:{normal:{lineStyle:{color:"#e19ff4"}}}}]},x&&f.setOption(x),h=0;case 18:if(!(h<l.length)){t.next=26;break}return t.next=21,i["a"].dashboard_index_3(e.schoolId,e.clazzId,l[h]+" 00:00:00",l[h]+" 23:59:59");case 21:for(v in a=t.sent,a)a.hasOwnProperty(v)&&(p.push([v,a[v]["scheduleCount"],a[v]["scoreCount"]]),e.studyAction.totalScoreCount+=a[v]["scoreCount"],e.studyAction.totalScheduleCount+=a[v]["scheduleCount"],f.setOption({dataset:{source:p}}));case 23:h++,t.next=18;break;case 26:case"end":return t.stop()}}),t)})))()}}},z=C,k=(a("c046"),a("2877")),O=Object(k["a"])(z,n,r,!1,null,"5de81cf5",null);t["default"]=O.exports},8060:function(e,t,a){e.exports=a.p+"img/index_title_banner.3054ccf3.png"},c046:function(e,t,a){"use strict";a("1add")},db6f:function(e,t,a){e.exports=a.p+"img/go_to_class_btn_background.ba481fc2.png"}}]);