import{b as x}from"./prevention.b5b1f2ff.js";import{_ as D,r as u,C as S,e as l,D as C,o as c,c as N,F as B,h as m,l as s,w as o,f as a,m as f,z as y,J as V,p as _}from"./index.82404a61.js";const P={class:"water-analysis-page"},z={style:{color:"lime"}},I={__name:"todoDon",setup(L,{emit:b}){const d=u([]),i=u(!0),h=async()=>{const r=await x({examineType:"water_quality"});r&&r.code==200&&(i.value=!1,d.value=r.data)},g=n=>{console.log("row121212",n),b("searchClick",{...n,type:1})};return S(()=>{h()}),(n,r)=>{const t=l("el-table-column"),p=l("el-tag"),v=l("el-button"),w=l("el-table"),k=C("loading");return c(),N("div",P,[B((c(),s(w,{data:m(d),stripe:"","max-height":"500",border:""},{default:o(()=>[a(t,{label:"\u5E74\u5EA6",prop:"examineYear"}),a(t,{label:"\u672A\u8FBE\u6807\u6C34\u4F53\u6570/\u4E2A",prop:"unRemoveNum"}),a(t,{label:"\u8003\u6838\u6C34\u4F53\u6570/\u4E2A",prop:"totalNum"}),a(t,{label:"\u8FBE\u6807\u7387%",prop:"actualPercent"},{default:o(({row:e})=>[f("span",z,y(e.actualPercent),1)]),_:1}),a(t,{label:"\u76EE\u6807\u8FBE\u6807\u7387%",prop:"targetPercent"}),a(t,{label:"\u8FBE\u6807\u60C5\u51B5",prop:"reachStandard"},{default:o(e=>[f("span",{style:V({color:e.row.reachStandard==0?"red":"lime"})},[e.row.reachStandard===""?(c(),s(p,{key:0,type:"warning"},{default:o(()=>[_("\u672A\u8BC4\u4EF7")]),_:1})):(c(),s(p,{key:1,type:e.row.reachStandard==0?"error":e.row.reachStandard==1?"success":""},{default:o(()=>[_(y(e.row.reachStandard==0?"\u4E0D\u8FBE\u6807":"\u8FBE\u6807"),1)]),_:2},1032,["type"]))],4)]),_:1}),a(t,{fixed:"right",label:"\u6C34\u4F53\u68C0\u6D4B\u8BB0\u5F55"},{default:o(({row:e})=>[a(v,{link:"",type:"primary",icon:"View",onClick:T=>g(e)},{default:o(()=>[_("\u67E5\u770B")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[k,m(i)]])])}}},F=D(I,[["__scopeId","data-v-cf6f38cf"]]);export{F as default};