| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727 |
- <<<<<<< HEAD:dist/assets/index-legacy.8b407e58.js
- <<<<<<< HEAD:dist/assets/index-legacy.b64e2182.js
- <<<<<<< HEAD:dist/assets/index-legacy.5a4cde45.js
- <<<<<<< HEAD:dist/assets/index-legacy.ec3927b3.js
- !(function () {
- function e(e, c, t, r, n, a, o) {
- try {
- var s = e[a](o),
- i = s.value
- } catch (l) {
- return void t(l)
- }
- s.done ? c(i) : Promise.resolve(i).then(r, n)
- }
- function c(c) {
- return function () {
- var t = this,
- r = arguments
- return new Promise(function (n, a) {
- var o = c.apply(t, r)
- function s(c) {
- e(o, n, a, s, i, 'next', c)
- }
- function i(c) {
- e(o, n, a, s, i, 'throw', c)
- }
- s(void 0)
- })
- }
- }
- var t = document.createElement('style')
- ;(t.innerHTML =
- '._dialogTitle_18ch9_1{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_18ch9_1 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._coursePreview_18ch9_18{--van-dialog-message-font-size: .42667rem !important}._orchestraTabs_18ch9_21{font-weight:400;--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._orchestraTabs_18ch9_21 .van-tabs__wrap{padding-bottom:.08rem}._orchestraTabs_18ch9_21 .van-tab__text--ellipsis{max-width:5.33333rem}._courseTabsContainer_18ch9_33{height:1.33333rem}._courseTabs_18ch9_33 .van-tabs__line{opacity:0}._courseTabs_18ch9_33 .van-tabs__nav{background:#f6f8f9}._courseTabs_18ch9_33 .van-tab__text{font-size:.37333rem;color:#aaa;line-height:.53333rem;background:#eaeaea;border-radius:.10667rem;padding:.08rem .24rem}._courseTabs_18ch9_33 .van-tab--active .van-tab__text{color:#fff;background:#ff8057}._cellGroup_18ch9_54{border-radius:.26667rem;overflow:hidden;margin:.08rem .34667rem .32rem}._cellGroup_18ch9_54 ._cellDatetime_18ch9_59{padding:.32rem .32rem .26667rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62{padding:.26667rem .32rem .4rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62 .van-button{margin:.10667rem 0}._cellGroup_18ch9_54 ._conflictGrouop_18ch9_68{padding:0 .32rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59{display:flex;align-items:center;font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59 ._iconTimer_18ch9_79{font-size:.48rem;margin-right:.16rem}._cellGroup_18ch9_54 ._cellTime_18ch9_83{font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._img_18ch9_89{width:1.12rem;height:1.12rem;overflow:hidden;border-radius:50%;margin-right:.26667rem;flex-shrink:0}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97{display:flex;align-items:center;padding:.32rem .32rem 0;font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;font-family:DINA}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97._conflictType_18ch9_107{color:#f44541}._cellGroup_18ch9_54 ._conflict_18ch9_68{font-size:.32rem;padding:.05333rem .10667rem;border-radius:.08rem;margin-right:.21333rem;margin-bottom:.4rem}._cellGroup_18ch9_54 ._teacherName_18ch9_117{font-size:.42667rem;font-weight:600;color:#333;max-width:3.2rem}._cellGroup_18ch9_54 ._btn_18ch9_123{padding:0 .74667rem;height:.85333rem;line-height:.8rem}\n'),
- document.head.appendChild(t),
- System.register(
- [
- './index-legacy.da3cfd73.js',
- './index-legacy.86e58eb0.js',
- './icon_teacher-legacy.07765f44.js',
- './index-legacy.37a26c18.js',
- './create-legacy.9a54e486.js',
- './index-legacy.3cdbef0f.js',
- './index-legacy.bc5c4a06.js',
- './index-legacy.a5bef69a.js',
- './index-legacy.1f5a1fbe.js',
- './index-legacy.d552d569.js',
- './index-legacy.5216aadb.js',
- './index-legacy.8ec00d40.js',
- './use-tab-status-legacy.203dc693.js',
- './index-legacy.72f6344c.js',
- './index-legacy.a9a76943.js'
- ],
- function (e) {
- 'use strict'
- var t, r, n, a, o, s, i, l, u, f, h, d, _, p, m, g, b, T, v, C, y, I, G, x, A, k
- return {
- setters: [
- function (e) {
- t = e.O
- },
- function (e) {
- r = e.O
- },
- function (e) {
- n = e.i
- },
- function (e) {
- ;(a = e.d),
- (o = e.aV),
- (s = e.ag),
- (i = e.r),
- (l = e.R),
- (u = e.$),
- (f = e.c),
- (h = e.a5),
- (d = e.ah),
- (_ = e.q),
- (p = e.B),
- (m = e.F),
- (g = e.ak),
- (b = e.m),
- (T = e.k)
- },
- function (e) {
- v = e.f
- },
- function (e) {
- C = e.O
- },
- function (e) {
- ;(y = e.T), (I = e.a)
- },
- function (e) {
- G = e.C
- },
- function (e) {
- x = e.C
- },
- function (e) {
- A = e.I
- },
- function (e) {
- k = e.T
- },
- function () {},
- function () {},
- function () {},
- function () {}
- ],
- execute: function () {
- var w = {
- dialogTitle: '_dialogTitle_18ch9_1',
- coursePreview: '_coursePreview_18ch9_18',
- orchestraTabs: '_orchestraTabs_18ch9_21',
- courseTabsContainer: '_courseTabsContainer_18ch9_33',
- courseTabs: '_courseTabs_18ch9_33',
- cellGroup: '_cellGroup_18ch9_54',
- cellDatetime: '_cellDatetime_18ch9_59',
- cellTeacher: '_cellTeacher_18ch9_62',
- conflictGrouop: '_conflictGrouop_18ch9_68',
- cellDate: '_cellDate_18ch9_59',
- iconTimer: '_iconTimer_18ch9_79',
- cellTime: '_cellTime_18ch9_83',
- img: '_img_18ch9_89',
- cellTimeRange: '_cellTimeRange_18ch9_97',
- conflictType: '_conflictType_18ch9_107',
- conflict: '_conflict_18ch9_68',
- teacherName: '_teacherName_18ch9_117',
- btn: '_btn_18ch9_123'
- }
- function N(e) {
- return (
- 'function' == typeof e ||
- ('[object Object]' === Object.prototype.toString.call(e) && !g(e))
- )
- }
- e(
- 'default',
- a({
- name: 'course-preview',
- setup: function () {
- var e = o(),
- a = s(),
- g = i({
- type: e.query.type,
- conflictStatus: !1,
- conflictMessage: '该时间段伴学指导在其他学校有课',
- tabValue: '',
- courseValue: '',
- selectClasses: [],
- selectCourse: [],
- choiceCourse: {},
- isClick: !1,
- dialogStatus: !1,
- dialogMessage: ''
- }),
- E = l(),
- D = (function () {
- var t = c(
- regeneratorRuntime.mark(function c() {
- var t,
- r,
- n,
- a = arguments
- return regeneratorRuntime.wrap(
- function (c) {
- for (;;)
- switch ((c.prev = c.next)) {
- case 0:
- return (
- !(a.length > 0 && void 0 !== a[0]) || a[0],
- (c.prev = 1),
- (c.next = 4),
- b.post('/api-school/orchestra/trainingPlanListCache', {
- requestType: 'form',
- data: { cacheId: e.query.cacheId }
- })
- )
- case 4:
- if (999 !== (t = c.sent).code) {
- c.next = 9
- break
- }
- return (
- (g.dialogStatus = !0),
- (g.dialogMessage = t.message),
- c.abrupt('return')
- )
- case 9:
- S(t.data),
- v.planList.orchestra.length > 0 &&
- ((r = v.selectOrchestraId
- ? { orchestraId: v.selectOrchestraId }
- : v.planList.orchestra[0]),
- (g.tabValue = r.orchestraId),
- (n = v.selectClassGroupId
- ? { classGroupId: v.selectClassGroupId }
- : v.planList.classes[r.orchestraId]
- ? v.planList.classes[r.orchestraId][0]
- : {}),
- (g.selectClasses = v.planList.classes[r.orchestraId] || []),
- (g.selectCourse = v.planList.course[n.classGroupId]),
- (g.courseValue = n.classGroupId),
- (v.selectOrchestraId = null),
- (v.selectClassGroupId = null)),
- (c.next = 15)
- break
- case 13:
- ;(c.prev = 13), (c.t0 = c.catch(1))
- case 15:
- case 'end':
- return c.stop()
- }
- },
- c,
- null,
- [[1, 13]]
- )
- })
- )
- return function () {
- return t.apply(this, arguments)
- }
- })(),
- S = (function () {
- var e = c(
- regeneratorRuntime.mark(function e(c) {
- var t, r, n, a
- return regeneratorRuntime.wrap(function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- for (a in ((t = []),
- c.forEach(function (e) {
- ;-1 ===
- t.findIndex(function (c) {
- return c.orchestraId === e.orchestraId
- }) &&
- t.push({
- orchestraId: e.orchestraId,
- orchestraName: e.orchestraName
- })
- }),
- (r = {}),
- t.forEach(function (e) {
- c.forEach(function (c) {
- if (e.orchestraId === c.orchestraId) {
- var t = r[e.orchestraId]
- if (t)
- -1 ===
- t.findIndex(function (e) {
- return e.classGroupId === c.classGroupId
- }) &&
- r[e.orchestraId].push({
- classGroupId: c.classGroupId,
- className: c.className
- })
- else
- r[e.orchestraId] = [
- { classGroupId: c.classGroupId, className: c.className }
- ]
- }
- })
- }),
- (n = {}),
- r))
- (r[a] || []).forEach(function (e) {
- var t = c.filter(function (c) {
- return c.classGroupId === e.classGroupId
- })
- n[e.classGroupId] = t
- })
- v.planList = { orchestra: t, classes: r, course: n }
- case 7:
- case 'end':
- return e.stop()
- }
- }, e)
- })
- )
- return function (c) {
- return e.apply(this, arguments)
- }
- })(),
- V = function (c) {
- ;(v.selectOrchestraId = g.tabValue || null),
- (v.selectClassGroupId = g.courseValue || null),
- a.push({
- path: '/course-adjust',
- query: { id: c.id, cacheId: e.query.cacheId }
- })
- },
- j = (function () {
- var t = c(
- regeneratorRuntime.mark(function c() {
- var t
- return regeneratorRuntime.wrap(
- function (c) {
- for (;;)
- switch ((c.prev = c.next)) {
- case 0:
- return (
- (c.prev = 0),
- (g.isClick = !0),
- (c.next = 4),
- b.post(
- '/api-school/orchestra/trainingPlan/' + e.query.cacheId,
- { hideLoading: !1 }
- )
- )
- case 4:
- if (999 !== (t = c.sent).code) {
- c.next = 9
- break
- }
- return (
- (g.dialogStatus = !0),
- (g.dialogMessage = t.message),
- c.abrupt('return')
- )
- case 9:
- ;(g.isClick = !1),
- 'unbind' === e.query.type
- ? a.replace('/companion-teacher')
- : T({ api: 'back', content: {} }),
- (c.next = 17)
- break
- case 13:
- ;(c.prev = 13), (c.t0 = c.catch(0)), (g.isClick = !1), D(!1)
- case 17:
- case 'end':
- return c.stop()
- }
- },
- c,
- null,
- [[0, 13]]
- )
- })
- )
- return function () {
- return t.apply(this, arguments)
- }
- })()
- return (
- u(function () {
- D()
- }),
- function () {
- var e, c
- return f('div', { class: w.coursePreview }, [
- f(
- r,
- { position: 'top' },
- {
- default: function () {
- return [
- f(t, { border: !1 }, null),
- f(
- y,
- {
- lineWidth: 20,
- lineHeight: 4,
- active: g.tabValue,
- 'onUpdate:active': function (e) {
- return (g.tabValue = e)
- },
- swipeThreshold: 3,
- class: w.orchestraTabs,
- onChange: function (e) {
- if (
- (console.log(e, 'val', g.tabValue), !v.selectClassGroupId)
- ) {
- g.selectClasses = v.planList.classes[e] || []
- var c = v.planList.classes[e]
- ? v.planList.classes[e][0]
- : {}
- ;(g.selectCourse = v.planList.course[c.classGroupId]),
- (g.courseValue = c.classGroupId)
- }
- }
- },
- N(
- (e = v.planList.orchestra.map(function (e) {
- return f(
- I,
- { title: e.orchestraName, name: e.orchestraId },
- null
- )
- }))
- )
- ? e
- : {
- default: function () {
- return [e]
- }
- }
- ),
- f('div', { class: w.courseTabsContainer }, [
- g.courseValue &&
- f(
- y,
- {
- swipeThreshold: 3,
- class: w.courseTabs,
- active: g.courseValue,
- 'onUpdate:active': function (e) {
- return (g.courseValue = e)
- },
- lineHeight: 0,
- shrink: !0,
- ref: E,
- onChange: function (e) {
- g.selectCourse = v.planList.course[e]
- }
- },
- N(
- (c = g.selectClasses.map(function (e) {
- return f(
- I,
- { title: e.className, name: e.classGroupId },
- null
- )
- }))
- )
- ? c
- : {
- default: function () {
- return [c]
- }
- }
- )
- ])
- ]
- }
- }
- ),
- g.selectCourse.map(function (e) {
- return f(
- G,
- { inset: !0, class: w.cellGroup },
- {
- default: function () {
- return [
- f(
- x,
- { center: !0, class: w.cellDatetime },
- {
- title: function () {
- return f('div', { class: w.cellDate }, [
- f(
- h,
- {
- name: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA65JREFUWEfNmE1oXFUUx3/nNTSoENtaUktcKIoLceeiYi1okWrBjSSZNxEK4seyUZQmNGjenUpb2mDFdOkHgouZ17S4EYouqsUPdOXGlVR0Ux2ltjFgIW3yTnnv3kwy8c28N2+wnbsb3j33/uac/zn33Cv02JBueNQ8N4jXfx/Lemeyzgb5h2jxVzGf/lV03Y6AdP/efrZuehZ0GNUngbtbbFxH5EuQM1ya/0xOnl3MC5gLSGf39nNlYBzl9TYQrfasI5xg88KsjGeDZQLpofIuIv0IeGB1R10C+QH4DvgZ0SvJN5XNwIPAY6A7QPrWUF7AkxdluvZ1O2+1BVLjxx45BriFdR7ZcBzt+1DMJ211ombfILL0Ero8AbLJQSwBk2LCE62gWgKpKR8BPWgNVYGToBUxc5fz6iGxNKNbQAJgP4jbT46KqU2lrZMK5DzzjoO5isgLEoRznYCsn6sVfxTVj0Fud9/eSPPUf4CcZs7ZMOlVPG+3TNdivaQOfWv0Efq8syg/YsJnBGJvps89VN5BFJ1zUEt4Eq/dpKkmoCSbLg/8ZAWsioif5Rk1pTdB3rYE0XYxc/V2nnSeCl34LrBl4eG12dcMVPEPoBx3oZoVc+rVrDBppRSgYuw8GRJT+z3TxpTeAxm3JkxIEM6s2DSAkqJ318Bvts7oPOj9eQRcDCgR+i8u++r8vXDvSvFcBaqMDaPRaUvtTUlQPZr1T5MsKuAhazd2EI2OuP1GJKiesQ5zQ41fBcoI19GN92TVmYZdUaC4TrF40RXPmphwbD3QH+5Y+FZM+Hge73TjocTW+N8AO4G6mHB7Ayipqlz700HMiAknbhJQnEAH7F7XtsVdQhIyTeqDfu8gXhETflAI6DYZksnsLFsjk5eB95Pfnjwa1zsLFPh7ED63AtMRCU4lAsszmkWdahEXyvM8FD0lpbnltTO0UhpGxSaS8rRUwi+6BzL+a8C7GfAReNvEVC/lA+omZDP77uDf65Ogg+lQqnhyXqbD2vrvavwWIYtbUTYWEnWesLaao8ZPF7VLwUJp3yVQeto7IFsYibvB/qG8hbEokC01rjCKVCWoPZ/kVCMFCx4dhYGC8hSih21meylHR8HDtQiQ6yLbH65J2Aq0H8WAcrQfCVCBBq1ToI4atATKXntyt7CdANkjqoMWtiFwe/3pjSZ/FaqHrkHrPNUbF8UGVC9dpRtQvfTY0NQurDzHaDQCPNH2OQa+QrzT/8tzTOvT+hY/WHVSc4rOvQGJ+h9D5Yk+CwAAAABJRU5ErkJggg==',
- class: w.iconTimer
- },
- null
- ),
- d(e.classDate).format('YYYY-MM-DD')
- ])
- },
- value: function () {
- return f('span', { class: w.cellTime }, [
- e.singleCourseTime,
- _('分钟')
- ])
- }
- }
- ),
- f(
- 'div',
- {
- class: [
- w.cellTimeRange,
- e.conflictType &&
- e.conflictType.length > 0 &&
- w.conflictType
- ]
- },
- [
- d(e.startTime).format('HH:mm'),
- _('-'),
- d(e.endTime).format('HH:mm')
- ]
- ),
- f(
- x,
- { center: !0, class: w.cellTeacher, border: !1 },
- {
- icon: function () {
- return f(
- A,
- { src: e.teacherAvatar || n, class: w.img, fit: 'cover' },
- null
- )
- },
- title: function () {
- return f('div', { class: w.teacherInfo }, [
- f('p', { class: [w.teacherName, 'van-ellipsis'] }, [
- e.teacherName
- ]),
- f(
- k,
- {
- color: '#FFE3DA',
- textColor: '#F67146',
- style: { fontWeight: '500', padding: '2px 6px 1px' }
- },
- {
- default: function () {
- return [e.className]
- }
- }
- )
- ])
- },
- value: function () {
- return f(
- p,
- {
- round: !0,
- plain: !0,
- type: 'primary',
- class: w.btn,
- onClick: function () {
- return V(e)
- }
- },
- {
- default: function () {
- return [_('调整')]
- }
- }
- )
- }
- }
- ),
- f(
- x,
- {
- center: !0,
- border: !1,
- class: [w.cellTeacher, w.conflictGrouop]
- },
- {
- title: function () {
- return f(m, null, [
- e.conflictType &&
- e.conflictType.includes('STUDENT') &&
- f(
- k,
- {
- class: w.conflict,
- color: '#F44541',
- size: 'large',
- onClick: function () {
- ;(g.conflictMessage = '学员时间冲突'),
- (g.conflictStatus = !0),
- (g.choiceCourse = e)
- }
- },
- {
- default: function () {
- return [_('学员冲突')]
- }
- }
- ),
- e.conflictType &&
- e.conflictType.includes('DIFF_SCHOOL_TEACHER') &&
- f(
- k,
- {
- class: w.conflict,
- color: '#F44541',
- size: 'large',
- onClick: function () {
- ;(g.conflictMessage =
- '该时间段伴学指导在其他学校有课'),
- (g.conflictStatus = !0),
- (g.choiceCourse = e)
- }
- },
- {
- default: function () {
- return [_('学校冲突')]
- }
- }
- ),
- e.conflictType &&
- e.conflictType.includes('SAME_SCHOOL_TEACHER') &&
- f(
- k,
- {
- class: w.conflict,
- color: '#ff8057',
- size: 'large',
- onClick: function () {
- ;(g.conflictMessage =
- '伴学指导在本学校时间有冲突'),
- (g.conflictStatus = !0),
- (g.choiceCourse = e)
- }
- },
- {
- default: function () {
- return [_('老师冲突')]
- }
- }
- ),
- e.conflictType &&
- e.conflictType.includes('LEAVE') &&
- f(
- k,
- {
- class: w.conflict,
- color: '#F44541',
- size: 'large',
- onClick: function () {
- ;(g.conflictMessage = '伴学指导请假冲突'),
- (g.conflictStatus = !0),
- (g.choiceCourse = e)
- }
- },
- {
- default: function () {
- return [_('老师请假')]
- }
- }
- )
- ])
- }
- }
- )
- ]
- }
- }
- )
- }),
- f(
- r,
- { position: 'bottom' },
- {
- default: function () {
- return [
- f('div', { class: 'btnGroup' }, [
- f(
- p,
- {
- round: !0,
- block: !0,
- type: 'primary',
- onClick: j,
- disabled: g.isClick
- },
- {
- default: function () {
- return [
- 'change' === g.type || 'native' === g.type
- ? '确认调整'
- : '确认排课'
- ]
- }
- }
- )
- ])
- ]
- }
- }
- ),
- f(
- C,
- {
- title: '课程冲突',
- message: g.conflictMessage,
- show: g.conflictStatus,
- 'onUpdate:show': function (e) {
- return (g.conflictStatus = e)
- },
- messageAlign: 'center',
- confirmButtonText: '去调整',
- cancelButtonText: '知道了',
- showCancelButton: !0,
- onConfirm: function () {
- ;(g.conflictStatus = !1), V(g.choiceCourse)
- }
- },
- null
- ),
- f(
- C,
- {
- title: '提示',
- show: g.dialogStatus,
- 'onUpdate:show': function (e) {
- return (g.dialogStatus = e)
- },
- message: g.dialogMessage,
- confirmButtonText: '确定',
- onConfirm: function () {
- a.back()
- }
- },
- null
- )
- ])
- }
- )
- }
- })
- )
- }
- }
- }
- )
- })()
- =======
- !function(){function e(e,c,t,r,n,a,o){try{var s=e[a](o),i=s.value}catch(l){return void t(l)}s.done?c(i):Promise.resolve(i).then(r,n)}function c(c){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=c.apply(t,r);function s(c){e(o,n,a,s,i,"next",c)}function i(c){e(o,n,a,s,i,"throw",c)}s(void 0)}))}}var t=document.createElement("style");t.innerHTML="._dialogTitle_18ch9_1{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_18ch9_1 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._coursePreview_18ch9_18{--van-dialog-message-font-size: .42667rem !important}._orchestraTabs_18ch9_21{font-weight:400;--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._orchestraTabs_18ch9_21 .van-tabs__wrap{padding-bottom:.08rem}._orchestraTabs_18ch9_21 .van-tab__text--ellipsis{max-width:5.33333rem}._courseTabsContainer_18ch9_33{height:1.33333rem}._courseTabs_18ch9_33 .van-tabs__line{opacity:0}._courseTabs_18ch9_33 .van-tabs__nav{background:#f6f8f9}._courseTabs_18ch9_33 .van-tab__text{font-size:.37333rem;color:#aaa;line-height:.53333rem;background:#eaeaea;border-radius:.10667rem;padding:.08rem .24rem}._courseTabs_18ch9_33 .van-tab--active .van-tab__text{color:#fff;background:#ff8057}._cellGroup_18ch9_54{border-radius:.26667rem;overflow:hidden;margin:.08rem .34667rem .32rem}._cellGroup_18ch9_54 ._cellDatetime_18ch9_59{padding:.32rem .32rem .26667rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62{padding:.26667rem .32rem .4rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62 .van-button{margin:.10667rem 0}._cellGroup_18ch9_54 ._conflictGrouop_18ch9_68{padding:0 .32rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59{display:flex;align-items:center;font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59 ._iconTimer_18ch9_79{font-size:.48rem;margin-right:.16rem}._cellGroup_18ch9_54 ._cellTime_18ch9_83{font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._img_18ch9_89{width:1.12rem;height:1.12rem;overflow:hidden;border-radius:50%;margin-right:.26667rem;flex-shrink:0}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97{display:flex;align-items:center;padding:.32rem .32rem 0;font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;font-family:DINA}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97._conflictType_18ch9_107{color:#f44541}._cellGroup_18ch9_54 ._conflict_18ch9_68{font-size:.32rem;padding:.05333rem .10667rem;border-radius:.08rem;margin-right:.21333rem;margin-bottom:.4rem}._cellGroup_18ch9_54 ._teacherName_18ch9_117{font-size:.42667rem;font-weight:600;color:#333;max-width:3.2rem}._cellGroup_18ch9_54 ._btn_18ch9_123{padding:0 .74667rem;height:.85333rem;line-height:.8rem}\n",document.head.appendChild(t),System.register(["./index-legacy.35b085b7.js","./index-legacy.e2f02fbe.js","./icon_teacher-legacy.07765f44.js","./index-legacy.5250e410.js","./create-legacy.02e563ae.js","./index-legacy.a487cc47.js","./index-legacy.f228b6b5.js","./index-legacy.9bde57e9.js","./index-legacy.7e0d4571.js","./index-legacy.8f701eeb.js","./index-legacy.d0ecbe0c.js","./index-legacy.2260495b.js","./use-tab-status-legacy.8f29db2f.js","./index-legacy.9800e001.js","./index-legacy.eb41f645.js"],(function(e){"use strict";var t,r,n,a,o,s,i,l,u,f,h,d,_,p,m,g,b,T,v,C,y,I,G,x,A,k;return{setters:[function(e){t=e.O},function(e){r=e.O},function(e){n=e.i},function(e){a=e.d,o=e.aV,s=e.ag,i=e.r,l=e.R,u=e.$,f=e.c,h=e.a5,d=e.ah,_=e.q,p=e.B,m=e.F,g=e.ak,b=e.m,T=e.k},function(e){v=e.f},function(e){C=e.O},function(e){y=e.T,I=e.a},function(e){G=e.C},function(e){x=e.C},function(e){A=e.I},function(e){k=e.T},function(){},function(){},function(){},function(){}],execute:function(){var w={dialogTitle:"_dialogTitle_18ch9_1",coursePreview:"_coursePreview_18ch9_18",orchestraTabs:"_orchestraTabs_18ch9_21",courseTabsContainer:"_courseTabsContainer_18ch9_33",courseTabs:"_courseTabs_18ch9_33",cellGroup:"_cellGroup_18ch9_54",cellDatetime:"_cellDatetime_18ch9_59",cellTeacher:"_cellTeacher_18ch9_62",conflictGrouop:"_conflictGrouop_18ch9_68",cellDate:"_cellDate_18ch9_59",iconTimer:"_iconTimer_18ch9_79",cellTime:"_cellTime_18ch9_83",img:"_img_18ch9_89",cellTimeRange:"_cellTimeRange_18ch9_97",conflictType:"_conflictType_18ch9_107",conflict:"_conflict_18ch9_68",teacherName:"_teacherName_18ch9_117",btn:"_btn_18ch9_123"};function N(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!g(e)}e("default",a({name:"course-preview",setup:function(){var e=o(),a=s(),g=i({type:e.query.type,conflictStatus:!1,conflictMessage:"该时间段伴学指导在其他学校有课",tabValue:"",courseValue:"",selectClasses:[],selectCourse:[],choiceCourse:{},isClick:!1,dialogStatus:!1,dialogMessage:""}),E=l(),D=function(){var t=c(regeneratorRuntime.mark((function c(){var t,r,n,a=arguments;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return!(a.length>0&&void 0!==a[0])||a[0],c.prev=1,c.next=4,b.post("/api-school/orchestra/trainingPlanListCache",{requestType:"form",data:{cacheId:e.query.cacheId}});case 4:if(999!==(t=c.sent).code){c.next=9;break}return g.dialogStatus=!0,g.dialogMessage=t.message,c.abrupt("return");case 9:S(t.data),v.planList.orchestra.length>0&&(r=v.selectOrchestraId?{orchestraId:v.selectOrchestraId}:v.planList.orchestra[0],g.tabValue=r.orchestraId,n=v.selectClassGroupId?{classGroupId:v.selectClassGroupId}:v.planList.classes[r.orchestraId]?v.planList.classes[r.orchestraId][0]:{},g.selectClasses=v.planList.classes[r.orchestraId]||[],g.selectCourse=v.planList.course[n.classGroupId],g.courseValue=n.classGroupId,v.selectOrchestraId=null,v.selectClassGroupId=null),c.next=15;break;case 13:c.prev=13,c.t0=c.catch(1);case 15:case"end":return c.stop()}}),c,null,[[1,13]])})));return function(){return t.apply(this,arguments)}}(),S=function(){var e=c(regeneratorRuntime.mark((function e(c){var t,r,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a in t=[],c.forEach((function(e){-1===t.findIndex((function(c){return c.orchestraId===e.orchestraId}))&&t.push({orchestraId:e.orchestraId,orchestraName:e.orchestraName})})),r={},t.forEach((function(e){c.forEach((function(c){if(e.orchestraId===c.orchestraId){var t=r[e.orchestraId];if(t)-1===t.findIndex((function(e){return e.classGroupId===c.classGroupId}))&&r[e.orchestraId].push({classGroupId:c.classGroupId,className:c.className});else r[e.orchestraId]=[{classGroupId:c.classGroupId,className:c.className}]}}))})),n={},r)(r[a]||[]).forEach((function(e){var t=c.filter((function(c){return c.classGroupId===e.classGroupId}));n[e.classGroupId]=t}));v.planList={orchestra:t,classes:r,course:n};case 7:case"end":return e.stop()}}),e)})));return function(c){return e.apply(this,arguments)}}(),V=function(c){v.selectOrchestraId=g.tabValue||null,v.selectClassGroupId=g.courseValue||null,a.push({path:"/course-adjust",query:{id:c.id,cacheId:e.query.cacheId}})},j=function(){var t=c(regeneratorRuntime.mark((function c(){var t;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,g.isClick=!0,c.next=4,b.post("/api-school/orchestra/trainingPlan/"+e.query.cacheId,{hideLoading:!1});case 4:if(999!==(t=c.sent).code){c.next=9;break}return g.dialogStatus=!0,g.dialogMessage=t.message,c.abrupt("return");case 9:g.isClick=!1,"unbind"===e.query.type?a.replace("/companion-teacher"):T({api:"back",content:{}}),c.next=17;break;case 13:c.prev=13,c.t0=c.catch(0),g.isClick=!1,D(!1);case 17:case"end":return c.stop()}}),c,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}();return u((function(){D()})),function(){var e,c;return f("div",{class:w.coursePreview},[f(r,{position:"top"},{default:function(){return[f(t,{border:!1},null),f(y,{lineWidth:20,lineHeight:4,active:g.tabValue,"onUpdate:active":function(e){return g.tabValue=e},swipeThreshold:3,class:w.orchestraTabs,onChange:function(e){if(console.log(e,"val",g.tabValue),!v.selectClassGroupId){g.selectClasses=v.planList.classes[e]||[];var c=v.planList.classes[e]?v.planList.classes[e][0]:{};g.selectCourse=v.planList.course[c.classGroupId],g.courseValue=c.classGroupId}}},N(e=v.planList.orchestra.map((function(e){return f(I,{title:e.orchestraName,name:e.orchestraId},null)})))?e:{default:function(){return[e]}}),f("div",{class:w.courseTabsContainer},[g.courseValue&&f(y,{swipeThreshold:3,class:w.courseTabs,active:g.courseValue,"onUpdate:active":function(e){return g.courseValue=e},lineHeight:0,shrink:!0,ref:E,onChange:function(e){g.selectCourse=v.planList.course[e]}},N(c=g.selectClasses.map((function(e){return f(I,{title:e.className,name:e.classGroupId},null)})))?c:{default:function(){return[c]}})])]}}),g.selectCourse.map((function(e){return f(G,{inset:!0,class:w.cellGroup},{default:function(){return[f(x,{center:!0,class:w.cellDatetime},{title:function(){return f("div",{class:w.cellDate},[f(h,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA65JREFUWEfNmE1oXFUUx3/nNTSoENtaUktcKIoLceeiYi1okWrBjSSZNxEK4seyUZQmNGjenUpb2mDFdOkHgouZ17S4EYouqsUPdOXGlVR0Ux2ltjFgIW3yTnnv3kwy8c28N2+wnbsb3j33/uac/zn33Cv02JBueNQ8N4jXfx/Lemeyzgb5h2jxVzGf/lV03Y6AdP/efrZuehZ0GNUngbtbbFxH5EuQM1ya/0xOnl3MC5gLSGf39nNlYBzl9TYQrfasI5xg88KsjGeDZQLpofIuIv0IeGB1R10C+QH4DvgZ0SvJN5XNwIPAY6A7QPrWUF7AkxdluvZ1O2+1BVLjxx45BriFdR7ZcBzt+1DMJ211ombfILL0Ero8AbLJQSwBk2LCE62gWgKpKR8BPWgNVYGToBUxc5fz6iGxNKNbQAJgP4jbT46KqU2lrZMK5DzzjoO5isgLEoRznYCsn6sVfxTVj0Fud9/eSPPUf4CcZs7ZMOlVPG+3TNdivaQOfWv0Efq8syg/YsJnBGJvps89VN5BFJ1zUEt4Eq/dpKkmoCSbLg/8ZAWsioif5Rk1pTdB3rYE0XYxc/V2nnSeCl34LrBl4eG12dcMVPEPoBx3oZoVc+rVrDBppRSgYuw8GRJT+z3TxpTeAxm3JkxIEM6s2DSAkqJ318Bvts7oPOj9eQRcDCgR+i8u++r8vXDvSvFcBaqMDaPRaUvtTUlQPZr1T5MsKuAhazd2EI2OuP1GJKiesQ5zQ41fBcoI19GN92TVmYZdUaC4TrF40RXPmphwbD3QH+5Y+FZM+Hge73TjocTW+N8AO4G6mHB7Ayipqlz700HMiAknbhJQnEAH7F7XtsVdQhIyTeqDfu8gXhETflAI6DYZksnsLFsjk5eB95Pfnjwa1zsLFPh7ED63AtMRCU4lAsszmkWdahEXyvM8FD0lpbnltTO0UhpGxSaS8rRUwi+6BzL+a8C7GfAReNvEVC/lA+omZDP77uDf65Ogg+lQqnhyXqbD2vrvavwWIYtbUTYWEnWesLaao8ZPF7VLwUJp3yVQeto7IFsYibvB/qG8hbEokC01rjCKVCWoPZ/kVCMFCx4dhYGC8hSih21meylHR8HDtQiQ6yLbH65J2Aq0H8WAcrQfCVCBBq1ToI4atATKXntyt7CdANkjqoMWtiFwe/3pjSZ/FaqHrkHrPNUbF8UGVC9dpRtQvfTY0NQurDzHaDQCPNH2OQa+QrzT/8tzTOvT+hY/WHVSc4rOvQGJ+h9D5Yk+CwAAAABJRU5ErkJggg==",class:w.iconTimer},null),d(e.classDate).format("YYYY-MM-DD")])},value:function(){return f("span",{class:w.cellTime},[e.singleCourseTime,_("分钟")])}}),f("div",{class:[w.cellTimeRange,e.conflictType&&e.conflictType.length>0&&w.conflictType]},[d(e.startTime).format("HH:mm"),_("-"),d(e.endTime).format("HH:mm")]),f(x,{center:!0,class:w.cellTeacher,border:!1},{icon:function(){return f(A,{src:e.teacherAvatar||n,class:w.img,fit:"cover"},null)},title:function(){return f("div",{class:w.teacherInfo},[f("p",{class:[w.teacherName,"van-ellipsis"]},[e.teacherName]),f(k,{color:"#FFE3DA",textColor:"#F67146",style:{fontWeight:"500",padding:"2px 6px 1px"}},{default:function(){return[e.className]}})])},value:function(){return f(p,{round:!0,plain:!0,type:"primary",class:w.btn,onClick:function(){return V(e)}},{default:function(){return[_("调整")]}})}}),f(x,{center:!0,border:!1,class:[w.cellTeacher,w.conflictGrouop]},{title:function(){return f(m,null,[e.conflictType&&e.conflictType.includes("STUDENT")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="学生时间冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学生冲突")]}}),e.conflictType&&e.conflictType.includes("DIFF_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="该时间段伴学指导在其他学校有课",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学校冲突")]}}),e.conflictType&&e.conflictType.includes("SAME_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#ff8057",size:"large",onClick:function(){g.conflictMessage="伴学指导在本学校时间有冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师冲突")]}}),e.conflictType&&e.conflictType.includes("LEAVE")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="伴学指导请假冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师请假")]}})])}})]}})})),f(r,{position:"bottom"},{default:function(){return[f("div",{class:"btnGroup"},[f(p,{round:!0,block:!0,type:"primary",onClick:j,disabled:g.isClick},{default:function(){return["change"===g.type||"native"===g.type?"确认调整":"确认排课"]}})])]}}),f(C,{title:"课程冲突",message:g.conflictMessage,show:g.conflictStatus,"onUpdate:show":function(e){return g.conflictStatus=e},messageAlign:"center",confirmButtonText:"去调整",cancelButtonText:"知道了",showCancelButton:!0,onConfirm:function(){g.conflictStatus=!1,V(g.choiceCourse)}},null),f(C,{title:"提示",show:g.dialogStatus,"onUpdate:show":function(e){return g.dialogStatus=e},message:g.dialogMessage,confirmButtonText:"确定",onConfirm:function(){a.back()}},null)])}}}))}}}))}();
- >>>>>>> online:dist/assets/index-legacy.5a4cde45.js
- =======
- !function(){function e(e,c,t,r,n,a,o){try{var s=e[a](o),i=s.value}catch(l){return void t(l)}s.done?c(i):Promise.resolve(i).then(r,n)}function c(c){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=c.apply(t,r);function s(c){e(o,n,a,s,i,"next",c)}function i(c){e(o,n,a,s,i,"throw",c)}s(void 0)}))}}var t=document.createElement("style");t.innerHTML="._dialogTitle_18ch9_1{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_18ch9_1 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._coursePreview_18ch9_18{--van-dialog-message-font-size: .42667rem !important}._orchestraTabs_18ch9_21{font-weight:400;--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._orchestraTabs_18ch9_21 .van-tabs__wrap{padding-bottom:.08rem}._orchestraTabs_18ch9_21 .van-tab__text--ellipsis{max-width:5.33333rem}._courseTabsContainer_18ch9_33{height:1.33333rem}._courseTabs_18ch9_33 .van-tabs__line{opacity:0}._courseTabs_18ch9_33 .van-tabs__nav{background:#f6f8f9}._courseTabs_18ch9_33 .van-tab__text{font-size:.37333rem;color:#aaa;line-height:.53333rem;background:#eaeaea;border-radius:.10667rem;padding:.08rem .24rem}._courseTabs_18ch9_33 .van-tab--active .van-tab__text{color:#fff;background:#ff8057}._cellGroup_18ch9_54{border-radius:.26667rem;overflow:hidden;margin:.08rem .34667rem .32rem}._cellGroup_18ch9_54 ._cellDatetime_18ch9_59{padding:.32rem .32rem .26667rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62{padding:.26667rem .32rem .4rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62 .van-button{margin:.10667rem 0}._cellGroup_18ch9_54 ._conflictGrouop_18ch9_68{padding:0 .32rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59{display:flex;align-items:center;font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59 ._iconTimer_18ch9_79{font-size:.48rem;margin-right:.16rem}._cellGroup_18ch9_54 ._cellTime_18ch9_83{font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._img_18ch9_89{width:1.12rem;height:1.12rem;overflow:hidden;border-radius:50%;margin-right:.26667rem;flex-shrink:0}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97{display:flex;align-items:center;padding:.32rem .32rem 0;font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;font-family:DINA}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97._conflictType_18ch9_107{color:#f44541}._cellGroup_18ch9_54 ._conflict_18ch9_68{font-size:.32rem;padding:.05333rem .10667rem;border-radius:.08rem;margin-right:.21333rem;margin-bottom:.4rem}._cellGroup_18ch9_54 ._teacherName_18ch9_117{font-size:.42667rem;font-weight:600;color:#333;max-width:3.2rem}._cellGroup_18ch9_54 ._btn_18ch9_123{padding:0 .74667rem;height:.85333rem;line-height:.8rem}\n",document.head.appendChild(t),System.register(["./index-legacy.4a2df9b1.js","./index-legacy.a772c019.js","./icon_teacher-legacy.07765f44.js","./index-legacy.e776119d.js","./create-legacy.56743a97.js","./index-legacy.badde264.js","./index-legacy.72a95bf0.js","./index-legacy.e1ae7968.js","./index-legacy.513b7e98.js","./index-legacy.d8701818.js","./index-legacy.29ba056c.js","./index-legacy.4e7fb9ef.js","./use-tab-status-legacy.83fb85a3.js","./index-legacy.07af1a6e.js","./index-legacy.9fdb4fc9.js"],(function(e){"use strict";var t,r,n,a,o,s,i,l,u,f,h,d,_,p,m,g,b,T,v,C,y,I,G,x,A,k;return{setters:[function(e){t=e.O},function(e){r=e.O},function(e){n=e.i},function(e){a=e.d,o=e.aV,s=e.ag,i=e.r,l=e.R,u=e.$,f=e.c,h=e.a5,d=e.ah,_=e.q,p=e.B,m=e.F,g=e.ak,b=e.m,T=e.k},function(e){v=e.f},function(e){C=e.O},function(e){y=e.T,I=e.a},function(e){G=e.C},function(e){x=e.C},function(e){A=e.I},function(e){k=e.T},function(){},function(){},function(){},function(){}],execute:function(){var w={dialogTitle:"_dialogTitle_18ch9_1",coursePreview:"_coursePreview_18ch9_18",orchestraTabs:"_orchestraTabs_18ch9_21",courseTabsContainer:"_courseTabsContainer_18ch9_33",courseTabs:"_courseTabs_18ch9_33",cellGroup:"_cellGroup_18ch9_54",cellDatetime:"_cellDatetime_18ch9_59",cellTeacher:"_cellTeacher_18ch9_62",conflictGrouop:"_conflictGrouop_18ch9_68",cellDate:"_cellDate_18ch9_59",iconTimer:"_iconTimer_18ch9_79",cellTime:"_cellTime_18ch9_83",img:"_img_18ch9_89",cellTimeRange:"_cellTimeRange_18ch9_97",conflictType:"_conflictType_18ch9_107",conflict:"_conflict_18ch9_68",teacherName:"_teacherName_18ch9_117",btn:"_btn_18ch9_123"};function N(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!g(e)}e("default",a({name:"course-preview",setup:function(){var e=o(),a=s(),g=i({type:e.query.type,conflictStatus:!1,conflictMessage:"该时间段伴学指导在其他学校有课",tabValue:"",courseValue:"",selectClasses:[],selectCourse:[],choiceCourse:{},isClick:!1,dialogStatus:!1,dialogMessage:""}),E=l(),D=function(){var t=c(regeneratorRuntime.mark((function c(){var t,r,n,a=arguments;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return!(a.length>0&&void 0!==a[0])||a[0],c.prev=1,c.next=4,b.post("/api-school/orchestra/trainingPlanListCache",{requestType:"form",data:{cacheId:e.query.cacheId}});case 4:if(999!==(t=c.sent).code){c.next=9;break}return g.dialogStatus=!0,g.dialogMessage=t.message,c.abrupt("return");case 9:S(t.data),v.planList.orchestra.length>0&&(r=v.selectOrchestraId?{orchestraId:v.selectOrchestraId}:v.planList.orchestra[0],g.tabValue=r.orchestraId,n=v.selectClassGroupId?{classGroupId:v.selectClassGroupId}:v.planList.classes[r.orchestraId]?v.planList.classes[r.orchestraId][0]:{},g.selectClasses=v.planList.classes[r.orchestraId]||[],g.selectCourse=v.planList.course[n.classGroupId],g.courseValue=n.classGroupId,v.selectOrchestraId=null,v.selectClassGroupId=null),c.next=15;break;case 13:c.prev=13,c.t0=c.catch(1);case 15:case"end":return c.stop()}}),c,null,[[1,13]])})));return function(){return t.apply(this,arguments)}}(),S=function(){var e=c(regeneratorRuntime.mark((function e(c){var t,r,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a in t=[],c.forEach((function(e){-1===t.findIndex((function(c){return c.orchestraId===e.orchestraId}))&&t.push({orchestraId:e.orchestraId,orchestraName:e.orchestraName})})),r={},t.forEach((function(e){c.forEach((function(c){if(e.orchestraId===c.orchestraId){var t=r[e.orchestraId];if(t)-1===t.findIndex((function(e){return e.classGroupId===c.classGroupId}))&&r[e.orchestraId].push({classGroupId:c.classGroupId,className:c.className});else r[e.orchestraId]=[{classGroupId:c.classGroupId,className:c.className}]}}))})),n={},r)(r[a]||[]).forEach((function(e){var t=c.filter((function(c){return c.classGroupId===e.classGroupId}));n[e.classGroupId]=t}));v.planList={orchestra:t,classes:r,course:n};case 7:case"end":return e.stop()}}),e)})));return function(c){return e.apply(this,arguments)}}(),V=function(c){v.selectOrchestraId=g.tabValue||null,v.selectClassGroupId=g.courseValue||null,a.push({path:"/course-adjust",query:{id:c.id,cacheId:e.query.cacheId}})},j=function(){var t=c(regeneratorRuntime.mark((function c(){var t;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,g.isClick=!0,c.next=4,b.post("/api-school/orchestra/trainingPlan/"+e.query.cacheId,{hideLoading:!1});case 4:if(999!==(t=c.sent).code){c.next=9;break}return g.dialogStatus=!0,g.dialogMessage=t.message,c.abrupt("return");case 9:g.isClick=!1,"unbind"===e.query.type?a.replace("/companion-teacher"):T({api:"back",content:{}}),c.next=17;break;case 13:c.prev=13,c.t0=c.catch(0),g.isClick=!1,D(!1);case 17:case"end":return c.stop()}}),c,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}();return u((function(){D()})),function(){var e,c;return f("div",{class:w.coursePreview},[f(r,{position:"top"},{default:function(){return[f(t,{border:!1},null),f(y,{lineWidth:20,lineHeight:4,active:g.tabValue,"onUpdate:active":function(e){return g.tabValue=e},swipeThreshold:3,class:w.orchestraTabs,onChange:function(e){if(console.log(e,"val",g.tabValue),!v.selectClassGroupId){g.selectClasses=v.planList.classes[e]||[];var c=v.planList.classes[e]?v.planList.classes[e][0]:{};g.selectCourse=v.planList.course[c.classGroupId],g.courseValue=c.classGroupId}}},N(e=v.planList.orchestra.map((function(e){return f(I,{title:e.orchestraName,name:e.orchestraId},null)})))?e:{default:function(){return[e]}}),f("div",{class:w.courseTabsContainer},[g.courseValue&&f(y,{swipeThreshold:3,class:w.courseTabs,active:g.courseValue,"onUpdate:active":function(e){return g.courseValue=e},lineHeight:0,shrink:!0,ref:E,onChange:function(e){g.selectCourse=v.planList.course[e]}},N(c=g.selectClasses.map((function(e){return f(I,{title:e.className,name:e.classGroupId},null)})))?c:{default:function(){return[c]}})])]}}),g.selectCourse.map((function(e){return f(G,{inset:!0,class:w.cellGroup},{default:function(){return[f(x,{center:!0,class:w.cellDatetime},{title:function(){return f("div",{class:w.cellDate},[f(h,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA65JREFUWEfNmE1oXFUUx3/nNTSoENtaUktcKIoLceeiYi1okWrBjSSZNxEK4seyUZQmNGjenUpb2mDFdOkHgouZ17S4EYouqsUPdOXGlVR0Ux2ltjFgIW3yTnnv3kwy8c28N2+wnbsb3j33/uac/zn33Cv02JBueNQ8N4jXfx/Lemeyzgb5h2jxVzGf/lV03Y6AdP/efrZuehZ0GNUngbtbbFxH5EuQM1ya/0xOnl3MC5gLSGf39nNlYBzl9TYQrfasI5xg88KsjGeDZQLpofIuIv0IeGB1R10C+QH4DvgZ0SvJN5XNwIPAY6A7QPrWUF7AkxdluvZ1O2+1BVLjxx45BriFdR7ZcBzt+1DMJ211ombfILL0Ero8AbLJQSwBk2LCE62gWgKpKR8BPWgNVYGToBUxc5fz6iGxNKNbQAJgP4jbT46KqU2lrZMK5DzzjoO5isgLEoRznYCsn6sVfxTVj0Fud9/eSPPUf4CcZs7ZMOlVPG+3TNdivaQOfWv0Efq8syg/YsJnBGJvps89VN5BFJ1zUEt4Eq/dpKkmoCSbLg/8ZAWsioif5Rk1pTdB3rYE0XYxc/V2nnSeCl34LrBl4eG12dcMVPEPoBx3oZoVc+rVrDBppRSgYuw8GRJT+z3TxpTeAxm3JkxIEM6s2DSAkqJ318Bvts7oPOj9eQRcDCgR+i8u++r8vXDvSvFcBaqMDaPRaUvtTUlQPZr1T5MsKuAhazd2EI2OuP1GJKiesQ5zQ41fBcoI19GN92TVmYZdUaC4TrF40RXPmphwbD3QH+5Y+FZM+Hge73TjocTW+N8AO4G6mHB7Ayipqlz700HMiAknbhJQnEAH7F7XtsVdQhIyTeqDfu8gXhETflAI6DYZksnsLFsjk5eB95Pfnjwa1zsLFPh7ED63AtMRCU4lAsszmkWdahEXyvM8FD0lpbnltTO0UhpGxSaS8rRUwi+6BzL+a8C7GfAReNvEVC/lA+omZDP77uDf65Ogg+lQqnhyXqbD2vrvavwWIYtbUTYWEnWesLaao8ZPF7VLwUJp3yVQeto7IFsYibvB/qG8hbEokC01rjCKVCWoPZ/kVCMFCx4dhYGC8hSih21meylHR8HDtQiQ6yLbH65J2Aq0H8WAcrQfCVCBBq1ToI4atATKXntyt7CdANkjqoMWtiFwe/3pjSZ/FaqHrkHrPNUbF8UGVC9dpRtQvfTY0NQurDzHaDQCPNH2OQa+QrzT/8tzTOvT+hY/WHVSc4rOvQGJ+h9D5Yk+CwAAAABJRU5ErkJggg==",class:w.iconTimer},null),d(e.classDate).format("YYYY-MM-DD")])},value:function(){return f("span",{class:w.cellTime},[e.singleCourseTime,_("分钟")])}}),f("div",{class:[w.cellTimeRange,e.conflictType&&e.conflictType.length>0&&w.conflictType]},[d(e.startTime).format("HH:mm"),_("-"),d(e.endTime).format("HH:mm")]),f(x,{center:!0,class:w.cellTeacher,border:!1},{icon:function(){return f(A,{src:e.teacherAvatar||n,class:w.img,fit:"cover"},null)},title:function(){return f("div",{class:w.teacherInfo},[f("p",{class:[w.teacherName,"van-ellipsis"]},[e.teacherName]),f(k,{color:"#FFE3DA",textColor:"#F67146",style:{fontWeight:"500",padding:"2px 6px 1px"}},{default:function(){return[e.className]}})])},value:function(){return f(p,{round:!0,plain:!0,type:"primary",class:w.btn,onClick:function(){return V(e)}},{default:function(){return[_("调整")]}})}}),f(x,{center:!0,border:!1,class:[w.cellTeacher,w.conflictGrouop]},{title:function(){return f(m,null,[e.conflictType&&e.conflictType.includes("STUDENT")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="学生时间冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学生冲突")]}}),e.conflictType&&e.conflictType.includes("DIFF_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="该时间段伴学指导在其他学校有课",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学校冲突")]}}),e.conflictType&&e.conflictType.includes("SAME_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#ff8057",size:"large",onClick:function(){g.conflictMessage="伴学指导在本学校时间有冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师冲突")]}}),e.conflictType&&e.conflictType.includes("LEAVE")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="伴学指导请假冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师请假")]}})])}})]}})})),f(r,{position:"bottom"},{default:function(){return[f("div",{class:"btnGroup"},[f(p,{round:!0,block:!0,type:"primary",onClick:j,disabled:g.isClick},{default:function(){return["change"===g.type||"native"===g.type?"确认调整":"确认排课"]}})])]}}),f(C,{title:"课程冲突",message:g.conflictMessage,show:g.conflictStatus,"onUpdate:show":function(e){return g.conflictStatus=e},messageAlign:"center",confirmButtonText:"去调整",cancelButtonText:"知道了",showCancelButton:!0,onConfirm:function(){g.conflictStatus=!1,V(g.choiceCourse)}},null),f(C,{title:"提示",show:g.dialogStatus,"onUpdate:show":function(e){return g.dialogStatus=e},message:g.dialogMessage,confirmButtonText:"确定",onConfirm:function(){a.back()}},null)])}}}))}}}))}();
- >>>>>>> online:dist/assets/index-legacy.b64e2182.js
- =======
- !function(){function e(e,t,c,r,n,a,o){try{var s=e[a](o),i=s.value}catch(l){return void c(l)}s.done?t(i):Promise.resolve(i).then(r,n)}function t(t){return function(){var c=this,r=arguments;return new Promise((function(n,a){var o=t.apply(c,r);function s(t){e(o,n,a,s,i,"next",t)}function i(t){e(o,n,a,s,i,"throw",t)}s(void 0)}))}}var c=document.createElement("style");c.innerHTML="._dialogTitle_18ch9_1{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_18ch9_1 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._coursePreview_18ch9_18{--van-dialog-message-font-size: .42667rem !important}._orchestraTabs_18ch9_21{font-weight:400;--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._orchestraTabs_18ch9_21 .van-tabs__wrap{padding-bottom:.08rem}._orchestraTabs_18ch9_21 .van-tab__text--ellipsis{max-width:5.33333rem}._courseTabsContainer_18ch9_33{height:1.33333rem}._courseTabs_18ch9_33 .van-tabs__line{opacity:0}._courseTabs_18ch9_33 .van-tabs__nav{background:#f6f8f9}._courseTabs_18ch9_33 .van-tab__text{font-size:.37333rem;color:#aaa;line-height:.53333rem;background:#eaeaea;border-radius:.10667rem;padding:.08rem .24rem}._courseTabs_18ch9_33 .van-tab--active .van-tab__text{color:#fff;background:#ff8057}._cellGroup_18ch9_54{border-radius:.26667rem;overflow:hidden;margin:.08rem .34667rem .32rem}._cellGroup_18ch9_54 ._cellDatetime_18ch9_59{padding:.32rem .32rem .26667rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62{padding:.26667rem .32rem .4rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62 .van-button{margin:.10667rem 0}._cellGroup_18ch9_54 ._conflictGrouop_18ch9_68{padding:0 .32rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59{display:flex;align-items:center;font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59 ._iconTimer_18ch9_79{font-size:.48rem;margin-right:.16rem}._cellGroup_18ch9_54 ._cellTime_18ch9_83{font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._img_18ch9_89{width:1.12rem;height:1.12rem;overflow:hidden;border-radius:50%;margin-right:.26667rem;flex-shrink:0}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97{display:flex;align-items:center;padding:.32rem .32rem 0;font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;font-family:DINA}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97._conflictType_18ch9_107{color:#f44541}._cellGroup_18ch9_54 ._conflict_18ch9_68{font-size:.32rem;padding:.05333rem .10667rem;border-radius:.08rem;margin-right:.21333rem;margin-bottom:.4rem}._cellGroup_18ch9_54 ._teacherName_18ch9_117{font-size:.42667rem;font-weight:600;color:#333;max-width:3.2rem}._cellGroup_18ch9_54 ._btn_18ch9_123{padding:0 .74667rem;height:.85333rem;line-height:.8rem}\n",document.head.appendChild(c),System.register(["./index-legacy.80e3d310.js","./index-legacy.62e2337f.js","./icon_teacher-legacy.07765f44.js","./index-legacy.8574e5e7.js","./create-legacy.de2de593.js","./index-legacy.3efd14da.js","./index-legacy.083a9152.js","./index-legacy.53c89bb8.js","./index-legacy.5a075ae1.js","./index-legacy.699e3e6f.js","./index-legacy.fe22448d.js","./index-legacy.f72db5af.js","./use-tab-status-legacy.2bd37260.js","./index-legacy.c7f88300.js","./index-legacy.6a33e667.js"],(function(e){"use strict";var c,r,n,a,o,s,i,l,u,f,h,d,_,p,m,g,b,T,v,C,y,I,G,x,A,k;return{setters:[function(e){c=e.O},function(e){r=e.O},function(e){n=e.i},function(e){a=e.d,o=e.aV,s=e.ag,i=e.r,l=e.R,u=e.$,f=e.c,h=e.a5,d=e.ah,_=e.q,p=e.B,m=e.F,g=e.ak,b=e.m,T=e.k},function(e){v=e.f},function(e){C=e.O},function(e){y=e.T,I=e.a},function(e){G=e.C},function(e){x=e.C},function(e){A=e.I},function(e){k=e.T},function(){},function(){},function(){},function(){}],execute:function(){var w={dialogTitle:"_dialogTitle_18ch9_1",coursePreview:"_coursePreview_18ch9_18",orchestraTabs:"_orchestraTabs_18ch9_21",courseTabsContainer:"_courseTabsContainer_18ch9_33",courseTabs:"_courseTabs_18ch9_33",cellGroup:"_cellGroup_18ch9_54",cellDatetime:"_cellDatetime_18ch9_59",cellTeacher:"_cellTeacher_18ch9_62",conflictGrouop:"_conflictGrouop_18ch9_68",cellDate:"_cellDate_18ch9_59",iconTimer:"_iconTimer_18ch9_79",cellTime:"_cellTime_18ch9_83",img:"_img_18ch9_89",cellTimeRange:"_cellTimeRange_18ch9_97",conflictType:"_conflictType_18ch9_107",conflict:"_conflict_18ch9_68",teacherName:"_teacherName_18ch9_117",btn:"_btn_18ch9_123"};function N(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!g(e)}e("default",a({name:"course-preview",setup:function(){var e=o(),a=s(),g=i({type:e.query.type,conflictStatus:!1,conflictMessage:"该时间段伴学指导在其他学校有课",tabValue:"",courseValue:"",selectClasses:[],selectCourse:[],choiceCourse:{},isClick:!1,dialogStatus:!1,dialogMessage:""}),E=l(),D=function(){var c=t(regeneratorRuntime.mark((function t(){var c,r,n,a=arguments;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return!(a.length>0&&void 0!==a[0])||a[0],t.prev=1,t.next=4,b.post("/api-school/orchestra/trainingPlanListCache",{requestType:"form",data:{cacheId:e.query.cacheId}});case 4:if(999!==(c=t.sent).code){t.next=9;break}return g.dialogStatus=!0,g.dialogMessage=c.message,t.abrupt("return");case 9:S(c.data),v.planList.orchestra.length>0&&(r=v.selectOrchestraId?{orchestraId:v.selectOrchestraId}:v.planList.orchestra[0],g.tabValue=r.orchestraId,n=v.selectClassGroupId?{classGroupId:v.selectClassGroupId}:v.planList.classes[r.orchestraId]?v.planList.classes[r.orchestraId][0]:{},g.selectClasses=v.planList.classes[r.orchestraId]||[],g.selectCourse=v.planList.course[n.classGroupId],g.courseValue=n.classGroupId,v.selectOrchestraId=null,v.selectClassGroupId=null),t.next=15;break;case 13:t.prev=13,t.t0=t.catch(1);case 15:case"end":return t.stop()}}),t,null,[[1,13]])})));return function(){return c.apply(this,arguments)}}(),S=function(){var e=t(regeneratorRuntime.mark((function e(t){var c,r,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a in c=[],t.forEach((function(e){-1===c.findIndex((function(t){return t.orchestraId===e.orchestraId}))&&c.push({orchestraId:e.orchestraId,orchestraName:e.orchestraName})})),r={},c.forEach((function(e){t.forEach((function(t){if(e.orchestraId===t.orchestraId){var c=r[e.orchestraId];if(c)-1===c.findIndex((function(e){return e.classGroupId===t.classGroupId}))&&r[e.orchestraId].push({classGroupId:t.classGroupId,className:t.className});else r[e.orchestraId]=[{classGroupId:t.classGroupId,className:t.className}]}}))})),n={},r)(r[a]||[]).forEach((function(e){var c=t.filter((function(t){return t.classGroupId===e.classGroupId}));n[e.classGroupId]=c}));v.planList={orchestra:c,classes:r,course:n};case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),V=function(t){v.selectOrchestraId=g.tabValue||null,v.selectClassGroupId=g.courseValue||null,a.push({path:"/course-adjust",query:{id:t.id,cacheId:e.query.cacheId}})},j=function(){var c=t(regeneratorRuntime.mark((function t(){var c;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,g.isClick=!0,t.next=4,b.post("/api-school/orchestra/trainingPlan/"+e.query.cacheId,{hideLoading:!1});case 4:if(999!==(c=t.sent).code){t.next=9;break}return g.dialogStatus=!0,g.dialogMessage=c.message,t.abrupt("return");case 9:g.isClick=!1,"unbind"===e.query.type?a.replace("/companion-teacher"):T({api:"back",content:{}}),t.next=17;break;case 13:t.prev=13,t.t0=t.catch(0),g.isClick=!1,D(!1);case 17:case"end":return t.stop()}}),t,null,[[0,13]])})));return function(){return c.apply(this,arguments)}}();return u((function(){D()})),function(){var e,t;return f("div",{class:w.coursePreview},[f(r,{position:"top"},{default:function(){return[f(c,{border:!1},null),f(y,{lineWidth:20,lineHeight:4,active:g.tabValue,"onUpdate:active":function(e){return g.tabValue=e},swipeThreshold:3,class:w.orchestraTabs,onChange:function(e){if(console.log(e,"val",g.tabValue),!v.selectClassGroupId){g.selectClasses=v.planList.classes[e]||[];var t=v.planList.classes[e]?v.planList.classes[e][0]:{};g.selectCourse=v.planList.course[t.classGroupId],g.courseValue=t.classGroupId}}},N(e=v.planList.orchestra.map((function(e){return f(I,{title:e.orchestraName,name:e.orchestraId},null)})))?e:{default:function(){return[e]}}),f("div",{class:w.courseTabsContainer},[g.courseValue&&f(y,{swipeThreshold:3,class:w.courseTabs,active:g.courseValue,"onUpdate:active":function(e){return g.courseValue=e},lineHeight:0,shrink:!0,ref:E,onChange:function(e){g.selectCourse=v.planList.course[e]}},N(t=g.selectClasses.map((function(e){return f(I,{title:e.className,name:e.classGroupId},null)})))?t:{default:function(){return[t]}})])]}}),g.selectCourse.map((function(e){return f(G,{inset:!0,class:w.cellGroup},{default:function(){return[f(x,{center:!0,class:w.cellDatetime},{title:function(){return f("div",{class:w.cellDate},[f(h,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA65JREFUWEfNmE1oXFUUx3/nNTSoENtaUktcKIoLceeiYi1okWrBjSSZNxEK4seyUZQmNGjenUpb2mDFdOkHgouZ17S4EYouqsUPdOXGlVR0Ux2ltjFgIW3yTnnv3kwy8c28N2+wnbsb3j33/uac/zn33Cv02JBueNQ8N4jXfx/Lemeyzgb5h2jxVzGf/lV03Y6AdP/efrZuehZ0GNUngbtbbFxH5EuQM1ya/0xOnl3MC5gLSGf39nNlYBzl9TYQrfasI5xg88KsjGeDZQLpofIuIv0IeGB1R10C+QH4DvgZ0SvJN5XNwIPAY6A7QPrWUF7AkxdluvZ1O2+1BVLjxx45BriFdR7ZcBzt+1DMJ211ombfILL0Ero8AbLJQSwBk2LCE62gWgKpKR8BPWgNVYGToBUxc5fz6iGxNKNbQAJgP4jbT46KqU2lrZMK5DzzjoO5isgLEoRznYCsn6sVfxTVj0Fud9/eSPPUf4CcZs7ZMOlVPG+3TNdivaQOfWv0Efq8syg/YsJnBGJvps89VN5BFJ1zUEt4Eq/dpKkmoCSbLg/8ZAWsioif5Rk1pTdB3rYE0XYxc/V2nnSeCl34LrBl4eG12dcMVPEPoBx3oZoVc+rVrDBppRSgYuw8GRJT+z3TxpTeAxm3JkxIEM6s2DSAkqJ318Bvts7oPOj9eQRcDCgR+i8u++r8vXDvSvFcBaqMDaPRaUvtTUlQPZr1T5MsKuAhazd2EI2OuP1GJKiesQ5zQ41fBcoI19GN92TVmYZdUaC4TrF40RXPmphwbD3QH+5Y+FZM+Hge73TjocTW+N8AO4G6mHB7Ayipqlz700HMiAknbhJQnEAH7F7XtsVdQhIyTeqDfu8gXhETflAI6DYZksnsLFsjk5eB95Pfnjwa1zsLFPh7ED63AtMRCU4lAsszmkWdahEXyvM8FD0lpbnltTO0UhpGxSaS8rRUwi+6BzL+a8C7GfAReNvEVC/lA+omZDP77uDf65Ogg+lQqnhyXqbD2vrvavwWIYtbUTYWEnWesLaao8ZPF7VLwUJp3yVQeto7IFsYibvB/qG8hbEokC01rjCKVCWoPZ/kVCMFCx4dhYGC8hSih21meylHR8HDtQiQ6yLbH65J2Aq0H8WAcrQfCVCBBq1ToI4atATKXntyt7CdANkjqoMWtiFwe/3pjSZ/FaqHrkHrPNUbF8UGVC9dpRtQvfTY0NQurDzHaDQCPNH2OQa+QrzT/8tzTOvT+hY/WHVSc4rOvQGJ+h9D5Yk+CwAAAABJRU5ErkJggg==",class:w.iconTimer},null),d(e.classDate).format("YYYY-MM-DD")])},value:function(){return f("span",{class:w.cellTime},[e.singleCourseTime,_("分钟")])}}),f("div",{class:[w.cellTimeRange,e.conflictType&&e.conflictType.length>0&&w.conflictType]},[d(e.startTime).format("HH:mm"),_("-"),d(e.endTime).format("HH:mm")]),f(x,{center:!0,class:w.cellTeacher,border:!1},{icon:function(){return f(A,{src:e.teacherAvatar||n,class:w.img,fit:"cover"},null)},title:function(){return f("div",{class:w.teacherInfo},[f("p",{class:[w.teacherName,"van-ellipsis"]},[e.teacherName]),f(k,{color:"#FFE3DA",textColor:"#F67146",style:{fontWeight:"500",padding:"2px 6px 1px"}},{default:function(){return[e.className]}})])},value:function(){return f(p,{round:!0,plain:!0,type:"primary",class:w.btn,onClick:function(){return V(e)}},{default:function(){return[_("调整")]}})}}),f(x,{center:!0,border:!1,class:[w.cellTeacher,w.conflictGrouop]},{title:function(){return f(m,null,[e.conflictType&&e.conflictType.includes("STUDENT")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="学生时间冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学生冲突")]}}),e.conflictType&&e.conflictType.includes("DIFF_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="该时间段伴学指导在其他学校有课",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学校冲突")]}}),e.conflictType&&e.conflictType.includes("SAME_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#ff8057",size:"large",onClick:function(){g.conflictMessage="伴学指导在本学校时间有冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师冲突")]}}),e.conflictType&&e.conflictType.includes("LEAVE")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="伴学指导请假冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师请假")]}})])}})]}})})),f(r,{position:"bottom"},{default:function(){return[f("div",{class:"btnGroup"},[f(p,{round:!0,block:!0,type:"primary",onClick:j,disabled:g.isClick},{default:function(){return["change"===g.type||"native"===g.type?"确认调整":"确认排课"]}})])]}}),f(C,{title:"课程冲突",message:g.conflictMessage,show:g.conflictStatus,"onUpdate:show":function(e){return g.conflictStatus=e},messageAlign:"center",confirmButtonText:"去调整",cancelButtonText:"知道了",showCancelButton:!0,onConfirm:function(){g.conflictStatus=!1,V(g.choiceCourse)}},null),f(C,{title:"提示",show:g.dialogStatus,"onUpdate:show":function(e){return g.dialogStatus=e},message:g.dialogMessage,confirmButtonText:"确定",onConfirm:function(){a.back()}},null)])}}}))}}}))}();
- >>>>>>> online:dist/assets/index-legacy.8b407e58.js
- =======
- !function(){function e(e,c,t,r,n,a,o){try{var s=e[a](o),i=s.value}catch(l){return void t(l)}s.done?c(i):Promise.resolve(i).then(r,n)}function c(c){return function(){var t=this,r=arguments;return new Promise((function(n,a){var o=c.apply(t,r);function s(c){e(o,n,a,s,i,"next",c)}function i(c){e(o,n,a,s,i,"throw",c)}s(void 0)}))}}var t=document.createElement("style");t.innerHTML="._dialogTitle_18ch9_1{padding-left:.66667rem;text-align:left;font-size:.48rem;font-weight:500;color:#333;line-height:.66667rem;padding-bottom:.32rem}._dialogTitle_18ch9_1 i{display:inline-block;width:.10667rem;height:.37333rem;background:#ff8057;border-radius:.05333rem;margin-right:.16rem}._coursePreview_18ch9_18{--van-dialog-message-font-size: .42667rem !important}._orchestraTabs_18ch9_21{font-weight:400;--van-tab-active-text-color: var(--van-primary-color);--van-tab-text-color: #333;--van-tab-font-size: .42667rem}._orchestraTabs_18ch9_21 .van-tabs__wrap{padding-bottom:.08rem}._orchestraTabs_18ch9_21 .van-tab__text--ellipsis{max-width:5.33333rem}._courseTabsContainer_18ch9_33{height:1.33333rem}._courseTabs_18ch9_33 .van-tabs__line{opacity:0}._courseTabs_18ch9_33 .van-tabs__nav{background:#f6f8f9}._courseTabs_18ch9_33 .van-tab__text{font-size:.37333rem;color:#aaa;line-height:.53333rem;background:#eaeaea;border-radius:.10667rem;padding:.08rem .24rem}._courseTabs_18ch9_33 .van-tab--active .van-tab__text{color:#fff;background:#ff8057}._cellGroup_18ch9_54{border-radius:.26667rem;overflow:hidden;margin:.08rem .34667rem .32rem}._cellGroup_18ch9_54 ._cellDatetime_18ch9_59{padding:.32rem .32rem .26667rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62{padding:.26667rem .32rem .4rem}._cellGroup_18ch9_54 ._cellTeacher_18ch9_62 .van-button{margin:.10667rem 0}._cellGroup_18ch9_54 ._conflictGrouop_18ch9_68{padding:0 .32rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59{display:flex;align-items:center;font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._cellDate_18ch9_59 ._iconTimer_18ch9_79{font-size:.48rem;margin-right:.16rem}._cellGroup_18ch9_54 ._cellTime_18ch9_83{font-size:.37333rem;font-weight:500;color:#777;line-height:.53333rem}._cellGroup_18ch9_54 ._img_18ch9_89{width:1.12rem;height:1.12rem;overflow:hidden;border-radius:50%;margin-right:.26667rem;flex-shrink:0}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97{display:flex;align-items:center;padding:.32rem .32rem 0;font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;font-family:DINA}._cellGroup_18ch9_54 ._cellTimeRange_18ch9_97._conflictType_18ch9_107{color:#f44541}._cellGroup_18ch9_54 ._conflict_18ch9_68{font-size:.32rem;padding:.05333rem .10667rem;border-radius:.08rem;margin-right:.21333rem;margin-bottom:.4rem}._cellGroup_18ch9_54 ._teacherName_18ch9_117{font-size:.42667rem;font-weight:600;color:#333;max-width:3.2rem}._cellGroup_18ch9_54 ._btn_18ch9_123{padding:0 .74667rem;height:.85333rem;line-height:.8rem}\n",document.head.appendChild(t),System.register(["./index-legacy.881db982.js","./index-legacy.65752d39.js","./icon_teacher-legacy.07765f44.js","./index-legacy.a92e643d.js","./create-legacy.3476b660.js","./index-legacy.c2450734.js","./index-legacy.27d657eb.js","./index-legacy.8e1720d1.js","./index-legacy.0d047717.js","./index-legacy.6869fc07.js","./index-legacy.831a92bb.js","./index-legacy.60ebb2cf.js","./use-tab-status-legacy.65eb7e66.js","./index-legacy.b0b9cbe9.js","./index-legacy.bc84a52d.js"],(function(e){"use strict";var t,r,n,a,o,s,i,l,u,f,h,d,_,p,m,g,b,T,v,C,y,I,G,x,A,k;return{setters:[function(e){t=e.O},function(e){r=e.O},function(e){n=e.i},function(e){a=e.d,o=e.aV,s=e.ag,i=e.r,l=e.R,u=e.$,f=e.c,h=e.a5,d=e.ah,_=e.q,p=e.B,m=e.F,g=e.ak,b=e.m,T=e.k},function(e){v=e.f},function(e){C=e.O},function(e){y=e.T,I=e.a},function(e){G=e.C},function(e){x=e.C},function(e){A=e.I},function(e){k=e.T},function(){},function(){},function(){},function(){}],execute:function(){var w={dialogTitle:"_dialogTitle_18ch9_1",coursePreview:"_coursePreview_18ch9_18",orchestraTabs:"_orchestraTabs_18ch9_21",courseTabsContainer:"_courseTabsContainer_18ch9_33",courseTabs:"_courseTabs_18ch9_33",cellGroup:"_cellGroup_18ch9_54",cellDatetime:"_cellDatetime_18ch9_59",cellTeacher:"_cellTeacher_18ch9_62",conflictGrouop:"_conflictGrouop_18ch9_68",cellDate:"_cellDate_18ch9_59",iconTimer:"_iconTimer_18ch9_79",cellTime:"_cellTime_18ch9_83",img:"_img_18ch9_89",cellTimeRange:"_cellTimeRange_18ch9_97",conflictType:"_conflictType_18ch9_107",conflict:"_conflict_18ch9_68",teacherName:"_teacherName_18ch9_117",btn:"_btn_18ch9_123"};function N(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!g(e)}e("default",a({name:"course-preview",setup:function(){var e=o(),a=s(),g=i({type:e.query.type,conflictStatus:!1,conflictMessage:"该时间段伴学指导在其他学校有课",tabValue:"",courseValue:"",selectClasses:[],selectCourse:[],choiceCourse:{},isClick:!1,dialogStatus:!1,dialogMessage:""}),E=l(),D=function(){var t=c(regeneratorRuntime.mark((function c(){var t,r,n,a=arguments;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return!(a.length>0&&void 0!==a[0])||a[0],c.prev=1,c.next=4,b.post("/api-school/orchestra/trainingPlanListCache",{requestType:"form",data:{cacheId:e.query.cacheId}});case 4:if(999!==(t=c.sent).code){c.next=9;break}return g.dialogStatus=!0,g.dialogMessage=t.message,c.abrupt("return");case 9:S(t.data),v.planList.orchestra.length>0&&(r=v.selectOrchestraId?{orchestraId:v.selectOrchestraId}:v.planList.orchestra[0],g.tabValue=r.orchestraId,n=v.selectClassGroupId?{classGroupId:v.selectClassGroupId}:v.planList.classes[r.orchestraId]?v.planList.classes[r.orchestraId][0]:{},g.selectClasses=v.planList.classes[r.orchestraId]||[],g.selectCourse=v.planList.course[n.classGroupId],g.courseValue=n.classGroupId,v.selectOrchestraId=null,v.selectClassGroupId=null),c.next=15;break;case 13:c.prev=13,c.t0=c.catch(1);case 15:case"end":return c.stop()}}),c,null,[[1,13]])})));return function(){return t.apply(this,arguments)}}(),S=function(){var e=c(regeneratorRuntime.mark((function e(c){var t,r,n,a;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(a in t=[],c.forEach((function(e){-1===t.findIndex((function(c){return c.orchestraId===e.orchestraId}))&&t.push({orchestraId:e.orchestraId,orchestraName:e.orchestraName})})),r={},t.forEach((function(e){c.forEach((function(c){if(e.orchestraId===c.orchestraId){var t=r[e.orchestraId];if(t)-1===t.findIndex((function(e){return e.classGroupId===c.classGroupId}))&&r[e.orchestraId].push({classGroupId:c.classGroupId,className:c.className});else r[e.orchestraId]=[{classGroupId:c.classGroupId,className:c.className}]}}))})),n={},r)(r[a]||[]).forEach((function(e){var t=c.filter((function(c){return c.classGroupId===e.classGroupId}));n[e.classGroupId]=t}));v.planList={orchestra:t,classes:r,course:n};case 7:case"end":return e.stop()}}),e)})));return function(c){return e.apply(this,arguments)}}(),V=function(c){v.selectOrchestraId=g.tabValue||null,v.selectClassGroupId=g.courseValue||null,a.push({path:"/course-adjust",query:{id:c.id,cacheId:e.query.cacheId}})},j=function(){var t=c(regeneratorRuntime.mark((function c(){var t;return regeneratorRuntime.wrap((function(c){for(;;)switch(c.prev=c.next){case 0:return c.prev=0,g.isClick=!0,c.next=4,b.post("/api-school/orchestra/trainingPlan/"+e.query.cacheId,{hideLoading:!1});case 4:if(999!==(t=c.sent).code){c.next=9;break}return g.dialogStatus=!0,g.dialogMessage=t.message,c.abrupt("return");case 9:g.isClick=!1,"unbind"===e.query.type?a.replace("/companion-teacher"):T({api:"back",content:{}}),c.next=17;break;case 13:c.prev=13,c.t0=c.catch(0),g.isClick=!1,D(!1);case 17:case"end":return c.stop()}}),c,null,[[0,13]])})));return function(){return t.apply(this,arguments)}}();return u((function(){D()})),function(){var e,c;return f("div",{class:w.coursePreview},[f(r,{position:"top"},{default:function(){return[f(t,{border:!1},null),f(y,{lineWidth:20,lineHeight:4,active:g.tabValue,"onUpdate:active":function(e){return g.tabValue=e},swipeThreshold:3,class:w.orchestraTabs,onChange:function(e){if(console.log(e,"val",g.tabValue),!v.selectClassGroupId){g.selectClasses=v.planList.classes[e]||[];var c=v.planList.classes[e]?v.planList.classes[e][0]:{};g.selectCourse=v.planList.course[c.classGroupId],g.courseValue=c.classGroupId}}},N(e=v.planList.orchestra.map((function(e){return f(I,{title:e.orchestraName,name:e.orchestraId},null)})))?e:{default:function(){return[e]}}),f("div",{class:w.courseTabsContainer},[g.courseValue&&f(y,{swipeThreshold:3,class:w.courseTabs,active:g.courseValue,"onUpdate:active":function(e){return g.courseValue=e},lineHeight:0,shrink:!0,ref:E,onChange:function(e){g.selectCourse=v.planList.course[e]}},N(c=g.selectClasses.map((function(e){return f(I,{title:e.className,name:e.classGroupId},null)})))?c:{default:function(){return[c]}})])]}}),g.selectCourse.map((function(e){return f(G,{inset:!0,class:w.cellGroup},{default:function(){return[f(x,{center:!0,class:w.cellDatetime},{title:function(){return f("div",{class:w.cellDate},[f(h,{name:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA65JREFUWEfNmE1oXFUUx3/nNTSoENtaUktcKIoLceeiYi1okWrBjSSZNxEK4seyUZQmNGjenUpb2mDFdOkHgouZ17S4EYouqsUPdOXGlVR0Ux2ltjFgIW3yTnnv3kwy8c28N2+wnbsb3j33/uac/zn33Cv02JBueNQ8N4jXfx/Lemeyzgb5h2jxVzGf/lV03Y6AdP/efrZuehZ0GNUngbtbbFxH5EuQM1ya/0xOnl3MC5gLSGf39nNlYBzl9TYQrfasI5xg88KsjGeDZQLpofIuIv0IeGB1R10C+QH4DvgZ0SvJN5XNwIPAY6A7QPrWUF7AkxdluvZ1O2+1BVLjxx45BriFdR7ZcBzt+1DMJ211ombfILL0Ero8AbLJQSwBk2LCE62gWgKpKR8BPWgNVYGToBUxc5fz6iGxNKNbQAJgP4jbT46KqU2lrZMK5DzzjoO5isgLEoRznYCsn6sVfxTVj0Fud9/eSPPUf4CcZs7ZMOlVPG+3TNdivaQOfWv0Efq8syg/YsJnBGJvps89VN5BFJ1zUEt4Eq/dpKkmoCSbLg/8ZAWsioif5Rk1pTdB3rYE0XYxc/V2nnSeCl34LrBl4eG12dcMVPEPoBx3oZoVc+rVrDBppRSgYuw8GRJT+z3TxpTeAxm3JkxIEM6s2DSAkqJ318Bvts7oPOj9eQRcDCgR+i8u++r8vXDvSvFcBaqMDaPRaUvtTUlQPZr1T5MsKuAhazd2EI2OuP1GJKiesQ5zQ41fBcoI19GN92TVmYZdUaC4TrF40RXPmphwbD3QH+5Y+FZM+Hge73TjocTW+N8AO4G6mHB7Ayipqlz700HMiAknbhJQnEAH7F7XtsVdQhIyTeqDfu8gXhETflAI6DYZksnsLFsjk5eB95Pfnjwa1zsLFPh7ED63AtMRCU4lAsszmkWdahEXyvM8FD0lpbnltTO0UhpGxSaS8rRUwi+6BzL+a8C7GfAReNvEVC/lA+omZDP77uDf65Ogg+lQqnhyXqbD2vrvavwWIYtbUTYWEnWesLaao8ZPF7VLwUJp3yVQeto7IFsYibvB/qG8hbEokC01rjCKVCWoPZ/kVCMFCx4dhYGC8hSih21meylHR8HDtQiQ6yLbH65J2Aq0H8WAcrQfCVCBBq1ToI4atATKXntyt7CdANkjqoMWtiFwe/3pjSZ/FaqHrkHrPNUbF8UGVC9dpRtQvfTY0NQurDzHaDQCPNH2OQa+QrzT/8tzTOvT+hY/WHVSc4rOvQGJ+h9D5Yk+CwAAAABJRU5ErkJggg==",class:w.iconTimer},null),d(e.classDate).format("YYYY-MM-DD")])},value:function(){return f("span",{class:w.cellTime},[e.singleCourseTime,_("分钟")])}}),f("div",{class:[w.cellTimeRange,e.conflictType&&e.conflictType.length>0&&w.conflictType]},[d(e.startTime).format("HH:mm"),_("-"),d(e.endTime).format("HH:mm")]),f(x,{center:!0,class:w.cellTeacher,border:!1},{icon:function(){return f(A,{src:e.teacherAvatar||n,class:w.img,fit:"cover"},null)},title:function(){return f("div",{class:w.teacherInfo},[f("p",{class:[w.teacherName,"van-ellipsis"]},[e.teacherName]),f(k,{color:"#FFE3DA",textColor:"#F67146",style:{fontWeight:"500",padding:"2px 6px 1px"}},{default:function(){return[e.className]}})])},value:function(){return f(p,{round:!0,plain:!0,type:"primary",class:w.btn,onClick:function(){return V(e)}},{default:function(){return[_("调整")]}})}}),f(x,{center:!0,border:!1,class:[w.cellTeacher,w.conflictGrouop]},{title:function(){return f(m,null,[e.conflictType&&e.conflictType.includes("STUDENT")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="学生时间冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学生冲突")]}}),e.conflictType&&e.conflictType.includes("DIFF_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="该时间段伴学指导在其他学校有课",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("学校冲突")]}}),e.conflictType&&e.conflictType.includes("SAME_SCHOOL_TEACHER")&&f(k,{class:w.conflict,color:"#ff8057",size:"large",onClick:function(){g.conflictMessage="伴学指导在本学校时间有冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师冲突")]}}),e.conflictType&&e.conflictType.includes("LEAVE")&&f(k,{class:w.conflict,color:"#F44541",size:"large",onClick:function(){g.conflictMessage="伴学指导请假冲突",g.conflictStatus=!0,g.choiceCourse=e}},{default:function(){return[_("老师请假")]}})])}})]}})})),f(r,{position:"bottom"},{default:function(){return[f("div",{class:"btnGroup"},[f(p,{round:!0,block:!0,type:"primary",onClick:j,disabled:g.isClick},{default:function(){return["change"===g.type||"native"===g.type?"确认调整":"确认排课"]}})])]}}),f(C,{title:"课程冲突",message:g.conflictMessage,show:g.conflictStatus,"onUpdate:show":function(e){return g.conflictStatus=e},messageAlign:"center",confirmButtonText:"去调整",cancelButtonText:"知道了",showCancelButton:!0,onConfirm:function(){g.conflictStatus=!1,V(g.choiceCourse)}},null),f(C,{title:"提示",show:g.dialogStatus,"onUpdate:show":function(e){return g.dialogStatus=e},message:g.dialogMessage,confirmButtonText:"确定",onConfirm:function(){a.back()}},null)])}}}))}}}))}();
- >>>>>>> manage-cicle:dist/assets/index-legacy.01e60291.js
|