import{_ as q,r as u,aa as A,ae as J,C as Q,e as g,D as W,o as p,c as b,m as M,F,h as t,l as L,w as o,f as d,G as C,H as E,L as X,p as m,z as D,K as R,n as ee,ab as ae,E as te,v as le}from"./index.82404a61.js";import{a as ne,d as oe,G as se}from"./naturalWaterArea.e895856c.js";import{F as ie}from"./tenderReview.d767f761.js";import de from"./tableDalgo.d610d8fe.js";import"./rules.4ab3a271.js";const re={class:"water-analysis-page"},ce=["onClick"],ue={class:"dialog-footer"},pe={__name:"todoDon",props:["params"],setup(B,{expose:$}){const{params:y}=B,{proxy:z}=le();let c=u(!1),h=u(1);const T=u([{value:"\u8003\u6838\u5E74\u5EA6",key:"year"},{value:"\u96E8\u6C34\u8D44\u6E90\u5316\u5229\u7528t",key:"realScore"},{value:"\u76EE\u6807\u96E8\u6C34\u8D44\u6E90\u5316\u5229\u7528t",key:"itemTarget"},{value:"\u8FBE\u6807\u60C5\u51B5",key:"standardFlag"},{value:"\u4F50\u8BC1\u6750\u6599",key:"attachFileList"}]),S=u(1),x=u(),s=u({pageNum:1,pageSize:10,title:""});let G=A({tableData:"",tableDateTwo:"",tableLoading:!0}),{date:me,tableData:V,tableDateTwo:fe,tableLoading:N}=J(G);$({search:e=>{_(e),h.value++}});let v=u({});const w=(e,n,i)=>{console.log("row",e),s.value.title=i,n==1||n==2?(v.value={...y,data:e,type:n,monitorDynamicTableTitleList:T.value,allRealValue:S.value,iSstandardFlag:Number(e.standardFlag)},ie({refId:e.id,refType:"YSZYHLY"}).then(({data:k})=>{v.value.fileList1=k,c.value=!0})):n==3&&z.$modal.confirm("\u662F\u5426\u786E\u8BA4\u5220\u9664?").then(async()=>{P(e.id),getTableData()}).catch(()=>{})},P=async e=>{await ne(e),_(y)},_=async e=>{let{code:n,data:i,monitorDynamicTableTitleList:k,total:f}=await oe(e);V.value=i,s.value.totals=f,N.value=!1};function I(){c.value=!1,_(y)}function K(){x.value.submit()}function U(e){return te.confirm(`\u4E0B\u8F7D\u6B64\u6587\u4EF6: ${e.name}\uFF1F`).then(()=>window.open(e.url),()=>!1)}const Y=async e=>{let{code:n,data:i}=await se(e);S.value=i||1};return Q(()=>{_(y),Y("water_area")}),(e,n)=>{const i=g("el-table-column"),k=g("el-tag"),f=g("el-button"),j=g("el-table"),H=g("pagination"),O=g("el-dialog"),Z=W("loading");return p(),b(C,null,[M("div",re,[F((p(),L(j,{key:t(h),data:t(V),stripe:"","max-height":"500"},{default:o(()=>[d(i,{type:"index",width:"55",label:"\u5E8F\u53F7",align:"center"}),(p(!0),b(C,null,E(t(T),a=>(p(),L(i,{label:a.value,align:"center",prop:a.key,"show-overflow-tooltip":""},X({_:2},[a.key=="standardFlag"?{name:"default",fn:o(({row:l})=>[d(k,{round:"",type:l.standardFlag===""?"warning":l.standardFlag==="1"?"success":"error"},{default:o(()=>[m(D(l.standardFlag===""?"\u672A\u586B\u62A5":l.standardFlag==="1"?"\u8FBE\u6807":"\u672A\u8FBE\u6807"),1)]),_:2},1032,["type"])]),key:"0"}:void 0,a.key=="itemTarget"?{name:"default",fn:o(({row:l})=>{var r;return[m(D((r=l==null?void 0:l.itemDataTypePerformanceEvaluateItemList[0])==null?void 0:r.itemTarget),1)]}),key:"1"}:void 0,a.key=="realScore"?{name:"default",fn:o(({row:l})=>{var r;return[m(D((r=l==null?void 0:l.itemDataTypePerformanceEvaluateItemList[0])==null?void 0:r.realScore),1)]}),key:"2"}:void 0,a.key=="attachFileList"?{name:"default",fn:o(({row:l})=>[(p(!0),b(C,null,E(l.attachFileList,r=>(p(),b("span",{onClick:_e=>U(r),style:{color:"#108ee9"}},D(r.name),9,ce))),256))]),key:"3"}:void 0]),1032,["label","prop"]))),256)),d(i,{fixed:"right",label:"\u64CD\u4F5C",width:"250",align:"center"},{default:o(({row:a})=>[d(f,{link:"",type:"primary",icon:"View",onClick:l=>w(a,1,"\u8BE6\u60C5")},{default:o(()=>[m("\u8BE6\u60C5")]),_:2},1032,["onClick"]),d(f,{link:"",icon:"Edit",type:"warning",onClick:l=>w(a,2,"\u4FEE\u6539")},{default:o(()=>[m("\u4FEE\u6539")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[Z,t(N)]])]),F(d(H,{total:t(s).totals,page:t(s).pageNum,"onUpdate:page":n[0]||(n[0]=a=>t(s).pageNum=a),limit:t(s).pageSize,"onUpdate:limit":n[1]||(n[1]=a=>t(s).pageSize=a),onPagination:n[2]||(n[2]=a=>_(t(s)))},null,8,["total","page","limit"]),[[R,t(s).totals>0]]),d(O,{modelValue:t(c),"onUpdate:modelValue":n[3]||(n[3]=a=>ae(c)?c.value=a:c=a),title:"\u96E8\u6C34\u8D44\u6E90\u5316\u5229\u7528"+t(s).title,"modal-append-to-body":!1,"close-on-click-modal":!1,width:"51%"},{footer:o(()=>[M("div",ue,[F(d(f,{onClick:K,type:"primary"},{default:o(()=>[m("\u4FDD\u5B58")]),_:1},512),[[R,t(v).type=="2"]]),d(f,{onClick:I},{default:o(()=>[m("\u5173\u95ED")]),_:1})])]),default:o(()=>[t(c)?(p(),L(de,{ref_key:"tableDalgoRef",ref:x,onOnModalClose:I,typeList:t(v),key:t(h)},null,8,["typeList"])):ee("",!0)]),_:1},8,["modelValue","title"])],64)}}},he=q(pe,[["__scopeId","data-v-14b63f4a"]]);export{he as default};