| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564 |
- !(function () {
- function e(e, t) {
- var n = Object.keys(e)
- if (Object.getOwnPropertySymbols) {
- var r = Object.getOwnPropertySymbols(e)
- t &&
- (r = r.filter(function (t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable
- })),
- n.push.apply(n, r)
- }
- return n
- }
- function t(e, t, n) {
- return (
- t in e
- ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 })
- : (e[t] = n),
- e
- )
- }
- function n(e) {
- return (
- (function (e) {
- if (Array.isArray(e)) return r(e)
- })(e) ||
- (function (e) {
- if (('undefined' != typeof Symbol && null != e[Symbol.iterator]) || null != e['@@iterator'])
- return Array.from(e)
- })(e) ||
- (function (e, t) {
- if (!e) return
- if ('string' == typeof e) return r(e, t)
- var n = Object.prototype.toString.call(e).slice(8, -1)
- 'Object' === n && e.constructor && (n = e.constructor.name)
- if ('Map' === n || 'Set' === n) return Array.from(e)
- if ('Arguments' === n || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return r(e, t)
- })(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 r(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 a(e, t, n, r, a, i, o) {
- try {
- var l = e[i](o),
- c = l.value
- } catch (s) {
- return void n(s)
- }
- l.done ? t(c) : Promise.resolve(c).then(r, a)
- }
- function i(e) {
- return function () {
- var t = this,
- n = arguments
- return new Promise(function (r, i) {
- var o = e.apply(t, n)
- function l(e) {
- a(o, r, i, l, c, 'next', e)
- }
- function c(e) {
- a(o, r, i, l, c, 'throw', e)
- }
- l(void 0)
- })
- }
- }
- var o = document.createElement('style')
- ;(o.innerHTML =
- '._tips_ehifr_1{display:flex;margin:.32rem .34667rem;background:#ffebdd;border-radius:.26667rem;padding:.18667rem .32rem;font-size:.34667rem;color:#f67146;line-height:.53333rem}._tips_ehifr_1 ._icon_ehifr_11{font-size:.53333rem;margin-right:.16rem}._informationBottom_ehifr_15 .van-sticky{position:absolute}._cellGroup_ehifr_18{margin:0 .34667rem;border-radius:.26667rem;overflow:hidden}._cellGroup_ehifr_18 ._classType_ehifr_23{flex:0 auto}._cellGroup_ehifr_18 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._cellGroup_ehifr_18 .van-cell__value{color:#333}._cellGroup_ehifr_18 .van-radio-group,._cellGroup_ehifr_18 .van-checkbox-group{justify-content:flex-end}._cellGroup_ehifr_18 ._radioSection_ehifr_37{position:relative;min-width:.85333rem;justify-content:center}._cellGroup_ehifr_18 ._radioItem_ehifr_42{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._cellGroup_ehifr_18 ._radioSection_ehifr_37+._radioSection_ehifr_37{margin-left:.32rem}._classList_13nhk_1 ._cell_13nhk_1{margin:.34667rem;border-radius:.26667rem;width:calc(100% - .69333rem);padding:.4rem}._classList_13nhk_1 ._content_13nhk_7 ._title_13nhk_7{display:flex;align-items:center;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._classList_13nhk_1 ._content_13nhk_7 ._title_13nhk_7 i{margin-right:.16rem;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.05333rem}._classList_13nhk_1 ._content_13nhk_7 ._name_13nhk_22{padding-top:.26667rem;font-size:.37333rem;color:#777;line-height:.53333rem;max-width:6.13333rem}._classList_13nhk_1 ._teacherName_13nhk_29{display:inline-block;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:2.13333rem}._standard_8h5p6_1{--van-dialog-message-font-size: .42667rem !important}._tips_8h5p6_4{display:flex;margin:.32rem .34667rem;background:#ffebdd;border-radius:.26667rem;padding:.18667rem .32rem;font-size:.34667rem;color:#f67146;line-height:.53333rem}._tips_8h5p6_4 ._icon_8h5p6_14{font-size:.53333rem;margin-right:.16rem}._informationBottom_8h5p6_18 .van-sticky{position:absolute}._cellGroup_8h5p6_21{margin:0 .34667rem;border-radius:.26667rem;overflow:hidden}._cellGroup_8h5p6_21 .van-cell{font-size:.42667rem;padding:.48rem .32rem}._cellGroup_8h5p6_21 .van-cell__value{color:#333}._cellGroup_8h5p6_21 .van-radio-group{justify-content:flex-end}._cellGroup_8h5p6_21 ._radioSection_8h5p6_36{position:relative;min-width:.85333rem;justify-content:center}._cellGroup_8h5p6_21 ._radioItem_8h5p6_41{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._cellGroup_8h5p6_21 ._radioSection_8h5p6_36+._radioSection_8h5p6_36{margin-left:.32rem}._dialogTitle_8h5p6_52{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_8h5p6_52 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._train_r2wxa_1{--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}\n'),
- document.head.appendChild(o),
- System.register(
- [
- './index-legacy.57c73898.js',
- './index-legacy.b30008f0.js',
- './create-legacy.8427d76a.js',
- './index-legacy.5d5123be.js',
- './index-legacy.cc7dc1ca.js',
- './index-legacy.2f9d1390.js',
- './index-legacy.118ddf1b.js',
- './index-legacy.8c2c62bc.js',
- './index-legacy.698b918a.js',
- './index-legacy.5f0e7287.js',
- './index-legacy.79ba2023.js',
- './index-legacy.579adf27.js',
- './index-legacy.55bee427.js',
- './index-legacy.fbbe1a45.js',
- './teacher-list-legacy.971ded7c.js',
- './index-legacy.07eb86de.js',
- './index-legacy.43317ab8.js',
- './Checker-legacy.82853f5e.js',
- './Picker-legacy.a502fc12.js',
- './utils-legacy.37743e8a.js',
- './index-legacy.c75fe8a2.js',
- './isSameOrBefore-legacy.f3216b79.js',
- './index-legacy.ac2c4a7e.js',
- './index-legacy.27440dba.js',
- './icon_teacher-legacy.07765f44.js',
- './index-legacy.cf09ad36.js',
- './index-legacy.ec34f3ff.js',
- './use-tab-status-legacy.8668a42b.js',
- './index-legacy.3427fdb7.js',
- './index-legacy.bf0d95d4.js'
- ],
- function (r) {
- 'use strict'
- var a,
- o,
- l,
- c,
- s,
- u,
- d,
- f,
- p,
- m,
- h,
- _,
- g,
- y,
- v,
- b,
- S,
- k,
- w,
- x,
- T,
- A,
- C,
- j,
- E,
- F,
- D,
- L,
- I,
- G,
- O,
- H,
- V,
- N,
- U,
- z,
- R,
- M,
- B,
- P,
- Y,
- $
- return {
- setters: [
- function (e) {
- ;(a = e.d),
- (o = e.ag),
- (l = e.$),
- (c = e.c),
- (s = e.a5),
- (u = e.q),
- (d = e.ai),
- (f = e.o),
- (p = e.B),
- (m = e.P),
- (h = e.a_),
- (_ = e.r),
- (g = e.Z),
- (y = e.aj),
- (v = e.ak),
- (b = e.m),
- (S = e.ah),
- (k = e.a$),
- (w = e.g),
- (x = e.R)
- },
- function (e) {
- T = e.O
- },
- function (e) {
- ;(A = e.f), (C = e.w), (j = e.a), (E = e.r)
- },
- function (e) {
- F = e.C
- },
- function (e) {
- D = e.C
- },
- function (e) {
- L = e.C
- },
- function (e) {
- I = e.T
- },
- function (e) {
- G = e.C
- },
- function (e) {
- O = e.F
- },
- function (e) {
- ;(H = e.R), (V = e.a)
- },
- function (e) {
- N = e.P
- },
- function (e) {
- U = e.D
- },
- function (e) {
- z = e.O
- },
- function (e) {
- ;(R = e.C), (M = e.T)
- },
- function (e) {
- B = e.T
- },
- function (e) {
- P = e.S
- },
- function (e) {
- ;(Y = e.T), ($ = e.a)
- },
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {}
- ],
- execute: function () {
- var q = {
- tips: '_tips_ehifr_1',
- icon: '_icon_ehifr_11',
- informationBottom: '_informationBottom_ehifr_15',
- cellGroup: '_cellGroup_ehifr_18',
- classType: '_classType_ehifr_23',
- radioSection: '_radioSection_ehifr_37',
- radioItem: '_radioItem_ehifr_42'
- },
- W = a({
- name: 'practice',
- props: { address: { type: String, default: '' } },
- setup: function (e) {
- var t = o(),
- n = function () {
- if (A.classList.length > 0) A.status = !0
- else if (A.classType.length <= 0) f('请选择课程类型')
- else if (A.trainStartDate)
- if (A.week)
- if (e.address) {
- var n = []
- A.classType.forEach(function (e) {
- n.push({
- classType: e,
- startTime: null,
- endTime: null,
- trainTimer: null,
- times: null,
- classIdList: []
- })
- }),
- (A.classPracticeList = n),
- t.push('/practice-detail')
- } else f('您所在的学校暂未设置地址')
- else f('请选择周次')
- else f('请选择课程开始日期')
- }
- return (
- l(function () {}),
- function () {
- return c(
- 'div',
- {
- class: q.practice,
- style: {
- minHeight:
- 'calc(100vh - var(--header-height) - var(--van-tabs-line-height))',
- overflow: 'hidden'
- }
- },
- [
- c('div', { class: q.tips }, [
- c(s, { name: 'warning', class: q.icon }, null),
- u('自定义训练可对任意班级进行排课,课程类型可多选')
- ]),
- c(
- F,
- { inset: !0, class: q.cellGroup },
- {
- default: function () {
- return [
- c(
- D,
- { title: '课程类型', titleClass: q.classType },
- {
- value: function () {
- return c(
- L,
- {
- 'checked-color': '#FF8057',
- modelValue: A.classType,
- 'onUpdate:modelValue': function (e) {
- return (A.classType = e)
- },
- direction: 'horizontal'
- },
- {
- default: function () {
- return [
- c(
- I,
- {
- size: 'large',
- type: 'primary',
- color: A.classType.includes('SINGLE')
- ? '#FF8057'
- : '#EAEAEA',
- textColor: A.classType.includes('SINGLE')
- ? '#FFF'
- : '#AAA',
- class: q.radioSection
- },
- {
- default: function () {
- return [
- c(
- G,
- { class: q.radioItem, name: 'SINGLE' },
- null
- ),
- u('声部课')
- ]
- }
- }
- ),
- c(
- I,
- {
- size: 'large',
- type: 'primary',
- color: A.classType.includes('MUSIC_THEORY')
- ? '#FF8057'
- : '#EAEAEA',
- textColor: A.classType.includes('MUSIC_THEORY')
- ? '#FFF'
- : '#AAA',
- class: q.radioSection
- },
- {
- default: function () {
- return [
- c(
- G,
- {
- class: q.radioItem,
- name: 'MUSIC_THEORY'
- },
- null
- ),
- u('乐理课')
- ]
- }
- }
- ),
- c(
- I,
- {
- size: 'large',
- type: 'primary',
- color: A.classType.includes(
- 'INSTRUMENTAL_ENSEMBLE'
- )
- ? '#FF8057'
- : '#EAEAEA',
- textColor: A.classType.includes(
- 'INSTRUMENTAL_ENSEMBLE'
- )
- ? '#FFF'
- : '#AAA',
- class: q.radioSection
- },
- {
- default: function () {
- return [
- c(
- G,
- {
- class: q.radioItem,
- name: 'INSTRUMENTAL_ENSEMBLE'
- },
- null
- ),
- u('合奏课')
- ]
- }
- }
- )
- ]
- }
- }
- )
- }
- }
- ),
- c(
- O,
- {
- label: '课程开始日期',
- inputAlign: 'right',
- placeholder: '请选择课程开始日期',
- readonly: !0,
- isLink: !0,
- modelValue: A.trainStartDate
- ? d(A.trainStartDate).format('YYYY年MM月DD日')
- : '',
- onClick: function () {
- return (A.calendarTimeStatus = !0)
- }
- },
- null
- ),
- c(
- O,
- {
- label: '课程周次',
- inputAlign: 'right',
- placeholder: '请选择课程周次',
- readonly: !0,
- modelValue: C(A.week),
- onClick: function () {
- A.trainStartDate || f('请选择课程开始日期')
- }
- },
- null
- ),
- c(
- D,
- { title: '跳过节假日' },
- {
- value: function () {
- return c(
- H,
- {
- 'checked-color': '#FF8057',
- modelValue: A.skipHoliday,
- 'onUpdate:modelValue': function (e) {
- return (A.skipHoliday = e)
- },
- direction: 'horizontal'
- },
- {
- default: function () {
- return [
- c(
- I,
- {
- size: 'large',
- type: 'primary',
- color:
- 1 !== A.skipHoliday ? '#EAEAEA' : '#FF8057',
- textColor:
- 1 !== A.skipHoliday ? '#AAA' : '#FFF',
- class: q.radioSection,
- round: !0
- },
- {
- default: function () {
- return [
- c(V, { class: q.radioItem, name: 1 }, null),
- u('是')
- ]
- }
- }
- ),
- c(
- I,
- {
- size: 'large',
- type: 'primary',
- color:
- 0 !== A.skipHoliday ? '#EAEAEA' : '#FF8057',
- textColor:
- 0 !== A.skipHoliday ? '#AAA' : '#FFF',
- class: q.radioSection,
- round: !0
- },
- {
- default: function () {
- return [
- c(V, { class: q.radioItem, name: 0 }, null),
- u('否')
- ]
- }
- }
- )
- ]
- }
- }
- )
- }
- }
- )
- ]
- }
- }
- ),
- c(
- T,
- { position: 'bottom', class: q.informationBottom },
- {
- default: function () {
- return [
- c('div', { class: 'btnGroup', style: { marginTop: '24px' } }, [
- c(
- p,
- { type: 'primary', block: !0, round: !0, onClick: n },
- {
- default: function () {
- return [u('下一步')]
- }
- }
- )
- ])
- ]
- }
- }
- ),
- c(
- m,
- {
- show: A.weekStatus,
- 'onUpdate:show': function (e) {
- return (A.weekStatus = e)
- },
- position: 'bottom',
- round: !0,
- class: 'popupBottomSearch',
- teleport: 'body'
- },
- {
- default: function () {
- return [
- c(
- N,
- {
- columns: j,
- onCancel: function () {
- return (A.weekStatus = !1)
- },
- onConfirm: function (e) {
- ;(A.week = e.selectedValues[0]), (A.weekStatus = !1)
- }
- },
- null
- )
- ]
- }
- }
- ),
- c(
- m,
- {
- show: A.calendarTimeStatus,
- 'onUpdate:show': function (e) {
- return (A.calendarTimeStatus = e)
- },
- position: 'bottom',
- round: !0,
- class: 'popupBottomSearch',
- teleport: 'body'
- },
- {
- default: function () {
- return [
- c(
- U,
- {
- minDate: new Date(),
- modelValue: A.classDate,
- 'onUpdate:modelValue': function (e) {
- return (A.classDate = e)
- },
- formatter: h,
- onCancel: function () {
- return (A.calendarTimeStatus = !1)
- },
- onConfirm: function (e) {
- ;(A.calendarTimeStatus = !1),
- (A.trainStartDate = e.selectedValues.join('-'))
- var t = d(A.trainStartDate).day(),
- n = j[0 === t ? 6 : t - 1]
- A.week = n.value
- }
- },
- null
- )
- ]
- }
- }
- )
- ]
- )
- }
- )
- }
- }),
- Z = '_classList_13nhk_1',
- J = '_cell_13nhk_1',
- K = '_content_13nhk_7',
- Q = '_title_13nhk_7',
- X = '_name_13nhk_22',
- ee = '_teacherName_13nhk_29',
- te = a({
- name: 'class-list',
- props: {
- classList: {
- type: Array,
- default: function () {
- return []
- }
- }
- },
- emits: ['close', 'confirm'],
- setup: function (e, t) {
- t.slots, t.attrs
- var r = t.emit,
- a = _({ teacherStatus: !1, list: [], isClick: !1, selectItem: {} }),
- o = (function () {
- var e = i(
- regeneratorRuntime.mark(function e() {
- var t
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- if (
- ((e.prev = 0),
- (t = []),
- a.list.forEach(function (e) {
- e.teacherId &&
- t.push({ classGroupId: e.id, teacherId: e.teacherId })
- }),
- !(t.length <= 0))
- ) {
- e.next = 6
- break
- }
- return r('close'), e.abrupt('return')
- case 6:
- return (
- (a.isClick = !0),
- (e.next = 9),
- b.post('/api-school/classGroup/updateTeacher', { data: t })
- )
- case 9:
- ;(a.isClick = !1), r('confirm'), r('close'), (e.next = 17)
- break
- case 14:
- ;(e.prev = 14), (e.t0 = e.catch(0)), (a.isClick = !1)
- case 17:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 14]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })()
- return (
- g(
- function () {
- return e.classList
- },
- function () {
- a.list = n(e.classList)
- }
- ),
- l(function () {
- a.list = n(e.classList)
- }),
- function () {
- return c('div', { class: [Z, a.list.length <= 0 && 'emptyRootContainer'] }, [
- c(y, { title: '指定伴学老师', desotry: !1 }, null),
- a.list.map(function (e) {
- return c(
- D,
- {
- class: J,
- center: !0,
- isLink: !0,
- onClick: function () {
- ;(a.selectItem = e), (a.teacherStatus = !0)
- },
- valueClass: [ee, 'van-ellipsis']
- },
- {
- title: function () {
- return c('div', { class: K }, [
- c('div', { class: Q }, [c('i', null, null), e.name]),
- c('div', { class: [X, 'van-ellipsis'] }, [e.orchestraName])
- ])
- },
- value: function () {
- return c(
- 'div',
- { style: { color: e.teacherName ? '' : 'var(--van-primary)' } },
- [e.teacherName ? e.teacherName : '去设置']
- )
- }
- }
- )
- }),
- e.classList.length <= 0 && c(v, { btnStatus: !1, tips: '暂无班级' }, null),
- c(
- P,
- { position: 'bottom', style: { width: '100%' } },
- {
- default: function () {
- return [
- c('div', { class: 'btnGroup' }, [
- c(
- p,
- {
- round: !0,
- block: !0,
- type: 'primary',
- onClick: o,
- disabled: a.isClick
- },
- {
- default: function () {
- return [u('完成')]
- }
- }
- )
- ])
- ]
- }
- }
- ),
- c(
- m,
- {
- show: a.teacherStatus,
- 'onUpdate:show': function (e) {
- return (a.teacherStatus = e)
- },
- position: 'bottom',
- round: !0,
- style: { height: '80%' }
- },
- {
- default: function () {
- return [
- c(
- B,
- {
- header: !1,
- mode: 'sticky',
- courseType: a.selectItem.courseType,
- onClose: function () {
- return (a.teacherStatus = !1)
- },
- onSelect: function (e) {
- ;(a.selectItem.teacherId = e.id),
- (a.selectItem.teacherName = e.nickname)
- }
- },
- null
- )
- ]
- }
- }
- )
- ])
- }
- )
- }
- }),
- ne = '_standard_8h5p6_1',
- re = '_tips_8h5p6_4',
- ae = '_icon_8h5p6_14',
- ie = '_informationBottom_8h5p6_18',
- oe = '_cellGroup_8h5p6_21',
- le = '_radioSection_8h5p6_36',
- ce = '_radioItem_8h5p6_41',
- se = '_dialogTitle_8h5p6_52',
- ue = a({
- name: 'standard',
- props: { address: { type: String, default: '' } },
- setup: function (n) {
- S()
- var r = o(),
- a = (function () {
- var e = i(
- regeneratorRuntime.mark(function e(t) {
- var n, r
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (e.prev = 0),
- (e.next = 3),
- b.post('/api-school/orchestra/trainingPlanTime', {
- data: {
- schoolId: w.user.data.school.id,
- skipHoliday: !!A.skipHoliday,
- type: 'STANDARD',
- calendarDate: d(t).format('YYYY-MM-DD')
- }
- })
- )
- case 3:
- ;(n = e.sent),
- (r = n.data),
- (A.calendarList = r || []),
- (e.next = 10)
- break
- case 8:
- ;(e.prev = 8), (e.t0 = e.catch(0))
- case 10:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 8]]
- )
- })
- )
- return function (t) {
- return e.apply(this, arguments)
- }
- })(),
- h = (function () {
- var e = i(
- regeneratorRuntime.mark(function e() {
- var t,
- n,
- r,
- a = arguments
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (t = !(a.length > 0 && void 0 !== a[0]) || a[0]),
- (e.prev = 1),
- (e.next = 4),
- b.post('/api-school/classGroup/page', {
- data: {
- page: 1,
- rows: 200,
- schoolId: w.user.data.school.id,
- hasTeacher: !1,
- orchestraType: 'DELIVERY'
- }
- })
- )
- case 4:
- ;(n = e.sent),
- (r = n.data),
- (A.classList = r.rows || []),
- A.classList.length > 0 && t && (A.status = !0),
- (e.next = 12)
- break
- case 10:
- ;(e.prev = 10), (e.t0 = e.catch(1))
- case 12:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[1, 10]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- _ = (function () {
- var e = i(
- regeneratorRuntime.mark(function e() {
- var t, n, r, a
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (e.prev = 0),
- (e.next = 3),
- b.get(
- '/api-school/orchestra/semesterStandardCourseNum/' +
- w.user.data.school.id
- )
- )
- case 3:
- for (
- t = e.sent,
- n = t.data,
- r = Number(A.pickerNum - n),
- A.times = r,
- a = 0;
- a < r;
- a++
- )
- A.timerPickerList.push({ text: a + 1 + '次', value: a + 1 })
- r <= 0 && (A.numberDialogStatus = !0), (e.next = 13)
- break
- case 11:
- ;(e.prev = 11), (e.t0 = e.catch(0))
- case 13:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 11]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- g = function () {
- A.times <= 0
- ? (A.numberDialogStatus = !0)
- : A.classList.length > 0
- ? (A.status = !0)
- : A.trainStartDate
- ? A.trainStartTime
- ? A.week
- ? n.address
- ? r.push('/train-content')
- : f('您所在的学校暂未设置地址')
- : f('请选择周次')
- : f('请选择训练开始时间')
- : f('请选择训练开始日期')
- }
- return (
- l(function () {
- a(A.calendarDate || new Date()), h(), _()
- }),
- function () {
- return c(
- 'div',
- {
- class: ne,
- style: {
- minHeight:
- 'calc(100vh - var(--header-height) - var(--van-tabs-line-height))',
- overflow: 'hidden'
- }
- },
- [
- c('div', { class: re }, [
- c(s, { name: 'warning', class: ae }, null),
- u('标准训练可对交付团进行整学期标准训练排课')
- ]),
- c(
- F,
- { inset: !0, class: oe },
- {
- default: function () {
- return [
- c(
- D,
- { title: '跳过节假日' },
- {
- value: function () {
- return c(
- H,
- {
- 'checked-color': '#FF8057',
- modelValue: A.skipHoliday,
- 'onUpdate:modelValue': function (e) {
- return (A.skipHoliday = e)
- },
- direction: 'horizontal',
- onChange: function () {
- ;(A.trainStartDate = null),
- (A.trainStartTime = null),
- (A.calendarDate = null),
- a()
- }
- },
- {
- default: function () {
- return [
- c(
- I,
- {
- size: 'large',
- type: 'primary',
- color:
- 1 !== A.skipHoliday ? '#EAEAEA' : '#FF8057',
- textColor:
- 1 !== A.skipHoliday ? '#AAA' : '#FFF',
- class: le,
- round: !0
- },
- {
- default: function () {
- return [
- c(V, { class: ce, name: 1 }, null),
- u('是')
- ]
- }
- }
- ),
- c(
- I,
- {
- size: 'large',
- type: 'primary',
- color:
- 0 !== A.skipHoliday ? '#EAEAEA' : '#FF8057',
- textColor:
- 0 !== A.skipHoliday ? '#AAA' : '#FFF',
- class: le,
- round: !0
- },
- {
- default: function () {
- return [
- c(V, { class: ce, name: 0 }, null),
- u('否')
- ]
- }
- }
- )
- ]
- }
- }
- )
- }
- }
- ),
- c(
- O,
- {
- label: '训练开始日期',
- placeholder: '请选择训练开始日期',
- isLink: !0,
- readonly: !0,
- inputAlign: 'right',
- onClick: function () {
- return (A.calendarStatus = !0)
- },
- modelValue: A.trainStartDate
- ? d(A.trainStartDate).format('YYYY年MM月DD日')
- : ''
- },
- null
- ),
- c(
- O,
- {
- label: '训练开始时间',
- isLink: !0,
- readonly: !0,
- placeholder: '请选择训练开始日期',
- inputAlign: 'right',
- modelValue: A.trainStartTime
- ? d(A.trainStartTime).format('HH:mm')
- : '',
- onClick: function () {
- A.trainStartDate
- ? (A.timerStatus = !0)
- : f('请选择训练开始日期')
- }
- },
- null
- ),
- c(
- D,
- { title: '训练时长', value: A.trainTimer + '分钟' },
- {
- 'right-icon': function () {
- return c(
- s,
- {
- class: 'van-cell__right-icon',
- name: 'arrow',
- color: '#fff'
- },
- null
- )
- }
- }
- ),
- c(
- O,
- {
- label: '训练周次',
- isLink: !0,
- clickable: !1,
- placeholder: '请选择训练周次',
- modelValue: C(A.week),
- inputAlign: 'right',
- class: 'form-control-icon',
- readonly: !0
- },
- null
- ),
- c(
- D,
- {
- title: '训练次数',
- isLink: !(A.times <= 0),
- value: A.times + '次',
- onClick: function () {
- A.times <= 0 || (A.numberStatus = !0)
- }
- },
- null
- )
- ]
- }
- }
- ),
- c(
- T,
- { position: 'bottom', class: ie },
- {
- default: function () {
- return [
- c('div', { class: 'btnGroup', style: { marginTop: '24px' } }, [
- c(
- p,
- { type: 'primary', block: !0, round: !0, onClick: g },
- {
- default: function () {
- return [u('下一步')]
- }
- }
- )
- ])
- ]
- }
- }
- ),
- c(
- m,
- {
- show: A.weekStatus,
- 'onUpdate:show': function (e) {
- return (A.weekStatus = e)
- },
- position: 'bottom',
- round: !0,
- class: 'popupBottomSearch'
- },
- {
- default: function () {
- return [
- c(
- N,
- {
- columns: j,
- onCancel: function () {
- return (A.weekStatus = !1)
- },
- onConfirm: function (e) {
- ;(A.week = e.selectedValues[0]), (A.weekStatus = !1)
- }
- },
- null
- )
- ]
- }
- }
- ),
- c(
- z,
- {
- modelValue: A.calendarStatus,
- 'onUpdate:modelValue': function (e) {
- return (A.calendarStatus = e)
- },
- position: 'bottom',
- destroy: !0,
- teleport: 'body'
- },
- {
- default: function () {
- return [
- c(
- R,
- {
- list: A.calendarList,
- nextMonth: function (e) {
- return a(e)
- },
- prevMonth: function (e) {
- return a(e)
- },
- toDayMonth: function (e) {
- return a(e)
- },
- onSelect: function (n) {
- ;(A.calendarStatus = !1),
- (A.trainStartDate = n),
- (A.trainStartTime = null)
- var r = d(n).day(),
- a = j[0 === r ? 6 : r - 1]
- ;(A.week = a.value),
- A.calendarList.forEach(function (r) {
- d(r.calendarDate).isSame(n) &&
- ((A.timerList = (function (n) {
- for (var r = 1; r < arguments.length; r++) {
- var a = null != arguments[r] ? arguments[r] : {}
- r % 2
- ? e(Object(a), !0).forEach(function (e) {
- t(n, e, a[e])
- })
- : Object.getOwnPropertyDescriptors
- ? Object.defineProperties(
- n,
- Object.getOwnPropertyDescriptors(a)
- )
- : e(Object(a)).forEach(function (e) {
- Object.defineProperty(
- n,
- e,
- Object.getOwnPropertyDescriptor(a, e)
- )
- })
- }
- return n
- })({}, r)),
- setTimeout(function () {
- A.timerStatus = !0
- }, 100))
- })
- },
- onDestory: function () {
- A.trainStartDate ? a(A.trainStartDate) : a()
- },
- calendarDate: A.calendarDate,
- 'onUpdate:calendarDate': function (e) {
- return (A.calendarDate = e)
- }
- },
- null
- )
- ]
- }
- }
- ),
- c(
- z,
- {
- modelValue: A.timerStatus,
- 'onUpdate:modelValue': function (e) {
- return (A.timerStatus = e)
- },
- position: 'bottom',
- style: { background: '#F6F6F6' },
- destroy: !0,
- teleport: 'body'
- },
- {
- default: function () {
- return [
- A.timerStatus &&
- c(
- M,
- {
- timerList: A.timerList,
- times: A.trainTimer,
- onClose: function () {
- return (A.timerStatus = !1)
- },
- onConfirm: function (e) {
- A.trainStartTime = e
- }
- },
- null
- )
- ]
- }
- }
- ),
- c(
- m,
- {
- show: A.numberStatus,
- 'onUpdate:show': function (e) {
- return (A.numberStatus = e)
- },
- position: 'bottom',
- round: !0,
- class: 'popupBottomSearch',
- teleport: 'body'
- },
- {
- default: function () {
- return [
- c(
- N,
- {
- columns: A.timerPickerList,
- onCancel: function () {
- return (A.numberStatus = !1)
- },
- onConfirm: function (e) {
- var t = e.selectedValues[0]
- ;(A.times = t), (A.numberStatus = !1)
- }
- },
- null
- )
- ]
- }
- }
- ),
- c(
- k,
- {
- show: A.status,
- 'onUpdate:show': function (e) {
- return (A.status = e)
- },
- message: '您有<span style="color: #F44541;">'.concat(
- A.classList.length,
- '个</span>班级尚未指定伴学老师,请完成指定后再进行训练规划。'
- ),
- messageAlign: 'left',
- allowHtml: !0,
- confirmButtonText: '去设置',
- cancelButtonText: '暂不设置',
- teleport: 'body',
- showCancelButton: !0,
- onConfirm: function () {
- A.classStatus = !0
- }
- },
- {
- title: function () {
- return c('div', { class: se }, [
- c('i', null, null),
- u('指定伴学老师')
- ])
- }
- }
- ),
- c(
- k,
- {
- show: A.numberDialogStatus,
- 'onUpdate:show': function (e) {
- return (A.numberDialogStatus = e)
- },
- message: '暂无可训练次数',
- messageAlign: 'center',
- confirmButtonText: '确定',
- teleport: 'body'
- },
- {
- title: function () {
- return c('div', { class: se }, [c('i', null, null), u('训练次数')])
- }
- }
- ),
- c(
- z,
- {
- modelValue: A.classStatus,
- 'onUpdate:modelValue': function (e) {
- return (A.classStatus = e)
- },
- position: 'bottom',
- style: { background: '#F6F6F6' },
- destroy: !0,
- teleport: 'body'
- },
- {
- default: function () {
- return [
- c(
- te,
- {
- classList: A.classList,
- onClose: function () {
- return (A.classStatus = !1)
- },
- onConfirm: function () {
- h(!1)
- }
- },
- null
- )
- ]
- }
- }
- )
- ]
- )
- }
- )
- }
- }),
- de = '_train_r2wxa_1'
- r(
- 'default',
- a({
- name: 'train-planning',
- setup: function () {
- var e = sessionStorage.getItem('trainType'),
- t = x(e || 'standard'),
- n = x(''),
- r = (function () {
- var e = i(
- regeneratorRuntime.mark(function e() {
- var t, r
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (e.prev = 0),
- (e.next = 3),
- b.get(
- '/api-school/school/detail/'.concat(w.user.data.school.id)
- )
- )
- case 3:
- ;(t = e.sent),
- (r = t.data),
- (n.value = r.address || ''),
- (e.next = 10)
- break
- case 8:
- ;(e.prev = 8), (e.t0 = e.catch(0))
- case 10:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 8]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- a = x(0)
- return (
- l(function () {
- r()
- }),
- function () {
- return c('div', { class: de }, [
- c(
- T,
- {
- position: 'top',
- onGetHeight: function (e) {
- console.log(e, 'height'),
- (a.value = e),
- document.documentElement.style.setProperty(
- '--header-height',
- e + 'px'
- )
- }
- },
- {
- default: function () {
- return [c(y, { border: !1 }, null)]
- }
- }
- ),
- c(
- Y,
- {
- sticky: !0,
- lineWidth: 20,
- lineHeight: 4,
- swipeable: !0,
- animated: !0,
- offsetTop: a.value,
- active: t.value,
- 'onUpdate:active': function (e) {
- return (t.value = e)
- },
- onChange: function (e) {
- E(), sessionStorage.setItem('trainType', e)
- }
- },
- {
- default: function () {
- return [
- c(
- $,
- { title: '标准训练', name: 'standard' },
- {
- default: function () {
- return [
- 'standard' === t.value && c(ue, { address: n.value }, null)
- ]
- }
- }
- ),
- c(
- $,
- { title: '自定义训练', name: 'practice' },
- {
- default: function () {
- return [
- 'practice' === t.value && c(W, { address: n.value }, null)
- ]
- }
- }
- )
- ]
- }
- }
- )
- ])
- }
- )
- }
- })
- )
- }
- }
- }
- )
- })()
|