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
3.0KB

  1. import{b as P}from"./unitSelfEvaluation-247fb738.js";import{x as R,a as k,r as c,$ as T,o as D,b as r,c as m,d as u,f as e,h as a,i as g,F,k as L}from"./index-dd5fae99.js";const z=["onClick"],B=["onClick"],E=L({beforeRouteEnter(i,_,n){i.query.title&&(i.meta.title=i.query.title),n()}}),W=Object.assign(E,{__name:"index",setup(i){const _=R(),n=k({projectName:void 0}),d=c(),f=c(0),C=k([{label:"序号",type:"index",width:"80"},{label:"项目名称",key:"projectName",prop:"projectName",minWidth:"150",showOverflowTooltip:!0},{label:"申报单位",key:"buildOrgName",prop:"buildOrgName",minWidth:"80",showOverflowTooltip:!0},{label:"项目类型",key:"projectTypeName",prop:"projectTypeName",width:"100"},{label:"预算年度",key:"projectYear",prop:"projectYear",width:"80"},{label:"自评总分",key:"selfAppraisalTotalScore",prop:"selfAppraisalTotalScore",width:"80",render:t=>T("span",t.selfAppraisalScoreTime?t.selfAppraisalTotalScore:"-")},{label:"打分时间",key:"selfAppraisalScoreTime",prop:"selfAppraisalScoreTime",width:"150",render:t=>T("span",t.selfAppraisalScoreTime||"-")},{label:"操作",slot:"action",width:"110",fixed:"right"}]),b=c([]),p=async(t=d.value.pageParams)=>{const l=await P(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 D(()=>{p()}),(t,l)=>{const A=r("el-input"),v=r("el-form-item"),w=r("el-col"),y=r("el-button"),V=r("el-row"),x=r("el-form"),j=r("el-card"),h=r("el-tab-pane"),q=r("el-tabs"),O=r("table-list");return m(),u(F,null,[e(j,{class:"search mb-16"},{default:a(()=>[e(x,{"label-suffix":":",model:n,size:"small"},{default:a(()=>[e(V,{gutter:16},{default:a(()=>[e(w,{span:8},{default:a(()=>[e(v,{label:"项目名称"},{default:a(()=>[e(A,{modelValue:n.projectName,"onUpdate:modelValue":l[0]||(l[0]=o=>n.projectName=o),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),e(w,{span:16},{default:a(()=>[e(v,{class:"btn"},{default:a(()=>[e(y,{type:"primary",onClick:N},{default:a(()=>l[2]||(l[2]=[g("查询")])),_:1}),e(y,{onClick:S},{default:a(()=>l[3]||(l[3]=[g("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(j,{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:"待评价",name:"1"}),e(h,{label:"已评价",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:$=>t.$router.push({name:"unitSelfGiveScore",query:{projectCode:o.row.projectCode,projectId:o.row.projectId,appraisalId:o.row.appraisalId}})},"自评打分",8,z)):(m(),u("a",{key:1,onClick:$=>t.$router.push({name:"unitSelfScoreDetail",query:{projectCode:o.row.projectCode,projectId:o.row.projectId,appraisalId:o.row.appraisalId}})},"详情",8,B))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{W as default};