Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

2 linhas
2.8KB

  1. import{g as R}from"./projectReview-64da128f.js";import{x as V,a as g,r as d,$ as q,o as O,b as r,c as u,d as c,f as a,h as t,i as k,e as v,t as $,F as D,k as P}from"./index-dd5fae99.js";const B=["onClick"],F=["onClick"],G=P({beforeRouteEnter(p,m,n){p.query.title&&(p.meta.title=p.query.title),n()}}),E=Object.assign(G,{__name:"index",setup(p){const m=V(),n=g({projectName:void 0}),s=d(),f=d(5),h=g([{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:l=>q("span",l.selfAppraisalTotalScore||l.selfAppraisalTotalScore===0?l.selfAppraisalTotalScore:"-")},{label:"操作",slot:"action",width:"110",fixed:"right"}]),_=d([]),i=async(l=s.value.pageParams)=>{const o=await R(m.query.reAppraisalGroupId,{...n,...l});_.value=o.data.records,f.value=o.data.total},I=()=>{i()},N=()=>{n.projectName=void 0,s.value.pageParams.pageNumber=1,s.value.pageParams.pageSize=10,i()};return O(()=>{i()}),(l,o)=>{const C=r("el-input"),b=r("el-form-item"),w=r("el-col"),j=r("el-button"),T=r("el-row"),S=r("el-form"),y=r("el-card"),x=r("table-list");return u(),c(D,null,[a(y,{class:"search mb-16"},{default:t(()=>[a(S,{"label-suffix":":",model:n,size:"small"},{default:t(()=>[a(T,{gutter:16},{default:t(()=>[a(w,{span:8},{default:t(()=>[a(b,{label:"项目名称"},{default:t(()=>[a(C,{modelValue:n.projectName,"onUpdate:modelValue":o[0]||(o[0]=e=>n.projectName=e),placeholder:"请输入"},null,8,["modelValue"])]),_:1})]),_:1}),a(w,{span:16},{default:t(()=>[a(b,{class:"btn"},{default:t(()=>[a(j,{type:"primary",onClick:I},{default:t(()=>o[1]||(o[1]=[k("查询")])),_:1}),a(j,{onClick:N},{default:t(()=>o[2]||(o[2]=[k("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),a(y,null,{header:t(()=>o[3]||(o[3]=[v("div",{class:"flex justify-between items-center"},[v("span",null,"项目列表")],-1)])),default:t(()=>[a(x,{ref_key:"tableListRef",ref:s,column:h,data:_.value,total:f.value,onGetTableData:i},{action:t(({scope:e})=>[e.row.canReAppraisal?(u(),c("a",{key:0,onClick:A=>l.$router.push({name:"reviewGiveScore",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,groupId:e.row.groupId,canReAppraisal:!0}})},$(e.row.draftId?"继续打分":"打分"),9,B)):(u(),c("a",{key:1,onClick:A=>l.$router.push({name:"reviewScoreDetail",query:{projectCode:e.row.projectCode,projectId:e.row.projectId,appraisalId:e.row.appraisalId,groupId:e.row.groupId}})},"详情",8,F))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{E as default};