1 |
- System.register(["./index-legacy.eb062188.js","./index.module-legacy.aa168c61.js","./icon_student-legacy.6118fd72.js","./index-legacy.918b8c74.js","./index-legacy.761bf286.js","./index-legacy.fad72574.js","./index-legacy.148f784c.js","./index-legacy.fecc738b.js","./index-legacy.11f1ea5f.js","./index-legacy.38b799d5.js","./use-tab-status-legacy.91417466.js","./Picker-legacy.95f03705.js","./index-legacy.ac7c51db.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(t){"use strict";var s,a,e,i,c,l,n,u,o,d,r,f,g,m,p,j,b,y,S,h,v,N,x;return{setters:[function(t){s=t.d,a=t.ah,e=t.r,i=t.$,c=t.c,l=t.aj,n=t.q,u=t.ba,o=t.ak,d=t.P,r=t.F,f=t.al,g=t.m},function(t){m=t.s},function(t){p=t.i},function(t){j=t.C},function(t){b=t.G,y=t.a},function(t){S=t.L},function(t){h=t.C},function(t){v=t.I},function(t){N=t.T},function(t){x=t.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){function I(t){return"function"==typeof t||"[object Object]"===Object.prototype.toString.call(t)&&!f(t)}t("default",s({name:"practice-detail",setup(){const t=a(),s=e({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}}),f=async()=>{try{if(s.isClick)return;s.isClick=!0;const a=await g.post("/api-school/schoolWeekSalaryRecord/detailInfo/trainingPage",{data:{...s.params,id:t.query.id}});s.listState.loading=!1,s.listState.refreshing=!1;const e=a.data||{};if(console.log(e),s.list.length>0&&1===e.current)return;const i=e.rows||[];i.forEach((t=>{t.subjectNameList=t.subjectNames?t.subjectNames.split(","):[]})),s.list=s.list.concat(i||[]),s.listState.finished=e.current>=e.pages,s.params.page=e.current+1,s.listState.dataShow=s.list.length>0,s.isClick=!1}catch{s.listState.dataShow=!1,s.listState.finished=!0,s.listState.refreshing=!1,s.isClick=!1}};return i((()=>{(async()=>{try{const{data:a}=await g.post("/api-school/schoolWeekSalaryRecord/detailInfo/trainingTitle",{data:{id:t.query.id}});s.statistics={standardSalary:a.standardSalary||0,targetNum:a.targetNum||0,actualSalary:a.actualSalary||0},console.log(a)}catch{}})(),(async()=>{try{const{data:t}=await g.post("/api-school/subjectBasicConfig/page",{data:{page:1,rows:50}});s.subjectList=t.rows||[],s.subjectList.unshift({subjectId:"",subjectName:"全部声部"})}catch{}})(),f()})),()=>{let t;return c(r,null,[c(l,null,null),c("div",{class:m.item},[c(j,{center:!0},{title:()=>c("div",{class:m.itemTitle},[c("div",{class:m.titleLine},null),c("span",null,[n("练习奖励")])])}),c(b,{class:m.grid,columnNum:3,border:!1},{default:()=>[c(y,{class:m.gridBorderRight},{default:()=>[c("div",{class:m.gridItem},[c("div",{class:m.gridItemTop},[c("span",{class:m.topNum,style:{color:"#333"}},[u(s.statistics.standardSalary||0)]),n("元/人")]),c("div",null,[n("奖励标准")])])]}),c(y,{class:m.gridBorderRight},{default:()=>[c("div",{class:m.gridItem},[c("div",{class:m.gridItemTop},[c("span",{class:m.topNum,style:{color:"#333"}},[s.statistics.targetNum]),n("人")]),c("div",null,[n("练习达标人数")])])]}),c(y,null,{default:()=>[c("div",{class:m.gridItem},[c("div",{class:m.gridItemTop},[c("span",{class:m.topNum},[u(s.statistics.actualSalary||0)]),n("元")]),c("div",null,[n("奖励金额")])])]})]})]),c("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[c("div",{class:["searchItem",s.subjectStatus&&"searchItem-active"],onClick:()=>{s.subjectStatus=!s.subjectStatus}},[s.subjectName])]),s.listState.dataShow?c(S,{finished:s.listState.finished,finishedText:" ",class:[m.liveList],onLoad:f,immediateCheck:!1},{default:()=>[c(h,{inset:!0,class:m.cellGroup},I(t=s.list.map((t=>c(j,{center:!0},{icon:()=>c(v,{src:t.avatar||p,class:m.img},null),title:()=>c("div",{class:m.userInfo},[c("div",{class:m.userName},[t.nickname]),c("div",{class:m.subjectNames},[t.subjectNameList.map((t=>c(N,{textColor:"#F67146",color:"#FFE7DA"},I(t)?t:{default:()=>[t]})))])]),value:()=>c("div",{class:m.mins},[c("div",{class:m.nums},[c("span",null,[t.practiceTimes]),n(" 分钟")]),c("div",{class:m.text},[n("练习时长")])])}))))?t:{default:()=>[t]})]}):c(o,{btnStatus:!1,tips:"暂无数据"},null),c(d,{show:s.subjectStatus,"onUpdate:show":t=>s.subjectStatus=t,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[c(x,{columns:s.subjectList,onCancel:()=>s.subjectStatus=!1,onConfirm:t=>{console.log(t);const a=t.selectedOptions[0];s.subjectName=a.subjectName,s.params.subjectId=a.subjectId,s.params.page=1,s.list=[],s.listState.dataShow=!0,s.listState.loading=!1,s.listState.finished=!1,f(),s.subjectStatus=!1},columnsFieldNames:{text:"subjectName",value:"subjectId"}},null)]})])}}}))}}}));
|