reward-detail.df034fd8.js 3.6 KB

1
  1. import{d as h,ah as y,R as o,r as I,$ as b,m as c,g as r,y as E,c as a,aj as j,q as l,ak as w,P as C}from"./index.5f7ffb46.js";import{s as t}from"./index.module.6c7a343e.js";import{O as N}from"./index.1d6ac2c5.js";import{O as S}from"./index.7790de2a.js";import{C as f}from"./index.abd668f7.js";import{G as B,a as m}from"./index.adf0b8fc.js";import{P as T}from"./index.de1f78a6.js";import"./Picker.148c9d83.js";import"./index.6bbd7daa.js";import"./use-tab-status.69b57a37.js";import"./index.99e0cf1f.js";import"./index.61ab9823.js";var D=h({name:"subsidy-reward-detail",setup(){const p=y(),d=o(!1);o(!1);const s=I({subjectId:"",subjects:[],manageSalary:{},rows:[]}),n=()=>{c.post(`${r.platformApi}/schoolWeekSalaryRecord/detailInfo/trainingTitle`,{data:{id:p.query.id,userId:r.user.data.id,subjectId:s.subjectId}}).then(e=>{s.manageSalary=(e==null?void 0:e.data)||{}}),c.post(`${r.platformApi}/schoolWeekSalaryRecord/detailInfo/trainingPage`,{data:{id:p.query.id,userId:r.user.data.id,subjectId:s.subjectId}}).then(e=>{var u;s.rows=((u=e==null?void 0:e.data)==null?void 0:u.rows)||[]}).finally(()=>{d.value=!1})};b(()=>{c.post(`${r.platformApi}/subjectBasicConfig/page`,{data:{page:1,rows:9999}}).then(e=>{var u;Array.isArray((u=e==null?void 0:e.data)==null?void 0:u.rows)&&(s.subjects=e.data.rows)}),n()});const g=E(()=>{const e=s.subjects.map(u=>({text:u.subjectName,value:u.subjectId}));return[{text:"\u5168\u90E8\u58F0\u90E8"},...e]}),v=o("\u5168\u90E8\u58F0\u90E8"),i=o(!1);return()=>a("div",null,[a(S,{onGetHeight:e=>{document.documentElement.style.setProperty("--header-height",e+"px")}},{default:()=>[a(j,null,null)]}),a(N,{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,onRefresh:n,style:"min-height: calc(100vh - var(--header-height))"},{default:()=>[a("div",{class:[t.wrap]},[a("div",{class:t.item},[a(f,{center:!0},{title:()=>a("div",{class:t.itemTitle},[a("div",{class:t.titleLine},null),a("span",null,[l("\u7EC3\u4E60\u5956\u52B1")])])}),a(B,{class:t.grid,columnNum:3,border:!1},{default:()=>[a(m,null,{default:()=>[a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[s.manageSalary.standardSalary||0]),l("\u5143/\u4EBA")]),a("div",null,[l("\u8865\u52A9\u6807\u51C6")])])]}),a(m,null,{default:()=>[a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[s.manageSalary.targetNum||0]),l("\u4EBA")]),a("div",null,[l("\u7EC3\u4E60\u8FBE\u6807\u4EBA\u6570")])])]}),a(m,null,{default:()=>[a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[s.manageSalary.actualSalary||0]),l("\u5143")]),a("div",null,[l("\u5B9E\u9645\u5956\u52B1")])])]})]})]),a("div",{class:"searchGroup-single",style:"padding-top: 0 !important;"},[a("div",{class:["searchItem",i.value?"searchItem-active":""],onClick:()=>i.value=!0},[a("span",null,[v.value])])]),s.rows.length?a("div",{class:t.item},[s.rows.map(e=>a(f,{center:!0},{icon:()=>a("img",{class:t.itemPicture,src:e.avatar},null),title:()=>a("div",{class:t.itemTitle},[a("span",null,[e.nickname])]),label:()=>a("span",{class:t.itemTag},[e.subjectNames]),value:()=>a("div",{class:t.gridItem},[a("div",{class:t.gridItemTop},[a("span",{class:t.topNum},[e.practiceTimes]),l("\u5206\u949F")]),a("div",{class:t.valeLabel},[l("\u7EC3\u4E60\u65F6\u957F")])])}))]):a(w,{tips:"\u6682\u65E0\u5B66\u5458\u7EC3\u4E60"},null)])]}),a(C,{show:i.value,"onUpdate:show":e=>i.value=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(T,{columns:g.value,onCancel:()=>i.value=!1,onConfirm:e=>{v.value=e.selectedOptions[0].text||"\u5168\u90E8\u58F0\u90E8",s.subjectId=e.selectedOptions[0].value||"",i.value=!1,n()}},null)]})])}});export{D as default};