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.

2 lines
3.0KB

  1. import{p as $}from"./projectReform.aca189b6.js";import{d as z,x as B,b as p,r as c,o as U,c as l,e as _,f,h as e,i as a,j as C,k as x,F as W}from"./index.88314652.js";import Y from"./rectifyDialog.704486c2.js";import"./uploadAction.a771741b.js";import"./index.b8af1d9b.js";const G=["onClick"],I=["onClick"],M=z({beforeRouteEnter(m,b,r){m.query.title&&(m.meta.title=m.query.title),r()}}),X=Object.assign(M,{__name:"index",setup(m){const b=B(),r=p({projectName:void 0}),d=c(),v=c(5),T=p([{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:"\u72B6\u6001",key:"rectifyStatusName",prop:"rectifyStatusName"},{label:"\u64CD\u4F5C",slot:"action",width:"110",fixed:"right"}]),y=c([]),i=async(n=d.value.pageParams)=>{const t=await $(u.value,b.query.planId,{...n,...r});y.value=t.data.records,v.value=t.data.total},V=()=>{i()},S=()=>{r.projectName=void 0,d.value.pageParams.pageNumber=1,d.value.pageParams.pageSize=10,i()},u=c("1"),D=n=>{u.value=n,i()},s=p({visible:!1,data:void 0,isEdit:!0}),w=async(n,t)=>{s.isEdit=t,s.data=n,s.visible=!0},E=n=>{s.visible=!1,n&&i()};return U(()=>{i()}),(n,t)=>{const O=l("el-input"),k=l("el-form-item"),N=l("el-col"),g=l("el-button"),R=l("el-row"),q=l("el-form"),h=l("el-card"),j=l("el-tab-pane"),F=l("el-tabs"),L=l("table-list");return _(),f(W,null,[e(h,{class:"search mb-16"},{default:a(()=>[e(q,{"label-suffix":":",model:r,size:"small"},{default:a(()=>[e(R,{gutter:16},{default:a(()=>[e(N,{span:8},{default:a(()=>[e(k,{label:"\u9879\u76EE\u540D\u79F0"},{default:a(()=>[e(O,{modelValue:r.projectName,"onUpdate:modelValue":t[0]||(t[0]=o=>r.projectName=o),placeholder:"\u8BF7\u8F93\u5165"},null,8,["modelValue"])]),_:1})]),_:1}),e(N,{span:16},{default:a(()=>[e(k,{class:"btn"},{default:a(()=>[e(g,{type:"primary",onClick:V},{default:a(()=>t[2]||(t[2]=[C("\u67E5\u8BE2")])),_:1}),e(g,{onClick:S},{default:a(()=>t[3]||(t[3]=[C("\u91CD\u7F6E")])),_:1})]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),e(h,{class:"tab-card"},{header:a(()=>[e(F,{modelValue:u.value,"onUpdate:modelValue":t[1]||(t[1]=o=>u.value=o),onTabChange:D},{default:a(()=>[e(j,{label:"\u5F85\u6574\u6539",name:"1"}),e(j,{label:"\u5DF2\u6574\u6539",name:"2"})]),_:1},8,["modelValue"])]),default:a(()=>[e(L,{ref_key:"tableListRef",ref:d,column:T,data:y.value,total:v.value,onGetTableData:i},{action:a(({scope:o})=>[o.row.rectifyStatus===1||o.row.rectifyStatus===2?(_(),f("a",{key:0,onClick:P=>w(o.row,1)},"\u586B\u5199\u6574\u6539\u60C5\u51B5",8,G)):x("",!0),o.row.rectifyStatus!==1?(_(),f("a",{key:1,onClick:P=>w(o.row,0)},"\u8BE6\u60C5",8,I)):x("",!0)]),_:1},8,["column","data","total"])]),_:1}),e(Y,{visible:s.visible,data:s.data,"is-edit":s.isEdit,onClose:E},null,8,["visible","data","is-edit"])],64)}}});export{X as default};