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-0b260e85.js 2.7KB

před 1 měsícem
1
  1. import{p as D}from"./reformCheck-d72527b2.js";import{x as F,a as h,r as m,o as L,b as l,c,d as i,f as e,h as a,i as g,F as P,k as z}from"./index-dd5fae99.js";const B=["onClick"],E=["onClick"],S=z({beforeRouteEnter(s,_,r){s.query.title&&(s.meta.title=s.query.title),r()}}),Y=Object.assign(S,{__name:"index",setup(s){const _=F(),r=h({projectName:void 0}),u=m(),f=m(0),C=h([{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:"操作",slot:"action",width:"110",fixed:"right"}]),b=m([]),p=async(n=u.value.pageParams)=>{const t=await D(d.value,_.query.planId,{...n,...r});b.value=t.data.records,f.value=t.data.total},N=()=>{p()},I=()=>{r.name=void 0,u.value.pageParams.pageNumber=1,u.value.pageParams.pageSize=10,p()},d=m("1"),T=n=>{d.value=n,p()};return L(()=>{p()}),(n,t)=>{const V=l("el-input"),j=l("el-form-item"),v=l("el-col"),w=l("el-button"),x=l("el-row"),q=l("el-form"),k=l("el-card"),y=l("el-tab-pane"),O=l("el-tabs"),R=l("table-list");return c(),i(P,null,[e(k,{class:"search mb-16"},{default:a(()=>[e(q,{"label-suffix":":",model:r,size:"small"},{default:a(()=>[e(x,{gutter:16},{default:a(()=>[e(v,{span:8},{default:a(()=>[e(j,{label:"项目名称"},{default:a(()=>[e(V,{modelValue:r.projectName,"onUpdate:modelValue":t[0]||(t[0]=o=>r.projectName=o),placeholder:"请输入"},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(()=>t[2]||(t[2]=[g("查询")])),_:1}),e(w,{onClick:I},{default:a(()=>t[3]||(t[3]=[g("重置")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(k,{class:"tab-card"},{header:a(()=>[e(O,{modelValue:d.value,"onUpdate:modelValue":t[1]||(t[1]=o=>d.value=o),onTabChange:T},{default:a(()=>[e(y,{label:"待核查",name:"1"}),e(y,{label:"已核查",name:"2"})]),_:1},8,["modelValue"])]),default:a(()=>[e(R,{ref_key:"tableListRef",ref:u,column:C,data:b.value,total:f.value,onGetTableData:p},{action:a(({scope:o})=>[d.value==="1"?(c(),i("a",{key:0,onClick:$=>n.$router.push({name:"reformCheckHandle",query:{projectCode:o.row.projectCode,projectId:o.row.projectId,appraisalId:o.row.appraisalId}})},"处理",8,B)):(c(),i("a",{key:1,onClick:$=>n.$router.push({name:"reformCheckScoreDetail",query:{projectCode:o.row.projectCode,projectId:o.row.projectId,appraisalId:o.row.appraisalId,groupId:o.row.groupId}})},"详情",8,E))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{Y as default};