Newer
Older
Nanping_sponge_JXKH / spongePerformanceDist / assets / todoDon.ce28ef10.js
import{b as x}from"./prevention.b5b1f2ff.js";import{_ as D,r as m,C as S,e as l,D as C,o as c,c as N,F as B,h as u,l as s,w as o,f as a,m as f,z as b,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:h}){const d=m([]),i=m(!0),y=async()=>{const r=await x({examineType:"black_odor"});r&&r.code==200&&(i.value=!1,d.value=r.data)},g=n=>{console.log("row121212",n),h("searchClick",{...n,type:1})};return S(()=>{y()}),(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:u(d),stripe:"","max-height":"500",border:""},{default:o(()=>[a(t,{label:"\u5E74\u5EA6",prop:"examineYear"}),a(t,{label:"\u9ED1\u81ED\u6C34\u4F53/\u4E2A",prop:"unRemoveNum"}),a(t,{label:"\u8003\u6838\u6C34\u4F53\u6570/\u4E2A",prop:"totalNum"}),a(t,{label:"\u6D88\u9664\u6BD4%",prop:"actualPercent"},{default:o(({row:e})=>[f("span",z,b(e.actualPercent),1)]),_:1}),a(t,{label:"\u76EE\u6807\u6D88\u9664\u6BD4%",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(()=>[_(b(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,u(i)]])])}}},J=D(I,[["__scopeId","data-v-125d56c2"]]);export{J as default};