|
- import{E as L}from"./index-29b4120c.js";import{l as P}from"./renewalProjectCapitalDeclare-e1231fa5.js";import{_ as D,a as z,r as N,b as r,c as p,L as _,h as t,f as a,e as n,i as f,d as E,F,H as U,t as b,k as O}from"./index-dd5fae99.js";const $={class:"card-list-item"},q={class:"title"},G={class:"info"},H={class:"value"},I={class:"value"},J={class:"flex justify-center"},K=O({name:"portraitAnalysis"}),M=Object.assign(K,{setup(Q){const d=z({projectName:void 0}),s=z({pageNumber:1,pageSize:10}),m=N([{}]),v=N(0),u=async()=>{const l=await P({...s,...d});m.value=l.data.records,v.value=l.data.total},x=()=>{u()},k=()=>{d.name=void 0,s.pageNumber=1},S=l=>{s.pageSize=l,s.pageNumber=1,u()},j=l=>{s.pageNumber=l,u()},V=l=>{d.regionCode=l.regionLevel===3?l.regionCode:void 0,d.pageNumber=1,u()};return(l,e)=>{const i=r("el-col"),h=r("el-input"),y=r("el-form-item"),c=r("el-button"),g=r("el-row"),w=r("el-form"),C=r("el-card"),T=r("el-divider"),A=r("no-data"),B=r("el-pagination");return p(),_(g,null,{default:t(()=>[a(i,{style:{"padding-right":"16px"},span:4},{default:t(()=>[a(L,{onGetTree:V})]),_:1}),a(i,{span:20},{default:t(()=>[n("div",null,[a(C,{class:"search mb-16"},{default:t(()=>[a(w,{"label-suffix":":",model:d,size:"small"},{default:t(()=>[a(g,{gutter:16},{default:t(()=>[a(i,{span:8},{default:t(()=>[a(y,{label:"项目名称"},{default:t(()=>[a(h,{modelValue:d.projectName,"onUpdate:modelValue":e[0]||(e[0]=o=>d.projectName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),a(i,{span:16},{default:t(()=>[a(y,{class:"btn"},{default:t(()=>[a(c,{type:"primary",onClick:x},{default:t(()=>e[3]||(e[3]=[f("查询")])),_:1}),a(c,{onClick:k},{default:t(()=>e[4]||(e[4]=[f("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(C,null,{header:t(()=>e[5]||(e[5]=[n("div",{class:"flex justify-between items-center"},[n("span",null,"项目列表")],-1)])),default:t(()=>[m.value.length?(p(),_(g,{key:0,gutter:24,class:"card-list"},{default:t(()=>[(p(!0),E(F,null,U(m.value,o=>(p(),_(i,{key:o.id,sm:12,lg:8,xl:6,class:"mb-24"},{default:t(()=>[n("div",$,[n("a",q,b(o.projectName),1),n("div",G,[n("div",null,[e[6]||(e[6]=n("span",{class:"label"},"申报单位:",-1)),n("span",H,b(o.buildOrg),1)]),n("div",null,[e[7]||(e[7]=n("span",{class:"label"},"批复金额:",-1)),n("span",I,b(o.annualAccumulateAmount),1)])]),a(T),n("div",J,[a(c,{plain:"",type:"primary",onClick:R=>l.$router.push({name:"portraitScreen",query:{projectCode:o.projectCode}})},{default:t(()=>e[8]||(e[8]=[f("查看画像")])),_:2},1032,["onClick"])])])]),_:2},1024))),128))]),_:1})):(p(),_(A,{key:1})),a(B,{currentPage:s.pageNumber,"onUpdate:currentPage":e[1]||(e[1]=o=>s.pageNumber=o),"page-size":s.pageSize,"onUpdate:pageSize":e[2]||(e[2]=o=>s.pageSize=o),background:"","page-sizes":s.pageSizes,layout:"total, sizes, prev, pager, next",total:v.value,onSizeChange:S,onCurrentChange:j},null,8,["currentPage","page-size","page-sizes","total"])]),_:1})])]),_:1})]),_:1})}}}),Z=D(M,[["__scopeId","data-v-566f5337"]]);export{Z as default};
|