import{_ as A,r as p,aa as J,ae as Q,C as X,e as g,D as Y,o as c,c as k,m as F,F as w,h as a,l as D,w as o,f as n,G as S,H as $,L as Z,p as d,z as h,K as j,ab as B,n as ee,v as te,E as ae}from"./index.82404a61.js";import{e as oe,f as le}from"./waterloggedArea.273b7f92.js";import{F as ne}from"./tenderReview.d767f761.js";import se from"./tableDalgo.c558c37a.js";const ie={class:"water-analysis-page"},re=["onClick"],ue={class:"dialog-footer"},ce={__name:"todoDon",props:["params","waterloggingRelationWaterloggingListM"],setup(L,{expose:P}){const{params:_,waterloggingRelationWaterloggingListM:T}=L,{proxy:R}=te();R.useDict("fund_source","unit_list");let s=p(!1),b=p(1);const z=p([{value:"\u5185\u6D9D\u70B9",key:"stName"},{value:"\u5173\u8054\u9879\u76EE",key:"projectName"},{value:"\u9879\u76EE\u72B6\u6001",key:"projectStatus"},{value:"\u5185\u6D9D\u70B9\u72B6\u6001",key:"loggingRemoveStatus"},{value:"\u66F4\u65B0\u65F6\u95F4",key:"updateTime"},{value:"\u9644\u4EF6",key:"targetPercent"}]),x=p();console.log("params",_);const i=p({pageNum:1,pageSize:10,title:""});let E=J({tableData:"",tableDateTwo:"",tableLoading:!0}),{date:de,tableData:N,tableDateTwo:pe,tableLoading:M}=Q(E);P({search:l=>{m(l),b.value++}});let v=p({});const C=(l,t,u)=>{i.value.title=u,t==1||t==2?(v.value={...l,type:t},ne({refId:l.id,refType:"waterlogging_engineering"}).then(({data:y})=>{v.value.fileList1=y,s.value=!0})):t==3&&R.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664?").then(async()=>{I(l.id)}).catch(()=>{})},I=async l=>{await oe(l),m(_),T()},m=async l=>{let{data:t,total:u}=await le(l);N.value=t,i.value.totals=u,M.value=!1};function U(){s.value=!1,m(_)}function W(){x.value.submit()}function q(l){return ae.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${l.name}\uFF1F`).then(()=>window.open(l.url),()=>!1)}return X(()=>{m(_)}),(l,t)=>{const u=g("el-table-column"),y=g("el-tag"),f=g("el-button"),G=g("el-table"),H=g("pagination"),K=g("el-dialog"),O=Y("loading");return c(),k(S,null,[F("div",ie,[w((c(),D(G,{key:a(b),data:a(N),stripe:"","max-height":"500"},{default:o(()=>[n(u,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(c(!0),k(S,null,$(a(z),e=>(c(),D(u,{label:e.value,align:"center",prop:e.key,"show-overflow-tooltip":""},Z({_:2},[e.key=="projectStatus"?{name:"default",fn:o(({row:r})=>[n(y,{round:"",type:r.projectStatus==1?"success":"error"},{default:o(()=>[d(h(r.projectStatus==1?"\u5DF2\u5B8C\u5DE5":"\u672A\u5B8C\u5DE5"),1)]),_:2},1032,["type"])]),key:"0"}:void 0,e.key=="loggingRemoveStatus"?{name:"default",fn:o(({row:r})=>[n(y,{round:"",type:r.loggingRemoveStatus==1?"success":"error"},{default:o(()=>[d(h(r.loggingRemoveStatus==1?"\u5DF2\u6D88\u9664":"\u672A\u6D88\u9664"),1)]),_:2},1032,["type"])]),key:"1"}:void 0,e.key=="targetPercent"?{name:"default",fn:o(({row:r})=>[(c(!0),k(S,null,$(r.fileSaveRequestList,V=>(c(),k("span",{onClick:me=>q(V),style:{color:"#30dc7f"}},h(V.name),9,re))),256))]),key:"2"}:void 0]),1032,["label","prop"]))),256)),n(u,{fixed:"right",label:"\u64CD\u4F5C",width:"250",align:"center"},{default:o(({row:e})=>[n(f,{link:"",type:"primary",icon:"View",onClick:r=>C(e,1,"\u8BE6\u60C5")},{default:o(()=>[d("\u8BE6\u60C5")]),_:2},1032,["onClick"]),n(f,{link:"",icon:"Edit",type:"warning",onClick:r=>C(e,2,"\u4FEE\u6539")},{default:o(()=>[d("\u4FEE\u6539")]),_:2},1032,["onClick"]),n(f,{link:"",icon:"Delete",type:"danger",onClick:r=>C(e,3)},{default:o(()=>[d("\u5220\u9664")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[O,a(M)]])]),w(n(H,{total:a(i).totals,page:a(i).pageNum,"onUpdate:page":t[0]||(t[0]=e=>a(i).pageNum=e),limit:a(i).pageSize,"onUpdate:limit":t[1]||(t[1]=e=>a(i).pageSize=e),onPagination:t[2]||(t[2]=e=>m(a(i)))},null,8,["total","page","limit"]),[[j,a(i).totals>0]]),n(K,{modelValue:a(s),"onUpdate:modelValue":t[4]||(t[4]=e=>B(s)?s.value=e:s=e),title:"\u6E0D\u6C34\u70B9\u5B8C\u5DE5\u8BB0\u5F55"+a(i).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:o(()=>[F("div",ue,[w(n(f,{onClick:W,type:"primary"},{default:o(()=>[d("\u4FDD\u5B58")]),_:1},512),[[j,a(v).type=="2"]]),n(f,{onClick:t[3]||(t[3]=e=>B(s)?s.value=!1:s=!1)},{default:o(()=>[d("\u5173\u95ED")]),_:1})])]),default:o(()=>[a(s)?(c(),D(se,{ref_key:"tableDalgoRef",ref:x,onOnModalClose:U,isComponent:L.params,typeList:a(v),key:a(b)},null,8,["isComponent","typeList"])):ee("",!0)]),_:1},8,["modelValue","title"])],64)}}},ke=A(ce,[["__scopeId","data-v-959cbba6"]]);export{ke as default};