1 |
- import{d as h,ah as y,R as o,r as I,$ as b,m as c,g as r,y as j,c as a,aj as w,q as l,ak as E,P as C}from"./index.332c7f08.js";import{s as t}from"./index.module.6c7a343e.js";import{O as N}from"./index.626c48f9.js";import{O as S}from"./index.d7c1b6ac.js";import{C as f}from"./index.91135ff9.js";import{G as T,a as m}from"./index.5e198b6f.js";import{P as A}from"./index.656e257f.js";import"./Picker.e56f94bd.js";import"./index.7c580591.js";import"./use-tab-status.9d769af8.js";import"./index.1e2dfe6e.js";import"./index.4aa8e076.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,enableFlag:!0}}).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=j(()=>{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(w,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(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(E,{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(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};
|