index-31199588.js 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389
  1. import { P as c } from './index-f397473a.js';
  2. import { C as f } from './index-c8870a16.js';
  3. import { T as C } from './index-a585796f.js';
  4. import {
  5. d as h,
  6. e as y,
  7. f as e,
  8. Q as d,
  9. j as l,
  10. k as u,
  11. N as _,
  12. g as b,
  13. m as E,
  14. n as g
  15. } from './index-95e721f9.js';
  16. import { l as S } from './data-c15517db.js';
  17. import './index-73922017.js';
  18. const q = '_listWrap_efqon_1',
  19. z = '_list_efqon_1',
  20. w = '_searchGroup_efqon_45',
  21. A = '_btnType_efqon_49',
  22. N = '_inputSearch_efqon_83',
  23. U = '_searchCatatory_efqon_106',
  24. B = '_addTrain_efqon_113',
  25. n = {
  26. listWrap: q,
  27. list: z,
  28. searchGroup: w,
  29. btnType: A,
  30. inputSearch: N,
  31. searchCatatory: U,
  32. addTrain: B
  33. },
  34. F = '' + new URL('icon-add-540d8f63.svg', import.meta.url).href,
  35. m = h({
  36. name: 'search-group',
  37. setup() {
  38. return (
  39. y({ search: '' }),
  40. () =>
  41. e('div', { class: n.searchGroup }, [
  42. e('div', { class: n.searchCatatory }, [
  43. e(
  44. d,
  45. { size: 'small', class: n.btnType },
  46. {
  47. default: () => [
  48. e(
  49. l,
  50. {
  51. type: 'primary',
  52. round: !0,
  53. size: 'small',
  54. focusable: !1
  55. },
  56. { default: () => [u('全部')] }
  57. ),
  58. e(
  59. l,
  60. {
  61. secondary: !0,
  62. round: !0,
  63. size: 'small',
  64. focusable: !1
  65. },
  66. { default: () => [u('乐谱')] }
  67. ),
  68. e(
  69. l,
  70. {
  71. secondary: !0,
  72. round: !0,
  73. size: 'small',
  74. focusable: !1
  75. },
  76. { default: () => [u('图片')] }
  77. ),
  78. e(
  79. l,
  80. {
  81. secondary: !0,
  82. round: !0,
  83. size: 'small',
  84. focusable: !1
  85. },
  86. { default: () => [u('音频')] }
  87. ),
  88. e(
  89. l,
  90. {
  91. secondary: !0,
  92. round: !0,
  93. size: 'small',
  94. focusable: !1
  95. },
  96. { default: () => [u('视频')] }
  97. )
  98. ]
  99. }
  100. ),
  101. e(
  102. l,
  103. {
  104. type: 'primary',
  105. class: n.addTrain,
  106. focusable: !1,
  107. strong: !0
  108. },
  109. {
  110. default: () => [
  111. e('img', { src: F }, null),
  112. u('添加自定义教材')
  113. ]
  114. }
  115. )
  116. ]),
  117. e(
  118. _,
  119. { labelAlign: 'left', labelPlacement: 'left' },
  120. {
  121. default: () => [
  122. e(
  123. b,
  124. { label: '教材:' },
  125. {
  126. default: () => [
  127. e(d, null, {
  128. default: () => [
  129. e(
  130. l,
  131. {
  132. secondary: !0,
  133. strong: !0,
  134. type: 'primary',
  135. focusable: !1
  136. },
  137. { default: () => [u('全部')] }
  138. ),
  139. e(
  140. l,
  141. { quaternary: !0, focusable: !1 },
  142. { default: () => [u('人教版')] }
  143. ),
  144. e(
  145. l,
  146. { quaternary: !0, focusable: !1 },
  147. { default: () => [u('声部训练')] }
  148. ),
  149. e(
  150. l,
  151. { quaternary: !0, focusable: !1 },
  152. { default: () => [u('小曲目')] }
  153. ),
  154. e(
  155. l,
  156. { quaternary: !0, focusable: !1 },
  157. { default: () => [u('考级曲目')] }
  158. )
  159. ]
  160. })
  161. ]
  162. }
  163. ),
  164. e(
  165. b,
  166. { label: '乐器:' },
  167. {
  168. default: () => [
  169. e(d, null, {
  170. default: () => [
  171. e(
  172. l,
  173. { secondary: !0, strong: !0, type: 'primary' },
  174. { default: () => [u('全部')] }
  175. ),
  176. e(
  177. l,
  178. {
  179. quaternary: !0,
  180. focusable: !1,
  181. type: 'default'
  182. },
  183. { default: () => [u('竖笛')] }
  184. ),
  185. e(
  186. l,
  187. {
  188. quaternary: !0,
  189. focusable: !1,
  190. type: 'default'
  191. },
  192. { default: () => [u('排萧')] }
  193. ),
  194. e(
  195. l,
  196. {
  197. quaternary: !0,
  198. focusable: !1,
  199. type: 'default'
  200. },
  201. { default: () => [u('口风琴')] }
  202. ),
  203. e(
  204. l,
  205. {
  206. quaternary: !0,
  207. focusable: !1,
  208. type: 'default'
  209. },
  210. { default: () => [u('陶笛')] }
  211. ),
  212. e(
  213. l,
  214. {
  215. quaternary: !0,
  216. focusable: !1,
  217. type: 'default'
  218. },
  219. { default: () => [u('葫芦丝')] }
  220. )
  221. ]
  222. })
  223. ]
  224. }
  225. ),
  226. e(C, { class: n.inputSearch, round: !0 }, null)
  227. ]
  228. }
  229. )
  230. ])
  231. );
  232. }
  233. }),
  234. j = h({
  235. name: 'student-studentList',
  236. setup() {
  237. const t = y({
  238. searchWord: '',
  239. loading: !1,
  240. pagination: { page: 1, rows: 50, pageTotal: 0 },
  241. tableList: []
  242. }),
  243. r = y({ list: [], height: '100%' }),
  244. T = () => {
  245. const a = S.rows || [],
  246. o = [];
  247. a.forEach((i, s) => {
  248. o.push({
  249. id: i.id,
  250. type: 'MUSIC',
  251. title: i.musicSheetName,
  252. url: i.fixedTone ? i.fixedTone.split(',')[0] : '',
  253. isCollect: !(s % 3),
  254. isSelected: !(s % 4)
  255. }),
  256. (s === 2 || s === 12) &&
  257. o.push({
  258. id: s + 3,
  259. type: 'VIDEO',
  260. title: '其多列',
  261. url: 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687844640957.png',
  262. isCollect: !(s % 3),
  263. isSelected: !(s % 4)
  264. }),
  265. (s === 0 || s === 6) &&
  266. o.push({
  267. id: s + 3,
  268. type: 'SONG',
  269. title: '歌曲表演 大鹿',
  270. url: 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1687916228530.png',
  271. isCollect: !(s % 3),
  272. isSelected: !(s % 4)
  273. }),
  274. (s === 5 || s === 15) &&
  275. o.push({
  276. id: s + 3,
  277. type: 'IMG',
  278. title: '其多列',
  279. url: 'https://gyt.ks3-cn-beijing.ksyuncs.com/courseware/1688007481564.jpg',
  280. isCollect: !(s % 3),
  281. isSelected: !(s % 4)
  282. });
  283. }),
  284. (r.list = o || []),
  285. (t.pagination.rows = o.length);
  286. },
  287. p = () => {
  288. console.log('getList');
  289. };
  290. return (
  291. T(),
  292. () =>
  293. e('div', { class: n.listWrap }, [
  294. e(
  295. E,
  296. {
  297. defaultValue: 'shareResources',
  298. paneClass: n.paneTitle,
  299. justifyContent: 'center',
  300. paneWrapperClass: n.paneWrapperContainer
  301. },
  302. {
  303. default: () => [
  304. e(
  305. g,
  306. { name: 'shareResources', tab: '共享资源' },
  307. {
  308. default: () => [
  309. e(m, null, null),
  310. e('div', { class: n.list }, [
  311. r.list.map(a => e(f, { item: a }, null))
  312. ]),
  313. e(
  314. c,
  315. {
  316. page: t.pagination.page,
  317. 'onUpdate:page': a => (t.pagination.page = a),
  318. pageSize: t.pagination.rows,
  319. 'onUpdate:pageSize': a => (t.pagination.rows = a),
  320. pageTotal: t.pagination.pageTotal,
  321. 'onUpdate:pageTotal': a =>
  322. (t.pagination.pageTotal = a),
  323. onList: p
  324. },
  325. null
  326. )
  327. ]
  328. }
  329. ),
  330. e(
  331. g,
  332. { name: 'myResources', tab: '我的资源' },
  333. {
  334. default: () => [
  335. e(m, null, null),
  336. e('div', { class: n.list }, [
  337. r.list.map(a => e(f, { item: a }, null))
  338. ]),
  339. e(
  340. c,
  341. {
  342. page: t.pagination.page,
  343. 'onUpdate:page': a => (t.pagination.page = a),
  344. pageSize: t.pagination.rows,
  345. 'onUpdate:pageSize': a => (t.pagination.rows = a),
  346. pageTotal: t.pagination.pageTotal,
  347. 'onUpdate:pageTotal': a =>
  348. (t.pagination.pageTotal = a),
  349. onList: p
  350. },
  351. null
  352. )
  353. ]
  354. }
  355. ),
  356. e(
  357. g,
  358. { name: 'myCollect', tab: '我的收藏' },
  359. {
  360. default: () => [
  361. e(m, null, null),
  362. e('div', { class: n.list }, [
  363. r.list.map(a => e(f, { item: a }, null))
  364. ]),
  365. e(
  366. c,
  367. {
  368. page: t.pagination.page,
  369. 'onUpdate:page': a => (t.pagination.page = a),
  370. pageSize: t.pagination.rows,
  371. 'onUpdate:pageSize': a => (t.pagination.rows = a),
  372. pageTotal: t.pagination.pageTotal,
  373. 'onUpdate:pageTotal': a =>
  374. (t.pagination.pageTotal = a),
  375. onList: p
  376. },
  377. null
  378. )
  379. ]
  380. }
  381. )
  382. ]
  383. }
  384. )
  385. ])
  386. );
  387. }
  388. });
  389. export { j as default };