1 |
- import{s as t}from"./index.module.6c7a343e.js";import{O as h}from"./index.b0685ec5.js";import{d as y,ah as I,R as o,r as b,$ as j,m as c,g as r,y as w,c as a,aj as E,q as l,ak as C,P as N}from"./index.1c621181.js";import{O as S}from"./index.b491c24a.js";import{C as f}from"./index.fd5ae97b.js";import{G as T,a as m}from"./index.5a8ac45d.js";import{P as A}from"./index.53518914.js";import"./Picker.9bc4331c.js";import"./index.88a00aa9.js";import"./use-tab-status.40058c51.js";import"./index.78a302c3.js";import"./index.d5b73933.js";var D=y({name:"subsidy-reward-detail",setup(){const p=I(),d=o(!1);o(!1);const s=b({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})};j(()=>{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=w(()=>{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(E,null,null)]}),a(h,{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(T,{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(C,{tips:"\u6682\u65E0\u5B66\u5458\u7EC3\u4E60"},null)])]}),a(N,{show:i.value,"onUpdate:show":e=>i.value=e,position:"bottom",round:!0,class:"popupBottomSearch"},{default:()=>[a(A,{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};
|