Attendance.1685bf4d.js 8.5 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Attendance"],{"12d5":function(t,e,r){},"19a3":function(t,e,r){"use strict";var a=r("55b2"),n=r.n(a);n.a},5276:function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"attendance"},[a("div",{staticClass:"section"},[a("h2",[t._v(t._s(t.classGroupName))]),a("div",{staticClass:"att"},[a("div",{staticClass:"circel"},[a("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"}},[a("p",[a("span",[t._v(t._s(t.dataInfo.alreadyInClass[0]))]),t._v("/"+t._s(t.dataInfo.alreadyInClass[1]))]),a("p",[t._v("已上课时")])]),a("p",{staticClass:"current-time"},[t._v(t._s(t.dataInfo.classDate)+" "+t._s(t.dataInfo.classTime))])],1),a("div",{staticClass:"ite"},[a("span",[t._v(t._s(t.dataInfo.studentNum))]),t._v(" 学生(人)\n ")]),a("div",{staticClass:"ite"},[a("span",[t._v(t._s(t.dataInfo.leagueNum))]),t._v(" 退团(人)\n ")])])]),t._m(0),t.show?a("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,n){return a("div",{key:n,staticClass:"stu_info"},[a("van-cell",{attrs:{center:!0}},[a("template",{slot:"icon"},[a("img",{staticClass:"logo",attrs:{src:r("55ef"),alt:""}})]),a("template",{slot:"default"},[t._v("到课(天):"+t._s(e.normalDay)),a("br"),t._v("旷课(天):"+t._s(e.truantDay)),a("br"),t._v("请假(天):"+t._s(e.leaveDay))]),a("template",{slot:"title"},[a("div",{class:e.truant?"truant":""},[t._v("\n "+t._s(e.studentName)),e.truant?a("van-tag",{attrs:{type:"danger",size:"medium"}},[t._v("连续旷课")]):t._e()],1)]),a("template",{slot:"label"},[t._v(t._s(t._f("joinArray")(e.subjectName)))])],2),a("div",{staticClass:"stu-detail"},t._l(e.list,function(e,r){return a("div",{key:r,staticClass:"item"},[a("p",[t._v(t._s(t.formatDate(e.classDate))),a("br"),t._v(t._s(e.classWeek))]),a("p",{class:e.status},[t._v(t._s(t._f("clockingIn")(e.status)))])])}),0)],1)}),0):a("m-empty",{key:"records"})],1)},n=[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")),s=r("9afb"),o={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(s["B"])({classGroupId:this.classGroupId}).then(function(e){var r=e.data;if(200==r.code){t.dataInfo=r.data;var a=r.data.alreadyInClass;a=a?a.split("/"):[0,0],t.dataInfo.alreadyInClass=a,t.dataInfo.rate=a[0]?a[0]/a[1]*100:0}})},statisticsList:function(){var t=this,e=this.params;Object(s["C"])(e).then(function(r){var a=r.data;200==a.code?(t.dataList=t.dataList.concat(a.data.rows),t.loading=!1,e.page>=Math.ceil(a.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),a=e.getDate()+1>=10?e.getDate()+1:"0"+(e.getDate()+1);return r+"-"+a}}},i=o,c=(r("9300"),r("2877")),d=Object(c["a"])(i,a,n,!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 a=r("12d5"),n=r.n(a);n.a},"9afb":function(t,e,r){"use strict";r.d(e,"s",function(){return o}),r.d(e,"x",function(){return i}),r.d(e,"t",function(){return c}),r.d(e,"h",function(){return d}),r.d(e,"G",function(){return l}),r.d(e,"g",function(){return f}),r.d(e,"j",function(){return p}),r.d(e,"y",function(){return m}),r.d(e,"z",function(){return g}),r.d(e,"A",function(){return v}),r.d(e,"f",function(){return y}),r.d(e,"F",function(){return _}),r.d(e,"w",function(){return C}),r.d(e,"r",function(){return I}),r.d(e,"c",function(){return S}),r.d(e,"m",function(){return b}),r.d(e,"l",function(){return k}),r.d(e,"d",function(){return w}),r.d(e,"e",function(){return G}),r.d(e,"B",function(){return D}),r.d(e,"C",function(){return L}),r.d(e,"u",function(){return R}),r.d(e,"v",function(){return A}),r.d(e,"E",function(){return q}),r.d(e,"k",function(){return h}),r.d(e,"n",function(){return j}),r.d(e,"q",function(){return E}),r.d(e,"a",function(){return B}),r.d(e,"D",function(){return N}),r.d(e,"i",function(){return x}),r.d(e,"p",function(){return $}),r.d(e,"o",function(){return z}),r.d(e,"b",function(){return M});var a=r("4328"),n=r.n(a),u=r("981f").default,s="/api-teacher",o=function(t){return u({url:s+"/snaker/task/queryMyCreatedList",method:"get",params:t})},i=function(t){return u({url:s+"/snaker/task/queryWaitList",method:"get",params:t})},c=function(t){return u({url:s+"/snaker/task/queryProcessedList",method:"get",params:t})},d=function(t){return u({url:s+"/subject/findTeacherSubjets",method:"get",params:t})},l=function(t){return u({url:s+"/vipGroupCategory/queryAll",method:"get",params:t})},f=function(t){return u({url:s+"/vipGroupActivity/findByVipGroupCategory",method:"get",params:t})},p=function(t){return u({url:s+"/school/findVipSchoolByTeacher",method:"get",params:t})},h=function(t){return u({url:s+"/school/findVipSchoolByTeacher2",method:"get",params:t})},m=function(t){return u({url:s+"/school/add",method:"post",data:n.a.stringify(t)})},g=function(t){return u({url:s+"/school/del",method:"post",data:n.a.stringify(t)})},v=function(t){return u({url:s+"/school/update",method:"post",data:n.a.stringify(t)})},y=function(t){return u({url:s+"/teacherDefaultVipGroupSalary/findByTeacherAndCategory",method:"get",params:t})},_=function(t){return u({url:s+"/teacherVipGroup/vipGroupApply",method:"post",data:t})},C=function(t){return u({url:s+"/teacherLeaveRecord/queryVipCourseScheduleList",method:"get",params:t})},I=function(t){return u({url:s+"/leaveCategory/queryPage",method:"post",data:t})},S=function(t){return u({url:s+"/teacherLeaveRecord/askForLeave",method:"post",data:n.a.stringify(t)})},b=function(t){return u({url:s+"/teacherCourseSchedule/getCourseSchedulesWithDate",method:"get",params:t})},k=function(t){return u({url:s+"/teacherCourseSchedule/getCourseScheduleDateByMonth",method:"get",params:t})},w=function(t){return u({url:s+"/teacherCourseSchedule/classStartDateAdjust",method:"post",data:n.a.stringify(t)})},G=function(t){return u({url:s+"/teacherCourseSchedule/courseSwap",method:"post",data:n.a.stringify(t)})},D=function(t){return u({url:s+"/teacherCourseSchedule/statisticsInfo",method:"get",params:t})},L=function(t){return u({url:s+"/teacherCourseSchedule/statisticsList",method:"get",params:t})},R=function(t){return u({url:s+"/teacher/queryStudentApply",method:"get",params:t})},A=function(t){return u({url:s+"/teacher/querySubByMusicGroupId",method:"get",params:t})},q=function(t){return u({url:s+"/studentRegistration/updateSubject",method:"post",data:n.a.stringify(t)})},j=function(){return u({url:"/api-student/studentOrder/getLuckStatis",method:"get"})},E=function(){return u({url:"/api-web/api/practiceSum",method:"get"})},B=function(t){return u({url:"/api-teacher/classGroup/addStudyReport ",method:"post",data:t})},M=function(t){return u({url:"/api-teacher/studyReport/addStudyReport",method:"post",data:t})},N=function(t){return u({url:"/api-teacher/studyReport/info",method:"get",params:t})},$=function(t){return u({url:"/api-teacher/studyReport/getReviewsInfo",method:"get",params:t})},x=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})}},d678:function(t,e,r){"use strict";var a=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:"暂无内容"))])])},n=[],u={name:"mempty",props:{icon:String,msg:String}},s=u,o=(r("19a3"),r("2877")),i=Object(o["a"])(s,a,n,!1,null,"67669af7",null);e["a"]=i.exports}}]);