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ů.

index.b3343fc2.js 3.2KB

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