1 |
- !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */t=function(){return n};var n={},r=Object.prototype,o=r.hasOwnProperty,i=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(I){s=function(e,t,n){return e[t]=n}}function m(e,t,n,r){var o=t&&t.prototype instanceof h?t:h,a=Object.create(o.prototype),l=new k(r||[]);return i(a,"_invoke",{value:L(e,n,l)}),a}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(I){return{type:"throw",arg:I}}}n.wrap=m;var d={};function h(){}function p(){}function _(){}var g={};s(g,l,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(T([])));w&&w!==r&&o.call(w,l)&&(g=w);var y=_.prototype=h.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,n){function r(i,a,l,c){var u=f(t[i],t,a);if("throw"!==u.type){var s=u.arg,m=s.value;return m&&"object"==e(m)&&o.call(m,"__await")?n.resolve(m.__await).then((function(e){r("next",e,l,c)}),(function(e){r("throw",e,l,c)})):n.resolve(m).then((function(e){s.value=e,l(s)}),(function(e){return r("throw",e,l,c)}))}c(u.arg)}var a;i(this,"_invoke",{value:function(e,t){function o(){return new n((function(n,o){r(e,t,n,o)}))}return a=a?a.then(o,o):o()}})}function L(e,t,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return P()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var l=S(a,n);if(l){if(l===d)continue;return l}}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=f(e,t,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function S(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,S(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=f(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function j(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function E(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function T(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=_,i(y,"constructor",{value:_,configurable:!0}),i(_,"constructor",{value:p,configurable:!0}),p.displayName=s(_,u,"GeneratorFunction"),n.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,s(e,u,"GeneratorFunction")),e.prototype=Object.create(y),e},n.awrap=function(e){return{__await:e}},x(b.prototype),s(b.prototype,c,(function(){return this})),n.AsyncIterator=b,n.async=function(e,t,r,o,i){void 0===i&&(i=Promise);var a=new b(m(e,t,r,o),i);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(y),s(y,u,"Generator"),s(y,l,(function(){return this})),s(y,"toString",(function(){return"[object Generator]"})),n.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},n.values=T,k.prototype={constructor:k,reset:function(e){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),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var l=o.call(i,"catchLoc"),c=o.call(i,"finallyLoc");if(l&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),E(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;E(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:T(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},n}function n(e,t,n,r,o,i,a){try{var l=e[i](a),c=l.value}catch(u){return void n(u)}l.done?t(c):Promise.resolve(c).then(r,o)}System.register(["./index-legacy-46c61774.js","./index-legacy-2ec6fbe6.js","./index-legacy-c6062467.js","./icon-timer-legacy-d80c79f8.js","./icon-student-default-legacy-1a5ed844.js","./index-legacy-3dfb4deb.js","./index-legacy-17195bfb.js","./index-legacy-ec7102a8.js","./index-legacy-6fa9ce12.js","./api-legacy-d0b99094.js","./index-legacy-ece741fa.js","./index-legacy-ee4ffa3d.js","./index-legacy-2eeb2bbc.js","./index-legacy-ce25a501.js","./use-tab-status-legacy-3a045fb8.js"],(function(e,r){"use strict";var o,i,a,l,c,u,s,m,f,d,h,p,_,g,v,w,y,x,b,L,S,j,E,k,T,P,I=document.createElement("style");return I.textContent="._schedule-manage_1war5_1 .van-tabs{position:fixed;left:0;right:0;top:var(--header-height)}._schedule-manage_1war5_1 .van-swipe-item{height:calc(100vh - var(--header-height) - var(--van-tabs-line-height));overflow-y:auto}._schedule-manage_1war5_1 .van-tab__panel{position:relative;min-height:100%}._schedule-manage_1war5_1 .van-tab{z-index:1}._schedule-manage_1war5_1 .van-tabs__line{bottom:.69333rem;width:1.06667rem;height:.16rem;background:linear-gradient(250deg,rgba(45,199,170,.22) 0%,#2DC7AA 100%);border-radius:0}._list_1war5_25{padding:.32rem;min-height:calc(100vh - var(--header-height) - var(--van-tabs-line-height) - 1.6rem)}._list_1war5_25._todo_1war5_29{height:calc(100vh - var(--header-height) - var(--van-tabs-line-height))}._list_1war5_25::-webkit-scrollbar{display:none}._list_1war5_25 .van-pull-refresh,._list_1war5_25 .van-pull-refresh__track{min-height:100%}._listHide_1war5_39{padding:0;overflow:hidden}._listItem_1war5_43{border-radius:.26667rem;background-color:#fff;overflow:hidden;margin-bottom:.32rem}._listItem_1war5_43 ._itemTop_1war5_49{display:flex;align-items:center;padding:.34667rem .32rem;border-bottom:.02667rem solid #F2F2F2;font-size:.37333rem}._listItem_1war5_43 ._itemTop_1war5_49 ._icon_1war5_56{display:block;width:.45333rem;height:.45333rem}._listItem_1war5_43 ._itemTop_1war5_49 ._timeTitle_1war5_61{margin-left:.10667rem;color:#333}._listItem_1war5_43 ._itemTop_1war5_49 ._time_1war5_61{color:#777}._listItem_1war5_43 ._itemTop_1war5_49 ._timeBtn_1war5_68{margin-left:auto;font-weight:600}._listItem_1war5_43 ._itemTop_1war5_49 ._timeBtn_1war5_68._success_1war5_72{color:var(--van-primary-color)}._listItem_1war5_43 ._itemTop_1war5_49 ._timeBtn_1war5_68._error_1war5_75{color:#ff5a56}._listItem_1war5_43 ._iconTeacher_1war5_78{width:1.28rem;height:1.28rem;margin-right:.21333rem}._listItem_1war5_43 .van-cell{padding:.37333rem .32rem}._listItem_1war5_43 .van-cell__title span{font-weight:700}._listItem_1war5_43 .van-cell__value{color:#333}._menubox_1war5_92{display:flex;align-items:center;background-color:#fff;height:1.6rem;z-index:1}._menubox_1war5_92 .van-search{flex:1;padding-left:0}._menubox_1war5_92 .van-dropdown-menu{min-width:2.66667rem}._menubox_1war5_92 .van-dropdown-menu__title{font-size:.37333rem;padding:0 .66667rem 0 .32rem}._menubox_1war5_92 .van-dropdown-menu__title:after{right:.26667rem}.van-dropdown-item .van-dropdown-item__content .van-dropdown-item__option{height:1.33333rem!important}.van-dropdown-item .van-dropdown-item__content .van-dropdown-item__option .van-cell__title{font-size:.42667rem}.van-dropdown-item .van-dropdown-item__content .van-dropdown-item__option--active{color:var(--van-primary-color)}._optionModel_1war5_122 .van-popup--top{top:-1Px}\n",document.head.appendChild(I),{setters:[function(e){o=e.d,i=e.J,a=e.g,l=e.h,c=e.O,u=e.o,s=e.R,m=e.F,f=e.T,d=e.N},function(e){h=e.M},function(e){p=e.M},function(e){_=e.i},function(e){g=e.i},function(e){v=e.C},function(e){w=e.I},function(e){y=e.a,x=e.b,b=e.S},function(e){L=e.M},function(e){S=e.m},function(e){j=e.T,E=e.a},function(e){k=e.L},function(e){T=e.D,P=e.a},null,null],execute:function(){var r="_schedule-manage_1war5_1",I="_list_1war5_25",O="_todo_1war5_29",F="_listHide_1war5_39",A="_listItem_1war5_43",R="_itemTop_1war5_49",G="_icon_1war5_56",N="_timeTitle_1war5_61",C="_time_1war5_61",z="_timeBtn_1war5_68",V="_success_1war5_72",B="_error_1war5_75",M="_iconTeacher_1war5_78",H="_menubox_1war5_92",J="_optionModel_1war5_122",U=o({name:"schedule-manage-list-item",props:{status:{type:String,default:""},item:{type:Object,default:function(){return{}}},isLink:{type:Boolean,default:!1}},emits:["goto"],setup:function(e,t){var n=t.emit,r=i(e),o=r.item,c=r.isLink;return function(){return a("div",{class:A},[a("div",{class:R},[a("img",{class:G,src:_},null),a("span",{class:N},[l("审批时间:")]),a("span",{class:C},[o.value.createTime]),"success"===e.status&&a("div",{class:[z,V]},[l("已通过")]),"error"===e.status&&a("div",{class:[z,B]},[l("未通过")])]),a(v,{center:!0,title:o.value.studentName,label:o.value.subjectName,value:"退团申请",isLink:c.value,onClick:function(){return n("goto")}},{icon:function(){return a(w,{src:o.value.studentAvatar||g,class:M,fit:"cover",round:!0},null)}})])}}}),Q=o({name:"schedule-manage-list-item",props:{status:{type:String,default:""}},emits:["goto"],setup:function(e,t){var n=t.emit;return function(){return a("div",{class:A},[a("div",{class:R},[a(y,null,null)]),a(v,{center:!0,isLink:!0,onClick:function(){return n("goto")}},{icon:function(){return a(x,{avatarSize:"1.28rem"},null)},title:function(){return a(y,{rowWidth:"50%"},null)},label:function(){return a(y,{rowWidth:"30%"},null)},value:function(){return a(y,null,null)}})])}}});e("default",o({name:"schedule-manage",setup:function(){var e="schedule-manage-tab-name",o=function(t){if("set"!==t)return sessionStorage.getItem(e)||"";sessionStorage.setItem(e,l.tabActive)},i=d(),l=c({tabActive:o("get"),examineLoading:!0,refreshLoading:!1,examineFinish:!1,examineList:[],examinePage:{page:1,rows:20},examineSkelet:!0,completeList:[],completePage:{page:1,rows:20},completeResh:!1,completeLoading:!1,completeSkelet:!0,completeFinish:!1,completeActive:"",completeColumns:[{text:"全部活动",value:""}],options:[{text:"全部状态",value:""},{text:"已通过",value:"PASS"},{text:"未通过",value:"REJECT"}],optionTitle:"全部状态",activeOption:"",search:""}),_=function(){var e,r=(e=t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("请求"),l.examineLoading=!0,S({page:l.examinePage.page,rows:l.examinePage.rows,status:"ING"}).then((function(e){var t;l.refreshLoading&&(l.examineList=[]);var n=Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.rows)?e.data.rows:[];l.examineList=l.examineList.concat(n),(!n.length||n.length<l.examinePage.rows)&&(l.examineFinish=!0)})).catch((function(){l.examineFinish=!0})).finally((function(){setTimeout((function(){l.examineLoading=!1,l.refreshLoading=!1,l.examineSkelet=!1}),500)}));case 3:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function l(e){n(a,o,i,l,c,"next",e)}function c(e){n(a,o,i,l,c,"throw",e)}l(void 0)}))});return function(){return r.apply(this,arguments)}}(),g=function(){l.completeLoading||(console.log("请求",l.completeLoading,l.completeResh),l.completeLoading=!0,S({page:l.completePage.page,rows:l.completePage.rows,search:l.search,status:l.activeOption}).then((function(e){var t;l.completeResh&&(l.completeList=[]);var n=Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.rows)?e.data.rows:[];l.completeList=l.completeList.concat(n),!n.length||n.length<l.completePage.rows?l.completeFinish=!0:l.completeFinish=!1})).catch((function(){l.completeFinish=!0})).finally((function(){setTimeout((function(){l.completeLoading=!1,l.completeResh=!1,l.completeSkelet=!1}),500)})))};u((function(){_(),g()}));var v=function(e){l.optionTitle="PASS"===l.activeOption?"已通过":"REJECT"===l.activeOption?"未通过":"全部状态",l.examinePage.page=1,l.completeResh=!0,g()},w=function(e){o("set"),i.push({path:"schedule-manage-detail",query:{musicGroupQuitId:e.musicGroupQuitId}})};return function(){return a("div",{class:r},[a(h,{class:"schedule-manage-top",position:"top"},{default:function(){return[a(s,null,null)]}}),a(j,{swipeable:!0,animated:!0,active:l.tabActive,"onUpdate:active":function(e){return l.tabActive=e}},{default:function(){return[a(E,{name:"todo",title:"待审批"},{default:function(){return[a(p,{modelValue:l.refreshLoading,"onUpdate:modelValue":function(e){return l.refreshLoading=e},onRefresh:function(){l.examinePage.page=1,l.examineFinish=!1,_()}},{default:function(){return[a(k,{loading:l.examineLoading,finished:l.examineFinish,class:[I,O],onLoad:function(){l.examinePage.page++,_()}},{default:function(){return[l.examineSkelet?a("div",{class:[I,F]},[a(b,{loading:!0},{template:function(){return a("div",{style:{width:"100%"}},[new Array(10).fill(1).map((function(e){return a(Q,null,null)}))])}})]):a(m,null,[l.examineList.map((function(e){return a(U,{isLink:!0,item:e,onGoto:function(){return w(e)}},null)})),!l.examineList.length&&a(f,{description:"暂无数据",style:{minHeight:"100%"}},null)])]}})]}})]}}),a(E,{name:"complete",title:"已完成"},{default:function(){return[a("div",{class:H},[a(T,null,{default:function(){return[a(P,{teleport:"body",title:l.optionTitle,modelValue:l.activeOption,"onUpdate:modelValue":function(e){return l.activeOption=e},options:l.options,onChange:v,class:J},null)]}}),a(L,{placeholder:"请输入学员名称",disabled:l.completeLoading,onSearch:function(e){l.search=e,l.completePage.page=1,l.completeResh=!0,g()}},null)]),a(p,{modelValue:l.completeResh,"onUpdate:modelValue":function(e){return l.completeResh=e},onRefresh:function(){console.log("下拉"),l.completePage.page=1,l.completeFinish=!1,g()}},{default:function(){return[a(k,{loading:l.completeLoading,finished:l.completeFinish,class:I,onLoad:function(){l.completePage.page++,console.log("触底",l.completeResh),g()}},{default:function(){return[l.completeSkelet?a("div",{class:[I,F]},[a(b,{loading:!0},{template:function(){return a("div",{style:{width:"100%"}},[new Array(4).fill(1).map((function(e){return a(Q,null,null)}))])}})]):a(m,null,[l.completeList.map((function(e){return a(U,{item:e,isLink:!0,onGoto:function(){return w(e)},status:"PASS"===e.status?"success":"REJECT"===e.status?"error":""},null)})),!l.completeList.length&&a(f,{description:"暂无数据",style:{minHeight:"100%"}},null)])]}})]}})]}})]}})])}}}))}}}))}();
|