reward-detail-legacy.b23ae114.js 3.7 KB

1
  1. System.register(["./index-legacy.eb062188.js","./index.module-legacy.05b54fee.js","./index-legacy.d64e5695.js","./index-legacy.ad813f4d.js","./index-legacy.918b8c74.js","./index-legacy.761bf286.js","./index-legacy.38b799d5.js","./Picker-legacy.95f03705.js","./index-legacy.ac7c51db.js","./use-tab-status-legacy.91417466.js","./index-legacy.fab451f1.js","./index-legacy.10d8486a.js"],(function(e){"use strict";var a,l,t,s,n,i,d,c,u,o,r,m,v,p,g,f,y,b,j,h;return{setters:[function(e){a=e.d,l=e.ah,t=e.R,s=e.r,n=e.$,i=e.m,d=e.g,c=e.y,u=e.c,o=e.aj,r=e.q,m=e.ak,v=e.P},function(e){p=e.s},function(e){g=e.O},function(e){f=e.O},function(e){y=e.C},function(e){b=e.G,j=e.a},function(e){h=e.P},function(){},function(){},function(){},function(){},function(){}],execute:function(){e("default",a({name:"subsidy-reward-detail",setup(){const e=l(),a=t(!1);t(!1);const I=s({subjectId:"",subjects:[],manageSalary:{},rows:[]}),x=()=>{i.post(`${d.platformApi}/schoolWeekSalaryRecord/detailInfo/trainingTitle`,{data:{id:e.query.id,userId:d.user.data.id,subjectId:I.subjectId}}).then((e=>{I.manageSalary=(null==e?void 0:e.data)||{}})),i.post(`${d.platformApi}/schoolWeekSalaryRecord/detailInfo/trainingPage`,{data:{id:e.query.id,userId:d.user.data.id,subjectId:I.subjectId}}).then((e=>{var a;I.rows=(null==e||null===(a=e.data)||void 0===a?void 0:a.rows)||[]})).finally((()=>{a.value=!1}))};n((()=>{i.post(`${d.platformApi}/subjectBasicConfig/page`,{data:{page:1,rows:9999}}).then((e=>{var a;Array.isArray(null==e||null===(a=e.data)||void 0===a?void 0:a.rows)&&(I.subjects=e.data.rows)})),x()}));const w=c((()=>[{text:"全部声部"},...I.subjects.map((e=>({text:e.subjectName,value:e.subjectId})))])),S=t("全部声部"),T=t(!1);return()=>u("div",null,[u(f,{onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[u(o,null,null)]}),u(g,{modelValue:a.value,"onUpdate:modelValue":e=>a.value=e,onRefresh:x,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[u("div",{class:[p.wrap]},[u("div",{class:p.item},[u(y,{center:!0},{title:()=>u("div",{class:p.itemTitle},[u("div",{class:p.titleLine},null),u("span",null,[r("练习奖励")])])}),u(b,{class:p.grid,columnNum:3,border:!1},{default:()=>[u(j,null,{default:()=>[u("div",{class:p.gridItem},[u("div",{class:p.gridItemTop},[u("span",{class:p.topNum},[I.manageSalary.standardSalary||0]),r("元/人")]),u("div",null,[r("补助标准")])])]}),u(j,null,{default:()=>[u("div",{class:p.gridItem},[u("div",{class:p.gridItemTop},[u("span",{class:p.topNum},[I.manageSalary.targetNum||0]),r("人")]),u("div",null,[r("练习达标人数")])])]}),u(j,null,{default:()=>[u("div",{class:p.gridItem},[u("div",{class:p.gridItemTop},[u("span",{class:p.topNum},[I.manageSalary.actualSalary||0]),r("元")]),u("div",null,[r("实际奖励")])])]})]})]),u("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[u("div",{class:["searchItem",T.value?"searchItem-active":""],onClick:()=>T.value=!0},[u("span",null,[S.value])])]),I.rows.length?u("div",{class:p.item},[I.rows.map((e=>u(y,{center:!0},{icon:()=>u("img",{class:p.itemPicture,src:e.avatar},null),title:()=>u("div",{class:p.itemTitle},[u("span",null,[e.nickname])]),label:()=>u("span",{class:p.itemTag},[e.subjectNames]),value:()=>u("div",{class:p.gridItem},[u("div",{class:p.gridItemTop},[u("span",{class:p.topNum},[e.practiceTimes]),r("分钟")]),u("div",{class:p.valeLabel},[r("练习时长")])])})))]):u(m,{tips:"暂无学员练习"},null)])]}),u(v,{show:T.value,"onUpdate:show":e=>T.value=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[u(h,{columns:w.value,onCancel:()=>T.value=!1,onConfirm:e=>{S.value=e.selectedOptions[0].text||"全部声部",I.subjectId=e.selectedOptions[0].value||"",T.value=!1,x()}},null)]})])}}))}}}));