index-legacy.af73baff.js 89 KB

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