import { P as c } from './index-f397473a.js'; import { C as f } from './index-c8870a16.js'; import { T as C } from './index-a585796f.js'; import { d as h, e as y, f as e, Q as d, j as l, k as u, N as _, g as b, m as E, n as g } from './index-95e721f9.js'; import { l as S } from './data-c15517db.js'; import './index-73922017.js'; const q = '_listWrap_efqon_1', z = '_list_efqon_1', w = '_searchGroup_efqon_45', A = '_btnType_efqon_49', N = '_inputSearch_efqon_83', U = '_searchCatatory_efqon_106', B = '_addTrain_efqon_113', n = { listWrap: q, list: z, searchGroup: w, btnType: A, inputSearch: N, searchCatatory: U, addTrain: B }, F = '' + new URL('icon-add-540d8f63.svg', import.meta.url).href, m = h({ name: 'search-group', setup() { return ( y({ search: '' }), () => e('div', { class: n.searchGroup }, [ e('div', { class: n.searchCatatory }, [ e( d, { size: 'small', class: n.btnType }, { default: () => [ e( l, { type: 'primary', round: !0, size: 'small', focusable: !1 }, { default: () => [u('全部')] } ), e( l, { secondary: !0, round: !0, size: 'small', focusable: !1 }, { default: () => [u('乐谱')] } ), e( l, { secondary: !0, round: !0, size: 'small', focusable: !1 }, { default: () => [u('图片')] } ), e( l, { secondary: !0, round: !0, size: 'small', focusable: !1 }, { default: () => [u('音频')] } ), e( l, { secondary: !0, round: !0, size: 'small', focusable: !1 }, { default: () => [u('视频')] } ) ] } ), e( l, { type: 'primary', class: n.addTrain, focusable: !1, strong: !0 }, { default: () => [ e('img', { src: F }, null), u('添加自定义教材') ] } ) ]), e( _, { labelAlign: 'left', labelPlacement: 'left' }, { default: () => [ e( b, { label: '教材:' }, { default: () => [ e(d, null, { default: () => [ e( l, { secondary: !0, strong: !0, type: 'primary', focusable: !1 }, { default: () => [u('全部')] } ), e( l, { quaternary: !0, focusable: !1 }, { default: () => [u('人教版')] } ), e( l, { quaternary: !0, focusable: !1 }, { default: () => [u('声部训练')] } ), e( l, { quaternary: !0, focusable: !1 }, { default: () => [u('小曲目')] } ), e( l, { quaternary: !0, focusable: !1 }, { default: () => [u('考级曲目')] } ) ] }) ] } ), e( b, { label: '乐器:' }, { default: () => [ e(d, null, { default: () => [ e( l, { secondary: !0, strong: !0, type: 'primary' }, { default: () => [u('全部')] } ), e( l, { quaternary: !0, focusable: !1, type: 'default' }, { default: () => [u('竖笛')] } ), e( l, { quaternary: !0, focusable: !1, type: 'default' }, { default: () => [u('排萧')] } ), e( l, { quaternary: !0, focusable: !1, type: 'default' }, { default: () => [u('口风琴')] } ), e( l, { quaternary: !0, focusable: !1, type: 'default' }, { default: () => [u('陶笛')] } ), e( l, { quaternary: !0, focusable: !1, type: 'default' }, { default: () => [u('葫芦丝')] } ) ] }) ] } ), e(C, { class: n.inputSearch, round: !0 }, null) ] } ) ]) ); } }), j = h({ name: 'student-studentList', setup() { const t = y({ searchWord: '', loading: !1, pagination: { page: 1, rows: 50, pageTotal: 0 }, tableList: [] }), r = y({ list: [], height: '100%' }), T = () => { const a = S.rows || [], o = []; a.forEach((i, s) => { o.push({ id: i.id, type: 'MUSIC', title: i.musicSheetName, url: i.fixedTone ? i.fixedTone.split(',')[0] : '', isCollect: !(s % 3), isSelected: !(s % 4) }), (s === 2 || s === 12) && o.push({ id: s + 3, type: 'VIDEO', title: '其多列', url: 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687844640957.png', isCollect: !(s % 3), isSelected: !(s % 4) }), (s === 0 || s === 6) && o.push({ id: s + 3, type: 'SONG', title: '歌曲表演 大鹿', url: 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png', isCollect: !(s % 3), isSelected: !(s % 4) }), (s === 5 || s === 15) && o.push({ id: s + 3, type: 'IMG', title: '其多列', url: 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1688007481564.jpg', isCollect: !(s % 3), isSelected: !(s % 4) }); }), (r.list = o || []), (t.pagination.rows = o.length); }, p = () => { console.log('getList'); }; return ( T(), () => e('div', { class: n.listWrap }, [ e( E, { defaultValue: 'shareResources', paneClass: n.paneTitle, justifyContent: 'center', paneWrapperClass: n.paneWrapperContainer }, { default: () => [ e( g, { name: 'shareResources', tab: '共享资源' }, { default: () => [ e(m, null, null), e('div', { class: n.list }, [ r.list.map(a => e(f, { item: a }, null)) ]), e( c, { page: t.pagination.page, 'onUpdate:page': a => (t.pagination.page = a), pageSize: t.pagination.rows, 'onUpdate:pageSize': a => (t.pagination.rows = a), pageTotal: t.pagination.pageTotal, 'onUpdate:pageTotal': a => (t.pagination.pageTotal = a), onList: p }, null ) ] } ), e( g, { name: 'myResources', tab: '我的资源' }, { default: () => [ e(m, null, null), e('div', { class: n.list }, [ r.list.map(a => e(f, { item: a }, null)) ]), e( c, { page: t.pagination.page, 'onUpdate:page': a => (t.pagination.page = a), pageSize: t.pagination.rows, 'onUpdate:pageSize': a => (t.pagination.rows = a), pageTotal: t.pagination.pageTotal, 'onUpdate:pageTotal': a => (t.pagination.pageTotal = a), onList: p }, null ) ] } ), e( g, { name: 'myCollect', tab: '我的收藏' }, { default: () => [ e(m, null, null), e('div', { class: n.list }, [ r.list.map(a => e(f, { item: a }, null)) ]), e( c, { page: t.pagination.page, 'onUpdate:page': a => (t.pagination.page = a), pageSize: t.pagination.rows, 'onUpdate:pageSize': a => (t.pagination.rows = a), pageTotal: t.pagination.pageTotal, 'onUpdate:pageTotal': a => (t.pagination.pageTotal = a), onList: p }, null ) ] } ) ] } ) ]) ); } }); export { j as default };