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