index-legacy.10df88a9.js 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418
  1. <<<<<<< HEAD:dist/assets/index-legacy.cff00380.js
  2. !(function () {
  3. function t(t, e) {
  4. var n = Object.keys(t)
  5. if (Object.getOwnPropertySymbols) {
  6. var i = Object.getOwnPropertySymbols(t)
  7. e &&
  8. (i = i.filter(function (e) {
  9. return Object.getOwnPropertyDescriptor(t, e).enumerable
  10. })),
  11. n.push.apply(n, i)
  12. }
  13. return n
  14. }
  15. function e(e) {
  16. for (var i = 1; i < arguments.length; i++) {
  17. var r = null != arguments[i] ? arguments[i] : {}
  18. i % 2
  19. ? t(Object(r), !0).forEach(function (t) {
  20. n(e, t, r[t])
  21. })
  22. : Object.getOwnPropertyDescriptors
  23. ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(r))
  24. : t(Object(r)).forEach(function (t) {
  25. Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(r, t))
  26. })
  27. }
  28. return e
  29. }
  30. function n(t, e, n) {
  31. return (
  32. e in t
  33. ? Object.defineProperty(t, e, { value: n, enumerable: !0, configurable: !0, writable: !0 })
  34. : (t[e] = n),
  35. t
  36. )
  37. }
  38. function i(t, e, n, i, r, a, o) {
  39. try {
  40. var s = t[a](o),
  41. c = s.value
  42. } catch (l) {
  43. return void n(l)
  44. }
  45. s.done ? e(c) : Promise.resolve(c).then(i, r)
  46. }
  47. System.register(
  48. [
  49. './index-legacy.da3cfd73.js',
  50. './index-legacy.86e58eb0.js',
  51. './index-legacy.37a26c18.js',
  52. './index.module-legacy.3521c141.js',
  53. './index-legacy.8895675d.js',
  54. './index-legacy.251c44e7.js',
  55. './index-legacy.b1d208cd.js',
  56. './index-legacy.88f968f8.js',
  57. './index-legacy.1f5a1fbe.js',
  58. './index-legacy.5216aadb.js',
  59. './index-legacy.8ec00d40.js',
  60. './index-legacy.30c98e07.js',
  61. './use-tab-status-legacy.203dc693.js'
  62. ],
  63. function (t) {
  64. 'use strict'
  65. var n, r, a, o, s, c, l, u, f, d, p, h, g, v, y, m, S, b, w, O, j, x
  66. return {
  67. setters: [
  68. function (t) {
  69. n = t.O
  70. },
  71. function (t) {
  72. r = t.O
  73. },
  74. function (t) {
  75. ;(a = t.d),
  76. (o = t.ag),
  77. (s = t.r),
  78. (c = t.$),
  79. (l = t.k),
  80. (u = t.a_),
  81. (f = t.c),
  82. (d = t.a5),
  83. (p = t.q),
  84. (h = t.ai),
  85. (g = t.ak),
  86. (v = t.m),
  87. (y = t.f)
  88. },
  89. function (t) {
  90. m = t.s
  91. },
  92. function (t) {
  93. S = t.b
  94. },
  95. function (t) {
  96. b = t.O
  97. },
  98. function (t) {
  99. w = t.O
  100. },
  101. function (t) {
  102. O = t.L
  103. },
  104. function (t) {
  105. j = t.C
  106. },
  107. function (t) {
  108. x = t.T
  109. },
  110. function () {},
  111. function () {},
  112. function () {}
  113. ],
  114. execute: function () {
  115. t(
  116. 'default',
  117. a({
  118. name: 'my-orchestra',
  119. setup: function () {
  120. var t = o(),
  121. a = s({
  122. showPopover: !1,
  123. actions: [
  124. { name: '全部乐团', selected: !0, value: 'ALL' },
  125. { name: '交付团', value: 'DELIVERY' },
  126. { name: '晋升团', value: 'PROMOTION' }
  127. ],
  128. isClick: !1,
  129. list: [],
  130. listState: {
  131. dataShow: !0,
  132. loading: !1,
  133. finished: !1,
  134. refreshing: !1,
  135. height: 0
  136. },
  137. params: { type: null, status: 'DONE', page: 1, rows: 20 }
  138. }),
  139. k = function (t) {
  140. a.actions.forEach(function (t) {
  141. t.selected = !1
  142. }),
  143. (t.selected = !0),
  144. (a.params.type = 'ALL' === t.value ? null : t.value),
  145. (a.showPopover = !1),
  146. (a.params.page = 1),
  147. (a.list = []),
  148. (a.listState.dataShow = !0),
  149. (a.listState.loading = !1),
  150. (a.listState.finished = !1),
  151. P()
  152. },
  153. P = (function () {
  154. var t,
  155. n =
  156. ((t = regeneratorRuntime.mark(function t() {
  157. var n, i
  158. return regeneratorRuntime.wrap(
  159. function (t) {
  160. for (;;)
  161. switch ((t.prev = t.next)) {
  162. case 0:
  163. if (((t.prev = 0), !a.isClick)) {
  164. t.next = 3
  165. break
  166. }
  167. return t.abrupt('return')
  168. case 3:
  169. return (
  170. (a.isClick = !0),
  171. (t.next = 6),
  172. v.post('/api-school/orchestra/page', {
  173. data: e(
  174. e({}, a.params),
  175. {},
  176. { schoolId: y.user.data.school.id }
  177. )
  178. })
  179. )
  180. case 6:
  181. if (
  182. ((n = t.sent),
  183. (a.listState.loading = !1),
  184. (a.listState.refreshing = !1),
  185. (i = n.data || {}),
  186. !(a.list.length > 0 && 1 === i.current))
  187. ) {
  188. t.next = 12
  189. break
  190. }
  191. return t.abrupt('return')
  192. case 12:
  193. ;(a.list = a.list.concat(i.rows || [])),
  194. (a.listState.finished = i.current >= i.pages),
  195. (a.params.page = i.current + 1),
  196. (a.listState.dataShow = a.list.length > 0),
  197. (a.isClick = !1),
  198. (t.next = 25)
  199. break
  200. case 19:
  201. ;(t.prev = 19),
  202. (t.t0 = t.catch(0)),
  203. (a.listState.dataShow = !1),
  204. (a.listState.finished = !0),
  205. (a.listState.refreshing = !1),
  206. (a.isClick = !1)
  207. case 25:
  208. case 'end':
  209. return t.stop()
  210. }
  211. },
  212. t,
  213. null,
  214. [[0, 19]]
  215. )
  216. })),
  217. function () {
  218. var e = this,
  219. n = arguments
  220. return new Promise(function (r, a) {
  221. var o = t.apply(e, n)
  222. function s(t) {
  223. i(o, r, a, s, c, 'next', t)
  224. }
  225. function c(t) {
  226. i(o, r, a, s, c, 'throw', t)
  227. }
  228. s(void 0)
  229. })
  230. })
  231. return function () {
  232. return n.apply(this, arguments)
  233. }
  234. })(),
  235. L = function () {
  236. ;(a.params.page = 1),
  237. (a.list = []),
  238. (a.listState.dataShow = !0),
  239. (a.listState.loading = !1),
  240. (a.listState.finished = !1),
  241. P()
  242. }
  243. c(function () {
  244. P(),
  245. window.history.pushState(null, '', document.URL),
  246. window.addEventListener('popstate', C, !1)
  247. })
  248. var C = function () {
  249. l({ api: 'back' })
  250. }
  251. return (
  252. u(function () {
  253. window.removeEventListener('popstate', C)
  254. }),
  255. function () {
  256. var e
  257. return f('div', { class: !a.listState.dataShow && 'emptyRootContainer' }, [
  258. f(
  259. r,
  260. {
  261. position: 'top',
  262. onGetHeight: function (t) {
  263. a.listState.height = t
  264. }
  265. },
  266. {
  267. default: function () {
  268. return [
  269. f(n, null, {
  270. right: function () {
  271. return f(
  272. d,
  273. {
  274. name: 'plus',
  275. size: 19,
  276. color: '#333',
  277. onClick: function () {
  278. t.push('/create-orchestra')
  279. }
  280. },
  281. null
  282. )
  283. }
  284. }),
  285. f('div', { class: 'searchGroup-single' }, [
  286. f(
  287. 'span',
  288. {
  289. onClick: function () {
  290. return (a.showPopover = !0)
  291. },
  292. class: ['searchItem', a.showPopover ? 'searchItem-active' : '']
  293. },
  294. [
  295. ((e = a.params.type),
  296. { DELIVERY: '交付团', PROMOTION: '晋升团' }[e] || '全部乐团')
  297. ]
  298. )
  299. ])
  300. ]
  301. var e
  302. }
  303. }
  304. ),
  305. a.listState.dataShow
  306. ? f(
  307. b,
  308. {
  309. modelValue: a.listState.refreshing,
  310. 'onUpdate:modelValue': function (t) {
  311. return (a.listState.refreshing = t)
  312. },
  313. onRefresh: L,
  314. style: {
  315. minHeight: 'calc(100vh - '.concat(a.listState.height, 'px)')
  316. }
  317. },
  318. {
  319. default: function () {
  320. return [
  321. f(
  322. O,
  323. {
  324. finished: a.listState.finished,
  325. finishedText: ' ',
  326. class: [m.liveList],
  327. onLoad: P,
  328. immediateCheck: !1
  329. },
  330. ((n = e =
  331. a.list.map(function (e) {
  332. return f(
  333. j,
  334. {
  335. isLink: !0,
  336. center: !0,
  337. class: m.oCell,
  338. onClick: function () {
  339. return (function (e) {
  340. console.log(e),
  341. t.push({
  342. path: '/orchestra-detail',
  343. query: { id: e.id }
  344. })
  345. })(e)
  346. }
  347. },
  348. {
  349. title: function () {
  350. return f('div', { class: m.oTitle }, [
  351. f('div', null, [e.name]),
  352. f(
  353. x,
  354. {
  355. style: { marginLeft: '6px', flexShrink: 0 },
  356. color:
  357. 'DELIVERY' === e.type ? '#FF8057' : '#64A9FF'
  358. },
  359. {
  360. default: function () {
  361. return [S[e.type]]
  362. }
  363. }
  364. )
  365. ])
  366. },
  367. label: function () {
  368. return f('p', null, [
  369. p('学员人数:'),
  370. e.currentStudentNum || 0,
  371. p('人')
  372. ])
  373. }
  374. }
  375. )
  376. })),
  377. 'function' == typeof n ||
  378. ('[object Object]' === Object.prototype.toString.call(n) &&
  379. !g(n))
  380. ? e
  381. : {
  382. default: function () {
  383. return [e]
  384. }
  385. })
  386. )
  387. ]
  388. var n
  389. }
  390. }
  391. )
  392. : f(h, { btnStatus: !1, tips: '暂无乐团' }, null),
  393. f(
  394. w,
  395. {
  396. show: a.showPopover,
  397. 'onUpdate:show': function (t) {
  398. return (a.showPopover = t)
  399. },
  400. actions: a.actions,
  401. onSelect: k
  402. },
  403. null
  404. )
  405. ])
  406. }
  407. )
  408. }
  409. })
  410. )
  411. }
  412. }
  413. }
  414. )
  415. })()
  416. =======
  417. !function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function e(e){for(var i=1;i<arguments.length;i++){var r=null!=arguments[i]?arguments[i]:{};i%2?t(Object(r),!0).forEach((function(t){n(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function n(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function i(t,e,n,i,r,a,o){try{var s=t[a](o),c=s.value}catch(l){return void n(l)}s.done?e(c):Promise.resolve(c).then(i,r)}System.register(["./index-legacy.35b085b7.js","./index-legacy.e2f02fbe.js","./index-legacy.5250e410.js","./index.module-legacy.3521c141.js","./index-legacy.8895675d.js","./index-legacy.c698a6af.js","./index-legacy.59fa5ca5.js","./index-legacy.60605ef4.js","./index-legacy.7e0d4571.js","./index-legacy.d0ecbe0c.js","./index-legacy.2260495b.js","./index-legacy.2ba2abdf.js","./use-tab-status-legacy.8f29db2f.js"],(function(t){"use strict";var n,r,a,o,s,c,l,u,f,p,d,h,g,v,y,b,m,S,w,O,j,x;return{setters:[function(t){n=t.O},function(t){r=t.O},function(t){a=t.d,o=t.ag,s=t.r,c=t.$,l=t.k,u=t.a_,f=t.c,p=t.a5,d=t.q,h=t.ai,g=t.ak,v=t.m,y=t.f},function(t){b=t.s},function(t){m=t.b},function(t){S=t.O},function(t){w=t.O},function(t){O=t.L},function(t){j=t.C},function(t){x=t.T},function(){},function(){},function(){}],execute:function(){t("default",a({name:"my-orchestra",setup:function(){var t=o(),a=s({showPopover:!1,actions:[{name:"全部乐团",selected:!0,value:"ALL"},{name:"交付团",value:"DELIVERY"},{name:"晋升团",value:"PROMOTION"}],isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},params:{type:null,status:"DONE",page:1,rows:20}}),k=function(t){a.actions.forEach((function(t){t.selected=!1})),t.selected=!0,a.params.type="ALL"===t.value?null:t.value,a.showPopover=!1,a.params.page=1,a.list=[],a.listState.dataShow=!0,a.listState.loading=!1,a.listState.finished=!1,P()},P=function(){var t,n=(t=regeneratorRuntime.mark((function t(){var n,i;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,!a.isClick){t.next=3;break}return t.abrupt("return");case 3:return a.isClick=!0,t.next=6,v.post("/api-school/orchestra/page",{data:e(e({},a.params),{},{schoolId:y.user.data.school.id})});case 6:if(n=t.sent,a.listState.loading=!1,a.listState.refreshing=!1,i=n.data||{},!(a.list.length>0&&1===i.current)){t.next=12;break}return t.abrupt("return");case 12:a.list=a.list.concat(i.rows||[]),a.listState.finished=i.current>=i.pages,a.params.page=i.current+1,a.listState.dataShow=a.list.length>0,a.isClick=!1,t.next=25;break;case 19:t.prev=19,t.t0=t.catch(0),a.listState.dataShow=!1,a.listState.finished=!0,a.listState.refreshing=!1,a.isClick=!1;case 25:case"end":return t.stop()}}),t,null,[[0,19]])})),function(){var e=this,n=arguments;return new Promise((function(r,a){var o=t.apply(e,n);function s(t){i(o,r,a,s,c,"next",t)}function c(t){i(o,r,a,s,c,"throw",t)}s(void 0)}))});return function(){return n.apply(this,arguments)}}(),L=function(){a.params.page=1,a.list=[],a.listState.dataShow=!0,a.listState.loading=!1,a.listState.finished=!1,P()};c((function(){P(),window.history.pushState(null,"",document.URL),window.addEventListener("popstate",C,!1)}));var C=function(){l({api:"back"})};return u((function(){window.removeEventListener("popstate",C)})),function(){var e;return f("div",{class:!a.listState.dataShow&&"emptyRootContainer"},[f(r,{position:"top",onGetHeight:function(t){a.listState.height=t}},{default:function(){return[f(n,null,{right:function(){return f(p,{name:"plus",size:19,color:"#333",onClick:function(){t.push("/create-orchestra")}},null)}}),f("div",{class:"searchGroup-single"},[f("span",{onClick:function(){return a.showPopover=!0},class:["searchItem",a.showPopover?"searchItem-active":""]},[(e=a.params.type,{DELIVERY:"交付团",PROMOTION:"晋升团"}[e]||"全部乐团")])])];var e}}),a.listState.dataShow?f(S,{modelValue:a.listState.refreshing,"onUpdate:modelValue":function(t){return a.listState.refreshing=t},onRefresh:L,style:{minHeight:"calc(100vh - ".concat(a.listState.height,"px)")}},{default:function(){return[f(O,{finished:a.listState.finished,finishedText:" ",class:[b.liveList],onLoad:P,immediateCheck:!1},(n=e=a.list.map((function(e){return f(j,{isLink:!0,center:!0,class:b.oCell,onClick:function(){return function(e){console.log(e),t.push({path:"/orchestra-detail",query:{id:e.id}})}(e)}},{title:function(){return f("div",{class:b.oTitle},[f("div",null,[e.name]),f(x,{style:{marginLeft:"6px",flexShrink:0},color:"DELIVERY"===e.type?"#FF8057":"#64A9FF"},{default:function(){return[m[e.type]]}})])},label:function(){return f("p",null,[d("学生人数:"),e.currentStudentNum||0,d("人")])}})})),"function"==typeof n||"[object Object]"===Object.prototype.toString.call(n)&&!g(n)?e:{default:function(){return[e]}}))];var n}}):f(h,{btnStatus:!1,tips:"暂无乐团"},null),f(w,{show:a.showPopover,"onUpdate:show":function(t){return a.showPopover=t},actions:a.actions,onSelect:k},null)])}}}))}}}))}();
  418. >>>>>>> online:dist/assets/index-legacy.10df88a9.js