index-legacy.44ce5d4d.js 108 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238
  1. <<<<<<< HEAD:dist/assets/index-legacy.af73baff.js
  2. <<<<<<< HEAD:dist/assets/index-legacy.a9b87efc.js
  3. <<<<<<< HEAD:dist/assets/index-legacy.129648fe.js
  4. !(function () {
  5. function e(t) {
  6. return (
  7. (e =
  8. 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
  9. ? function (e) {
  10. return typeof e
  11. }
  12. : function (e) {
  13. return e &&
  14. 'function' == typeof Symbol &&
  15. e.constructor === Symbol &&
  16. e !== Symbol.prototype
  17. ? 'symbol'
  18. : typeof e
  19. }),
  20. e(t)
  21. )
  22. }
  23. function t(e) {
  24. return (
  25. (function (e) {
  26. if (Array.isArray(e)) return n(e)
  27. })(e) ||
  28. (function (e) {
  29. if (('undefined' != typeof Symbol && null != e[Symbol.iterator]) || null != e['@@iterator'])
  30. return Array.from(e)
  31. })(e) ||
  32. (function (e, t) {
  33. if (!e) return
  34. if ('string' == typeof e) return n(e, t)
  35. var r = Object.prototype.toString.call(e).slice(8, -1)
  36. 'Object' === r && e.constructor && (r = e.constructor.name)
  37. if ('Map' === r || 'Set' === r) return Array.from(e)
  38. if ('Arguments' === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return n(e, t)
  39. })(e) ||
  40. (function () {
  41. throw new TypeError(
  42. 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  43. )
  44. })()
  45. )
  46. }
  47. function n(e, t) {
  48. ;(null == t || t > e.length) && (t = e.length)
  49. for (var n = 0, r = new Array(t); n < t; n++) r[n] = e[n]
  50. return r
  51. }
  52. function r(e, t) {
  53. var n = Object.keys(e)
  54. if (Object.getOwnPropertySymbols) {
  55. var r = Object.getOwnPropertySymbols(e)
  56. t &&
  57. (r = r.filter(function (t) {
  58. return Object.getOwnPropertyDescriptor(e, t).enumerable
  59. })),
  60. n.push.apply(n, r)
  61. }
  62. return n
  63. }
  64. function c(e) {
  65. for (var t = 1; t < arguments.length; t++) {
  66. var n = null != arguments[t] ? arguments[t] : {}
  67. t % 2
  68. ? r(Object(n), !0).forEach(function (t) {
  69. o(e, t, n[t])
  70. })
  71. : Object.getOwnPropertyDescriptors
  72. ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n))
  73. : r(Object(n)).forEach(function (t) {
  74. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t))
  75. })
  76. }
  77. return e
  78. }
  79. function o(e, t, n) {
  80. return (
  81. t in e
  82. ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 })
  83. : (e[t] = n),
  84. e
  85. )
  86. }
  87. function s(e, t, n, r, c, o, s) {
  88. try {
  89. var a = e[o](s),
  90. u = a.value
  91. } catch (i) {
  92. return void n(i)
  93. }
  94. a.done ? t(u) : Promise.resolve(u).then(r, c)
  95. }
  96. function a(e) {
  97. return function () {
  98. var t = this,
  99. n = arguments
  100. return new Promise(function (r, c) {
  101. var o = e.apply(t, n)
  102. function a(e) {
  103. s(o, r, c, a, u, 'next', e)
  104. }
  105. function u(e) {
  106. s(o, r, c, a, u, 'throw', e)
  107. }
  108. a(void 0)
  109. })
  110. }
  111. }
  112. var u = document.createElement('style')
  113. ;(u.innerHTML =
  114. '._searchBand_1v64m_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1v64m_1 ._bandName_1v64m_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._studentList_1v64m_12{--van-checkbox-border-color: transparent}._studentList_1v64m_12 .van-checkbox{height:.66667rem}._studentList_1v64m_12 ._iconChecked_1v64m_18{font-size:.48rem;border:.02667rem solid transparent;background:transparent}._studentList_1v64m_12 ._iconChecked_1v64m_18 .van-icon__image{width:100%;height:100%}._studentList_1v64m_12 ._img_1v64m_27{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._studentList_1v64m_12 ._name_1v64m_35{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._studentList_1v64m_12 ._class_1v64m_41{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem}._studentList_1v64m_12 ._btnMore_1v64m_47{display:flex;align-items:center;padding:.42667rem .34667rem!important}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button{display:flex;justify-content:center;align-items:center;flex-shrink:1;width:30%}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button+.van-button{flex-shrink:2;width:68%;margin-left:2%}._subjectList_hptt0_1{display:flex;align-items:center;flex-wrap:wrap}._subject_hptt0_1{--van-checkbox-border-color: transparent;position:relative;padding-left:.34667rem;margin-top:.53333rem}._subject_hptt0_1 .van-checkbox{position:absolute;top:.16rem;right:.16rem;z-index:9;height:.66667rem}._subject_hptt0_1 ._iconChecked_hptt0_19{font-size:.48rem;border:.02667rem solid transparent}._subject_hptt0_1 ._iconChecked_hptt0_19 .van-icon__image{width:100%;height:100%}._subject_hptt0_1 ._img_hptt0_27{width:2.88rem;height:2.88rem;border-radius:.21333rem;overflow:hidden;background-color:#fff}._subject_hptt0_1 ._name_hptt0_34{padding-top:.16rem;font-size:.42667rem;font-weight:500;color:#333;max-width:2.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n'),
  115. document.head.appendChild(u),
  116. System.register(
  117. [
  118. './index-legacy.da3cfd73.js',
  119. './index-legacy.8f928ac8.js',
  120. './index-legacy.86e58eb0.js',
  121. './index-legacy.37a26c18.js',
  122. './index.module-legacy.3521c141.js',
  123. './index-legacy.2ac65fee.js',
  124. './icon-checkbox-check-legacy.8c6ec582.js',
  125. './icon-checkbox-default-legacy.20cf236b.js',
  126. './icon_student-legacy.6118fd72.js',
  127. './index-legacy.88f968f8.js',
  128. './index-legacy.46c1a425.js',
  129. './index-legacy.1f5a1fbe.js',
  130. './index-legacy.d552d569.js',
  131. './index-legacy.11b1b942.js',
  132. './index-legacy.31f31051.js',
  133. './create-legacy.82624967.js',
  134. './index-legacy.a5bef69a.js',
  135. './index-legacy.b08187e4.js',
  136. './index-legacy.8ec00d40.js',
  137. './index-legacy.c75fe8a2.js',
  138. './use-tab-status-legacy.203dc693.js',
  139. './Checker-legacy.bc354448.js',
  140. './index-legacy.bc5c4a06.js',
  141. './index-legacy.72f6344c.js',
  142. './index-legacy.a9a76943.js'
  143. ],
  144. function (n) {
  145. 'use strict'
  146. var r,
  147. o,
  148. s,
  149. u,
  150. i,
  151. l,
  152. d,
  153. f,
  154. p,
  155. h,
  156. m,
  157. b,
  158. v,
  159. g,
  160. _,
  161. j,
  162. y,
  163. S,
  164. k,
  165. x,
  166. w,
  167. A,
  168. C,
  169. I,
  170. L,
  171. O,
  172. E,
  173. P,
  174. B,
  175. U,
  176. M,
  177. R,
  178. T,
  179. z
  180. return {
  181. setters: [
  182. function (e) {
  183. r = e.O
  184. },
  185. function (e) {
  186. o = e.O
  187. },
  188. function (e) {
  189. s = e.O
  190. },
  191. function (e) {
  192. ;(u = e.d),
  193. (i = e.r),
  194. (l = e.Z),
  195. (d = e.$),
  196. (f = e.f),
  197. (p = e.c),
  198. (h = e.a5),
  199. (m = e.ai),
  200. (b = e.B),
  201. (v = e.q),
  202. (g = e.P),
  203. (_ = e.ak),
  204. (j = e.m),
  205. (y = e.ag),
  206. (S = e.F),
  207. (k = e.o)
  208. },
  209. function (e) {
  210. x = e.s
  211. },
  212. function (e) {
  213. w = e.O
  214. },
  215. function (e) {
  216. A = e.c
  217. },
  218. function (e) {
  219. C = e.c
  220. },
  221. function (e) {
  222. I = e.i
  223. },
  224. function (e) {
  225. L = e.L
  226. },
  227. function (e) {
  228. O = e.C
  229. },
  230. function (e) {
  231. E = e.C
  232. },
  233. function (e) {
  234. P = e.I
  235. },
  236. function (e) {
  237. B = e.C
  238. },
  239. function (e) {
  240. U = e.P
  241. },
  242. function (e) {
  243. ;(M = e.r), (R = e.c)
  244. },
  245. function (e) {
  246. T = e.C
  247. },
  248. function (e) {
  249. z = e.F
  250. },
  251. function () {},
  252. function () {},
  253. function () {},
  254. function () {},
  255. function () {},
  256. function () {},
  257. function () {}
  258. ],
  259. execute: function () {
  260. var N = {
  261. searchBand: '_searchBand_1v64m_1',
  262. bandName: '_bandName_1v64m_7',
  263. studentList: '_studentList_1v64m_12',
  264. iconChecked: '_iconChecked_1v64m_18',
  265. img: '_img_1v64m_27',
  266. name: '_name_1v64m_35',
  267. class: '_class_1v64m_41',
  268. btnMore: '_btnMore_1v64m_47'
  269. }
  270. var F = {
  271. 1: '一年级',
  272. 2: '二年级',
  273. 3: '三年级',
  274. 4: '四年级',
  275. 5: '五年级',
  276. 6: '六年级'
  277. },
  278. V = u({
  279. name: 'student-list',
  280. props: {
  281. orchestraList: {
  282. type: Array,
  283. default: function () {
  284. return []
  285. }
  286. },
  287. subjectId: { type: [String, Number], default: '' },
  288. selectStudentIds: {
  289. type: Array,
  290. default: function () {
  291. return []
  292. }
  293. }
  294. },
  295. emits: ['close', 'select'],
  296. setup: function (e, n) {
  297. n.slots, n.attrs
  298. var o = n.emit,
  299. u = i({
  300. showPopover: !1,
  301. oPopover: !1,
  302. isLoad: !1,
  303. classList: [
  304. { text: '全部', value: -1 },
  305. { text: '一年级', value: 1 },
  306. { text: '二年级', value: 2 },
  307. { text: '三年级', value: 3 },
  308. { text: '四年级', value: 4 },
  309. { text: '五年级', value: 5 }
  310. ],
  311. check: [],
  312. checkboxRefs: [],
  313. orchestra: { id: null, name: '全部乐团' },
  314. class: { id: null, name: '全部' },
  315. list: [],
  316. listState: { dataShow: !0, loading: !1, finished: !1 },
  317. params: { keyword: null, page: 1, rows: 20 }
  318. }),
  319. y = (function () {
  320. var t = a(
  321. regeneratorRuntime.mark(function t() {
  322. var n, r
  323. return regeneratorRuntime.wrap(
  324. function (t) {
  325. for (;;)
  326. switch ((t.prev = t.next)) {
  327. case 0:
  328. if (((t.prev = 0), !u.isLoad)) {
  329. t.next = 3
  330. break
  331. }
  332. return t.abrupt('return')
  333. case 3:
  334. return (
  335. (u.isLoad = !0),
  336. (t.next = 6),
  337. j.post('/api-school/student/page', {
  338. data: c(
  339. c({}, u.params),
  340. {},
  341. {
  342. subjectId: e.subjectId,
  343. orchestraId: u.orchestra.id,
  344. currentGradeNum: -1 === u.class.id ? null : u.class.id
  345. }
  346. )
  347. })
  348. )
  349. case 6:
  350. if (
  351. ((n = t.sent),
  352. (u.listState.loading = !1),
  353. (r = n.data || {}),
  354. !(u.list.length > 0 && 1 === r.current))
  355. ) {
  356. t.next = 11
  357. break
  358. }
  359. return t.abrupt('return')
  360. case 11:
  361. ;(u.list = u.list.concat(r.rows || [])),
  362. (u.listState.finished = r.current >= r.pages),
  363. (u.params.page = r.current + 1),
  364. (u.listState.dataShow = u.list.length > 0),
  365. (u.isLoad = !1),
  366. (t.next = 23)
  367. break
  368. case 18:
  369. ;(t.prev = 18),
  370. (t.t0 = t.catch(0)),
  371. (u.listState.dataShow = !1),
  372. (u.listState.finished = !0),
  373. (u.isLoad = !1)
  374. case 23:
  375. case 'end':
  376. return t.stop()
  377. }
  378. },
  379. t,
  380. null,
  381. [[0, 18]]
  382. )
  383. })
  384. )
  385. return function () {
  386. return t.apply(this, arguments)
  387. }
  388. })(),
  389. S = function () {
  390. ;(u.params.page = 1),
  391. (u.list = []),
  392. (u.listState.dataShow = !0),
  393. (u.listState.loading = !1),
  394. (u.listState.finished = !1),
  395. y()
  396. },
  397. k = function () {
  398. o('close'),
  399. o('select', u.check),
  400. setTimeout(function () {
  401. u.check = []
  402. }, 100)
  403. }
  404. return (
  405. l(
  406. function () {
  407. return e.subjectId
  408. },
  409. function () {
  410. console.log('subjectId'), S()
  411. }
  412. ),
  413. l(
  414. function () {
  415. return e.selectStudentIds
  416. },
  417. function () {
  418. console.log(e.selectStudentIds, 'watch'), (u.check = t(e.selectStudentIds))
  419. }
  420. ),
  421. d(function () {
  422. var n
  423. if (
  424. (console.log(e.selectStudentIds, 'onmount'),
  425. 'sixYearSystem' ===
  426. (null === (n = f.user.data.school) || void 0 === n
  427. ? void 0
  428. : n.schoolSystem) && u.classList.push({ text: '六年级', value: 6 }),
  429. e.orchestraList.length > 0)
  430. ) {
  431. var r = e.orchestraList[0]
  432. ;(u.orchestra.id = r.value), (u.orchestra.name = r.text)
  433. }
  434. y(), (u.check = t(e.selectStudentIds))
  435. }),
  436. function () {
  437. var t
  438. return p('div', { class: N.studentList }, [
  439. p(
  440. s,
  441. { position: 'top' },
  442. {
  443. default: function () {
  444. return [
  445. p(r, { title: '选择学员', desotry: !1, border: !1 }, null),
  446. p(
  447. w,
  448. {
  449. class: 'searchGroupInput',
  450. placeholder: '学员名称/手机号',
  451. onSearch: function (e) {
  452. ;(u.params.keyword = e), S()
  453. }
  454. },
  455. null
  456. ),
  457. p('div', { class: 'searchGroup' }, [
  458. p(
  459. 'div',
  460. {
  461. class: [
  462. 'searchItem searchItem-large',
  463. u.showPopover ? 'searchItem-active' : ''
  464. ],
  465. onClick: function () {
  466. return (u.showPopover = !0)
  467. }
  468. },
  469. [
  470. p('span', null, [u.class.name]),
  471. p('i', { class: 'arrow' }, null)
  472. ]
  473. ),
  474. p(
  475. 'div',
  476. {
  477. class: [
  478. 'searchItem searchItem-large',
  479. u.oPopover ? 'searchItem-active' : ''
  480. ],
  481. onClick: function () {
  482. return (u.oPopover = !0)
  483. }
  484. },
  485. [
  486. p('span', null, [u.orchestra.name]),
  487. p('i', { class: 'arrow' }, null)
  488. ]
  489. )
  490. ])
  491. ]
  492. }
  493. }
  494. ),
  495. u.listState.dataShow
  496. ? p(
  497. L,
  498. {
  499. finished: u.listState.finished,
  500. finishedText: ' ',
  501. class: [N.liveList],
  502. onLoad: y,
  503. style: { paddingTop: '12px' },
  504. immediateCheck: !1
  505. },
  506. {
  507. default: function () {
  508. return [
  509. p(
  510. O,
  511. {
  512. modelValue: u.check,
  513. 'onUpdate:modelValue': function (e) {
  514. return (u.check = e)
  515. }
  516. },
  517. ((e = t =
  518. u.list.map(function (e) {
  519. return p(
  520. E,
  521. {
  522. modelValue: u.check,
  523. 'onUpdate:modelValue': function (e) {
  524. return (u.check = e)
  525. },
  526. center: !0,
  527. onClick: function () {
  528. return (t = e.id), void u.checkboxRefs[t].toggle()
  529. var t
  530. }
  531. },
  532. {
  533. icon: function () {
  534. return p(
  535. P,
  536. { class: N.img, src: e.avatar || I },
  537. null
  538. )
  539. },
  540. title: function () {
  541. return p('div', { class: N.content }, [
  542. p('p', { class: N.name }, [e.nickname]),
  543. p('p', { class: N.class }, [
  544. e.currentGradeNum > 0
  545. ? F[e.currentGradeNum]
  546. : ''
  547. ])
  548. ])
  549. },
  550. 'right-icon': function () {
  551. return p(
  552. B,
  553. {
  554. name: e.id,
  555. ref: function (t) {
  556. return (u.checkboxRefs[e.id] = t)
  557. },
  558. onClick: function (e) {
  559. e.stopPropagation(), e.preventDefault()
  560. }
  561. },
  562. {
  563. icon: function (e) {
  564. return p(
  565. h,
  566. {
  567. class: N.iconChecked,
  568. name: e.checked ? A : C
  569. },
  570. null
  571. )
  572. }
  573. }
  574. )
  575. }
  576. }
  577. )
  578. })),
  579. 'function' == typeof e ||
  580. ('[object Object]' === Object.prototype.toString.call(e) &&
  581. !_(e))
  582. ? t
  583. : {
  584. default: function () {
  585. return [t]
  586. }
  587. })
  588. )
  589. ]
  590. var e
  591. }
  592. }
  593. )
  594. : p(m, { btnStatus: !1, tips: '暂无学员' }, null),
  595. p(
  596. s,
  597. { position: 'bottom' },
  598. {
  599. default: function () {
  600. return [
  601. p('div', { class: ['btnGroup', N.btnMore] }, [
  602. p(
  603. b,
  604. {
  605. type: 'primary',
  606. plain: !0,
  607. round: !0,
  608. style: { backgroundColor: 'transparent' },
  609. onClick: function () {
  610. u.list.forEach(function (e) {
  611. u.check.includes(e.id) || u.check.push(e.id)
  612. }),
  613. u.check
  614. }
  615. },
  616. {
  617. default: function () {
  618. return [v('全选')]
  619. }
  620. }
  621. ),
  622. p(
  623. b,
  624. { type: 'primary', round: !0, block: !0, onClick: k },
  625. {
  626. default: function () {
  627. return [v('确认')]
  628. }
  629. }
  630. )
  631. ])
  632. ]
  633. }
  634. }
  635. ),
  636. p(
  637. g,
  638. {
  639. show: u.oPopover,
  640. 'onUpdate:show': function (e) {
  641. return (u.oPopover = e)
  642. },
  643. position: 'bottom',
  644. round: !0,
  645. class: 'popupBottomSearch'
  646. },
  647. {
  648. default: function () {
  649. return [
  650. p(
  651. U,
  652. {
  653. columns: e.orchestraList,
  654. onCancel: function () {
  655. return (u.oPopover = !1)
  656. },
  657. onConfirm: function (e) {
  658. var t = e.selectedOptions[0]
  659. ;(u.orchestra.id = t.value),
  660. (u.orchestra.name = t.text),
  661. (u.oPopover = !1),
  662. S()
  663. }
  664. },
  665. null
  666. )
  667. ]
  668. }
  669. }
  670. ),
  671. p(
  672. g,
  673. {
  674. show: u.showPopover,
  675. 'onUpdate:show': function (e) {
  676. return (u.showPopover = e)
  677. },
  678. position: 'bottom',
  679. round: !0,
  680. class: 'popupBottomSearch'
  681. },
  682. {
  683. default: function () {
  684. return [
  685. p(
  686. U,
  687. {
  688. columns: u.classList,
  689. onCancel: function () {
  690. return (u.showPopover = !1)
  691. },
  692. onConfirm: function (e) {
  693. var t = e.selectedOptions[0]
  694. ;(u.class.id = t.value),
  695. (u.class.name = t.text),
  696. (u.showPopover = !1),
  697. S()
  698. }
  699. },
  700. null
  701. )
  702. ]
  703. }
  704. }
  705. )
  706. ])
  707. }
  708. )
  709. }
  710. }),
  711. J = {
  712. subjectList: '_subjectList_hptt0_1',
  713. subject: '_subject_hptt0_1',
  714. iconChecked: '_iconChecked_hptt0_19',
  715. img: '_img_hptt0_27',
  716. name: '_name_hptt0_34'
  717. }
  718. var W = u({
  719. name: 'subject-list',
  720. props: {
  721. subjectList: {
  722. type: Array,
  723. default: function () {
  724. return []
  725. }
  726. },
  727. selectSubjects: {
  728. type: Array,
  729. default: function () {
  730. return []
  731. }
  732. }
  733. },
  734. emits: ['close', 'select'],
  735. setup: function (e, n) {
  736. n.slots, n.attrs
  737. var c = n.emit,
  738. o = i({ check: [], checkboxRefs: [] }),
  739. a = function () {
  740. c('select', o.check), c('close')
  741. }
  742. return (
  743. l(
  744. function () {
  745. return e.selectSubjects
  746. },
  747. function () {
  748. o.check = t(e.selectSubjects)
  749. }
  750. ),
  751. d(function () {
  752. o.check = t(e.selectSubjects)
  753. }),
  754. function () {
  755. var t, n
  756. return p('div', { style: { minHeight: '100vh' } }, [
  757. p(r, { title: '选择声部', desotry: !1 }, null),
  758. p(
  759. O,
  760. {
  761. class: J.subjectList,
  762. modelValue: o.check,
  763. 'onUpdate:modelValue': function (e) {
  764. return (o.check = e)
  765. },
  766. style: { paddingBottom: '24px' }
  767. },
  768. ((n = t =
  769. e.subjectList.map(function (e) {
  770. return p(
  771. 'div',
  772. {
  773. class: J.subject,
  774. onClick: function () {
  775. return (t = e.subjectId), void o.checkboxRefs[t].toggle()
  776. var t
  777. }
  778. },
  779. [
  780. p(
  781. B,
  782. {
  783. name: e.subjectId,
  784. class: J.checkbox,
  785. ref: function (t) {
  786. return (o.checkboxRefs[e.subjectId] = t)
  787. },
  788. onClick: function (e) {
  789. e.stopPropagation()
  790. }
  791. },
  792. {
  793. icon: function (e) {
  794. return p(
  795. h,
  796. {
  797. class: J.iconChecked,
  798. name: e.checked
  799. ? A
  800. : 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4BJREFUWEfVmT1sFEcUx/9vFntF4cI6FIGCEwmKYJnbnQsgIxIhuUgoaCIlIEKoKPgSoJRQUKWAEgHCQJEqwUpMQUMRKCyhJIoF5Gb2sBwKkIJBIMC6ggLWzs6LHtqzjuPjOPsMw7az773fztv3MW8Is3iYWSVJsoaIBph5FYBPmHkJEXWJOmZ+TET3ANwgomvMPBJF0RUicq2ao1YEjDEfAtgLYBuApa3IArgD4CcAJ7TWd99U9o0AR0dHC52dnT8Q0XYAYa78FhH9RkS/O+fGwzC87Zx7LGtKqa40TT9SSvUy8+fMvAHAslwuZeYfp6amDvX39082A20KaK3dwszHASxi5kwp9atS6kSxWPyzmfL69Uqlss45t9c5t5mIAgCPxBta619ep+eVgCMjIwu6u7sFbFeu4JJSan8URf+0Atb4bpIkK5xzxwB8ka+dqlar+wYGBv57md6XAk5MTCycnJwcBrARwBNm/r5UKp2ZC1ijbLlc3kFERwEsBHChUChs6unpedL43guA+c6dz+EeBEGwsVgsXm0nXE1XpVJZnWXZBQAfCGS1Wv2qcSdfADTGDOZufUBE6+M4vjEfcDWd1lpJUZdzyFNa69319p4DzANiSNwaBMH6+dq5xg/Od1Igxd1b6gNnBlBSSRiGEgASrTvb/c8180L+T56W6E7TdEUtBc0Alsvlk0Qk23tJa/1lM4XzsW6MuSjRzcyDpVJpj9h4BphXiJvMvCAIgpVzTSWzhZcUlGXZdSKSlLNcKk4N8DCAA0Q0FMfx1tkaaIectfYsM38L4IjW+iBJ4bfW/iu1NQiCz1qtEO2Aaqw4WZb9IbU7juOPyVrbz8x/AbiltV7eboOz0WeMuSm1m4jWUpIkB5xzh4loMI7jZz/mu36stSeZebdS6iAZY84B+Fop9V0URWffNZzYT5Jkq3PuZyI6J4AVACsBfKq1LvsAaIwpAfgbwHUBfCjJOQzDRb29vU37s7fxAePj44U0TaUdeyRB8pSZw46OjrCvr2/qbQA0szE2NtY5PT2dElHqP6D3LvY5SIioIi4eZuZvvE0z3idq70ud981C3g/62269Fw2rQHrd8gug94cmgfT62Fkr4F4f3AXS+9GHQHo9PKq52uvxW31D6e0Asx7S6xFwPai3Q/TGM0T9NYRzbrVcQwBYXH8NAeC+XEMopa7O5Rrif2YMj8Ww1rJlAAAAAElFTkSuQmCC'
  801. },
  802. null
  803. )
  804. }
  805. }
  806. ),
  807. p(P, { class: J.img, src: e.subjectImg }, null),
  808. p('p', { class: J.name }, [e.subjectName])
  809. ]
  810. )
  811. })),
  812. 'function' == typeof n ||
  813. ('[object Object]' === Object.prototype.toString.call(n) && !_(n))
  814. ? t
  815. : {
  816. default: function () {
  817. return [t]
  818. }
  819. })
  820. ),
  821. p(
  822. s,
  823. { position: 'bottom' },
  824. {
  825. default: function () {
  826. return [
  827. p(
  828. 'div',
  829. {
  830. class: ['btnGroup', 'btnMore'],
  831. style: 'padding-left: 13px; padding-right: 13px;'
  832. },
  833. [
  834. p(
  835. b,
  836. {
  837. round: !0,
  838. color: '#CCCCCC',
  839. onClick: function () {
  840. return c('close')
  841. }
  842. },
  843. {
  844. default: function () {
  845. return [v('取消')]
  846. }
  847. }
  848. ),
  849. p(
  850. b,
  851. { type: 'primary', round: !0, onClick: a },
  852. {
  853. default: function () {
  854. return [v('确认')]
  855. }
  856. }
  857. )
  858. ]
  859. )
  860. ]
  861. }
  862. }
  863. )
  864. ])
  865. }
  866. )
  867. }
  868. }),
  869. G = function t(n) {
  870. if (null === n) return null
  871. var r = Object.assign({}, n)
  872. return (
  873. Object.keys(r).forEach(function (c) {
  874. return (r[c] = 'object' === e(n[c]) ? t(n[c]) : n[c])
  875. }),
  876. Array.isArray(n) ? ((r.length = n.length), Array.from(r)) : r
  877. )
  878. }
  879. n(
  880. 'default',
  881. u({
  882. name: 'create-orchestra',
  883. setup: function () {
  884. var e = y(),
  885. n = (function () {
  886. var e = a(
  887. regeneratorRuntime.mark(function e() {
  888. var t, n
  889. return regeneratorRuntime.wrap(
  890. function (e) {
  891. for (;;)
  892. switch ((e.prev = e.next)) {
  893. case 0:
  894. return (
  895. (e.prev = 0),
  896. (e.next = 3),
  897. j.post('/api-school/subjectBasicConfig/page', {
  898. data: { page: 1, rows: 50 }
  899. })
  900. )
  901. case 3:
  902. ;(t = e.sent),
  903. (n = t.data),
  904. (R.subjectList = n.rows || []),
  905. (e.next = 10)
  906. break
  907. case 8:
  908. ;(e.prev = 8), (e.t0 = e.catch(0))
  909. case 10:
  910. case 'end':
  911. return e.stop()
  912. }
  913. },
  914. e,
  915. null,
  916. [[0, 8]]
  917. )
  918. })
  919. )
  920. return function () {
  921. return e.apply(this, arguments)
  922. }
  923. })(),
  924. c = (function () {
  925. var e = a(
  926. regeneratorRuntime.mark(function e() {
  927. var t, n, r, c
  928. return regeneratorRuntime.wrap(
  929. function (e) {
  930. for (;;)
  931. switch ((e.prev = e.next)) {
  932. case 0:
  933. return (
  934. (e.prev = 0),
  935. (e.next = 3),
  936. j.post('/api-school/orchestra/page', {
  937. data: {
  938. page: 1,
  939. rows: 100,
  940. schoolId: f.user.data.school.id,
  941. status: 'DONE'
  942. }
  943. })
  944. )
  945. case 3:
  946. ;(t = e.sent),
  947. (n = t.data),
  948. (r = n.rows || []),
  949. (c = []),
  950. r.forEach(function (e) {
  951. c.push({ text: e.name, value: e.id })
  952. }),
  953. (R.orchestraList = [].concat(c)),
  954. (e.next = 13)
  955. break
  956. case 11:
  957. ;(e.prev = 11), (e.t0 = e.catch(0))
  958. case 13:
  959. case 'end':
  960. return e.stop()
  961. }
  962. },
  963. e,
  964. null,
  965. [[0, 11]]
  966. )
  967. })
  968. )
  969. return function () {
  970. return e.apply(this, arguments)
  971. }
  972. })(),
  973. u = function (e) {
  974. R.selectSubjectIds = t(e)
  975. var n = []
  976. console.log(R.selectSubjects, '1212', R.subjectList),
  977. R.subjectList.forEach(function (t) {
  978. var r = R.selectSubjects.findIndex(function (e) {
  979. return e.id === t.subjectId
  980. })
  981. e.includes(t.subjectId) &&
  982. (r < 0
  983. ? n.push({
  984. id: t.subjectId,
  985. name: t.subjectName,
  986. subjectCode: t.subjectCode,
  987. type: null,
  988. teacher: {},
  989. students: []
  990. })
  991. : n.push(
  992. R.selectSubjects.find(function (e) {
  993. return e.id === t.subjectId
  994. })
  995. ))
  996. }),
  997. (R.selectSubjects = [].concat(n))
  998. },
  999. i = function () {
  1000. if (R.orchestraName)
  1001. if (R.selectSubjects && R.selectSubjects.length <= 0) k('请选择声部')
  1002. else {
  1003. var n = R.selectSubjects || [],
  1004. r = !1
  1005. if (
  1006. (n.forEach(function (e) {
  1007. ;(!e.students || (e.students && e.students.length <= 0)) && (r = !0)
  1008. }),
  1009. r)
  1010. )
  1011. k('请选择学员')
  1012. else {
  1013. var c = [],
  1014. o = [],
  1015. s = {}
  1016. R.selectSubjects.forEach(function (e) {
  1017. if (
  1018. (console.log(e, 'item.name'),
  1019. o.push.apply(o, t(e.students)),
  1020. 'BARITONE' !== e.subjectCode && 'TUBA' !== e.subjectCode)
  1021. )
  1022. c.push(e)
  1023. else {
  1024. var n = s.students ? s.students : []
  1025. s = {
  1026. id: s.id ? s.id + ',' + e.id : e.id,
  1027. name: s.name ? s.name + '-' + e.name : e.name,
  1028. type: null,
  1029. teacher: {},
  1030. students: [].concat(t(n), t(e.students))
  1031. }
  1032. }
  1033. }),
  1034. (R.selectLastTeacherSubjects = G(c)),
  1035. s.id && R.selectLastTeacherSubjects.push(s),
  1036. R.selectLastTeacherSubjects.push(
  1037. {
  1038. id: null,
  1039. name: '乐理班',
  1040. type: 'MUSIC_THEORY',
  1041. teacher: {},
  1042. students: [].concat(o)
  1043. },
  1044. {
  1045. id: null,
  1046. name: '合奏班',
  1047. type: 'INSTRUMENTAL_ENSEMBLE',
  1048. teacher: {},
  1049. students: [].concat(o)
  1050. }
  1051. ),
  1052. e.push({ path: '/create-orchestra-teacher' })
  1053. }
  1054. }
  1055. else k('请输入乐团名称')
  1056. }
  1057. return (
  1058. d(function () {
  1059. M(), n(), c()
  1060. }),
  1061. function () {
  1062. return p('div', { class: x['create-orchestra'] }, [
  1063. p(r, null, null),
  1064. p(
  1065. T,
  1066. { inset: !0 },
  1067. {
  1068. default: function () {
  1069. return [
  1070. p(
  1071. z,
  1072. {
  1073. label: '乐团名称',
  1074. modelValue: R.orchestraName,
  1075. 'onUpdate:modelValue': function (e) {
  1076. return (R.orchestraName = e)
  1077. },
  1078. placeholder: '请输入乐团名称',
  1079. inputAlign: 'right',
  1080. maxlength: 30
  1081. },
  1082. null
  1083. ),
  1084. p(
  1085. z,
  1086. {
  1087. label: '乐团声部',
  1088. readonly: !0,
  1089. placeholder:
  1090. R.selectSubjects.length > 0
  1091. ? '已选'.concat(R.selectSubjects.length, '个')
  1092. : '选择声部',
  1093. isLink: !0,
  1094. inputAlign: 'right',
  1095. onClick: function () {
  1096. return (R.subjectStatus = !0)
  1097. }
  1098. },
  1099. null
  1100. ),
  1101. R.selectSubjects.map(function (e) {
  1102. return p(
  1103. E,
  1104. {
  1105. title: e.name,
  1106. isLink: !0,
  1107. onClick: function () {
  1108. ;(R.studentStatus = !0), (R.selectSubjectStudents = e)
  1109. }
  1110. },
  1111. {
  1112. value: function () {
  1113. var t
  1114. return p(S, null, [
  1115. v('已选'),
  1116. ' ',
  1117. p(
  1118. 'span',
  1119. { style: { color: 'var(--van-primary-color)' } },
  1120. [
  1121. (null === (t = e.students) || void 0 === t
  1122. ? void 0
  1123. : t.length) || 0
  1124. ]
  1125. ),
  1126. ' ',
  1127. v('名学员')
  1128. ])
  1129. }
  1130. }
  1131. )
  1132. })
  1133. ]
  1134. }
  1135. }
  1136. ),
  1137. p(
  1138. s,
  1139. { position: 'bottom' },
  1140. {
  1141. default: function () {
  1142. return [
  1143. p('div', { class: ['btnGroup'] }, [
  1144. p(
  1145. b,
  1146. { type: 'primary', block: !0, round: !0, onClick: i },
  1147. {
  1148. default: function () {
  1149. return [v('下一步')]
  1150. }
  1151. }
  1152. )
  1153. ])
  1154. ]
  1155. }
  1156. }
  1157. ),
  1158. p(
  1159. o,
  1160. {
  1161. modelValue: R.subjectStatus,
  1162. 'onUpdate:modelValue': function (e) {
  1163. return (R.subjectStatus = e)
  1164. },
  1165. style: 'background: #F8F8F8;'
  1166. },
  1167. {
  1168. default: function () {
  1169. return [
  1170. R.subjectStatus &&
  1171. p(
  1172. W,
  1173. {
  1174. onClose: function () {
  1175. return (R.subjectStatus = !1)
  1176. },
  1177. subjectList: R.subjectList,
  1178. selectSubjects: R.selectSubjectIds,
  1179. onSelect: u
  1180. },
  1181. null
  1182. )
  1183. ]
  1184. }
  1185. }
  1186. ),
  1187. p(
  1188. o,
  1189. {
  1190. modelValue: R.studentStatus,
  1191. 'onUpdate:modelValue': function (e) {
  1192. return (R.studentStatus = e)
  1193. },
  1194. style: 'background: #f8f8f8;'
  1195. },
  1196. {
  1197. default: function () {
  1198. return [
  1199. R.studentStatus &&
  1200. p(
  1201. V,
  1202. {
  1203. orchestraList: R.orchestraList,
  1204. subjectId: R.selectSubjectStudents.id,
  1205. selectStudentIds: R.selectSubjectStudents.students,
  1206. onClose: function () {
  1207. return (R.studentStatus = !1)
  1208. },
  1209. onSelect: function (e) {
  1210. R.selectSubjectStudents.students = t(e)
  1211. }
  1212. },
  1213. null
  1214. )
  1215. ]
  1216. }
  1217. }
  1218. )
  1219. ])
  1220. }
  1221. )
  1222. }
  1223. })
  1224. )
  1225. }
  1226. }
  1227. }
  1228. )
  1229. })()
  1230. =======
  1231. !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n,r,c,o,s){try{var a=e[o](s),u=a.value}catch(i){return void n(i)}a.done?t(u):Promise.resolve(u).then(r,c)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){s(o,r,c,a,u,"next",e)}function u(e){s(o,r,c,a,u,"throw",e)}a(void 0)}))}}var u=document.createElement("style");u.innerHTML="._searchBand_1v64m_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1v64m_1 ._bandName_1v64m_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._studentList_1v64m_12{--van-checkbox-border-color: transparent}._studentList_1v64m_12 .van-checkbox{height:.66667rem}._studentList_1v64m_12 ._iconChecked_1v64m_18{font-size:.48rem;border:.02667rem solid transparent;background:transparent}._studentList_1v64m_12 ._iconChecked_1v64m_18 .van-icon__image{width:100%;height:100%}._studentList_1v64m_12 ._img_1v64m_27{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._studentList_1v64m_12 ._name_1v64m_35{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._studentList_1v64m_12 ._class_1v64m_41{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem}._studentList_1v64m_12 ._btnMore_1v64m_47{display:flex;align-items:center;padding:.42667rem .34667rem!important}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button{display:flex;justify-content:center;align-items:center;flex-shrink:1;width:30%}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button+.van-button{flex-shrink:2;width:68%;margin-left:2%}._subjectList_hptt0_1{display:flex;align-items:center;flex-wrap:wrap}._subject_hptt0_1{--van-checkbox-border-color: transparent;position:relative;padding-left:.34667rem;margin-top:.53333rem}._subject_hptt0_1 .van-checkbox{position:absolute;top:.16rem;right:.16rem;z-index:9;height:.66667rem}._subject_hptt0_1 ._iconChecked_hptt0_19{font-size:.48rem;border:.02667rem solid transparent}._subject_hptt0_1 ._iconChecked_hptt0_19 .van-icon__image{width:100%;height:100%}._subject_hptt0_1 ._img_hptt0_27{width:2.88rem;height:2.88rem;border-radius:.21333rem;overflow:hidden;background-color:#fff}._subject_hptt0_1 ._name_hptt0_34{padding-top:.16rem;font-size:.42667rem;font-weight:500;color:#333;max-width:2.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n",document.head.appendChild(u),System.register(["./index-legacy.35b085b7.js","./index-legacy.61c3446b.js","./index-legacy.e2f02fbe.js","./index-legacy.5250e410.js","./index.module-legacy.3521c141.js","./index-legacy.f7b7dcb8.js","./icon-checkbox-check-legacy.8c6ec582.js","./icon-checkbox-default-legacy.20cf236b.js","./icon_student-legacy.6118fd72.js","./index-legacy.60605ef4.js","./index-legacy.412c8064.js","./index-legacy.7e0d4571.js","./index-legacy.8f701eeb.js","./index-legacy.8851edf7.js","./index-legacy.fa2325b5.js","./create-legacy.7af06c0c.js","./index-legacy.9bde57e9.js","./index-legacy.50e1a648.js","./index-legacy.2260495b.js","./index-legacy.c75fe8a2.js","./use-tab-status-legacy.8f29db2f.js","./Checker-legacy.0dd903b8.js","./index-legacy.f228b6b5.js","./index-legacy.9800e001.js","./index-legacy.eb41f645.js"],(function(n){"use strict";var r,o,s,u,i,l,d,f,p,h,m,b,v,g,_,j,y,S,k,x,w,A,C,I,L,O,E,P,B,U,M,R,T,z;return{setters:[function(e){r=e.O},function(e){o=e.O},function(e){s=e.O},function(e){u=e.d,i=e.r,l=e.Z,d=e.$,f=e.f,p=e.c,h=e.a5,m=e.ai,b=e.B,v=e.q,g=e.P,_=e.ak,j=e.m,y=e.ag,S=e.F,k=e.o},function(e){x=e.s},function(e){w=e.O},function(e){A=e.c},function(e){C=e.c},function(e){I=e.i},function(e){L=e.L},function(e){O=e.C},function(e){E=e.C},function(e){P=e.I},function(e){B=e.C},function(e){U=e.P},function(e){M=e.r,R=e.c},function(e){T=e.C},function(e){z=e.F},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N={searchBand:"_searchBand_1v64m_1",bandName:"_bandName_1v64m_7",studentList:"_studentList_1v64m_12",iconChecked:"_iconChecked_1v64m_18",img:"_img_1v64m_27",name:"_name_1v64m_35",class:"_class_1v64m_41",btnMore:"_btnMore_1v64m_47"};var F={1:"一年级",2:"二年级",3:"三年级",4:"四年级",5:"五年级",6:"六年级"},V=u({name:"student-list",props:{orchestraList:{type:Array,default:function(){return[]}},subjectId:{type:[String,Number],default:""},selectStudentIds:{type:Array,default:function(){return[]}}},emits:["close","select"],setup:function(e,n){n.slots,n.attrs;var o=n.emit,u=i({showPopover:!1,oPopover:!1,isLoad:!1,classList:[{text:"全部",value:-1},{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],check:[],checkboxRefs:[],orchestra:{id:null,name:"全部乐团"},class:{id:null,name:"全部"},list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,page:1,rows:20}}),y=function(){var t=a(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!u.isLoad){t.next=3;break}return t.abrupt("return");case 3:return u.isLoad=!0,t.next=6,j.post("/api-school/student/page",{data:c(c({},u.params),{},{subjectId:e.subjectId,orchestraId:u.orchestra.id,currentGradeNum:-1===u.class.id?null:u.class.id})});case 6:if(n=t.sent,u.listState.loading=!1,r=n.data||{},!(u.list.length>0&&1===r.current)){t.next=11;break}return t.abrupt("return");case 11:u.list=u.list.concat(r.rows||[]),u.listState.finished=r.current>=r.pages,u.params.page=r.current+1,u.listState.dataShow=u.list.length>0,u.isLoad=!1,t.next=23;break;case 18:t.prev=18,t.t0=t.catch(0),u.listState.dataShow=!1,u.listState.finished=!0,u.isLoad=!1;case 23:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(){return t.apply(this,arguments)}}(),S=function(){u.params.page=1,u.list=[],u.listState.dataShow=!0,u.listState.loading=!1,u.listState.finished=!1,y()},k=function(){o("close"),o("select",u.check),setTimeout((function(){u.check=[]}),100)};return l((function(){return e.subjectId}),(function(){console.log("subjectId"),S()})),l((function(){return e.selectStudentIds}),(function(){console.log(e.selectStudentIds,"watch"),u.check=t(e.selectStudentIds)})),d((function(){var n;if(console.log(e.selectStudentIds,"onmount"),"sixYearSystem"===(null===(n=f.user.data.school)||void 0===n?void 0:n.schoolSystem)&&u.classList.push({text:"六年级",value:6}),e.orchestraList.length>0){var r=e.orchestraList[0];u.orchestra.id=r.value,u.orchestra.name=r.text}y(),u.check=t(e.selectStudentIds)})),function(){var t;return p("div",{class:N.studentList},[p(s,{position:"top"},{default:function(){return[p(r,{title:"选择学生",desotry:!1,border:!1},null),p(w,{class:"searchGroupInput",placeholder:"学生名称/手机号",onSearch:function(e){u.params.keyword=e,S()}},null),p("div",{class:"searchGroup"},[p("div",{class:["searchItem searchItem-large",u.showPopover?"searchItem-active":""],onClick:function(){return u.showPopover=!0}},[p("span",null,[u.class.name]),p("i",{class:"arrow"},null)]),p("div",{class:["searchItem searchItem-large",u.oPopover?"searchItem-active":""],onClick:function(){return u.oPopover=!0}},[p("span",null,[u.orchestra.name]),p("i",{class:"arrow"},null)])])]}}),u.listState.dataShow?p(L,{finished:u.listState.finished,finishedText:" ",class:[N.liveList],onLoad:y,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[p(O,{modelValue:u.check,"onUpdate:modelValue":function(e){return u.check=e}},(e=t=u.list.map((function(e){return p(E,{modelValue:u.check,"onUpdate:modelValue":function(e){return u.check=e},center:!0,onClick:function(){return t=e.id,void u.checkboxRefs[t].toggle();var t}},{icon:function(){return p(P,{class:N.img,src:e.avatar||I},null)},title:function(){return p("div",{class:N.content},[p("p",{class:N.name},[e.nickname]),p("p",{class:N.class},[e.currentGradeNum>0?F[e.currentGradeNum]:""])])},"right-icon":function(){return p(B,{name:e.id,ref:function(t){return u.checkboxRefs[e.id]=t},onClick:function(e){e.stopPropagation(),e.preventDefault()}},{icon:function(e){return p(h,{class:N.iconChecked,name:e.checked?A:C},null)}})}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!_(e)?t:{default:function(){return[t]}}))];var e}}):p(m,{btnStatus:!1,tips:"暂无学生"},null),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup",N.btnMore]},[p(b,{type:"primary",plain:!0,round:!0,style:{backgroundColor:"transparent"},onClick:function(){u.list.forEach((function(e){u.check.includes(e.id)||u.check.push(e.id)})),u.check}},{default:function(){return[v("全选")]}}),p(b,{type:"primary",round:!0,block:!0,onClick:k},{default:function(){return[v("确认")]}})])]}}),p(g,{show:u.oPopover,"onUpdate:show":function(e){return u.oPopover=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[p(U,{columns:e.orchestraList,onCancel:function(){return u.oPopover=!1},onConfirm:function(e){var t=e.selectedOptions[0];u.orchestra.id=t.value,u.orchestra.name=t.text,u.oPopover=!1,S()}},null)]}}),p(g,{show:u.showPopover,"onUpdate:show":function(e){return u.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[p(U,{columns:u.classList,onCancel:function(){return u.showPopover=!1},onConfirm:function(e){var t=e.selectedOptions[0];u.class.id=t.value,u.class.name=t.text,u.showPopover=!1,S()}},null)]}})])}}}),J={subjectList:"_subjectList_hptt0_1",subject:"_subject_hptt0_1",iconChecked:"_iconChecked_hptt0_19",img:"_img_hptt0_27",name:"_name_hptt0_34"};var W=u({name:"subject-list",props:{subjectList:{type:Array,default:function(){return[]}},selectSubjects:{type:Array,default:function(){return[]}}},emits:["close","select"],setup:function(e,n){n.slots,n.attrs;var c=n.emit,o=i({check:[],checkboxRefs:[]}),a=function(){c("select",o.check),c("close")};return l((function(){return e.selectSubjects}),(function(){o.check=t(e.selectSubjects)})),d((function(){o.check=t(e.selectSubjects)})),function(){var t,n;return p("div",{style:{minHeight:"100vh"}},[p(r,{title:"选择声部",desotry:!1},null),p(O,{class:J.subjectList,modelValue:o.check,"onUpdate:modelValue":function(e){return o.check=e},style:{paddingBottom:"24px"}},(n=t=e.subjectList.map((function(e){return p("div",{class:J.subject,onClick:function(){return t=e.subjectId,void o.checkboxRefs[t].toggle();var t}},[p(B,{name:e.subjectId,class:J.checkbox,ref:function(t){return o.checkboxRefs[e.subjectId]=t},onClick:function(e){e.stopPropagation()}},{icon:function(e){return p(h,{class:J.iconChecked,name:e.checked?A:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4BJREFUWEfVmT1sFEcUx/9vFntF4cI6FIGCEwmKYJnbnQsgIxIhuUgoaCIlIEKoKPgSoJRQUKWAEgHCQJEqwUpMQUMRKCyhJIoF5Gb2sBwKkIJBIMC6ggLWzs6LHtqzjuPjOPsMw7az773fztv3MW8Is3iYWSVJsoaIBph5FYBPmHkJEXWJOmZ+TET3ANwgomvMPBJF0RUicq2ao1YEjDEfAtgLYBuApa3IArgD4CcAJ7TWd99U9o0AR0dHC52dnT8Q0XYAYa78FhH9RkS/O+fGwzC87Zx7LGtKqa40TT9SSvUy8+fMvAHAslwuZeYfp6amDvX39082A20KaK3dwszHASxi5kwp9atS6kSxWPyzmfL69Uqlss45t9c5t5mIAgCPxBta619ep+eVgCMjIwu6u7sFbFeu4JJSan8URf+0Atb4bpIkK5xzxwB8ka+dqlar+wYGBv57md6XAk5MTCycnJwcBrARwBNm/r5UKp2ZC1ijbLlc3kFERwEsBHChUChs6unpedL43guA+c6dz+EeBEGwsVgsXm0nXE1XpVJZnWXZBQAfCGS1Wv2qcSdfADTGDOZufUBE6+M4vjEfcDWd1lpJUZdzyFNa69319p4DzANiSNwaBMH6+dq5xg/Od1Igxd1b6gNnBlBSSRiGEgASrTvb/c8180L+T56W6E7TdEUtBc0Alsvlk0Qk23tJa/1lM4XzsW6MuSjRzcyDpVJpj9h4BphXiJvMvCAIgpVzTSWzhZcUlGXZdSKSlLNcKk4N8DCAA0Q0FMfx1tkaaIectfYsM38L4IjW+iBJ4bfW/iu1NQiCz1qtEO2Aaqw4WZb9IbU7juOPyVrbz8x/AbiltV7eboOz0WeMuSm1m4jWUpIkB5xzh4loMI7jZz/mu36stSeZebdS6iAZY84B+Fop9V0URWffNZzYT5Jkq3PuZyI6J4AVACsBfKq1LvsAaIwpAfgbwHUBfCjJOQzDRb29vU37s7fxAePj44U0TaUdeyRB8pSZw46OjrCvr2/qbQA0szE2NtY5PT2dElHqP6D3LvY5SIioIi4eZuZvvE0z3idq70ud981C3g/62269Fw2rQHrd8gug94cmgfT62Fkr4F4f3AXS+9GHQHo9PKq52uvxW31D6e0Asx7S6xFwPai3Q/TGM0T9NYRzbrVcQwBYXH8NAeC+XEMopa7O5Rrif2YMj8Ww1rJlAAAAAElFTkSuQmCC"},null)}}),p(P,{class:J.img,src:e.subjectImg},null),p("p",{class:J.name},[e.subjectName])])})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!_(n)?t:{default:function(){return[t]}})),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup","btnMore"],style:"padding-left: 13px; padding-right: 13px;"},[p(b,{round:!0,color:"#CCCCCC",onClick:function(){return c("close")}},{default:function(){return[v("取消")]}}),p(b,{type:"primary",round:!0,onClick:a},{default:function(){return[v("确认")]}})])]}})])}}}),G=function t(n){if(null===n)return null;var r=Object.assign({},n);return Object.keys(r).forEach((function(c){return r[c]="object"===e(n[c])?t(n[c]):n[c]})),Array.isArray(n)?(r.length=n.length,Array.from(r)):r};n("default",u({name:"create-orchestra",setup:function(){var e=y(),n=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:50}});case 3:t=e.sent,n=t.data,R.subjectList=n.rows||[],e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:f.user.data.school.id,status:"DONE"}});case 3:t=e.sent,n=t.data,r=n.rows||[],c=[],r.forEach((function(e){c.push({text:e.name,value:e.id})})),R.orchestraList=[].concat(c),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),u=function(e){R.selectSubjectIds=t(e);var n=[];console.log(R.selectSubjects,"1212",R.subjectList),R.subjectList.forEach((function(t){var r=R.selectSubjects.findIndex((function(e){return e.id===t.subjectId}));e.includes(t.subjectId)&&(r<0?n.push({id:t.subjectId,name:t.subjectName,subjectCode:t.subjectCode,type:null,teacher:{},students:[]}):n.push(R.selectSubjects.find((function(e){return e.id===t.subjectId}))))})),R.selectSubjects=[].concat(n)},i=function(){if(R.orchestraName)if(R.selectSubjects&&R.selectSubjects.length<=0)k("请选择声部");else{var n=R.selectSubjects||[],r=!1;if(n.forEach((function(e){(!e.students||e.students&&e.students.length<=0)&&(r=!0)})),r)k("请选择学生");else{var c=[],o=[],s={};R.selectSubjects.forEach((function(e){if(console.log(e,"item.name"),o.push.apply(o,t(e.students)),"BARITONE"!==e.subjectCode&&"TUBA"!==e.subjectCode)c.push(e);else{var n=s.students?s.students:[];s={id:s.id?s.id+","+e.id:e.id,name:s.name?s.name+"-"+e.name:e.name,type:null,teacher:{},students:[].concat(t(n),t(e.students))}}})),R.selectLastTeacherSubjects=G(c),s.id&&R.selectLastTeacherSubjects.push(s),R.selectLastTeacherSubjects.push({id:null,name:"乐理班",type:"MUSIC_THEORY",teacher:{},students:[].concat(o)},{id:null,name:"合奏班",type:"INSTRUMENTAL_ENSEMBLE",teacher:{},students:[].concat(o)}),e.push({path:"/create-orchestra-teacher"})}}else k("请输入乐团名称")};return d((function(){M(),n(),c()})),function(){return p("div",{class:x["create-orchestra"]},[p(r,null,null),p(T,{inset:!0},{default:function(){return[p(z,{label:"乐团名称",modelValue:R.orchestraName,"onUpdate:modelValue":function(e){return R.orchestraName=e},placeholder:"请输入乐团名称",inputAlign:"right",maxlength:30},null),p(z,{label:"乐团声部",readonly:!0,placeholder:R.selectSubjects.length>0?"已选".concat(R.selectSubjects.length,"个"):"选择声部",isLink:!0,inputAlign:"right",onClick:function(){return R.subjectStatus=!0}},null),R.selectSubjects.map((function(e){return p(E,{title:e.name,isLink:!0,onClick:function(){R.studentStatus=!0,R.selectSubjectStudents=e}},{value:function(){var t;return p(S,null,[v("已选")," ",p("span",{style:{color:"var(--van-primary-color)"}},[(null===(t=e.students)||void 0===t?void 0:t.length)||0])," ",v("名学生")])}})}))]}}),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup"]},[p(b,{type:"primary",block:!0,round:!0,onClick:i},{default:function(){return[v("下一步")]}})])]}}),p(o,{modelValue:R.subjectStatus,"onUpdate:modelValue":function(e){return R.subjectStatus=e},style:"background: #F8F8F8;"},{default:function(){return[R.subjectStatus&&p(W,{onClose:function(){return R.subjectStatus=!1},subjectList:R.subjectList,selectSubjects:R.selectSubjectIds,onSelect:u},null)]}}),p(o,{modelValue:R.studentStatus,"onUpdate:modelValue":function(e){return R.studentStatus=e},style:"background: #f8f8f8;"},{default:function(){return[R.studentStatus&&p(V,{orchestraList:R.orchestraList,subjectId:R.selectSubjectStudents.id,selectStudentIds:R.selectSubjectStudents.students,onClose:function(){return R.studentStatus=!1},onSelect:function(e){R.selectSubjectStudents.students=t(e)}},null)]}})])}}}))}}}))}();
  1232. >>>>>>> online:dist/assets/index-legacy.a9b87efc.js
  1233. =======
  1234. !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n,r,c,o,s){try{var a=e[o](s),u=a.value}catch(i){return void n(i)}a.done?t(u):Promise.resolve(u).then(r,c)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){s(o,r,c,a,u,"next",e)}function u(e){s(o,r,c,a,u,"throw",e)}a(void 0)}))}}var u=document.createElement("style");u.innerHTML="._searchBand_1v64m_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1v64m_1 ._bandName_1v64m_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._studentList_1v64m_12{--van-checkbox-border-color: transparent}._studentList_1v64m_12 .van-checkbox{height:.66667rem}._studentList_1v64m_12 ._iconChecked_1v64m_18{font-size:.48rem;border:.02667rem solid transparent;background:transparent}._studentList_1v64m_12 ._iconChecked_1v64m_18 .van-icon__image{width:100%;height:100%}._studentList_1v64m_12 ._img_1v64m_27{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._studentList_1v64m_12 ._name_1v64m_35{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._studentList_1v64m_12 ._class_1v64m_41{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem}._studentList_1v64m_12 ._btnMore_1v64m_47{display:flex;align-items:center;padding:.42667rem .34667rem!important}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button{display:flex;justify-content:center;align-items:center;flex-shrink:1;width:30%}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button+.van-button{flex-shrink:2;width:68%;margin-left:2%}._subjectList_hptt0_1{display:flex;align-items:center;flex-wrap:wrap}._subject_hptt0_1{--van-checkbox-border-color: transparent;position:relative;padding-left:.34667rem;margin-top:.53333rem}._subject_hptt0_1 .van-checkbox{position:absolute;top:.16rem;right:.16rem;z-index:9;height:.66667rem}._subject_hptt0_1 ._iconChecked_hptt0_19{font-size:.48rem;border:.02667rem solid transparent}._subject_hptt0_1 ._iconChecked_hptt0_19 .van-icon__image{width:100%;height:100%}._subject_hptt0_1 ._img_hptt0_27{width:2.88rem;height:2.88rem;border-radius:.21333rem;overflow:hidden;background-color:#fff}._subject_hptt0_1 ._name_hptt0_34{padding-top:.16rem;font-size:.42667rem;font-weight:500;color:#333;max-width:2.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n",document.head.appendChild(u),System.register(["./index-legacy.4a2df9b1.js","./index-legacy.09430bdd.js","./index-legacy.a772c019.js","./index-legacy.e776119d.js","./index.module-legacy.3521c141.js","./index-legacy.3c5b068c.js","./icon-checkbox-check-legacy.8c6ec582.js","./icon-checkbox-default-legacy.20cf236b.js","./icon_student-legacy.6118fd72.js","./index-legacy.7b97ed13.js","./index-legacy.0f4a911b.js","./index-legacy.513b7e98.js","./index-legacy.d8701818.js","./index-legacy.7f3b8165.js","./index-legacy.3fb3230e.js","./create-legacy.9dca5d2c.js","./index-legacy.e1ae7968.js","./index-legacy.0884f318.js","./index-legacy.4e7fb9ef.js","./index-legacy.c75fe8a2.js","./use-tab-status-legacy.83fb85a3.js","./Checker-legacy.f1b970d6.js","./index-legacy.72a95bf0.js","./index-legacy.07af1a6e.js","./index-legacy.9fdb4fc9.js"],(function(n){"use strict";var r,o,s,u,i,l,d,f,p,h,m,b,v,g,_,j,y,S,k,x,w,A,C,I,L,O,E,P,B,U,M,R,T,z;return{setters:[function(e){r=e.O},function(e){o=e.O},function(e){s=e.O},function(e){u=e.d,i=e.r,l=e.Z,d=e.$,f=e.f,p=e.c,h=e.a5,m=e.ai,b=e.B,v=e.q,g=e.P,_=e.ak,j=e.m,y=e.ag,S=e.F,k=e.o},function(e){x=e.s},function(e){w=e.O},function(e){A=e.c},function(e){C=e.c},function(e){I=e.i},function(e){L=e.L},function(e){O=e.C},function(e){E=e.C},function(e){P=e.I},function(e){B=e.C},function(e){U=e.P},function(e){M=e.r,R=e.c},function(e){T=e.C},function(e){z=e.F},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N={searchBand:"_searchBand_1v64m_1",bandName:"_bandName_1v64m_7",studentList:"_studentList_1v64m_12",iconChecked:"_iconChecked_1v64m_18",img:"_img_1v64m_27",name:"_name_1v64m_35",class:"_class_1v64m_41",btnMore:"_btnMore_1v64m_47"};var F={1:"一年级",2:"二年级",3:"三年级",4:"四年级",5:"五年级",6:"六年级"},V=u({name:"student-list",props:{orchestraList:{type:Array,default:function(){return[]}},subjectId:{type:[String,Number],default:""},selectStudentIds:{type:Array,default:function(){return[]}}},emits:["close","select"],setup:function(e,n){n.slots,n.attrs;var o=n.emit,u=i({showPopover:!1,oPopover:!1,isLoad:!1,classList:[{text:"全部",value:-1},{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],check:[],checkboxRefs:[],orchestra:{id:null,name:"全部乐团"},class:{id:null,name:"全部"},list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,page:1,rows:20}}),y=function(){var t=a(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!u.isLoad){t.next=3;break}return t.abrupt("return");case 3:return u.isLoad=!0,t.next=6,j.post("/api-school/student/page",{data:c(c({},u.params),{},{subjectId:e.subjectId,orchestraId:u.orchestra.id,currentGradeNum:-1===u.class.id?null:u.class.id})});case 6:if(n=t.sent,u.listState.loading=!1,r=n.data||{},!(u.list.length>0&&1===r.current)){t.next=11;break}return t.abrupt("return");case 11:u.list=u.list.concat(r.rows||[]),u.listState.finished=r.current>=r.pages,u.params.page=r.current+1,u.listState.dataShow=u.list.length>0,u.isLoad=!1,t.next=23;break;case 18:t.prev=18,t.t0=t.catch(0),u.listState.dataShow=!1,u.listState.finished=!0,u.isLoad=!1;case 23:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(){return t.apply(this,arguments)}}(),S=function(){u.params.page=1,u.list=[],u.listState.dataShow=!0,u.listState.loading=!1,u.listState.finished=!1,y()},k=function(){o("close"),o("select",u.check),setTimeout((function(){u.check=[]}),100)};return l((function(){return e.subjectId}),(function(){console.log("subjectId"),S()})),l((function(){return e.selectStudentIds}),(function(){console.log(e.selectStudentIds,"watch"),u.check=t(e.selectStudentIds)})),d((function(){var n;if(console.log(e.selectStudentIds,"onmount"),"sixYearSystem"===(null===(n=f.user.data.school)||void 0===n?void 0:n.schoolSystem)&&u.classList.push({text:"六年级",value:6}),e.orchestraList.length>0){var r=e.orchestraList[0];u.orchestra.id=r.value,u.orchestra.name=r.text}y(),u.check=t(e.selectStudentIds)})),function(){var t;return p("div",{class:N.studentList},[p(s,{position:"top"},{default:function(){return[p(r,{title:"选择学生",desotry:!1,border:!1},null),p(w,{class:"searchGroupInput",placeholder:"学生名称/手机号",onSearch:function(e){u.params.keyword=e,S()}},null),p("div",{class:"searchGroup"},[p("div",{class:["searchItem searchItem-large",u.showPopover?"searchItem-active":""],onClick:function(){return u.showPopover=!0}},[p("span",null,[u.class.name]),p("i",{class:"arrow"},null)]),p("div",{class:["searchItem searchItem-large",u.oPopover?"searchItem-active":""],onClick:function(){return u.oPopover=!0}},[p("span",null,[u.orchestra.name]),p("i",{class:"arrow"},null)])])]}}),u.listState.dataShow?p(L,{finished:u.listState.finished,finishedText:" ",class:[N.liveList],onLoad:y,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[p(O,{modelValue:u.check,"onUpdate:modelValue":function(e){return u.check=e}},(e=t=u.list.map((function(e){return p(E,{modelValue:u.check,"onUpdate:modelValue":function(e){return u.check=e},center:!0,onClick:function(){return t=e.id,void u.checkboxRefs[t].toggle();var t}},{icon:function(){return p(P,{class:N.img,src:e.avatar||I},null)},title:function(){return p("div",{class:N.content},[p("p",{class:N.name},[e.nickname]),p("p",{class:N.class},[e.currentGradeNum>0?F[e.currentGradeNum]:""])])},"right-icon":function(){return p(B,{name:e.id,ref:function(t){return u.checkboxRefs[e.id]=t},onClick:function(e){e.stopPropagation(),e.preventDefault()}},{icon:function(e){return p(h,{class:N.iconChecked,name:e.checked?A:C},null)}})}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!_(e)?t:{default:function(){return[t]}}))];var e}}):p(m,{btnStatus:!1,tips:"暂无学生"},null),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup",N.btnMore]},[p(b,{type:"primary",plain:!0,round:!0,style:{backgroundColor:"transparent"},onClick:function(){u.list.forEach((function(e){u.check.includes(e.id)||u.check.push(e.id)})),u.check}},{default:function(){return[v("全选")]}}),p(b,{type:"primary",round:!0,block:!0,onClick:k},{default:function(){return[v("确认")]}})])]}}),p(g,{show:u.oPopover,"onUpdate:show":function(e){return u.oPopover=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[p(U,{columns:e.orchestraList,onCancel:function(){return u.oPopover=!1},onConfirm:function(e){var t=e.selectedOptions[0];u.orchestra.id=t.value,u.orchestra.name=t.text,u.oPopover=!1,S()}},null)]}}),p(g,{show:u.showPopover,"onUpdate:show":function(e){return u.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[p(U,{columns:u.classList,onCancel:function(){return u.showPopover=!1},onConfirm:function(e){var t=e.selectedOptions[0];u.class.id=t.value,u.class.name=t.text,u.showPopover=!1,S()}},null)]}})])}}}),J={subjectList:"_subjectList_hptt0_1",subject:"_subject_hptt0_1",iconChecked:"_iconChecked_hptt0_19",img:"_img_hptt0_27",name:"_name_hptt0_34"};var W=u({name:"subject-list",props:{subjectList:{type:Array,default:function(){return[]}},selectSubjects:{type:Array,default:function(){return[]}}},emits:["close","select"],setup:function(e,n){n.slots,n.attrs;var c=n.emit,o=i({check:[],checkboxRefs:[]}),a=function(){c("select",o.check),c("close")};return l((function(){return e.selectSubjects}),(function(){o.check=t(e.selectSubjects)})),d((function(){o.check=t(e.selectSubjects)})),function(){var t,n;return p("div",{style:{minHeight:"100vh"}},[p(r,{title:"选择声部",desotry:!1},null),p(O,{class:J.subjectList,modelValue:o.check,"onUpdate:modelValue":function(e){return o.check=e},style:{paddingBottom:"24px"}},(n=t=e.subjectList.map((function(e){return p("div",{class:J.subject,onClick:function(){return t=e.subjectId,void o.checkboxRefs[t].toggle();var t}},[p(B,{name:e.subjectId,class:J.checkbox,ref:function(t){return o.checkboxRefs[e.subjectId]=t},onClick:function(e){e.stopPropagation()}},{icon:function(e){return p(h,{class:J.iconChecked,name:e.checked?A:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4BJREFUWEfVmT1sFEcUx/9vFntF4cI6FIGCEwmKYJnbnQsgIxIhuUgoaCIlIEKoKPgSoJRQUKWAEgHCQJEqwUpMQUMRKCyhJIoF5Gb2sBwKkIJBIMC6ggLWzs6LHtqzjuPjOPsMw7az773fztv3MW8Is3iYWSVJsoaIBph5FYBPmHkJEXWJOmZ+TET3ANwgomvMPBJF0RUicq2ao1YEjDEfAtgLYBuApa3IArgD4CcAJ7TWd99U9o0AR0dHC52dnT8Q0XYAYa78FhH9RkS/O+fGwzC87Zx7LGtKqa40TT9SSvUy8+fMvAHAslwuZeYfp6amDvX39082A20KaK3dwszHASxi5kwp9atS6kSxWPyzmfL69Uqlss45t9c5t5mIAgCPxBta619ep+eVgCMjIwu6u7sFbFeu4JJSan8URf+0Atb4bpIkK5xzxwB8ka+dqlar+wYGBv57md6XAk5MTCycnJwcBrARwBNm/r5UKp2ZC1ijbLlc3kFERwEsBHChUChs6unpedL43guA+c6dz+EeBEGwsVgsXm0nXE1XpVJZnWXZBQAfCGS1Wv2qcSdfADTGDOZufUBE6+M4vjEfcDWd1lpJUZdzyFNa69319p4DzANiSNwaBMH6+dq5xg/Od1Igxd1b6gNnBlBSSRiGEgASrTvb/c8180L+T56W6E7TdEUtBc0Alsvlk0Qk23tJa/1lM4XzsW6MuSjRzcyDpVJpj9h4BphXiJvMvCAIgpVzTSWzhZcUlGXZdSKSlLNcKk4N8DCAA0Q0FMfx1tkaaIectfYsM38L4IjW+iBJ4bfW/iu1NQiCz1qtEO2Aaqw4WZb9IbU7juOPyVrbz8x/AbiltV7eboOz0WeMuSm1m4jWUpIkB5xzh4loMI7jZz/mu36stSeZebdS6iAZY84B+Fop9V0URWffNZzYT5Jkq3PuZyI6J4AVACsBfKq1LvsAaIwpAfgbwHUBfCjJOQzDRb29vU37s7fxAePj44U0TaUdeyRB8pSZw46OjrCvr2/qbQA0szE2NtY5PT2dElHqP6D3LvY5SIioIi4eZuZvvE0z3idq70ud981C3g/62269Fw2rQHrd8gug94cmgfT62Fkr4F4f3AXS+9GHQHo9PKq52uvxW31D6e0Asx7S6xFwPai3Q/TGM0T9NYRzbrVcQwBYXH8NAeC+XEMopa7O5Rrif2YMj8Ww1rJlAAAAAElFTkSuQmCC"},null)}}),p(P,{class:J.img,src:e.subjectImg},null),p("p",{class:J.name},[e.subjectName])])})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!_(n)?t:{default:function(){return[t]}})),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup","btnMore"],style:"padding-left: 13px; padding-right: 13px;"},[p(b,{round:!0,color:"#CCCCCC",onClick:function(){return c("close")}},{default:function(){return[v("取消")]}}),p(b,{type:"primary",round:!0,onClick:a},{default:function(){return[v("确认")]}})])]}})])}}}),G=function t(n){if(null===n)return null;var r=Object.assign({},n);return Object.keys(r).forEach((function(c){return r[c]="object"===e(n[c])?t(n[c]):n[c]})),Array.isArray(n)?(r.length=n.length,Array.from(r)):r};n("default",u({name:"create-orchestra",setup:function(){var e=y(),n=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:50}});case 3:t=e.sent,n=t.data,R.subjectList=n.rows||[],e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:f.user.data.school.id,status:"DONE"}});case 3:t=e.sent,n=t.data,r=n.rows||[],c=[],r.forEach((function(e){c.push({text:e.name,value:e.id})})),R.orchestraList=[].concat(c),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),u=function(e){R.selectSubjectIds=t(e);var n=[];console.log(R.selectSubjects,"1212",R.subjectList),R.subjectList.forEach((function(t){var r=R.selectSubjects.findIndex((function(e){return e.id===t.subjectId}));e.includes(t.subjectId)&&(r<0?n.push({id:t.subjectId,name:t.subjectName,subjectCode:t.subjectCode,type:null,teacher:{},students:[]}):n.push(R.selectSubjects.find((function(e){return e.id===t.subjectId}))))})),R.selectSubjects=[].concat(n)},i=function(){if(R.orchestraName)if(R.selectSubjects&&R.selectSubjects.length<=0)k("请选择声部");else{var n=R.selectSubjects||[],r=!1;if(n.forEach((function(e){(!e.students||e.students&&e.students.length<=0)&&(r=!0)})),r)k("请选择学生");else{var c=[],o=[],s={};R.selectSubjects.forEach((function(e){if(console.log(e,"item.name"),o.push.apply(o,t(e.students)),"BARITONE"!==e.subjectCode&&"TUBA"!==e.subjectCode)c.push(e);else{var n=s.students?s.students:[];s={id:s.id?s.id+","+e.id:e.id,name:s.name?s.name+"-"+e.name:e.name,type:null,teacher:{},students:[].concat(t(n),t(e.students))}}})),R.selectLastTeacherSubjects=G(c),s.id&&R.selectLastTeacherSubjects.push(s),R.selectLastTeacherSubjects.push({id:null,name:"乐理班",type:"MUSIC_THEORY",teacher:{},students:[].concat(o)},{id:null,name:"合奏班",type:"INSTRUMENTAL_ENSEMBLE",teacher:{},students:[].concat(o)}),e.push({path:"/create-orchestra-teacher"})}}else k("请输入乐团名称")};return d((function(){M(),n(),c()})),function(){return p("div",{class:x["create-orchestra"]},[p(r,null,null),p(T,{inset:!0},{default:function(){return[p(z,{label:"乐团名称",modelValue:R.orchestraName,"onUpdate:modelValue":function(e){return R.orchestraName=e},placeholder:"请输入乐团名称",inputAlign:"right",maxlength:30},null),p(z,{label:"乐团声部",readonly:!0,placeholder:R.selectSubjects.length>0?"已选".concat(R.selectSubjects.length,"个"):"选择声部",isLink:!0,inputAlign:"right",onClick:function(){return R.subjectStatus=!0}},null),R.selectSubjects.map((function(e){return p(E,{title:e.name,isLink:!0,onClick:function(){R.studentStatus=!0,R.selectSubjectStudents=e}},{value:function(){var t;return p(S,null,[v("已选")," ",p("span",{style:{color:"var(--van-primary-color)"}},[(null===(t=e.students)||void 0===t?void 0:t.length)||0])," ",v("名学生")])}})}))]}}),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup"]},[p(b,{type:"primary",block:!0,round:!0,onClick:i},{default:function(){return[v("下一步")]}})])]}}),p(o,{modelValue:R.subjectStatus,"onUpdate:modelValue":function(e){return R.subjectStatus=e},style:"background: #F8F8F8;"},{default:function(){return[R.subjectStatus&&p(W,{onClose:function(){return R.subjectStatus=!1},subjectList:R.subjectList,selectSubjects:R.selectSubjectIds,onSelect:u},null)]}}),p(o,{modelValue:R.studentStatus,"onUpdate:modelValue":function(e){return R.studentStatus=e},style:"background: #f8f8f8;"},{default:function(){return[R.studentStatus&&p(V,{orchestraList:R.orchestraList,subjectId:R.selectSubjectStudents.id,selectStudentIds:R.selectSubjectStudents.students,onClose:function(){return R.studentStatus=!1},onSelect:function(e){R.selectSubjectStudents.students=t(e)}},null)]}})])}}}))}}}))}();
  1235. >>>>>>> online:dist/assets/index-legacy.af73baff.js
  1236. =======
  1237. !function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t,n,r,c,o,s){try{var a=e[o](s),u=a.value}catch(i){return void n(i)}a.done?t(u):Promise.resolve(u).then(r,c)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(r,c){var o=e.apply(t,n);function a(e){s(o,r,c,a,u,"next",e)}function u(e){s(o,r,c,a,u,"throw",e)}a(void 0)}))}}var u=document.createElement("style");u.innerHTML="._searchBand_1v64m_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1v64m_1 ._bandName_1v64m_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._studentList_1v64m_12{--van-checkbox-border-color: transparent}._studentList_1v64m_12 .van-checkbox{height:.66667rem}._studentList_1v64m_12 ._iconChecked_1v64m_18{font-size:.48rem;border:.02667rem solid transparent;background:transparent}._studentList_1v64m_12 ._iconChecked_1v64m_18 .van-icon__image{width:100%;height:100%}._studentList_1v64m_12 ._img_1v64m_27{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._studentList_1v64m_12 ._name_1v64m_35{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._studentList_1v64m_12 ._class_1v64m_41{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem}._studentList_1v64m_12 ._btnMore_1v64m_47{display:flex;align-items:center;padding:.42667rem .34667rem!important}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button{display:flex;justify-content:center;align-items:center;flex-shrink:1;width:30%}._studentList_1v64m_12 ._btnMore_1v64m_47 .van-button+.van-button{flex-shrink:2;width:68%;margin-left:2%}._subjectList_hptt0_1{display:flex;align-items:center;flex-wrap:wrap}._subject_hptt0_1{--van-checkbox-border-color: transparent;position:relative;padding-left:.34667rem;margin-top:.53333rem}._subject_hptt0_1 .van-checkbox{position:absolute;top:.16rem;right:.16rem;z-index:9;height:.66667rem}._subject_hptt0_1 ._iconChecked_hptt0_19{font-size:.48rem;border:.02667rem solid transparent}._subject_hptt0_1 ._iconChecked_hptt0_19 .van-icon__image{width:100%;height:100%}._subject_hptt0_1 ._img_hptt0_27{width:2.88rem;height:2.88rem;border-radius:.21333rem;overflow:hidden;background-color:#fff}._subject_hptt0_1 ._name_hptt0_34{padding-top:.16rem;font-size:.42667rem;font-weight:500;color:#333;max-width:2.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}\n",document.head.appendChild(u),System.register(["./index-legacy.80e3d310.js","./index-legacy.74d0612f.js","./index-legacy.62e2337f.js","./index-legacy.8574e5e7.js","./index.module-legacy.3521c141.js","./index-legacy.0c0a8b69.js","./icon-checkbox-check-legacy.8c6ec582.js","./icon-checkbox-default-legacy.20cf236b.js","./icon_student-legacy.6118fd72.js","./index-legacy.e89423b9.js","./index-legacy.3c31e2dd.js","./index-legacy.5a075ae1.js","./index-legacy.699e3e6f.js","./index-legacy.534c45e8.js","./index-legacy.c79dbddd.js","./create-legacy.792349e8.js","./index-legacy.53c89bb8.js","./index-legacy.54a1992d.js","./index-legacy.f72db5af.js","./index-legacy.c75fe8a2.js","./use-tab-status-legacy.2bd37260.js","./Checker-legacy.6aef14fb.js","./index-legacy.083a9152.js","./index-legacy.c7f88300.js","./index-legacy.6a33e667.js"],(function(n){"use strict";var r,o,s,u,i,l,d,f,p,h,m,b,v,g,_,j,y,S,k,x,w,A,C,I,L,O,E,P,B,U,M,R,T,z;return{setters:[function(e){r=e.O},function(e){o=e.O},function(e){s=e.O},function(e){u=e.d,i=e.r,l=e.Z,d=e.$,f=e.f,p=e.c,h=e.a5,m=e.ai,b=e.B,v=e.q,g=e.P,_=e.ak,j=e.m,y=e.ag,S=e.F,k=e.o},function(e){x=e.s},function(e){w=e.O},function(e){A=e.c},function(e){C=e.c},function(e){I=e.i},function(e){L=e.L},function(e){O=e.C},function(e){E=e.C},function(e){P=e.I},function(e){B=e.C},function(e){U=e.P},function(e){M=e.r,R=e.c},function(e){T=e.C},function(e){z=e.F},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var N={searchBand:"_searchBand_1v64m_1",bandName:"_bandName_1v64m_7",studentList:"_studentList_1v64m_12",iconChecked:"_iconChecked_1v64m_18",img:"_img_1v64m_27",name:"_name_1v64m_35",class:"_class_1v64m_41",btnMore:"_btnMore_1v64m_47"};var F={1:"一年级",2:"二年级",3:"三年级",4:"四年级",5:"五年级",6:"六年级"},V=u({name:"student-list",props:{orchestraList:{type:Array,default:function(){return[]}},subjectId:{type:[String,Number],default:""},selectStudentIds:{type:Array,default:function(){return[]}}},emits:["close","select"],setup:function(e,n){n.slots,n.attrs;var o=n.emit,u=i({showPopover:!1,oPopover:!1,isLoad:!1,classList:[{text:"全部",value:-1},{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5}],check:[],checkboxRefs:[],orchestra:{id:null,name:"全部乐团"},class:{id:null,name:"全部"},list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,page:1,rows:20}}),y=function(){var t=a(regeneratorRuntime.mark((function t(){var n,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!u.isLoad){t.next=3;break}return t.abrupt("return");case 3:return u.isLoad=!0,t.next=6,j.post("/api-school/student/page",{data:c(c({},u.params),{},{subjectId:e.subjectId,orchestraId:u.orchestra.id,currentGradeNum:-1===u.class.id?null:u.class.id})});case 6:if(n=t.sent,u.listState.loading=!1,r=n.data||{},!(u.list.length>0&&1===r.current)){t.next=11;break}return t.abrupt("return");case 11:u.list=u.list.concat(r.rows||[]),u.listState.finished=r.current>=r.pages,u.params.page=r.current+1,u.listState.dataShow=u.list.length>0,u.isLoad=!1,t.next=23;break;case 18:t.prev=18,t.t0=t.catch(0),u.listState.dataShow=!1,u.listState.finished=!0,u.isLoad=!1;case 23:case"end":return t.stop()}}),t,null,[[0,18]])})));return function(){return t.apply(this,arguments)}}(),S=function(){u.params.page=1,u.list=[],u.listState.dataShow=!0,u.listState.loading=!1,u.listState.finished=!1,y()},k=function(){o("close"),o("select",u.check),setTimeout((function(){u.check=[]}),100)};return l((function(){return e.subjectId}),(function(){console.log("subjectId"),S()})),l((function(){return e.selectStudentIds}),(function(){console.log(e.selectStudentIds,"watch"),u.check=t(e.selectStudentIds)})),d((function(){var n;if(console.log(e.selectStudentIds,"onmount"),"sixYearSystem"===(null===(n=f.user.data.school)||void 0===n?void 0:n.schoolSystem)&&u.classList.push({text:"六年级",value:6}),e.orchestraList.length>0){var r=e.orchestraList[0];u.orchestra.id=r.value,u.orchestra.name=r.text}y(),u.check=t(e.selectStudentIds)})),function(){var t;return p("div",{class:N.studentList},[p(s,{position:"top"},{default:function(){return[p(r,{title:"选择学生",desotry:!1,border:!1},null),p(w,{class:"searchGroupInput",placeholder:"学生名称/手机号",onSearch:function(e){u.params.keyword=e,S()}},null),p("div",{class:"searchGroup"},[p("div",{class:["searchItem searchItem-large",u.showPopover?"searchItem-active":""],onClick:function(){return u.showPopover=!0}},[p("span",null,[u.class.name]),p("i",{class:"arrow"},null)]),p("div",{class:["searchItem searchItem-large",u.oPopover?"searchItem-active":""],onClick:function(){return u.oPopover=!0}},[p("span",null,[u.orchestra.name]),p("i",{class:"arrow"},null)])])]}}),u.listState.dataShow?p(L,{finished:u.listState.finished,finishedText:" ",class:[N.liveList],onLoad:y,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[p(O,{modelValue:u.check,"onUpdate:modelValue":function(e){return u.check=e}},(e=t=u.list.map((function(e){return p(E,{modelValue:u.check,"onUpdate:modelValue":function(e){return u.check=e},center:!0,onClick:function(){return t=e.id,void u.checkboxRefs[t].toggle();var t}},{icon:function(){return p(P,{class:N.img,src:e.avatar||I},null)},title:function(){return p("div",{class:N.content},[p("p",{class:N.name},[e.nickname]),p("p",{class:N.class},[e.currentGradeNum>0?F[e.currentGradeNum]:""])])},"right-icon":function(){return p(B,{name:e.id,ref:function(t){return u.checkboxRefs[e.id]=t},onClick:function(e){e.stopPropagation(),e.preventDefault()}},{icon:function(e){return p(h,{class:N.iconChecked,name:e.checked?A:C},null)}})}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!_(e)?t:{default:function(){return[t]}}))];var e}}):p(m,{btnStatus:!1,tips:"暂无学生"},null),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup",N.btnMore]},[p(b,{type:"primary",plain:!0,round:!0,style:{backgroundColor:"transparent"},onClick:function(){u.list.forEach((function(e){u.check.includes(e.id)||u.check.push(e.id)})),u.check}},{default:function(){return[v("全选")]}}),p(b,{type:"primary",round:!0,block:!0,onClick:k},{default:function(){return[v("确认")]}})])]}}),p(g,{show:u.oPopover,"onUpdate:show":function(e){return u.oPopover=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[p(U,{columns:e.orchestraList,onCancel:function(){return u.oPopover=!1},onConfirm:function(e){var t=e.selectedOptions[0];u.orchestra.id=t.value,u.orchestra.name=t.text,u.oPopover=!1,S()}},null)]}}),p(g,{show:u.showPopover,"onUpdate:show":function(e){return u.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[p(U,{columns:u.classList,onCancel:function(){return u.showPopover=!1},onConfirm:function(e){var t=e.selectedOptions[0];u.class.id=t.value,u.class.name=t.text,u.showPopover=!1,S()}},null)]}})])}}}),J={subjectList:"_subjectList_hptt0_1",subject:"_subject_hptt0_1",iconChecked:"_iconChecked_hptt0_19",img:"_img_hptt0_27",name:"_name_hptt0_34"};var W=u({name:"subject-list",props:{subjectList:{type:Array,default:function(){return[]}},selectSubjects:{type:Array,default:function(){return[]}}},emits:["close","select"],setup:function(e,n){n.slots,n.attrs;var c=n.emit,o=i({check:[],checkboxRefs:[]}),a=function(){c("select",o.check),c("close")};return l((function(){return e.selectSubjects}),(function(){o.check=t(e.selectSubjects)})),d((function(){o.check=t(e.selectSubjects)})),function(){var t,n;return p("div",{style:{minHeight:"100vh"}},[p(r,{title:"选择声部",desotry:!1},null),p(O,{class:J.subjectList,modelValue:o.check,"onUpdate:modelValue":function(e){return o.check=e},style:{paddingBottom:"24px"}},(n=t=e.subjectList.map((function(e){return p("div",{class:J.subject,onClick:function(){return t=e.subjectId,void o.checkboxRefs[t].toggle();var t}},[p(B,{name:e.subjectId,class:J.checkbox,ref:function(t){return o.checkboxRefs[e.subjectId]=t},onClick:function(e){e.stopPropagation()}},{icon:function(e){return p(h,{class:J.iconChecked,name:e.checked?A:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAA4BJREFUWEfVmT1sFEcUx/9vFntF4cI6FIGCEwmKYJnbnQsgIxIhuUgoaCIlIEKoKPgSoJRQUKWAEgHCQJEqwUpMQUMRKCyhJIoF5Gb2sBwKkIJBIMC6ggLWzs6LHtqzjuPjOPsMw7az773fztv3MW8Is3iYWSVJsoaIBph5FYBPmHkJEXWJOmZ+TET3ANwgomvMPBJF0RUicq2ao1YEjDEfAtgLYBuApa3IArgD4CcAJ7TWd99U9o0AR0dHC52dnT8Q0XYAYa78FhH9RkS/O+fGwzC87Zx7LGtKqa40TT9SSvUy8+fMvAHAslwuZeYfp6amDvX39082A20KaK3dwszHASxi5kwp9atS6kSxWPyzmfL69Uqlss45t9c5t5mIAgCPxBta619ep+eVgCMjIwu6u7sFbFeu4JJSan8URf+0Atb4bpIkK5xzxwB8ka+dqlar+wYGBv57md6XAk5MTCycnJwcBrARwBNm/r5UKp2ZC1ijbLlc3kFERwEsBHChUChs6unpedL43guA+c6dz+EeBEGwsVgsXm0nXE1XpVJZnWXZBQAfCGS1Wv2qcSdfADTGDOZufUBE6+M4vjEfcDWd1lpJUZdzyFNa69319p4DzANiSNwaBMH6+dq5xg/Od1Igxd1b6gNnBlBSSRiGEgASrTvb/c8180L+T56W6E7TdEUtBc0Alsvlk0Qk23tJa/1lM4XzsW6MuSjRzcyDpVJpj9h4BphXiJvMvCAIgpVzTSWzhZcUlGXZdSKSlLNcKk4N8DCAA0Q0FMfx1tkaaIectfYsM38L4IjW+iBJ4bfW/iu1NQiCz1qtEO2Aaqw4WZb9IbU7juOPyVrbz8x/AbiltV7eboOz0WeMuSm1m4jWUpIkB5xzh4loMI7jZz/mu36stSeZebdS6iAZY84B+Fop9V0URWffNZzYT5Jkq3PuZyI6J4AVACsBfKq1LvsAaIwpAfgbwHUBfCjJOQzDRb29vU37s7fxAePj44U0TaUdeyRB8pSZw46OjrCvr2/qbQA0szE2NtY5PT2dElHqP6D3LvY5SIioIi4eZuZvvE0z3idq70ud981C3g/62269Fw2rQHrd8gug94cmgfT62Fkr4F4f3AXS+9GHQHo9PKq52uvxW31D6e0Asx7S6xFwPai3Q/TGM0T9NYRzbrVcQwBYXH8NAeC+XEMopa7O5Rrif2YMj8Ww1rJlAAAAAElFTkSuQmCC"},null)}}),p(P,{class:J.img,src:e.subjectImg},null),p("p",{class:J.name},[e.subjectName])])})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!_(n)?t:{default:function(){return[t]}})),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup","btnMore"],style:"padding-left: 13px; padding-right: 13px;"},[p(b,{round:!0,color:"#CCCCCC",onClick:function(){return c("close")}},{default:function(){return[v("取消")]}}),p(b,{type:"primary",round:!0,onClick:a},{default:function(){return[v("确认")]}})])]}})])}}}),G=function t(n){if(null===n)return null;var r=Object.assign({},n);return Object.keys(r).forEach((function(c){return r[c]="object"===e(n[c])?t(n[c]):n[c]})),Array.isArray(n)?(r.length=n.length,Array.from(r)):r};n("default",u({name:"create-orchestra",setup:function(){var e=y(),n=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:50}});case 3:t=e.sent,n=t.data,R.subjectList=n.rows||[],e.next=10;break;case 8:e.prev=8,e.t0=e.catch(0);case 10:case"end":return e.stop()}}),e,null,[[0,8]])})));return function(){return e.apply(this,arguments)}}(),c=function(){var e=a(regeneratorRuntime.mark((function e(){var t,n,r,c;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,j.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:f.user.data.school.id,status:"DONE"}});case 3:t=e.sent,n=t.data,r=n.rows||[],c=[],r.forEach((function(e){c.push({text:e.name,value:e.id})})),R.orchestraList=[].concat(c),e.next=13;break;case 11:e.prev=11,e.t0=e.catch(0);case 13:case"end":return e.stop()}}),e,null,[[0,11]])})));return function(){return e.apply(this,arguments)}}(),u=function(e){R.selectSubjectIds=t(e);var n=[];console.log(R.selectSubjects,"1212",R.subjectList),R.subjectList.forEach((function(t){var r=R.selectSubjects.findIndex((function(e){return e.id===t.subjectId}));e.includes(t.subjectId)&&(r<0?n.push({id:t.subjectId,name:t.subjectName,subjectCode:t.subjectCode,type:null,teacher:{},students:[]}):n.push(R.selectSubjects.find((function(e){return e.id===t.subjectId}))))})),R.selectSubjects=[].concat(n)},i=function(){if(R.orchestraName)if(R.selectSubjects&&R.selectSubjects.length<=0)k("请选择声部");else{var n=R.selectSubjects||[],r=!1;if(n.forEach((function(e){(!e.students||e.students&&e.students.length<=0)&&(r=!0)})),r)k("请选择学生");else{var c=[],o=[],s={};R.selectSubjects.forEach((function(e){if(console.log(e,"item.name"),o.push.apply(o,t(e.students)),"BARITONE"!==e.subjectCode&&"TUBA"!==e.subjectCode)c.push(e);else{var n=s.students?s.students:[];s={id:s.id?s.id+","+e.id:e.id,name:s.name?s.name+"-"+e.name:e.name,type:null,teacher:{},students:[].concat(t(n),t(e.students))}}})),R.selectLastTeacherSubjects=G(c),s.id&&R.selectLastTeacherSubjects.push(s),R.selectLastTeacherSubjects.push({id:null,name:"乐理班",type:"MUSIC_THEORY",teacher:{},students:[].concat(o)},{id:null,name:"合奏班",type:"INSTRUMENTAL_ENSEMBLE",teacher:{},students:[].concat(o)}),e.push({path:"/create-orchestra-teacher"})}}else k("请输入乐团名称")};return d((function(){M(),n(),c()})),function(){return p("div",{class:x["create-orchestra"]},[p(r,null,null),p(T,{inset:!0},{default:function(){return[p(z,{label:"乐团名称",modelValue:R.orchestraName,"onUpdate:modelValue":function(e){return R.orchestraName=e},placeholder:"请输入乐团名称",inputAlign:"right",maxlength:30},null),p(z,{label:"乐团声部",readonly:!0,placeholder:R.selectSubjects.length>0?"已选".concat(R.selectSubjects.length,"个"):"选择声部",isLink:!0,inputAlign:"right",onClick:function(){return R.subjectStatus=!0}},null),R.selectSubjects.map((function(e){return p(E,{title:e.name,isLink:!0,onClick:function(){R.studentStatus=!0,R.selectSubjectStudents=e}},{value:function(){var t;return p(S,null,[v("已选")," ",p("span",{style:{color:"var(--van-primary-color)"}},[(null===(t=e.students)||void 0===t?void 0:t.length)||0])," ",v("名学生")])}})}))]}}),p(s,{position:"bottom"},{default:function(){return[p("div",{class:["btnGroup"]},[p(b,{type:"primary",block:!0,round:!0,onClick:i},{default:function(){return[v("下一步")]}})])]}}),p(o,{modelValue:R.subjectStatus,"onUpdate:modelValue":function(e){return R.subjectStatus=e},style:"background: #F8F8F8;"},{default:function(){return[R.subjectStatus&&p(W,{onClose:function(){return R.subjectStatus=!1},subjectList:R.subjectList,selectSubjects:R.selectSubjectIds,onSelect:u},null)]}}),p(o,{modelValue:R.studentStatus,"onUpdate:modelValue":function(e){return R.studentStatus=e},style:"background: #f8f8f8;"},{default:function(){return[R.studentStatus&&p(V,{orchestraList:R.orchestraList,subjectId:R.selectSubjectStudents.id,selectStudentIds:R.selectSubjectStudents.students,onClose:function(){return R.studentStatus=!1},onSelect:function(e){R.selectSubjectStudents.students=t(e)}},null)]}})])}}}))}}}))}();
  1238. >>>>>>> online:dist/assets/index-legacy.44ce5d4d.js