index-legacy.95deef62.js 22 KB

1
  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(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(t,e)}(t)||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 r(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function n(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */n=function(){return e};var e={},r=Object.prototype,i=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function c(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(M){c=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),a=new O(n||[]);return o._invoke=function(t,e,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 E()}for(r.method=i,r.arg=o;;){var a=r.delegate;if(a){var u=j(a,r);if(u){if(u===d)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 s=f(t,e,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(t,r,a),o}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(M){return{type:"throw",arg:M}}}e.wrap=l;var d={};function p(){}function m(){}function h(){}var y={};c(y,a,(function(){return this}));var b=Object.getPrototypeOf,g=b&&b(b(k([])));g&&g!==r&&i.call(g,a)&&(y=g);var v=h.prototype=p.prototype=Object.create(y);function _(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function w(e,r){function n(o,a,u,s){var c=f(e[o],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==t(d)&&i.call(d,"__await")?r.resolve(d.__await).then((function(t){n("next",t,u,s)}),(function(t){n("throw",t,u,s)})):r.resolve(d).then((function(t){l.value=t,u(l)}),(function(t){return n("throw",t,u,s)}))}s(c.arg)}var o;this._invoke=function(t,e){function i(){return new r((function(r,i){n(t,e,r,i)}))}return o=o?o.then(i,i):i()}}function j(t,e){var r=t.iterator[e.method];if(void 0===r){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,j(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var n=f(r,t.iterator,e.arg);if("throw"===n.type)return e.method="throw",e.arg=n.arg,e.delegate=null,d;var i=n.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function x(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 S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function k(t){if(t){var e=t[a];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(i.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:E}}function E(){return{value:void 0,done:!0}}return m.prototype=h,c(v,"constructor",h),c(h,"constructor",m),m.displayName=c(h,s,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===m||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,h):(t.__proto__=h,c(t,s,"GeneratorFunction")),t.prototype=Object.create(v),t},e.awrap=function(t){return{__await:t}},_(w.prototype),c(w.prototype,u,(function(){return this})),e.AsyncIterator=w,e.async=function(t,r,n,i,o){void 0===o&&(o=Promise);var a=new w(l(t,r,n,i),o);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},_(v),c(v,s,"Generator"),c(v,a,(function(){return this})),c(v,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var r in t)e.push(r);return e.reverse(),function r(){for(;e.length;){var n=e.pop();if(n in t)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=k,O.prototype={constructor:O,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(S),!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 r(r,n){return a.type="throw",a.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 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"),s=i.call(o,"finallyLoc");if(u&&s){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(!s)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.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&&i.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;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,d):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),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),S(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 i=n.arg;S(r)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:k(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=void 0),d}},e}function i(t,e,r,n,i,o,a){try{var u=t[o](a),s=u.value}catch(c){return void r(c)}u.done?e(s):Promise.resolve(s).then(n,i)}function o(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var a=t.apply(e,r);function u(t){i(a,n,o,u,s,"next",t)}function s(t){i(a,n,o,u,s,"throw",t)}u(void 0)}))}}function a(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?a(Object(r),!0).forEach((function(e){s(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function s(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var c=document.createElement("style");c.innerHTML="._timer_r26ll_1{overflow:hidden;padding:0 14px}._tips_r26ll_5{margin:12px 0;padding:15px 12px;background:#ffffff;border-radius:10px}._tips_r26ll_5 ._tipsTitle_r26ll_11{font-size:18px;font-weight:500;color:#000;line-height:25px}._tips_r26ll_5 ._tipsTime_r26ll_17{padding-top:4px;font-size:14px;color:#ff9e5a;line-height:22px}._tips_r26ll_5 ._tipsTime_r26ll_17 span{font-weight:600}._timerContainer_r26ll_26{background:#ffffff;border-radius:10px;padding:0 5px 9px}._timerContainer_r26ll_26 .van-col{margin-bottom:5px}._tag_r26ll_34{height:28px;background:#eff6f5;border-radius:4px;font-size:14px;font-weight:500;color:#2dc7aa;display:flex;align-items:center;justify-content:center}._active_r26ll_45{background:#2dc7aa;color:#fff}._select_r26ll_49{color:#fff!important;background:#ffb752}._setting_ioswx_1 .el-dialog{--el-dialog-width: 485px !important}._setting_ioswx_1 .el-dialog__header,._setting_ioswx_1 .el-dialog__body{padding:0}._setting_ioswx_1 .el-radio-button__inner{border:var(--el-border);border-radius:var(--el-border-radius-base)!important;width:100%;padding:11px 19px!important}._setting_ioswx_1 .el-radio-button__original-radio:checked+.el-radio-button__inner{background-color:#e9fff8;color:var(--el-color-primary);box-shadow:none}._setting_ioswx_1 .el-checkbox__inner{overflow:hidden;border-radius:9999px}\n",document.head.appendChild(c),System.register(["./index-legacy.7a6c6e87.js","./toolsValidate-legacy.b90c63da.js","./isSameOrBefore-legacy.6faedce8.js","./index2-legacy.e34406f9.js","./index2-legacy.10c232f6.js","./index2-legacy.ba616e93.js"],(function(t){"use strict";var r,i,a,s,c,l,f,d,p,m,h,y,b,g,v,_,w,j,x,S,O;return{setters:[function(t){r=t.d,i=t.aM,a=t.c,s=t.a,c=t.bd,l=t.be,f=t.M,d=t.b,p=t.bb,m=t.b7,h=t.b8,y=t.aw,b=t.L,g=t.aJ},function(t){v=t.v},function(t){_=t.c,w=t.i},function(t){j=t.E,x=t.a},function(t){S=t.E,O=t.a},function(){}],execute:function(){var k="_timer_r26ll_1",E="_tips_r26ll_5",M="_tipsTitle_r26ll_11",L="_tipsTime_r26ll_17",T="_timerContainer_r26ll_26",N="_tag_r26ll_34",P="_active_r26ll_45",I="_select_r26ll_49";i.extend(_),i.extend(w);var C=r({name:"practice-timer",props:{timerObject:{type:Object,default:{}},onClose:{type:Function,default:function(){}},onChoice:{type:Function,default:function(t){}},courseMinutes:{type:Number,default:25},freeMinutes:{type:Number,default:5},startSetting:{type:String,default:"08:00"},endSetting:{type:String,default:"18:00"}},data:function(){return{timerList:[],list:[],weekList:["周一","周二","周三","周四","周五","周六","周日"],weekType:["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]}},mounted:function(){this.list=this.timerInit(this.startSetting,this.endSetting,this.courseMinutes+this.freeMinutes||30),console.log(this.endSetting)},methods:{timerInit:function(t,e,r){for(var n=i(t,"HH:mm"),o=i(e,"HH:mm"),a=[];n.add(r,"minute").isSameOrBefore(i(o));){var s={startTime:n.format("HH:mm"),endTime:n.add(r,"minute").format("HH:mm"),status:!1};a.push(s),n=n.add(r,"minute")}var c=[];return a.forEach((function(t){for(var e=[],r=0;r<7;r++)e.push(u({},t));c.push(e)})),this._initData(c)},_initData:function(t){var e=this.weekType,r=this.timerObject;return t.forEach((function(t){t.forEach((function(t,n){var o=r[e[n]],a=i(t.startTime,"HH:mm").format("HH:mm:ss");(null==o?void 0:o.some((function(t){return t.startTime===a})))&&(t.status=!0)}))})),t},btnStatus:function(t,e){return"row"===e?this.list.every((function(e){return e[t].status})):"col"==e?this.list[t].every((function(t){return t.status})):void 0},choice:function(t,e,r){"row"===e&&this.list.forEach((function(e,n){var i=!r;e[t].status=i})),"col"==e&&this.list[t].forEach((function(t,e){var n=!r;t.status=n}))},onSubmit:function(){var t=this,e=this.list,r={monday:[],tuesday:[],wednesday:[],thursday:[],friday:[],saturday:[],sunday:[]},n=this.weekType,o=!1;e.forEach((function(e,a){e.forEach((function(e,a){e.status&&(o=!0,r[n[a]].push({startTime:i(e.startTime,"HH:mm").format("HH:mm:ss"),endTime:i(e.endTime,"HH:mm").subtract(t.freeMinutes,"minute").format("HH:mm:ss")}))}))})),this.onChoice&&this.onChoice(r,o)}},render:function(){var t=this;return a("div",{class:k},[a("div",{class:E},[a("div",{class:M},[s("请选择陪练开始时间")]),a("div",{class:L},[s("陪练课单课时时长为 "),a("span",null,[this.courseMinutes]),s(" 分钟")])]),a("div",{class:[T,"mb12"]},[a(c,{gutter:5},{default:function(){return[a(l,{span:3,class:[N]},null),t.weekList.map((function(t){return a(l,{span:3},{default:function(){return[a("span",{class:N},[t])]}})}))]}}),a(c,{gutter:5,class:"pt-1"},{default:function(){return[a(l,{span:3,class:[N]},null),t.weekList.map((function(e,r){return a(l,{span:3},{default:function(){return[a("span",{class:[N,"cursor-pointer",t.btnStatus(r,"row")&&P],onClick:function(){return t.choice(r,"row",t.btnStatus(r,"row"))}},[s("全选")])]}})}))]}}),a("div",{class:"h-72 overflow-auto"},[this.list.map((function(e,r){return a(c,{gutter:5,class:"pt-1"},{default:function(){return[a(l,{span:3},{default:function(){return[a("span",{class:[N,"cursor-pointer",t.btnStatus(r,"col")&&P],onClick:function(){return t.choice(r,"col",t.btnStatus(r,"col"))}},[s("全选")])]}}),e.map((function(t){return a(l,{span:3},{default:function(){return[a("span",{class:[N,"cursor-pointer",t.status&&I],style:{color:"#333333"},onClick:function(){return t.status=!t.status}},[t.startTime])]}})}))]}})}))])]),a("div",{class:"text-center pt-3 pb-5"},[a(f,{class:"!w-40 !h-[38px]",onClick:function(){t.onClose()}},{default:function(){return[s("取消")]}}),a(f,{type:"primary",class:"!w-40 !h-[38px]",onClick:this.onSubmit},{default:function(){return[s("保存设置")]}})])])}}),H="_setting_ioswx_1";function F(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!y(t)}t("default",r({name:"practice-setting",data:function(){return{subjectList:[],chargeTypeArr:{0:"否",1:"是"},classTimeStatus:!1,subjectStatus:!1,timerStatus:!1,timeSetting:{courseMinutes:25,freeMinutes:5,startSetting:"08:00",endSetting:"18:00"},timerObject:{},form:{enableFlag:1,courseMinutes:null,freeMinutes:0,subjectIdTemp:"",subjectId:[],subjectPrice:[],skipHolidayFlag:1,setting:"未设置"},minutes:[],rate:0}},mounted:function(){var t=this;return o(n().mark((function e(){var r,i,o,a,s,c,l;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,d.get("/api-website/sysConfig/queryByParamNameList",{params:{paramNames:"practice_times_setting,practice_service_fee,course_start_setting,course_end_setting"}});case 3:return r=e.sent,(r.data||[]).forEach((function(e){if("practice_times_setting"===e.paramName){var r=e.paramValue?JSON.parse(e.paramValue):[],n=[];r.forEach((function(t){n.push(u(u({},t),{},{name:t.courseMinutes}))})),t.minutes=[].concat(n)}"practice_service_fee"===e.paramName&&(t.rate=e.paramValue),"course_start_setting"===e.paramName&&(t.timeSetting.startSetting=e.paramValue),"course_end_setting"===e.paramName&&(t.timeSetting.endSetting=e.paramValue)})),e.next=8,d.post("/api-website/teacher/querySubject");case 8:return i=e.sent,t.subjectList=i.data||[],e.next=12,d.post("/api-website/teacherFreeTime/getDetail",{data:{defaultFlag:1}});case 12:o=e.sent,(a=o.data)&&(t.timeSetting.courseMinutes=a.courseMinutes,t.timeSetting.freeMinutes=a.freeMinutes,t.timerObject={monday:a.monday?JSON.parse(a.monday):[],tuesday:a.tuesday?JSON.parse(a.tuesday):[],wednesday:a.wednesday?JSON.parse(a.wednesday):[],thursday:a.thursday?JSON.parse(a.thursday):[],friday:a.friday?JSON.parse(a.friday):[],saturday:a.saturday?JSON.parse(a.saturday):[],sunday:a.sunday?JSON.parse(a.sunday):[]},s=[],c=[],(a.subjectPrice||[]).forEach((function(t){s.push(t.subjectId),c.push({subjectId:t.subjectId,subjectPrice:t.subjectPrice,subjectName:t.subjectName})})),l=t.timerObject,t.form={enableFlag:a.enableFlag?1:0,courseMinutes:a.courseMinutes,freeMinutes:a.freeMinutes,subjectIdTemp:s.join(","),subjectId:s,subjectPrice:c,skipHolidayFlag:a.skipHolidayFlag?1:0,setting:l.monday.length>0||l.tuesday.length>0||l.wednesday.length>0||l.thursday.length>0||l.friday.length>0||l.saturday.length>0||l.sunday.length>0?"已设置":"未设置"}),e.next=19;break;case 17:e.prev=17,e.t0=e.catch(0);case 19:case"end":return e.stop()}}),e,null,[[0,17]])})))()},methods:{onSelect:function(t){this.form.courseMinutes!==t.courseMinutes&&(this.timerObject={},this.form.setting="未设置"),this.form.courseMinutes=t.courseMinutes,this.form.freeMinutes=t.freeMinutes},onTimer:function(){var t=this;return o(n().mark((function e(){var r;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,(r=t.form).courseMinutes){e.next=5;break}return p.error("请选择单课时时长"),e.abrupt("return");case 5:t.timeSetting.courseMinutes=Number(r.courseMinutes),t.timeSetting.freeMinutes=Number(r.freeMinutes),t.timerStatus=!0,e.next=12;break;case 10:e.prev=10,e.t0=e.catch(0);case 12:case"end":return e.stop()}}),e,null,[[0,10]])})))()},onChoiceTimer:function(t,e){this.form.setting=e?"已设置":"",this.timerObject=t,this.timerStatus=!1},onChoice:function(t){var r=t||[];this.form.subjectId=r,this.form.subjectIdTemp=r.join(",")||"";var n=e(this.form.subjectPrice);r.forEach((function(t){-1===n.findIndex((function(e){return e.subjectId===t}))&&n.push({subjectId:t,subjectPrice:null,subjectName:""})}));var i=[];n.forEach((function(t){r.some((function(e){return e===t.subjectId}))&&i.push(t)})),this.form.subjectPrice=i,this.subjectStatus=!1},getSubjectName:function(t){var e=this.subjectList.find((function(e){return e.id===t}));return e?e.name:""},onFormatter:function(t){t.target.value=v(t.target.value)},onSubmit:function(){var t=this;return o(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.$refs.form.validate(function(){var e=o(n().mark((function e(r){var i;return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!r){e.next=15;break}return e.prev=1,(i=t.form).subjectPrice.forEach((function(e){e.subjectName=t.getSubjectName(e.subjectId)})),i.setting="未设置"===i.setting?"":i.setting,e.next=7,d.post("/api-website/teacherFreeTime/upSet",{data:u(u({},i),t.timerObject)});case 7:p.success("设置成功"),setTimeout((function(){postMessage({api:"back",content:{}})}),500),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(1);case 13:e.next=17;break;case 15:return t.$nextTick((function(){document.getElementsByClassName("is-error")[0].scrollIntoView({block:"center",behavior:"smooth"})})),e.abrupt("return",!1);case 17:case"end":return e.stop()}}),e,null,[[1,11]])})));return function(t){return e.apply(this,arguments)}}());case 1:case"end":return e.stop()}}),e)})))()}},render:function(){var t,e,r=this;return a("div",{class:H},[a("div",{class:"text-base text-[#333] leading-none px-6 py-5 border-b border-b-[#E5E5E5]"},[s("陪练课设置")]),a(m,{labelPosition:"left",labelWidth:"180px",size:"large",model:this.form,ref:"form",class:"px-44 py-5"},{default:function(){return[a(h,{label:"是否开启陪练",prop:"enableFlag",rules:[{required:!0,message:"请选择是否开启陪练"}]},{default:function(){return[a(j,{class:"w-full",modelValue:r.form.enableFlag,"onUpdate:modelValue":function(t){return r.form.enableFlag=t}},{default:function(){return[a(j.Option,{value:1,label:"是"},{default:function(){return[s("是")]}}),a(j.Option,{value:0,label:"否"},{default:function(){return[s("否")]}})]}})]}}),a(h,{label:"可教授声部",prop:"subjectId",rules:[{required:!0,message:"请选择可教授声部",trigger:"change"}]},{default:function(){return[a(j,{multiple:!0,filterable:!0,placeholder:"请选择可教授声部",class:"w-full",multipleLimit:5,modelValue:r.form.subjectId,"onUpdate:modelValue":function(t){return r.form.subjectId=t},onChange:r.onChoice},F(t=r.subjectList.map((function(t){return a(x,{key:t.id,value:t.id,label:t.name},null)})))?t:{default:function(){return[t]}})]}}),a(h,{label:"单课时长",prop:"courseMinutes",rules:[{required:!0,message:"请选择单课时长",trigger:"change"}]},{default:function(){return[a(j,{class:"w-full",placeholder:"请选择单课时时长",modelValue:r.form.courseMinutes,"onUpdate:modelValue":function(t){return r.form.courseMinutes=t}},F(e=r.minutes.map((function(t){return a(x,{key:t.courseMinutes,value:t.courseMinutes},{default:function(){return[t.name]}})})))?e:{default:function(){return[e]}})]}}),r.form.subjectPrice.map((function(t,e){return a(h,{label:"".concat(r.getSubjectName(t.subjectId),"陪练价格"),prop:"subjectPrice.".concat(e,".subjectPrice"),rules:[{required:!0,message:"请选择声部陪练价格"}]},{default:function(){return[a(b,{onKeyup:r.onFormatter,type:"text",placeholder:"请输入陪练价格",modelValue:t.subjectPrice,"onUpdate:modelValue":function(e){return t.subjectPrice=e}},{append:function(){return a("span",{class:"text-base text-[#333]"},[s("元")])}})]}})})),a(h,{label:"是否跳过节假日"},{default:function(){return[a(S,{modelValue:r.form.skipHolidayFlag,"onUpdate:modelValue":function(t){return r.form.skipHolidayFlag=t}},{default:function(){return[a(O,{label:1,class:"mr-3 w-24"},{default:function(){return[s("是")]}}),a(O,{label:0,class:"w-24"},{default:function(){return[s("否")]}})]}})]}}),a(h,{label:"陪练时间段"},{default:function(){return[a("div",{onClick:r.onTimer,class:"w-full"},[a(b,{readonly:!0,class:"cursor-pointer",modelValue:r.form.setting,"onUpdate:modelValue":function(t){return r.form.setting=t},placeholder:"请选择陪练时间段",suffixIcon:"ArrowDown"},null)])]}})]}}),a("div",{class:"border-t border-t-[#E5E5E5] text-center pt-6 pb-7"},[a(f,{class:"!w-40 !h-[38px]",onClick:function(){r.form={enableFlag:1,courseMinutes:null,freeMinutes:0,subjectIdTemp:"",subjectId:[],subjectPrice:[],skipHolidayFlag:1,setting:"未设置"},r.$refs.form.resetFields()}},{default:function(){return[s("重置")]}}),a(f,{type:"primary",class:"!w-40 !h-[38px]",onClick:this.onSubmit},{default:function(){return[s("保存设置")]}})]),a(g,{modelValue:this.timerStatus,"onUpdate:modelValue":function(t){return r.timerStatus=t},showClose:!0},{default:function(){return[a(C,{onChoice:r.onChoiceTimer,onClose:function(){r.timerStatus=!1},timerObject:r.timerObject,courseMinutes:Number(r.timeSetting.courseMinutes),freeMinutes:Number(r.timeSetting.freeMinutes),startSetting:r.timeSetting.startSetting,endSetting:r.timeSetting.endSetting},null)]}})])}}))}}}))}();