var v=Object.defineProperty;var y=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var _=(s,t,e)=>t in s?v(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,h=(s,t)=>{for(var e in t||(t={}))b.call(t,e)&&_(s,e,t[e]);if(y)for(var e of y(t))B.call(t,e)&&_(s,e,t[e]);return s};var k=(s,t,e)=>new Promise((i,l)=>{var c=o=>{try{n(e.next(o))}catch(a){l(a)}},u=o=>{try{n(e.throw(o))}catch(a){l(a)}},n=o=>o.done?i(o.value):Promise.resolve(o.value).then(c,u);n((e=e.apply(s,t)).next())});import{a as C,B as O}from"./index-8e6298d7.js";import{u as R,B as T}from"./useTable-7f3ab014.js";import"./useForm-8562f570.js";import{d as F,f as w,Z as m,a4 as x,a5 as I,k as M,_ as N,u as r,a8 as f,F as S,a9 as J}from"./vue-72a104e4.js";import{ab as E,Q as K}from"./antd-835b28bf.js";import{_ as P}from"./index.js";import"./useWindowSizeFn-7c45a656.js";import"./onMountedOrActivated-ee461833.js";import"./sortable.esm-15c0a34e.js";import"./copyTextToClipboard-07d7f4c6.js";const V=F({__name:"result",emits:["success","register"],setup(s,{emit:t}){const e=[{title:"预埋件编号",dataIndex:"code",key:"code"},{title:"类型",dataIndex:"type",key:"type"},{title:"X(mm)",dataIndex:"x",key:"x",width:"80px"},{title:"Y(mm)",dataIndex:"y",key:"y",width:"80px"},{title:"w(mm)",dataIndex:"w",key:"w",width:"80px"},{title:"h(mm)",dataIndex:"h",key:"h",width:"80px"},{title:"边长1(mm)",dataIndex:"l1",key:"l1",width:"90px"},{title:"边长2(mm)",dataIndex:"l2",key:"l2",width:"90px"},{title:"边长3(mm)",dataIndex:"l3",key:"l3",width:"90px"},{title:"边长4(mm)",dataIndex:"l4",key:"l4",width:"90px"},{title:"检测中心(mm)",dataIndex:"c",key:"c",width:"110px"},{title:"结果",dataIndex:"result",key:"result",width:"80px"}],i=w([]),l=w(),[c,{closeModal:u,setModalProps:n}]=C(a=>k(this,null,function*(){n({confirmLoading:!1}),l.value=a==null?void 0:a.record,i.value=[],(l.value&&l.value.resultJson?JSON.parse(l.value.resultJson):[]).forEach((p,d)=>{i.value.push(h({index:d},p))})})),[o]=R({title:"",columns:e,dataSource:i,useSearchForm:!1,showTableSetting:!1,bordered:!0,showIndexColumn:!1,canResize:!1,pagination:!1,rowKey:a=>a.code});return(a,g)=>(m(),x(r(O),J(a.$attrs,{onRegister:r(c),closable:!1,showCancelBtn:!1,okText:"关闭",showFooter:"",title:"任务结果详情",width:"1450px",onOk:r(u)}),{default:I(()=>[M(r(T),{onRegister:r(o)},{bodyCell:I(({column:p,record:d})=>[p.dataIndex==="result"?(m(),N(S,{key:0},[d.result==="OK"?(m(),x(r(E),{key:0,style:{color:"#00ff00"}})):f("",!0),d.result==="NG"?(m(),x(r(K),{key:1,style:{color:"#ff0000"}})):f("",!0)],64)):f("",!0)]),_:1},8,["onRegister"])]),_:1},16,["onRegister","onOk"]))}});const A=P(V,[["__scopeId","data-v-8e336f04"]]);export{A as default};
