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,i=r.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},c=a.iterator||"@@iterator",l=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(O){s=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),c=new S(r||[]);return o(a,"_invoke",{value:L(e,n,c)}),a}function m(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}n.wrap=f;var d={};function h(){}function p(){}function v(){}var _={};s(_,c,(function(){return this}));var g=Object.getPrototypeOf,y=g&&g(g(k([])));y&&y!==r&&i.call(y,c)&&(_=y);var x=v.prototype=h.prototype=Object.create(_);function w(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,n){function r(o,a,c,l){var u=m(t[o],t,a);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==e(f)&&i.call(f,"__await")?n.resolve(f.__await).then((function(e){r("next",e,c,l)}),(function(e){r("throw",e,c,l)})):n.resolve(f).then((function(e){s.value=e,c(s)}),(function(e){return r("throw",e,c,l)}))}l(u.arg)}var a;o(this,"_invoke",{value:function(e,t){function i(){return new n((function(n,i){r(e,t,n,i)}))}return a=a?a.then(i,i):i()}})}function L(e,t,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 I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var c=T(a,n);if(c){if(c===d)continue;return c}}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 l=m(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function T(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,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=m(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,d;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,d):o:(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 S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(j,this),this.reset(!0)}function k(e){if(e){var t=e[c];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(i.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:I}}function I(){return{value:void 0,done:!0}}return p.prototype=v,o(x,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:p,configurable:!0}),p.displayName=s(v,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,v):(e.__proto__=v,s(e,u,"GeneratorFunction")),e.prototype=Object.create(x),e},n.awrap=function(e){return{__await:e}},w(b.prototype),s(b.prototype,l,(function(){return this})),n.AsyncIterator=b,n.async=function(e,t,r,i,o){void 0===o&&(o=Promise);var a=new b(f(e,t,r,i),o);return n.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(x),s(x,u,"Generator"),s(x,c,(function(){return this})),s(x,"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=k,S.prototype={constructor:S,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)&&i.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 o=this.tryEntries[r],a=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var c=i.call(o,"catchLoc"),l=i.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.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&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.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 i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:k(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},n}function n(e,t,n,r,i,o,a){try{var c=e[o](a),l=c.value}catch(u){return void n(u)}c.done?t(l):Promise.resolve(l).then(r,i)}System.register(["./index-legacy-49fe136a.js","./index-legacy-6cb64f6c.js","./index-legacy-a689f51b.js","./icon-timer-legacy-d80c79f8.js","./icon-teacher-default-legacy-c2566245.js","./index-legacy-25a228fa.js","./index-legacy-65fcef15.js","./index-legacy-5bef4ac7.js","./index-legacy-8ec21b48.js","./api-legacy-2e906dfd.js","./index-legacy-649765eb.js","./index-legacy-e94bbe34.js","./index-legacy-dabed3b6.js","./index-legacy-deb34790.js","./use-tab-status-legacy-7568ad30.js"],(function(e,r){"use strict";var i,o,a,c,l,u,s,f,m,d,h,p,v,_,g,y,x,w,b,L,T,j,E,S,k=document.createElement("style");return k.textContent="._schedule-manage_108cv_1 .van-tabs{position:fixed;left:0;right:0;top:var(--header-height)}._schedule-manage_108cv_1 .van-tabs__content{height:calc(100vh - var(--header-height) - var(--van-tabs-line-height))}._schedule-manage_108cv_1 .van-tab__panel{height:100%;display:flex;flex-direction:column}._schedule-manage_108cv_1 .van-pull-refresh{height:100%}._schedule-manage_108cv_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_108cv_25{padding:.32rem;flex:1;overflow-y:auto}._list_108cv_25::-webkit-scrollbar{display:none}._listHide_108cv_33{padding:0;overflow:hidden}._listItem_108cv_37{border-radius:.26667rem;background-color:#fff;overflow:hidden;margin-bottom:.32rem}._listItem_108cv_37 ._itemTop_108cv_43{display:flex;align-items:center;padding:.34667rem .32rem;border-bottom:.02667rem solid #F2F2F2;font-size:.37333rem}._listItem_108cv_37 ._itemTop_108cv_43 ._icon_108cv_50{display:block;width:.45333rem;height:.45333rem}._listItem_108cv_37 ._itemTop_108cv_43 ._timeTitle_108cv_55{margin-left:.10667rem;color:var(--text-color)}._listItem_108cv_37 ._itemTop_108cv_43 ._time_108cv_55{color:var(--text-color-2)}._listItem_108cv_37 ._itemTop_108cv_43 ._timeBtn_108cv_62{margin-left:auto;font-weight:600}._listItem_108cv_37 ._itemTop_108cv_43 ._timeBtn_108cv_62._success_108cv_66{color:var(--van-primary-color)}._listItem_108cv_37 ._iconTeacher_108cv_69{width:1.28rem;height:1.28rem;margin-right:.21333rem}._listItem_108cv_37 .van-cell{padding:.37333rem .32rem}._listItem_108cv_37 .van-cell__title{font-weight:700}._listItem_108cv_37 .van-cell__value{color:var(--text-color)}._menubox_108cv_83{display:flex;align-items:center;background-color:#fff}._menubox_108cv_83 .van-search{flex:1}._menubox_108cv_83 .van-dropdown-menu{min-width:2.66667rem}._menubox_108cv_83 .van-dropdown-menu__title{font-size:.37333rem;padding:0 .66667rem 0 .32rem}._menubox_108cv_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(k),{setters:[function(e){i=e.d,o=e.g,a=e.h,c=e.N,l=e.o,u=e.O,s=e.Q,f=e.M},function(e){m=e.M},function(e){d=e.M},function(e){h=e.i},function(e){p=e.i},function(e){v=e.C},function(e){_=e.I},function(e){g=e.a,y=e.b,x=e.S},function(e){w=e.M},function(e){b=e.m},function(e){L=e.T,T=e.a},function(e){j=e.L},function(e){E=e.D,S=e.a},null,null],execute:function(){var r={"schedule-manage":"_schedule-manage_108cv_1",list:"_list_108cv_25",listHide:"_listHide_108cv_33",listItem:"_listItem_108cv_37",itemTop:"_itemTop_108cv_43",icon:"_icon_108cv_50",timeTitle:"_timeTitle_108cv_55",time:"_time_108cv_55",timeBtn:"_timeBtn_108cv_62",success:"_success_108cv_66",iconTeacher:"_iconTeacher_108cv_69",menubox:"_menubox_108cv_83"},k=i({name:"schedule-manage-list-item",props:{status:{type:String,default:""},item:{type:Object,default:function(){return{}}}},emits:["goto"],setup:function(e,t){var n=t.emit,i=e.item;return function(){return o("div",{class:r.listItem},[o("div",{class:r.itemTop},[o("img",{class:r.icon,src:h},null),o("span",{class:r.timeTitle},[a("审批时间:")]),o("span",{class:r.time},[i.createTime]),"success"===e.status&&o("div",{class:[r.timeBtn,r.success]},[a("已通过")]),"error"===e.status&&o("div",{class:[r.timeBtn,r.error]},[a("未通过")])]),o(v,{center:!0,title:i.studentName,label:i.subjectName,value:"退团申请",isLink:!0,onClick:function(){return n("goto")}},{icon:function(){return o(_,{src:i.studentAvatar||p,class:r.iconTeacher,fit:"contain"},null)}})])}}}),I=i({name:"schedule-manage-list-item",props:{status:{type:String,default:""}},emits:["goto"],setup:function(e,t){var n=t.emit;return function(){return o("div",{class:r.listItem},[o("div",{class:r.itemTop},[o(g,null,null)]),o(v,{center:!0,isLink:!0,onClick:function(){return n("goto")}},{icon:function(){return o(y,{avatarSize:"1.28rem"},null)},title:function(){return o(g,{rowWidth:"50%"},null)},label:function(){return o(g,{rowWidth:"30%"},null)},value:function(){return o(g,null,null)}})])}}});e("default",i({name:"schedule-manage",setup:function(){var e=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:""}),a=function(){var e,r=(e=t().mark((function e(){return t().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("请求"),i.examineLoading=!0,i.refreshLoading&&(i.examineList=[]),b({page:i.examinePage.page,rows:i.examinePage.rows}).then((function(e){var t,n=Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.rows)?e.data.rows:[];i.examineList=i.examineList.concat(n),n.length||(i.examineFinish=!0)})).catch((function(){i.examineFinish=!0})).finally((function(){i.examineLoading=!1,setTimeout((function(){i.refreshLoading=!1,i.examineSkelet=!1}),500)}));case 4:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(i,o){var a=e.apply(t,r);function c(e){n(a,i,o,c,l,"next",e)}function l(e){n(a,i,o,c,l,"throw",e)}c(void 0)}))});return function(){return r.apply(this,arguments)}}(),h=function(){console.log("请求"),i.completeLoading=!0,b({page:i.examinePage.page,rows:i.examinePage.rows,search:i.search,status:i.activeOption}).then((function(e){var t;i.completeResh&&(i.completeList=[]);var n=Array.isArray(null==e||null===(t=e.data)||void 0===t?void 0:t.rows)?e.data.rows:[];i.completeList=i.completeList.concat(n),n.length||(i.completeFinish=!0)})).catch((function(){i.completeFinish=!0})).finally((function(){i.completeLoading=!1,setTimeout((function(){i.completeResh=!1,i.completeSkelet=!1}),500)}))};l((function(){a(),h()}));var p=function(e){i.optionTitle="PASS"===i.activeOption?"已通过":"REJECT"===i.activeOption?"未通过":"全部状态"};return function(){return o("div",{class:r["schedule-manage"]},[o(m,{position:"top"},{default:function(){return[o(u,null,null)]}}),o(L,{swipeable:!0,animated:!0},{default:function(){return[o(T,{name:"待审批",title:"待审批"},{default:function(){return[o(j,{loading:i.examineLoading,finished:i.examineFinish,class:r.list,onLoad:a},{default:function(){return[o(d,{modelValue:i.refreshLoading,"onUpdate:modelValue":function(e){return i.refreshLoading=e},onRefresh:function(){i.examinePage.page=1,i.examineFinish=!1,a()}},{default:function(){return[i.examineSkelet&&o("div",{class:[r.list,r.listHide]},[o(x,{loading:!0},{template:function(){return o("div",{style:{width:"100%"}},[new Array(10).fill(1).map((function(e){return o(I,null,null)}))])}})]),i.examineList.map((function(t){return o(k,{status:"success",onGoto:function(){return function(t){e.push({path:"schedule-manage-detail",query:{musicGroupQuitId:t.musicGroupQuitId}})}(t)}},null)})),!i.examineList.length&&o(s,{description:"暂无数据",style:{minHeight:"100%"}},null)]}})]}})]}}),o(T,{name:"已完成",title:"已完成"},{default:function(){return[o("div",{class:r.menubox},[o(E,null,{default:function(){return[o(S,{teleport:"body",title:i.optionTitle,modelValue:i.activeOption,"onUpdate:modelValue":function(e){return i.activeOption=e},options:i.options,onChange:p},null)]}}),o(w,{placeholder:"请输入学员名称",modelValue:i.search,"onUpdate:modelValue":function(e){return i.search=e},onSearch:function(){i.examinePage.page=1,i.completeFinish=!1,h()}},null)]),o(j,{loading:i.completeLoading,finished:i.completeFinish,class:r.list,onLoad:h},{default:function(){return[o(d,{modelValue:i.completeResh,"onUpdate:modelValue":function(e){return i.completeResh=e},onRefresh:function(){i.examinePage.page=1,i.completeFinish=!1,h()}},{default:function(){return[i.completeSkelet&&o("div",{class:[r.list,r.listHide]},[o(x,{loading:!0},{template:function(){return o("div",{style:{width:"100%"}},[new Array(10).fill(1).map((function(e){return o(I,null,null)}))])}})]),i.completeList.map((function(e){return o(k,{status:"success"},null)})),!i.examineList.length&&o(s,{description:"暂无数据",style:{minHeight:"100%"}},null)]}})]}})]}})]}})])}}}))}}}))}();
|