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(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e=function(){return r};var r={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},c=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(N){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof d?e:d,i=Object.create(o.prototype),c=new P(n||[]);return a(i,"_invoke",{value:S(t,r,c)}),i}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(N){return{type:"throw",arg:N}}}r.wrap=f;var p={};function d(){}function y(){}function v(){}var g={};l(g,c,(function(){return this}));var m=Object.getPrototypeOf,w=m&&m(m(k([])));w&&w!==n&&o.call(w,c)&&(g=w);var b=v.prototype=d.prototype=Object.create(g);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function j(e,r){function n(a,i,c,u){var s=h(e[a],e,i);if("throw"!==s.type){var l=s.arg,f=l.value;return f&&"object"==t(f)&&o.call(f,"__await")?r.resolve(f.__await).then((function(t){n("next",t,c,u)}),(function(t){n("throw",t,c,u)})):r.resolve(f).then((function(t){l.value=t,c(l)}),(function(t){return n("throw",t,c,u)}))}u(s.arg)}var i;a(this,"_invoke",{value:function(t,e){function o(){return new r((function(r,o){n(t,e,r,o)}))}return i=i?i.then(o,o):o()}})}function S(t,e,r){var n="suspendedStart";return function(o,a){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw a;return C()}for(r.method=o,r.arg=a;;){var i=r.delegate;if(i){var c=O(i,r);if(c){if(c===p)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var u=h(t,e,r);if("normal"===u.type){if(n=r.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function O(t,e){var r=e.method,n=t.iterator[r];if(void 0===n)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,O(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),p;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,p;var a=o.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,p):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,p)}function L(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 E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function P(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function k(t){if(t){var e=t[c];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,n=function e(){for(;++r<t.length;)if(o.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return n.next=n}}return{next:C}}function C(){return{value:void 0,done:!0}}return y.prototype=v,a(b,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=l(v,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===y||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},r.awrap=function(t){return{__await:t}},x(j.prototype),l(j.prototype,u,(function(){return this})),r.AsyncIterator=j,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new j(f(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(b),l(b,s,"Generator"),l(b,c,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),r.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},r.values=k,P.prototype={constructor:P,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(E),!t)for(var e in this)"t"===e.charAt(0)&&o.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 r(r,n){return i.type="throw",i.arg=t,e.next=r,n&&(e.method="next",e.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var a=this.tryEntries[n],i=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var a=n;break}}a&&("break"===t||"continue"===t)&&a.tryLoc<=e&&e<=a.finallyLoc&&(a=null);var i=a?a.completion:{};return i.type=t,i.arg=e,a?(this.method="next",this.next=a.finallyLoc,p):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),p},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),E(r),p}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;E(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),p}},r}function r(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function n(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?r(Object(n),!0).forEach((function(e){o(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function o(e,r,n){return(r=function(e){var r=function(e,r){if("object"!==t(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"===t(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(t,e,r,n,o,a,i){try{var c=t[a](i),u=c.value}catch(s){return void r(s)}c.done?e(u):Promise.resolve(u).then(n,o)}System.register(["./index-legacy-96b0057e.js","./index-legacy-9f3c5485.js","./index-legacy-ea9f9ec0.js","./skeletion-index-modal-legacy-7deb6be3.js","./drop-down-modal-legacy-d3a23328.js","./icon-teacher-default-legacy-c2566245.js","./index-legacy-5656b74c.js","./constant-legacy-90a50c7d.js","./index-legacy-34e29714.js","./index-legacy-9220d689.js","./index-legacy-faa51e0a.js","./index-legacy-458066ac.js","./index-legacy-2974c198.js","./index-legacy-58a50f9a.js","./index-legacy-855e67ff.js","./use-tab-status-legacy-745fa803.js"],(function(t,r){"use strict";var o,i,c,u,s,l,f,h,p,d,y,v,g,m,w,b,x,j,S,O,L,E,P;return{setters:[function(t){o=t.d,i=t.i,c=t.O,u=t.o,s=t.g,l=t.R,f=t.h,h=t.T,p=t.N,d=t.a},function(t){y=t.M},function(t){v=t.M},function(t){g=t.S,m=t.s},function(t){w=t.D},function(t){b=t.i},function(t){x=t.M},function(t){j=t.t,S=t.o},function(t){O=t.D,L=t.a},function(t){E=t.C},function(t){P=t.I},null,null,null,null,null],execute:function(){t("default",o({name:"teacher-attendance",setup:function(){var t=i(),r=i(),o=p(),k=c({listState:{loading:!0,dataShow:!0,refreshing:!1},statusColumns:[{text:"全部状态",value:""}],classColumns:[{text:"全部班级",value:""}],isClick:!1,params:{teacherAttendanceStatus:"",classType:"",search:""},list:[]}),C=function(t){t.value&&t.value.toggle()},N=function(t){if("orchestra"===t){var e="";return k.classColumns.forEach((function(t){k.params.classType===t.value&&(e=t.text)})),e}},A=function(){var t,r=(t=e().mark((function t(){var r,o,a;return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!k.isClick){t.next=3;break}return t.abrupt("return");case 3:return k.isClick=!0,t.next=6,d.post("/api-web/schoolTeacherAttendance/queryTeacherAttendance",{data:n({},k.params)});case 6:if(r=t.sent,o=r.data,a=o||[],!(k.list.length>0&&1===a.pageNo)){t.next=11;break}return t.abrupt("return");case 11:k.list=a||[],t.next=16;break;case 14:t.prev=14,t.t0=t.catch(0);case 16:return t.prev=16,k.listState.dataShow=k.list.length>0,k.listState.refreshing=!1,k.listState.loading=!1,k.isClick=!1,t.finish(16);case 22:case"end":return t.stop()}}),t,null,[[0,14,16,22]])})),function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function c(t){a(i,n,o,c,u,"next",t)}function u(t){a(i,n,o,c,u,"throw",t)}c(void 0)}))});return function(){return r.apply(this,arguments)}}();return u((function(){for(var t in j)if(Object.prototype.hasOwnProperty.call(j,t)){var e=j[t];k.statusColumns.push({text:e,value:t})}for(var r in S)if(Object.prototype.hasOwnProperty.call(S,r)){var n=S[r];k.classColumns.push({text:n,value:r})}A()})),function(){return s("div",{class:m.teacherAttendance},[s(v,{position:"top"},{default:function(){return[s(l,null,null),s(y,{placeholder:"请输入老师姓名",onSearch:function(t){k.params.search=t,k.listState.dataShow=!0,k.list=[],A()}},null),s(O,null,{default:function(){return[s(L,{ref:t,modelValue:k.params.teacherAttendanceStatus,"onUpdate:modelValue":function(t){return k.params.teacherAttendanceStatus=t},options:k.statusColumns,onChange:function(){k.listState.dataShow=!0,k.list=[],A()}},null),s(L,{ref:r,title:N("orchestra")},{default:function(){return[s(w,{selectValues:k.params.classType,columns:k.classColumns,open:r.value.state.showPopup,onDropDownClose:function(){return C(r)},onDropDownConfirm:function(t){k.params.classType=t[0],C(r),k.listState.dataShow=!0,k.list=[],A()}},null)]}})]}})]}}),s(g,{show:k.listState.loading,"onUpdate:show":function(t){return k.listState.loading=t}},{default:function(){return[s(x,{modelValue:k.listState.refreshing,"onUpdate:modelValue":function(t){return k.listState.refreshing=t},onRefresh:function(){return A()},style:{minHeight:"calc(100vh - var(--header-height))"}},{default:function(){return[s("div",{class:m.cellGroup},[k.listState.dataShow?k.list.map((function(t){return s(E,{center:!0,isLink:!0,clickable:!1,class:m.cell,onClick:function(){o.push({path:"/teacher-attendance-detail",query:{teacherId:t.teacherId,classGroupId:t.classGroupId}})}},{icon:function(){return s(P,{src:t.teacherAvatar||b,fit:"cover",class:m.iconTeacher},null)},title:function(){return s("div",{class:m.username},[s("p",{class:m.name},[t.teacherName]),s("p",{class:m.class},[t.classGroupName])])},value:function(){return s("div",{class:m.attendance},[s("div",{class:[m.attendanceItem,m.weekAttendance]},[s("p",{class:[m.value,"ERR"===t.teacherAttendanceStatus?m.error:"","NORMAL"===t.teacherAttendanceStatus?m.success:""]},[j[t.teacherAttendanceStatus]||"--"]),s("p",{class:m.title},[f("本周考勤")])]),s("div",{class:[m.attendanceItem,m.classAttendance]},[s("p",{class:[m.value,t.errCourseNum>0?m.error:m.success]},[t.errCourseNum,s("span",null,[f("课时")])]),s("p",{class:m.title},[f("学期异常")])])])}})})):s(h,{style:{minHeight:"calc(100vh - var(--header-height))"},description:"暂无老师考勤"},null)])]}})]}})])}}}))}}}))}();
|