Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

2 lines
3.1KB

  1. import{E as P}from"./index.095525b5.js";import{l as D}from"./renewalProjectCapitalDeclare.923464d2.js";import{_ as E,d as F,b as z,r as N,c as r,e as p,G as _,i as t,h as a,g as n,j as f,f as L,F as U,H as G,t as b}from"./index.88314652.js";const O={class:"card-list-item"},$={class:"title"},q={class:"info"},H={class:"value"},I={class:"value"},J={class:"flex justify-center"},K=F({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 D({...s,...d});m.value=l.data.records,v.value=l.data.total},x=()=>{u()},k=()=>{d.name=void 0,s.pageNumber=1},j=l=>{s.pageSize=l,s.pageNumber=1,u()},S=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(P,{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:"\u9879\u76EE\u540D\u79F0"},{default:t(()=>[a(h,{modelValue:d.projectName,"onUpdate:modelValue":e[0]||(e[0]=o=>d.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},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("\u67E5\u8BE2")])),_:1}),a(c,{onClick:k},{default:t(()=>e[4]||(e[4]=[f("\u91CD\u7F6E")])),_: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,"\u9879\u76EE\u5217\u8868")],-1)])),default:t(()=>[m.value.length?(p(),_(g,{key:0,gutter:24,class:"card-list"},{default:t(()=>[(p(!0),L(U,null,G(m.value,o=>(p(),_(i,{key:o.id,sm:12,lg:8,xl:6,class:"mb-24"},{default:t(()=>[n("div",O,[n("a",$,b(o.projectName),1),n("div",q,[n("div",null,[e[6]||(e[6]=n("span",{class:"label"},"\u7533\u62A5\u5355\u4F4D\uFF1A",-1)),n("span",H,b(o.buildOrg),1)]),n("div",null,[e[7]||(e[7]=n("span",{class:"label"},"\u6279\u590D\u91D1\u989D\uFF1A",-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("\u67E5\u770B\u753B\u50CF")])),_: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:j,onCurrentChange:S},null,8,["currentPage","page-size","page-sizes","total"])]),_:1})])]),_:1})]),_:1})}}}),Z=E(M,[["__scopeId","data-v-566f5337"]]);export{Z as default};