| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777 |
- !(function () {
- function e(e, t) {
- var r = Object.keys(e)
- if (Object.getOwnPropertySymbols) {
- var n = Object.getOwnPropertySymbols(e)
- t &&
- (n = n.filter(function (t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable
- })),
- r.push.apply(r, n)
- }
- return r
- }
- function t(t) {
- for (var n = 1; n < arguments.length; n++) {
- var o = null != arguments[n] ? arguments[n] : {}
- n % 2
- ? e(Object(o), !0).forEach(function (e) {
- r(t, e, o[e])
- })
- : Object.getOwnPropertyDescriptors
- ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(o))
- : e(Object(o)).forEach(function (e) {
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(o, e))
- })
- }
- return t
- }
- function r(e, t, r) {
- return (
- t in e
- ? Object.defineProperty(e, t, { value: r, enumerable: !0, configurable: !0, writable: !0 })
- : (e[t] = r),
- e
- )
- }
- function n(e, t, r, n, o, a, i) {
- try {
- var c = e[a](i),
- s = c.value
- } catch (_) {
- return void r(_)
- }
- c.done ? t(s) : Promise.resolve(s).then(n, o)
- }
- function o(e) {
- return function () {
- var t = this,
- r = arguments
- return new Promise(function (o, a) {
- var i = e.apply(t, r)
- function c(e) {
- n(i, o, a, c, s, 'next', e)
- }
- function s(e) {
- n(i, o, a, c, s, 'throw', e)
- }
- c(void 0)
- })
- }
- }
- var a = document.createElement('style')
- ;(a.innerHTML =
- '._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'),
- document.head.appendChild(a),
- System.register(
- [
- './index-legacy.57c73898.js',
- './index-legacy.b30008f0.js',
- './attend-student-legacy.c5f26037.js',
- './index-legacy.cf09ad36.js',
- './index-legacy.ec5d708a.js',
- './clock-icon-legacy.2424f549.js',
- './success-icon-legacy.569ddbea.js',
- './default-icon-legacy.59172ab1.js',
- './index-legacy.1cf073d0.js',
- './index-legacy.ec34f3ff.js',
- './index-legacy.579adf27.js',
- './index-legacy.79ba2023.js',
- './index.module-legacy.dbcf0bf0.js',
- './index-legacy.43317ab8.js',
- './index-legacy.698b918a.js',
- './index-legacy.cc7dc1ca.js',
- './use-tab-status-legacy.8668a42b.js',
- './utils-legacy.37743e8a.js',
- './Picker-legacy.a502fc12.js',
- './index-legacy.bf0d95d4.js',
- './index-legacy.07eb86de.js'
- ],
- function (e) {
- 'use strict'
- var r,
- n,
- a,
- i,
- c,
- s,
- _,
- l,
- u,
- d,
- m,
- p,
- f,
- h,
- g,
- v,
- q,
- w,
- W,
- b,
- y,
- x,
- j,
- O,
- T,
- I,
- P,
- B,
- D,
- k,
- S,
- M,
- N
- return {
- setters: [
- function (e) {
- ;(r = e.d),
- (n = e.ag),
- (a = e.c),
- (i = e.ai),
- (c = e.a5),
- (s = e.q),
- (_ = e.F),
- (l = e.r),
- (u = e.R),
- (d = e.Z),
- (m = e.$),
- (p = e.ak),
- (f = e.P),
- (h = e.a_),
- (g = e.al),
- (v = e.m),
- (q = e.o),
- (w = e.aj)
- },
- function (e) {
- W = e.O
- },
- function (e) {
- b = e.A
- },
- function (e) {
- y = e.O
- },
- function (e) {
- x = e.c
- },
- function (e) {
- j = e.c
- },
- function (e) {
- ;(O = e.s), (T = e.e)
- },
- function (e) {
- I = e.d
- },
- function (e) {
- P = e.O
- },
- function (e) {
- B = e.L
- },
- function (e) {
- D = e.D
- },
- function (e) {
- k = e.P
- },
- function (e) {
- S = e.s
- },
- function (e) {
- ;(M = e.T), (N = e.a)
- },
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {}
- ],
- execute: function () {
- var L = '_searchInput_1n0dz_26',
- z = '_itemWrap_1d6rq_1',
- Y = '_itemWrapTop_1d6rq_7',
- C = '_itemWrapTopLeft_1d6rq_15',
- R = '_clockWrap_1d6rq_20',
- V = '_leftTimer_1d6rq_29',
- H = '_itemWrapTopRight_1d6rq_35',
- A = '_itemWrapBottom_1d6rq_39',
- F = '_courseInfo_1d6rq_42',
- U = '_headImgs_1d6rq_48',
- E = '_infoMsg_1d6rq_55',
- G = '_infoMsgMain_1d6rq_55',
- Z = '_infoMsgSub_1d6rq_61',
- $ = '_attInfo_1d6rq_72',
- J = '_attInfoDot_1d6rq_78',
- K = '_attInfoDotTitle_1d6rq_83',
- Q = '_signTime_1d6rq_97',
- X = '_passWrap_1d6rq_105',
- ee = '_goWrap_1d6rq_106',
- te = r({
- props: ['item'],
- name: 'teacherAtt-item',
- setup: function (e) {
- var t = n(),
- r = function () {
- t.push({
- path: '/teacher-attendDetail',
- query: { courseScheduleId: e.item.courseScheduleId }
- })
- }
- return function () {
- return a(_, null, [
- a('div', { class: z, onClick: r }, [
- a('div', { class: Y }, [
- a('div', { class: C }, [
- a('div', { class: R }, [a('img', { src: j, alt: '' }, null)]),
- a('p', { class: V }, [
- i(e.item.startTime).format('YYYY-MM-DD HH:mm'),
- '~',
- i(e.item.endTime).format('HH:mm')
- ])
- ]),
- a('div', { class: H }, [a(c, { name: 'arrow' }, null)])
- ]),
- a('div', { class: A }, [
- a('div', { class: F }, [
- a('img', { class: U, src: I, alt: '' }, null),
- a('div', { class: E }, [
- a('p', { class: G }, [
- e.item.classGroupName,
- s('-'),
- e.item.teacherName
- ]),
- a('p', { class: Z }, [e.item.orchestraName])
- ])
- ]),
- a('div', { class: $ }, [
- a('div', { class: 'NORMAL' === e.item.signInStatus ? X : ee }, [
- a('div', { class: J }, [
- a('div', { class: K }, [
- a('span', null, [s('签到状态')]),
- a(
- 'img',
- { src: 'NORMAL' === e.item.signInStatus ? O : T, alt: '' },
- null
- )
- ]),
- a('p', { class: Q }, [
- 'NORMAL' === e.item.signInStatus
- ? '正常'
- : a('span', { style: { color: '#F44541' } }, [s('异常')])
- ])
- ])
- ]),
- a('div', { class: 'NORMAL' === e.item.signOutStatus ? X : ee }, [
- a('div', { class: J }, [
- a('div', { class: K }, [
- a('span', null, [s('签退状态')]),
- a(
- 'img',
- { src: 'NORMAL' === e.item.signOutStatus ? O : T, alt: '' },
- null
- )
- ]),
- a('p', { class: Q }, [
- 'NORMAL' === e.item.signOutStatus
- ? '正常'
- : a('span', { style: { color: '#F44541' } }, [s('异常')])
- ])
- ])
- ])
- ])
- ])
- ])
- ])
- }
- }
- })
- var re = r({
- name: 'attend-student',
- props: { toHeight: { type: Number, default: 0 } },
- setup: function (e) {
- n()
- var r = l({
- showPopoverTime: !1,
- showPopoverOrchestra: !1,
- showPopoverSubject: !1,
- isClick: !1,
- actions: [],
- courseList: [],
- currentDate: [i().format('YYYY'), i().format('MM')]
- }),
- c = l({
- time: r.currentDate[0] + '-' + r.currentDate[1],
- timeName: r.currentDate[0] + '年' + r.currentDate[1] + '月',
- keyword: '',
- orchestraId: '',
- orchestraName: '全部乐团',
- courseType: '',
- courseTypeName: '所有课程',
- page: 1,
- rows: 20
- }),
- s = u(e.toHeight),
- w = u(new Date(i().subtract(10, 'year').format('YYYY-MM-DD'))),
- W = u(new Date(i().add(10, 'year').format('YYYY-MM-DD'))),
- b = u(['year', 'month']),
- j = u(!1),
- O = u(!1),
- T = u(!1),
- I = u(!1),
- S = u([]),
- M = (function () {
- var e = o(
- regeneratorRuntime.mark(function e() {
- var n, o
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- if (!r.isClick) {
- e.next = 2
- break
- }
- return e.abrupt('return')
- case 2:
- return (
- (r.isClick = !0),
- (O.value = !0),
- (e.prev = 4),
- j.value && ((c.page = 1), (S.value = []), (j.value = !1)),
- (e.next = 8),
- v.post('/api-school/courseSchedule/teacherAttendance', {
- data: t({}, c)
- })
- )
- case 8:
- if (
- ((n = e.sent), !(S.value.length > 0 && 1 === n.data.pages))
- ) {
- e.next = 11
- break
- }
- return e.abrupt('return')
- case 11:
- ;(c.page = n.data.current + 1),
- (S.value = S.value.concat(n.data.rows || [])),
- (I.value = S.value.length > 0),
- (O.value = !1),
- (T.value = n.data.current >= n.data.pages),
- (e.next = 24)
- break
- case 18:
- ;(e.prev = 18),
- (e.t0 = e.catch(4)),
- (o = e.t0.message),
- q(o),
- (I.value = !1),
- (T.value = !0)
- case 24:
- r.isClick = !1
- case 25:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[4, 18]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- N = function (e) {
- ;(c.time = e.selectedValues[0] + '-' + e.selectedValues[1]),
- (c.timeName = e.selectedValues[0] + '年' + e.selectedValues[1] + '月'),
- (r.showPopoverTime = !1),
- (j.value = !0),
- M()
- },
- z = (function () {
- var e = o(
- 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),
- v.post('/api-school/orchestra/page', {
- data: { page: 1, rows: 9999, status: 'DONE' }
- })
- )
- case 3:
- ;(t = e.sent),
- (r.actions = t.data.rows.map(function (e) {
- return { name: e.name, value: e.id }
- })),
- r.actions.unshift({ name: '全部乐团', value: '' }),
- (e.next = 12)
- break
- case 8:
- ;(e.prev = 8), (e.t0 = e.catch(0)), (n = e.t0.message), q(n)
- case 12:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 8]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })()
- d(
- function () {
- return e.toHeight
- },
- function (e) {
- ;(s.value = e), console.log(s.value, '老师的')
- }
- ),
- m(function () {
- z(),
- M(),
- (function () {
- for (var e in ((r.courseList = []), x))
- r.courseList.push({ name: x[e], value: e })
- r.courseList.unshift({ name: '全部课程', value: '' })
- })()
- })
- var Y = function () {
- ;(T.value = !1), (O.value = !0), M()
- }
- return function () {
- var e
- return a('div', null, [
- a(_, null, [
- a(
- y,
- {
- placeholder: '请输入伴学老师姓名',
- class: L,
- onSearch: function (e) {
- console.log(e, 'onSearch'), (c.keyword = e), (j.value = !0), M()
- }
- },
- null
- ),
- a('div', { class: 'searchGroup' }, [
- a(
- 'div',
- {
- class: ['searchItem', r.showPopoverTime && 'searchItem-active'],
- onClick: function () {
- r.showPopoverTime = !0
- }
- },
- [c.timeName, a('i', { class: 'arrow' }, null)]
- ),
- a(
- 'div',
- {
- class: ['searchItem', r.showPopoverOrchestra && 'searchItem-active'],
- onClick: function () {
- r.showPopoverOrchestra = !0
- }
- },
- [a('span', null, [c.orchestraName]), a('i', { class: 'arrow' }, null)]
- ),
- a(
- 'div',
- {
- class: ['searchItem', r.showPopoverSubject && 'searchItem-active'],
- onClick: function () {
- r.showPopoverSubject = !0
- }
- },
- [c.courseTypeName, a('i', { class: 'arrow' }, null)]
- )
- ])
- ]),
- a(
- 'div',
- {
- style: {
- overflowY: 'auto',
- height:
- 'calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)'
- }
- },
- [
- I.value
- ? a(
- P,
- {
- modelValue: j.value,
- 'onUpdate:modelValue': function (e) {
- return (j.value = e)
- },
- onRefresh: Y,
- style:
- 'min-height: calc(100vh - var(--van-tabs-line-height) - var(--header-height) - 2.61334rem)'
- },
- {
- default: function () {
- return [
- a(
- B,
- {
- 'loading-text': ' ',
- finished: T.value,
- 'finished-text': ' ',
- onLoad: M,
- style: { paddingTop: '12px' }
- },
- ((t = e =
- S.value.map(function (e) {
- return a(te, { item: e }, null)
- })),
- 'function' == typeof t ||
- ('[object Object]' === Object.prototype.toString.call(t) &&
- !g(t))
- ? e
- : {
- default: function () {
- return [e]
- }
- })
- )
- ]
- var t
- }
- }
- )
- : a(p, { tips: '暂无考勤' }, null)
- ]
- ),
- a(
- f,
- {
- show: r.showPopoverTime,
- 'onUpdate:show': function (e) {
- return (r.showPopoverTime = e)
- },
- position: 'bottom',
- round: !0,
- teleport: 'body',
- class: 'popupBottomSearch'
- },
- {
- default: function () {
- return [
- a(
- D,
- {
- onCancel: function () {
- r.showPopoverTime = !1
- },
- onConfirm: N,
- modelValue: r.currentDate,
- 'onUpdate:modelValue': function (e) {
- return (r.currentDate = e)
- },
- formatter: h,
- minDate: w.value,
- maxDate: W.value,
- columnsType: b.value
- },
- null
- )
- ]
- }
- }
- ),
- a(
- f,
- {
- show: r.showPopoverOrchestra,
- 'onUpdate:show': function (e) {
- return (r.showPopoverOrchestra = e)
- },
- position: 'bottom',
- round: !0,
- teleport: 'body',
- class: 'popupBottomSearch'
- },
- {
- default: function () {
- return [
- a(
- k,
- {
- columns: r.actions,
- onCancel: function () {
- return (r.showPopoverOrchestra = !1)
- },
- onConfirm: function (e) {
- return (function (e) {
- var t = e.selectedOptions[0] || {}
- ;(c.orchestraId = t.value),
- (c.orchestraName = t.name),
- (r.showPopoverOrchestra = !1),
- (j.value = !0),
- M()
- })(e)
- },
- columnsFieldNames: { text: 'name', value: 'value' }
- },
- null
- )
- ]
- }
- }
- ),
- a(
- f,
- {
- show: r.showPopoverSubject,
- 'onUpdate:show': function (e) {
- return (r.showPopoverSubject = e)
- },
- position: 'bottom',
- round: !0,
- teleport: 'body',
- class: 'popupBottomSearch'
- },
- {
- default: function () {
- return [
- a(
- k,
- {
- columns: r.courseList,
- onCancel: function () {
- return (r.showPopoverSubject = !1)
- },
- onConfirm: function (e) {
- return (function (e) {
- var t = e.selectedOptions[0] || {}
- ;(c.courseType = t.value),
- (c.courseTypeName = t.name),
- (r.showPopoverSubject = !1),
- (j.value = !0),
- M()
- })(e)
- },
- columnsFieldNames: { text: 'name', value: 'value' }
- },
- null
- )
- ]
- }
- }
- )
- ])
- }
- }
- }),
- ne = u('student')
- e(
- 'default',
- r({
- name: 'school-attendance',
- setup: function () {
- var e = n(),
- t = l({ heightV: 0 }),
- r = u(),
- o = function (e) {
- ;(t.heightV = e),
- console.log(t.heightV, '获取高度'),
- document.documentElement.style.setProperty('--header-height', e + 'px')
- }
- return function () {
- return a(_, null, [
- a(
- W,
- { position: 'top', background: '#F8F8F8', onGetHeight: o, ref: r },
- {
- default: function () {
- return [
- a(
- w,
- { border: !1 },
- {
- right: function () {
- return a(
- 'span',
- {
- class: S.iconSetting,
- onClick: function () {
- e.push('/attendance-rules')
- }
- },
- null
- )
- }
- }
- )
- ]
- }
- }
- ),
- a(
- M,
- {
- active: ne.value,
- 'onUpdate:active': function (e) {
- return (ne.value = e)
- },
- sticky: !0,
- swipeable: !0,
- offsetTop: t.heightV,
- lineHeight: 4,
- lineWidth: 16,
- class: S.stickyAttendance
- },
- {
- default: function () {
- return [
- a(
- N,
- { name: 'student', title: '学员考勤' },
- {
- default: function () {
- return [a(b, { toHeight: t.heightV }, null)]
- }
- }
- ),
- a(
- N,
- { name: 'teacher', title: '伴学老师考勤' },
- {
- default: function () {
- return [a(re, { toHeight: t.heightV }, null)]
- }
- }
- )
- ]
- }
- }
- )
- ])
- }
- }
- })
- )
- }
- }
- }
- )
- })()
|