You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.6c947005.js 2.8KB

2 kuukautta sitten
1
  1. import{p as z}from"./reformCheck.168626bf.js";import{d as D,z as F,b as k,r as u,o as L,c as o,e as m,f as i,h as e,i as a,j as g,F as P}from"./index.0b616ce3.js";const B=["onClick"],E=["onClick"],S=D({beforeRouteEnter(c,_,l){c.query.title&&(c.meta.title=c.query.title),l()}}),Y=Object.assign(S,{__name:"index",setup(c){const _=F(),l=k({projectName:void 0}),s=u(),f=u(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=u([]),p=async(n=s.value.pageParams)=>{const r=await z(d.value,_.query.planId,{...n,...l});b.value=r.data.records,f.value=r.data.total},N=()=>{p()},I=()=>{l.name=void 0,s.value.pageParams.pageNumber=1,s.value.pageParams.pageSize=10,p()},d=u("1"),T=n=>{d.value=n,p()};return L(()=>{p()}),(n,r)=>{const V=o("el-input"),h=o("el-form-item"),j=o("el-col"),v=o("el-button"),x=o("el-row"),q=o("el-form"),w=o("el-card"),y=o("el-tab-pane"),O=o("el-tabs"),R=o("table-list");return m(),i(P,null,[e(w,{class:"search mb-16"},{default:a(()=>[e(q,{"label-suffix":":",model:l,size:"small"},{default:a(()=>[e(x,{gutter:16},{default:a(()=>[e(j,{span:8},{default:a(()=>[e(h,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(V,{modelValue:l.projectName,"onUpdate:modelValue":r[0]||(r[0]=t=>l.projectName=t),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:I},{default:a(()=>[g("\u91CD\u7F6E")]),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(w,{class:"tab-card"},{header:a(()=>[e(O,{modelValue:d.value,"onUpdate:modelValue":r[1]||(r[1]=t=>d.value=t),onTabChange:T},{default:a(()=>[e(y,{label:"\u5F85\u6838\u67E5",name:"1"}),e(y,{label:"\u5DF2\u6838\u67E5",name:"2"})]),_:1},8,["modelValue"])]),default:a(()=>[e(R,{ref_key:"tableListRef",ref:s,column:C,data:b.value,total:f.value,onGetTableData:p},{action:a(({scope:t})=>[d.value==="1"?(m(),i("a",{key:0,onClick:$=>n.$router.push({name:"reformCheckHandle",query:{projectCode:t.row.projectCode,projectId:t.row.projectId,appraisalId:t.row.appraisalId}})},"\u5904\u7406",8,B)):(m(),i("a",{key:1,onClick:$=>n.$router.push({name:"reformCheckScoreDetail",query:{projectCode:t.row.projectCode,projectId:t.row.projectId,appraisalId:t.row.appraisalId,groupId:t.row.groupId}})},"\u8BE6\u60C5",8,E))]),_:1},8,["column","data","total"])]),_:1})],64)}}});export{Y as default};