Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

2 wiersze
3.5KB

  1. import{d as T,A as B,ac as P,b as $,c as u,e as p,f as y,u as r,F as E,J as L,g as a,t as l,h as s,i as t,j as g,I as k,k as V,x as q}from"./index.d340e473.js";import{N as I}from"./index.b5cf0c78.js";import{g as F}from"./evaluationPlan.8a546679.js";const O={class:"projectList"},R={class:"left"},U={class:"info"},G={class:"tit"},J={class:"mb-4 pointTit"},H=a("span",{class:"label"},"\u81EA\u8BC4\u65F6\u95F4\uFF1A",-1),K={class:"value"},M=a("span",{class:"label"},"\u590D\u8BC4\u65F6\u95F4\uFF1A",-1),Q={class:"value"},W=a("span",{class:"label"},"\u6838\u67E5\u65F6\u95F4\uFF1A",-1),X={class:"value"},Y=a("span",{class:"label"},"\u8BC4\u4EF7\u9879\u76EE\u6570\u91CF\uFF1A",-1),Z={class:"value"},ee=a("span",{class:"label"},"\u521B\u5EFA\u65F6\u95F4\uFF1A",-1),ae={class:"value"},se=T({name:"projectList"}),oe=Object.assign(se,{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(h,{expose:S,emit:D}){const c=h,{proxy:b}=q(),v=D,m=B(),{listData:C}=P(c),n=$({pageNumber:1,pageSize:c.pageSizes[0]}),x=()=>{v("getTableData",n)},N=()=>{v("getTableData",n)},j=z=>{b.$messageBox.confirm("\u786E\u5B9A\u8981\u5220\u9664\u8BE5\u8BA1\u5212\u5417?","\u63D0\u793A\uFF01",{type:"warning"}).then(async()=>{await F(z.id),b.$message.success("\u5220\u9664\u6210\u529F")})};return S({pageParams:n}),(z,d)=>{const i=u("el-col"),f=u("el-row"),_=u("el-button"),A=u("el-pagination");return p(),y("div",O,[r(C).length?(p(!0),y(E,{key:0},L(r(C),(e,w)=>(p(),y("div",{key:w,class:"list"},[a("div",R,[a("div",U,[a("div",G,[a("p",J,l(e.name),1)]),s(f,{gutter:4},{default:t(()=>[s(i,{span:7,class:"mb-8"},{default:t(()=>[H,a("span",K,l(e.selfAppraisalStart.split(" ")[0])+"~"+l(e.selfAppraisalEnd.split(" ")[0]),1)]),_:2},1024),s(i,{span:7,class:"mb-8"},{default:t(()=>[M,a("span",Q,l(e.reAppraisalStart.split(" ")[0])+"~"+l(e.reAppraisalEnd.split(" ")[0]),1)]),_:2},1024),s(i,{span:7,class:"mb-8"},{default:t(()=>[W,a("span",X,l(e.verificationStart.split(" ")[0])+"~"+l(e.verificationEnd.split(" ")[0]),1)]),_:2},1024)]),_:2},1024),s(f,{gutter:4},{default:t(()=>[s(i,{span:7,class:"mb-8"},{default:t(()=>{var o;return[Y,a("a",Z,l(((o=e.projects)==null?void 0:o.length)||0),1)]}),_:2},1024),s(i,{span:6,class:"mb-8"},{default:t(()=>[ee,a("span",ae,l(e.createOn||"-"),1)]),_:2},1024)]),_:2},1024),s(f,{gutter:4,justify:"end"},{default:t(()=>[s(_,{type:"primary",size:"small",plain:"",onClick:o=>r(m).push({name:"addPlan",query:{id:e.id}})},{default:t(()=>[g("\u7F16\u8F91")]),_:2},1032,["onClick"]),s(_,{type:"primary",size:"small",plain:"",onClick:o=>r(m).push({name:"projectGroup",query:{appraisalId:e.id}})},{default:t(()=>[g("\u9879\u76EE\u5206\u7EC4")]),_:2},1032,["onClick"]),s(_,{type:"primary",size:"small",plain:"",onClick:o=>r(m).push({name:"planDetail",query:{id:e.id}})},{default:t(()=>[g("\u8BE6\u60C5")]),_:2},1032,["onClick"]),new Date(e.selfAppraisalStart).getTime()>new Date().getTime()?(p(),k(_,{key:0,type:"danger",size:"small",plain:"",onClick:o=>j(e)},{default:t(()=>[g("\u5220\u9664")]),_:2},1032,["onClick"])):V("",!0)]),_:2},1024)])])]))),128)):(p(),k(I,{key:1})),s(A,{currentPage:n.pageNumber,"onUpdate:currentPage":d[0]||(d[0]=e=>n.pageNumber=e),"page-size":n.pageSize,"onUpdate:pageSize":d[1]||(d[1]=e=>n.pageSize=e),small:h.small,background:"","page-sizes":c.pageSizes,layout:"total, sizes, prev, pager, next",total:c.total,onSizeChange:x,onCurrentChange:N},null,8,["currentPage","page-size","small","page-sizes","total"])])}}});export{oe as default};