1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Attendance"],{"19a3":function(t,e,r){"use strict";var n=r("55b2"),a=r.n(n);a.a},5276:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"attendance"},[n("div",{staticClass:"section"},[n("h2",[t._v(t._s(t.classGroupName))]),n("div",{staticClass:"att"},[n("div",{staticClass:"circel"},[n("van-circle",{attrs:{rate:t.dataInfo.rate,speed:100,color:"#14928A","stroke-width":65,"layer-color":"#EEEEEE"},model:{value:t.currentRate,callback:function(e){t.currentRate=e},expression:"currentRate"}},[n("p",[n("span",[t._v(t._s(t.dataInfo.alreadyInClass[0]))]),t._v("/"+t._s(t.dataInfo.alreadyInClass[1]))]),n("p",[t._v("已上课时")])]),n("p",{staticClass:"current-time"},[t._v(t._s(t.dataInfo.classDate)+" "+t._s(t.dataInfo.classTime))])],1),n("div",{staticClass:"ite"},[n("span",[t._v(t._s(t.dataInfo.studentNum))]),t._v(" 学生(人)\n ")]),n("div",{staticClass:"ite"},[n("span",[t._v(t._s(t.dataInfo.leagueNum))]),t._v(" 退团(人)\n ")])])]),t._m(0),t.show?n("van-list",{key:"records",attrs:{finished:t.finished,"finished-text":"没有更多数据了"},on:{load:t.statisticsList},model:{value:t.loading,callback:function(e){t.loading=e},expression:"loading"}},t._l(t.dataList,(function(e,a){return n("div",{key:a,staticClass:"stu_info"},[n("van-cell",{attrs:{center:!0}},[n("template",{slot:"icon"},[n("img",{staticClass:"logo",attrs:{src:r("55ef"),alt:""}})]),n("template",{slot:"default"},[t._v("到课(天):"+t._s(e.normalDay)),n("br"),t._v("旷课(天):"+t._s(e.truantDay)),n("br"),t._v("请假(天):"+t._s(e.leaveDay))]),n("template",{slot:"title"},[n("div",{class:e.truant?"truant":""},[t._v("\n "+t._s(e.studentName)),e.truant?n("van-tag",{attrs:{type:"danger",size:"medium"}},[t._v("连续旷课")]):t._e()],1)]),n("template",{slot:"label"},[t._v(t._s(t._f("joinArray")(e.subjectName)))])],2),n("div",{staticClass:"stu-detail"},t._l(e.list,(function(e,r){return n("div",{key:r,staticClass:"item"},[n("p",[t._v(t._s(t.formatDate(e.classDate))),n("br"),t._v(t._s(e.classWeek))]),n("p",{class:e.status},[t._v(t._s(t._f("clockingIn")(e.status)))])])})),0)],1)})),0):n("m-empty",{key:"records"})],1)},a=[function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"section"},[r("h2",[t._v("考勤统计")])])}],u=r("d678"),o=r("9afb"),i={name:"attendance",components:{MEmpty:u["a"]},data:function(){return{currentRate:0,classGroupName:this.$route.query.classGroupName,classGroupId:this.$route.query.classGroupId,dataInfo:{alreadyInClass:[0,0],rate:0},show:!0,loading:!1,finished:!1,params:{groupId:this.$route.params.groupId,page:1,rows:10,classGroupId:this.$route.query.classGroupId},dataList:[]}},mounted:function(){var t=this.$route.query;t.Authorization&&(localStorage.setItem("Authorization",decodeURI(t.Authorization)),localStorage.setItem("userInfo",decodeURI(t.Authorization))),window.document.title="历史考勤统计",this.__init()},methods:{__init:function(){var t=this;Object(o["J"])({classGroupId:this.classGroupId}).then((function(e){var r=e.data;if(200==r.code){t.dataInfo=r.data;var n=r.data.alreadyInClass;n=n?n.split("/"):[0,0],t.dataInfo.alreadyInClass=n,t.dataInfo.rate=n[0]?n[0]/n[1]*100:0}}))},statisticsList:function(){var t=this,e=this.params;Object(o["K"])(e).then((function(r){var n=r.data;200==n.code?(t.dataList=t.dataList.concat(n.data.rows),t.loading=!1,e.page>=Math.ceil(n.data.total/e.rows)&&(t.finished=!0),e.page++):t.finished=!0,t.dataList.length<=0&&(t.show=!1)}))},formatDate:function(t){var e=new Date(t.replace(/-/gi,"/")),r=e.getMonth()+1>=10?e.getMonth()+1:"0"+(e.getMonth()+1),n=e.getDate()+1>=10?e.getDate()+1:"0"+(e.getDate()+1);return r+"-"+n}}},s=i,c=(r("96a6"),r("2877")),d=Object(c["a"])(s,n,a,!1,null,"51120b4c",null);e["default"]=d.exports},"55b2":function(t,e,r){},"55ef":function(t,e,r){t.exports=r.p+"img/default_head_img.2565015d.png"},"8cf6":function(t,e,r){},"96a6":function(t,e,r){"use strict";var n=r("8cf6"),a=r.n(n);a.a},"9afb":function(t,e,r){"use strict";r.d(e,"z",(function(){return i})),r.d(e,"F",(function(){return s})),r.d(e,"A",(function(){return c})),r.d(e,"M",(function(){return l})),r.d(e,"k",(function(){return d})),r.d(e,"R",(function(){return f})),r.d(e,"i",(function(){return p})),r.d(e,"m",(function(){return h})),r.d(e,"G",(function(){return g})),r.d(e,"H",(function(){return v})),r.d(e,"I",(function(){return y})),r.d(e,"h",(function(){return _})),r.d(e,"P",(function(){return I})),r.d(e,"Q",(function(){return C})),r.d(e,"E",(function(){return S})),r.d(e,"x",(function(){return b})),r.d(e,"c",(function(){return w})),r.d(e,"q",(function(){return G})),r.d(e,"p",(function(){return R})),r.d(e,"e",(function(){return k})),r.d(e,"g",(function(){return D})),r.d(e,"J",(function(){return L})),r.d(e,"K",(function(){return q})),r.d(e,"B",(function(){return A})),r.d(e,"D",(function(){return j})),r.d(e,"O",(function(){return E})),r.d(e,"n",(function(){return m})),r.d(e,"r",(function(){return M})),r.d(e,"v",(function(){return N})),r.d(e,"a",(function(){return V})),r.d(e,"L",(function(){return $})),r.d(e,"l",(function(){return B})),r.d(e,"u",(function(){return x})),r.d(e,"s",(function(){return z})),r.d(e,"b",(function(){return T})),r.d(e,"o",(function(){return O})),r.d(e,"f",(function(){return P})),r.d(e,"N",(function(){return H})),r.d(e,"t",(function(){return J})),r.d(e,"d",(function(){return W})),r.d(e,"C",(function(){return F})),r.d(e,"w",(function(){return K})),r.d(e,"S",(function(){return Q})),r.d(e,"T",(function(){return X})),r.d(e,"j",(function(){return Y})),r.d(e,"y",(function(){return U}));var n=r("4328"),a=r.n(n),u=r("981f").default,o="/api-teacher",i=function(t){return u({url:o+"/snaker/task/queryMyCreatedList",method:"get",params:t})},s=function(t){return u({url:o+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return u({url:o+"/snaker/task/queryProcessedList",method:"get",params:t})},d=function(t){return u({url:o+"/subject/findTeacherSubjets",method:"get",params:t})},l=function(t){return u({url:o+"/subject/findSubSubjects",method:"get",params:t})},f=function(t){return u({url:o+"/vipGroupCategory/queryAll",method:"get",params:t})},p=function(t){return u({url:o+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},h=function(t){return u({url:o+"/school/findVipSchoolByTeacher",method:"get",params:t})},m=function(t){return u({url:o+"/school/findVipSchoolByTeacher2",method:"get",params:t})},g=function(t){return u({url:o+"/school/add",method:"post",data:a.a.stringify(t)})},v=function(t){return u({url:o+"/school/del",method:"post",data:a.a.stringify(t)})},y=function(t){return u({url:o+"/school/update",method:"post",data:a.a.stringify(t)})},_=function(t){return u({url:o+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},I=function(t){return u({url:o+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},C=function(t){return u({url:o+"/teacherVipGroup/vipGroupApplyForDouble11",method:"post",data:t})},S=function(t){return u({url:o+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},b=function(t){return u({url:o+"/leaveCategory/queryPage",method:"post",data:t})},w=function(t){return u({url:o+"/teacherLeaveRecord/askForLeave",method:"post",data:a.a.stringify(t)})},G=function(t){return u({url:o+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},R=function(t){return u({url:o+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},k=function(t){return u({url:o+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})},D=function(t){return u({url:o+"/teacherCourseSchedule/courseSwap",method:"post",data:a.a.stringify(t)})},L=function(t){return u({url:o+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},q=function(t){return u({url:o+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},A=function(t){return u({url:o+"/teacher/queryStudentApply",method:"get",params:t})},j=function(t){return u({url:o+"/teacher/querySubByMusicGroupId",method:"get",params:t})},E=function(t){return u({url:o+"/studentRegistration/updateSubject",method:"post",data:a.a.stringify(t)})},M=function(){return u({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},N=function(){return u({url:"/api-web/api/practiceSum",method:"get"})},V=function(t){return u({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},T=function(t){return u({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},$=function(t){return u({url:"/api-teacher/studyReport/info",method:"get",params:t})},x=function(t){return u({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},B=function(t){return u({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},z=function(t){return u({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},O=function(t){return u({url:"/api-teacher/courseReview/getCourseInfoHead",method:"get",params:t})},P=function(t){return u({url:"/api-teacher/courseReview/add",method:"post",data:a.a.stringify(t)})},H=function(t){return u({url:"/api-teacher/courseReview/updateReviewInfo",method:"post",data:a.a.stringify(t)})},J=function(t){return u({url:"/api-teacher/courseReview/getReviewInfo",method:"get",params:t})},W=function(t){return u({url:"/api-teacher/teacherCourseHomeworkReply/checkeIsAssignHomework",method:"get",params:t})},F=function(t){return u({url:"/api-teacher/teacherVipGroup/queryStudentsWithTeacher",method:"get",params:t})},U=function(t){return u({url:"/api-teacher/teacherVipGroup/queryDouble11Students",method:"get",params:t})},K=function(t){return u({url:"/api-teacher/visit/queryPage",method:"get",params:t})},Q=function(t){return u({url:"/api-teacher/visit/add",method:"post",data:a.a.stringify(t)})},X=function(t){return u({url:"/api-teacher/visit/getInfo",method:"get",params:t})},Y=function(t){return u({url:"/api-teacher/teacher/findEducationUsers",method:"get",params:t})}},d678:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mempty"},[r("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),r("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},a=[],u={name:"mempty",props:{icon:String,msg:String}},o=u,i=(r("19a3"),r("2877")),s=Object(i["a"])(o,n,a,!1,null,"67669af7",null);e["a"]=s.exports}}]);
|