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

  1. import{p as D}from"./reformCheck.76e32442.js";import{d as F,x as L,b as k,r as m,o as P,c as l,e as c,f as i,h as e,i as a,j as g,F as z}from"./index.a2494fc2.js";const B=["onClick"],E=["onClick"],S=F({beforeRouteEnter(s,_,r){s.query.title&&(s.meta.title=s.query.title),r()}}),Y=Object.assign(S,{__name:"index",setup(s){const _=L(),r=k({projectName:void 0}),u=m(),f=m(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:"\u64CD\u4F5C",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 P(()=>{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"),y=l("el-card"),h=l("el-tab-pane"),O=l("el-tabs"),R=l("table-list");return c(),i(z,null,[e(y,{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:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(V,{modelValue:r.projectName,"onUpdate:modelValue":t[0]||(t[0]=o=>r.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(()=>t[2]||(t[2]=[g("\u67E5\u8BE2")])),_:1}),e(w,{onClick:I},{default:a(()=>t[3]||(t[3]=[g("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(y,{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(h,{label:"\u5F85\u6838\u67E5",name:"1"}),e(h,{label:"\u5DF2\u6838\u67E5",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}})},"\u5904\u7406",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}})},"\u8BE6\u60C5",8,E))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{Y as default};