detail-legacy.1ce4991b.js 7.0 KB

1
  1. !function(){function t(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);e&&(a=a.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,a)}return n}function e(e){for(var a=1;a<arguments.length;a++){var r=null!=arguments[a]?arguments[a]:{};a%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 a(t,e,n,a,r,s,i){try{var c=t[s](i),u=c.value}catch(o){return void n(o)}c.done?e(u):Promise.resolve(u).then(a,r)}function r(t){return function(){var e=this,n=arguments;return new Promise((function(r,s){var i=t.apply(e,n);function c(t){a(i,r,s,c,u,"next",t)}function u(t){a(i,r,s,c,u,"throw",t)}c(void 0)}))}}System.register(["./index-legacy.47bc1690.js","./index.module-legacy.aa168c61.js","./icon_student-legacy.6118fd72.js","./index-legacy.92a01198.js","./index-legacy.4df1d4ab.js","./index-legacy.57721991.js","./index-legacy.bab9fe30.js","./index-legacy.0ebc214d.js","./index-legacy.453fd926.js","./index-legacy.62a334e5.js","./use-tab-status-legacy.7bf91b8c.js","./Picker-legacy.cd27e6c1.js","./index-legacy.00966b07.js","./index-legacy.18044794.js","./index-legacy.21964237.js"],(function(t){"use strict";var n,a,s,i,c,u,o,l,d,f,p,g,m,b,j,v,h,y,S,x,w,k,N;return{setters:[function(t){n=t.d,a=t.ah,s=t.r,i=t.$,c=t.c,u=t.aj,o=t.q,l=t.b6,d=t.ak,f=t.P,p=t.F,g=t.al,m=t.m},function(t){b=t.s},function(t){j=t.i},function(t){v=t.C},function(t){h=t.G,y=t.a},function(t){S=t.L},function(t){x=t.C},function(t){w=t.I},function(t){k=t.T},function(t){N=t.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){function O(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!g(t)}t("default",n({name:"practice-detail",setup:function(){var t=a(),n=s({subjectStatus:!1,subjectList:[],isClick:!1,list:[],listState:{dataShow:!0,loading:!1,finished:!1,refreshing:!1,height:0},subjectName:"全部声部",params:{type:null,subjectId:null,page:1,rows:20},statistics:{standardSalary:0,targetNum:0,actualSalary:0}}),g=function(){var e=r(regeneratorRuntime.mark((function e(){var 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/schoolWeekSalaryRecord/detailInfo/trainingTitle",{data:{id:t.query.id}});case 3:a=e.sent,r=a.data,n.statistics={standardSalary:r.standardSalary||0,targetNum:r.targetNum||0,actualSalary:r.actualSalary||0},console.log(r),e.next=11;break;case 9:e.prev=9,e.t0=e.catch(0);case 11:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),I=function(){var t=r(regeneratorRuntime.mark((function t(){var e,a;return regeneratorRuntime.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,m.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:50}});case 3:e=t.sent,a=e.data,n.subjectList=a.rows||[],n.subjectList.unshift({subjectId:"",subjectName:"全部声部"}),t.next=11;break;case 9:t.prev=9,t.t0=t.catch(0);case 11:case"end":return t.stop()}}),t,null,[[0,9]])})));return function(){return t.apply(this,arguments)}}(),P=function(){var a=r(regeneratorRuntime.mark((function a(){var r,s,i;return regeneratorRuntime.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(a.prev=0,!n.isClick){a.next=3;break}return a.abrupt("return");case 3:return n.isClick=!0,a.next=6,m.post("/api-school/schoolWeekSalaryRecord/detailInfo/trainingPage",{data:e(e({},n.params),{},{id:t.query.id})});case 6:if(r=a.sent,n.listState.loading=!1,n.listState.refreshing=!1,s=r.data||{},console.log(s),!(n.list.length>0&&1===s.current)){a.next=13;break}return a.abrupt("return");case 13:(i=s.rows||[]).forEach((function(t){t.subjectNameList=t.subjectNames?t.subjectNames.split(","):[]})),n.list=n.list.concat(i||[]),n.listState.finished=s.current>=s.pages,n.params.page=s.current+1,n.listState.dataShow=n.list.length>0,n.isClick=!1,a.next=28;break;case 22:a.prev=22,a.t0=a.catch(0),n.listState.dataShow=!1,n.listState.finished=!0,n.listState.refreshing=!1,n.isClick=!1;case 28:case"end":return a.stop()}}),a,null,[[0,22]])})));return function(){return a.apply(this,arguments)}}();return i((function(){g(),I(),P()})),function(){var t;return c(p,null,[c(u,null,null),c("div",{class:b.item},[c(v,{center:!0},{title:function(){return c("div",{class:b.itemTitle},[c("div",{class:b.titleLine},null),c("span",null,[o("练习奖励")])])}}),c(h,{class:b.grid,columnNum:3,border:!1},{default:function(){return[c(y,{class:b.gridBorderRight},{default:function(){return[c("div",{class:b.gridItem},[c("div",{class:b.gridItemTop},[c("span",{class:b.topNum,style:{color:"#333"}},[l(n.statistics.standardSalary||0)]),o("元/人")]),c("div",null,[o("奖励标准")])])]}}),c(y,{class:b.gridBorderRight},{default:function(){return[c("div",{class:b.gridItem},[c("div",{class:b.gridItemTop},[c("span",{class:b.topNum,style:{color:"#333"}},[n.statistics.targetNum]),o("人")]),c("div",null,[o("练习达标人数")])])]}}),c(y,null,{default:function(){return[c("div",{class:b.gridItem},[c("div",{class:b.gridItemTop},[c("span",{class:b.topNum},[l(n.statistics.actualSalary||0)]),o("元")]),c("div",null,[o("奖励金额")])])]}})]}})]),c("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[c("div",{class:["searchItem",n.subjectStatus&&"searchItem-active"],onClick:function(){n.subjectStatus=!n.subjectStatus}},[n.subjectName])]),n.listState.dataShow?c(S,{finished:n.listState.finished,finishedText:" ",class:[b.liveList],onLoad:P,immediateCheck:!1},{default:function(){return[c(x,{inset:!0,class:b.cellGroup},O(t=n.list.map((function(t){return c(v,{center:!0},{icon:function(){return c(w,{src:t.avatar||j,class:b.img},null)},title:function(){return c("div",{class:b.userInfo},[c("div",{class:b.userName},[t.nickname]),c("div",{class:b.subjectNames},[t.subjectNameList.map((function(t){return c(k,{textColor:"#F67146",color:"#FFE7DA"},O(t)?t:{default:function(){return[t]}})}))])])},value:function(){return c("div",{class:b.mins},[c("div",{class:b.nums},[c("span",null,[t.practiceTimes]),o(" 分钟")]),c("div",{class:b.text},[o("练习时长")])])}})})))?t:{default:function(){return[t]}})]}}):c(d,{btnStatus:!1,tips:"暂无数据"},null),c(f,{show:n.subjectStatus,"onUpdate:show":function(t){return n.subjectStatus=t},position:"bottom",round:!0,class:"popupBottomSearch"},{default:function(){return[c(N,{columns:n.subjectList,onCancel:function(){return n.subjectStatus=!1},onConfirm:function(t){console.log(t);var e=t.selectedOptions[0];n.subjectName=e.subjectName,n.params.subjectId=e.subjectId,n.params.page=1,n.list=[],n.listState.dataShow=!0,n.listState.loading=!1,n.listState.finished=!1,P(),n.subjectStatus=!1},columnsFieldNames:{text:"subjectName",value:"subjectId"}},null)]}})])}}}))}}}))}();