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(E){l=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var o=e&&e.prototype instanceof p?e:p,i=Object.create(o.prototype),c=new L(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(E){return{type:"throw",arg:E}}}r.wrap=f;var d={};function p(){}function v(){}function y(){}var m={};l(m,c,(function(){return this}));var g=Object.getPrototypeOf,_=g&&g(g(j([])));_&&_!==n&&o.call(_,c)&&(m=_);var w=y.prototype=p.prototype=Object.create(m);function x(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function b(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=k(i,r);if(c){if(c===d)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===d)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(n="completed",r.method="throw",r.arg=u.arg)}}}function k(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,k(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),d;var o=h(n,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;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,d):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function G(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(G,this),this.reset(!0)}function j(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 v.prototype=y,a(w,"constructor",{value:y,configurable:!0}),a(y,"constructor",{value:v,configurable:!0}),v.displayName=l(y,s,"GeneratorFunction"),r.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},r.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,l(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},r.awrap=function(t){return{__await:t}},x(b.prototype),l(b.prototype,u,(function(){return this})),r.AsyncIterator=b,r.async=function(t,e,n,o,a){void 0===a&&(a=Promise);var i=new b(f(t,e,n,o),a);return r.isGeneratorFunction(e)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},x(w),l(w,s,"Generator"),l(w,c,(function(){return this})),l(w,"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=j,L.prototype={constructor:L,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(P),!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,d):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),d},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),P(r),d}},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;P(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:j(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},r}function r(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)}function n(t){return function(){var e=this,n=arguments;return new Promise((function(o,a){var i=t.apply(e,n);function c(t){r(i,o,a,c,u,"next",t)}function u(t){r(i,o,a,c,u,"throw",t)}c(void 0)}))}}System.register(["./index-legacy-d1632a03.js","./index-legacy-66b726ed.js","./icon-music-legacy-5207737d.js","./icon-teacher-default-legacy-c2566245.js","./icon-edit-legacy-6c85708e.js","./index-legacy-8bc0cb86.js","./index-legacy-a6c9bb1e.js","./index-legacy-426fa3de.js","./index-legacy-1a73122b.js","./index-legacy-4a157a14.js","./index-legacy-9b7fc16a.js","./index-legacy-98ceb6e5.js","./index-legacy-886d1012.js","./use-tab-status-legacy-e75957d3.js","./index-legacy-417bb455.js"],(function(t,r){"use strict";var o,a,i,c,u,s,l,f,h,d,p,v,y,m,g,_,w,x,b,S,k,G,P,L,j,C,E,N=document.createElement("style");return N.textContent='._searchGroup_ay4v4_1{padding:.26667rem .34667rem;background:#f8f9fc}._searchItem_ay4v4_5{display:inline-flex;align-items:center;position:relative;height:.69333rem;background:#fff;border-radius:.34667rem;padding:0 .56rem 0 .32rem;font-size:.37333rem;color:var(--k-gray-1)}._searchItem_ay4v4_5:after{position:absolute;top:50%;right:.26667rem;margin-top:-.13333rem;border:.08rem solid;border-color:transparent transparent var(--k-gray-4) var(--k-gray-4);transform:rotate(-45deg);content:""}._overhide_ay4v4_26{max-width:4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._cellGroup_ay4v4_32{margin:0 .34667rem .32rem;border-radius:.26667rem;overflow:hidden}._cellGroup_ay4v4_32 .van-cell{padding:.32rem}._cellGroup_ay4v4_32 ._orchestraName_ay4v4_40{display:flex;align-items:center;line-height:.53333rem;font-size:.37333rem;color:var(--k-gray-3)}._cellGroup_ay4v4_32 ._iconMusic_ay4v4_47{width:.48rem;height:.48rem;margin-right:.10667rem}._cellGroup_ay4v4_32 ._address_ay4v4_52{display:flex;align-items:center;justify-content:flex-end;color:var(--k-gray-1)}._cellGroup_ay4v4_32 ._address_ay4v4_52 ._overhide_ay4v4_26{max-width:3.2rem}._cellGroup_ay4v4_32 ._address_ay4v4_52 ._iconEdit_ay4v4_61{font-size:.42667rem;margin-left:.10667rem}._cellGroup_ay4v4_32 ._address_ay4v4_52 ._red_ay4v4_65{color:#ff5a56}._cellGroup_ay4v4_32 ._iconTeacher_ay4v4_68{width:1.28rem;height:1.28rem;border-radius:50%;margin-right:.21333rem}._cellGroup_ay4v4_32 ._username_ay4v4_74{padding:.21333rem .32rem .42667rem;color:var(--k-gray-3);font-size:.37333rem;line-height:.53333rem}._cellGroup_ay4v4_32 ._username_ay4v4_74 ._classname_ay4v4_80{font-size:.42667rem;font-weight:600;color:var(--k-gray-1);line-height:.58667rem}._popupContainer_ay4v4_86{width:8.4rem}._popupContainer_ay4v4_86 h2{text-align:center;padding-top:.53333rem;padding-bottom:.66667rem;font-weight:600;font-size:.48rem;color:var(--k-gray-1)}._popupContainer_ay4v4_86 ._field_ay4v4_97{width:auto;margin:0 .48rem;background:#F6F6F6;height:1.25333rem;border-radius:.16rem}\n',document.head.appendChild(N),{setters:[function(t){o=t.M},function(t){a=t.d,i=t.O,c=t.o,u=t.w,s=t.g,l=t.R,f=t.I,h=t.S,d=t.P,p=t.h,v=t.B,y=t.f,m=t.a},function(t){g=t.i},function(t){_=t.i},function(t){w=t.i},function(t){x=t.S,b=t.b,S=t.a},function(t){k=t.C},function(t){G=t.C},function(t){P=t.M},function(t){L=t.L},function(t){j=t.I},function(t){C=t.F},function(t){E=t.P},null,null],execute:function(){var r={searchGroup:"_searchGroup_ay4v4_1",searchItem:"_searchItem_ay4v4_5",overhide:"_overhide_ay4v4_26",cellGroup:"_cellGroup_ay4v4_32",orchestraName:"_orchestraName_ay4v4_40",iconMusic:"_iconMusic_ay4v4_47",address:"_address_ay4v4_52",iconEdit:"_iconEdit_ay4v4_61",red:"_red_ay4v4_65",iconTeacher:"_iconTeacher_ay4v4_68",username:"_username_ay4v4_74",classname:"_classname_ay4v4_80",popupContainer:"_popupContainer_ay4v4_86",field:"_field_ay4v4_97"},N=a({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:function(){return[1,2,3,4,5,6]}}},setup:function(t,e){var n=e.slots,o=i({loading:!1});return c((function(){o.loading=t.show})),u((function(){return t.show}),(function(){o.loading=t.show})),function(){return s(x,{loading:o.loading,style:"flex-wrap: wrap"},{template:function(){return s("div",{style:{height:"calc(100vh - var(--header-height))",overflow:"hidden",width:"100%"}},[t.showCount.map((function(){return s(k,{class:r.cellGroup},{default:function(){return[s(G,{center:!0},{icon:function(){return s(b,{class:r.iconMusic},null)},title:function(){return s("div",{style:{display:"flex",justifyContent:"space-between"}},[s(S,{rowWidth:"40%"},null),s(S,{style:{marginTop:0},rowWidth:"40%"},null)])}}),s(G,{center:!0,class:r.username},{icon:function(){return s(b,{class:r.iconTeacher},null)},title:function(){return s("div",null,[s(S,{rowWidth:"40%"},null),s(S,{rowWidth:"40%",style:{marginTop:"4px"}},null)])}})]}})}))])},default:function(){return n.default&&n.default()}})}}});t("default",a({name:"site-setting",setup:function(){var t=i({showPopup:!1,showOrchestraPopup:!1,siteName:"",orchestraName:"全部乐团",orchestraColumns:[{text:"全部乐团",value:""}],listState:{dataShow:!0,loading:!0,finished:!1,refreshing:!1},params:{musicGroupId:null,page:1,rows:20},isClick:!1,list:[],selectSite:{}}),a=function(){var r=n(e().mark((function r(){return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,t.siteName){e.next=4;break}return y("请输入场地名称"),e.abrupt("return");case 4:return e.next=6,m.post("/api-web/classGroup/teachingPoint",{hideLoading:!1,data:{classGroupId:t.selectSite.classGroupId,teachingPoint:t.siteName}});case 6:t.showPopup=!1,t.list=[],x(),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),r,null,[[0,11]])})));return function(){return r.apply(this,arguments)}}(),u=function(){var r=n(e().mark((function r(){var n,o,a;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!t.isClick){e.next=3;break}return e.abrupt("return");case 3:return t.isClick=!0,e.next=6,m.post("/api-web/classGroup/teachingPointClass",{data:t.params});case 6:n=e.sent,o=n.data,a=o||{},t.listState.refreshing?t.list=a.rows||[]:t.list=t.list.concat(a.rows||[]),t.listState.finished=a.pageNo>=a.totalPage,t.params.page=a.pageNo+1,e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),t.listState.finished=!0;case 17:return e.prev=17,t.listState.dataShow=t.list.length>0,t.listState.refreshing=!1,t.listState.loading=!1,t.isClick=!1,e.finish(17);case 23:case"end":return e.stop()}}),r,null,[[0,14,17,23]])})));return function(){return r.apply(this,arguments)}}(),x=function(){t.params.page=1,u()},b=function(){var r=n(e().mark((function r(){var n;return e().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.get("/api-web/cooperationOrgan/musicGroupPage");case 3:n=e.sent,(n.data||[]).forEach((function(e){t.orchestraColumns.push({text:e.name,value:e.id})})),e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),r,null,[[0,8]])})));return function(){return r.apply(this,arguments)}}();return c((function(){b(),u()})),function(){return s("div",{class:r.siteSetting},[s(o,{position:"top"},{default:function(){return[s(l,null,null),s("div",{class:r.searchGroup},[s("div",{class:r.searchItem,onClick:function(){return t.showOrchestraPopup=!0}},[s("span",null,[t.orchestraName])])])]}}),s(N,{show:t.listState.loading,"onUpdate:show":function(e){return t.listState.loading=e}},{default:function(){return[s(P,{modelValue:t.listState.refreshing,"onUpdate:modelValue":function(e){return t.listState.refreshing=e},onRefresh:function(){return x()},style:{minHeight:"calc(100vh - var(--header-height))"}},{default:function(){return[s(L,{finished:t.listState.finished,finishedText:" ",style:{overflow:"hidden"},onLoad:u,immediateCheck:!1},{default:function(){return[t.listState.dataShow?t.list.map((function(e){return s(k,{class:r.cellGroup,border:!1},{default:function(){return[s(G,{border:!1,center:!0},{title:function(){return s("div",{class:r.orchestraName},[s("img",{src:g,class:r.iconMusic},null),s("p",{class:r.overhide},[e.musicGroupName])])},default:function(){return s("div",{class:r.address,onClick:function(){return function(e){t.selectSite=e,t.siteName=e.teachingPoint,t.showPopup=!0}(e)}},[s("p",{class:[r.overhide,e.teachingPoint?"":r.red]},[e.teachingPoint||"未设置场地"]),s(f,{name:w,class:r.iconEdit},null)])}}),s(G,{center:!0,class:r.username},{icon:function(){return s(j,{src:e.teacherAvatar||_,class:r.iconTeacher,fit:"cover"},null)},title:function(){return s("div",null,[s("div",{class:r.classname},[e.classGroupName]),s("div",{class:r.name},[e.teacherName])])}})]}})})):s(h,{style:{minHeight:"calc(100vh - var(--header-height))"},description:"暂无数据"},null)]}})]}})]}}),s(d,{show:t.showPopup,"onUpdate:show":function(e){return t.showPopup=e},round:!0,onClose:function(){t.siteName="",t.selectSite={}}},{default:function(){return[s("div",{class:r.popupContainer},[s("h2",null,[p("设置场地")]),s(C,{placeholder:"请输入场地名称",modelValue:t.siteName,"onUpdate:modelValue":function(e){return t.siteName=e},border:!1,class:r.field,maxlength:15},null),s("div",{class:["btnGroupPopup"]},[s(v,{round:!0,onClick:function(){t.showPopup=!1}},{default:function(){return[p("取消")]}}),s(v,{type:"primary",round:!0,onClick:a},{default:function(){return[p("确定")]}})])])]}}),s(d,{show:t.showOrchestraPopup,"onUpdate:show":function(e){return t.showOrchestraPopup=e},round:!0,position:"bottom"},{default:function(){return[s(E,{columns:t.orchestraColumns,onCancel:function(){return t.showOrchestraPopup=!1},onConfirm:function(e){var r=e.selectedOptions;t.showOrchestraPopup=!1;var n=r[0];t.orchestraName=n.text,t.params.musicGroupId=n.value,t.list=[],t.listState.dataShow=!0,x()}},null)]}})])}}}))}}}))}();
|