1 |
- !function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(!e)return;if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return t(e,n)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,t,n,r,c,o,a){try{var i=e[o](a),u=i.value}catch(s){return void n(s)}i.done?t(u):Promise.resolve(u).then(r,c)}function r(e){return function(){var t=this,r=arguments;return new Promise((function(c,o){var a=e.apply(t,r);function i(e){n(a,c,o,i,u,"next",e)}function u(e){n(a,c,o,i,u,"throw",e)}i(void 0)}))}}var c=document.createElement("style");c.innerHTML="._selectTeacher_1fv1o_1{--van-dialog-message-font-size: .42667rem !important}._cellGroup_1fv1o_4{margin:.32rem .34667rem}._cellGroup_1fv1o_4 .van-cell{padding:.48rem .32rem;color:#333;font-size:.42667rem}._cellGroup_1fv1o_4 ._tips_1fv1o_12{color:#999}._cellGroup_1fv1o_4 ._name_1fv1o_15{color:#333}\n",document.head.appendChild(c),System.register(["./index-legacy.48c8d62c.js","./index-legacy.f3037807.js","./index-legacy.d1078003.js","./index-legacy.8cf5f94f.js","./teacher-list-legacy.c3dfc8db.js","./create-legacy.4c5b9c15.js","./index-legacy.5a3e4145.js","./index-legacy.269a0b91.js","./index-legacy.087e0425.js","./index-legacy.ac553194.js","./index-legacy.c75fe8a2.js","./icon_teacher-legacy.07765f44.js","./index-legacy.87ef53c1.js","./index-legacy.55fe5b03.js","./index-legacy.04f465c8.js","./use-tab-status-legacy.6949b1de.js","./index-legacy.0e0de364.js","./index-legacy.93204044.js"],(function(t){"use strict";var n,c,o,a,i,u,s,l,f,d,p,m,h,v,y,g,_,b,j,x;return{setters:[function(e){n=e.d,c=e.ag,o=e.r,a=e.c,i=e.F,u=e.q,s=e.B,l=e.ak,f=e.bn,d=e.m,p=e.f},function(e){m=e.O},function(e){h=e.O},function(e){v=e.O},function(e){y=e.T},function(e){g=e.c,_=e.r},function(e){b=e.O},function(e){j=e.C},function(e){x=e.C},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var S={selectTeacher:"_selectTeacher_1fv1o_1",cellGroup:"_cellGroup_1fv1o_4",tips:"_tips_1fv1o_12",name:"_name_1fv1o_15"};t("default",n({name:"teacher-list",emits:["close"],setup:function(){var t=c(),n=o({teacherStatus:!1,status:!1});console.log(g.selectLastTeacherSubjects);var T=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:f({title:"提示",message:"是否创建乐团?",showCancelButton:!0}).then(r(regeneratorRuntime.mark((function t(){var r,c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=g.selectLastTeacherSubjects||[],c=[],r.forEach((function(t){c.push({teacherId:t.teacher.id,type:t.type,subjectId:t.id,studentIdList:e(t.students)})})),console.log(c,"tempselects"),t.next=7,d.post("/api-school/orchestra/addOrchestra",{hideLoading:!1,data:{schoolId:p.user.data.school.id,name:g.orchestraName,classGroupList:[].concat(c)}});case 7:n.status=!0,t.next=12;break;case 10:t.prev=10,t.t0=t.catch(0);case 12:case"end":return t.stop()}}),t,null,[[0,10]])}))));case 1:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),w=function(){_(),t.replace("/train-planning")},C=function(){_(),t.replace("/my-orchestra")};return function(){var e,t;return a("div",{class:S.selectTeacher},[a(m,{title:"选择伴学指导"},null),a(j,{inset:!0,class:S.cellGroup},(t=e=g.selectLastTeacherSubjects.map((function(e){return a(x,{center:!0,onClick:function(){n.teacherStatus=!0,g.selectTeacher=e},isLink:!0},{title:function(){return a("span",{class:S.title},[e.name])},value:function(){var t,n;return a(i,null,[null!==(t=e.teacher)&&void 0!==t&&t.nickname?a("p",{class:S.name},[(null===(n=e.teacher)||void 0===n?void 0:n.nickname)||""]):a("p",{class:S.tips},[u("请选择伴学指导")])])}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!l(t)?e:{default:function(){return[e]}})),a(v,{position:"bottom"},{default:function(){return[a("div",{class:["btnGroup"]},[a(s,{type:"primary",round:!0,block:!0,onClick:T},{default:function(){return[u("创建完成")]}})])]}}),a(h,{modelValue:n.teacherStatus,"onUpdate:modelValue":function(e){return n.teacherStatus=e},position:"bottom"},{default:function(){return[a(y,{subjectIdList:(e=g.selectTeacher.id,e?e.toString().split(","):e),onClose:function(){return n.teacherStatus=!1},onSelect:function(e){g.selectTeacher.teacher=e,n.teacherStatus=!1}},null)];var e}}),a(b,{show:n.status,"onUpdate:show":function(e){return n.status=e},title:"创建成功",messageAlign:"left",confirmButtonText:"去排课",cancelButtonText:"暂不排课",showCancelButton:!0,message:"乐团创建完成,是否需要排课?",onConfirm:w,onCancel:C},null)])}}}))}}}))}();
|