| 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 n};var n={},r=Object.prototype,i=r.hasOwnProperty,o=Object.defineProperty||function(t,e,n){t[e]=n.value},a="function"==typeof Symbol?Symbol:{},l=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",u=a.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(I){s=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,a=Object.create(i.prototype),l=new E(r||[]);return o(a,"_invoke",{value:L(t,n,l)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(I){return{type:"throw",arg:I}}}n.wrap=d;var m={};function h(){}function p(){}function v(){}var _={};s(_,l,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==r&&i.call(y,l)&&(_=y);var b=v.prototype=h.prototype=Object.create(_);function x(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(e,n){function r(o,a,l,c){var u=f(e[o],e,a);if("throw"!==u.type){var s=u.arg,d=s.value;return d&&"object"==t(d)&&i.call(d,"__await")?n.resolve(d.__await).then((function(t){r("next",t,l,c)}),(function(t){r("throw",t,l,c)})):n.resolve(d).then((function(t){s.value=t,l(s)}),(function(t){return r("throw",t,l,c)}))}c(u.arg)}var a;o(this,"_invoke",{value:function(t,e){function i(){return new n((function(n,i){r(t,e,n,i)}))}return a=a?a.then(i,i):i()}})}function L(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return P()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var l=T(a,n);if(l){if(l===m)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(t,e,n);if("normal"===c.type){if(r=n.done?"completed":"suspendedYield",c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r="completed",n.method="throw",n.arg=c.arg)}}}function T(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,T(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=f(r,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,m;var o=i.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,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function S(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(S,this),this.reset(!0)}function k(t){if(t){var e=t[l];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(i.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return p.prototype=v,o(b,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=s(v,u,"GeneratorFunction"),n.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},n.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,s(t,u,"GeneratorFunction")),t.prototype=Object.create(b),t},n.awrap=function(t){return{__await:t}},x(w.prototype),s(w.prototype,c,(function(){return this})),n.AsyncIterator=w,n.async=function(t,e,r,i,o){void 0===o&&(o=Promise);var a=new w(d(t,e,r,i),o);return n.isGeneratorFunction(e)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},x(b),s(b,u,"Generator"),s(b,l,(function(){return this})),s(b,"toString",(function(){return"[object Generator]"})),n.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}},n.values=k,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)&&i.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 a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(l&&c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(l){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 r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},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),m},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),m}},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 i=r.arg;j(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),m}},n}function n(t,e,n,r,i,o,a){try{var l=t[o](a),c=l.value}catch(u){return void n(u)}l.done?e(c):Promise.resolve(c).then(r,i)}System.register(["./index-legacy-946591b8.js","./index-legacy-52192be3.js","./index-legacy-68de23ac.js","./icon-timer-legacy-d80c79f8.js","./icon-teacher-default-legacy-c2566245.js","./index-legacy-4a1b6fd0.js","./index-legacy-a3a15f58.js","./index-legacy-52797120.js","./index-legacy-f4136782.js","./api-legacy-20032889.js","./index-legacy-e1acbf39.js","./index-legacy-a529d92c.js","./index-legacy-61213d30.js","./index-legacy-d00c21a7.js","./use-tab-status-legacy-68b0ff01.js"],(function(t,r){"use strict";var i,o,a,l,c,u,s,d,f,m,h,p,v,_,g,y,b,x,w,L,T,S,j,E,k,P=document.createElement("style");return P.textContent="._schedule-manage_vrdtb_1 .van-tabs{position:fixed;left:0;right:0;top:var(--header-height)}._schedule-manage_vrdtb_1 .van-tabs__content{height:calc(100vh - var(--header-height) - var(--van-tabs-line-height))}._schedule-manage_vrdtb_1 .van-tab__panel{height:100%;display:flex;flex-direction:column}._schedule-manage_vrdtb_1 .van-pull-refresh{height:100%}._schedule-manage_vrdtb_1 .van-tabs__line{bottom:.69333rem;width:1.2rem;height:.16rem;background:linear-gradient(250deg,rgba(45,199,170,.22) 0%,#2DC7AA 100%);z-index:0}._list_vrdtb_25{padding:.32rem;flex:1;overflow-y:auto}._list_vrdtb_25::-webkit-scrollbar{display:none}._listHide_vrdtb_33{padding:0;overflow:hidden}._listItem_vrdtb_37{border-radius:.26667rem;background-color:#fff;overflow:hidden;margin-bottom:.32rem}._listItem_vrdtb_37 ._itemTop_vrdtb_43{display:flex;align-items:center;padding:.34667rem .32rem;border-bottom:.02667rem solid #F2F2F2;font-size:.37333rem}._listItem_vrdtb_37 ._itemTop_vrdtb_43 ._icon_vrdtb_50{display:block;width:.45333rem;height:.45333rem}._listItem_vrdtb_37 ._itemTop_vrdtb_43 ._timeTitle_vrdtb_55{margin-left:.10667rem;color:var(--text-color)}._listItem_vrdtb_37 ._itemTop_vrdtb_43 ._time_vrdtb_55{color:var(--text-color-2)}._listItem_vrdtb_37 ._itemTop_vrdtb_43 ._timeBtn_vrdtb_62{margin-left:auto;font-weight:600}._listItem_vrdtb_37 ._itemTop_vrdtb_43 ._timeBtn_vrdtb_62._success_vrdtb_66{color:var(--van-primary-color)}._listItem_vrdtb_37 ._iconTeacher_vrdtb_69{width:1.28rem;height:1.28rem;margin-right:.21333rem}._listItem_vrdtb_37 .van-cell{padding:.37333rem .32rem}._listItem_vrdtb_37 .van-cell__title span{font-weight:700}._listItem_vrdtb_37 .van-cell__value{color:var(--text-color)}._menubox_vrdtb_83{display:flex;align-items:center;background-color:#fff}._menubox_vrdtb_83 .van-search{flex:1}._menubox_vrdtb_83 .van-dropdown-menu{min-width:2.66667rem}._menubox_vrdtb_83 .van-dropdown-menu__title{font-size:.37333rem;padding:0 .66667rem 0 .32rem}._menubox_vrdtb_83 .van-dropdown-menu__title:after{right:.26667rem}.van-dropdown-item .van-dropdown-item__content .van-dropdown-item__option .van-cell__title{font-size:.42667rem;color:var(--text-color)}.van-dropdown-item .van-dropdown-item__content .van-dropdown-item__option--active{color:var(--van-primary-color)}\n",document.head.appendChild(P),{setters:[function(t){i=t.d,o=t.J,a=t.g,l=t.h,c=t.O,u=t.o,s=t.R,d=t.S,f=t.N},function(t){m=t.M},function(t){h=t.M},function(t){p=t.i},function(t){v=t.i},function(t){_=t.C},function(t){g=t.I},function(t){y=t.a,b=t.b,x=t.S},function(t){w=t.M},function(t){L=t.m},function(t){T=t.T,S=t.a},function(t){j=t.L},function(t){E=t.D,k=t.a},null,null],execute:function(){var r={"schedule-manage":"_schedule-manage_vrdtb_1",list:"_list_vrdtb_25",listHide:"_listHide_vrdtb_33",listItem:"_listItem_vrdtb_37",itemTop:"_itemTop_vrdtb_43",icon:"_icon_vrdtb_50",timeTitle:"_timeTitle_vrdtb_55",time:"_time_vrdtb_55",timeBtn:"_timeBtn_vrdtb_62",success:"_success_vrdtb_66",iconTeacher:"_iconTeacher_vrdtb_69",menubox:"_menubox_vrdtb_83"},P=i({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(t,e){var n=e.emit,i=o(t),c=i.item,u=i.isLink;return function(){return a("div",{class:r.listItem},[a("div",{class:r.itemTop},[a("img",{class:r.icon,src:p},null),a("span",{class:r.timeTitle},[l("审批时间:")]),a("span",{class:r.time},[c.value.createTime]),"success"===t.status&&a("div",{class:[r.timeBtn,r.success]},[l("已通过")]),"error"===t.status&&a("div",{class:[r.timeBtn,r.error]},[l("未通过")])]),a(_,{center:!0,title:c.value.studentName,label:c.value.subjectName,value:"退团申请",isLink:u.value,onClick:function(){return n("goto")}},{icon:function(){return a(g,{src:c.value.studentAvatar||v,class:r.iconTeacher,fit:"cover",round:!0},null)}})])}}}),I=i({name:"schedule-manage-list-item",props:{status:{type:String,default:""}},emits:["goto"],setup:function(t,e){var n=e.emit;return function(){return a("div",{class:r.listItem},[a("div",{class:r.itemTop},[a(y,null,null)]),a(_,{center:!0,isLink:!0,onClick:function(){return n("goto")}},{icon:function(){return a(b,{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)}})])}}});t("default",i({name:"schedule-manage",setup:function(){var t=f(),i=c({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:""}),o=function(){var t,r=(t=e().mark((function t(){return e().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:console.log("请求"),i.examineLoading=!0,L({page:i.examinePage.page,rows:i.examinePage.rows,status:"ING"}).then((function(t){var e;i.refreshLoading&&(i.examineList=[]);var n=Array.isArray(null==t||null===(e=t.data)||void 0===e?void 0:e.rows)?t.data.rows:[];i.examineList=i.examineList.concat(n),(!n.length||n.length<i.examinePage.rows)&&(i.examineFinish=!0)})).catch((function(){i.examineFinish=!0})).finally((function(){i.examineLoading=!1,setTimeout((function(){i.refreshLoading=!1,i.examineSkelet=!1}),500)}));case 3:case"end":return t.stop()}}),t)})),function(){var e=this,r=arguments;return new Promise((function(i,o){var a=t.apply(e,r);function l(t){n(a,i,o,l,c,"next",t)}function c(t){n(a,i,o,l,c,"throw",t)}l(void 0)}))});return function(){return r.apply(this,arguments)}}(),l=function(){console.log("请求"),i.completeLoading=!0,L({page:i.examinePage.page,rows:i.examinePage.rows,search:i.search,status:i.activeOption}).then((function(t){var e;i.completeResh&&(i.completeList=[]);var n=Array.isArray(null==t||null===(e=t.data)||void 0===e?void 0:e.rows)?t.data.rows:[];i.completeList=i.completeList.concat(n),(!n.length||n.length<i.completePage.rows)&&(i.completeFinish=!0)})).catch((function(){i.completeFinish=!0})).finally((function(){i.completeLoading=!1,setTimeout((function(){i.completeResh=!1,i.completeSkelet=!1}),500)}))};u((function(){o(),l()}));var p=function(t){i.optionTitle="PASS"===i.activeOption?"已通过":"REJECT"===i.activeOption?"未通过":"全部状态",i.examinePage.page=1,i.completeFinish=!1,i.completeResh=!0,l()},v=function(e){t.push({path:"schedule-manage-detail",query:{musicGroupQuitId:e.musicGroupQuitId}})};return function(){return a("div",{class:r["schedule-manage"]},[a(m,{position:"top"},{default:function(){return[a(s,null,null)]}}),a(T,{swipeable:!0,animated:!0},{default:function(){return[a(S,{name:"待审批",title:"待审批"},{default:function(){return[a(j,{loading:i.examineLoading,finished:i.examineFinish,class:r.list,onLoad:function(){i.examinePage.page++,o()}},{default:function(){return[a(h,{modelValue:i.refreshLoading,"onUpdate:modelValue":function(t){return i.refreshLoading=t},onRefresh:function(){i.examinePage.page=1,i.examineFinish=!1,o()}},{default:function(){return[i.examineSkelet&&a("div",{class:[r.list,r.listHide]},[a(x,{loading:!0},{template:function(){return a("div",{style:{width:"100%"}},[new Array(10).fill(1).map((function(t){return a(I,null,null)}))])}})]),i.examineList.map((function(t){return a(P,{isLink:!0,item:t,onGoto:function(){return v(t)}},null)})),!i.examineList.length&&a(d,{description:"暂无数据",style:{minHeight:"100%"}},null)]}})]}})]}}),a(S,{name:"已完成",title:"已完成"},{default:function(){return[a("div",{class:r.menubox},[a(E,null,{default:function(){return[a(k,{teleport:"body",title:i.optionTitle,modelValue:i.activeOption,"onUpdate:modelValue":function(t){return i.activeOption=t},options:i.options,onChange:p},null)]}}),a(w,{placeholder:"请输入学员名称",onSearch:function(t){i.search=t,i.examinePage.page=1,i.completeFinish=!1,i.completeResh=!0,l()}},null)]),a(j,{loading:i.completeLoading,finished:i.completeFinish,class:r.list,onLoad:function(){i.examinePage.page++,l()}},{default:function(){return[a(h,{modelValue:i.completeResh,"onUpdate:modelValue":function(t){return i.completeResh=t},onRefresh:function(){i.examinePage.page=1,i.completeFinish=!1,l()}},{default:function(){return[i.completeSkelet&&a("div",{class:[r.list,r.listHide]},[a(x,{loading:!0},{template:function(){return a("div",{style:{width:"100%"}},[new Array(10).fill(1).map((function(t){return a(I,null,null)}))])}})]),i.completeList.map((function(t){return a(P,{item:t,isLink:!0,onGoto:function(){return v(t)},status:"PASS"===t.status?"success":"REJECT"===t.status?"error":""},null)})),!i.completeList.length&&a(d,{description:"暂无数据",style:{minHeight:"100%"}},null)]}})]}})]}})]}})])}}}))}}}))}();
|