1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Attendance"],{"12d5":function(t,e,r){},"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("a481"),r("28a5"),r("d678")),o=r("9afb"),s={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["F"])({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["G"])(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}}},i=s,c=(r("9300"),r("2877")),d=Object(c["a"])(i,n,a,!1,null,"f7691cca",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"},9300:function(t,e,r){"use strict";var n=r("12d5"),a=r.n(n);a.a},"9afb":function(t,e,r){"use strict";r.d(e,"w",function(){return s}),r.d(e,"B",function(){return i}),r.d(e,"x",function(){return c}),r.d(e,"I",function(){return l}),r.d(e,"i",function(){return d}),r.d(e,"M",function(){return f}),r.d(e,"h",function(){return p}),r.d(e,"k",function(){return h}),r.d(e,"C",function(){return g}),r.d(e,"D",function(){return v}),r.d(e,"E",function(){return y}),r.d(e,"g",function(){return _}),r.d(e,"L",function(){return I}),r.d(e,"A",function(){return C}),r.d(e,"v",function(){return S}),r.d(e,"c",function(){return w}),r.d(e,"o",function(){return b}),r.d(e,"n",function(){return R}),r.d(e,"d",function(){return G}),r.d(e,"f",function(){return k}),r.d(e,"F",function(){return L}),r.d(e,"G",function(){return D}),r.d(e,"y",function(){return A}),r.d(e,"z",function(){return j}),r.d(e,"K",function(){return q}),r.d(e,"l",function(){return m}),r.d(e,"p",function(){return E}),r.d(e,"u",function(){return M}),r.d(e,"a",function(){return N}),r.d(e,"H",function(){return x}),r.d(e,"j",function(){return z}),r.d(e,"t",function(){return B}),r.d(e,"q",function(){return T}),r.d(e,"b",function(){return $}),r.d(e,"r",function(){return V}),r.d(e,"m",function(){return O}),r.d(e,"e",function(){return P}),r.d(e,"J",function(){return F}),r.d(e,"s",function(){return J});var n=r("4328"),a=r.n(n),u=r("981f").default,o="/api-teacher",s=function(t){return u({url:o+"/snaker/task/queryMyCreatedList",method:"get",params:t})},i=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+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},S=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)})},b=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})},G=function(t){return u({url:o+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:a.a.stringify(t)})},k=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})},D=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})},q=function(t){return u({url:o+"/studentRegistration/updateSubject",method:"post",data:a.a.stringify(t)})},E=function(){return u({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},M=function(){return u({url:"/api-web/api/practiceSum",method:"get"})},N=function(t){return u({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},$=function(t){return u({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},x=function(t){return u({url:"/api-teacher/studyReport/info",method:"get",params:t})},B=function(t){return u({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},z=function(t){return u({url:"/api-teacher/classGroup/findTeacherClassGroupInfo",method:"get",params:t})},T=function(t){return u({url:"/api-teacher/studyReport/getNeedPost",method:"get",params:t})},V=function(t){return u({url:"/api-teacher/courseReview/getPracticeGroup",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)})},F=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})}},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,s=(r("19a3"),r("2877")),i=Object(s["a"])(o,n,a,!1,null,"67669af7",null);e["a"]=i.exports}}]);
|