unitDetail-legacy.b2ca3b4b.js 41 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743
  1. <<<<<<< HEAD:dist/assets/unitDetail-legacy.041334ed.js
  2. !(function () {
  3. function e(e, t) {
  4. var n = Object.keys(e)
  5. if (Object.getOwnPropertySymbols) {
  6. var a = Object.getOwnPropertySymbols(e)
  7. t &&
  8. (a = a.filter(function (t) {
  9. return Object.getOwnPropertyDescriptor(e, t).enumerable
  10. })),
  11. n.push.apply(n, a)
  12. }
  13. return n
  14. }
  15. function t(t) {
  16. for (var a = 1; a < arguments.length; a++) {
  17. var i = null != arguments[a] ? arguments[a] : {}
  18. a % 2
  19. ? e(Object(i), !0).forEach(function (e) {
  20. n(t, e, i[e])
  21. })
  22. : Object.getOwnPropertyDescriptors
  23. ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(i))
  24. : e(Object(i)).forEach(function (e) {
  25. Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(i, e))
  26. })
  27. }
  28. return t
  29. }
  30. function n(e, t, n) {
  31. return (
  32. t in e
  33. ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 })
  34. : (e[t] = n),
  35. e
  36. )
  37. }
  38. function a(e, t, n, a, i, r, o) {
  39. try {
  40. var u = e[r](o),
  41. l = u.value
  42. } catch (s) {
  43. return void n(s)
  44. }
  45. u.done ? t(l) : Promise.resolve(l).then(a, i)
  46. }
  47. function i(e) {
  48. return function () {
  49. var t = this,
  50. n = arguments
  51. return new Promise(function (i, r) {
  52. var o = e.apply(t, n)
  53. function u(e) {
  54. a(o, i, r, u, l, 'next', e)
  55. }
  56. function l(e) {
  57. a(o, i, r, u, l, 'throw', e)
  58. }
  59. u(void 0)
  60. })
  61. }
  62. }
  63. var r = document.createElement('style')
  64. ;(r.innerHTML =
  65. '._radioSection_fvm6e_1{position:relative;min-width:.85333rem;line-height:.53333rem;justify-content:center;font-weight:500}._radioItem_fvm6e_8{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_fvm6e_1+._radioSection_fvm6e_1{margin-left:.53333rem}._unitList_fvm6e_19{padding-top:.32rem}._unitList_fvm6e_19 ._liveList_fvm6e_22{margin-top:.32rem;border-radius:.26667rem;overflow:hidden}._unitList_fvm6e_19 ._manageCell_fvm6e_27{padding:.4rem .34667rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30{display:flex;flex-direction:row;align-items:center}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._studentTag_fvm6e_35{background-color:#ff8057;border-radius:.10667rem;line-height:.50667rem;padding:0 .21333rem;color:#fff;margin-left:.16rem;font-weight:500;font-size:.32rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._A_PASS_fvm6e_45{background:rgba(255,128,87,.18);color:#f67146}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._B_NO_PASS_fvm6e_49{background:rgba(255,92,95,.18);color:#f67146}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._C_ING_fvm6e_53{background:rgba(96,218,161,.18);color:#4ab78e}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._D_NO_SUBMIT_fvm6e_57{background:rgba(100,169,255,.18);color:#64a9ff}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._img_fvm6e_61{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._name_fvm6e_68{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:5.33333rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._phone_fvm6e_75{padding-top:.10667rem;font-size:.34667rem;color:#777;line-height:.48rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._status_fvm6e_81{font-size:.42667rem;font-weight:500;color:#333}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._frozen_fvm6e_86{color:#f44541}\n'),
  66. document.head.appendChild(r),
  67. System.register(
  68. [
  69. './index-legacy.86e58eb0.js',
  70. './quest-icon-legacy.8dd60bcc.js',
  71. './unit-list-item-legacy.9afd2608.js',
  72. './index-legacy.37a26c18.js',
  73. './icon_teacher-legacy.07765f44.js',
  74. './index-legacy.251c44e7.js',
  75. './index-legacy.8895675d.js',
  76. './index-legacy.30138992.js',
  77. './index-legacy.5216aadb.js',
  78. './index-legacy.88f968f8.js',
  79. './index-legacy.1f5a1fbe.js',
  80. './index-legacy.d552d569.js',
  81. './index-legacy.3cdbef0f.js',
  82. './index-legacy.bc5c4a06.js',
  83. './icon-edit-legacy.4520ee5d.js',
  84. './icon-muit-message-legacy.68290c1f.js',
  85. './index-legacy.a5bef69a.js',
  86. './Checker-legacy.bc354448.js',
  87. './use-tab-status-legacy.203dc693.js',
  88. './index-legacy.72f6344c.js',
  89. './index-legacy.a9a76943.js'
  90. ],
  91. function (e) {
  92. 'use strict'
  93. var n,
  94. a,
  95. r,
  96. o,
  97. u,
  98. l,
  99. s,
  100. c,
  101. f,
  102. _,
  103. m,
  104. d,
  105. v,
  106. g,
  107. p,
  108. h,
  109. S,
  110. y,
  111. b,
  112. A,
  113. x,
  114. O,
  115. C,
  116. j,
  117. w,
  118. T,
  119. I,
  120. k,
  121. F,
  122. L,
  123. N
  124. return {
  125. setters: [
  126. function (e) {
  127. n = e.O
  128. },
  129. function (e) {
  130. a = e.q
  131. },
  132. function (e) {
  133. ;(r = e.U), (o = e.s)
  134. },
  135. function (e) {
  136. ;(u = e.d),
  137. (l = e.ag),
  138. (s = e.aV),
  139. (c = e.f),
  140. (f = e.r),
  141. (_ = e.$),
  142. (m = e.m),
  143. (d = e.c),
  144. (v = e.ai),
  145. (g = e.ak),
  146. (p = e.R),
  147. (h = e.y),
  148. (S = e.a5),
  149. (y = e.B),
  150. (b = e.q)
  151. },
  152. function (e) {
  153. A = e.i
  154. },
  155. function (e) {
  156. x = e.O
  157. },
  158. function (e) {
  159. O = e.u
  160. },
  161. function (e) {
  162. ;(C = e.R), (j = e.a)
  163. },
  164. function (e) {
  165. w = e.T
  166. },
  167. function (e) {
  168. T = e.L
  169. },
  170. function (e) {
  171. I = e.C
  172. },
  173. function (e) {
  174. k = e.I
  175. },
  176. function (e) {
  177. F = e.O
  178. },
  179. function (e) {
  180. ;(L = e.T), (N = e.a)
  181. },
  182. function () {},
  183. function () {},
  184. function () {},
  185. function () {},
  186. function () {},
  187. function () {},
  188. function () {}
  189. ],
  190. execute: function () {
  191. var P = {
  192. radioSection: '_radioSection_fvm6e_1',
  193. radioItem: '_radioItem_fvm6e_8',
  194. unitList: '_unitList_fvm6e_19',
  195. liveList: '_liveList_fvm6e_22',
  196. manageCell: '_manageCell_fvm6e_27',
  197. TagWrap: '_TagWrap_fvm6e_30',
  198. studentTag: '_studentTag_fvm6e_35',
  199. A_PASS: '_A_PASS_fvm6e_45',
  200. B_NO_PASS: '_B_NO_PASS_fvm6e_49',
  201. C_ING: '_C_ING_fvm6e_53',
  202. D_NO_SUBMIT: '_D_NO_SUBMIT_fvm6e_57',
  203. img: '_img_fvm6e_61',
  204. name: '_name_fvm6e_68',
  205. phone: '_phone_fvm6e_75',
  206. status: '_status_fvm6e_81',
  207. frozen: '_frozen_fvm6e_86'
  208. }
  209. var E = u({
  210. name: 'unit-student-list',
  211. props: { type: { type: Number, default: 1 } },
  212. setup: function (e) {
  213. l()
  214. var n = s(),
  215. a = c.platformApi,
  216. r = f({ classGroupUnitExaminationId: n.query.id, status: '', page: 1 }),
  217. o = f({
  218. list: [],
  219. listState: {
  220. dataShow: !0,
  221. loading: !1,
  222. finished: !1,
  223. refreshing: !1,
  224. height: 0
  225. },
  226. oldValue: ''
  227. })
  228. _(function () {
  229. u()
  230. })
  231. var u = (function () {
  232. var n = i(
  233. regeneratorRuntime.mark(function n() {
  234. var i, u
  235. return regeneratorRuntime.wrap(
  236. function (n) {
  237. for (;;)
  238. switch ((n.prev = n.next)) {
  239. case 0:
  240. return (
  241. (n.prev = 0),
  242. (n.next = 3),
  243. m.post(''.concat(a, '/studentUnitExamination/studentDetail'), {
  244. data: t({}, r),
  245. requestType: 'form'
  246. })
  247. )
  248. case 3:
  249. if (
  250. ((i = n.sent),
  251. (o.listState.loading = !1),
  252. (o.listState.refreshing = !1),
  253. (u = i.data || {}),
  254. !(o.list.length > 0 && 1 === u.current))
  255. ) {
  256. n.next = 9
  257. break
  258. }
  259. return n.abrupt('return')
  260. case 9:
  261. ;(o.list = o.list = u[e.type] || []),
  262. (o.listState.dataShow = o.list.length > 0),
  263. (o.listState.finished = !0),
  264. (n.next = 18)
  265. break
  266. case 14:
  267. ;(n.prev = 14),
  268. (n.t0 = n.catch(0)),
  269. (o.listState.dataShow = !1),
  270. (o.listState.finished = !0)
  271. case 18:
  272. case 'end':
  273. return n.stop()
  274. }
  275. },
  276. n,
  277. null,
  278. [[0, 14]]
  279. )
  280. })
  281. )
  282. return function () {
  283. return n.apply(this, arguments)
  284. }
  285. })(),
  286. p = function () {
  287. ;(r.page = 1),
  288. (o.list = []),
  289. (o.listState.dataShow = !0),
  290. (o.listState.loading = !1),
  291. (o.listState.finished = !1),
  292. u()
  293. },
  294. h = function (e) {
  295. u()
  296. },
  297. S = function (e) {
  298. e == o.oldValue ? ((r.status = ''), (o.oldValue = '')) : (o.oldValue = e)
  299. }
  300. return function () {
  301. var e
  302. return d('div', { class: P.unitList }, [
  303. d(
  304. C,
  305. {
  306. 'checked-color': '#FF8057',
  307. modelValue: r.status,
  308. 'onUpdate:modelValue': function (e) {
  309. return (r.status = e)
  310. },
  311. direction: 'horizontal',
  312. onChange: h
  313. },
  314. {
  315. default: function () {
  316. return [
  317. d(
  318. w,
  319. {
  320. size: 'large',
  321. type: 'primary',
  322. color: 'A_PASS' !== r.status ? '#EAEAEA' : '#FF8057',
  323. textColor: 'A_PASS' !== r.status ? '#AAA' : '#FFF',
  324. class: P.radioSection
  325. },
  326. {
  327. default: function () {
  328. return [
  329. d(
  330. j,
  331. {
  332. class: P.radioItem,
  333. name: 'A_PASS',
  334. onClick: function () {
  335. return S('A_PASS')
  336. }
  337. },
  338. null
  339. ),
  340. O.A_PASS
  341. ]
  342. }
  343. }
  344. ),
  345. d(
  346. w,
  347. {
  348. size: 'large',
  349. type: 'primary',
  350. color: 'B_NO_PASS' !== r.status ? '#EAEAEA' : '#FF8057',
  351. textColor: 'B_NO_PASS' !== r.status ? '#AAA' : '#FFF',
  352. class: P.radioSection
  353. },
  354. {
  355. default: function () {
  356. return [
  357. d(
  358. j,
  359. {
  360. class: P.radioItem,
  361. name: 'B_NO_PASS',
  362. onClick: function () {
  363. return S('B_NO_PASS')
  364. }
  365. },
  366. null
  367. ),
  368. ' ',
  369. O.B_NO_PASS
  370. ]
  371. }
  372. }
  373. ),
  374. d(
  375. w,
  376. {
  377. size: 'large',
  378. type: 'primary',
  379. color: 'C_ING' !== r.status ? '#EAEAEA' : '#FF8057',
  380. textColor: 'C_ING' !== r.status ? '#AAA' : '#FFF',
  381. class: P.radioSection
  382. },
  383. {
  384. default: function () {
  385. return [
  386. d(
  387. j,
  388. {
  389. class: P.radioItem,
  390. name: 'C_ING',
  391. onClick: function () {
  392. return S('C_ING')
  393. }
  394. },
  395. null
  396. ),
  397. ' ',
  398. O.C_ING
  399. ]
  400. }
  401. }
  402. ),
  403. d(
  404. w,
  405. {
  406. size: 'large',
  407. type: 'primary',
  408. color: 'D_NO_SUBMIT' !== r.status ? '#EAEAEA' : '#FF8057',
  409. textColor: 'D_NO_SUBMIT' !== r.status ? '#AAA' : '#FFF',
  410. class: P.radioSection
  411. },
  412. {
  413. default: function () {
  414. return [
  415. d(
  416. j,
  417. {
  418. class: P.radioItem,
  419. name: 'D_NO_SUBMIT',
  420. onClick: function () {
  421. return S('D_NO_SUBMIT')
  422. }
  423. },
  424. null
  425. ),
  426. O.D_NO_SUBMIT
  427. ]
  428. }
  429. }
  430. )
  431. ]
  432. }
  433. }
  434. ),
  435. o.listState.dataShow
  436. ? d(
  437. x,
  438. {
  439. modelValue: o.listState.refreshing,
  440. 'onUpdate:modelValue': function (e) {
  441. return (o.listState.refreshing = e)
  442. },
  443. onRefresh: p,
  444. style: { minHeight: 'calc(50vh)' }
  445. },
  446. {
  447. default: function () {
  448. return [
  449. d(
  450. T,
  451. {
  452. finished: o.listState.finished,
  453. finishedText: ' ',
  454. class: [P.liveList],
  455. immediateCheck: !1
  456. },
  457. ((t = e =
  458. o.list.map(function (e) {
  459. return d(
  460. I,
  461. { center: !0, class: P.manageCell },
  462. {
  463. icon: function () {
  464. return d(
  465. k,
  466. { class: P.img, src: e.avatar ? e.avatar : A },
  467. null
  468. )
  469. },
  470. title: function () {
  471. return d('div', { class: P.content }, [
  472. d('div', { class: P.TagWrap }, [
  473. ' ',
  474. d('p', { class: [P.name, 'van-ellipsis'] }, [
  475. e.studentName ? e.studentName : '--'
  476. ]),
  477. d('div', { class: [P.studentTag, P[e.status]] }, [
  478. O[e.status]
  479. ])
  480. ]),
  481. e.submitTime
  482. ? d('p', { class: P.phone }, [e.submitTime])
  483. : ''
  484. ])
  485. }
  486. }
  487. )
  488. })),
  489. 'function' == typeof t ||
  490. ('[object Object]' === Object.prototype.toString.call(t) && !g(t))
  491. ? e
  492. : {
  493. default: function () {
  494. return [e]
  495. }
  496. })
  497. )
  498. ]
  499. var t
  500. }
  501. }
  502. )
  503. : d(v, { btnStatus: !1, tips: '暂无学员' }, null)
  504. ])
  505. }
  506. }
  507. })
  508. e(
  509. 'default',
  510. u({
  511. name: 'unitDetail',
  512. setup: function () {
  513. var e = l(),
  514. t = s(),
  515. u = f({ studentList: {} })
  516. p(!1), p(!1)
  517. var v = c.platformApi,
  518. g = p(1),
  519. A = p({}),
  520. x = p(!1),
  521. O = (function () {
  522. var e = i(
  523. regeneratorRuntime.mark(function e() {
  524. var n
  525. return regeneratorRuntime.wrap(
  526. function (e) {
  527. for (;;)
  528. switch ((e.prev = e.next)) {
  529. case 0:
  530. return (
  531. (e.prev = 0),
  532. (e.next = 3),
  533. m.post(''.concat(v, '/classGroupUnitExamination/detail'), {
  534. data: { classGroupUnitExaminationId: t.query.id },
  535. requestType: 'form'
  536. })
  537. )
  538. case 3:
  539. ;(n = e.sent),
  540. (A.value = n.data),
  541. console.log(
  542. '🚀 ~ file: unitDetail.tsx:45 ~ getDetail ~ info.value',
  543. A.value
  544. ),
  545. (e.next = 11)
  546. break
  547. case 8:
  548. ;(e.prev = 8), (e.t0 = e.catch(0)), console.log(e.t0)
  549. case 11:
  550. case 'end':
  551. return e.stop()
  552. }
  553. },
  554. e,
  555. null,
  556. [[0, 8]]
  557. )
  558. })
  559. )
  560. return function () {
  561. return e.apply(this, arguments)
  562. }
  563. })(),
  564. C = (function () {
  565. var e = i(
  566. regeneratorRuntime.mark(function e() {
  567. var n, a
  568. return regeneratorRuntime.wrap(
  569. function (e) {
  570. for (;;)
  571. switch ((e.prev = e.next)) {
  572. case 0:
  573. return (
  574. (e.prev = 0),
  575. (e.next = 3),
  576. m.post(
  577. ''.concat(v, '/studentUnitExamination/studentDetail'),
  578. {
  579. data: { classGroupUnitExaminationId: t.query.id },
  580. requestType: 'form'
  581. }
  582. )
  583. )
  584. case 3:
  585. ;(n = e.sent),
  586. (a = n.data),
  587. console.log(a),
  588. (u.studentList = a || {}),
  589. (e.next = 11)
  590. break
  591. case 9:
  592. ;(e.prev = 9), (e.t0 = e.catch(0))
  593. case 11:
  594. case 'end':
  595. return e.stop()
  596. }
  597. },
  598. e,
  599. null,
  600. [[0, 9]]
  601. )
  602. })
  603. )
  604. return function () {
  605. return e.apply(this, arguments)
  606. }
  607. })(),
  608. j = h(function () {
  609. return !(u.studentList[g.value] && u.studentList[g.value].length > 0)
  610. })
  611. return (
  612. _(function () {
  613. O(), C()
  614. }),
  615. function () {
  616. return d('div', { class: o.unitDetail }, [
  617. d(r, { item: A.value }, null),
  618. d('div', { class: o.tabsWrap }, [
  619. d(
  620. S,
  621. {
  622. class: o.tabsWrapIcon,
  623. name: a,
  624. size: 18,
  625. color: '#333',
  626. onClick: function () {
  627. x.value = !0
  628. }
  629. },
  630. null
  631. ),
  632. d(
  633. L,
  634. {
  635. active: g.value,
  636. 'onUpdate:active': function (e) {
  637. return (g.value = e)
  638. },
  639. class: o.rankTabs,
  640. background: '#F8F8F8',
  641. 'title-active-color': '#333333',
  642. 'title-inactive-color': '#777',
  643. color: '#FF8057',
  644. lineWidth: 20,
  645. lineHeight: 4,
  646. shrink: !0
  647. },
  648. {
  649. default: function () {
  650. return [
  651. d(
  652. N,
  653. { name: 1, title: '单团学员' },
  654. {
  655. default: function () {
  656. return [d(E, { type: 1 }, null)]
  657. }
  658. }
  659. ),
  660. d(
  661. N,
  662. { name: 2, title: '双团学员' },
  663. {
  664. default: function () {
  665. return [d(E, { type: 2 }, null)]
  666. }
  667. }
  668. ),
  669. d(
  670. N,
  671. { name: 3, title: '多团学员' },
  672. {
  673. default: function () {
  674. return [d(E, { type: 3 }, null)]
  675. }
  676. }
  677. )
  678. ]
  679. }
  680. }
  681. )
  682. ]),
  683. d(
  684. n,
  685. { position: 'bottom' },
  686. {
  687. default: function () {
  688. return [
  689. d('div', { class: ['btnGroup'] }, [
  690. d(
  691. y,
  692. {
  693. block: !0,
  694. round: !0,
  695. type: 'primary',
  696. disabled: j.value,
  697. onClick: function () {
  698. e.push({
  699. path: '/unit-detail',
  700. query: { id: t.query.id, level: g.value }
  701. })
  702. }
  703. },
  704. {
  705. default: function () {
  706. return [b('测试报告')]
  707. }
  708. }
  709. )
  710. ])
  711. ]
  712. }
  713. }
  714. ),
  715. d(
  716. F,
  717. {
  718. show: x.value,
  719. 'onUpdate:show': function (e) {
  720. return (x.value = e)
  721. },
  722. title: '学员分类',
  723. message:
  724. '根据学员入团的批次对不同训练阶段的学员进行分类,不同训练阶段的学员可布置不同标准的课后作业和阶段自测内容。\n\n单团学员:最新进入本乐团的学员\n双团学员:较早进入本乐团的学员\n多团学员:最早进入本乐团的学员',
  725. messageAlign: 'left',
  726. confirmButtonText: '我知道了'
  727. },
  728. null
  729. )
  730. ])
  731. }
  732. )
  733. }
  734. })
  735. )
  736. }
  737. }
  738. }
  739. )
  740. })()
  741. =======
  742. !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function t(t){for(var i=1;i<arguments.length;i++){var a=null!=arguments[i]?arguments[i]:{};i%2?e(Object(a),!0).forEach((function(e){n(t,e,a[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):e(Object(a)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(a,e))}))}return t}function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t,n,i,a,r,o){try{var u=e[r](o),l=u.value}catch(s){return void n(s)}u.done?t(l):Promise.resolve(l).then(i,a)}function a(e){return function(){var t=this,n=arguments;return new Promise((function(a,r){var o=e.apply(t,n);function u(e){i(o,a,r,u,l,"next",e)}function l(e){i(o,a,r,u,l,"throw",e)}u(void 0)}))}}var r=document.createElement("style");r.innerHTML="._radioSection_fvm6e_1{position:relative;min-width:.85333rem;line-height:.53333rem;justify-content:center;font-weight:500}._radioItem_fvm6e_8{position:absolute;top:0;left:0;right:0;bottom:0;opacity:0}._radioSection_fvm6e_1+._radioSection_fvm6e_1{margin-left:.53333rem}._unitList_fvm6e_19{padding-top:.32rem}._unitList_fvm6e_19 ._liveList_fvm6e_22{margin-top:.32rem;border-radius:.26667rem;overflow:hidden}._unitList_fvm6e_19 ._manageCell_fvm6e_27{padding:.4rem .34667rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30{display:flex;flex-direction:row;align-items:center}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._studentTag_fvm6e_35{background-color:#ff8057;border-radius:.10667rem;line-height:.50667rem;padding:0 .21333rem;color:#fff;margin-left:.16rem;font-weight:500;font-size:.32rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._A_PASS_fvm6e_45{background:rgba(255,128,87,.18);color:#f67146}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._B_NO_PASS_fvm6e_49{background:rgba(255,92,95,.18);color:#f67146}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._C_ING_fvm6e_53{background:rgba(96,218,161,.18);color:#4ab78e}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._TagWrap_fvm6e_30 ._D_NO_SUBMIT_fvm6e_57{background:rgba(100,169,255,.18);color:#64a9ff}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._img_fvm6e_61{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.26667rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._name_fvm6e_68{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:5.33333rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._phone_fvm6e_75{padding-top:.10667rem;font-size:.34667rem;color:#777;line-height:.48rem}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._status_fvm6e_81{font-size:.42667rem;font-weight:500;color:#333}._unitList_fvm6e_19 ._manageCell_fvm6e_27 ._frozen_fvm6e_86{color:#f44541}\n",document.head.appendChild(r),System.register(["./index-legacy.e2f02fbe.js","./quest-icon-legacy.8dd60bcc.js","./unit-list-item-legacy.6961367c.js","./index-legacy.5250e410.js","./icon_teacher-legacy.07765f44.js","./index-legacy.c698a6af.js","./index-legacy.8895675d.js","./index-legacy.0a6d54f5.js","./index-legacy.d0ecbe0c.js","./index-legacy.60605ef4.js","./index-legacy.7e0d4571.js","./index-legacy.8f701eeb.js","./index-legacy.a487cc47.js","./index-legacy.f228b6b5.js","./icon-edit-legacy.4520ee5d.js","./icon-muit-message-legacy.68290c1f.js","./index-legacy.9bde57e9.js","./Checker-legacy.0dd903b8.js","./use-tab-status-legacy.8f29db2f.js","./index-legacy.9800e001.js","./index-legacy.eb41f645.js"],(function(e){"use strict";var n,i,r,o,u,l,s,c,f,_,m,d,v,g,p,h,S,y,b,A,x,O,C,j,w,T,I,k,F,L,N;return{setters:[function(e){n=e.O},function(e){i=e.q},function(e){r=e.U,o=e.s},function(e){u=e.d,l=e.ag,s=e.aV,c=e.f,f=e.r,_=e.$,m=e.m,d=e.c,v=e.ai,g=e.ak,p=e.R,h=e.y,S=e.a5,y=e.B,b=e.q},function(e){A=e.i},function(e){x=e.O},function(e){O=e.u},function(e){C=e.R,j=e.a},function(e){w=e.T},function(e){T=e.L},function(e){I=e.C},function(e){k=e.I},function(e){F=e.O},function(e){L=e.T,N=e.a},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var P={radioSection:"_radioSection_fvm6e_1",radioItem:"_radioItem_fvm6e_8",unitList:"_unitList_fvm6e_19",liveList:"_liveList_fvm6e_22",manageCell:"_manageCell_fvm6e_27",TagWrap:"_TagWrap_fvm6e_30",studentTag:"_studentTag_fvm6e_35",A_PASS:"_A_PASS_fvm6e_45",B_NO_PASS:"_B_NO_PASS_fvm6e_49",C_ING:"_C_ING_fvm6e_53",D_NO_SUBMIT:"_D_NO_SUBMIT_fvm6e_57",img:"_img_fvm6e_61",name:"_name_fvm6e_68",phone:"_phone_fvm6e_75",status:"_status_fvm6e_81",frozen:"_frozen_fvm6e_86"};var E=u({name:"unit-student-list",props:{type:{type:Number,default:1}},setup:function(e){l();var n=s(),i=c.platformApi,r=f({classGroupUnitExaminationId:n.query.id,status:"",page:1}),o=f({list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},oldValue:""});_((function(){u()}));var u=function(){var n=a(regeneratorRuntime.mark((function n(){var a,u;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,m.post("".concat(i,"/studentUnitExamination/studentDetail"),{data:t({},r),requestType:"form"});case 3:if(a=n.sent,o.listState.loading=!1,o.listState.refreshing=!1,u=a.data||{},!(o.list.length>0&&1===u.current)){n.next=9;break}return n.abrupt("return");case 9:o.list=o.list=u[e.type]||[],o.listState.dataShow=o.list.length>0,o.listState.finished=!0,n.next=18;break;case 14:n.prev=14,n.t0=n.catch(0),o.listState.dataShow=!1,o.listState.finished=!0;case 18:case"end":return n.stop()}}),n,null,[[0,14]])})));return function(){return n.apply(this,arguments)}}(),p=function(){r.page=1,o.list=[],o.listState.dataShow=!0,o.listState.loading=!1,o.listState.finished=!1,u()},h=function(e){u()},S=function(e){e==o.oldValue?(r.status="",o.oldValue=""):o.oldValue=e};return function(){var e;return d("div",{class:P.unitList},[d(C,{"checked-color":"#FF8057",modelValue:r.status,"onUpdate:modelValue":function(e){return r.status=e},direction:"horizontal",onChange:h},{default:function(){return[d(w,{size:"large",type:"primary",color:"A_PASS"!==r.status?"#EAEAEA":"#FF8057",textColor:"A_PASS"!==r.status?"#AAA":"#FFF",class:P.radioSection},{default:function(){return[d(j,{class:P.radioItem,name:"A_PASS",onClick:function(){return S("A_PASS")}},null),O.A_PASS]}}),d(w,{size:"large",type:"primary",color:"B_NO_PASS"!==r.status?"#EAEAEA":"#FF8057",textColor:"B_NO_PASS"!==r.status?"#AAA":"#FFF",class:P.radioSection},{default:function(){return[d(j,{class:P.radioItem,name:"B_NO_PASS",onClick:function(){return S("B_NO_PASS")}},null)," ",O.B_NO_PASS]}}),d(w,{size:"large",type:"primary",color:"C_ING"!==r.status?"#EAEAEA":"#FF8057",textColor:"C_ING"!==r.status?"#AAA":"#FFF",class:P.radioSection},{default:function(){return[d(j,{class:P.radioItem,name:"C_ING",onClick:function(){return S("C_ING")}},null)," ",O.C_ING]}}),d(w,{size:"large",type:"primary",color:"D_NO_SUBMIT"!==r.status?"#EAEAEA":"#FF8057",textColor:"D_NO_SUBMIT"!==r.status?"#AAA":"#FFF",class:P.radioSection},{default:function(){return[d(j,{class:P.radioItem,name:"D_NO_SUBMIT",onClick:function(){return S("D_NO_SUBMIT")}},null),O.D_NO_SUBMIT]}})]}}),o.listState.dataShow?d(x,{modelValue:o.listState.refreshing,"onUpdate:modelValue":function(e){return o.listState.refreshing=e},onRefresh:p,style:{minHeight:"calc(50vh)"}},{default:function(){return[d(T,{finished:o.listState.finished,finishedText:" ",class:[P.liveList],immediateCheck:!1},(t=e=o.list.map((function(e){return d(I,{center:!0,class:P.manageCell},{icon:function(){return d(k,{class:P.img,src:e.avatar?e.avatar:A},null)},title:function(){return d("div",{class:P.content},[d("div",{class:P.TagWrap},[" ",d("p",{class:[P.name,"van-ellipsis"]},[e.studentName?e.studentName:"--"]),d("div",{class:[P.studentTag,P[e.status]]},[O[e.status]])]),e.submitTime?d("p",{class:P.phone},[e.submitTime]):""])}})})),"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)?e:{default:function(){return[e]}}))];var t}}):d(v,{btnStatus:!1,tips:"暂无学员"},null)])}}});e("default",u({name:"unitDetail",setup:function(){var e=l(),t=s(),u=f({studentList:{}});p(!1),p(!1);var v=c.platformApi,g=p(1),A=p({}),x=p(!1),O=function(){var e=a(regeneratorRuntime.mark((function e(){var n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("".concat(v,"/classGroupUnitExamination/detail"),{data:{classGroupUnitExaminationId:t.query.id},requestType:"form"});case 3:n=e.sent,A.value=n.data,console.log("🚀 ~ file: unitDetail.tsx:45 ~ getDetail ~ info.value",A.value),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(0),console.log(e.t0);case 11: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 n,i;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("".concat(v,"/studentUnitExamination/studentDetail"),{data:{classGroupUnitExaminationId:t.query.id},requestType:"form"});case 3:n=e.sent,i=n.data,console.log(i),u.studentList=i||{},e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),j=h((function(){return!(u.studentList[g.value]&&u.studentList[g.value].length>0)}));return _((function(){O(),C()})),function(){return d("div",{class:o.unitDetail},[d(r,{item:A.value},null),d("div",{class:o.tabsWrap},[d(S,{class:o.tabsWrapIcon,name:i,size:18,color:"#333",onClick:function(){x.value=!0}},null),d(L,{active:g.value,"onUpdate:active":function(e){return g.value=e},class:o.rankTabs,background:"#F8F8F8","title-active-color":"#333333","title-inactive-color":"#777",color:"#FF8057",lineWidth:20,lineHeight:4,shrink:!0},{default:function(){return[d(N,{name:1,title:"单团学生"},{default:function(){return[d(E,{type:1},null)]}}),d(N,{name:2,title:"双团学生"},{default:function(){return[d(E,{type:2},null)]}}),d(N,{name:3,title:"多团学生"},{default:function(){return[d(E,{type:3},null)]}})]}})]),d(n,{position:"bottom"},{default:function(){return[d("div",{class:["btnGroup"]},[d(y,{block:!0,round:!0,type:"primary",disabled:j.value,onClick:function(){e.push({path:"/unit-detail",query:{id:t.query.id,level:g.value}})}},{default:function(){return[b("测试报告")]}})])]}}),d(F,{show:x.value,"onUpdate:show":function(e){return x.value=e},title:"学生分类",message:"根据学生入团的批次对不同训练阶段的学生进行分类,不同训练阶段的学生可布置不同标准的课后作业和阶段自测内容。\n\n单团学生:最新进入本乐团的学员\n双团学生:较早进入本乐团的学员\n多团学生:最早进入本乐团的学员",messageAlign:"left",confirmButtonText:"我知道了"},null)])}}}))}}}))}();
  743. >>>>>>> online:dist/assets/unitDetail-legacy.b2ca3b4b.js