reward-detail-legacy.9e80d8c2.js 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358
  1. !(function () {
  2. function e(e) {
  3. return (
  4. (function (e) {
  5. if (Array.isArray(e)) return t(e)
  6. })(e) ||
  7. (function (e) {
  8. if (('undefined' != typeof Symbol && null != e[Symbol.iterator]) || null != e['@@iterator'])
  9. return Array.from(e)
  10. })(e) ||
  11. (function (e, n) {
  12. if (!e) return
  13. if ('string' == typeof e) return t(e, n)
  14. var a = Object.prototype.toString.call(e).slice(8, -1)
  15. 'Object' === a && e.constructor && (a = e.constructor.name)
  16. if ('Map' === a || 'Set' === a) return Array.from(e)
  17. if ('Arguments' === a || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)) return t(e, n)
  18. })(e) ||
  19. (function () {
  20. throw new TypeError(
  21. 'Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.'
  22. )
  23. })()
  24. )
  25. }
  26. function t(e, t) {
  27. ;(null == t || t > e.length) && (t = e.length)
  28. for (var n = 0, a = new Array(t); n < t; n++) a[n] = e[n]
  29. return a
  30. }
  31. System.register(
  32. [
  33. './index.module-legacy.a86392a8.js',
  34. './index-legacy.251c44e7.js',
  35. './index-legacy.37a26c18.js',
  36. './index-legacy.86e58eb0.js',
  37. './index-legacy.da3cfd73.js',
  38. './index-legacy.1f5a1fbe.js',
  39. './index-legacy.e8fdcbbe.js',
  40. './index-legacy.31f31051.js',
  41. './index-legacy.8ec00d40.js',
  42. './index-legacy.bc5c4a06.js',
  43. './use-tab-status-legacy.203dc693.js',
  44. './index-legacy.72f6344c.js',
  45. './index-legacy.a9a76943.js'
  46. ],
  47. function (t) {
  48. 'use strict'
  49. var n, a, r, i, u, l, c, s, o, d, f, m, v, p, g, y, b, j, h, I
  50. return {
  51. setters: [
  52. function (e) {
  53. n = e.s
  54. },
  55. function (e) {
  56. a = e.O
  57. },
  58. function (e) {
  59. ;(r = e.d),
  60. (i = e.aV),
  61. (u = e.R),
  62. (l = e.r),
  63. (c = e.$),
  64. (s = e.m),
  65. (o = e.f),
  66. (d = e.y),
  67. (f = e.c),
  68. (m = e.q),
  69. (v = e.ai),
  70. (p = e.P)
  71. },
  72. function (e) {
  73. g = e.O
  74. },
  75. function (e) {
  76. y = e.O
  77. },
  78. function (e) {
  79. b = e.C
  80. },
  81. function (e) {
  82. ;(j = e.G), (h = e.a)
  83. },
  84. function (e) {
  85. I = e.P
  86. },
  87. function () {},
  88. function () {},
  89. function () {},
  90. function () {},
  91. function () {}
  92. ],
  93. execute: function () {
  94. t(
  95. 'default',
  96. r({
  97. name: 'subsidy-reward-detail',
  98. setup: function () {
  99. var t = i(),
  100. r = u(!1)
  101. u(!1)
  102. var x = l({ subjectId: '', subjects: [], manageSalary: {}, rows: [] }),
  103. S = function () {
  104. s
  105. .post(
  106. ''.concat(
  107. o.platformApi,
  108. '/schoolWeekSalaryRecord/detailInfo/trainingTitle'
  109. ),
  110. { data: { id: t.query.id, userId: o.user.data.id, subjectId: x.subjectId } }
  111. )
  112. .then(function (e) {
  113. x.manageSalary = (null == e ? void 0 : e.data) || {}
  114. }),
  115. s
  116. .post(
  117. ''.concat(
  118. o.platformApi,
  119. '/schoolWeekSalaryRecord/detailInfo/trainingPage'
  120. ),
  121. {
  122. data: { id: t.query.id, userId: o.user.data.id, subjectId: x.subjectId }
  123. }
  124. )
  125. .then(function (e) {
  126. var t
  127. x.rows =
  128. (null == e || null === (t = e.data) || void 0 === t
  129. ? void 0
  130. : t.rows) || []
  131. })
  132. .finally(function () {
  133. r.value = !1
  134. })
  135. }
  136. c(function () {
  137. s
  138. .post(''.concat(o.platformApi, '/subjectBasicConfig/page'), {
  139. data: { page: 1, rows: 9999 }
  140. })
  141. .then(function (e) {
  142. var t
  143. Array.isArray(
  144. null == e || null === (t = e.data) || void 0 === t ? void 0 : t.rows
  145. ) && (x.subjects = e.data.rows)
  146. }),
  147. S()
  148. })
  149. var w = d(function () {
  150. var t = x.subjects.map(function (e) {
  151. return { text: e.subjectName, value: e.subjectId }
  152. })
  153. return [{ text: '全部声部' }].concat(e(t))
  154. }),
  155. A = u('全部声部'),
  156. T = u(!1)
  157. return function () {
  158. return f('div', null, [
  159. f(
  160. g,
  161. {
  162. onGetHeight: function (e) {
  163. document.documentElement.style.setProperty('--header-height', e + 'px')
  164. }
  165. },
  166. {
  167. default: function () {
  168. return [f(y, null, null)]
  169. }
  170. }
  171. ),
  172. f(
  173. a,
  174. {
  175. modelValue: r.value,
  176. 'onUpdate:modelValue': function (e) {
  177. return (r.value = e)
  178. },
  179. onRefresh: S,
  180. style: 'min-height: calc(100vh - var(--header-height))'
  181. },
  182. {
  183. default: function () {
  184. return [
  185. f('div', { class: [n.wrap] }, [
  186. f('div', { class: n.item }, [
  187. f(
  188. b,
  189. { center: !0 },
  190. {
  191. title: function () {
  192. return f('div', { class: n.itemTitle }, [
  193. f('div', { class: n.titleLine }, null),
  194. f('span', null, [m('练习奖励')])
  195. ])
  196. }
  197. }
  198. ),
  199. f(
  200. j,
  201. { class: n.grid, columnNum: 3, border: !1 },
  202. {
  203. default: function () {
  204. return [
  205. f(h, null, {
  206. default: function () {
  207. return [
  208. f('div', { class: n.gridItem }, [
  209. f('div', { class: n.gridItemTop }, [
  210. f('span', { class: n.topNum }, [
  211. x.manageSalary.standardSalary || 0
  212. ]),
  213. m('元/人')
  214. ]),
  215. f('div', null, [m('补助标准')])
  216. ])
  217. ]
  218. }
  219. }),
  220. f(h, null, {
  221. default: function () {
  222. return [
  223. f('div', { class: n.gridItem }, [
  224. f('div', { class: n.gridItemTop }, [
  225. f('span', { class: n.topNum }, [
  226. x.manageSalary.targetNum || 0
  227. ]),
  228. m('人')
  229. ]),
  230. f('div', null, [m('练习达标人数')])
  231. ])
  232. ]
  233. }
  234. }),
  235. f(h, null, {
  236. default: function () {
  237. return [
  238. f('div', { class: n.gridItem }, [
  239. f('div', { class: n.gridItemTop }, [
  240. f('span', { class: n.topNum }, [
  241. x.manageSalary.actualSalary || 0
  242. ]),
  243. m('元')
  244. ]),
  245. f('div', null, [m('实际奖励')])
  246. ])
  247. ]
  248. }
  249. })
  250. ]
  251. }
  252. }
  253. )
  254. ]),
  255. f(
  256. 'div',
  257. {
  258. class: 'searchGroup-single',
  259. style: 'padding-top: 0 !important;'
  260. },
  261. [
  262. f(
  263. 'div',
  264. {
  265. class: ['searchItem', T.value ? 'searchItem-active' : ''],
  266. onClick: function () {
  267. return (T.value = !0)
  268. }
  269. },
  270. [f('span', null, [A.value])]
  271. )
  272. ]
  273. ),
  274. x.rows.length
  275. ? f('div', { class: n.item }, [
  276. x.rows.map(function (e) {
  277. return f(
  278. b,
  279. { center: !0 },
  280. {
  281. icon: function () {
  282. return f(
  283. 'img',
  284. { class: n.itemPicture, src: e.avatar },
  285. null
  286. )
  287. },
  288. title: function () {
  289. return f('div', { class: n.itemTitle }, [
  290. f('span', null, [e.nickname])
  291. ])
  292. },
  293. label: function () {
  294. return f('span', { class: n.itemTag }, [e.subjectNames])
  295. },
  296. value: function () {
  297. return f('div', { class: n.gridItem }, [
  298. f('div', { class: n.gridItemTop }, [
  299. f('span', { class: n.topNum }, [e.practiceTimes]),
  300. m('分钟')
  301. ]),
  302. f('div', { class: n.valeLabel }, [m('练习时长')])
  303. ])
  304. }
  305. }
  306. )
  307. })
  308. ])
  309. : f(v, { tips: '暂无学员练习' }, null)
  310. ])
  311. ]
  312. }
  313. }
  314. ),
  315. f(
  316. p,
  317. {
  318. show: T.value,
  319. 'onUpdate:show': function (e) {
  320. return (T.value = e)
  321. },
  322. position: 'bottom',
  323. round: !0,
  324. class: 'popupBottomSearch'
  325. },
  326. {
  327. default: function () {
  328. return [
  329. f(
  330. I,
  331. {
  332. columns: w.value,
  333. onCancel: function () {
  334. return (T.value = !1)
  335. },
  336. onConfirm: function (e) {
  337. ;(A.value = e.selectedOptions[0].text || '全部声部'),
  338. (x.subjectId = e.selectedOptions[0].value || ''),
  339. (T.value = !1),
  340. S()
  341. }
  342. },
  343. null
  344. )
  345. ]
  346. }
  347. }
  348. )
  349. ])
  350. }
  351. }
  352. })
  353. )
  354. }
  355. }
  356. }
  357. )
  358. })()