index-legacy.ec3927b3.js 36 KB

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