You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

planList.681d3102.js 3.6KB

1
  1. import{d as B,y as P,aa as $,b as q,c,e as r,f as y,u,F as E,H as L,g as s,t as n,h as t,i as l,j as m,G as S,k as V,q as h}from"./index.766d5891.js";import{N as F}from"./index.332dd1d2.js";import{g as G}from"./evaluationPlan.5df8a1a6.js";const I={class:"projectList"},O={class:"left"},R={class:"info"},U={class:"tit"},H={class:"mb-4 pointTit"},J={class:"value"},K={class:"value"},M={class:"value"},Q={class:"value"},W={class:"value"},X=B({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 d=b,{proxy:v}=h(),C=N,f=P(),{listData:z}=$(d),o=q({pageNumber:1,pageSize:d.pageSizes[0]}),x=()=>{C("getTableData",o)},j=()=>{C("getTableData",o)},w=k=>{v.$messageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BA1\u5212\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await G(k.id),v.$message.success("\u5220\u9664\u6210\u529F")})};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",I,[u(z).length?(r(!0),y(E,{key:0},L(u(z),(a,T)=>(r(),y("div",{key:T,class:"list"},[s("div",O,[s("div",R,[s("div",U,[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"},"\u81EA\u8BC4\u65F6\u95F4\uFF1A",-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"},"\u590D\u8BC4\u65F6\u95F4\uFF1A",-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"},"\u6838\u67E5\u65F6\u95F4\uFF1A",-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"},"\u8BC4\u4EF7\u9879\u76EE\u6570\u91CF\uFF1A",-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"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",-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=>u(f).push({name:"addPlan",query:{id:a.id}})},{default:l(()=>e[7]||(e[7]=[m("\u7F16\u8F91")])),_:2},1032,["onClick"]),t(g,{type:"primary",size:"small",plain:"",onClick:p=>u(f).push({name:"projectGroup",query:{appraisalId:a.id}})},{default:l(()=>e[8]||(e[8]=[m("\u9879\u76EE\u5206\u7EC4")])),_:2},1032,["onClick"]),t(g,{type:"primary",size:"small",plain:"",onClick:p=>u(f).push({name:"planDetail",query:{id:a.id}})},{default:l(()=>e[9]||(e[9]=[m("\u8BE6\u60C5")])),_: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("\u5220\u9664")])),_: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":d.pageSizes,layout:"total, sizes, prev, pager, next",total:d.total,onSizeChange:x,onCurrentChange:j},null,8,["currentPage","page-size","small","page-sizes","total"])])}}});export{ae as default};