index-legacy.b03331ef.js 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777
  1. !(function () {
  2. function e(e, t) {
  3. var r = Object.keys(e)
  4. if (Object.getOwnPropertySymbols) {
  5. var n = Object.getOwnPropertySymbols(e)
  6. t &&
  7. (n = n.filter(function (t) {
  8. return Object.getOwnPropertyDescriptor(e, t).enumerable
  9. })),
  10. r.push.apply(r, n)
  11. }
  12. return r
  13. }
  14. function t(t) {
  15. for (var n = 1; n < arguments.length; n++) {
  16. var o = null != arguments[n] ? arguments[n] : {}
  17. n % 2
  18. ? e(Object(o), !0).forEach(function (e) {
  19. r(t, e, o[e])
  20. })
  21. : Object.getOwnPropertyDescriptors
  22. ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o))
  23. : e(Object(o)).forEach(function (e) {
  24. Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(o, e))
  25. })
  26. }
  27. return t
  28. }
  29. function r(e, t, r) {
  30. return (
  31. t in e
  32. ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 })
  33. : (e[t] = r),
  34. e
  35. )
  36. }
  37. function n(e, t, r, n, o, a, i) {
  38. try {
  39. var c = e[a](i),
  40. s = c.value
  41. } catch (_) {
  42. return void r(_)
  43. }
  44. c.done ? t(s) : Promise.resolve(s).then(n, o)
  45. }
  46. function o(e) {
  47. return function () {
  48. var t = this,
  49. r = arguments
  50. return new Promise(function (o, a) {
  51. var i = e.apply(t, r)
  52. function c(e) {
  53. n(i, o, a, c, s, 'next', e)
  54. }
  55. function s(e) {
  56. n(i, o, a, c, s, 'throw', e)
  57. }
  58. c(void 0)
  59. })
  60. }
  61. }
  62. var a = document.createElement('style')
  63. ;(a.innerHTML =
  64. '._chioseWrap_1n0dz_1{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;background-color:#f8f8f8;color:#333;font-weight:500;font-size:.37333rem;line-height:1.01333rem}._chioseWrap_1n0dz_1 ._orchestraBand_1n0dz_12{display:flex;flex-direction:row;align-items:center}._chioseWrap_1n0dz_1 ._orchestraBand_1n0dz_12 p{max-width:3.2rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._chioseWrap_1n0dz_1>div{padding:0 .34667rem}._searchInput_1n0dz_26 .van-search{padding-bottom:0}._itemWrap_1d6rq_1{padding:.32rem .4rem .4rem;border-radius:.26667rem;background-color:#fff;margin:0 .34667rem .32rem}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding-bottom:.32rem;border-bottom:.02667rem solid #f2f2f2}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15{display:flex;flex-direction:row;align-items:center}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15 ._clockWrap_1d6rq_20{width:.48rem;height:.48rem;margin-right:.16rem}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15 ._clockWrap_1d6rq_20 img{width:100%;height:100%}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopLeft_1d6rq_15 ._leftTimer_1d6rq_29{font-size:.37333rem;font-weight:500;color:#333;line-height:.53333rem}._itemWrap_1d6rq_1 ._itemWrapTop_1d6rq_7 ._itemWrapTopRight_1d6rq_35{font-size:.32rem;color:#777}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39{padding-top:.4rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42{display:flex;flex-direction:row;align-items:center;padding-bottom:.4rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42 ._headImgs_1d6rq_48{width:1.12rem;height:1.12rem;border-radius:50%;overflow:hidden;margin-right:.32rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42 ._infoMsg_1d6rq_55 ._infoMsgMain_1d6rq_55{font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._courseInfo_1d6rq_42 ._infoMsg_1d6rq_55 ._infoMsgSub_1d6rq_61{width:6.93333rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.34667rem;padding-top:.05333rem;font-weight:400;color:#777;line-height:.45333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72{display:flex;flex-direction:row;align-items:center;justify-content:space-between}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78{text-align:left;padding:.32rem;width:100%}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78 ._attInfoDotTitle_1d6rq_83{width:100%;display:flex;flex-direction:row;justify-content:space-between;margin-bottom:.18667rem;align-items:center;font-size:.37333rem;color:#333}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78 ._attInfoDotTitle_1d6rq_83 img{width:.48rem;height:.48rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._attInfo_1d6rq_72 ._attInfoDot_1d6rq_78 ._signTime_1d6rq_97{height:.82667rem;line-height:.82667rem;font-size:.45333rem;font-weight:600;color:#333;line-height:.74667rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106{flex:1;display:flex;flex-direction:row;align-items:center;border-radius:.26667rem;justify-content:space-between;text-align:center}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105:first-child,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106:first-child{margin-right:.13333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105:last-child,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106:last-child{margin-left:.13333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105 ._itemBottomMain_1d6rq_123,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106 ._itemBottomMain_1d6rq_123{font-size:.8rem;font-weight:700;color:#333;line-height:.93333rem;margin-bottom:.05333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105 ._itemBottomSub_1d6rq_131,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106 ._itemBottomSub_1d6rq_131{font-size:.37333rem;font-weight:400;color:#333;line-height:.53333rem}._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._passWrap_1d6rq_105,._itemWrap_1d6rq_1 ._itemWrapBottom_1d6rq_39 ._goWrap_1d6rq_106{background-color:#f2f2f2}\n'),
  65. document.head.appendChild(a),
  66. System.register(
  67. [
  68. './index-legacy.57c73898.js',
  69. './index-legacy.b30008f0.js',
  70. './attend-student-legacy.c5f26037.js',
  71. './index-legacy.cf09ad36.js',
  72. './index-legacy.ec5d708a.js',
  73. './clock-icon-legacy.2424f549.js',
  74. './success-icon-legacy.569ddbea.js',
  75. './default-icon-legacy.59172ab1.js',
  76. './index-legacy.1cf073d0.js',
  77. './index-legacy.ec34f3ff.js',
  78. './index-legacy.579adf27.js',
  79. './index-legacy.79ba2023.js',
  80. './index.module-legacy.dbcf0bf0.js',
  81. './index-legacy.43317ab8.js',
  82. './index-legacy.698b918a.js',
  83. './index-legacy.cc7dc1ca.js',
  84. './use-tab-status-legacy.8668a42b.js',
  85. './utils-legacy.37743e8a.js',
  86. './Picker-legacy.a502fc12.js',
  87. './index-legacy.bf0d95d4.js',
  88. './index-legacy.07eb86de.js'
  89. ],
  90. function (e) {
  91. 'use strict'
  92. var r,
  93. n,
  94. a,
  95. i,
  96. c,
  97. s,
  98. _,
  99. l,
  100. u,
  101. d,
  102. m,
  103. p,
  104. f,
  105. h,
  106. g,
  107. v,
  108. q,
  109. w,
  110. W,
  111. b,
  112. y,
  113. x,
  114. j,
  115. O,
  116. T,
  117. I,
  118. P,
  119. B,
  120. D,
  121. k,
  122. S,
  123. M,
  124. N
  125. return {
  126. setters: [
  127. function (e) {
  128. ;(r = e.d),
  129. (n = e.ag),
  130. (a = e.c),
  131. (i = e.ai),
  132. (c = e.a5),
  133. (s = e.q),
  134. (_ = e.F),
  135. (l = e.r),
  136. (u = e.R),
  137. (d = e.Z),
  138. (m = e.$),
  139. (p = e.ak),
  140. (f = e.P),
  141. (h = e.a_),
  142. (g = e.al),
  143. (v = e.m),
  144. (q = e.o),
  145. (w = e.aj)
  146. },
  147. function (e) {
  148. W = e.O
  149. },
  150. function (e) {
  151. b = e.A
  152. },
  153. function (e) {
  154. y = e.O
  155. },
  156. function (e) {
  157. x = e.c
  158. },
  159. function (e) {
  160. j = e.c
  161. },
  162. function (e) {
  163. ;(O = e.s), (T = e.e)
  164. },
  165. function (e) {
  166. I = e.d
  167. },
  168. function (e) {
  169. P = e.O
  170. },
  171. function (e) {
  172. B = e.L
  173. },
  174. function (e) {
  175. D = e.D
  176. },
  177. function (e) {
  178. k = e.P
  179. },
  180. function (e) {
  181. S = e.s
  182. },
  183. function (e) {
  184. ;(M = e.T), (N = e.a)
  185. },
  186. function () {},
  187. function () {},
  188. function () {},
  189. function () {},
  190. function () {},
  191. function () {},
  192. function () {}
  193. ],
  194. execute: function () {
  195. var L = '_searchInput_1n0dz_26',
  196. z = '_itemWrap_1d6rq_1',
  197. Y = '_itemWrapTop_1d6rq_7',
  198. C = '_itemWrapTopLeft_1d6rq_15',
  199. R = '_clockWrap_1d6rq_20',
  200. V = '_leftTimer_1d6rq_29',
  201. H = '_itemWrapTopRight_1d6rq_35',
  202. A = '_itemWrapBottom_1d6rq_39',
  203. F = '_courseInfo_1d6rq_42',
  204. U = '_headImgs_1d6rq_48',
  205. E = '_infoMsg_1d6rq_55',
  206. G = '_infoMsgMain_1d6rq_55',
  207. Z = '_infoMsgSub_1d6rq_61',
  208. $ = '_attInfo_1d6rq_72',
  209. J = '_attInfoDot_1d6rq_78',
  210. K = '_attInfoDotTitle_1d6rq_83',
  211. Q = '_signTime_1d6rq_97',
  212. X = '_passWrap_1d6rq_105',
  213. ee = '_goWrap_1d6rq_106',
  214. te = r({
  215. props: ['item'],
  216. name: 'teacherAtt-item',
  217. setup: function (e) {
  218. var t = n(),
  219. r = function () {
  220. t.push({
  221. path: '/teacher-attendDetail',
  222. query: { courseScheduleId: e.item.courseScheduleId }
  223. })
  224. }
  225. return function () {
  226. return a(_, null, [
  227. a('div', { class: z, onClick: r }, [
  228. a('div', { class: Y }, [
  229. a('div', { class: C }, [
  230. a('div', { class: R }, [a('img', { src: j, alt: '' }, null)]),
  231. a('p', { class: V }, [
  232. i(e.item.startTime).format('YYYY-MM-DD HH:mm'),
  233. '~',
  234. i(e.item.endTime).format('HH:mm')
  235. ])
  236. ]),
  237. a('div', { class: H }, [a(c, { name: 'arrow' }, null)])
  238. ]),
  239. a('div', { class: A }, [
  240. a('div', { class: F }, [
  241. a('img', { class: U, src: I, alt: '' }, null),
  242. a('div', { class: E }, [
  243. a('p', { class: G }, [
  244. e.item.classGroupName,
  245. s('-'),
  246. e.item.teacherName
  247. ]),
  248. a('p', { class: Z }, [e.item.orchestraName])
  249. ])
  250. ]),
  251. a('div', { class: $ }, [
  252. a('div', { class: 'NORMAL' === e.item.signInStatus ? X : ee }, [
  253. a('div', { class: J }, [
  254. a('div', { class: K }, [
  255. a('span', null, [s('签到状态')]),
  256. a(
  257. 'img',
  258. { src: 'NORMAL' === e.item.signInStatus ? O : T, alt: '' },
  259. null
  260. )
  261. ]),
  262. a('p', { class: Q }, [
  263. 'NORMAL' === e.item.signInStatus
  264. ? '正常'
  265. : a('span', { style: { color: '#F44541' } }, [s('异常')])
  266. ])
  267. ])
  268. ]),
  269. a('div', { class: 'NORMAL' === e.item.signOutStatus ? X : ee }, [
  270. a('div', { class: J }, [
  271. a('div', { class: K }, [
  272. a('span', null, [s('签退状态')]),
  273. a(
  274. 'img',
  275. { src: 'NORMAL' === e.item.signOutStatus ? O : T, alt: '' },
  276. null
  277. )
  278. ]),
  279. a('p', { class: Q }, [
  280. 'NORMAL' === e.item.signOutStatus
  281. ? '正常'
  282. : a('span', { style: { color: '#F44541' } }, [s('异常')])
  283. ])
  284. ])
  285. ])
  286. ])
  287. ])
  288. ])
  289. ])
  290. }
  291. }
  292. })
  293. var re = r({
  294. name: 'attend-student',
  295. props: { toHeight: { type: Number, default: 0 } },
  296. setup: function (e) {
  297. n()
  298. var r = l({
  299. showPopoverTime: !1,
  300. showPopoverOrchestra: !1,
  301. showPopoverSubject: !1,
  302. isClick: !1,
  303. actions: [],
  304. courseList: [],
  305. currentDate: [i().format('YYYY'), i().format('MM')]
  306. }),
  307. c = l({
  308. time: r.currentDate[0] + '-' + r.currentDate[1],
  309. timeName: r.currentDate[0] + '年' + r.currentDate[1] + '月',
  310. keyword: '',
  311. orchestraId: '',
  312. orchestraName: '全部乐团',
  313. courseType: '',
  314. courseTypeName: '所有课程',
  315. page: 1,
  316. rows: 20
  317. }),
  318. s = u(e.toHeight),
  319. w = u(new Date(i().subtract(10, 'year').format('YYYY-MM-DD'))),
  320. W = u(new Date(i().add(10, 'year').format('YYYY-MM-DD'))),
  321. b = u(['year', 'month']),
  322. j = u(!1),
  323. O = u(!1),
  324. T = u(!1),
  325. I = u(!1),
  326. S = u([]),
  327. M = (function () {
  328. var e = o(
  329. regeneratorRuntime.mark(function e() {
  330. var n, o
  331. return regeneratorRuntime.wrap(
  332. function (e) {
  333. for (;;)
  334. switch ((e.prev = e.next)) {
  335. case 0:
  336. if (!r.isClick) {
  337. e.next = 2
  338. break
  339. }
  340. return e.abrupt('return')
  341. case 2:
  342. return (
  343. (r.isClick = !0),
  344. (O.value = !0),
  345. (e.prev = 4),
  346. j.value && ((c.page = 1), (S.value = []), (j.value = !1)),
  347. (e.next = 8),
  348. v.post('/api-school/courseSchedule/teacherAttendance', {
  349. data: t({}, c)
  350. })
  351. )
  352. case 8:
  353. if (
  354. ((n = e.sent), !(S.value.length > 0 && 1 === n.data.pages))
  355. ) {
  356. e.next = 11
  357. break
  358. }
  359. return e.abrupt('return')
  360. case 11:
  361. ;(c.page = n.data.current + 1),
  362. (S.value = S.value.concat(n.data.rows || [])),
  363. (I.value = S.value.length > 0),
  364. (O.value = !1),
  365. (T.value = n.data.current >= n.data.pages),
  366. (e.next = 24)
  367. break
  368. case 18:
  369. ;(e.prev = 18),
  370. (e.t0 = e.catch(4)),
  371. (o = e.t0.message),
  372. q(o),
  373. (I.value = !1),
  374. (T.value = !0)
  375. case 24:
  376. r.isClick = !1
  377. case 25:
  378. case 'end':
  379. return e.stop()
  380. }
  381. },
  382. e,
  383. null,
  384. [[4, 18]]
  385. )
  386. })
  387. )
  388. return function () {
  389. return e.apply(this, arguments)
  390. }
  391. })(),
  392. N = function (e) {
  393. ;(c.time = e.selectedValues[0] + '-' + e.selectedValues[1]),
  394. (c.timeName = e.selectedValues[0] + '年' + e.selectedValues[1] + '月'),
  395. (r.showPopoverTime = !1),
  396. (j.value = !0),
  397. M()
  398. },
  399. z = (function () {
  400. var e = o(
  401. regeneratorRuntime.mark(function e() {
  402. var t, n
  403. return regeneratorRuntime.wrap(
  404. function (e) {
  405. for (;;)
  406. switch ((e.prev = e.next)) {
  407. case 0:
  408. return (
  409. (e.prev = 0),
  410. (e.next = 3),
  411. v.post('/api-school/orchestra/page', {
  412. data: { page: 1, rows: 9999, status: 'DONE' }
  413. })
  414. )
  415. case 3:
  416. ;(t = e.sent),
  417. (r.actions = t.data.rows.map(function (e) {
  418. return { name: e.name, value: e.id }
  419. })),
  420. r.actions.unshift({ name: '全部乐团', value: '' }),
  421. (e.next = 12)
  422. break
  423. case 8:
  424. ;(e.prev = 8), (e.t0 = e.catch(0)), (n = e.t0.message), q(n)
  425. case 12:
  426. case 'end':
  427. return e.stop()
  428. }
  429. },
  430. e,
  431. null,
  432. [[0, 8]]
  433. )
  434. })
  435. )
  436. return function () {
  437. return e.apply(this, arguments)
  438. }
  439. })()
  440. d(
  441. function () {
  442. return e.toHeight
  443. },
  444. function (e) {
  445. ;(s.value = e), console.log(s.value, '老师的')
  446. }
  447. ),
  448. m(function () {
  449. z(),
  450. M(),
  451. (function () {
  452. for (var e in ((r.courseList = []), x))
  453. r.courseList.push({ name: x[e], value: e })
  454. r.courseList.unshift({ name: '全部课程', value: '' })
  455. })()
  456. })
  457. var Y = function () {
  458. ;(T.value = !1), (O.value = !0), M()
  459. }
  460. return function () {
  461. var e
  462. return a('div', null, [
  463. a(_, null, [
  464. a(
  465. y,
  466. {
  467. placeholder: '请输入伴学老师姓名',
  468. class: L,
  469. onSearch: function (e) {
  470. console.log(e, 'onSearch'), (c.keyword = e), (j.value = !0), M()
  471. }
  472. },
  473. null
  474. ),
  475. a('div', { class: 'searchGroup' }, [
  476. a(
  477. 'div',
  478. {
  479. class: ['searchItem', r.showPopoverTime && 'searchItem-active'],
  480. onClick: function () {
  481. r.showPopoverTime = !0
  482. }
  483. },
  484. [c.timeName, a('i', { class: 'arrow' }, null)]
  485. ),
  486. a(
  487. 'div',
  488. {
  489. class: ['searchItem', r.showPopoverOrchestra && 'searchItem-active'],
  490. onClick: function () {
  491. r.showPopoverOrchestra = !0
  492. }
  493. },
  494. [a('span', null, [c.orchestraName]), a('i', { class: 'arrow' }, null)]
  495. ),
  496. a(
  497. 'div',
  498. {
  499. class: ['searchItem', r.showPopoverSubject && 'searchItem-active'],
  500. onClick: function () {
  501. r.showPopoverSubject = !0
  502. }
  503. },
  504. [c.courseTypeName, a('i', { class: 'arrow' }, null)]
  505. )
  506. ])
  507. ]),
  508. a(
  509. 'div',
  510. {
  511. style: {
  512. overflowY: 'auto',
  513. height:
  514. 'calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)'
  515. }
  516. },
  517. [
  518. I.value
  519. ? a(
  520. P,
  521. {
  522. modelValue: j.value,
  523. 'onUpdate:modelValue': function (e) {
  524. return (j.value = e)
  525. },
  526. onRefresh: Y,
  527. style:
  528. 'min-height: calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)'
  529. },
  530. {
  531. default: function () {
  532. return [
  533. a(
  534. B,
  535. {
  536. 'loading-text': ' ',
  537. finished: T.value,
  538. 'finished-text': ' ',
  539. onLoad: M,
  540. style: { paddingTop: '12px' }
  541. },
  542. ((t = e =
  543. S.value.map(function (e) {
  544. return a(te, { item: e }, null)
  545. })),
  546. 'function' == typeof t ||
  547. ('[object Object]' === Object.prototype.toString.call(t) &&
  548. !g(t))
  549. ? e
  550. : {
  551. default: function () {
  552. return [e]
  553. }
  554. })
  555. )
  556. ]
  557. var t
  558. }
  559. }
  560. )
  561. : a(p, { tips: '暂无考勤' }, null)
  562. ]
  563. ),
  564. a(
  565. f,
  566. {
  567. show: r.showPopoverTime,
  568. 'onUpdate:show': function (e) {
  569. return (r.showPopoverTime = e)
  570. },
  571. position: 'bottom',
  572. round: !0,
  573. teleport: 'body',
  574. class: 'popupBottomSearch'
  575. },
  576. {
  577. default: function () {
  578. return [
  579. a(
  580. D,
  581. {
  582. onCancel: function () {
  583. r.showPopoverTime = !1
  584. },
  585. onConfirm: N,
  586. modelValue: r.currentDate,
  587. 'onUpdate:modelValue': function (e) {
  588. return (r.currentDate = e)
  589. },
  590. formatter: h,
  591. minDate: w.value,
  592. maxDate: W.value,
  593. columnsType: b.value
  594. },
  595. null
  596. )
  597. ]
  598. }
  599. }
  600. ),
  601. a(
  602. f,
  603. {
  604. show: r.showPopoverOrchestra,
  605. 'onUpdate:show': function (e) {
  606. return (r.showPopoverOrchestra = e)
  607. },
  608. position: 'bottom',
  609. round: !0,
  610. teleport: 'body',
  611. class: 'popupBottomSearch'
  612. },
  613. {
  614. default: function () {
  615. return [
  616. a(
  617. k,
  618. {
  619. columns: r.actions,
  620. onCancel: function () {
  621. return (r.showPopoverOrchestra = !1)
  622. },
  623. onConfirm: function (e) {
  624. return (function (e) {
  625. var t = e.selectedOptions[0] || {}
  626. ;(c.orchestraId = t.value),
  627. (c.orchestraName = t.name),
  628. (r.showPopoverOrchestra = !1),
  629. (j.value = !0),
  630. M()
  631. })(e)
  632. },
  633. columnsFieldNames: { text: 'name', value: 'value' }
  634. },
  635. null
  636. )
  637. ]
  638. }
  639. }
  640. ),
  641. a(
  642. f,
  643. {
  644. show: r.showPopoverSubject,
  645. 'onUpdate:show': function (e) {
  646. return (r.showPopoverSubject = e)
  647. },
  648. position: 'bottom',
  649. round: !0,
  650. teleport: 'body',
  651. class: 'popupBottomSearch'
  652. },
  653. {
  654. default: function () {
  655. return [
  656. a(
  657. k,
  658. {
  659. columns: r.courseList,
  660. onCancel: function () {
  661. return (r.showPopoverSubject = !1)
  662. },
  663. onConfirm: function (e) {
  664. return (function (e) {
  665. var t = e.selectedOptions[0] || {}
  666. ;(c.courseType = t.value),
  667. (c.courseTypeName = t.name),
  668. (r.showPopoverSubject = !1),
  669. (j.value = !0),
  670. M()
  671. })(e)
  672. },
  673. columnsFieldNames: { text: 'name', value: 'value' }
  674. },
  675. null
  676. )
  677. ]
  678. }
  679. }
  680. )
  681. ])
  682. }
  683. }
  684. }),
  685. ne = u('student')
  686. e(
  687. 'default',
  688. r({
  689. name: 'school-attendance',
  690. setup: function () {
  691. var e = n(),
  692. t = l({ heightV: 0 }),
  693. r = u(),
  694. o = function (e) {
  695. ;(t.heightV = e),
  696. console.log(t.heightV, '获取高度'),
  697. document.documentElement.style.setProperty('--header-height', e + 'px')
  698. }
  699. return function () {
  700. return a(_, null, [
  701. a(
  702. W,
  703. { position: 'top', background: '#F8F8F8', onGetHeight: o, ref: r },
  704. {
  705. default: function () {
  706. return [
  707. a(
  708. w,
  709. { border: !1 },
  710. {
  711. right: function () {
  712. return a(
  713. 'span',
  714. {
  715. class: S.iconSetting,
  716. onClick: function () {
  717. e.push('/attendance-rules')
  718. }
  719. },
  720. null
  721. )
  722. }
  723. }
  724. )
  725. ]
  726. }
  727. }
  728. ),
  729. a(
  730. M,
  731. {
  732. active: ne.value,
  733. 'onUpdate:active': function (e) {
  734. return (ne.value = e)
  735. },
  736. sticky: !0,
  737. swipeable: !0,
  738. offsetTop: t.heightV,
  739. lineHeight: 4,
  740. lineWidth: 16,
  741. class: S.stickyAttendance
  742. },
  743. {
  744. default: function () {
  745. return [
  746. a(
  747. N,
  748. { name: 'student', title: '学员考勤' },
  749. {
  750. default: function () {
  751. return [a(b, { toHeight: t.heightV }, null)]
  752. }
  753. }
  754. ),
  755. a(
  756. N,
  757. { name: 'teacher', title: '伴学老师考勤' },
  758. {
  759. default: function () {
  760. return [a(re, { toHeight: t.heightV }, null)]
  761. }
  762. }
  763. )
  764. ]
  765. }
  766. }
  767. )
  768. ])
  769. }
  770. }
  771. })
  772. )
  773. }
  774. }
  775. }
  776. )
  777. })()