detect/detect.gui/Embedded/dist/assets/result-4a95700f.js
2025-03-07 10:25:40 +08:00

2 lines
2.9 KiB
JavaScript

var v=Object.defineProperty;var h=Object.getOwnPropertySymbols;var b=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var f=(s,t,e)=>t in s?v(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,k=(s,t)=>{for(var e in t||(t={}))b.call(t,e)&&f(s,e,t[e]);if(h)for(var e of h(t))B.call(t,e)&&f(s,e,t[e]);return s};var _=(s,t,e)=>new Promise((l,d)=>{var c=o=>{try{r(e.next(o))}catch(a){d(a)}},m=o=>{try{r(e.throw(o))}catch(a){d(a)}},r=o=>o.done?l(o.value):Promise.resolve(o.value).then(c,m);r((e=e.apply(s,t)).next())});import{a as C,B as R}from"./index-8e6298d7.js";import{u as O,B as T}from"./useTable-7f3ab014.js";import"./useForm-8562f570.js";import{d as X,f as w,Z as x,a4 as u,a5 as I,k as Y,_ as F,u as i,a8 as y,F as M,a9 as S}from"./vue-72a104e4.js";import{ab as J,Q as N}from"./antd-835b28bf.js";import{_ as E}from"./index.js";import"./useWindowSizeFn-7c45a656.js";import"./onMountedOrActivated-ee461833.js";import"./sortable.esm-15c0a34e.js";import"./copyTextToClipboard-07d7f4c6.js";const P=X({__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:"检测中心(mm)",dataIndex:"c",key:"c",width:"110px"},{title:"X1",dataIndex:"x1",key:"x1",width:"40px"},{title:"Y1",dataIndex:"y1",key:"y1",width:"40px"},{title:"X2",dataIndex:"x2",key:"x2",width:"40px"},{title:"Y2",dataIndex:"y2",key:"y2",width:"40px"},{title:"X3",dataIndex:"x3",key:"x3",width:"40px"},{title:"Y3",dataIndex:"y3",key:"y3",width:"40px"},{title:"X4",dataIndex:"x4",key:"x4",width:"40px"},{title:"Y4",dataIndex:"y4",key:"y4",width:"40px"},{title:"结果",dataIndex:"status",key:"status",width:"80px"}],l=w([]),d=w(),[c,{closeModal:m,setModalProps:r}]=C(a=>_(this,null,function*(){r({confirmLoading:!1}),d.value=a==null?void 0:a.record,l.value=[],(d.value&&d.value.resultJson?JSON.parse(d.value.resultJson1):[]).forEach((p,n)=>{l.value.push(k({index:n},p))})})),[o]=O({title:"",columns:e,dataSource:l,useSearchForm:!1,showTableSetting:!1,bordered:!0,showIndexColumn:!1,canResize:!1,pagination:!1,rowKey:a=>a.code});return(a,g)=>(x(),u(i(R),S(a.$attrs,{onRegister:i(c),closable:!1,showCancelBtn:!1,okText:"关闭",showFooter:"",title:"任务结果详情",width:"1450px",onOk:i(m)}),{default:I(()=>[Y(i(T),{onRegister:i(o)},{bodyCell:I(({column:p,record:n})=>[p.dataIndex==="status"?(x(),F(M,{key:0},[n.status==="good"?(x(),u(i(J),{key:0,style:{color:"#00ff00"}})):y("",!0),n.status==="error"?(x(),u(i(N),{key:1,style:{color:"#ff0000"}})):y("",!0)],64)):y("",!0)]),_:1},8,["onRegister"])]),_:1},16,["onRegister","onOk"]))}});const G=E(P,[["__scopeId","data-v-5e3ed504"]]);export{G as default};