12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["Attendance"],{"19a3":function(t,a,e){"use strict";var s=e("55b2"),n=e.n(s);n.a},"28a5":function(t,a,e){"use strict";var s=e("aae3"),n=e("cb7c"),i=e("ebd6"),r=e("0390"),l=e("9def"),c=e("5f1b"),o=e("520a"),u=e("79e5"),d=Math.min,f=[].push,v="split",p="length",h="lastIndex",_=4294967295,m=!u(function(){RegExp(_,"y")});e("214f")("split",2,function(t,a,e,u){var g;return g="c"=="abbc"[v](/(b)*/)[1]||4!="test"[v](/(?:)/,-1)[p]||2!="ab"[v](/(?:ab)*/)[p]||4!="."[v](/(.?)(.?)/)[p]||"."[v](/()()/)[p]>1||""[v](/.?/)[p]?function(t,a){var n=String(this);if(void 0===t&&0===a)return[];if(!s(t))return e.call(n,t,a);var i,r,l,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),d=0,v=void 0===a?_:a>>>0,m=new RegExp(t.source,u+"g");while(i=o.call(m,n)){if(r=m[h],r>d&&(c.push(n.slice(d,i.index)),i[p]>1&&i.index<n[p]&&f.apply(c,i.slice(1)),l=i[0][p],d=r,c[p]>=v))break;m[h]===i.index&&m[h]++}return d===n[p]?!l&&m.test("")||c.push(""):c.push(n.slice(d)),c[p]>v?c.slice(0,v):c}:"0"[v](void 0,0)[p]?function(t,a){return void 0===t&&0===a?[]:e.call(this,t,a)}:e,[function(e,s){var n=t(this),i=void 0==e?void 0:e[a];return void 0!==i?i.call(e,n,s):g.call(String(n),e,s)},function(t,a){var s=u(g,t,this,a,g!==e);if(s.done)return s.value;var o=n(t),f=String(this),v=i(o,RegExp),p=o.unicode,h=(o.ignoreCase?"i":"")+(o.multiline?"m":"")+(o.unicode?"u":"")+(m?"y":"g"),b=new v(m?o:"^(?:"+o.source+")",h),I=void 0===a?_:a>>>0;if(0===I)return[];if(0===f.length)return null===c(b,f)?[f]:[];var y=0,C=0,w=[];while(C<f.length){b.lastIndex=m?C:0;var x,E=c(b,m?f:f.slice(C));if(null===E||(x=d(l(b.lastIndex+(m?0:C)),f.length))===y)C=r(f,C,p);else{if(w.push(f.slice(y,C)),w.length===I)return w;for(var k=1;k<=E.length-1;k++)if(w.push(E[k]),w.length===I)return w;C=y=x}}return w.push(f.slice(y)),w}]})},"41b9":function(t,a,e){},5276:function(t,a,e){"use strict";e.r(a);var s=function(){var t=this,a=t.$createElement,s=t._self._c||a;return s("div",{staticClass:"attendance"},[s("div",{staticClass:"section"},[s("h2",[t._v(t._s(t.classGroupName))]),s("div",{staticClass:"att"},[s("div",{staticClass:"circel"},[s("van-circle",{attrs:{rate:t.dataInfo.rate,speed:100,color:"#14928A","stroke-width":65,"layer-color":"#EEEEEE"},model:{value:t.currentRate,callback:function(a){t.currentRate=a},expression:"currentRate"}},[s("p",[s("span",[t._v(t._s(t.dataInfo.alreadyInClass[0]))]),t._v("/"+t._s(t.dataInfo.alreadyInClass[1]))]),s("p",[t._v("已上课时")])]),s("p",{staticClass:"current-time"},[t._v(t._s(t.dataInfo.classDate)+" "+t._s(t.dataInfo.classTime))])],1),s("div",{staticClass:"ite"},[s("span",[t._v(t._s(t.dataInfo.studentNum))]),t._v(" 学生(人)\n ")]),s("div",{staticClass:"ite"},[s("span",[t._v(t._s(t.dataInfo.leagueNum))]),t._v(" 退团(人)\n ")])])]),t._m(0),t.show?s("van-list",{key:"records",attrs:{finished:t.finished,"finished-text":"我是有底线的"},on:{load:t.statisticsList},model:{value:t.loading,callback:function(a){t.loading=a},expression:"loading"}},t._l(t.dataList,function(a,n){return s("div",{key:n,staticClass:"stu_info"},[s("van-cell",{attrs:{center:!0,"title-class":"truant"}},[s("template",{slot:"icon"},[s("img",{staticClass:"logo",attrs:{src:e("55ef"),alt:""}})]),s("template",{slot:"default"},[t._v("到课(天):"+t._s(a.normalDay)),s("br"),t._v("旷课(天):"+t._s(a.truantDay)),s("br"),t._v("请假(天):"+t._s(a.leaveDay))]),s("template",{slot:"title"},[t._v(t._s(a.studentName)),a.truant?s("van-tag",{attrs:{type:"danger",size:"medium"}},[t._v("连续旷课")]):t._e()],1),s("template",{slot:"label"},[t._v(t._s(t._f("joinArray")(a.subjectName)))])],2),s("div",{staticClass:"stu-detail"},t._l(a.list,function(a,e){return s("div",{key:e,staticClass:"item"},[s("p",[t._v(t._s(t.formatDate(a.classDate))),s("br"),t._v(t._s(a.classWeek))]),s("p",{class:a.status},[t._v(t._s(t._f("clockingIn")(a.status)))])])}),0)],1)}),0):s("m-empty",{key:"records"})],1)},n=[function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"section"},[e("h2",[t._v("考勤统计")])])}],i=(e("28a5"),e("d678")),r=e("9afb"),l={name:"attendance",components:{MEmpty:i["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(){this.__init(),window.document.title="历史考勤统计"},methods:{__init:function(){var t=this;Object(r["t"])({classGroupId:this.classGroupId}).then(function(a){var e=a.data;if(200==e.code){t.dataInfo=e.data;var s=e.data.alreadyInClass;s=s?s.split("/"):[0,0],t.dataInfo.alreadyInClass=s,t.dataInfo.rate=s[0]?s[0]/s[1]*100:0}})},statisticsList:function(){var t=this,a=this.params;Object(r["u"])(a).then(function(e){var s=e.data;200==s.code?(t.dataList=t.dataList.concat(s.data.rows),t.loading=!1,a.page>=Math.ceil(s.data.total/a.rows)&&(t.finished=!0),a.page++):t.finished=!0,t.dataList.length<=0&&(t.show=!1)})},formatDate:function(t){var a=new Date(t),e=a.getMonth()+1>=10?a.getMonth()+1:"0"+(a.getMonth()+1),s=a.getDate()+1>=10?a.getDate()+1:"0"+(a.getDate()+1);return e+"-"+s}}},c=l,o=(e("e4bf"),e("2877")),u=Object(o["a"])(c,s,n,!1,null,"8ed54b2a",null);a["default"]=u.exports},"55b2":function(t,a,e){},"55ef":function(t,a,e){t.exports=e.p+"img/default_head_img.2565015d.png"},aae3:function(t,a,e){var s=e("d3f4"),n=e("2d95"),i=e("2b4c")("match");t.exports=function(t){var a;return s(t)&&(void 0!==(a=t[i])?!!a:"RegExp"==n(t))}},d678:function(t,a,e){"use strict";var s=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{staticClass:"mempty"},[e("div",{class:[t.icon?t.icon:"icon_nodata","icon"]}),e("div",{staticClass:"msg"},[t._v(t._s(t.msg?t.msg:"暂无内容"))])])},n=[],i={name:"mempty",props:{icon:String,msg:String}},r=i,l=(e("19a3"),e("2877")),c=Object(l["a"])(r,s,n,!1,null,"67669af7",null);a["a"]=c.exports},e4bf:function(t,a,e){"use strict";var s=e("41b9"),n=e.n(s);n.a}}]);
- //# sourceMappingURL=Attendance.81ed79ed.js.map
|