index-legacy.436e865d.js 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706
  1. !(function () {
  2. function e(e, c, t, r, n, a, o) {
  3. try {
  4. var s = e[a](o),
  5. i = s.value
  6. } catch (l) {
  7. return void t(l)
  8. }
  9. s.done ? c(i) : Promise.resolve(i).then(r, n)
  10. }
  11. function c(c) {
  12. return function () {
  13. var t = this,
  14. r = arguments
  15. return new Promise(function (n, a) {
  16. var o = c.apply(t, r)
  17. function s(c) {
  18. e(o, n, a, s, i, 'next', c)
  19. }
  20. function i(c) {
  21. e(o, n, a, s, i, 'throw', c)
  22. }
  23. s(void 0)
  24. })
  25. }
  26. }
  27. var t = document.createElement('style')
  28. ;(t.innerHTML =
  29. '._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'),
  30. document.head.appendChild(t),
  31. System.register(
  32. [
  33. './index-legacy.57c73898.js',
  34. './index-legacy.b30008f0.js',
  35. './icon_teacher-legacy.07765f44.js',
  36. './create-legacy.8427d76a.js',
  37. './index-legacy.53fd76ab.js',
  38. './index-legacy.43317ab8.js',
  39. './index-legacy.5d5123be.js',
  40. './index-legacy.cc7dc1ca.js',
  41. './index-legacy.3427fdb7.js',
  42. './index-legacy.118ddf1b.js',
  43. './use-tab-status-legacy.8668a42b.js',
  44. './index-legacy.bf0d95d4.js',
  45. './index-legacy.07eb86de.js'
  46. ],
  47. function (e) {
  48. 'use strict'
  49. 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
  50. return {
  51. setters: [
  52. function (e) {
  53. ;(t = e.d),
  54. (r = e.ah),
  55. (n = e.ag),
  56. (a = e.r),
  57. (o = e.R),
  58. (s = e.$),
  59. (i = e.c),
  60. (l = e.aj),
  61. (u = e.a5),
  62. (f = e.ai),
  63. (h = e.q),
  64. (d = e.B),
  65. (_ = e.F),
  66. (p = e.al),
  67. (m = e.m),
  68. (g = e.e)
  69. },
  70. function (e) {
  71. b = e.O
  72. },
  73. function (e) {
  74. T = e.i
  75. },
  76. function (e) {
  77. v = e.f
  78. },
  79. function (e) {
  80. C = e.O
  81. },
  82. function (e) {
  83. ;(y = e.T), (I = e.a)
  84. },
  85. function (e) {
  86. G = e.C
  87. },
  88. function (e) {
  89. x = e.C
  90. },
  91. function (e) {
  92. A = e.I
  93. },
  94. function (e) {
  95. k = e.T
  96. },
  97. function () {},
  98. function () {},
  99. function () {}
  100. ],
  101. execute: function () {
  102. var w = {
  103. dialogTitle: '_dialogTitle_18ch9_1',
  104. coursePreview: '_coursePreview_18ch9_18',
  105. orchestraTabs: '_orchestraTabs_18ch9_21',
  106. courseTabsContainer: '_courseTabsContainer_18ch9_33',
  107. courseTabs: '_courseTabs_18ch9_33',
  108. cellGroup: '_cellGroup_18ch9_54',
  109. cellDatetime: '_cellDatetime_18ch9_59',
  110. cellTeacher: '_cellTeacher_18ch9_62',
  111. conflictGrouop: '_conflictGrouop_18ch9_68',
  112. cellDate: '_cellDate_18ch9_59',
  113. iconTimer: '_iconTimer_18ch9_79',
  114. cellTime: '_cellTime_18ch9_83',
  115. img: '_img_18ch9_89',
  116. cellTimeRange: '_cellTimeRange_18ch9_97',
  117. conflictType: '_conflictType_18ch9_107',
  118. conflict: '_conflict_18ch9_68',
  119. teacherName: '_teacherName_18ch9_117',
  120. btn: '_btn_18ch9_123'
  121. }
  122. function N(e) {
  123. return (
  124. 'function' == typeof e ||
  125. ('[object Object]' === Object.prototype.toString.call(e) && !p(e))
  126. )
  127. }
  128. e(
  129. 'default',
  130. t({
  131. name: 'course-preview',
  132. setup: function () {
  133. var e = r(),
  134. t = n(),
  135. p = a({
  136. type: e.query.type,
  137. conflictStatus: !1,
  138. conflictMessage: '该时间段伴学老师在其他学校有课',
  139. tabValue: '',
  140. courseValue: '',
  141. selectClasses: [],
  142. selectCourse: [],
  143. choiceCourse: {},
  144. isClick: !1,
  145. dialogStatus: !1,
  146. dialogMessage: ''
  147. }),
  148. E = o(),
  149. D = (function () {
  150. var t = c(
  151. regeneratorRuntime.mark(function c() {
  152. var t,
  153. r,
  154. n,
  155. a = arguments
  156. return regeneratorRuntime.wrap(
  157. function (c) {
  158. for (;;)
  159. switch ((c.prev = c.next)) {
  160. case 0:
  161. return (
  162. !(a.length > 0 && void 0 !== a[0]) || a[0],
  163. (c.prev = 1),
  164. (c.next = 4),
  165. m.post('/api-school/orchestra/trainingPlanListCache', {
  166. requestType: 'form',
  167. data: { cacheId: e.query.cacheId }
  168. })
  169. )
  170. case 4:
  171. if (999 !== (t = c.sent).code) {
  172. c.next = 9
  173. break
  174. }
  175. return (
  176. (p.dialogStatus = !0),
  177. (p.dialogMessage = t.message),
  178. c.abrupt('return')
  179. )
  180. case 9:
  181. S(t.data),
  182. v.planList.orchestra.length > 0 &&
  183. ((r = v.selectOrchestraId
  184. ? { orchestraId: v.selectOrchestraId }
  185. : v.planList.orchestra[0]),
  186. (p.tabValue = r.orchestraId),
  187. (n = v.selectClassGroupId
  188. ? { classGroupId: v.selectClassGroupId }
  189. : v.planList.classes[r.orchestraId]
  190. ? v.planList.classes[r.orchestraId][0]
  191. : {}),
  192. (p.selectClasses = v.planList.classes[r.orchestraId] || []),
  193. (p.selectCourse = v.planList.course[n.classGroupId]),
  194. (p.courseValue = n.classGroupId),
  195. (v.selectOrchestraId = null),
  196. (v.selectClassGroupId = null)),
  197. (c.next = 15)
  198. break
  199. case 13:
  200. ;(c.prev = 13), (c.t0 = c.catch(1))
  201. case 15:
  202. case 'end':
  203. return c.stop()
  204. }
  205. },
  206. c,
  207. null,
  208. [[1, 13]]
  209. )
  210. })
  211. )
  212. return function () {
  213. return t.apply(this, arguments)
  214. }
  215. })(),
  216. S = (function () {
  217. var e = c(
  218. regeneratorRuntime.mark(function e(c) {
  219. var t, r, n, a
  220. return regeneratorRuntime.wrap(function (e) {
  221. for (;;)
  222. switch ((e.prev = e.next)) {
  223. case 0:
  224. for (a in ((t = []),
  225. c.forEach(function (e) {
  226. ;-1 ===
  227. t.findIndex(function (c) {
  228. return c.orchestraId === e.orchestraId
  229. }) &&
  230. t.push({
  231. orchestraId: e.orchestraId,
  232. orchestraName: e.orchestraName
  233. })
  234. }),
  235. (r = {}),
  236. t.forEach(function (e) {
  237. c.forEach(function (c) {
  238. if (e.orchestraId === c.orchestraId) {
  239. var t = r[e.orchestraId]
  240. if (t)
  241. -1 ===
  242. t.findIndex(function (e) {
  243. return e.classGroupId === c.classGroupId
  244. }) &&
  245. r[e.orchestraId].push({
  246. classGroupId: c.classGroupId,
  247. className: c.className
  248. })
  249. else
  250. r[e.orchestraId] = [
  251. { classGroupId: c.classGroupId, className: c.className }
  252. ]
  253. }
  254. })
  255. }),
  256. (n = {}),
  257. r))
  258. (r[a] || []).forEach(function (e) {
  259. var t = c.filter(function (c) {
  260. return c.classGroupId === e.classGroupId
  261. })
  262. n[e.classGroupId] = t
  263. })
  264. v.planList = { orchestra: t, classes: r, course: n }
  265. case 7:
  266. case 'end':
  267. return e.stop()
  268. }
  269. }, e)
  270. })
  271. )
  272. return function (c) {
  273. return e.apply(this, arguments)
  274. }
  275. })(),
  276. V = function (c) {
  277. ;(v.selectOrchestraId = p.tabValue || null),
  278. (v.selectClassGroupId = p.courseValue || null),
  279. t.push({
  280. path: '/course-adjust',
  281. query: { id: c.id, cacheId: e.query.cacheId }
  282. })
  283. },
  284. L = (function () {
  285. var r = c(
  286. regeneratorRuntime.mark(function c() {
  287. var r
  288. return regeneratorRuntime.wrap(
  289. function (c) {
  290. for (;;)
  291. switch ((c.prev = c.next)) {
  292. case 0:
  293. return (
  294. (c.prev = 0),
  295. (p.isClick = !0),
  296. (c.next = 4),
  297. m.post(
  298. '/api-school/orchestra/trainingPlan/' + e.query.cacheId,
  299. { hideLoading: !1 }
  300. )
  301. )
  302. case 4:
  303. if (999 !== (r = c.sent).code) {
  304. c.next = 9
  305. break
  306. }
  307. return (
  308. (p.dialogStatus = !0),
  309. (p.dialogMessage = r.message),
  310. c.abrupt('return')
  311. )
  312. case 9:
  313. ;(p.isClick = !1),
  314. 'unbind' === e.query.type
  315. ? t.replace('/companion-teacher')
  316. : g({ api: 'back', content: {} }),
  317. (c.next = 17)
  318. break
  319. case 13:
  320. ;(c.prev = 13), (c.t0 = c.catch(0)), (p.isClick = !1), D(!1)
  321. case 17:
  322. case 'end':
  323. return c.stop()
  324. }
  325. },
  326. c,
  327. null,
  328. [[0, 13]]
  329. )
  330. })
  331. )
  332. return function () {
  333. return r.apply(this, arguments)
  334. }
  335. })()
  336. return (
  337. s(function () {
  338. D()
  339. }),
  340. function () {
  341. var e, c
  342. return i('div', { class: w.coursePreview }, [
  343. i(
  344. b,
  345. { position: 'top' },
  346. {
  347. default: function () {
  348. return [
  349. i(l, { border: !1 }, null),
  350. i(
  351. y,
  352. {
  353. lineWidth: 20,
  354. lineHeight: 4,
  355. active: p.tabValue,
  356. 'onUpdate:active': function (e) {
  357. return (p.tabValue = e)
  358. },
  359. swipeThreshold: 3,
  360. class: w.orchestraTabs,
  361. onChange: function (e) {
  362. if (
  363. (console.log(e, 'val', p.tabValue), !v.selectClassGroupId)
  364. ) {
  365. p.selectClasses = v.planList.classes[e] || []
  366. var c = v.planList.classes[e]
  367. ? v.planList.classes[e][0]
  368. : {}
  369. ;(p.selectCourse = v.planList.course[c.classGroupId]),
  370. (p.courseValue = c.classGroupId)
  371. }
  372. }
  373. },
  374. N(
  375. (e = v.planList.orchestra.map(function (e) {
  376. return i(
  377. I,
  378. { title: e.orchestraName, name: e.orchestraId },
  379. null
  380. )
  381. }))
  382. )
  383. ? e
  384. : {
  385. default: function () {
  386. return [e]
  387. }
  388. }
  389. ),
  390. i('div', { class: w.courseTabsContainer }, [
  391. p.courseValue &&
  392. i(
  393. y,
  394. {
  395. swipeThreshold: 3,
  396. class: w.courseTabs,
  397. active: p.courseValue,
  398. 'onUpdate:active': function (e) {
  399. return (p.courseValue = e)
  400. },
  401. lineHeight: 0,
  402. shrink: !0,
  403. ref: E,
  404. onChange: function (e) {
  405. p.selectCourse = v.planList.course[e]
  406. }
  407. },
  408. N(
  409. (c = p.selectClasses.map(function (e) {
  410. return i(
  411. I,
  412. { title: e.className, name: e.classGroupId },
  413. null
  414. )
  415. }))
  416. )
  417. ? c
  418. : {
  419. default: function () {
  420. return [c]
  421. }
  422. }
  423. )
  424. ])
  425. ]
  426. }
  427. }
  428. ),
  429. p.selectCourse.map(function (e) {
  430. return i(
  431. G,
  432. { inset: !0, class: w.cellGroup },
  433. {
  434. default: function () {
  435. return [
  436. i(
  437. x,
  438. { center: !0, class: w.cellDatetime },
  439. {
  440. title: function () {
  441. return i('div', { class: w.cellDate }, [
  442. i(
  443. u,
  444. {
  445. 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==',
  446. class: w.iconTimer
  447. },
  448. null
  449. ),
  450. f(e.classDate).format('YYYY-MM-DD')
  451. ])
  452. },
  453. value: function () {
  454. return i('span', { class: w.cellTime }, [
  455. e.singleCourseTime,
  456. h('分钟')
  457. ])
  458. }
  459. }
  460. ),
  461. i(
  462. 'div',
  463. {
  464. class: [
  465. w.cellTimeRange,
  466. e.conflictType &&
  467. e.conflictType.length > 0 &&
  468. w.conflictType
  469. ]
  470. },
  471. [
  472. f(e.startTime).format('HH:mm'),
  473. h('-'),
  474. f(e.endTime).format('HH:mm')
  475. ]
  476. ),
  477. i(
  478. x,
  479. { center: !0, class: w.cellTeacher, border: !1 },
  480. {
  481. icon: function () {
  482. return i(
  483. A,
  484. { src: e.teacherAvatar || T, class: w.img, fit: 'cover' },
  485. null
  486. )
  487. },
  488. title: function () {
  489. return i('div', { class: w.teacherInfo }, [
  490. i('p', { class: [w.teacherName, 'van-ellipsis'] }, [
  491. e.teacherName
  492. ]),
  493. i(
  494. k,
  495. {
  496. color: '#FFE3DA',
  497. textColor: '#F67146',
  498. style: { fontWeight: '500', padding: '2px 6px 1px' }
  499. },
  500. {
  501. default: function () {
  502. return [e.className]
  503. }
  504. }
  505. )
  506. ])
  507. },
  508. value: function () {
  509. return i(
  510. d,
  511. {
  512. round: !0,
  513. plain: !0,
  514. type: 'primary',
  515. class: w.btn,
  516. onClick: function () {
  517. return V(e)
  518. }
  519. },
  520. {
  521. default: function () {
  522. return [h('调整')]
  523. }
  524. }
  525. )
  526. }
  527. }
  528. ),
  529. i(
  530. x,
  531. {
  532. center: !0,
  533. border: !1,
  534. class: [w.cellTeacher, w.conflictGrouop]
  535. },
  536. {
  537. title: function () {
  538. return i(_, null, [
  539. e.conflictType &&
  540. e.conflictType.includes('STUDENT') &&
  541. i(
  542. k,
  543. {
  544. class: w.conflict,
  545. color: '#F44541',
  546. size: 'large',
  547. onClick: function () {
  548. ;(p.conflictMessage = '学员时间冲突'),
  549. (p.conflictStatus = !0),
  550. (p.choiceCourse = e)
  551. }
  552. },
  553. {
  554. default: function () {
  555. return [h('学员冲突')]
  556. }
  557. }
  558. ),
  559. e.conflictType &&
  560. e.conflictType.includes('DIFF_SCHOOL_TEACHER') &&
  561. i(
  562. k,
  563. {
  564. class: w.conflict,
  565. color: '#F44541',
  566. size: 'large',
  567. onClick: function () {
  568. ;(p.conflictMessage =
  569. '该时间段伴学老师在其他学校有课'),
  570. (p.conflictStatus = !0),
  571. (p.choiceCourse = e)
  572. }
  573. },
  574. {
  575. default: function () {
  576. return [h('学校冲突')]
  577. }
  578. }
  579. ),
  580. e.conflictType &&
  581. e.conflictType.includes('SAME_SCHOOL_TEACHER') &&
  582. i(
  583. k,
  584. {
  585. class: w.conflict,
  586. color: '#ff8057',
  587. size: 'large',
  588. onClick: function () {
  589. ;(p.conflictMessage =
  590. '伴学老师在本学校时间有冲突'),
  591. (p.conflictStatus = !0),
  592. (p.choiceCourse = e)
  593. }
  594. },
  595. {
  596. default: function () {
  597. return [h('老师冲突')]
  598. }
  599. }
  600. ),
  601. e.conflictType &&
  602. e.conflictType.includes('LEAVE') &&
  603. i(
  604. k,
  605. {
  606. class: w.conflict,
  607. color: '#F44541',
  608. size: 'large',
  609. onClick: function () {
  610. ;(p.conflictMessage = '伴学老师请假冲突'),
  611. (p.conflictStatus = !0),
  612. (p.choiceCourse = e)
  613. }
  614. },
  615. {
  616. default: function () {
  617. return [h('老师请假')]
  618. }
  619. }
  620. )
  621. ])
  622. }
  623. }
  624. )
  625. ]
  626. }
  627. }
  628. )
  629. }),
  630. i(
  631. b,
  632. { position: 'bottom' },
  633. {
  634. default: function () {
  635. return [
  636. i('div', { class: 'btnGroup' }, [
  637. i(
  638. d,
  639. {
  640. round: !0,
  641. block: !0,
  642. type: 'primary',
  643. onClick: L,
  644. disabled: p.isClick
  645. },
  646. {
  647. default: function () {
  648. return [
  649. 'change' === p.type || 'native' === p.type
  650. ? '确认调整'
  651. : '确认排课'
  652. ]
  653. }
  654. }
  655. )
  656. ])
  657. ]
  658. }
  659. }
  660. ),
  661. i(
  662. C,
  663. {
  664. title: '课程冲突',
  665. message: p.conflictMessage,
  666. show: p.conflictStatus,
  667. 'onUpdate:show': function (e) {
  668. return (p.conflictStatus = e)
  669. },
  670. messageAlign: 'center',
  671. confirmButtonText: '去调整',
  672. cancelButtonText: '知道了',
  673. showCancelButton: !0,
  674. onConfirm: function () {
  675. ;(p.conflictStatus = !1), V(p.choiceCourse)
  676. }
  677. },
  678. null
  679. ),
  680. i(
  681. C,
  682. {
  683. title: '提示',
  684. show: p.dialogStatus,
  685. 'onUpdate:show': function (e) {
  686. return (p.dialogStatus = e)
  687. },
  688. message: p.dialogMessage,
  689. confirmButtonText: '确定',
  690. onConfirm: function () {
  691. t.back()
  692. }
  693. },
  694. null
  695. )
  696. ])
  697. }
  698. )
  699. }
  700. })
  701. )
  702. }
  703. }
  704. }
  705. )
  706. })()