| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581 |
- <<<<<<< HEAD:dist/assets/create-message-legacy.7a836c71.js
- <<<<<<< HEAD:dist/assets/create-message-legacy.33d2160a.js
- <<<<<<< HEAD:dist/assets/create-message-legacy.dcc48463.js
- <<<<<<< HEAD:dist/assets/create-message-legacy.b953115a.js
- !(function () {
- function e(e, t) {
- var n = Object.keys(e)
- if (Object.getOwnPropertySymbols) {
- var a = Object.getOwnPropertySymbols(e)
- t &&
- (a = a.filter(function (t) {
- return Object.getOwnPropertyDescriptor(e, t).enumerable
- })),
- n.push.apply(n, a)
- }
- return n
- }
- function t(t) {
- for (var a = 1; a < arguments.length; a++) {
- var r = null != arguments[a] ? arguments[a] : {}
- a % 2
- ? e(Object(r), !0).forEach(function (e) {
- n(t, e, r[e])
- })
- : Object.getOwnPropertyDescriptors
- ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r))
- : e(Object(r)).forEach(function (e) {
- Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, 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 a(e, t, n, a, r, i, c) {
- try {
- var s = e[i](c),
- o = s.value
- } catch (l) {
- return void n(l)
- }
- s.done ? t(o) : Promise.resolve(o).then(a, r)
- }
- function r(e) {
- return function () {
- var t = this,
- n = arguments
- return new Promise(function (r, i) {
- var c = e.apply(t, n)
- function s(e) {
- a(c, r, i, s, o, 'next', e)
- }
- function o(e) {
- a(c, r, i, s, o, 'throw', e)
- }
- s(void 0)
- })
- }
- }
- var i = document.createElement('style')
- ;(i.innerHTML =
- '._searchBand_1dppi_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1dppi_1 ._bandName_1dppi_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._gridContainer_1dppi_12{margin:0 .34667rem .32rem}._gridContainer_1dppi_12 ._title_1dppi_15{font-size:.69333rem;font-weight:700;color:#333;font-family:DINA}._gridContainer_1dppi_12 ._title_1dppi_15 i{font-style:normal;font-size:.32rem;color:#333}._gridContainer_1dppi_12 ._red_1dppi_26{color:#f67146}._gridContainer_1dppi_12 ._name_1dppi_29{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_1dppi_34 ._img_1dppi_34{width:1.06667rem;height:1.06667rem;margin-right:.21333rem;border-radius:50%;overflow:hidden}._gridClass_1dppi_34 ._teacherName_1dppi_41{display:flex;align-items:center}._gridClass_1dppi_34 ._teacherName_1dppi_41 ._name_1dppi_29{padding:0;max-width:3.2rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._teacherName_1dppi_41 .van-tag{margin-left:.21333rem;height:.45333rem;border-radius:.10667rem}._gridClass_1dppi_34 ._classCheckbox_1dppi_58{display:flex;justify-content:flex-end}._gridClass_1dppi_34 ._orchestraName_1dppi_62{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem;max-width:5.86667rem}._gridClass_1dppi_34 ._title_1dppi_15{font-size:.64rem}._gridClass_1dppi_34 ._className_1dppi_72{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._className_1dppi_72 ._line_1dppi_79{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_1dppi_34 .van-grid-item:after{content:" ";position:absolute;top:50%;right:0;margin-top:-.26667rem;width:.02667rem;height:.53333rem;background:#eaeaea;border-radius:.02667rem}._gridClass_1dppi_34 .van-grid-item:last-child:after{display:none}._classCellGroup_1dppi_101{margin-bottom:.32rem;border-radius:.26667rem;overflow:hidden}._cellTeacher_bjfo6_1 ._img_bjfo6_1{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_bjfo6_1 ._name_bjfo6_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_bjfo6_1 ._class_bjfo6_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_bjfo6_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_bjfo6_1 ._checkboxValue_bjfo6_25{display:flex;justify-content:flex-end}._subjectContainer_bjfo6_29{display:flex}._subjectContainer_bjfo6_29>span{flex-shrink:0}._subjectContainer_bjfo6_29 ._tagSubject_bjfo6_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}._cellTeacher_fnv0v_1 ._img_fnv0v_1{width:1.06667rem;height:1.06667rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_fnv0v_1 ._name_fnv0v_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_fnv0v_1 ._class_fnv0v_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_fnv0v_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_fnv0v_1 ._checkboxValue_fnv0v_25{display:flex;justify-content:flex-end}._subjectContainer_fnv0v_29{display:flex}._subjectContainer_fnv0v_29>span{flex-shrink:0}._subjectContainer_fnv0v_29 ._tagSubject_fnv0v_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}\n'),
- document.head.appendChild(i),
- System.register(
- [
- './index-legacy.8f928ac8.js',
- './index-legacy.8895675d.js',
- './index-legacy.37a26c18.js',
- './index.module-legacy.475a9872.js',
- './index-legacy.86e58eb0.js',
- './icon_teacher-legacy.07765f44.js',
- './index-legacy.a9a76943.js',
- './index-legacy.88f968f8.js',
- './index-legacy.46c1a425.js',
- './index-legacy.a5bef69a.js',
- './index-legacy.1f5a1fbe.js',
- './index-legacy.d552d569.js',
- './index-legacy.5216aadb.js',
- './index-legacy.11b1b942.js',
- './index-legacy.e8fdcbbe.js',
- './index-legacy.31f31051.js',
- './index-legacy.2ac65fee.js',
- './index-legacy.bc5c4a06.js',
- './icon_student-legacy.6118fd72.js',
- './index-legacy.3cdbef0f.js',
- './index-legacy.b1d208cd.js',
- './index-legacy.cb3dc728.js',
- './index-legacy.e72ce0a8.js',
- './index-legacy.b08187e4.js',
- './index-legacy.0793a1ee.js',
- './index-legacy.c75fe8a2.js',
- './use-tab-status-legacy.203dc693.js',
- './Checker-legacy.bc354448.js',
- './index-legacy.72f6344c.js',
- './index-legacy.30c98e07.js',
- './index-legacy.f1efbcd8.js',
- './index-legacy.79f3b413.js',
- './ImagePreview-legacy.149d9543.js',
- './function-call-legacy.dbba1b13.js',
- './utils-legacy.366cb285.js'
- ],
- function (e) {
- 'use strict'
- var n,
- a,
- i,
- c,
- s,
- o,
- l,
- u,
- d,
- f,
- p,
- h,
- m,
- g,
- v,
- _,
- b,
- y,
- S,
- x,
- k,
- j,
- C,
- w,
- T,
- I,
- L,
- N,
- E,
- O,
- D,
- R,
- V,
- H,
- A,
- M,
- U,
- P,
- B,
- z,
- F,
- G,
- Y,
- q,
- W,
- Z,
- $,
- J
- return {
- setters: [
- function (e) {
- n = e.O
- },
- function (e) {
- a = e.d
- },
- function (e) {
- ;(i = e.D),
- (c = e.d),
- (s = e.r),
- (o = e.Z),
- (l = e.$),
- (u = e.c),
- (d = e.q),
- (f = e.ai),
- (p = e.P),
- (h = e.ak),
- (m = e.m),
- (g = e.f),
- (v = e.am),
- (_ = e.B),
- (b = e.ag),
- (y = e.aV),
- (S = e.ah),
- (x = e.y),
- (k = e.a5),
- (j = e.aj),
- (C = e.o)
- },
- function (e) {
- w = e.s
- },
- function (e) {
- T = e.O
- },
- function (e) {
- I = e.i
- },
- function (e) {
- L = e.S
- },
- function (e) {
- N = e.L
- },
- function (e) {
- E = e.C
- },
- function (e) {
- O = e.C
- },
- function (e) {
- D = e.C
- },
- function (e) {
- R = e.I
- },
- function (e) {
- V = e.T
- },
- function (e) {
- H = e.C
- },
- function (e) {
- ;(A = e.G), (M = e.a)
- },
- function (e) {
- ;(U = e.s), (P = e.P)
- },
- function (e) {
- B = e.O
- },
- function (e) {
- ;(z = e.T), (F = e.a)
- },
- function (e) {
- G = e.i
- },
- function (e) {
- Y = e.O
- },
- function (e) {
- q = e.O
- },
- function (e) {
- W = e.O
- },
- function (e) {
- Z = e.T
- },
- function (e) {
- $ = e.F
- },
- function (e) {
- J = e.D
- },
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {},
- function () {}
- ],
- execute: function () {
- var K = i(U),
- Q = {
- searchBand: '_searchBand_1dppi_1',
- bandName: '_bandName_1dppi_7',
- gridContainer: '_gridContainer_1dppi_12',
- title: '_title_1dppi_15',
- red: '_red_1dppi_26',
- name: '_name_1dppi_29',
- gridClass: '_gridClass_1dppi_34',
- img: '_img_1dppi_34',
- teacherName: '_teacherName_1dppi_41',
- classCheckbox: '_classCheckbox_1dppi_58',
- orchestraName: '_orchestraName_1dppi_62',
- className: '_className_1dppi_72',
- line: '_line_1dppi_79',
- classCellGroup: '_classCellGroup_1dppi_101'
- }
- var X = c({
- name: 'practice-class',
- props: {
- height: { type: [String, Number], default: 'auto' },
- bottomHeight: { type: [String, Number], default: 0 },
- selectItem: {
- type: Array,
- default: function () {
- return []
- }
- }
- },
- emits: ['close', 'confirm', 'update:selectItem'],
- setup: function (e, n) {
- var a = n.emit,
- i = s({
- showPopover: !1,
- orchestraId: null,
- orchestraName: null,
- orchestraList: [],
- isClick: !1,
- list: [],
- listState: { dataShow: !0, loading: !1, finished: !1 },
- params: { type: null, page: 1, rows: 20 },
- check: [],
- checkboxRefs: []
- }),
- c = (function () {
- var e = r(
- regeneratorRuntime.mark(function e() {
- var t, n, a, r
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (
- (e.prev = 0),
- (e.next = 3),
- m.post('/api-school/orchestra/page', {
- data: {
- page: 1,
- rows: 100,
- schoolId: g.user.data.school.id,
- status: 'DONE'
- }
- })
- )
- case 3:
- ;(t = e.sent),
- (n = t.data),
- (a = n.rows || []),
- (r = []),
- a.forEach(function (e) {
- r.push({ text: e.name, value: e.id })
- }),
- (i.orchestraList = [].concat(r)),
- r.length > 0 &&
- ((i.orchestraId = r[0].value),
- (i.orchestraName = r[0].text)),
- (e.next = 14)
- break
- case 12:
- ;(e.prev = 12), (e.t0 = e.catch(0))
- case 14:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 12]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- v = (function () {
- var e = r(
- regeneratorRuntime.mark(function e() {
- var n, a, r
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- if (((e.prev = 0), !i.isClick)) {
- e.next = 3
- break
- }
- return e.abrupt('return')
- case 3:
- return (
- (i.isClick = !0),
- (e.next = 6),
- m.post('/api-school/classGroup/page', {
- data: t(
- t({}, i.params),
- {},
- {
- schoolId: g.user.data.school.id,
- orchestraId: i.orchestraId
- }
- )
- })
- )
- case 6:
- if (
- ((n = e.sent),
- (a = n.data),
- (i.isClick = !1),
- (i.listState.loading = !1),
- (r = a || {}),
- !(i.list.length > 0 && 1 === r.current))
- ) {
- e.next = 13
- break
- }
- return e.abrupt('return')
- case 13:
- ;(i.list = i.list.concat(r.rows || [])),
- (i.listState.finished = r.current >= r.pages),
- (i.params.page = r.current + 1),
- (i.listState.dataShow = i.list.length > 0),
- (e.next = 24)
- break
- case 19:
- ;(e.prev = 19),
- (e.t0 = e.catch(0)),
- (i.listState.dataShow = !1),
- (i.listState.finished = !0),
- (i.isClick = !1)
- case 24:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 19]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- _ = function (e) {
- i.checkboxRefs[e].toggle()
- var t = []
- i.list.forEach(function (e) {
- i.check.includes(e.id) && t.push({ id: e.id, value: e.name, avatar: '' })
- }),
- a('update:selectItem', t)
- }
- o(
- function () {
- return e.selectItem
- },
- function () {
- b()
- },
- { deep: !0 }
- )
- var b = function () {
- var t = e.selectItem || [],
- n = []
- t.forEach(function (e) {
- n.push(e.id)
- }),
- (i.check = n)
- }
- return (
- l(
- r(
- regeneratorRuntime.mark(function e() {
- return regeneratorRuntime.wrap(function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- return (e.next = 2), c()
- case 2:
- return (e.next = 4), v()
- case 4:
- b()
- case 5:
- case 'end':
- return e.stop()
- }
- }, e)
- })
- )
- ),
- function () {
- var t
- return u(
- 'div',
- {
- class: [Q.practiceClass, !i.listState.dataShow && 'emptyRootContainer'],
- style: {
- 'min-height': 'calc(100vh - '
- .concat(e.height, 'px - ')
- .concat(e.bottomHeight, 'px)')
- }
- },
- [
- i.orchestraList.length > 0 &&
- u(
- L,
- { position: 'top', offsetTop: e.height, style: { width: '100%' } },
- {
- default: function () {
- return [
- u('div', { class: 'searchGroup-single' }, [
- u(
- 'div',
- {
- class: [
- 'searchItem',
- i.showPopover ? 'searchItem-active' : ''
- ],
- onClick: function () {
- return (i.showPopover = !0)
- }
- },
- [u('span', null, [i.orchestraName])]
- )
- ])
- ]
- }
- }
- ),
- i.listState.dataShow
- ? u(
- N,
- {
- finished: i.listState.finished,
- finishedText: ' ',
- class: [Q.liveList],
- onLoad: v,
- immediateCheck: !1
- },
- {
- default: function () {
- return [
- u(
- E,
- {
- class: [Q.gridContainer, Q.gridClass],
- modelValue: i.check,
- 'onUpdate:modelValue': function (e) {
- return (i.check = e)
- }
- },
- ((e = t =
- i.list.map(function (e) {
- return u(
- O,
- {
- class: Q.classCellGroup,
- onClick: function () {
- return _(e.id)
- },
- border: !1
- },
- {
- default: function () {
- return [
- u(
- D,
- {
- center: !0,
- titleStyle: { flex: '0 auto' },
- valueClass: Q.classCheckbox
- },
- {
- icon: function () {
- return u(
- R,
- { src: I, class: Q.img },
- null
- )
- },
- title: function () {
- return u('div', { class: Q.content }, [
- u('div', { class: Q.teacherName }, [
- u(
- 'span',
- { class: ['van-ellipsis', Q.name] },
- [e.teacherName]
- ),
- u(
- V,
- { type: 'primary' },
- {
- default: function () {
- return [e.name]
- }
- }
- )
- ]),
- u(
- 'div',
- {
- class: [
- Q.orchestraName,
- 'van-ellipsis'
- ]
- },
- [e.orchestraName]
- )
- ])
- },
- value: function () {
- return u(
- H,
- {
- name: e.id,
- ref: function (t) {
- return (i.checkboxRefs[e.id] = t)
- },
- onClick: function (t) {
- t.preventDefault(),
- t.stopPropagation(),
- _(e.id)
- }
- },
- null
- )
- }
- }
- ),
- u(
- A,
- { border: !1, columnNum: 3 },
- {
- default: function () {
- return [
- u(M, null, {
- default: function () {
- return [
- u('p', { class: Q.title }, [
- e.preStudentNum
- ]),
- u('p', { class: Q.name }, [
- d('学员人数')
- ])
- ]
- }
- }),
- u(M, null, {
- default: function () {
- return [
- u('p', { class: [Q.title] }, [
- e.courseScheduleNum -
- e.completeCourseScheduleNum
- ]),
- u('p', { class: Q.name }, [
- d('剩余课时')
- ])
- ]
- }
- }),
- u(M, null, {
- default: function () {
- return [
- u('p', { class: Q.title }, [
- e.courseScheduleNum
- ]),
- u('p', { class: Q.name }, [
- d('总课时')
- ])
- ]
- }
- })
- ]
- }
- }
- )
- ]
- }
- }
- )
- })),
- 'function' == typeof e ||
- ('[object Object]' === Object.prototype.toString.call(e) &&
- !h(e))
- ? t
- : {
- default: function () {
- return [t]
- }
- })
- )
- ]
- var e
- }
- }
- )
- : u(f, { btnStatus: !1, tips: '暂无班级' }, null),
- u(
- p,
- {
- show: i.showPopover,
- 'onUpdate:show': function (e) {
- return (i.showPopover = e)
- },
- position: 'bottom',
- round: !0,
- class: 'popupBottomSearch',
- teleport: '#select-send-message'
- },
- {
- default: function () {
- return [
- u(
- P,
- {
- columns: i.orchestraList,
- onCancel: function () {
- return (i.showPopover = !1)
- },
- onConfirm: function (e) {
- ;(i.orchestraId = e.selectedOptions[0].value),
- (i.orchestraName = e.selectedOptions[0].text),
- (i.showPopover = !1),
- (i.params.page = 1),
- (i.list = []),
- (i.listState.dataShow = !0),
- (i.listState.loading = !1),
- (i.listState.finished = !1),
- v()
- }
- },
- null
- )
- ]
- }
- }
- )
- ]
- )
- }
- )
- }
- }),
- ee = {
- cellTeacher: '_cellTeacher_bjfo6_1',
- img: '_img_bjfo6_1',
- name: '_name_bjfo6_9',
- class: '_class_bjfo6_16',
- checkboxValue: '_checkboxValue_bjfo6_25',
- subjectContainer: '_subjectContainer_bjfo6_29',
- tagSubject: '_tagSubject_bjfo6_35'
- }
- var te = c({
- name: 'manage-list',
- props: {
- height: { type: [String, Number], default: 'auto' },
- bottomHeight: { type: [String, Number], default: 0 },
- removeTeacherId: { type: String, default: '' },
- subjectIdList: {
- type: Array,
- default: function () {
- return []
- }
- },
- selectItem: {
- type: Array,
- default: function () {
- return []
- }
- }
- },
- emits: ['close', 'select', 'update:selectItem'],
- setup: function (e, n) {
- n.slots, n.attrs
- var a = n.emit,
- i = s({
- teacherStatus: !1,
- isLoad: !1,
- list: [],
- listState: { dataShow: !0, loading: !1, finished: !1 },
- params: { keyword: null, subjectIdList: e.subjectIdList, page: 1, rows: 20 },
- check: e.selectItem || [],
- checkboxRefs: []
- }),
- c = (function () {
- var e = r(
- regeneratorRuntime.mark(function e() {
- var n, a, r
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- if (((e.prev = 0), !i.isLoad)) {
- e.next = 3
- break
- }
- return e.abrupt('return')
- case 3:
- return (
- (i.isLoad = !0),
- (e.next = 6),
- m.post('/api-school/schoolStaff/page', {
- data: t(
- t({}, i.params),
- {},
- { schoolId: g.user.data.school.id, status: 'ACTIVATION' }
- )
- })
- )
- case 6:
- if (
- ((n = e.sent),
- (i.listState.loading = !1),
- (a = n.data || {}),
- !(i.list.length > 0 && 1 === a.current))
- ) {
- e.next = 11
- break
- }
- return e.abrupt('return')
- case 11:
- ;(r = a.rows || []).forEach(function (e) {
- e.subjectNames = e.subjectName ? e.subjectName.split(',') : []
- }),
- (i.list = i.list.concat(r)),
- (i.listState.finished = a.current >= a.pages),
- (i.params.page = a.current + 1),
- (i.listState.dataShow = i.list.length > 0),
- (i.isLoad = !1),
- (e.next = 25)
- break
- case 20:
- ;(e.prev = 20),
- (e.t0 = e.catch(0)),
- (i.listState.dataShow = !1),
- (i.listState.finished = !0),
- (i.isLoad = !1)
- case 25:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 20]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- d = function (e) {
- i.checkboxRefs[e].toggle()
- var t = []
- i.list.forEach(function (e) {
- i.check.includes(e.id) &&
- t.push({ id: e.id, value: e.nickname, avatar: e.avatar })
- }),
- a('update:selectItem', t)
- }
- o(
- function () {
- return e.selectItem
- },
- function () {
- p()
- },
- { deep: !0 }
- )
- var p = function () {
- var t = e.selectItem || [],
- n = []
- t.forEach(function (e) {
- n.push(e.id)
- }),
- (i.check = n)
- }
- return (
- l(function () {
- c(), p()
- }),
- function () {
- var t
- return u(
- 'div',
- {
- class: [!i.listState.dataShow && 'emptyRootContainer'],
- style: {
- 'min-height': 'calc(100vh - '
- .concat(e.height, 'px - ')
- .concat(e.bottomHeight, 'px)')
- }
- },
- [
- u(
- L,
- { position: 'top', offsetTop: e.height, style: { width: '100%' } },
- {
- default: function () {
- return [
- u(
- B,
- {
- placeholder: '管理老师姓名/手机号',
- onSearch: function (e) {
- ;(i.params.keyword = e),
- (i.params.page = 1),
- (i.list = []),
- (i.listState.dataShow = !0),
- (i.listState.loading = !1),
- (i.listState.finished = !1),
- c()
- }
- },
- null
- )
- ]
- }
- }
- ),
- i.listState.dataShow
- ? u(
- N,
- {
- finished: i.listState.finished,
- finishedText: ' ',
- onLoad: c,
- style: { paddingTop: '12px' },
- immediateCheck: !1
- },
- {
- default: function () {
- return [
- u(
- E,
- {
- class: [ee.gridContainer, ee.gridClass],
- modelValue: i.check,
- 'onUpdate:modelValue': function (e) {
- return (i.check = e)
- }
- },
- ((e = t =
- i.list.map(function (e) {
- return u(
- O,
- {
- inset: !0,
- style: { marginBottom: '12px' },
- onClick: function () {
- return d(e.id)
- }
- },
- {
- default: function () {
- return [
- u(
- D,
- {
- center: !0,
- class: ee.cellTeacher,
- valueClass: ee.checkboxValue
- },
- {
- icon: function () {
- return u(
- R,
- {
- class: ee.img,
- src: e.avatar || I,
- fit: 'cover'
- },
- null
- )
- },
- title: function () {
- return u('div', { class: ee.content }, [
- u(
- 'p',
- { class: [ee.name, 'van-ellipsis'] },
- [e.nickname]
- )
- ])
- },
- value: function () {
- return u(
- H,
- {
- name: e.id,
- ref: function (t) {
- return (i.checkboxRefs[e.id] = t)
- },
- onClick: function (t) {
- t.preventDefault(),
- t.stopPropagation(),
- d(e.id)
- }
- },
- null
- )
- }
- }
- )
- ]
- }
- }
- )
- })),
- 'function' == typeof e ||
- ('[object Object]' === Object.prototype.toString.call(e) &&
- !h(e))
- ? t
- : {
- default: function () {
- return [t]
- }
- })
- )
- ]
- var e
- }
- }
- )
- : u(f, { btnStatus: !1, tips: '暂无管理老师' }, null)
- ]
- )
- }
- )
- }
- }),
- ne = {
- cellTeacher: '_cellTeacher_bjfo6_1',
- img: '_img_bjfo6_1',
- name: '_name_bjfo6_9',
- class: '_class_bjfo6_16',
- checkboxValue: '_checkboxValue_bjfo6_25',
- subjectContainer: '_subjectContainer_bjfo6_29',
- tagSubject: '_tagSubject_bjfo6_35'
- }
- function ae(e) {
- return (
- 'function' == typeof e ||
- ('[object Object]' === Object.prototype.toString.call(e) && !h(e))
- )
- }
- var re = c({
- name: 'teacher-list',
- props: {
- height: { type: [String, Number], default: 'auto' },
- bottomHeight: { type: [String, Number], default: 0 },
- selectItem: {
- type: Array,
- default: function () {
- return []
- }
- }
- },
- emits: ['close', 'select', 'update:selectItem'],
- setup: function (e, n) {
- var a = n.emit,
- i = s({
- teacherStatus: !1,
- isLoad: !1,
- list: [],
- listState: { dataShow: !0, loading: !1, finished: !1 },
- params: { keyword: null, page: 1, rows: 20 },
- check: e.selectItem || [],
- checkboxRefs: []
- }),
- c = (function () {
- var e = r(
- regeneratorRuntime.mark(function e() {
- var n, a, r
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- if (((e.prev = 0), !i.isLoad)) {
- e.next = 3
- break
- }
- return e.abrupt('return')
- case 3:
- return (
- (i.isLoad = !0),
- (e.next = 6),
- m.post('/api-school/student/page', {
- data: t(
- t({}, i.params),
- {},
- { schoolId: g.user.data.school.id }
- )
- })
- )
- case 6:
- if (
- ((n = e.sent),
- (i.listState.loading = !1),
- (a = n.data || {}),
- !(i.list.length > 0 && 1 === a.current))
- ) {
- e.next = 11
- break
- }
- return e.abrupt('return')
- case 11:
- ;(r = a.rows || []).forEach(function (e) {
- e.subjectNames = e.subjectNames
- ? e.subjectNames.split(',')
- : []
- }),
- (i.list = i.list.concat(r)),
- (i.listState.finished = a.current >= a.pages),
- (i.params.page = a.current + 1),
- (i.listState.dataShow = i.list.length > 0),
- (i.isLoad = !1),
- (e.next = 25)
- break
- case 20:
- ;(e.prev = 20),
- (e.t0 = e.catch(0)),
- (i.listState.dataShow = !1),
- (i.listState.finished = !0),
- (i.isLoad = !1)
- case 25:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 20]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- d = function (e) {
- i.checkboxRefs[e].toggle()
- var t = []
- i.list.forEach(function (e) {
- i.check.includes(e.id) &&
- t.push({ id: e.id, value: e.nickname, avatar: e.avatar })
- }),
- a('update:selectItem', t)
- }
- o(
- function () {
- return e.selectItem
- },
- function () {
- p()
- },
- { deep: !0 }
- )
- var p = function () {
- var t = e.selectItem || [],
- n = []
- t.forEach(function (e) {
- n.push(e.id)
- }),
- (i.check = n)
- }
- return (
- l(function () {
- c(), p()
- }),
- function () {
- var t
- return u(
- 'div',
- {
- class: [!i.listState.dataShow && 'emptyRootContainer'],
- style: {
- 'min-height': 'calc(100vh - '
- .concat(e.height, 'px - ')
- .concat(e.bottomHeight, 'px)')
- }
- },
- [
- u(
- L,
- { position: 'top', offsetTop: e.height, style: { width: '100%' } },
- {
- default: function () {
- return [
- u(
- B,
- {
- placeholder: '学员名称/手机号',
- onSearch: function (e) {
- ;(i.params.keyword = e),
- (i.params.page = 1),
- (i.list = []),
- (i.listState.dataShow = !0),
- (i.listState.loading = !1),
- (i.listState.finished = !1),
- c()
- }
- },
- null
- )
- ]
- }
- }
- ),
- i.listState.dataShow
- ? u(
- N,
- {
- finished: i.listState.finished,
- finishedText: ' ',
- onLoad: c,
- style: { paddingTop: '12px' },
- immediateCheck: !1
- },
- {
- default: function () {
- return [
- u(
- E,
- {
- class: [ne.gridContainer, ne.gridClass],
- modelValue: i.check,
- 'onUpdate:modelValue': function (e) {
- return (i.check = e)
- }
- },
- ae(
- (t = i.list.map(function (e) {
- return u(
- O,
- {
- inset: !0,
- style: { marginBottom: '12px' },
- onClick: function () {
- return d(e.id)
- }
- },
- {
- default: function () {
- return [
- u(
- D,
- {
- center: !0,
- class: ne.cellTeacher,
- valueClass: ne.checkboxValue
- },
- {
- icon: function () {
- return u(
- R,
- {
- class: ne.img,
- src: e.avatar || I,
- fit: 'cover'
- },
- null
- )
- },
- title: function () {
- return u('div', { class: ne.content }, [
- u(
- 'p',
- { class: [ne.name, 'van-ellipsis'] },
- [e.nickname]
- ),
- u('p', { class: ne.class }, [
- e.subjectNames &&
- e.subjectNames.map(function (e) {
- return u(
- V,
- {
- type: 'primary',
- class: ne.tagSubject,
- color: '#FFE7DA',
- textColor: '#F67146'
- },
- ae(e)
- ? e
- : {
- default: function () {
- return [e]
- }
- }
- )
- })
- ])
- ])
- },
- value: function () {
- return u(
- H,
- {
- name: e.id,
- ref: function (t) {
- return (i.checkboxRefs[e.id] = t)
- },
- onClick: function (t) {
- t.preventDefault(),
- t.stopPropagation(),
- d(e.id)
- }
- },
- null
- )
- }
- }
- )
- ]
- }
- }
- )
- }))
- )
- ? t
- : {
- default: function () {
- return [t]
- }
- }
- )
- ]
- }
- }
- )
- : u(f, { btnStatus: !1, tips: '暂无学员' }, null)
- ]
- )
- }
- )
- }
- }),
- ie = {
- cellTeacher: '_cellTeacher_fnv0v_1',
- img: '_img_fnv0v_1',
- name: '_name_fnv0v_9',
- class: '_class_fnv0v_16',
- checkboxValue: '_checkboxValue_fnv0v_25',
- subjectContainer: '_subjectContainer_fnv0v_29',
- tagSubject: '_tagSubject_fnv0v_35'
- }
- function ce(e) {
- return (
- 'function' == typeof e ||
- ('[object Object]' === Object.prototype.toString.call(e) && !h(e))
- )
- }
- var se = c({
- name: 'teacher-list',
- props: {
- height: { type: [String, Number], default: 'auto' },
- bottomHeight: { type: [String, Number], default: 0 },
- removeTeacherId: { type: String, default: '' },
- subjectIdList: {
- type: Array,
- default: function () {
- return []
- }
- },
- selectItem: {
- type: Array,
- default: function () {
- return []
- }
- }
- },
- emits: ['close', 'select', 'update:selectItem'],
- setup: function (e, n) {
- n.slots, n.attrs
- var a = n.emit,
- i = s({
- teacherStatus: !1,
- isLoad: !1,
- list: [],
- listState: { dataShow: !0, loading: !1, finished: !1 },
- params: { keyword: null, subjectIdList: e.subjectIdList, page: 1, rows: 20 },
- check: e.selectItem || [],
- checkboxRefs: []
- }),
- c = (function () {
- var n = r(
- regeneratorRuntime.mark(function n() {
- var a, r, c
- return regeneratorRuntime.wrap(
- function (n) {
- for (;;)
- switch ((n.prev = n.next)) {
- case 0:
- if (((n.prev = 0), !i.isLoad)) {
- n.next = 3
- break
- }
- return n.abrupt('return')
- case 3:
- return (
- (i.isLoad = !0),
- (n.next = 6),
- m.post('/api-school/teacher/page', {
- data: t(
- t({}, i.params),
- {},
- {
- schoolId: g.user.data.school.id,
- removeTeacherId: e.removeTeacherId,
- delFlag: !1
- }
- )
- })
- )
- case 6:
- if (
- ((a = n.sent),
- (i.listState.loading = !1),
- (r = a.data || {}),
- !(i.list.length > 0 && 1 === r.current))
- ) {
- n.next = 11
- break
- }
- return n.abrupt('return')
- case 11:
- ;(c = r.rows || []).forEach(function (e) {
- e.subjectNames = e.subjectName ? e.subjectName.split(',') : []
- }),
- (i.list = i.list.concat(c)),
- (i.listState.finished = r.current >= r.pages),
- (i.params.page = r.current + 1),
- (i.listState.dataShow = i.list.length > 0),
- (i.isLoad = !1),
- (n.next = 25)
- break
- case 20:
- ;(n.prev = 20),
- (n.t0 = n.catch(0)),
- (i.listState.dataShow = !1),
- (i.listState.finished = !0),
- (i.isLoad = !1)
- case 25:
- case 'end':
- return n.stop()
- }
- },
- n,
- null,
- [[0, 20]]
- )
- })
- )
- return function () {
- return n.apply(this, arguments)
- }
- })(),
- p = function (e) {
- i.checkboxRefs[e].toggle()
- var t = []
- i.list.forEach(function (e) {
- i.check.includes(e.id) &&
- t.push({ id: e.id, value: e.nickname, avatar: e.avatar })
- }),
- a('update:selectItem', t)
- }
- o(
- function () {
- return e.selectItem
- },
- function () {
- h()
- },
- { deep: !0 }
- )
- var h = function () {
- var t = e.selectItem || [],
- n = []
- t.forEach(function (e) {
- n.push(e.id)
- }),
- (i.check = n)
- }
- return (
- l(function () {
- c(), h()
- }),
- function () {
- var t
- return u(
- 'div',
- {
- class: [!i.listState.dataShow && 'emptyRootContainer'],
- style: {
- 'min-height': 'calc(100vh - '
- .concat(e.height, 'px - ')
- .concat(e.bottomHeight, 'px)')
- }
- },
- [
- u(
- L,
- { position: 'top', offsetTop: e.height, style: { width: '100%' } },
- {
- default: function () {
- return [
- u(
- B,
- {
- placeholder: '伴学指导姓名',
- onSearch: function (e) {
- ;(i.params.keyword = e),
- (i.params.page = 1),
- (i.list = []),
- (i.listState.dataShow = !0),
- (i.listState.loading = !1),
- (i.listState.finished = !1),
- c()
- }
- },
- null
- )
- ]
- }
- }
- ),
- i.listState.dataShow
- ? u(
- N,
- {
- finished: i.listState.finished,
- finishedText: ' ',
- style: { paddingTop: '12px' },
- onLoad: c,
- immediateCheck: !1
- },
- {
- default: function () {
- return [
- u(
- E,
- {
- class: [ie.gridContainer, ie.gridClass],
- modelValue: i.check,
- 'onUpdate:modelValue': function (e) {
- return (i.check = e)
- }
- },
- ce(
- (t = i.list.map(function (e) {
- return u(
- O,
- {
- inset: !0,
- style: { marginBottom: '12px' },
- onClick: function () {
- return p(e.id)
- }
- },
- {
- default: function () {
- return [
- u(
- D,
- {
- center: !0,
- class: ie.cellTeacher,
- valueClass: ie.checkboxValue
- },
- {
- icon: function () {
- return u(
- R,
- {
- class: ie.img,
- src: e.avatar || I,
- fit: 'cover'
- },
- null
- )
- },
- title: function () {
- return u('div', { class: ie.content }, [
- u(
- 'p',
- { class: [ie.name, 'van-ellipsis'] },
- [e.nickname]
- )
- ])
- },
- value: function () {
- return u(
- H,
- {
- name: e.id,
- ref: function (t) {
- return (i.checkboxRefs[e.id] = t)
- },
- onClick: function (t) {
- t.preventDefault(),
- t.stopPropagation(),
- p(e.id)
- }
- },
- null
- )
- }
- }
- ),
- u(
- D,
- { center: !0 },
- {
- title: function () {
- return u(
- 'div',
- { class: ie.subjectContainer },
- [
- u('span', null, [d('声部:')]),
- u(
- 'div',
- {
- style: {
- display: 'flex',
- alignItems: 'center',
- flexWrap: 'wrap'
- }
- },
- [
- e.subjectNames &&
- e.subjectNames.map(function (
- e
- ) {
- return u(
- V,
- {
- type: 'primary',
- class: ie.tagSubject,
- color: '#FFE7DA',
- textColor: '#F67146'
- },
- ce(e)
- ? e
- : {
- default: function () {
- return [e]
- }
- }
- )
- })
- ]
- )
- ]
- )
- }
- }
- )
- ]
- }
- }
- )
- }))
- )
- ? t
- : {
- default: function () {
- return [t]
- }
- }
- )
- ]
- }
- }
- )
- : u(f, { btnStatus: !1, tips: '暂无伴学指导' }, null)
- ]
- )
- }
- )
- }
- }),
- oe = c({
- name: 'select-send',
- props: {
- selectList: {
- type: Object,
- default: function () {
- return {}
- }
- },
- selectStatus: { type: Boolean, default: !1 }
- },
- emits: ['close', 'confirm', 'update:selectList'],
- setup: function (e, t) {
- var n = t.emit,
- a = s({
- height: 'auto',
- bottomHeight: 0,
- tabValue: 'class',
- selectClass: [],
- selectStudent: [],
- selectTeacher: [],
- selectManage: []
- }),
- i = (function () {
- var e = r(
- regeneratorRuntime.mark(function e() {
- var t
- return regeneratorRuntime.wrap(function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- ;(t = {
- class: a.selectClass,
- student: a.selectStudent,
- teacher: a.selectTeacher,
- school: a.selectManage
- }),
- n('close'),
- n('update:selectList', t),
- n('confirm', t)
- case 4:
- case 'end':
- return e.stop()
- }
- }, e)
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })()
- o(
- function () {
- return e.selectList
- },
- function () {
- console.log('watch', e.selectList), c()
- },
- { deep: !0 }
- )
- var c = function () {
- var t = e.selectList || {}
- ;(a.selectClass = t.class || []),
- (a.selectTeacher = t.teacher || []),
- (a.selectManage = t.school || []),
- (a.selectStudent = t.student || [])
- }
- return (
- l(function () {
- var e = v(document.querySelector('.van-tab')).height
- ;(a.height = e), c(), console.log(a, 'select')
- }),
- function () {
- return u(
- 'div',
- {
- class: w.orchestraDetail,
- style: { background: '#f6f6f6', minHeight: '100vh' },
- id: 'select-send-message'
- },
- [
- u(
- z,
- {
- sticky: !0,
- lineWidth: 20,
- lineHeight: 4,
- active: a.tabValue,
- 'onUpdate:active': function (e) {
- return (a.tabValue = e)
- }
- },
- {
- default: function () {
- return [
- u(
- F,
- { title: '班级列表', name: 'class' },
- {
- default: function () {
- return [
- u(
- X,
- {
- height: a.height,
- bottomHeight: a.bottomHeight,
- selectItem: a.selectClass,
- 'onUpdate:selectItem': function (e) {
- return (a.selectClass = e)
- }
- },
- null
- )
- ]
- }
- }
- ),
- u(
- F,
- { title: '学员列表', name: 'student' },
- {
- default: function () {
- return [
- u(
- re,
- {
- height: a.height,
- bottomHeight: a.bottomHeight,
- selectItem: a.selectStudent,
- 'onUpdate:selectItem': function (e) {
- return (a.selectStudent = e)
- }
- },
- null
- )
- ]
- }
- }
- ),
- u(
- F,
- { title: '伴学指导', name: 'teacher' },
- {
- default: function () {
- return [
- u(
- se,
- {
- height: a.height,
- bottomHeight: a.bottomHeight,
- selectItem: a.selectTeacher,
- 'onUpdate:selectItem': function (e) {
- return (a.selectTeacher = e)
- }
- },
- null
- )
- ]
- }
- }
- ),
- u(
- F,
- { title: '管理老师', name: 'manage' },
- {
- default: function () {
- return [
- u(
- te,
- {
- height: a.height,
- bottomHeight: a.bottomHeight,
- selectItem: a.selectManage,
- 'onUpdate:selectItem': function (e) {
- return (a.selectManage = e)
- }
- },
- null
- )
- ]
- }
- }
- )
- ]
- }
- }
- ),
- u(
- T,
- {
- position: 'bottom',
- onGetHeight: function (e) {
- a.bottomHeight = e
- }
- },
- {
- default: function () {
- return [
- u('div', { class: 'btnGroup' }, [
- u(
- _,
- { round: !0, block: !0, type: 'primary', onClick: i },
- {
- default: function () {
- return [d('确认')]
- }
- }
- )
- ])
- ]
- }
- }
- )
- ]
- )
- }
- )
- }
- })
- e(
- 'default',
- c({
- name: 'create-message',
- setup: function () {
- var e = b(),
- t = y(),
- i = s({
- id: t.query.id,
- type: 'ADD',
- bucket: 'i-m',
- sendStatus: !1,
- sendType: 'IMMEDIATELY',
- textMessage: null,
- sendTime: null,
- sendTimeStatus: !1,
- maxDate: S(new Date()).add(60, 'day').toDate(),
- currentDate: [],
- currentTime: [S().format('HH'), S().format('mm')],
- attachments: [],
- receives: [],
- selectStatus: !1,
- selectList: {},
- delSelectItem: {},
- delStatus: !1,
- sureLoading: !1,
- updateLoading: !1,
- closeLoading: !1,
- actions: [
- { name: '即时发送', value: 'IMMEDIATELY', selected: !0 },
- { name: '定时发送', value: 'SCHEDULED' }
- ]
- }),
- c = (function () {
- var t = r(
- regeneratorRuntime.mark(function t() {
- var n, a, r
- return regeneratorRuntime.wrap(
- function (t) {
- for (;;)
- switch ((t.prev = t.next)) {
- case 0:
- if (((t.prev = 0), i.sendType)) {
- t.next = 4
- break
- }
- return C('请选择发送方式'), t.abrupt('return')
- case 4:
- if (i.textMessage) {
- t.next = 7
- break
- }
- return C('请输入发送内容'), t.abrupt('return')
- case 7:
- if (!(i.receives.length <= 0)) {
- t.next = 10
- break
- }
- return C('请选择发送对象'), t.abrupt('return')
- case 10:
- if (
- ((n = []),
- i.attachments.forEach(function (e) {
- n.push({ imgUrl: e, imgMessage: e })
- }),
- (a = []),
- i.receives.forEach(function (e) {
- a.push({
- receiveType: e.receiveType,
- receiveId: e.receiveId
- })
- }),
- (r = {
- sendType: i.sendType,
- textMessage: i.textMessage,
- attachments: n,
- receives: a,
- sendTime: i.sendTime
- }),
- console.log(r, 'params'),
- i.id ? (i.updateLoading = !0) : (i.sureLoading = !0),
- !i.id)
- ) {
- t.next = 23
- break
- }
- return (
- (r.id = i.id),
- (t.next = 21),
- m.post('/api-school/imMessageBatchSending/update', {
- hideLoading: !1,
- data: r
- })
- )
- case 21:
- t.next = 25
- break
- case 23:
- return (
- (t.next = 25),
- m.post('/api-school/imMessageBatchSending/save', {
- hideLoading: !1,
- data: r
- })
- )
- case 25:
- e.back(),
- (i.sureLoading = !1),
- (i.updateLoading = !1),
- (t.next = 34)
- break
- case 30:
- ;(t.prev = 30),
- (t.t0 = t.catch(0)),
- (i.sureLoading = !1),
- (i.updateLoading = !1)
- case 34:
- case 'end':
- return t.stop()
- }
- },
- t,
- null,
- [[0, 30]]
- )
- })
- )
- return function () {
- return t.apply(this, arguments)
- }
- })(),
- o = (function () {
- var e = r(
- regeneratorRuntime.mark(function e() {
- var t, n, a, r, c, s
- return regeneratorRuntime.wrap(
- function (e) {
- for (;;)
- switch ((e.prev = e.next)) {
- case 0:
- if (((e.prev = 0), i.id)) {
- e.next = 3
- break
- }
- return e.abrupt('return')
- case 3:
- return (
- (e.next = 5),
- m.get('/api-school/imMessageBatchSending/detail/' + i.id)
- )
- case 5:
- ;(t = e.sent),
- (n = t.data),
- (i.sendType = n.sendType),
- (i.textMessage = n.textMessage),
- (i.sendTime = n.sendTime),
- (i.type = n.sendStatus),
- (a = n.receives || []),
- (r = { class: [], teacher: [], student: [], school: [] }),
- a.forEach(function (e) {
- var t = {
- receiveType: e.receiveType,
- receiveId: e.receiveId,
- receiveName: e.receiveName,
- avatar: e.avatar
- }
- i.receives.push(t)
- var n = {
- id: e.receiveId,
- value: e.receiveName,
- avatar: e.avatar
- }
- 'CLASS' === e.receiveType
- ? r.class.push(n)
- : 'STUDENT' === e.receiveType
- ? r.student.push(n)
- : 'TEACHER' === e.receiveType
- ? r.teacher.push(n)
- : 'SCHOOL' === e.receiveType && r.school.push(n)
- }),
- (i.selectList = r),
- (c = n.attachments || []),
- (s = []),
- c.forEach(function (e) {
- s.push(e.imgUrl || e.imgMessage)
- }),
- (i.attachments = s),
- (e.next = 24)
- break
- case 21:
- ;(e.prev = 21), (e.t0 = e.catch(0)), console.log(e.t0, 'e')
- case 24:
- case 'end':
- return e.stop()
- }
- },
- e,
- null,
- [[0, 21]]
- )
- })
- )
- return function () {
- return e.apply(this, arguments)
- }
- })(),
- f = x(function () {
- return 'SEND' === i.type
- }),
- h = (function () {
- var t = r(
- regeneratorRuntime.mark(function t() {
- return regeneratorRuntime.wrap(
- function (t) {
- for (;;)
- switch ((t.prev = t.next)) {
- case 0:
- return (
- (t.prev = 0),
- (i.closeLoading = !0),
- (t.next = 4),
- m.post('/api-school/imMessageBatchSending/remove', {
- requestType: 'form',
- hideLoading: !1,
- data: { id: i.id }
- })
- )
- case 4:
- setTimeout(function () {
- C('撤销成功')
- }, 100),
- setTimeout(function () {
- e.back(), (i.closeLoading = !1)
- }, 1100),
- (t.next = 11)
- break
- case 8:
- ;(t.prev = 8), (t.t0 = t.catch(0)), (i.closeLoading = !1)
- case 11:
- case 'end':
- return t.stop()
- }
- },
- t,
- null,
- [[0, 8]]
- )
- })
- )
- return function () {
- return t.apply(this, arguments)
- }
- })()
- return (
- l(function () {
- o()
- }),
- function () {
- return u('div', { class: w['create-message'] }, [
- u(
- O,
- { inset: !0, class: w.cellGroup },
- {
- default: function () {
- return [
- u(
- $,
- {
- inputAlign: 'right',
- label: '发送方式',
- modelValue: a[i.sendType],
- placeholder: '请选择发送方式',
- onClick: function () {
- f.value || (i.sendStatus = !0)
- },
- readonly: !0,
- isLink: !f.value,
- class: w.inputForm
- },
- null
- ),
- 'SCHEDULED' === i.sendType &&
- u(
- $,
- {
- inputAlign: 'right',
- label: '发送时间',
- modelValue: i.sendTime,
- placeholder: '请选择发送时间',
- onClick: function () {
- f.value || (i.sendTimeStatus = !0)
- },
- readonly: !0,
- isLink: !0,
- class: w.inputForm
- },
- null
- ),
- u(
- D,
- { title: '发送内容' },
- {
- label: function () {
- return u(
- $,
- {
- style: { padding: '0', marginTop: '12px' },
- placeholder: '请输入发送内容',
- modelValue: i.textMessage,
- 'onUpdate:modelValue': function (e) {
- return (i.textMessage = e)
- },
- type: 'textarea',
- rows: 3,
- showWordLimit: !0,
- maxlength: 400,
- readonly: f.value
- },
- null
- )
- }
- }
- ),
- u(
- D,
- { title: '上传附件' },
- {
- label: function () {
- return u(
- W,
- {
- modelValue: i.attachments,
- 'onUpdate:modelValue': function (e) {
- return (i.attachments = e)
- },
- maxCount: 9,
- bucket: i.bucket,
- disabled: f.value
- },
- null
- )
- }
- }
- ),
- u(
- $,
- {
- label: '发送对象',
- readonly: !0,
- inputAlign: 'right',
- class: w.sendObjPlaceholder,
- placeholder: f.value ? '' : '请选择发送对象',
- isLink: !f.value,
- border: !1,
- onClick: function () {
- f.value || (i.selectStatus = !0)
- }
- },
- null
- ),
- i.receives.map(function (e) {
- var t = G
- return (
- 'CLASS' === e.receiveType
- ? (t = './assets/icon_jiaofu.97430aa5.png')
- : 'STUDENT' === e.receiveType
- ? (t = G)
- : ('TEACHER' !== e.receiveType &&
- 'SCHOOL' !== e.receiveType) ||
- (t = I),
- u(
- D,
- {
- class: w.receives,
- title: e.receiveName,
- center: !0,
- border: !1
- },
- {
- icon: function () {
- return u(R, { class: w.img, src: e.avatar || t }, null)
- },
- extra: function () {
- return (
- !f.value &&
- u(
- k,
- {
- name: 'clear',
- color: '#d7d7d7',
- size: 20,
- onClick: function () {
- ;(i.delSelectItem = e), (i.delStatus = !0)
- }
- },
- null
- )
- )
- }
- }
- )
- )
- })
- ]
- }
- }
- ),
- u(
- T,
- { position: 'bottom' },
- {
- default: function () {
- return [
- 'ADD' === i.type &&
- u('div', { class: 'btnGroup' }, [
- u(
- _,
- {
- round: !0,
- block: !0,
- type: 'primary',
- onClick: c,
- disabled: i.sureLoading
- },
- {
- default: function () {
- return [d('确认发送')]
- }
- }
- )
- ]),
- 'WAIT' === i.type &&
- u('div', { class: ['btnGroup', 'btnMore'] }, [
- u(
- _,
- {
- round: !0,
- type: 'primary',
- onClick: c,
- disabled: i.updateLoading
- },
- {
- default: function () {
- return [d('修改')]
- }
- }
- ),
- u(
- _,
- {
- round: !0,
- color: '#64A9FF',
- onClick: h,
- disabled: i.closeLoading
- },
- {
- default: function () {
- return [d('撤销')]
- }
- }
- )
- ])
- ]
- }
- }
- ),
- u(
- q,
- {
- show: i.sendStatus,
- 'onUpdate:show': function (e) {
- return (i.sendStatus = e)
- },
- actions: i.actions,
- onSelect: function (e) {
- i.actions.forEach(function (e) {
- e.selected = !1
- }),
- (e.selected = !0),
- (i.sendType = e.value),
- (i.sendStatus = !1)
- }
- },
- null
- ),
- u(
- p,
- {
- show: i.sendTimeStatus,
- 'onUpdate:show': function (e) {
- return (i.sendTimeStatus = e)
- },
- position: 'bottom',
- round: !0,
- class: 'popupBottomSearch'
- },
- {
- default: function () {
- return [
- u(
- K,
- {
- title: '发送时间',
- tabs: ['选择日期', '选择时间'],
- onCancel: function () {
- return (i.sendTimeStatus = !1)
- },
- onConfirm: function (e) {
- var t = e[0].selectedValues.join('-'),
- n = e[1].selectedValues.join(':')
- ;(i.sendTime = S(t + ' ' + n).format('YYYY-MM-DD HH:mm:ss')),
- (i.sendTimeStatus = !1)
- }
- },
- {
- default: function () {
- return [
- u(
- J,
- {
- minDate: new Date(),
- maxDate: i.maxDate,
- modelValue: i.currentDate,
- 'onUpdate:modelValue': function (e) {
- return (i.currentDate = e)
- },
- formatter: j
- },
- null
- ),
- u(
- Z,
- {
- modelValue: i.currentTime,
- 'onUpdate:modelValue': function (e) {
- return (i.currentTime = e)
- },
- formatter: function (e, t) {
- return (
- 'hour' === e && (t.text += '时'),
- 'minute' === e && (t.text += '分'),
- t
- )
- }
- },
- null
- )
- ]
- }
- }
- )
- ]
- }
- }
- ),
- u(
- n,
- {
- modelValue: i.selectStatus,
- 'onUpdate:modelValue': function (e) {
- return (i.selectStatus = e)
- }
- },
- {
- default: function () {
- return [
- u(
- oe,
- {
- selectList: i.selectList,
- 'onUpdate:selectList': function (e) {
- return (i.selectList = e)
- },
- onClose: function () {
- return (i.selectStatus = !1)
- },
- onConfirm: function (e) {
- var t = e.class || [],
- n = e.student || [],
- a = e.teacher || [],
- r = e.school || [],
- c = []
- t.forEach(function (e) {
- c.push({
- receiveType: 'CLASS',
- receiveId: e.id,
- receiveName: e.value,
- avatar: e.avatar
- })
- }),
- n.forEach(function (e) {
- c.push({
- receiveType: 'STUDENT',
- receiveId: e.id,
- receiveName: e.value,
- avatar: e.avatar
- })
- }),
- a.forEach(function (e) {
- c.push({
- receiveType: 'TEACHER',
- receiveId: e.id,
- receiveName: e.value,
- avatar: e.avatar
- })
- }),
- r.forEach(function (e) {
- c.push({
- receiveType: 'SCHOOL',
- receiveId: e.id,
- receiveName: e.value,
- avatar: e.avatar
- })
- }),
- (i.receives = c)
- }
- },
- null
- )
- ]
- }
- }
- ),
- u(
- Y,
- {
- show: i.delStatus,
- 'onUpdate:show': function (e) {
- return (i.delStatus = e)
- },
- showCancelButton: !0,
- message: '您是否删除该数据',
- onConfirm: function () {
- var e = i.selectList
- if ('CLASS' === i.delSelectItem.receiveType) {
- var t = e.class || [],
- n = t.findIndex(function (e) {
- return e.id === i.delSelectItem.receiveId
- })
- t.splice(n, 1)
- } else if ('SCHOOL' === i.delSelectItem.receiveType) {
- var a = e.school || [],
- r = a.findIndex(function (e) {
- return e.id === i.delSelectItem.receiveId
- })
- a.splice(r, 1)
- } else if ('TEACHER' === i.delSelectItem.receiveType) {
- var c = e.teacher || [],
- s = c.findIndex(function (e) {
- return e.id === i.delSelectItem.receiveId
- })
- c.splice(s, 1)
- } else if ('STUDENT' === i.delSelectItem.receiveType) {
- var o = e.student || [],
- l = o.findIndex(function (e) {
- return e.id === i.delSelectItem.receiveId
- })
- o.splice(l, 1)
- }
- ;(i.selectList = e), console.log(i.selectList, 'forms.selectList')
- var u = i.receives.findIndex(function (e) {
- return e.receiveId === i.delSelectItem.receiveId
- })
- i.receives.splice(u, 1)
- }
- },
- null
- )
- ])
- }
- )
- }
- })
- )
- }
- }
- }
- )
- })()
- =======
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,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 a(e,t,n,a,r,i,c){try{var s=e[i](c),o=s.value}catch(l){return void n(l)}s.done?t(o):Promise.resolve(o).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var c=e.apply(t,n);function s(e){a(c,r,i,s,o,"next",e)}function o(e){a(c,r,i,s,o,"throw",e)}s(void 0)}))}}var i=document.createElement("style");i.innerHTML='._searchBand_1dppi_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1dppi_1 ._bandName_1dppi_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._gridContainer_1dppi_12{margin:0 .34667rem .32rem}._gridContainer_1dppi_12 ._title_1dppi_15{font-size:.69333rem;font-weight:700;color:#333;font-family:DINA}._gridContainer_1dppi_12 ._title_1dppi_15 i{font-style:normal;font-size:.32rem;color:#333}._gridContainer_1dppi_12 ._red_1dppi_26{color:#f67146}._gridContainer_1dppi_12 ._name_1dppi_29{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_1dppi_34 ._img_1dppi_34{width:1.06667rem;height:1.06667rem;margin-right:.21333rem;border-radius:50%;overflow:hidden}._gridClass_1dppi_34 ._teacherName_1dppi_41{display:flex;align-items:center}._gridClass_1dppi_34 ._teacherName_1dppi_41 ._name_1dppi_29{padding:0;max-width:3.2rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._teacherName_1dppi_41 .van-tag{margin-left:.21333rem;height:.45333rem;border-radius:.10667rem}._gridClass_1dppi_34 ._classCheckbox_1dppi_58{display:flex;justify-content:flex-end}._gridClass_1dppi_34 ._orchestraName_1dppi_62{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem;max-width:5.86667rem}._gridClass_1dppi_34 ._title_1dppi_15{font-size:.64rem}._gridClass_1dppi_34 ._className_1dppi_72{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._className_1dppi_72 ._line_1dppi_79{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_1dppi_34 .van-grid-item:after{content:" ";position:absolute;top:50%;right:0;margin-top:-.26667rem;width:.02667rem;height:.53333rem;background:#eaeaea;border-radius:.02667rem}._gridClass_1dppi_34 .van-grid-item:last-child:after{display:none}._classCellGroup_1dppi_101{margin-bottom:.32rem;border-radius:.26667rem;overflow:hidden}._cellTeacher_bjfo6_1 ._img_bjfo6_1{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_bjfo6_1 ._name_bjfo6_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_bjfo6_1 ._class_bjfo6_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_bjfo6_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_bjfo6_1 ._checkboxValue_bjfo6_25{display:flex;justify-content:flex-end}._subjectContainer_bjfo6_29{display:flex}._subjectContainer_bjfo6_29>span{flex-shrink:0}._subjectContainer_bjfo6_29 ._tagSubject_bjfo6_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}._cellTeacher_fnv0v_1 ._img_fnv0v_1{width:1.06667rem;height:1.06667rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_fnv0v_1 ._name_fnv0v_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_fnv0v_1 ._class_fnv0v_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_fnv0v_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_fnv0v_1 ._checkboxValue_fnv0v_25{display:flex;justify-content:flex-end}._subjectContainer_fnv0v_29{display:flex}._subjectContainer_fnv0v_29>span{flex-shrink:0}._subjectContainer_fnv0v_29 ._tagSubject_fnv0v_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}\n',document.head.appendChild(i),System.register(["./index-legacy.61c3446b.js","./index-legacy.8895675d.js","./index-legacy.5250e410.js","./index.module-legacy.475a9872.js","./index-legacy.e2f02fbe.js","./icon_teacher-legacy.07765f44.js","./index-legacy.eb41f645.js","./index-legacy.60605ef4.js","./index-legacy.412c8064.js","./index-legacy.9bde57e9.js","./index-legacy.7e0d4571.js","./index-legacy.8f701eeb.js","./index-legacy.d0ecbe0c.js","./index-legacy.8851edf7.js","./index-legacy.55275abe.js","./index-legacy.fa2325b5.js","./index-legacy.f7b7dcb8.js","./index-legacy.f228b6b5.js","./icon_student-legacy.6118fd72.js","./index-legacy.a487cc47.js","./index-legacy.59fa5ca5.js","./index-legacy.66030458.js","./index-legacy.9b5fc473.js","./index-legacy.50e1a648.js","./index-legacy.1399babf.js","./index-legacy.c75fe8a2.js","./use-tab-status-legacy.8f29db2f.js","./Checker-legacy.0dd903b8.js","./index-legacy.9800e001.js","./index-legacy.2ba2abdf.js","./index-legacy.ce363487.js","./index-legacy.73f9298d.js","./ImagePreview-legacy.2f18181e.js","./function-call-legacy.6c2f66f0.js","./utils-legacy.a517f66f.js"],(function(e){"use strict";var n,a,i,c,s,o,l,u,d,f,p,h,m,g,v,_,b,y,S,x,k,j,C,w,T,I,L,N,E,O,D,R,V,H,A,M,U,P,B,z,F,G,Y,q,W,Z,$,J;return{setters:[function(e){n=e.O},function(e){a=e.d},function(e){i=e.D,c=e.d,s=e.r,o=e.Z,l=e.$,u=e.c,d=e.q,f=e.ai,p=e.P,h=e.ak,m=e.m,g=e.f,v=e.am,_=e.B,b=e.ag,y=e.aV,S=e.ah,x=e.y,k=e.a5,j=e.aj,C=e.o},function(e){w=e.s},function(e){T=e.O},function(e){I=e.i},function(e){L=e.S},function(e){N=e.L},function(e){E=e.C},function(e){O=e.C},function(e){D=e.C},function(e){R=e.I},function(e){V=e.T},function(e){H=e.C},function(e){A=e.G,M=e.a},function(e){U=e.s,P=e.P},function(e){B=e.O},function(e){z=e.T,F=e.a},function(e){G=e.i},function(e){Y=e.O},function(e){q=e.O},function(e){W=e.O},function(e){Z=e.T},function(e){$=e.F},function(e){J=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var K=i(U),Q={searchBand:"_searchBand_1dppi_1",bandName:"_bandName_1dppi_7",gridContainer:"_gridContainer_1dppi_12",title:"_title_1dppi_15",red:"_red_1dppi_26",name:"_name_1dppi_29",gridClass:"_gridClass_1dppi_34",img:"_img_1dppi_34",teacherName:"_teacherName_1dppi_41",classCheckbox:"_classCheckbox_1dppi_58",orchestraName:"_orchestraName_1dppi_62",className:"_className_1dppi_72",line:"_line_1dppi_79",classCellGroup:"_classCellGroup_1dppi_101"};var X=c({name:"practice-class",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","confirm","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({showPopover:!1,orchestraId:null,orchestraName:null,orchestraList:[],isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{type:null,page:1,rows:20},check:[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:g.user.data.school.id,status:"DONE"}});case 3:t=e.sent,n=t.data,a=n.rows||[],r=[],a.forEach((function(e){r.push({text:e.name,value:e.id})})),i.orchestraList=[].concat(r),r.length>0&&(i.orchestraId=r[0].value,i.orchestraName=r[0].text),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isClick){e.next=3;break}return e.abrupt("return");case 3:return i.isClick=!0,e.next=6,m.post("/api-school/classGroup/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,orchestraId:i.orchestraId})});case 6:if(n=e.sent,a=n.data,i.isClick=!1,i.listState.loading=!1,r=a||{},!(i.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:i.list=i.list.concat(r.rows||[]),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isClick=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),_=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.name,avatar:""})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){b()}),{deep:!0});var b=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:return e.next=4,v();case 4:b();case 5:case"end":return e.stop()}}),e)})))),function(){var t;return u("div",{class:[Q.practiceClass,!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[i.orchestraList.length>0&&u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u("div",{class:"searchGroup-single"},[u("div",{class:["searchItem",i.showPopover?"searchItem-active":""],onClick:function(){return i.showPopover=!0}},[u("span",null,[i.orchestraName])])])]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",class:[Q.liveList],onLoad:v,immediateCheck:!1},{default:function(){return[u(E,{class:[Q.gridContainer,Q.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{class:Q.classCellGroup,onClick:function(){return _(e.id)},border:!1},{default:function(){return[u(D,{center:!0,titleStyle:{flex:"0 auto"},valueClass:Q.classCheckbox},{icon:function(){return u(R,{src:I,class:Q.img},null)},title:function(){return u("div",{class:Q.content},[u("div",{class:Q.teacherName},[u("span",{class:["van-ellipsis",Q.name]},[e.teacherName]),u(V,{type:"primary"},{default:function(){return[e.name]}})]),u("div",{class:[Q.orchestraName,"van-ellipsis"]},[e.orchestraName])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),_(e.id)}},null)}}),u(A,{border:!1,columnNum:3},{default:function(){return[u(M,null,{default:function(){return[u("p",{class:Q.title},[e.preStudentNum]),u("p",{class:Q.name},[d("学生人数")])]}}),u(M,null,{default:function(){return[u("p",{class:[Q.title]},[e.courseScheduleNum-e.completeCourseScheduleNum]),u("p",{class:Q.name},[d("剩余课时")])]}}),u(M,null,{default:function(){return[u("p",{class:Q.title},[e.courseScheduleNum]),u("p",{class:Q.name},[d("总课时")])]}})]}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无班级"},null),u(p,{show:i.showPopover,"onUpdate:show":function(e){return i.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"#select-send-message"},{default:function(){return[u(P,{columns:i.orchestraList,onCancel:function(){return i.showPopover=!1},onConfirm:function(e){i.orchestraId=e.selectedOptions[0].value,i.orchestraName=e.selectedOptions[0].text,i.showPopover=!1,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,v()}},null)]}})])}}}),ee={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};var te=c({name:"manage-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/schoolStaff/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,status:"ACTIVATION"})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"管理老师姓名/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ee.gridContainer,ee.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ee.cellTeacher,valueClass:ee.checkboxValue},{icon:function(){return u(R,{class:ee.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ee.content},[u("p",{class:[ee.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无管理老师"},null)])}}}),ne={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};function ae(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var re=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/student/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectNames?e.subjectNames.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"学员名称/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ne.gridContainer,ne.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ae(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ne.cellTeacher,valueClass:ne.checkboxValue},{icon:function(){return u(R,{class:ne.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ne.content},[u("p",{class:[ne.name,"van-ellipsis"]},[e.nickname]),u("p",{class:ne.class},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ne.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ae(e)?e:{default:function(){return[e]}})}))])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无学生"},null)])}}}),ie={cellTeacher:"_cellTeacher_fnv0v_1",img:"_img_fnv0v_1",name:"_name_fnv0v_9",class:"_class_fnv0v_16",checkboxValue:"_checkboxValue_fnv0v_25",subjectContainer:"_subjectContainer_fnv0v_29",tagSubject:"_tagSubject_fnv0v_35"};function ce(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var se=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var n=r(regeneratorRuntime.mark((function n(){var a,r,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!i.isLoad){n.next=3;break}return n.abrupt("return");case 3:return i.isLoad=!0,n.next=6,m.post("/api-school/teacher/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,removeTeacherId:e.removeTeacherId,delFlag:!1})});case 6:if(a=n.sent,i.listState.loading=!1,r=a.data||{},!(i.list.length>0&&1===r.current)){n.next=11;break}return n.abrupt("return");case 11:(c=r.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(c),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,n.next=25;break;case 20:n.prev=20,n.t0=n.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return n.stop()}}),n,null,[[0,20]])})));return function(){return n.apply(this,arguments)}}(),p=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){h()}),{deep:!0});var h=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),h()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"伴学指导姓名",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",style:{paddingTop:"12px"},onLoad:c,immediateCheck:!1},{default:function(){return[u(E,{class:[ie.gridContainer,ie.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ce(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return p(e.id)}},{default:function(){return[u(D,{center:!0,class:ie.cellTeacher,valueClass:ie.checkboxValue},{icon:function(){return u(R,{class:ie.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ie.content},[u("p",{class:[ie.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),p(e.id)}},null)}}),u(D,{center:!0},{title:function(){return u("div",{class:ie.subjectContainer},[u("span",null,[d("声部:")]),u("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ie.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ce(e)?e:{default:function(){return[e]}})}))])])}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无伴学指导"},null)])}}}),oe=c({name:"select-send",props:{selectList:{type:Object,default:function(){return{}}},selectStatus:{type:Boolean,default:!1}},emits:["close","confirm","update:selectList"],setup:function(e,t){var n=t.emit,a=s({height:"auto",bottomHeight:0,tabValue:"class",selectClass:[],selectStudent:[],selectTeacher:[],selectManage:[]}),i=function(){var e=r(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={class:a.selectClass,student:a.selectStudent,teacher:a.selectTeacher,school:a.selectManage},n("close"),n("update:selectList",t),n("confirm",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();o((function(){return e.selectList}),(function(){console.log("watch",e.selectList),c()}),{deep:!0});var c=function(){var t=e.selectList||{};a.selectClass=t.class||[],a.selectTeacher=t.teacher||[],a.selectManage=t.school||[],a.selectStudent=t.student||[]};return l((function(){var e=v(document.querySelector(".van-tab")).height;a.height=e,c(),console.log(a,"select")})),function(){return u("div",{class:w.orchestraDetail,style:{background:"#f6f6f6",minHeight:"100vh"},id:"select-send-message"},[u(z,{sticky:!0,lineWidth:20,lineHeight:4,active:a.tabValue,"onUpdate:active":function(e){return a.tabValue=e}},{default:function(){return[u(F,{title:"班级列表",name:"class"},{default:function(){return[u(X,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectClass,"onUpdate:selectItem":function(e){return a.selectClass=e}},null)]}}),u(F,{title:"学员列表",name:"student"},{default:function(){return[u(re,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectStudent,"onUpdate:selectItem":function(e){return a.selectStudent=e}},null)]}}),u(F,{title:"伴学指导",name:"teacher"},{default:function(){return[u(se,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectTeacher,"onUpdate:selectItem":function(e){return a.selectTeacher=e}},null)]}}),u(F,{title:"管理老师",name:"manage"},{default:function(){return[u(te,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectManage,"onUpdate:selectItem":function(e){return a.selectManage=e}},null)]}})]}}),u(T,{position:"bottom",onGetHeight:function(e){a.bottomHeight=e}},{default:function(){return[u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:i},{default:function(){return[d("确认")]}})])]}})])}}});e("default",c({name:"create-message",setup:function(){var e=b(),t=y(),i=s({id:t.query.id,type:"ADD",bucket:"i-m",sendStatus:!1,sendType:"IMMEDIATELY",textMessage:null,sendTime:null,sendTimeStatus:!1,maxDate:S(new Date).add(60,"day").toDate(),currentDate:[],currentTime:[S().format("HH"),S().format("mm")],attachments:[],receives:[],selectStatus:!1,selectList:{},delSelectItem:{},delStatus:!1,sureLoading:!1,updateLoading:!1,closeLoading:!1,actions:[{name:"即时发送",value:"IMMEDIATELY",selected:!0},{name:"定时发送",value:"SCHEDULED"}]}),c=function(){var t=r(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i.sendType){t.next=4;break}return C("请选择发送方式"),t.abrupt("return");case 4:if(i.textMessage){t.next=7;break}return C("请输入发送内容"),t.abrupt("return");case 7:if(!(i.receives.length<=0)){t.next=10;break}return C("请选择发送对象"),t.abrupt("return");case 10:if(n=[],i.attachments.forEach((function(e){n.push({imgUrl:e,imgMessage:e})})),a=[],i.receives.forEach((function(e){a.push({receiveType:e.receiveType,receiveId:e.receiveId})})),r={sendType:i.sendType,textMessage:i.textMessage,attachments:n,receives:a,sendTime:i.sendTime},console.log(r,"params"),i.id?i.updateLoading=!0:i.sureLoading=!0,!i.id){t.next=23;break}return r.id=i.id,t.next=21,m.post("/api-school/imMessageBatchSending/update",{hideLoading:!1,data:r});case 21:t.next=25;break;case 23:return t.next=25,m.post("/api-school/imMessageBatchSending/save",{hideLoading:!1,data:r});case 25:e.back(),i.sureLoading=!1,i.updateLoading=!1,t.next=34;break;case 30:t.prev=30,t.t0=t.catch(0),i.sureLoading=!1,i.updateLoading=!1;case 34:case"end":return t.stop()}}),t,null,[[0,30]])})));return function(){return t.apply(this,arguments)}}(),o=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i.id){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m.get("/api-school/imMessageBatchSending/detail/"+i.id);case 5:t=e.sent,n=t.data,i.sendType=n.sendType,i.textMessage=n.textMessage,i.sendTime=n.sendTime,i.type=n.sendStatus,a=n.receives||[],r={class:[],teacher:[],student:[],school:[]},a.forEach((function(e){var t={receiveType:e.receiveType,receiveId:e.receiveId,receiveName:e.receiveName,avatar:e.avatar};i.receives.push(t);var n={id:e.receiveId,value:e.receiveName,avatar:e.avatar};"CLASS"===e.receiveType?r.class.push(n):"STUDENT"===e.receiveType?r.student.push(n):"TEACHER"===e.receiveType?r.teacher.push(n):"SCHOOL"===e.receiveType&&r.school.push(n)})),i.selectList=r,c=n.attachments||[],s=[],c.forEach((function(e){s.push(e.imgUrl||e.imgMessage)})),i.attachments=s,e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),console.log(e.t0,"e");case 24:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(){return e.apply(this,arguments)}}(),f=x((function(){return"SEND"===i.type})),h=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i.closeLoading=!0,t.next=4,m.post("/api-school/imMessageBatchSending/remove",{requestType:"form",hideLoading:!1,data:{id:i.id}});case 4:setTimeout((function(){C("撤销成功")}),100),setTimeout((function(){e.back(),i.closeLoading=!1}),1100),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),i.closeLoading=!1;case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}();return l((function(){o()})),function(){return u("div",{class:w["create-message"]},[u(O,{inset:!0,class:w.cellGroup},{default:function(){return[u($,{inputAlign:"right",label:"发送方式",modelValue:a[i.sendType],placeholder:"请选择发送方式",onClick:function(){f.value||(i.sendStatus=!0)},readonly:!0,isLink:!f.value,class:w.inputForm},null),"SCHEDULED"===i.sendType&&u($,{inputAlign:"right",label:"发送时间",modelValue:i.sendTime,placeholder:"请选择发送时间",onClick:function(){f.value||(i.sendTimeStatus=!0)},readonly:!0,isLink:!0,class:w.inputForm},null),u(D,{title:"发送内容"},{label:function(){return u($,{style:{padding:"0",marginTop:"12px"},placeholder:"请输入发送内容",modelValue:i.textMessage,"onUpdate:modelValue":function(e){return i.textMessage=e},type:"textarea",rows:3,showWordLimit:!0,maxlength:400,readonly:f.value},null)}}),u(D,{title:"上传附件"},{label:function(){return u(W,{modelValue:i.attachments,"onUpdate:modelValue":function(e){return i.attachments=e},maxCount:9,bucket:i.bucket,disabled:f.value},null)}}),u($,{label:"发送对象",readonly:!0,inputAlign:"right",class:w.sendObjPlaceholder,placeholder:f.value?"":"请选择发送对象",isLink:!f.value,border:!1,onClick:function(){f.value||(i.selectStatus=!0)}},null),i.receives.map((function(e){var t=G;return"CLASS"===e.receiveType?t="./assets/icon_jiaofu.97430aa5.png":"STUDENT"===e.receiveType?t=G:"TEACHER"!==e.receiveType&&"SCHOOL"!==e.receiveType||(t=I),u(D,{class:w.receives,title:e.receiveName,center:!0,border:!1},{icon:function(){return u(R,{class:w.img,src:e.avatar||t},null)},extra:function(){return!f.value&&u(k,{name:"clear",color:"#d7d7d7",size:20,onClick:function(){i.delSelectItem=e,i.delStatus=!0}},null)}})}))]}}),u(T,{position:"bottom"},{default:function(){return["ADD"===i.type&&u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:c,disabled:i.sureLoading},{default:function(){return[d("确认发送")]}})]),"WAIT"===i.type&&u("div",{class:["btnGroup","btnMore"]},[u(_,{round:!0,type:"primary",onClick:c,disabled:i.updateLoading},{default:function(){return[d("修改")]}}),u(_,{round:!0,color:"#64A9FF",onClick:h,disabled:i.closeLoading},{default:function(){return[d("撤销")]}})])]}}),u(q,{show:i.sendStatus,"onUpdate:show":function(e){return i.sendStatus=e},actions:i.actions,onSelect:function(e){i.actions.forEach((function(e){e.selected=!1})),e.selected=!0,i.sendType=e.value,i.sendStatus=!1}},null),u(p,{show:i.sendTimeStatus,"onUpdate:show":function(e){return i.sendTimeStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(K,{title:"发送时间",tabs:["选择日期","选择时间"],onCancel:function(){return i.sendTimeStatus=!1},onConfirm:function(e){var t=e[0].selectedValues.join("-"),n=e[1].selectedValues.join(":");i.sendTime=S(t+" "+n).format("YYYY-MM-DD HH:mm:ss"),i.sendTimeStatus=!1}},{default:function(){return[u(J,{minDate:new Date,maxDate:i.maxDate,modelValue:i.currentDate,"onUpdate:modelValue":function(e){return i.currentDate=e},formatter:j},null),u(Z,{modelValue:i.currentTime,"onUpdate:modelValue":function(e){return i.currentTime=e},formatter:function(e,t){return"hour"===e&&(t.text+="时"),"minute"===e&&(t.text+="分"),t}},null)]}})]}}),u(n,{modelValue:i.selectStatus,"onUpdate:modelValue":function(e){return i.selectStatus=e}},{default:function(){return[u(oe,{selectList:i.selectList,"onUpdate:selectList":function(e){return i.selectList=e},onClose:function(){return i.selectStatus=!1},onConfirm:function(e){var t=e.class||[],n=e.student||[],a=e.teacher||[],r=e.school||[],c=[];t.forEach((function(e){c.push({receiveType:"CLASS",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),n.forEach((function(e){c.push({receiveType:"STUDENT",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),a.forEach((function(e){c.push({receiveType:"TEACHER",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),r.forEach((function(e){c.push({receiveType:"SCHOOL",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),i.receives=c}},null)]}}),u(Y,{show:i.delStatus,"onUpdate:show":function(e){return i.delStatus=e},showCancelButton:!0,message:"您是否删除该数据",onConfirm:function(){var e=i.selectList;if("CLASS"===i.delSelectItem.receiveType){var t=e.class||[],n=t.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));t.splice(n,1)}else if("SCHOOL"===i.delSelectItem.receiveType){var a=e.school||[],r=a.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));a.splice(r,1)}else if("TEACHER"===i.delSelectItem.receiveType){var c=e.teacher||[],s=c.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));c.splice(s,1)}else if("STUDENT"===i.delSelectItem.receiveType){var o=e.student||[],l=o.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));o.splice(l,1)}i.selectList=e,console.log(i.selectList,"forms.selectList");var u=i.receives.findIndex((function(e){return e.receiveId===i.delSelectItem.receiveId}));i.receives.splice(u,1)}},null)])}}}))}}}))}();
- >>>>>>> online:dist/assets/create-message-legacy.dcc48463.js
- =======
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,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 a(e,t,n,a,r,i,c){try{var s=e[i](c),o=s.value}catch(l){return void n(l)}s.done?t(o):Promise.resolve(o).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var c=e.apply(t,n);function s(e){a(c,r,i,s,o,"next",e)}function o(e){a(c,r,i,s,o,"throw",e)}s(void 0)}))}}var i=document.createElement("style");i.innerHTML='._searchBand_1dppi_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1dppi_1 ._bandName_1dppi_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._gridContainer_1dppi_12{margin:0 .34667rem .32rem}._gridContainer_1dppi_12 ._title_1dppi_15{font-size:.69333rem;font-weight:700;color:#333;font-family:DINA}._gridContainer_1dppi_12 ._title_1dppi_15 i{font-style:normal;font-size:.32rem;color:#333}._gridContainer_1dppi_12 ._red_1dppi_26{color:#f67146}._gridContainer_1dppi_12 ._name_1dppi_29{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_1dppi_34 ._img_1dppi_34{width:1.06667rem;height:1.06667rem;margin-right:.21333rem;border-radius:50%;overflow:hidden}._gridClass_1dppi_34 ._teacherName_1dppi_41{display:flex;align-items:center}._gridClass_1dppi_34 ._teacherName_1dppi_41 ._name_1dppi_29{padding:0;max-width:3.2rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._teacherName_1dppi_41 .van-tag{margin-left:.21333rem;height:.45333rem;border-radius:.10667rem}._gridClass_1dppi_34 ._classCheckbox_1dppi_58{display:flex;justify-content:flex-end}._gridClass_1dppi_34 ._orchestraName_1dppi_62{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem;max-width:5.86667rem}._gridClass_1dppi_34 ._title_1dppi_15{font-size:.64rem}._gridClass_1dppi_34 ._className_1dppi_72{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._className_1dppi_72 ._line_1dppi_79{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_1dppi_34 .van-grid-item:after{content:" ";position:absolute;top:50%;right:0;margin-top:-.26667rem;width:.02667rem;height:.53333rem;background:#eaeaea;border-radius:.02667rem}._gridClass_1dppi_34 .van-grid-item:last-child:after{display:none}._classCellGroup_1dppi_101{margin-bottom:.32rem;border-radius:.26667rem;overflow:hidden}._cellTeacher_bjfo6_1 ._img_bjfo6_1{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_bjfo6_1 ._name_bjfo6_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_bjfo6_1 ._class_bjfo6_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_bjfo6_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_bjfo6_1 ._checkboxValue_bjfo6_25{display:flex;justify-content:flex-end}._subjectContainer_bjfo6_29{display:flex}._subjectContainer_bjfo6_29>span{flex-shrink:0}._subjectContainer_bjfo6_29 ._tagSubject_bjfo6_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}._cellTeacher_fnv0v_1 ._img_fnv0v_1{width:1.06667rem;height:1.06667rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_fnv0v_1 ._name_fnv0v_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_fnv0v_1 ._class_fnv0v_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_fnv0v_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_fnv0v_1 ._checkboxValue_fnv0v_25{display:flex;justify-content:flex-end}._subjectContainer_fnv0v_29{display:flex}._subjectContainer_fnv0v_29>span{flex-shrink:0}._subjectContainer_fnv0v_29 ._tagSubject_fnv0v_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}\n',document.head.appendChild(i),System.register(["./index-legacy.09430bdd.js","./index-legacy.8895675d.js","./index-legacy.e776119d.js","./index.module-legacy.475a9872.js","./index-legacy.a772c019.js","./icon_teacher-legacy.07765f44.js","./index-legacy.9fdb4fc9.js","./index-legacy.7b97ed13.js","./index-legacy.0f4a911b.js","./index-legacy.e1ae7968.js","./index-legacy.513b7e98.js","./index-legacy.d8701818.js","./index-legacy.29ba056c.js","./index-legacy.7f3b8165.js","./index-legacy.0f7414e0.js","./index-legacy.3fb3230e.js","./index-legacy.3c5b068c.js","./index-legacy.72a95bf0.js","./icon_student-legacy.6118fd72.js","./index-legacy.badde264.js","./index-legacy.2c370b35.js","./index-legacy.9ee3ffed.js","./index-legacy.8e1ba544.js","./index-legacy.0884f318.js","./index-legacy.2a9dc00e.js","./index-legacy.c75fe8a2.js","./use-tab-status-legacy.83fb85a3.js","./Checker-legacy.f1b970d6.js","./index-legacy.07af1a6e.js","./index-legacy.5a0615fe.js","./index-legacy.c2fa1e5b.js","./index-legacy.cfe30001.js","./ImagePreview-legacy.c64e2696.js","./function-call-legacy.4993f104.js","./utils-legacy.a1f6ead8.js"],(function(e){"use strict";var n,a,i,c,s,o,l,u,d,f,p,h,m,g,v,_,b,y,S,x,k,j,C,w,T,I,L,N,E,O,D,R,V,H,A,M,U,P,B,z,F,G,Y,q,W,Z,$,J;return{setters:[function(e){n=e.O},function(e){a=e.d},function(e){i=e.D,c=e.d,s=e.r,o=e.Z,l=e.$,u=e.c,d=e.q,f=e.ai,p=e.P,h=e.ak,m=e.m,g=e.f,v=e.am,_=e.B,b=e.ag,y=e.aV,S=e.ah,x=e.y,k=e.a5,j=e.aj,C=e.o},function(e){w=e.s},function(e){T=e.O},function(e){I=e.i},function(e){L=e.S},function(e){N=e.L},function(e){E=e.C},function(e){O=e.C},function(e){D=e.C},function(e){R=e.I},function(e){V=e.T},function(e){H=e.C},function(e){A=e.G,M=e.a},function(e){U=e.s,P=e.P},function(e){B=e.O},function(e){z=e.T,F=e.a},function(e){G=e.i},function(e){Y=e.O},function(e){q=e.O},function(e){W=e.O},function(e){Z=e.T},function(e){$=e.F},function(e){J=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var K=i(U),Q={searchBand:"_searchBand_1dppi_1",bandName:"_bandName_1dppi_7",gridContainer:"_gridContainer_1dppi_12",title:"_title_1dppi_15",red:"_red_1dppi_26",name:"_name_1dppi_29",gridClass:"_gridClass_1dppi_34",img:"_img_1dppi_34",teacherName:"_teacherName_1dppi_41",classCheckbox:"_classCheckbox_1dppi_58",orchestraName:"_orchestraName_1dppi_62",className:"_className_1dppi_72",line:"_line_1dppi_79",classCellGroup:"_classCellGroup_1dppi_101"};var X=c({name:"practice-class",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","confirm","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({showPopover:!1,orchestraId:null,orchestraName:null,orchestraList:[],isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{type:null,page:1,rows:20},check:[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:g.user.data.school.id,status:"DONE"}});case 3:t=e.sent,n=t.data,a=n.rows||[],r=[],a.forEach((function(e){r.push({text:e.name,value:e.id})})),i.orchestraList=[].concat(r),r.length>0&&(i.orchestraId=r[0].value,i.orchestraName=r[0].text),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isClick){e.next=3;break}return e.abrupt("return");case 3:return i.isClick=!0,e.next=6,m.post("/api-school/classGroup/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,orchestraId:i.orchestraId})});case 6:if(n=e.sent,a=n.data,i.isClick=!1,i.listState.loading=!1,r=a||{},!(i.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:i.list=i.list.concat(r.rows||[]),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isClick=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),_=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.name,avatar:""})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){b()}),{deep:!0});var b=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:return e.next=4,v();case 4:b();case 5:case"end":return e.stop()}}),e)})))),function(){var t;return u("div",{class:[Q.practiceClass,!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[i.orchestraList.length>0&&u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u("div",{class:"searchGroup-single"},[u("div",{class:["searchItem",i.showPopover?"searchItem-active":""],onClick:function(){return i.showPopover=!0}},[u("span",null,[i.orchestraName])])])]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",class:[Q.liveList],onLoad:v,immediateCheck:!1},{default:function(){return[u(E,{class:[Q.gridContainer,Q.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{class:Q.classCellGroup,onClick:function(){return _(e.id)},border:!1},{default:function(){return[u(D,{center:!0,titleStyle:{flex:"0 auto"},valueClass:Q.classCheckbox},{icon:function(){return u(R,{src:I,class:Q.img},null)},title:function(){return u("div",{class:Q.content},[u("div",{class:Q.teacherName},[u("span",{class:["van-ellipsis",Q.name]},[e.teacherName]),u(V,{type:"primary"},{default:function(){return[e.name]}})]),u("div",{class:[Q.orchestraName,"van-ellipsis"]},[e.orchestraName])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),_(e.id)}},null)}}),u(A,{border:!1,columnNum:3},{default:function(){return[u(M,null,{default:function(){return[u("p",{class:Q.title},[e.preStudentNum]),u("p",{class:Q.name},[d("学生人数")])]}}),u(M,null,{default:function(){return[u("p",{class:[Q.title]},[e.courseScheduleNum-e.completeCourseScheduleNum]),u("p",{class:Q.name},[d("剩余课时")])]}}),u(M,null,{default:function(){return[u("p",{class:Q.title},[e.courseScheduleNum]),u("p",{class:Q.name},[d("总课时")])]}})]}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无班级"},null),u(p,{show:i.showPopover,"onUpdate:show":function(e){return i.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"#select-send-message"},{default:function(){return[u(P,{columns:i.orchestraList,onCancel:function(){return i.showPopover=!1},onConfirm:function(e){i.orchestraId=e.selectedOptions[0].value,i.orchestraName=e.selectedOptions[0].text,i.showPopover=!1,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,v()}},null)]}})])}}}),ee={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};var te=c({name:"manage-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/schoolStaff/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,status:"ACTIVATION"})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"管理老师姓名/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ee.gridContainer,ee.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ee.cellTeacher,valueClass:ee.checkboxValue},{icon:function(){return u(R,{class:ee.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ee.content},[u("p",{class:[ee.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无管理老师"},null)])}}}),ne={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};function ae(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var re=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/student/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectNames?e.subjectNames.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"学员名称/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ne.gridContainer,ne.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ae(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ne.cellTeacher,valueClass:ne.checkboxValue},{icon:function(){return u(R,{class:ne.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ne.content},[u("p",{class:[ne.name,"van-ellipsis"]},[e.nickname]),u("p",{class:ne.class},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ne.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ae(e)?e:{default:function(){return[e]}})}))])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无学生"},null)])}}}),ie={cellTeacher:"_cellTeacher_fnv0v_1",img:"_img_fnv0v_1",name:"_name_fnv0v_9",class:"_class_fnv0v_16",checkboxValue:"_checkboxValue_fnv0v_25",subjectContainer:"_subjectContainer_fnv0v_29",tagSubject:"_tagSubject_fnv0v_35"};function ce(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var se=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var n=r(regeneratorRuntime.mark((function n(){var a,r,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!i.isLoad){n.next=3;break}return n.abrupt("return");case 3:return i.isLoad=!0,n.next=6,m.post("/api-school/teacher/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,removeTeacherId:e.removeTeacherId,delFlag:!1})});case 6:if(a=n.sent,i.listState.loading=!1,r=a.data||{},!(i.list.length>0&&1===r.current)){n.next=11;break}return n.abrupt("return");case 11:(c=r.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(c),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,n.next=25;break;case 20:n.prev=20,n.t0=n.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return n.stop()}}),n,null,[[0,20]])})));return function(){return n.apply(this,arguments)}}(),p=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){h()}),{deep:!0});var h=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),h()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"伴学指导姓名",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",style:{paddingTop:"12px"},onLoad:c,immediateCheck:!1},{default:function(){return[u(E,{class:[ie.gridContainer,ie.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ce(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return p(e.id)}},{default:function(){return[u(D,{center:!0,class:ie.cellTeacher,valueClass:ie.checkboxValue},{icon:function(){return u(R,{class:ie.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ie.content},[u("p",{class:[ie.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),p(e.id)}},null)}}),u(D,{center:!0},{title:function(){return u("div",{class:ie.subjectContainer},[u("span",null,[d("声部:")]),u("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ie.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ce(e)?e:{default:function(){return[e]}})}))])])}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无伴学指导"},null)])}}}),oe=c({name:"select-send",props:{selectList:{type:Object,default:function(){return{}}},selectStatus:{type:Boolean,default:!1}},emits:["close","confirm","update:selectList"],setup:function(e,t){var n=t.emit,a=s({height:"auto",bottomHeight:0,tabValue:"class",selectClass:[],selectStudent:[],selectTeacher:[],selectManage:[]}),i=function(){var e=r(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={class:a.selectClass,student:a.selectStudent,teacher:a.selectTeacher,school:a.selectManage},n("close"),n("update:selectList",t),n("confirm",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();o((function(){return e.selectList}),(function(){console.log("watch",e.selectList),c()}),{deep:!0});var c=function(){var t=e.selectList||{};a.selectClass=t.class||[],a.selectTeacher=t.teacher||[],a.selectManage=t.school||[],a.selectStudent=t.student||[]};return l((function(){var e=v(document.querySelector(".van-tab")).height;a.height=e,c(),console.log(a,"select")})),function(){return u("div",{class:w.orchestraDetail,style:{background:"#f6f6f6",minHeight:"100vh"},id:"select-send-message"},[u(z,{sticky:!0,lineWidth:20,lineHeight:4,active:a.tabValue,"onUpdate:active":function(e){return a.tabValue=e}},{default:function(){return[u(F,{title:"班级列表",name:"class"},{default:function(){return[u(X,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectClass,"onUpdate:selectItem":function(e){return a.selectClass=e}},null)]}}),u(F,{title:"学员列表",name:"student"},{default:function(){return[u(re,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectStudent,"onUpdate:selectItem":function(e){return a.selectStudent=e}},null)]}}),u(F,{title:"伴学指导",name:"teacher"},{default:function(){return[u(se,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectTeacher,"onUpdate:selectItem":function(e){return a.selectTeacher=e}},null)]}}),u(F,{title:"管理老师",name:"manage"},{default:function(){return[u(te,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectManage,"onUpdate:selectItem":function(e){return a.selectManage=e}},null)]}})]}}),u(T,{position:"bottom",onGetHeight:function(e){a.bottomHeight=e}},{default:function(){return[u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:i},{default:function(){return[d("确认")]}})])]}})])}}});e("default",c({name:"create-message",setup:function(){var e=b(),t=y(),i=s({id:t.query.id,type:"ADD",bucket:"i-m",sendStatus:!1,sendType:"IMMEDIATELY",textMessage:null,sendTime:null,sendTimeStatus:!1,maxDate:S(new Date).add(60,"day").toDate(),currentDate:[],currentTime:[S().format("HH"),S().format("mm")],attachments:[],receives:[],selectStatus:!1,selectList:{},delSelectItem:{},delStatus:!1,sureLoading:!1,updateLoading:!1,closeLoading:!1,actions:[{name:"即时发送",value:"IMMEDIATELY",selected:!0},{name:"定时发送",value:"SCHEDULED"}]}),c=function(){var t=r(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i.sendType){t.next=4;break}return C("请选择发送方式"),t.abrupt("return");case 4:if(i.textMessage){t.next=7;break}return C("请输入发送内容"),t.abrupt("return");case 7:if(!(i.receives.length<=0)){t.next=10;break}return C("请选择发送对象"),t.abrupt("return");case 10:if(n=[],i.attachments.forEach((function(e){n.push({imgUrl:e,imgMessage:e})})),a=[],i.receives.forEach((function(e){a.push({receiveType:e.receiveType,receiveId:e.receiveId})})),r={sendType:i.sendType,textMessage:i.textMessage,attachments:n,receives:a,sendTime:i.sendTime},console.log(r,"params"),i.id?i.updateLoading=!0:i.sureLoading=!0,!i.id){t.next=23;break}return r.id=i.id,t.next=21,m.post("/api-school/imMessageBatchSending/update",{hideLoading:!1,data:r});case 21:t.next=25;break;case 23:return t.next=25,m.post("/api-school/imMessageBatchSending/save",{hideLoading:!1,data:r});case 25:e.back(),i.sureLoading=!1,i.updateLoading=!1,t.next=34;break;case 30:t.prev=30,t.t0=t.catch(0),i.sureLoading=!1,i.updateLoading=!1;case 34:case"end":return t.stop()}}),t,null,[[0,30]])})));return function(){return t.apply(this,arguments)}}(),o=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i.id){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m.get("/api-school/imMessageBatchSending/detail/"+i.id);case 5:t=e.sent,n=t.data,i.sendType=n.sendType,i.textMessage=n.textMessage,i.sendTime=n.sendTime,i.type=n.sendStatus,a=n.receives||[],r={class:[],teacher:[],student:[],school:[]},a.forEach((function(e){var t={receiveType:e.receiveType,receiveId:e.receiveId,receiveName:e.receiveName,avatar:e.avatar};i.receives.push(t);var n={id:e.receiveId,value:e.receiveName,avatar:e.avatar};"CLASS"===e.receiveType?r.class.push(n):"STUDENT"===e.receiveType?r.student.push(n):"TEACHER"===e.receiveType?r.teacher.push(n):"SCHOOL"===e.receiveType&&r.school.push(n)})),i.selectList=r,c=n.attachments||[],s=[],c.forEach((function(e){s.push(e.imgUrl||e.imgMessage)})),i.attachments=s,e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),console.log(e.t0,"e");case 24:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(){return e.apply(this,arguments)}}(),f=x((function(){return"SEND"===i.type})),h=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i.closeLoading=!0,t.next=4,m.post("/api-school/imMessageBatchSending/remove",{requestType:"form",hideLoading:!1,data:{id:i.id}});case 4:setTimeout((function(){C("撤销成功")}),100),setTimeout((function(){e.back(),i.closeLoading=!1}),1100),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),i.closeLoading=!1;case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}();return l((function(){o()})),function(){return u("div",{class:w["create-message"]},[u(O,{inset:!0,class:w.cellGroup},{default:function(){return[u($,{inputAlign:"right",label:"发送方式",modelValue:a[i.sendType],placeholder:"请选择发送方式",onClick:function(){f.value||(i.sendStatus=!0)},readonly:!0,isLink:!f.value,class:w.inputForm},null),"SCHEDULED"===i.sendType&&u($,{inputAlign:"right",label:"发送时间",modelValue:i.sendTime,placeholder:"请选择发送时间",onClick:function(){f.value||(i.sendTimeStatus=!0)},readonly:!0,isLink:!0,class:w.inputForm},null),u(D,{title:"发送内容"},{label:function(){return u($,{style:{padding:"0",marginTop:"12px"},placeholder:"请输入发送内容",modelValue:i.textMessage,"onUpdate:modelValue":function(e){return i.textMessage=e},type:"textarea",rows:3,showWordLimit:!0,maxlength:400,readonly:f.value},null)}}),u(D,{title:"上传附件"},{label:function(){return u(W,{modelValue:i.attachments,"onUpdate:modelValue":function(e){return i.attachments=e},maxCount:9,bucket:i.bucket,disabled:f.value},null)}}),u($,{label:"发送对象",readonly:!0,inputAlign:"right",class:w.sendObjPlaceholder,placeholder:f.value?"":"请选择发送对象",isLink:!f.value,border:!1,onClick:function(){f.value||(i.selectStatus=!0)}},null),i.receives.map((function(e){var t=G;return"CLASS"===e.receiveType?t="./assets/icon_jiaofu.97430aa5.png":"STUDENT"===e.receiveType?t=G:"TEACHER"!==e.receiveType&&"SCHOOL"!==e.receiveType||(t=I),u(D,{class:w.receives,title:e.receiveName,center:!0,border:!1},{icon:function(){return u(R,{class:w.img,src:e.avatar||t},null)},extra:function(){return!f.value&&u(k,{name:"clear",color:"#d7d7d7",size:20,onClick:function(){i.delSelectItem=e,i.delStatus=!0}},null)}})}))]}}),u(T,{position:"bottom"},{default:function(){return["ADD"===i.type&&u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:c,disabled:i.sureLoading},{default:function(){return[d("确认发送")]}})]),"WAIT"===i.type&&u("div",{class:["btnGroup","btnMore"]},[u(_,{round:!0,type:"primary",onClick:c,disabled:i.updateLoading},{default:function(){return[d("修改")]}}),u(_,{round:!0,color:"#64A9FF",onClick:h,disabled:i.closeLoading},{default:function(){return[d("撤销")]}})])]}}),u(q,{show:i.sendStatus,"onUpdate:show":function(e){return i.sendStatus=e},actions:i.actions,onSelect:function(e){i.actions.forEach((function(e){e.selected=!1})),e.selected=!0,i.sendType=e.value,i.sendStatus=!1}},null),u(p,{show:i.sendTimeStatus,"onUpdate:show":function(e){return i.sendTimeStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(K,{title:"发送时间",tabs:["选择日期","选择时间"],onCancel:function(){return i.sendTimeStatus=!1},onConfirm:function(e){var t=e[0].selectedValues.join("-"),n=e[1].selectedValues.join(":");i.sendTime=S(t+" "+n).format("YYYY-MM-DD HH:mm:ss"),i.sendTimeStatus=!1}},{default:function(){return[u(J,{minDate:new Date,maxDate:i.maxDate,modelValue:i.currentDate,"onUpdate:modelValue":function(e){return i.currentDate=e},formatter:j},null),u(Z,{modelValue:i.currentTime,"onUpdate:modelValue":function(e){return i.currentTime=e},formatter:function(e,t){return"hour"===e&&(t.text+="时"),"minute"===e&&(t.text+="分"),t}},null)]}})]}}),u(n,{modelValue:i.selectStatus,"onUpdate:modelValue":function(e){return i.selectStatus=e}},{default:function(){return[u(oe,{selectList:i.selectList,"onUpdate:selectList":function(e){return i.selectList=e},onClose:function(){return i.selectStatus=!1},onConfirm:function(e){var t=e.class||[],n=e.student||[],a=e.teacher||[],r=e.school||[],c=[];t.forEach((function(e){c.push({receiveType:"CLASS",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),n.forEach((function(e){c.push({receiveType:"STUDENT",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),a.forEach((function(e){c.push({receiveType:"TEACHER",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),r.forEach((function(e){c.push({receiveType:"SCHOOL",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),i.receives=c}},null)]}}),u(Y,{show:i.delStatus,"onUpdate:show":function(e){return i.delStatus=e},showCancelButton:!0,message:"您是否删除该数据",onConfirm:function(){var e=i.selectList;if("CLASS"===i.delSelectItem.receiveType){var t=e.class||[],n=t.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));t.splice(n,1)}else if("SCHOOL"===i.delSelectItem.receiveType){var a=e.school||[],r=a.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));a.splice(r,1)}else if("TEACHER"===i.delSelectItem.receiveType){var c=e.teacher||[],s=c.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));c.splice(s,1)}else if("STUDENT"===i.delSelectItem.receiveType){var o=e.student||[],l=o.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));o.splice(l,1)}i.selectList=e,console.log(i.selectList,"forms.selectList");var u=i.receives.findIndex((function(e){return e.receiveId===i.delSelectItem.receiveId}));i.receives.splice(u,1)}},null)])}}}))}}}))}();
- >>>>>>> online:dist/assets/create-message-legacy.33d2160a.js
- =======
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,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 a(e,t,n,a,r,i,c){try{var s=e[i](c),o=s.value}catch(l){return void n(l)}s.done?t(o):Promise.resolve(o).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var c=e.apply(t,n);function s(e){a(c,r,i,s,o,"next",e)}function o(e){a(c,r,i,s,o,"throw",e)}s(void 0)}))}}var i=document.createElement("style");i.innerHTML='._searchBand_1dppi_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1dppi_1 ._bandName_1dppi_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._gridContainer_1dppi_12{margin:0 .34667rem .32rem}._gridContainer_1dppi_12 ._title_1dppi_15{font-size:.69333rem;font-weight:700;color:#333;font-family:DINA}._gridContainer_1dppi_12 ._title_1dppi_15 i{font-style:normal;font-size:.32rem;color:#333}._gridContainer_1dppi_12 ._red_1dppi_26{color:#f67146}._gridContainer_1dppi_12 ._name_1dppi_29{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_1dppi_34 ._img_1dppi_34{width:1.06667rem;height:1.06667rem;margin-right:.21333rem;border-radius:50%;overflow:hidden}._gridClass_1dppi_34 ._teacherName_1dppi_41{display:flex;align-items:center}._gridClass_1dppi_34 ._teacherName_1dppi_41 ._name_1dppi_29{padding:0;max-width:3.2rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._teacherName_1dppi_41 .van-tag{margin-left:.21333rem;height:.45333rem;border-radius:.10667rem}._gridClass_1dppi_34 ._classCheckbox_1dppi_58{display:flex;justify-content:flex-end}._gridClass_1dppi_34 ._orchestraName_1dppi_62{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem;max-width:5.86667rem}._gridClass_1dppi_34 ._title_1dppi_15{font-size:.64rem}._gridClass_1dppi_34 ._className_1dppi_72{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._className_1dppi_72 ._line_1dppi_79{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_1dppi_34 .van-grid-item:after{content:" ";position:absolute;top:50%;right:0;margin-top:-.26667rem;width:.02667rem;height:.53333rem;background:#eaeaea;border-radius:.02667rem}._gridClass_1dppi_34 .van-grid-item:last-child:after{display:none}._classCellGroup_1dppi_101{margin-bottom:.32rem;border-radius:.26667rem;overflow:hidden}._cellTeacher_bjfo6_1 ._img_bjfo6_1{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_bjfo6_1 ._name_bjfo6_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_bjfo6_1 ._class_bjfo6_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_bjfo6_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_bjfo6_1 ._checkboxValue_bjfo6_25{display:flex;justify-content:flex-end}._subjectContainer_bjfo6_29{display:flex}._subjectContainer_bjfo6_29>span{flex-shrink:0}._subjectContainer_bjfo6_29 ._tagSubject_bjfo6_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}._cellTeacher_fnv0v_1 ._img_fnv0v_1{width:1.06667rem;height:1.06667rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_fnv0v_1 ._name_fnv0v_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_fnv0v_1 ._class_fnv0v_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_fnv0v_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_fnv0v_1 ._checkboxValue_fnv0v_25{display:flex;justify-content:flex-end}._subjectContainer_fnv0v_29{display:flex}._subjectContainer_fnv0v_29>span{flex-shrink:0}._subjectContainer_fnv0v_29 ._tagSubject_fnv0v_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}\n',document.head.appendChild(i),System.register(["./index-legacy.74d0612f.js","./index-legacy.8895675d.js","./index-legacy.8574e5e7.js","./index.module-legacy.475a9872.js","./index-legacy.62e2337f.js","./icon_teacher-legacy.07765f44.js","./index-legacy.6a33e667.js","./index-legacy.e89423b9.js","./index-legacy.3c31e2dd.js","./index-legacy.53c89bb8.js","./index-legacy.5a075ae1.js","./index-legacy.699e3e6f.js","./index-legacy.fe22448d.js","./index-legacy.534c45e8.js","./index-legacy.c01aba4c.js","./index-legacy.c79dbddd.js","./index-legacy.0c0a8b69.js","./index-legacy.083a9152.js","./icon_student-legacy.6118fd72.js","./index-legacy.3efd14da.js","./index-legacy.463e6c40.js","./index-legacy.a12e4dfe.js","./index-legacy.3173d4af.js","./index-legacy.54a1992d.js","./index-legacy.db4f866f.js","./index-legacy.c75fe8a2.js","./use-tab-status-legacy.2bd37260.js","./Checker-legacy.6aef14fb.js","./index-legacy.c7f88300.js","./index-legacy.4d4ad0f8.js","./index-legacy.213b1989.js","./index-legacy.cdb20c45.js","./ImagePreview-legacy.67a6b230.js","./function-call-legacy.63ce02ac.js","./utils-legacy.781846ba.js"],(function(e){"use strict";var n,a,i,c,s,o,l,u,d,f,p,h,m,g,v,_,b,y,S,x,k,j,C,w,T,I,L,N,E,O,D,R,V,H,A,M,U,P,B,z,F,G,Y,q,W,Z,$,J;return{setters:[function(e){n=e.O},function(e){a=e.d},function(e){i=e.D,c=e.d,s=e.r,o=e.Z,l=e.$,u=e.c,d=e.q,f=e.ai,p=e.P,h=e.ak,m=e.m,g=e.f,v=e.am,_=e.B,b=e.ag,y=e.aV,S=e.ah,x=e.y,k=e.a5,j=e.aj,C=e.o},function(e){w=e.s},function(e){T=e.O},function(e){I=e.i},function(e){L=e.S},function(e){N=e.L},function(e){E=e.C},function(e){O=e.C},function(e){D=e.C},function(e){R=e.I},function(e){V=e.T},function(e){H=e.C},function(e){A=e.G,M=e.a},function(e){U=e.s,P=e.P},function(e){B=e.O},function(e){z=e.T,F=e.a},function(e){G=e.i},function(e){Y=e.O},function(e){q=e.O},function(e){W=e.O},function(e){Z=e.T},function(e){$=e.F},function(e){J=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var K=i(U),Q={searchBand:"_searchBand_1dppi_1",bandName:"_bandName_1dppi_7",gridContainer:"_gridContainer_1dppi_12",title:"_title_1dppi_15",red:"_red_1dppi_26",name:"_name_1dppi_29",gridClass:"_gridClass_1dppi_34",img:"_img_1dppi_34",teacherName:"_teacherName_1dppi_41",classCheckbox:"_classCheckbox_1dppi_58",orchestraName:"_orchestraName_1dppi_62",className:"_className_1dppi_72",line:"_line_1dppi_79",classCellGroup:"_classCellGroup_1dppi_101"};var X=c({name:"practice-class",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","confirm","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({showPopover:!1,orchestraId:null,orchestraName:null,orchestraList:[],isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{type:null,page:1,rows:20},check:[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:g.user.data.school.id,status:"DONE"}});case 3:t=e.sent,n=t.data,a=n.rows||[],r=[],a.forEach((function(e){r.push({text:e.name,value:e.id})})),i.orchestraList=[].concat(r),r.length>0&&(i.orchestraId=r[0].value,i.orchestraName=r[0].text),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isClick){e.next=3;break}return e.abrupt("return");case 3:return i.isClick=!0,e.next=6,m.post("/api-school/classGroup/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,orchestraId:i.orchestraId})});case 6:if(n=e.sent,a=n.data,i.isClick=!1,i.listState.loading=!1,r=a||{},!(i.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:i.list=i.list.concat(r.rows||[]),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isClick=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),_=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.name,avatar:""})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){b()}),{deep:!0});var b=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:return e.next=4,v();case 4:b();case 5:case"end":return e.stop()}}),e)})))),function(){var t;return u("div",{class:[Q.practiceClass,!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[i.orchestraList.length>0&&u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u("div",{class:"searchGroup-single"},[u("div",{class:["searchItem",i.showPopover?"searchItem-active":""],onClick:function(){return i.showPopover=!0}},[u("span",null,[i.orchestraName])])])]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",class:[Q.liveList],onLoad:v,immediateCheck:!1},{default:function(){return[u(E,{class:[Q.gridContainer,Q.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{class:Q.classCellGroup,onClick:function(){return _(e.id)},border:!1},{default:function(){return[u(D,{center:!0,titleStyle:{flex:"0 auto"},valueClass:Q.classCheckbox},{icon:function(){return u(R,{src:I,class:Q.img},null)},title:function(){return u("div",{class:Q.content},[u("div",{class:Q.teacherName},[u("span",{class:["van-ellipsis",Q.name]},[e.teacherName]),u(V,{type:"primary"},{default:function(){return[e.name]}})]),u("div",{class:[Q.orchestraName,"van-ellipsis"]},[e.orchestraName])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),_(e.id)}},null)}}),u(A,{border:!1,columnNum:3},{default:function(){return[u(M,null,{default:function(){return[u("p",{class:Q.title},[e.preStudentNum]),u("p",{class:Q.name},[d("学生人数")])]}}),u(M,null,{default:function(){return[u("p",{class:[Q.title]},[e.courseScheduleNum-e.completeCourseScheduleNum]),u("p",{class:Q.name},[d("剩余课时")])]}}),u(M,null,{default:function(){return[u("p",{class:Q.title},[e.courseScheduleNum]),u("p",{class:Q.name},[d("总课时")])]}})]}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无班级"},null),u(p,{show:i.showPopover,"onUpdate:show":function(e){return i.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"#select-send-message"},{default:function(){return[u(P,{columns:i.orchestraList,onCancel:function(){return i.showPopover=!1},onConfirm:function(e){i.orchestraId=e.selectedOptions[0].value,i.orchestraName=e.selectedOptions[0].text,i.showPopover=!1,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,v()}},null)]}})])}}}),ee={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};var te=c({name:"manage-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/schoolStaff/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,status:"ACTIVATION"})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"管理老师姓名/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ee.gridContainer,ee.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ee.cellTeacher,valueClass:ee.checkboxValue},{icon:function(){return u(R,{class:ee.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ee.content},[u("p",{class:[ee.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无管理老师"},null)])}}}),ne={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};function ae(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var re=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/student/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectNames?e.subjectNames.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"学员名称/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ne.gridContainer,ne.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ae(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ne.cellTeacher,valueClass:ne.checkboxValue},{icon:function(){return u(R,{class:ne.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ne.content},[u("p",{class:[ne.name,"van-ellipsis"]},[e.nickname]),u("p",{class:ne.class},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ne.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ae(e)?e:{default:function(){return[e]}})}))])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无学生"},null)])}}}),ie={cellTeacher:"_cellTeacher_fnv0v_1",img:"_img_fnv0v_1",name:"_name_fnv0v_9",class:"_class_fnv0v_16",checkboxValue:"_checkboxValue_fnv0v_25",subjectContainer:"_subjectContainer_fnv0v_29",tagSubject:"_tagSubject_fnv0v_35"};function ce(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var se=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var n=r(regeneratorRuntime.mark((function n(){var a,r,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!i.isLoad){n.next=3;break}return n.abrupt("return");case 3:return i.isLoad=!0,n.next=6,m.post("/api-school/teacher/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,removeTeacherId:e.removeTeacherId,delFlag:!1})});case 6:if(a=n.sent,i.listState.loading=!1,r=a.data||{},!(i.list.length>0&&1===r.current)){n.next=11;break}return n.abrupt("return");case 11:(c=r.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(c),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,n.next=25;break;case 20:n.prev=20,n.t0=n.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return n.stop()}}),n,null,[[0,20]])})));return function(){return n.apply(this,arguments)}}(),p=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){h()}),{deep:!0});var h=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),h()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"伴学指导姓名",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",style:{paddingTop:"12px"},onLoad:c,immediateCheck:!1},{default:function(){return[u(E,{class:[ie.gridContainer,ie.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ce(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return p(e.id)}},{default:function(){return[u(D,{center:!0,class:ie.cellTeacher,valueClass:ie.checkboxValue},{icon:function(){return u(R,{class:ie.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ie.content},[u("p",{class:[ie.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),p(e.id)}},null)}}),u(D,{center:!0},{title:function(){return u("div",{class:ie.subjectContainer},[u("span",null,[d("声部:")]),u("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ie.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ce(e)?e:{default:function(){return[e]}})}))])])}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无伴学指导"},null)])}}}),oe=c({name:"select-send",props:{selectList:{type:Object,default:function(){return{}}},selectStatus:{type:Boolean,default:!1}},emits:["close","confirm","update:selectList"],setup:function(e,t){var n=t.emit,a=s({height:"auto",bottomHeight:0,tabValue:"class",selectClass:[],selectStudent:[],selectTeacher:[],selectManage:[]}),i=function(){var e=r(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={class:a.selectClass,student:a.selectStudent,teacher:a.selectTeacher,school:a.selectManage},n("close"),n("update:selectList",t),n("confirm",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();o((function(){return e.selectList}),(function(){console.log("watch",e.selectList),c()}),{deep:!0});var c=function(){var t=e.selectList||{};a.selectClass=t.class||[],a.selectTeacher=t.teacher||[],a.selectManage=t.school||[],a.selectStudent=t.student||[]};return l((function(){var e=v(document.querySelector(".van-tab")).height;a.height=e,c(),console.log(a,"select")})),function(){return u("div",{class:w.orchestraDetail,style:{background:"#f6f6f6",minHeight:"100vh"},id:"select-send-message"},[u(z,{sticky:!0,lineWidth:20,lineHeight:4,active:a.tabValue,"onUpdate:active":function(e){return a.tabValue=e}},{default:function(){return[u(F,{title:"班级列表",name:"class"},{default:function(){return[u(X,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectClass,"onUpdate:selectItem":function(e){return a.selectClass=e}},null)]}}),u(F,{title:"学员列表",name:"student"},{default:function(){return[u(re,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectStudent,"onUpdate:selectItem":function(e){return a.selectStudent=e}},null)]}}),u(F,{title:"伴学指导",name:"teacher"},{default:function(){return[u(se,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectTeacher,"onUpdate:selectItem":function(e){return a.selectTeacher=e}},null)]}}),u(F,{title:"管理老师",name:"manage"},{default:function(){return[u(te,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectManage,"onUpdate:selectItem":function(e){return a.selectManage=e}},null)]}})]}}),u(T,{position:"bottom",onGetHeight:function(e){a.bottomHeight=e}},{default:function(){return[u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:i},{default:function(){return[d("确认")]}})])]}})])}}});e("default",c({name:"create-message",setup:function(){var e=b(),t=y(),i=s({id:t.query.id,type:"ADD",bucket:"i-m",sendStatus:!1,sendType:"IMMEDIATELY",textMessage:null,sendTime:null,sendTimeStatus:!1,maxDate:S(new Date).add(60,"day").toDate(),currentDate:[],currentTime:[S().format("HH"),S().format("mm")],attachments:[],receives:[],selectStatus:!1,selectList:{},delSelectItem:{},delStatus:!1,sureLoading:!1,updateLoading:!1,closeLoading:!1,actions:[{name:"即时发送",value:"IMMEDIATELY",selected:!0},{name:"定时发送",value:"SCHEDULED"}]}),c=function(){var t=r(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i.sendType){t.next=4;break}return C("请选择发送方式"),t.abrupt("return");case 4:if(i.textMessage){t.next=7;break}return C("请输入发送内容"),t.abrupt("return");case 7:if(!(i.receives.length<=0)){t.next=10;break}return C("请选择发送对象"),t.abrupt("return");case 10:if(n=[],i.attachments.forEach((function(e){n.push({imgUrl:e,imgMessage:e})})),a=[],i.receives.forEach((function(e){a.push({receiveType:e.receiveType,receiveId:e.receiveId})})),r={sendType:i.sendType,textMessage:i.textMessage,attachments:n,receives:a,sendTime:i.sendTime},console.log(r,"params"),i.id?i.updateLoading=!0:i.sureLoading=!0,!i.id){t.next=23;break}return r.id=i.id,t.next=21,m.post("/api-school/imMessageBatchSending/update",{hideLoading:!1,data:r});case 21:t.next=25;break;case 23:return t.next=25,m.post("/api-school/imMessageBatchSending/save",{hideLoading:!1,data:r});case 25:e.back(),i.sureLoading=!1,i.updateLoading=!1,t.next=34;break;case 30:t.prev=30,t.t0=t.catch(0),i.sureLoading=!1,i.updateLoading=!1;case 34:case"end":return t.stop()}}),t,null,[[0,30]])})));return function(){return t.apply(this,arguments)}}(),o=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i.id){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m.get("/api-school/imMessageBatchSending/detail/"+i.id);case 5:t=e.sent,n=t.data,i.sendType=n.sendType,i.textMessage=n.textMessage,i.sendTime=n.sendTime,i.type=n.sendStatus,a=n.receives||[],r={class:[],teacher:[],student:[],school:[]},a.forEach((function(e){var t={receiveType:e.receiveType,receiveId:e.receiveId,receiveName:e.receiveName,avatar:e.avatar};i.receives.push(t);var n={id:e.receiveId,value:e.receiveName,avatar:e.avatar};"CLASS"===e.receiveType?r.class.push(n):"STUDENT"===e.receiveType?r.student.push(n):"TEACHER"===e.receiveType?r.teacher.push(n):"SCHOOL"===e.receiveType&&r.school.push(n)})),i.selectList=r,c=n.attachments||[],s=[],c.forEach((function(e){s.push(e.imgUrl||e.imgMessage)})),i.attachments=s,e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),console.log(e.t0,"e");case 24:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(){return e.apply(this,arguments)}}(),f=x((function(){return"SEND"===i.type})),h=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i.closeLoading=!0,t.next=4,m.post("/api-school/imMessageBatchSending/remove",{requestType:"form",hideLoading:!1,data:{id:i.id}});case 4:setTimeout((function(){C("撤销成功")}),100),setTimeout((function(){e.back(),i.closeLoading=!1}),1100),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),i.closeLoading=!1;case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}();return l((function(){o()})),function(){return u("div",{class:w["create-message"]},[u(O,{inset:!0,class:w.cellGroup},{default:function(){return[u($,{inputAlign:"right",label:"发送方式",modelValue:a[i.sendType],placeholder:"请选择发送方式",onClick:function(){f.value||(i.sendStatus=!0)},readonly:!0,isLink:!f.value,class:w.inputForm},null),"SCHEDULED"===i.sendType&&u($,{inputAlign:"right",label:"发送时间",modelValue:i.sendTime,placeholder:"请选择发送时间",onClick:function(){f.value||(i.sendTimeStatus=!0)},readonly:!0,isLink:!0,class:w.inputForm},null),u(D,{title:"发送内容"},{label:function(){return u($,{style:{padding:"0",marginTop:"12px"},placeholder:"请输入发送内容",modelValue:i.textMessage,"onUpdate:modelValue":function(e){return i.textMessage=e},type:"textarea",rows:3,showWordLimit:!0,maxlength:400,readonly:f.value},null)}}),u(D,{title:"上传附件"},{label:function(){return u(W,{modelValue:i.attachments,"onUpdate:modelValue":function(e){return i.attachments=e},maxCount:9,bucket:i.bucket,disabled:f.value},null)}}),u($,{label:"发送对象",readonly:!0,inputAlign:"right",class:w.sendObjPlaceholder,placeholder:f.value?"":"请选择发送对象",isLink:!f.value,border:!1,onClick:function(){f.value||(i.selectStatus=!0)}},null),i.receives.map((function(e){var t=G;return"CLASS"===e.receiveType?t="./assets/icon_jiaofu.97430aa5.png":"STUDENT"===e.receiveType?t=G:"TEACHER"!==e.receiveType&&"SCHOOL"!==e.receiveType||(t=I),u(D,{class:w.receives,title:e.receiveName,center:!0,border:!1},{icon:function(){return u(R,{class:w.img,src:e.avatar||t},null)},extra:function(){return!f.value&&u(k,{name:"clear",color:"#d7d7d7",size:20,onClick:function(){i.delSelectItem=e,i.delStatus=!0}},null)}})}))]}}),u(T,{position:"bottom"},{default:function(){return["ADD"===i.type&&u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:c,disabled:i.sureLoading},{default:function(){return[d("确认发送")]}})]),"WAIT"===i.type&&u("div",{class:["btnGroup","btnMore"]},[u(_,{round:!0,type:"primary",onClick:c,disabled:i.updateLoading},{default:function(){return[d("修改")]}}),u(_,{round:!0,color:"#64A9FF",onClick:h,disabled:i.closeLoading},{default:function(){return[d("撤销")]}})])]}}),u(q,{show:i.sendStatus,"onUpdate:show":function(e){return i.sendStatus=e},actions:i.actions,onSelect:function(e){i.actions.forEach((function(e){e.selected=!1})),e.selected=!0,i.sendType=e.value,i.sendStatus=!1}},null),u(p,{show:i.sendTimeStatus,"onUpdate:show":function(e){return i.sendTimeStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(K,{title:"发送时间",tabs:["选择日期","选择时间"],onCancel:function(){return i.sendTimeStatus=!1},onConfirm:function(e){var t=e[0].selectedValues.join("-"),n=e[1].selectedValues.join(":");i.sendTime=S(t+" "+n).format("YYYY-MM-DD HH:mm:ss"),i.sendTimeStatus=!1}},{default:function(){return[u(J,{minDate:new Date,maxDate:i.maxDate,modelValue:i.currentDate,"onUpdate:modelValue":function(e){return i.currentDate=e},formatter:j},null),u(Z,{modelValue:i.currentTime,"onUpdate:modelValue":function(e){return i.currentTime=e},formatter:function(e,t){return"hour"===e&&(t.text+="时"),"minute"===e&&(t.text+="分"),t}},null)]}})]}}),u(n,{modelValue:i.selectStatus,"onUpdate:modelValue":function(e){return i.selectStatus=e}},{default:function(){return[u(oe,{selectList:i.selectList,"onUpdate:selectList":function(e){return i.selectList=e},onClose:function(){return i.selectStatus=!1},onConfirm:function(e){var t=e.class||[],n=e.student||[],a=e.teacher||[],r=e.school||[],c=[];t.forEach((function(e){c.push({receiveType:"CLASS",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),n.forEach((function(e){c.push({receiveType:"STUDENT",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),a.forEach((function(e){c.push({receiveType:"TEACHER",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),r.forEach((function(e){c.push({receiveType:"SCHOOL",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),i.receives=c}},null)]}}),u(Y,{show:i.delStatus,"onUpdate:show":function(e){return i.delStatus=e},showCancelButton:!0,message:"您是否删除该数据",onConfirm:function(){var e=i.selectList;if("CLASS"===i.delSelectItem.receiveType){var t=e.class||[],n=t.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));t.splice(n,1)}else if("SCHOOL"===i.delSelectItem.receiveType){var a=e.school||[],r=a.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));a.splice(r,1)}else if("TEACHER"===i.delSelectItem.receiveType){var c=e.teacher||[],s=c.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));c.splice(s,1)}else if("STUDENT"===i.delSelectItem.receiveType){var o=e.student||[],l=o.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));o.splice(l,1)}i.selectList=e,console.log(i.selectList,"forms.selectList");var u=i.receives.findIndex((function(e){return e.receiveId===i.delSelectItem.receiveId}));i.receives.splice(u,1)}},null)])}}}))}}}))}();
- >>>>>>> online:dist/assets/create-message-legacy.7a836c71.js
- =======
- !function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function t(t){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%2?e(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):e(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,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 a(e,t,n,a,r,i,c){try{var s=e[i](c),o=s.value}catch(l){return void n(l)}s.done?t(o):Promise.resolve(o).then(a,r)}function r(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var c=e.apply(t,n);function s(e){a(c,r,i,s,o,"next",e)}function o(e){a(c,r,i,s,o,"throw",e)}s(void 0)}))}}var i=document.createElement("style");i.innerHTML='._searchBand_1dppi_1{display:inline-block;font-size:.37333rem;font-weight:600;color:#333}._searchBand_1dppi_1 ._bandName_1dppi_7{display:inline-block;max-width:4.8rem;vertical-align:text-top}._gridContainer_1dppi_12{margin:0 .34667rem .32rem}._gridContainer_1dppi_12 ._title_1dppi_15{font-size:.69333rem;font-weight:700;color:#333;font-family:DINA}._gridContainer_1dppi_12 ._title_1dppi_15 i{font-style:normal;font-size:.32rem;color:#333}._gridContainer_1dppi_12 ._red_1dppi_26{color:#f67146}._gridContainer_1dppi_12 ._name_1dppi_29{padding-top:.21333rem;font-size:.32rem;color:#777}._gridClass_1dppi_34 ._img_1dppi_34{width:1.06667rem;height:1.06667rem;margin-right:.21333rem;border-radius:50%;overflow:hidden}._gridClass_1dppi_34 ._teacherName_1dppi_41{display:flex;align-items:center}._gridClass_1dppi_34 ._teacherName_1dppi_41 ._name_1dppi_29{padding:0;max-width:3.2rem;font-size:.42667rem;font-weight:600;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._teacherName_1dppi_41 .van-tag{margin-left:.21333rem;height:.45333rem;border-radius:.10667rem}._gridClass_1dppi_34 ._classCheckbox_1dppi_58{display:flex;justify-content:flex-end}._gridClass_1dppi_34 ._orchestraName_1dppi_62{padding-top:.08rem;font-size:.32rem;color:#777;line-height:.45333rem;max-width:5.86667rem}._gridClass_1dppi_34 ._title_1dppi_15{font-size:.64rem}._gridClass_1dppi_34 ._className_1dppi_72{padding:.45333rem .4rem 0;font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem}._gridClass_1dppi_34 ._className_1dppi_72 ._line_1dppi_79{display:inline-block;width:.10667rem;height:.32rem;background:#ff8057;border-radius:.08rem;margin-right:.16rem}._gridClass_1dppi_34 .van-grid-item:after{content:" ";position:absolute;top:50%;right:0;margin-top:-.26667rem;width:.02667rem;height:.53333rem;background:#eaeaea;border-radius:.02667rem}._gridClass_1dppi_34 .van-grid-item:last-child:after{display:none}._classCellGroup_1dppi_101{margin-bottom:.32rem;border-radius:.26667rem;overflow:hidden}._cellTeacher_bjfo6_1 ._img_bjfo6_1{width:1.28rem;height:1.28rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_bjfo6_1 ._name_bjfo6_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_bjfo6_1 ._class_bjfo6_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_bjfo6_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_bjfo6_1 ._checkboxValue_bjfo6_25{display:flex;justify-content:flex-end}._subjectContainer_bjfo6_29{display:flex}._subjectContainer_bjfo6_29>span{flex-shrink:0}._subjectContainer_bjfo6_29 ._tagSubject_bjfo6_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}._cellTeacher_fnv0v_1 ._img_fnv0v_1{width:1.06667rem;height:1.06667rem;overflow:hidden;border-radius:50%;margin-right:.32rem;flex-shrink:0}._cellTeacher_fnv0v_1 ._name_fnv0v_9{font-size:.42667rem;font-weight:500;color:#333;line-height:.58667rem;max-width:3.2rem}._cellTeacher_fnv0v_1 ._class_fnv0v_16{font-size:.32rem;color:#777;line-height:.45333rem}._cellTeacher_fnv0v_1 .van-tag{margin-top:.08rem;margin-right:.21333rem}._cellTeacher_fnv0v_1 ._checkboxValue_fnv0v_25{display:flex;justify-content:flex-end}._subjectContainer_fnv0v_29{display:flex}._subjectContainer_fnv0v_29>span{flex-shrink:0}._subjectContainer_fnv0v_29 ._tagSubject_fnv0v_35{margin-right:.26667rem;margin-top:.05333rem;margin-bottom:.05333rem;padding:.02667rem .21333rem}\n',document.head.appendChild(i),System.register(["./index-legacy.ba28a2db.js","./index-legacy.8895675d.js","./index-legacy.a92e643d.js","./index.module-legacy.475a9872.js","./index-legacy.65752d39.js","./icon_teacher-legacy.07765f44.js","./index-legacy.bc84a52d.js","./index-legacy.b4a3c575.js","./index-legacy.998a77d9.js","./index-legacy.8e1720d1.js","./index-legacy.0d047717.js","./index-legacy.6869fc07.js","./index-legacy.831a92bb.js","./index-legacy.221756d5.js","./index-legacy.c69590ad.js","./index-legacy.cc3fad08.js","./index-legacy.2330764e.js","./index-legacy.27d657eb.js","./icon_student-legacy.6118fd72.js","./index-legacy.c2450734.js","./index-legacy.5b2edfdc.js","./index-legacy.708ab15f.js","./index-legacy.94591a42.js","./index-legacy.6adde0c8.js","./index-legacy.f41ddbcc.js","./index-legacy.c75fe8a2.js","./use-tab-status-legacy.65eb7e66.js","./Checker-legacy.5f742c67.js","./index-legacy.b0b9cbe9.js","./index-legacy.40c60053.js","./index-legacy.9ce9bf81.js","./index-legacy.5f19e333.js","./ImagePreview-legacy.eb0fb15a.js","./function-call-legacy.5e5f8f6a.js","./utils-legacy.8b4197ad.js"],(function(e){"use strict";var n,a,i,c,s,o,l,u,d,f,p,h,m,g,v,_,b,y,S,x,k,j,C,w,T,I,L,N,E,O,D,R,V,H,A,M,U,P,B,z,F,G,Y,q,W,Z,$,J;return{setters:[function(e){n=e.O},function(e){a=e.d},function(e){i=e.D,c=e.d,s=e.r,o=e.Z,l=e.$,u=e.c,d=e.q,f=e.ai,p=e.P,h=e.ak,m=e.m,g=e.f,v=e.am,_=e.B,b=e.ag,y=e.aV,S=e.ah,x=e.y,k=e.a5,j=e.aj,C=e.o},function(e){w=e.s},function(e){T=e.O},function(e){I=e.i},function(e){L=e.S},function(e){N=e.L},function(e){E=e.C},function(e){O=e.C},function(e){D=e.C},function(e){R=e.I},function(e){V=e.T},function(e){H=e.C},function(e){A=e.G,M=e.a},function(e){U=e.s,P=e.P},function(e){B=e.O},function(e){z=e.T,F=e.a},function(e){G=e.i},function(e){Y=e.O},function(e){q=e.O},function(e){W=e.O},function(e){Z=e.T},function(e){$=e.F},function(e){J=e.D},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var K=i(U),Q={searchBand:"_searchBand_1dppi_1",bandName:"_bandName_1dppi_7",gridContainer:"_gridContainer_1dppi_12",title:"_title_1dppi_15",red:"_red_1dppi_26",name:"_name_1dppi_29",gridClass:"_gridClass_1dppi_34",img:"_img_1dppi_34",teacherName:"_teacherName_1dppi_41",classCheckbox:"_classCheckbox_1dppi_58",orchestraName:"_orchestraName_1dppi_62",className:"_className_1dppi_72",line:"_line_1dppi_79",classCellGroup:"_classCellGroup_1dppi_101"};var X=c({name:"practice-class",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","confirm","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({showPopover:!1,orchestraId:null,orchestraName:null,orchestraList:[],isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{type:null,page:1,rows:20},check:[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,m.post("/api-school/orchestra/page",{data:{page:1,rows:100,schoolId:g.user.data.school.id,status:"DONE"}});case 3:t=e.sent,n=t.data,a=n.rows||[],r=[],a.forEach((function(e){r.push({text:e.name,value:e.id})})),i.orchestraList=[].concat(r),r.length>0&&(i.orchestraId=r[0].value,i.orchestraName=r[0].text),e.next=14;break;case 12:e.prev=12,e.t0=e.catch(0);case 14:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),v=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isClick){e.next=3;break}return e.abrupt("return");case 3:return i.isClick=!0,e.next=6,m.post("/api-school/classGroup/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,orchestraId:i.orchestraId})});case 6:if(n=e.sent,a=n.data,i.isClick=!1,i.listState.loading=!1,r=a||{},!(i.list.length>0&&1===r.current)){e.next=13;break}return e.abrupt("return");case 13:i.list=i.list.concat(r.rows||[]),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,e.next=24;break;case 19:e.prev=19,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isClick=!1;case 24:case"end":return e.stop()}}),e,null,[[0,19]])})));return function(){return e.apply(this,arguments)}}(),_=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.name,avatar:""})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){b()}),{deep:!0});var b=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l(r(regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,c();case 2:return e.next=4,v();case 4:b();case 5:case"end":return e.stop()}}),e)})))),function(){var t;return u("div",{class:[Q.practiceClass,!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[i.orchestraList.length>0&&u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u("div",{class:"searchGroup-single"},[u("div",{class:["searchItem",i.showPopover?"searchItem-active":""],onClick:function(){return i.showPopover=!0}},[u("span",null,[i.orchestraName])])])]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",class:[Q.liveList],onLoad:v,immediateCheck:!1},{default:function(){return[u(E,{class:[Q.gridContainer,Q.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{class:Q.classCellGroup,onClick:function(){return _(e.id)},border:!1},{default:function(){return[u(D,{center:!0,titleStyle:{flex:"0 auto"},valueClass:Q.classCheckbox},{icon:function(){return u(R,{src:I,class:Q.img},null)},title:function(){return u("div",{class:Q.content},[u("div",{class:Q.teacherName},[u("span",{class:["van-ellipsis",Q.name]},[e.teacherName]),u(V,{type:"primary"},{default:function(){return[e.name]}})]),u("div",{class:[Q.orchestraName,"van-ellipsis"]},[e.orchestraName])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),_(e.id)}},null)}}),u(A,{border:!1,columnNum:3},{default:function(){return[u(M,null,{default:function(){return[u("p",{class:Q.title},[e.preStudentNum]),u("p",{class:Q.name},[d("学生人数")])]}}),u(M,null,{default:function(){return[u("p",{class:[Q.title]},[e.courseScheduleNum-e.completeCourseScheduleNum]),u("p",{class:Q.name},[d("剩余课时")])]}}),u(M,null,{default:function(){return[u("p",{class:Q.title},[e.courseScheduleNum]),u("p",{class:Q.name},[d("总课时")])]}})]}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无班级"},null),u(p,{show:i.showPopover,"onUpdate:show":function(e){return i.showPopover=e},position:"bottom",round:!0,class:"popupBottomSearch",teleport:"#select-send-message"},{default:function(){return[u(P,{columns:i.orchestraList,onCancel:function(){return i.showPopover=!1},onConfirm:function(e){i.orchestraId=e.selectedOptions[0].value,i.orchestraName=e.selectedOptions[0].text,i.showPopover=!1,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,v()}},null)]}})])}}}),ee={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};var te=c({name:"manage-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/schoolStaff/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,status:"ACTIVATION"})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"管理老师姓名/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ee.gridContainer,ee.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},(e=t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ee.cellTeacher,valueClass:ee.checkboxValue},{icon:function(){return u(R,{class:ee.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ee.content},[u("p",{class:[ee.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})),"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)?t:{default:function(){return[t]}}))];var e}}):u(f,{btnStatus:!1,tips:"暂无管理老师"},null)])}}}),ne={cellTeacher:"_cellTeacher_bjfo6_1",img:"_img_bjfo6_1",name:"_name_bjfo6_9",class:"_class_bjfo6_16",checkboxValue:"_checkboxValue_bjfo6_25",subjectContainer:"_subjectContainer_bjfo6_29",tagSubject:"_tagSubject_bjfo6_35"};function ae(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var re=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var e=r(regeneratorRuntime.mark((function e(){var n,a,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,!i.isLoad){e.next=3;break}return e.abrupt("return");case 3:return i.isLoad=!0,e.next=6,m.post("/api-school/student/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id})});case 6:if(n=e.sent,i.listState.loading=!1,a=n.data||{},!(i.list.length>0&&1===a.current)){e.next=11;break}return e.abrupt("return");case 11:(r=a.rows||[]).forEach((function(e){e.subjectNames=e.subjectNames?e.subjectNames.split(","):[]})),i.list=i.list.concat(r),i.listState.finished=a.current>=a.pages,i.params.page=a.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,e.next=25;break;case 20:e.prev=20,e.t0=e.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return e.stop()}}),e,null,[[0,20]])})));return function(){return e.apply(this,arguments)}}(),d=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){p()}),{deep:!0});var p=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),p()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"学员名称/手机号",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",onLoad:c,style:{paddingTop:"12px"},immediateCheck:!1},{default:function(){return[u(E,{class:[ne.gridContainer,ne.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ae(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return d(e.id)}},{default:function(){return[u(D,{center:!0,class:ne.cellTeacher,valueClass:ne.checkboxValue},{icon:function(){return u(R,{class:ne.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ne.content},[u("p",{class:[ne.name,"van-ellipsis"]},[e.nickname]),u("p",{class:ne.class},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ne.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ae(e)?e:{default:function(){return[e]}})}))])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),d(e.id)}},null)}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无学生"},null)])}}}),ie={cellTeacher:"_cellTeacher_fnv0v_1",img:"_img_fnv0v_1",name:"_name_fnv0v_9",class:"_class_fnv0v_16",checkboxValue:"_checkboxValue_fnv0v_25",subjectContainer:"_subjectContainer_fnv0v_29",tagSubject:"_tagSubject_fnv0v_35"};function ce(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!h(e)}var se=c({name:"teacher-list",props:{height:{type:[String,Number],default:"auto"},bottomHeight:{type:[String,Number],default:0},removeTeacherId:{type:String,default:""},subjectIdList:{type:Array,default:function(){return[]}},selectItem:{type:Array,default:function(){return[]}}},emits:["close","select","update:selectItem"],setup:function(e,n){n.slots,n.attrs;var a=n.emit,i=s({teacherStatus:!1,isLoad:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1},params:{keyword:null,subjectIdList:e.subjectIdList,page:1,rows:20},check:e.selectItem||[],checkboxRefs:[]}),c=function(){var n=r(regeneratorRuntime.mark((function n(){var a,r,c;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!i.isLoad){n.next=3;break}return n.abrupt("return");case 3:return i.isLoad=!0,n.next=6,m.post("/api-school/teacher/page",{data:t(t({},i.params),{},{schoolId:g.user.data.school.id,removeTeacherId:e.removeTeacherId,delFlag:!1})});case 6:if(a=n.sent,i.listState.loading=!1,r=a.data||{},!(i.list.length>0&&1===r.current)){n.next=11;break}return n.abrupt("return");case 11:(c=r.rows||[]).forEach((function(e){e.subjectNames=e.subjectName?e.subjectName.split(","):[]})),i.list=i.list.concat(c),i.listState.finished=r.current>=r.pages,i.params.page=r.current+1,i.listState.dataShow=i.list.length>0,i.isLoad=!1,n.next=25;break;case 20:n.prev=20,n.t0=n.catch(0),i.listState.dataShow=!1,i.listState.finished=!0,i.isLoad=!1;case 25:case"end":return n.stop()}}),n,null,[[0,20]])})));return function(){return n.apply(this,arguments)}}(),p=function(e){i.checkboxRefs[e].toggle();var t=[];i.list.forEach((function(e){i.check.includes(e.id)&&t.push({id:e.id,value:e.nickname,avatar:e.avatar})})),a("update:selectItem",t)};o((function(){return e.selectItem}),(function(){h()}),{deep:!0});var h=function(){var t=e.selectItem||[],n=[];t.forEach((function(e){n.push(e.id)})),i.check=n};return l((function(){c(),h()})),function(){var t;return u("div",{class:[!i.listState.dataShow&&"emptyRootContainer"],style:{"min-height":"calc(100vh - ".concat(e.height,"px - ").concat(e.bottomHeight,"px)")}},[u(L,{position:"top",offsetTop:e.height,style:{width:"100%"}},{default:function(){return[u(B,{placeholder:"伴学指导姓名",onSearch:function(e){i.params.keyword=e,i.params.page=1,i.list=[],i.listState.dataShow=!0,i.listState.loading=!1,i.listState.finished=!1,c()}},null)]}}),i.listState.dataShow?u(N,{finished:i.listState.finished,finishedText:" ",style:{paddingTop:"12px"},onLoad:c,immediateCheck:!1},{default:function(){return[u(E,{class:[ie.gridContainer,ie.gridClass],modelValue:i.check,"onUpdate:modelValue":function(e){return i.check=e}},ce(t=i.list.map((function(e){return u(O,{inset:!0,style:{marginBottom:"12px"},onClick:function(){return p(e.id)}},{default:function(){return[u(D,{center:!0,class:ie.cellTeacher,valueClass:ie.checkboxValue},{icon:function(){return u(R,{class:ie.img,src:e.avatar||I,fit:"cover"},null)},title:function(){return u("div",{class:ie.content},[u("p",{class:[ie.name,"van-ellipsis"]},[e.nickname])])},value:function(){return u(H,{name:e.id,ref:function(t){return i.checkboxRefs[e.id]=t},onClick:function(t){t.preventDefault(),t.stopPropagation(),p(e.id)}},null)}}),u(D,{center:!0},{title:function(){return u("div",{class:ie.subjectContainer},[u("span",null,[d("声部:")]),u("div",{style:{display:"flex",alignItems:"center",flexWrap:"wrap"}},[e.subjectNames&&e.subjectNames.map((function(e){return u(V,{type:"primary",class:ie.tagSubject,color:"#FFE7DA",textColor:"#F67146"},ce(e)?e:{default:function(){return[e]}})}))])])}})]}})})))?t:{default:function(){return[t]}})]}}):u(f,{btnStatus:!1,tips:"暂无伴学指导"},null)])}}}),oe=c({name:"select-send",props:{selectList:{type:Object,default:function(){return{}}},selectStatus:{type:Boolean,default:!1}},emits:["close","confirm","update:selectList"],setup:function(e,t){var n=t.emit,a=s({height:"auto",bottomHeight:0,tabValue:"class",selectClass:[],selectStudent:[],selectTeacher:[],selectManage:[]}),i=function(){var e=r(regeneratorRuntime.mark((function e(){var t;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t={class:a.selectClass,student:a.selectStudent,teacher:a.selectTeacher,school:a.selectManage},n("close"),n("update:selectList",t),n("confirm",t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();o((function(){return e.selectList}),(function(){console.log("watch",e.selectList),c()}),{deep:!0});var c=function(){var t=e.selectList||{};a.selectClass=t.class||[],a.selectTeacher=t.teacher||[],a.selectManage=t.school||[],a.selectStudent=t.student||[]};return l((function(){var e=v(document.querySelector(".van-tab")).height;a.height=e,c(),console.log(a,"select")})),function(){return u("div",{class:w.orchestraDetail,style:{background:"#f6f6f6",minHeight:"100vh"},id:"select-send-message"},[u(z,{sticky:!0,lineWidth:20,lineHeight:4,active:a.tabValue,"onUpdate:active":function(e){return a.tabValue=e}},{default:function(){return[u(F,{title:"班级列表",name:"class"},{default:function(){return[u(X,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectClass,"onUpdate:selectItem":function(e){return a.selectClass=e}},null)]}}),u(F,{title:"学员列表",name:"student"},{default:function(){return[u(re,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectStudent,"onUpdate:selectItem":function(e){return a.selectStudent=e}},null)]}}),u(F,{title:"伴学指导",name:"teacher"},{default:function(){return[u(se,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectTeacher,"onUpdate:selectItem":function(e){return a.selectTeacher=e}},null)]}}),u(F,{title:"管理老师",name:"manage"},{default:function(){return[u(te,{height:a.height,bottomHeight:a.bottomHeight,selectItem:a.selectManage,"onUpdate:selectItem":function(e){return a.selectManage=e}},null)]}})]}}),u(T,{position:"bottom",onGetHeight:function(e){a.bottomHeight=e}},{default:function(){return[u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:i},{default:function(){return[d("确认")]}})])]}})])}}});e("default",c({name:"create-message",setup:function(){var e=b(),t=y(),i=s({id:t.query.id,type:"ADD",bucket:"i-m",sendStatus:!1,sendType:"IMMEDIATELY",textMessage:null,sendTime:null,sendTimeStatus:!1,maxDate:S(new Date).add(60,"day").toDate(),currentDate:[],currentTime:[S().format("HH"),S().format("mm")],attachments:[],receives:[],selectStatus:!1,selectList:{},delSelectItem:{},delStatus:!1,sureLoading:!1,updateLoading:!1,closeLoading:!1,actions:[{name:"即时发送",value:"IMMEDIATELY",selected:!0},{name:"定时发送",value:"SCHEDULED"}]}),c=function(){var t=r(regeneratorRuntime.mark((function t(){var n,a,r;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i.sendType){t.next=4;break}return C("请选择发送方式"),t.abrupt("return");case 4:if(i.textMessage){t.next=7;break}return C("请输入发送内容"),t.abrupt("return");case 7:if(!(i.receives.length<=0)){t.next=10;break}return C("请选择发送对象"),t.abrupt("return");case 10:if(n=[],i.attachments.forEach((function(e){n.push({imgUrl:e,imgMessage:e})})),a=[],i.receives.forEach((function(e){a.push({receiveType:e.receiveType,receiveId:e.receiveId})})),r={sendType:i.sendType,textMessage:i.textMessage,attachments:n,receives:a,sendTime:i.sendTime},console.log(r,"params"),i.id?i.updateLoading=!0:i.sureLoading=!0,!i.id){t.next=23;break}return r.id=i.id,t.next=21,m.post("/api-school/imMessageBatchSending/update",{hideLoading:!1,data:r});case 21:t.next=25;break;case 23:return t.next=25,m.post("/api-school/imMessageBatchSending/save",{hideLoading:!1,data:r});case 25:e.back(),i.sureLoading=!1,i.updateLoading=!1,t.next=34;break;case 30:t.prev=30,t.t0=t.catch(0),i.sureLoading=!1,i.updateLoading=!1;case 34:case"end":return t.stop()}}),t,null,[[0,30]])})));return function(){return t.apply(this,arguments)}}(),o=function(){var e=r(regeneratorRuntime.mark((function e(){var t,n,a,r,c,s;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,i.id){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,m.get("/api-school/imMessageBatchSending/detail/"+i.id);case 5:t=e.sent,n=t.data,i.sendType=n.sendType,i.textMessage=n.textMessage,i.sendTime=n.sendTime,i.type=n.sendStatus,a=n.receives||[],r={class:[],teacher:[],student:[],school:[]},a.forEach((function(e){var t={receiveType:e.receiveType,receiveId:e.receiveId,receiveName:e.receiveName,avatar:e.avatar};i.receives.push(t);var n={id:e.receiveId,value:e.receiveName,avatar:e.avatar};"CLASS"===e.receiveType?r.class.push(n):"STUDENT"===e.receiveType?r.student.push(n):"TEACHER"===e.receiveType?r.teacher.push(n):"SCHOOL"===e.receiveType&&r.school.push(n)})),i.selectList=r,c=n.attachments||[],s=[],c.forEach((function(e){s.push(e.imgUrl||e.imgMessage)})),i.attachments=s,e.next=24;break;case 21:e.prev=21,e.t0=e.catch(0),console.log(e.t0,"e");case 24:case"end":return e.stop()}}),e,null,[[0,21]])})));return function(){return e.apply(this,arguments)}}(),f=x((function(){return"SEND"===i.type})),h=function(){var t=r(regeneratorRuntime.mark((function t(){return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,i.closeLoading=!0,t.next=4,m.post("/api-school/imMessageBatchSending/remove",{requestType:"form",hideLoading:!1,data:{id:i.id}});case 4:setTimeout((function(){C("撤销成功")}),100),setTimeout((function(){e.back(),i.closeLoading=!1}),1100),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),i.closeLoading=!1;case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}();return l((function(){o()})),function(){return u("div",{class:w["create-message"]},[u(O,{inset:!0,class:w.cellGroup},{default:function(){return[u($,{inputAlign:"right",label:"发送方式",modelValue:a[i.sendType],placeholder:"请选择发送方式",onClick:function(){f.value||(i.sendStatus=!0)},readonly:!0,isLink:!f.value,class:w.inputForm},null),"SCHEDULED"===i.sendType&&u($,{inputAlign:"right",label:"发送时间",modelValue:i.sendTime,placeholder:"请选择发送时间",onClick:function(){f.value||(i.sendTimeStatus=!0)},readonly:!0,isLink:!0,class:w.inputForm},null),u(D,{title:"发送内容"},{label:function(){return u($,{style:{padding:"0",marginTop:"12px"},placeholder:"请输入发送内容",modelValue:i.textMessage,"onUpdate:modelValue":function(e){return i.textMessage=e},type:"textarea",rows:3,showWordLimit:!0,maxlength:400,readonly:f.value},null)}}),u(D,{title:"上传附件"},{label:function(){return u(W,{modelValue:i.attachments,"onUpdate:modelValue":function(e){return i.attachments=e},maxCount:9,bucket:i.bucket,disabled:f.value},null)}}),u($,{label:"发送对象",readonly:!0,inputAlign:"right",class:w.sendObjPlaceholder,placeholder:f.value?"":"请选择发送对象",isLink:!f.value,border:!1,onClick:function(){f.value||(i.selectStatus=!0)}},null),i.receives.map((function(e){var t=G;return"CLASS"===e.receiveType?t="./assets/icon_jiaofu.97430aa5.png":"STUDENT"===e.receiveType?t=G:"TEACHER"!==e.receiveType&&"SCHOOL"!==e.receiveType||(t=I),u(D,{class:w.receives,title:e.receiveName,center:!0,border:!1},{icon:function(){return u(R,{class:w.img,src:e.avatar||t},null)},extra:function(){return!f.value&&u(k,{name:"clear",color:"#d7d7d7",size:20,onClick:function(){i.delSelectItem=e,i.delStatus=!0}},null)}})}))]}}),u(T,{position:"bottom"},{default:function(){return["ADD"===i.type&&u("div",{class:"btnGroup"},[u(_,{round:!0,block:!0,type:"primary",onClick:c,disabled:i.sureLoading},{default:function(){return[d("确认发送")]}})]),"WAIT"===i.type&&u("div",{class:["btnGroup","btnMore"]},[u(_,{round:!0,type:"primary",onClick:c,disabled:i.updateLoading},{default:function(){return[d("修改")]}}),u(_,{round:!0,color:"#64A9FF",onClick:h,disabled:i.closeLoading},{default:function(){return[d("撤销")]}})])]}}),u(q,{show:i.sendStatus,"onUpdate:show":function(e){return i.sendStatus=e},actions:i.actions,onSelect:function(e){i.actions.forEach((function(e){e.selected=!1})),e.selected=!0,i.sendType=e.value,i.sendStatus=!1}},null),u(p,{show:i.sendTimeStatus,"onUpdate:show":function(e){return i.sendTimeStatus=e},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[u(K,{title:"发送时间",tabs:["选择日期","选择时间"],onCancel:function(){return i.sendTimeStatus=!1},onConfirm:function(e){var t=e[0].selectedValues.join("-"),n=e[1].selectedValues.join(":");i.sendTime=S(t+" "+n).format("YYYY-MM-DD HH:mm:ss"),i.sendTimeStatus=!1}},{default:function(){return[u(J,{minDate:new Date,maxDate:i.maxDate,modelValue:i.currentDate,"onUpdate:modelValue":function(e){return i.currentDate=e},formatter:j},null),u(Z,{modelValue:i.currentTime,"onUpdate:modelValue":function(e){return i.currentTime=e},formatter:function(e,t){return"hour"===e&&(t.text+="时"),"minute"===e&&(t.text+="分"),t}},null)]}})]}}),u(n,{modelValue:i.selectStatus,"onUpdate:modelValue":function(e){return i.selectStatus=e}},{default:function(){return[u(oe,{selectList:i.selectList,"onUpdate:selectList":function(e){return i.selectList=e},onClose:function(){return i.selectStatus=!1},onConfirm:function(e){var t=e.class||[],n=e.student||[],a=e.teacher||[],r=e.school||[],c=[];t.forEach((function(e){c.push({receiveType:"CLASS",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),n.forEach((function(e){c.push({receiveType:"STUDENT",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),a.forEach((function(e){c.push({receiveType:"TEACHER",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),r.forEach((function(e){c.push({receiveType:"SCHOOL",receiveId:e.id,receiveName:e.value,avatar:e.avatar})})),i.receives=c}},null)]}}),u(Y,{show:i.delStatus,"onUpdate:show":function(e){return i.delStatus=e},showCancelButton:!0,message:"您是否删除该数据",onConfirm:function(){var e=i.selectList;if("CLASS"===i.delSelectItem.receiveType){var t=e.class||[],n=t.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));t.splice(n,1)}else if("SCHOOL"===i.delSelectItem.receiveType){var a=e.school||[],r=a.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));a.splice(r,1)}else if("TEACHER"===i.delSelectItem.receiveType){var c=e.teacher||[],s=c.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));c.splice(s,1)}else if("STUDENT"===i.delSelectItem.receiveType){var o=e.student||[],l=o.findIndex((function(e){return e.id===i.delSelectItem.receiveId}));o.splice(l,1)}i.selectList=e,console.log(i.selectList,"forms.selectList");var u=i.receives.findIndex((function(e){return e.receiveId===i.delSelectItem.receiveId}));i.receives.splice(u,1)}},null)])}}}))}}}))}();
- >>>>>>> manage-cicle:dist/assets/create-message-legacy.8f9cffd7.js
|