Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

2 řádky
3.2KB

  1. import{b as R}from"./unitSelfEvaluation.c16ecc49.js";import{d as $,x as D,b as k,r as c,Z as T,o as F,c as r,e as m,f as u,h as e,i as a,j as g,F as L}from"./index.66d3f9b1.js";const z=["onClick"],B=["onClick"],E=$({beforeRouteEnter(i,_,n){i.query.title&&(i.meta.title=i.query.title),n()}}),W=Object.assign(E,{__name:"index",setup(i){const _=D(),n=k({projectName:void 0}),d=c(),f=c(0),C=k([{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:"\u64CD\u4F5C",slot:"action",width:"110",fixed:"right"}]),b=c([]),p=async(t=d.value.pageParams)=>{const l=await R(s.value,_.query.planId,{...t,...n});b.value=l.data.records,f.value=l.data.total},N=()=>{p()},S=()=>{n.projectName=void 0,d.value.pageParams.pageNumber=1,d.value.pageParams.pageSize=10,p()},s=c("1"),I=t=>{s.value=t,p()};return F(()=>{p()}),(t,l)=>{const A=r("el-input"),j=r("el-form-item"),v=r("el-col"),w=r("el-button"),V=r("el-row"),x=r("el-form"),y=r("el-card"),h=r("el-tab-pane"),q=r("el-tabs"),O=r("table-list");return m(),u(L,null,[e(y,{class:"search mb-16"},{default:a(()=>[e(x,{"label-suffix":":",model:n,size:"small"},{default:a(()=>[e(V,{gutter:16},{default:a(()=>[e(v,{span:8},{default:a(()=>[e(j,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(A,{modelValue:n.projectName,"onUpdate:modelValue":l[0]||(l[0]=o=>n.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(v,{span:16},{default:a(()=>[e(j,{class:"btn"},{default:a(()=>[e(w,{type:"primary",onClick:N},{default:a(()=>l[2]||(l[2]=[g("\u67E5\u8BE2")])),_:1}),e(w,{onClick:S},{default:a(()=>l[3]||(l[3]=[g("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(y,{class:"tab-card"},{header:a(()=>[e(q,{modelValue:s.value,"onUpdate:modelValue":l[1]||(l[1]=o=>s.value=o),onTabChange:I},{default:a(()=>[e(h,{label:"\u5F85\u8BC4\u4EF7",name:"1"}),e(h,{label:"\u5DF2\u8BC4\u4EF7",name:"2"})]),_:1},8,["modelValue"])]),default:a(()=>[e(O,{ref_key:"tableListRef",ref:d,column:C,data:b.value,total:f.value,onGetTableData:p},{action:a(({scope:o})=>[s.value==="1"&&o.row.canSelfAppraisal?(m(),u("a",{key:0,onClick:P=>t.$router.push({name:"unitSelfGiveScore",query:{projectCode:o.row.projectCode,projectId:o.row.projectId,appraisalId:o.row.appraisalId}})},"\u81EA\u8BC4\u6253\u5206",8,z)):(m(),u("a",{key:1,onClick:P=>t.$router.push({name:"unitSelfScoreDetail",query:{projectCode:o.row.projectCode,projectId:o.row.projectId,appraisalId:o.row.appraisalId}})},"\u8BE6\u60C5",8,B))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{W as default};