1 |
- !function(){function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t(e)}function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function n(t){for(var n=1;n<arguments.length;n++){var a=null!=arguments[n]?arguments[n]:{};n%2?e(Object(a),!0).forEach((function(e){r(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function r(e,n,r){return(n=function(e){var n=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,n||"default");if("object"!==t(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"===t(n)?n:String(n)}(n))in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var e={},n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},i="function"==typeof Symbol?Symbol:{},s=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(N){l=function(t,e,n){return t[e]=n}}function f(t,e,n,r){var a=e&&e.prototype instanceof p?e:p,i=Object.create(a.prototype),s=new E(r||[]);return o(i,"_invoke",{value:I(t,n,s)}),i}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(N){return{type:"throw",arg:N}}}e.wrap=f;var h={};function p(){}function v(){}function g(){}var m={};l(m,s,(function(){return this}));var y=Object.getPrototypeOf,w=y&&y(y(T([])));w&&w!==n&&r.call(w,s)&&(m=w);var S=g.prototype=p.prototype=Object.create(m);function b(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function x(e,n){function a(o,i,s,c){var u=d(e[o],e,i);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==t(f)&&r.call(f,"__await")?n.resolve(f.__await).then((function(t){a("next",t,s,c)}),(function(t){a("throw",t,s,c)})):n.resolve(f).then((function(t){l.value=t,s(l)}),(function(t){return a("throw",t,s,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,e){function r(){return new n((function(n,r){a(t,e,n,r)}))}return i=i?i.then(r,r):r()}})}function I(t,e,n){var r="suspendedStart";return function(a,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===a)throw o;return A()}for(n.method=a,n.arg=o;;){var i=n.delegate;if(i){var s=L(i,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var c=d(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function L(t,e){var n=e.method,r=t.iterator[n];if(void 0===r)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,L(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var a=d(r,t.iterator,e.arg);if("throw"===a.type)return e.method="throw",e.arg=a.arg,e.delegate=null,h;var o=a.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,h):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,h)}function O(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function j(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function E(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(O,this),this.reset(!0)}function T(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,a=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return a.next=a}}return{next:A}}function A(){return{value:void 0,done:!0}}return v.prototype=g,o(S,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:v,configurable:!0}),v.displayName=l(g,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,g):(t.__proto__=g,l(t,u,"GeneratorFunction")),t.prototype=Object.create(S),t},e.awrap=function(t){return{__await:t}},b(x.prototype),l(x.prototype,c,(function(){return this})),e.AsyncIterator=x,e.async=function(t,n,r,a,o){void 0===o&&(o=Promise);var i=new x(f(t,n,r,a),o);return e.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(S),l(S,u,"Generator"),l(S,s,(function(){return this})),l(S,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),n=[];for(var r in e)n.push(r);return n.reverse(),function t(){for(;n.length;){var r=n.pop();if(r in e)return t.value=r,t.done=!1,t}return t.done=!0,t}},e.values=T,E.prototype={constructor:E,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(j),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,r){return i.type="throw",i.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],i=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var s=r.call(o,"catchLoc"),c=r.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n];if(a.tryLoc<=this.prev&&r.call(a,"finallyLoc")&&this.prev<a.finallyLoc){var o=a;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=t,i.arg=e,o?(this.method="next",this.next=o.finallyLoc,h):this.complete(i)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),h},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),j(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var a=r.arg;j(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:T(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},e}function o(t,e,n,r,a,o,i){try{var s=t[o](i),c=s.value}catch(u){return void n(u)}s.done?e(c):Promise.resolve(c).then(r,a)}function i(t){return function(){var e=this,n=arguments;return new Promise((function(r,a){var i=t.apply(e,n);function s(t){o(i,r,a,s,c,"next",t)}function c(t){o(i,r,a,s,c,"throw",t)}s(void 0)}))}}System.register(["./skeletion-index-modal-legacy-b4bae6f1.js","./icon-teacher-default-legacy-c2566245.js","./icon-check-active-legacy-21402234.js","./icon-warn-legacy-d356a59b.js","./index-legacy-46c61774.js","./index-legacy-ec7102a8.js","./index-legacy-a1ad497b.js","./index-legacy-3dfb4deb.js","./constant-legacy-90a50c7d.js","./drop-down-modal-legacy-0cc1e0d3.js","./index-legacy-17195bfb.js","./index-legacy-2eeb2bbc.js","./index-legacy-154aa02e.js","./index-legacy-ece741fa.js","./use-tab-status-legacy-3a045fb8.js"],(function(t,e){"use strict";var r,o,s,c,u,l,f,d,h,p,v,g,m,y,w,S,b,x,I,L,O,j,E,T,A,N,k,C,P,G;return{setters:[function(t){r=t.s,o=t.S},function(t){s=t.i},function(t){c=t.i},function(t){u=t.i},function(t){l=t.d,f=t.O,d=t.o,h=t.w,p=t.g,v=t.i,g=t.R,m=t.h,y=t.S,w=t.I,S=t.T,b=t.W,x=t.a,I=t.N},function(t){L=t.S,O=t.a,j=t.b},function(t){E=t.C},function(t){T=t.C},function(t){A=t.c,N=t.t},function(t){k=t.D},function(t){C=t.I},function(t){P=t.D,G=t.a},null,null,null],execute:function(){var e=l({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:function(){return[1,2]}}},setup:function(t,e){var n=e.slots,a=f({loading:!1});return d((function(){a.loading=t.show})),h((function(){return t.show}),(function(){a.loading=t.show})),function(){return p(L,{loading:a.loading,style:"flex-wrap: wrap"},{template:function(){return p("div",{style:{height:"calc(100vh - var(--header-height))",overflow:"hidden",width:"100%"}},[t.showCount.map((function(){return p(E,{inset:!0,class:r.detailCellGroup},{default:function(){return[p(T,{center:!0,border:!1,class:[r.className,r.skeletionTitle]},{title:function(){return p(O,{rowWidth:"50%"},null)},value:function(){return p(O,null,null)}}),p(T,{center:!0},{default:function(){return[p("div",{class:r.detailGroup},[p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p(O,{rowWidth:"40%"},null),p(j,{class:r.img},null)]),p("div",{class:r.sign},[p(O,{rowWidth:"40%"},null),p(O,{rowWidth:"40%"},null)])]),p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p(O,{rowWidth:"40%"},null),p(j,{class:r.img},null)]),p("div",{class:r.sign},[p(O,{rowWidth:"40%"},null),p(O,{rowWidth:"40%"},null)])]),p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p(O,{rowWidth:"40%"},null),p(j,{class:r.img},null)]),p("div",{class:r.sign},[p(O,{rowWidth:"40%"},null),p(O,{rowWidth:"40%"},null)])]),p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p(O,{rowWidth:"40%"},null),p(j,{class:r.img},null)]),p("div",{class:r.sign},[p(O,{rowWidth:"40%"},null),p(O,{rowWidth:"40%"},null)])])])]}})]}})}))])},default:function(){return n.default&&n.default()}})}}});t("default",l({name:"teacher-attendance-detail",setup:function(){var t=v(),l=b(),h=I(),L=f({teacherId:l.query.teacherId,classGroupId:l.query.classGroupId,listState:{loading:!0,loadingList:!0,dataShow:!0,refreshing:!1},classColumns:[{text:"全部状态",value:""},{text:"正常",value:"1"},{text:"异常",value:"0"}],typeColumns:[{text:"全部类型",value:""}],params:{courseType:"",signStatus:""},teacherInfo:{},list:[]}),O=function(t){t.value&&t.value.toggle()},j=function(t){if("orchestra"===t){var e="";return L.typeColumns.forEach((function(t){L.params.courseType===t.value&&(e=t.text)})),e}},_=function(){var t=i(a().mark((function t(){var e,n,r;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x.post("/api-web/schoolTeacherAttendance/queryTeacherAttendance",{data:{teacherId:L.teacherId,classGroupId:L.classGroupId}});case 3:e=t.sent,n=e.data,r=n||[],L.teacherInfo=r[0]||{},t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:L.listState.loading=!1;case 12:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),W=function(){var t=i(a().mark((function t(){var e,r,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,x.post("/api-web/schoolTeacherAttendance/getClassTeacherAttendance",{data:n(n({},L.params),{},{teacherId:L.teacherId,classGroupId:L.classGroupId})});case 3:e=t.sent,r=e.data,o=r||[],L.list=o||[],t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:return t.prev=11,L.listState.dataShow=L.list.length>0,L.listState.refreshing=!1,L.listState.loadingList=!1,t.finish(11);case 16:case"end":return t.stop()}}),t,null,[[0,9,11,16]])})));return function(){return t.apply(this,arguments)}}(),D=function(t){h.push({path:"/amap-gps",query:{sLngLat:t.schoolLongitudeLatitude,inLngLat:t.signInLongitudeLatitude,outLngLat:t.signOutLongitudeLatitude}})};return d((function(){for(var t in A)if(Object.prototype.hasOwnProperty.call(A,t)){var e=A[t];L.typeColumns.push({text:e,value:t})}_(),W()})),function(){return p("div",{class:r.teacherAttendanceDetail},[p(g,null,null),p(o,{show:L.listState.loading,"onUpdate:show":function(t){return L.listState.loading=t},isLink:!1,showCount:[1]},{default:function(){return[p("div",{class:r.cellGroup},[p(T,{center:!0,clickable:!1,class:r.cell},{icon:function(){return p(C,{src:L.teacherInfo.teacherAvatar||s,fit:"cover",class:r.iconTeacher},null)},title:function(){return p("div",{class:r.username},[p("p",{class:r.name},[L.teacherInfo.teacherName]),p("p",{class:r.class},[L.teacherInfo.classGroupName])])},value:function(){return p("div",{class:r.attendance},[p("div",{class:[r.attendanceItem,r.weekAttendance]},[p("p",{class:[r.value,"ERR"===L.teacherInfo.teacherAttendanceStatus?r.error:"","NORMAL"===L.teacherInfo.teacherAttendanceStatus?r.success:""]},[N[L.teacherInfo.teacherAttendanceStatus]||"--"]),p("p",{class:r.title},[m("本周考勤")])]),p("div",{class:[r.attendanceItem,r.classAttendance]},[p("p",{class:[r.value,L.teacherInfo.errCourseNum>0?r.error:r.success]},[L.teacherInfo.errCourseNum,p("span",null,[m("课时")])]),p("p",{class:r.title},[m("学期异常")])])])}})])]}}),p(P,null,{default:function(){return[p(G,{modelValue:L.params.signStatus,"onUpdate:modelValue":function(t){return L.params.signStatus=t},options:L.classColumns,onChange:function(){L.listState.dataShow=!0,L.list=[],W()}},null),p(G,{ref:t,title:j("orchestra")},{default:function(){return[p(k,{selectValues:L.params.courseType,columns:L.typeColumns,open:t.value.state.showPopup,onDropDownClose:function(){return O(t)},onDropDownConfirm:function(e){L.params.courseType=e[0],O(t),L.listState.dataShow=!0,L.list=[],W()}},null)]}})]}}),p(e,{show:L.listState.loadingList,"onUpdate:show":function(t){return L.listState.loadingList=t}},{default:function(){return[L.listState.dataShow?L.list.map((function(t){return p(E,{inset:!0,class:r.detailCellGroup},{default:function(){return[p(T,{center:!0,border:!1,class:r.className},{title:function(){return p("div",{class:r.class},[A[t.courseScheduleType]])},value:function(){return p("div",{class:r.timer},[t.classDate])}}),p(T,{center:!0},{default:function(){return[p("div",{class:r.detailGroup},[p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p("span",{class:[r.statusName,t.signInStatus?"":r.error]},[t.signInStatus?"正常":"异常"]),p("img",{src:t.signInStatus?c:u,class:r.img},null)]),p("div",{class:r.sign},[p("span",{class:r.signTime},[m("签到时间")," ",t.signInTime?y(t.signInTime).format("HH:mm:ss"):"--"])])]),"OFFLINE"===t.teachMode?p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p("span",{class:[r.statusName,t.signInAddressStatus?"":r.error]},[t.signInAddressStatus?"正常":"异常"]),p("img",{src:t.signInAddressStatus?c:u,class:r.img},null)]),p("div",{class:r.sign},[p("span",{class:r.signTime},[m("签到地点")]),p("span",{class:r.locate,onClick:function(){return D(t)}},[m("查看定位"),p(w,{name:"arrow",class:r.iconArrow},null)])])]):"",p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p("span",{class:[r.statusName,t.signOutStatus?"":r.error]},[t.signOutStatus?"正常":"异常"]),p("img",{src:t.signOutStatus?c:u,class:r.img},null)]),p("div",{class:r.sign},[p("span",{class:r.signTime},[m("签退时间")," ",t.signOutTime?y(t.signOutTime).format("HH:mm:ss"):"--"])])]),"OFFLINE"===t.teachMode?p("div",{class:r.detailItem},[p("div",{class:r.detailStatus},[p("span",{class:[r.statusName,t.signOutAddressStatus?"":r.error]},[t.signOutAddressStatus?"正常":"异常"]),p("img",{src:t.signOutAddressStatus?c:u,class:r.img},null)]),p("div",{class:r.sign},[p("span",{class:r.signTime},[m("签退地点")]),p("span",{class:r.locate,onClick:function(){return D(t)}},[m("查看定位"),p(w,{name:"arrow",class:r.iconArrow},null)])])]):""])]}})]}})})):p(S,{style:{minHeight:"calc(60vh)"},description:"暂无数据"},null)]}})])}}}))}}}))}();
|