index-legacy.f9e6ba57.js 126 KB

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