This commit is contained in:
njdaoyehu 2025-03-07 10:25:40 +08:00
parent 833534013b
commit 9986b27c90
12 changed files with 18 additions and 18 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
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};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
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};