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 r};var r={},n=Object.prototype,i=n.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},a="function"==typeof Symbol?Symbol:{},u=a.iterator||"@@iterator",c=a.asyncIterator||"@@asyncIterator",s=a.toStringTag||"@@toStringTag";function l(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(E){l=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var i=t&&t.prototype instanceof p?t:p,a=Object.create(i.prototype),u=new L(n||[]);return o(a,"_invoke",{value:S(e,r,u)}),a}function f(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(E){return{type:"throw",arg:E}}}r.wrap=d;var h={};function p(){}function m(){}function _(){}var g={};l(g,u,(function(){return this}));var v=Object.getPrototypeOf,y=v&&v(v(P([])));y&&y!==n&&i.call(y,u)&&(g=y);var w=_.prototype=p.prototype=Object.create(g);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function b(t,r){function n(o,a,u,c){var s=f(t[o],t,a);if("throw"!==s.type){var l=s.arg,d=l.value;return d&&"object"==e(d)&&i.call(d,"__await")?r.resolve(d.__await).then((function(e){n("next",e,u,c)}),(function(e){n("throw",e,u,c)})):r.resolve(d).then((function(e){l.value=e,u(l)}),(function(e){return n("throw",e,u,c)}))}c(s.arg)}var a;o(this,"_invoke",{value:function(e,t){function i(){return new r((function(r,i){n(e,t,r,i)}))}return a=a?a.then(i,i):i()}})}function S(e,t,r){var n="suspendedStart";return function(i,o){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===i)throw o;return j()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===h)continue;return u}}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 c=f(e,t,r);if("normal"===c.type){if(n=r.done?"completed":"suspendedYield",c.arg===h)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n="completed",r.method="throw",r.arg=c.arg)}}}function k(e,t){var r=t.method,n=e.iterator[r];if(void 0===n)return t.delegate=null,"throw"===r&&e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method)||"return"!==r&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+r+"' method")),h;var i=f(n,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;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,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function C(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 G(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function P(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,n=function t(){for(;++r<e.length;)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return n.next=n}}return{next:j}}function j(){return{value:void 0,done:!0}}return m.prototype=_,o(w,"constructor",{value:_,configurable:!0}),o(_,"constructor",{value:m,configurable:!0}),m.displayName=l(_,s,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,_):(e.__proto__=_,l(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},r.awrap=function(e){return{__await:e}},x(b.prototype),l(b.prototype,c,(function(){return this})),r.AsyncIterator=b,r.async=function(e,t,n,i,o){void 0===o&&(o=Promise);var a=new b(d(e,t,n,i),o);return r.isGeneratorFunction(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),l(w,s,"Generator"),l(w,u,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=P,L.prototype={constructor:L,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(G),!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 r(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var u=i.call(o,"catchLoc"),c=i.call(o,"finallyLoc");if(u&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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,h):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),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),G(r),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;G(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:P(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),h}},r}function r(e,t,r,n,i,o,a){try{var u=e[o](a),c=u.value}catch(s){return void r(s)}u.done?t(c):Promise.resolve(c).then(n,i)}function n(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function u(e){r(a,i,o,u,c,"next",e)}function c(e){r(a,i,o,u,c,"throw",e)}u(void 0)}))}}System.register(["./index-legacy-e20ea7a7.js","./index-legacy-9572cf39.js","./icon-music-legacy-5207737d.js","./icon-teacher-default-legacy-c2566245.js","./icon-edit-legacy-6c85708e.js","./index-legacy-95603f97.js","./index-legacy-0e12a30c.js","./index-legacy-bc1d90bf.js","./index-legacy-051f8e9a.js","./index-legacy-10133414.js","./index-legacy-e0a24453.js","./index-legacy-870d50da.js","./index-legacy-571061d9.js","./use-tab-status-legacy-9b408efd.js","./index-legacy-837e6bd3.js"],(function(e,r){"use strict";var i,o,a,u,c,s,l,d,f,h,p,m,_,g,v,y,w,x,b,S,k,C,G,L,P,j,E,N=document.createElement("style");return N.textContent='._searchGroup_14dui_1{padding:.26667rem .34667rem;background:#f8f9fc}._searchItem_14dui_5{display:inline-flex;align-items:center;position:relative;height:.69333rem;border-radius:.34667rem;background:#fff;padding:0 .56rem 0 .32rem;font-size:.37333rem;color:var(--k-gray-1)}._searchItem_14dui_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:""}._searchItem_14dui_5 span{max-width:3.2rem;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._overhide_14dui_32{max-width:4rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._cellGroup_14dui_38{margin:0 .34667rem .32rem;border-radius:.26667rem;overflow:hidden}._cellGroup_14dui_38 .van-cell{padding:.32rem}._cellGroup_14dui_38 ._orchestraName_14dui_46{display:flex;align-items:center;line-height:.53333rem;font-size:.37333rem;color:var(--k-gray-3)}._cellGroup_14dui_38 ._iconMusic_14dui_53{width:.48rem;height:.48rem;margin-right:.10667rem}._cellGroup_14dui_38 ._iconTeacher_14dui_58{width:1.28rem;height:1.28rem;border-radius:50%;margin-right:.21333rem}._cellGroup_14dui_38 ._username_14dui_64{padding:.21333rem .32rem .42667rem;color:var(--k-gray-3);font-size:.37333rem;line-height:.53333rem}._cellGroup_14dui_38 ._username_14dui_64 ._classname_14dui_70{font-size:.42667rem;font-weight:600;color:var(--k-gray-1);line-height:.58667rem}._popupContainer_14dui_76{width:8.4rem}._popupContainer_14dui_76 h2{text-align:center;padding-top:.53333rem;padding-bottom:.66667rem;font-weight:600;font-size:.48rem;color:var(--k-gray-1)}._popupContainer_14dui_76 ._field_14dui_87{width:auto;margin:0 .48rem;background:#F6F6F6;height:1.25333rem;border-radius:.16rem;--van-field-word-limit-color: #AAAAAA;--van-field-word-limit-font-size: .42667rem}._popupContainer_14dui_76 ._field_14dui_87 input::-moz-placeholder{color:var(--k-gray-4)}._popupContainer_14dui_76 ._field_14dui_87 input::placeholder{color:var(--k-gray-4)}._popupContainer_14dui_76 ._field_14dui_87 .van-field__word-limit{margin-top:0}._popupContainer_14dui_76 ._field_14dui_87 .van-field__value{display:flex;align-items:center}._popupContainer_14dui_76 ._field_14dui_87 .van-field__body{flex:1}._addressShow_14dui_109{padding:.21333rem .26667rem;margin:0 .32rem .32rem;display:flex;align-items:center;font-size:.37333rem;color:#333;background:#f8f9fc;border-radius:.16rem}._addressShow_14dui_109 ._address_14dui_109{display:flex;align-items:center;justify-content:space-between;width:100%;color:var(--k-gray-1)}._addressShow_14dui_109 ._address_14dui_109 ._overhide_14dui_32{max-width:100%}._addressShow_14dui_109 ._address_14dui_109 ._iconEdit_14dui_129{font-size:.42667rem;margin-left:.10667rem}._addressShow_14dui_109 ._address_14dui_109 ._red_14dui_133{color:#ff5a56}\n',document.head.appendChild(N),{setters:[function(e){i=e.M},function(e){o=e.d,a=e.O,u=e.o,c=e.w,s=e.g,l=e.R,d=e.h,f=e.I,h=e.T,p=e.P,m=e.B,_=e.f,g=e.a},function(e){v=e.i},function(e){y=e.i},function(e){w=e.i},function(e){x=e.S,b=e.b,S=e.a},function(e){k=e.C},function(e){C=e.C},function(e){G=e.M},function(e){L=e.L},function(e){P=e.I},function(e){j=e.F},function(e){E=e.P},null,null],execute:function(){var r={searchGroup:"_searchGroup_14dui_1",searchItem:"_searchItem_14dui_5",overhide:"_overhide_14dui_32",cellGroup:"_cellGroup_14dui_38",orchestraName:"_orchestraName_14dui_46",iconMusic:"_iconMusic_14dui_53",iconTeacher:"_iconTeacher_14dui_58",username:"_username_14dui_64",classname:"_classname_14dui_70",popupContainer:"_popupContainer_14dui_76",field:"_field_14dui_87",addressShow:"_addressShow_14dui_109",address:"_address_14dui_109",iconEdit:"_iconEdit_14dui_129",red:"_red_14dui_133"},N=o({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:function(){return[1,2,3,4,5,6]}}},setup:function(e,t){var n=t.slots,i=a({loading:!1});return u((function(){i.loading=e.show})),c((function(){return e.show}),(function(){i.loading=e.show})),function(){return s(x,{loading:i.loading,style:"flex-wrap: wrap"},{template:function(){return s("div",{style:{height:"calc(100vh - var(--header-height))",overflow:"hidden",width:"100%"}},[e.showCount.map((function(){return s(k,{class:r.cellGroup},{default:function(){return[s(C,{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(C,{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()}})}}});e("default",o({name:"site-setting",setup:function(){var e=a({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:{}}),o=function(){var r=n(t().mark((function r(){return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,e.siteName){t.next=4;break}return _("请输入场地名称"),t.abrupt("return");case 4:return t.next=6,g.post("/api-web/classGroup/teachingPoint",{hideLoading:!1,data:{classGroupId:e.selectSite.classGroupId,teachingPoint:e.siteName}});case 6:e.showPopup=!1,e.list=[],x(),t.next=13;break;case 11:t.prev=11,t.t0=t.catch(0);case 13:case"end":return t.stop()}}),r,null,[[0,11]])})));return function(){return r.apply(this,arguments)}}(),c=function(){var r=n(t().mark((function r(){var n,i,o;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!e.isClick){t.next=3;break}return t.abrupt("return");case 3:return e.isClick=!0,t.next=6,g.post("/api-web/classGroup/teachingPointClass",{data:e.params});case 6:n=t.sent,i=n.data,o=i||{},e.listState.refreshing?e.list=o.rows||[]:e.list=e.list.concat(o.rows||[]),e.listState.finished=o.pageNo>=o.totalPage,e.params.page=o.pageNo+1,t.next=17;break;case 14:t.prev=14,t.t0=t.catch(0),e.listState.finished=!0;case 17:return t.prev=17,setTimeout((function(){e.listState.dataShow=e.list.length>0,e.listState.refreshing=!1,e.listState.loading=!1,e.isClick=!1}),300),t.finish(17);case 20:case"end":return t.stop()}}),r,null,[[0,14,17,20]])})));return function(){return r.apply(this,arguments)}}(),x=function(){e.params.page=1,c()},b=function(){var r=n(t().mark((function r(){var n;return t().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,g.get("/api-web/cooperationOrgan/musicGroupPage");case 3:n=t.sent,(n.data||[]).forEach((function(t){e.orchestraColumns.push({text:t.name,value:t.id})})),t.next=10;break;case 8:t.prev=8,t.t0=t.catch(0);case 10:case"end":return t.stop()}}),r,null,[[0,8]])})));return function(){return r.apply(this,arguments)}}();return u((function(){b(),c()})),function(){return s("div",{class:r.siteSetting},[s(i,{position:"top"},{default:function(){return[s(l,null,null),s("div",{class:r.searchGroup},[s("div",{class:r.searchItem,onClick:function(){return e.showOrchestraPopup=!0}},[s("span",null,[e.orchestraName])])])]}}),s(N,{show:e.listState.loading,"onUpdate:show":function(t){return e.listState.loading=t}},{default:function(){return[s(G,{modelValue:e.listState.refreshing,"onUpdate:modelValue":function(t){return e.listState.refreshing=t},onRefresh:function(){return x()},style:{minHeight:"calc(100vh - var(--header-height))"}},{default:function(){return[s(L,{finished:e.listState.finished,finishedText:" ",style:{overflow:"hidden"},onLoad:c,immediateCheck:!1},{default:function(){return[e.listState.dataShow?e.list.map((function(t){return s(k,{class:r.cellGroup,border:!1},{default:function(){return[s(C,{border:!1,center:!0},{title:function(){return s("div",{class:r.orchestraName},[s("img",{src:v,class:r.iconMusic},null),s("p",{class:r.overhide},[t.musicGroupName])])}}),s("div",{class:r.addressShow},[s("div",{class:r.address,onClick:function(){return function(t){e.selectSite=t,e.siteName=t.teachingPoint,e.showPopup=!0}(t)}},[s("p",{class:[r.overhide,t.teachingPoint?"":r.red]},[s("span",{style:{color:" var(--k-gray-1)"}},[d("场地名称:")]),t.teachingPoint||"未设置场地"]),s(f,{name:w,class:r.iconEdit},null)])]),s(C,{center:!0,class:r.username},{icon:function(){return s(P,{src:t.teacherAvatar||y,class:r.iconTeacher,fit:"cover"},null)},title:function(){return s("div",null,[s("div",{class:r.classname},[t.classGroupName]),s("div",{class:r.name},[t.teacherName])])}})]}})})):s(h,{style:{minHeight:"calc(100vh - var(--header-height))"},description:"暂无数据"},null)]}})]}})]}}),s(p,{show:e.showPopup,"onUpdate:show":function(t){return e.showPopup=t},round:!0,onClose:function(){e.siteName="",e.selectSite={}}},{default:function(){return[s("div",{class:r.popupContainer},[s("h2",null,[d("设置场地")]),s(j,{placeholder:"请输入场地名称",modelValue:e.siteName,"onUpdate:modelValue":function(t){return e.siteName=t},border:!1,class:r.field,autocomplete:"off",maxlength:15,showWordLimit:!0},null),s("div",{class:["btnGroupPopup"]},[s(m,{round:!0,onClick:function(){e.showPopup=!1}},{default:function(){return[d("取消")]}}),s(m,{type:"primary",round:!0,onClick:o},{default:function(){return[d("确定")]}})])])]}}),s(p,{show:e.showOrchestraPopup,"onUpdate:show":function(t){return e.showOrchestraPopup=t},round:!0,position:"bottom"},{default:function(){return[s(E,{columns:e.orchestraColumns,onCancel:function(){return e.showOrchestraPopup=!1},onConfirm:function(t){var r=t.selectedOptions;e.showOrchestraPopup=!1;var n=r[0];e.orchestraName=n.text,e.params.musicGroupId=n.value,e.list=[],e.listState.dataShow=!0,x()}},null)]}})])}}}))}}}))}();
|