25'ten fazla konu seçemezsiniz Konular bir harf veya rakamla başlamalı, kısa çizgiler ('-') içerebilir ve en fazla 35 karakter uzunluğunda olabilir.

2 satır
4.2KB

  1. import{y as R,d as U,r as m,b as N,a0 as T,z as E,o as W,c as o,e as i,f as p,h as a,i as l,j as I,g as S,n as V,t as $,k as x}from"./index.0b616ce3.js";const Y={1:"/api/v1/self-appraisal/pending-list",2:"/api/v1/self-appraisal/to-confirm",3:"/api/v1/self-appraisal/confirmed"},F=(f,r)=>R.get(`${Y[f]}`,{params:r}),M={key:0,class:"flex items-center"},H={key:1},J=["onClick"],K=["onClick"],Q=["onClick"],X=U({name:"unitSelfEvaluation"}),ee=Object.assign(X,{setup(f){const r=m(),A=N([{label:"\u5E8F\u53F7",type:"index",width:"80"},{label:"\u9879\u76EE\u540D\u79F0",key:"projectName",prop:"projectName",minWidth:"150",showOverflowTooltip:!0},{label:"\u7533\u62A5\u5355\u4F4D",key:"buildOrgName",prop:"buildOrgName",minWidth:"80",showOverflowTooltip:!0},{label:"\u9879\u76EE\u7C7B\u578B",key:"projectTypeName",prop:"projectTypeName",width:"100"},{label:"\u9884\u7B97\u5E74\u5EA6",key:"projectYear",prop:"projectYear",width:"80"},{label:"\u81EA\u8BC4\u603B\u5206",key:"selfAppraisalTotalScore",prop:"selfAppraisalTotalScore",width:"80",render:t=>T("span",t.selfAppraisalScoreTime?t.selfAppraisalTotalScore:"-")},{label:"\u6253\u5206\u65F6\u95F4",key:"selfAppraisalScoreTime",prop:"selfAppraisalScoreTime",width:"150",render:t=>T("span",t.selfAppraisalScoreTime||"-")},{label:"\u72B6\u6001",key:"status",slot:"status",width:120},{label:"\u64CD\u4F5C",slot:"action",width:130,fixed:"right"}]),b=m([]),w=m(0),d=N({projectName:void 0}),c=async(t=r.value.pageParams)=>{const n=await F(s.value,{...t,...d});b.value=n.data.records,w.value=n.data.total},O=()=>{r.value.pageParams.pageNumber=1,c()},v=()=>{d.projectName=void 0,r.value.pageParams.pageNumber=1,r.value.pageParams.pageSize=10,c()},s=m("1"),P=t=>{s.value=t,v()},q=E();return W(()=>{var t;s.value=((t=q.query)==null?void 0:t.tab)||"1",c()}),(t,n)=>{const z=o("el-input"),h=o("el-form-item"),g=o("el-col"),y=o("el-button"),D=o("el-row"),B=o("el-form"),j=o("el-card"),_=o("el-tab-pane"),G=o("el-tabs"),L=o("table-list");return i(),p("div",null,[a(j,{class:"search mb-16"},{default:l(()=>[a(B,{"label-suffix":":",model:d,size:"small"},{default:l(()=>[a(D,{gutter:16},{default:l(()=>[a(g,{span:8},{default:l(()=>[a(h,{label:"\u9879\u76EE\u540D\u79F0"},{default:l(()=>[a(z,{modelValue:d.projectName,"onUpdate:modelValue":n[0]||(n[0]=e=>d.projectName=e),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),a(g,{span:16},{default:l(()=>[a(h,{class:"btn"},{default:l(()=>[a(y,{type:"primary",onClick:O},{default:l(()=>[I("\u67E5\u8BE2")]),_:1}),a(y,{onClick:v},{default:l(()=>[I("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(j,{shadow:"never",class:"tab-card"},{header:l(()=>[a(G,{modelValue:s.value,"onUpdate:modelValue":n[1]||(n[1]=e=>s.value=e),onTabChange:P},{default:l(()=>[a(_,{label:"\u5F85\u8BC4\u4EF7",name:"1"}),a(_,{label:"\u5DF2\u8BC4\u4EF7\u5F85\u786E\u8BA4",name:"2"}),a(_,{label:"\u5DF2\u786E\u8BA4",name:"3"})]),_:1},8,["modelValue"])]),default:l(()=>[a(L,{ref_key:"tableListRef",ref:r,column:A,data:b.value,total:w.value,onGetTableData:c},{status:l(({scope:e})=>{var u,k,C;return[(u=e.row)!=null&&u.status?(i(),p("div",M,[S("span",{class:V(`dot mr-4 ${[1,2].includes((k=e.row)==null?void 0:k.status)?"bg-warning":e.row.status===3?"bg-success":"bg-danger"}`)},null,2),S("p",{class:V(`${[1,2].includes((C=e.row)==null?void 0:C.status)?"text-warning":e.row.status===3?"text-success":"text-danger"}`)},$(e.row.statusName),3)])):(i(),p("span",H))]}),action:l(({scope:e})=>[s.value==="1"&&[1,2].includes(e.row.status)?(i(),p("a",{key:0,onClick:u=>t.$router.push({name:"selfGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,status:e.row.status}})},$(e.row.draftId?"\u7EE7\u7EED\u81EA\u8BC4":"\u81EA\u8BC4\u6253\u5206"),9,J)):[4].includes(e.row.status)?(i(),p("a",{key:1,onClick:u=>t.$router.push({name:"selfGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,status:e.row.status}})},"\u91CD\u65B0\u81EA\u8BC4",8,K)):x("",!0),s.value!=="1"?(i(),p("a",{key:2,onClick:u=>t.$router.push({name:"selfScoreDetail",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,instanceId:e.row.instCode}})},"\u8BE6\u60C5",8,Q)):x("",!0)]),_:1},8,["column","data","total"])]),_:1})])}}});export{ee as default};