|
- import{y as B,ad as P,a as $,b as c,c as r,d as y,u as d,F as L,H as E,e as s,t as n,f as t,h as l,i as m,L as S,j as V,k as h,s as q}from"./index-dd5fae99.js";import{N as F}from"./index-be0b3801.js";import{g as I}from"./evaluationPlan-d9bddf0a.js";const O={class:"projectList"},R={class:"left"},U={class:"info"},G={class:"tit"},H={class:"mb-4 pointTit"},J={class:"value"},K={class:"value"},M={class:"value"},Q={class:"value"},W={class:"value"},X=h({name:"projectList"}),ae=Object.assign(X,{props:{listData:Array,pageSizes:{type:Array,default:()=>[10,20,30,40]},total:{type:Number,default:0},small:{type:Boolean,default:!1}},emits:["getTableData","toDetail"],setup(b,{expose:D,emit:N}){const u=b,{proxy:v}=q(),C=N,f=B(),{listData:z}=P(u),o=$({pageNumber:1,pageSize:u.pageSizes[0]}),x=()=>{C("getTableData",o)},j=()=>{C("getTableData",o)},w=k=>{v.$messageBox.confirm("确定要删除该计划吗?","提示!",{type:"warning"}).then(async()=>{await I(k.id),v.$message.success("删除成功")})};return D({pageParams:o}),(k,e)=>{const i=c("el-col"),_=c("el-row"),g=c("el-button"),A=c("el-pagination");return r(),y("div",O,[d(z).length?(r(!0),y(L,{key:0},E(d(z),(a,T)=>(r(),y("div",{key:T,class:"list"},[s("div",R,[s("div",U,[s("div",G,[s("p",H,n(a.name),1)]),t(_,{gutter:4},{default:l(()=>[t(i,{span:7,class:"mb-8"},{default:l(()=>[e[2]||(e[2]=s("span",{class:"label"},"自评时间:",-1)),s("span",J,n(a.selfAppraisalStart.split(" ")[0])+"~"+n(a.selfAppraisalEnd.split(" ")[0]),1)]),_:2},1024),t(i,{span:7,class:"mb-8"},{default:l(()=>[e[3]||(e[3]=s("span",{class:"label"},"复评时间:",-1)),s("span",K,n(a.reAppraisalStart.split(" ")[0])+"~"+n(a.reAppraisalEnd.split(" ")[0]),1)]),_:2},1024),t(i,{span:7,class:"mb-8"},{default:l(()=>[e[4]||(e[4]=s("span",{class:"label"},"核查时间:",-1)),s("span",M,n(a.verificationStart.split(" ")[0])+"~"+n(a.verificationEnd.split(" ")[0]),1)]),_:2},1024)]),_:2},1024),t(_,{gutter:4},{default:l(()=>[t(i,{span:7,class:"mb-8"},{default:l(()=>{var p;return[e[5]||(e[5]=s("span",{class:"label"},"评价项目数量:",-1)),s("a",Q,n(((p=a.projects)==null?void 0:p.length)||0),1)]}),_:2},1024),t(i,{span:6,class:"mb-8"},{default:l(()=>[e[6]||(e[6]=s("span",{class:"label"},"创建时间:",-1)),s("span",W,n(a.createOn||"-"),1)]),_:2},1024)]),_:2},1024),t(_,{gutter:4,justify:"end"},{default:l(()=>[t(g,{type:"primary",size:"small",plain:"",onClick:p=>d(f).push({name:"addPlan",query:{id:a.id}})},{default:l(()=>e[7]||(e[7]=[m("编辑")])),_:2},1032,["onClick"]),t(g,{type:"primary",size:"small",plain:"",onClick:p=>d(f).push({name:"projectGroup",query:{appraisalId:a.id}})},{default:l(()=>e[8]||(e[8]=[m("项目分组")])),_:2},1032,["onClick"]),t(g,{type:"primary",size:"small",plain:"",onClick:p=>d(f).push({name:"planDetail",query:{id:a.id}})},{default:l(()=>e[9]||(e[9]=[m("详情")])),_:2},1032,["onClick"]),new Date(a.selfAppraisalStart).getTime()>new Date().getTime()?(r(),S(g,{key:0,type:"danger",size:"small",plain:"",onClick:p=>w(a)},{default:l(()=>e[10]||(e[10]=[m("删除")])),_:2},1032,["onClick"])):V("",!0)]),_:2},1024)])])]))),128)):(r(),S(F,{key:1})),t(A,{currentPage:o.pageNumber,"onUpdate:currentPage":e[0]||(e[0]=a=>o.pageNumber=a),"page-size":o.pageSize,"onUpdate:pageSize":e[1]||(e[1]=a=>o.pageSize=a),small:b.small,background:"","page-sizes":u.pageSizes,layout:"total, sizes, prev, pager, next",total:u.total,onSizeChange:x,onCurrentChange:j},null,8,["currentPage","page-size","small","page-sizes","total"])])}}});export{ae as default};
|