1 |
- var V=(t,y,m)=>new Promise((A,D)=>{var v=c=>{try{d(m.next(c))}catch(w){D(w)}},_=c=>{try{d(m.throw(c))}catch(w){D(w)}},d=c=>c.done?A(c.value):Promise.resolve(c.value).then(v,_);d((m=m.apply(t,y)).next())});import{a2 as b,r as G,a3 as z,a4 as L,a5 as N,a6 as I,a7 as K,a8 as Q,d as J,u as P,o as X,c as H,w as l,a as u,b as e,V as s,a9 as $,e as f,l as h,aa as T,$ as r,n as a,ab as S,ac as W,h as g,j as C,ad as O,ae as x,af as Y,ag as ee,ah as le,t as q,p as ue,m as se,_ as ae}from"./index.6c36cb53.js";import{M as te}from"./index.a696a3d7.js";const Z="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABIAAAAcCAMAAABbGh8VAAACOlBMVEUAAAA6T2KZjT/UyoCNlr6rmiOfkDCxojLAskS3q1DKwona0ZC+qycqRnabjiuFezDCsTU/UoGjlz+/slJodHa8snAPDw4QDw+pmR6AdCAmQmmCdiayoSe3piuLgC0vRme0pTCWiDKxojuek0S3qUWek0jDtEyflkvDtlKnnVVbY5K/s16upGNoc3XSyHfBt3mGfq3NxIPVzZTX0q+xs9j///////v///ciUoH///T///n+/uv7+cghT3zn3v/KwfH//++2rd78+9L8+sSSibmBm7e9sJUyX4rl3oDe028WNVPGuE7QvTfGtDPkzTCGeSasvtD9/M718L+Op7/18rj59Lb18bB9faxig6ZtcqJSd5rw6ZhbZZTy65Lq44hKWYjz7IUnVoTg1ndAV27r32zo3GXd0WDUxl7Zylrk11fMvU/l00i0pjzWwjWDdy4JCQn19/rZ4Of+/ub+/uXR2+TK1eH8/Nz6+Nm8y9n8+9jDztj9/NSkuMz9+sb49saDn7l3lLL69bCDgK9wj65riqv59amQnKhbfqJshZ54dJ6Jk53s5pvq45b175Xq5ZRBa5Npa485ZI7q443o4YtneYry64ktW4hfaIPl3ILq4oHw537w6H1TZnnl2Xfp3nUfSnXe02ocQmgwSmUaPWEnQl5aY1ndzVgYOFjk01YcOVY1RVXZyVLdzU8cNU67rEvJukjdy0LYxkK7rEKvoELUwz/Muz/gzDvKuDu9rDW6qTWXiCuBcyBtXx5jVBKgTniJAAAANXRSTlMAlpJQRK2gnoyAR0Cpp6Wgm5GRfmhhw8GzsaurqaWjoaGflY2LiYWFfnx2cm5oWlhSTjwiIGXnqgIAAAGISURBVCjPYgADZg12VlZ2YWYGGODm4PHZkJ290VeGiQuqRCA3M8jM1NQ0aM0ONlGwGoFtqQlmwa6u7qZxadvZQOo4clN7nU2jLCy8TG2i03YyMTDo8WROdXYwbQcJOdjEreYTZVDzTWktNjNtSQQKmRWFLchRZlDwme1saWraMM1ipamppY3HejkG1i0Jgeampq7utktMTc2dJntLM0j4zKoFqgp2t10EVuUtySDsm9JobWZaM9E22dTMOswzh4mBWXZFbLW5aYDt4mRT88q+jF06DAwqW+eFWpuVdExpM7UOSdrEZAx0PfuyWCfzgtKAQiunnnRFsC8B0+aYG2pZUR8RZRWStFkT4m+2jGir5v7E5abd6fxGECFObw+HiPkL15rNWKcKDS9DJc+6qjmruso9hfRhYciXNTPQ3KpsUhY/PFg5/f3z9uzN89+tjhAysTO1d3Tz0xJigAMWl6bwyJh4XgYkIYgqQWQhFxciVIkYdE6YvpSRkQFZTDw/XwwsggC68lIwEQASemq6C8dkYAAAAABJRU5ErkJggg==",oe=t=>{const y=b(!0,"Mx_ArrayDialog_is_array_rect"),m=b(5,"Mx_ArrayDialog_row"),A=b(5,"Mx_ArrayDialog_col"),D=b(200,"Mx_ArrayDialog_row_offset"),v=b(200,"Mx_ArrayDialog_col_offset"),_=b(0,"Mx_ArrayDialog_angle");let d=[];const c=G(0),w=()=>V(void 0,null,function*(){return t(!1),d=yield z.userSelect("\u9009\u62E9\u9648\u5217\u5BF9\u8C61"),c.value=d.length,t(!0),d}),M=F=>V(void 0,null,function*(){t(!1);const p=new L;p.clearLastInputPoint(),F&&p.setMessage(F);const B=yield p.go();if(!B)return t(!0);p.setUserDraw((o,n)=>{n.drawLine(o.toVector3(),B==null?void 0:B.toVector3())});const j=yield p.go();return j?(t(!0),B.distanceTo(j)):t(!0)}),E=()=>V(void 0,null,function*(){t(!1);const F=new N;F.clearLastInputPoint(),F.setMessage("\u6307\u5B9A\u6574\u5217\u89D2\u5EA6");const p=yield F.go();typeof p=="number"&&(_.value=I(p,3)),t(!0)}),R=Q();return{isArrayRect:y,row:m,col:A,rowOffset:D,colOffset:v,angle:_,selectCount:c,selectObject:w,getLength:M,getAngle:E,onConfirmClick:()=>{if(y.value){if(c.value<=0)return R.error("\u672A\u9009\u62E9\u9700\u8981\u9635\u5217\u5BF9\u8C61!");K({iColNum:A.value,iRowNum:m.value,dAng:_.value,aryId:d,dColOffset:v.value,dRowOffset:D.value})}t(!1)}}},k=t=>(ue("data-v-1c32aa1e"),t=t(),se(),t),ne={class:"px-3"},ce={class:"d-flex justify-center align-center"},de=k(()=>u("div",{class:"box box-row mr-1"},[u("div",{class:"box-line"})],-1)),ie={class:"d-flex justify-center align-center"},re=k(()=>u("div",{class:"box box-col mr-1"},[u("div",{class:"box-line"})],-1)),fe={class:"px-2"},_e={class:"w-100"},me={class:"w-100 mt-3"},Ae={class:"w-50"},pe={class:"w-25"},ge={class:"w-25 ml-1"},Ce={class:"d-flex flex-column justify-center align-center h-100"},De={class:"w-100"},ye={class:"w-50"},ve={class:"w-25"},Fe=k(()=>u("div",{class:"w-25 ml-1"},null,-1)),xe={class:"d-flex flex-column algin-center justify-center ml-4"},we=k(()=>u("p",{class:"mr-12"}," \u4E2D\u5FC3\u70B9:",-1)),Be=k(()=>u("span",{class:""},"X:",-1)),Ve=k(()=>u("span",{class:""},"Y:",-1)),he={class:"px-3"},ke={class:"d-flex flex-column algin-center justify-center ml-4"},be={class:"h-100 pl-2"},Ee={class:"d-flex algin-center ml-2 mb-1",style:{"line-height":"1.5rem"}},je={class:"mt-2"},Me=k(()=>u("div",{class:"obj-box"},null,-1)),Re=J({__name:"index",setup(t){const{isShow:y,showDialog:m}=P(!1,"Mx_ArrayDialog"),{isArrayRect:A,row:D,col:v,rowOffset:_,colOffset:d,angle:c,selectCount:w,selectObject:M,getLength:E,getAngle:R,onConfirmClick:U}=oe(m),F=()=>V(this,null,function*(){const o=yield E("\u6307\u5B9A\u884C\u95F4\u8DDD");!o||(_.value=o)}),p=()=>V(this,null,function*(){const o=yield E("\u6307\u5B9A\u5217\u95F4\u8DDD");!o||(d.value=o)}),B=()=>V(this,null,function*(){const o=yield E("\u6307\u5B9A\u5355\u4F4D\u5355\u5143");!o||(d.value=o,_.value=o)}),j=[{name:"\u786E\u5B9A",fun:U,primary:!0},{name:"\u53D6\u6D88",fun:()=>m(!1)}];return(o,n)=>(X(),H(te,{title:"\u9635\u5217",modelValue:f(y),"onUpdate:modelValue":n[6]||(n[6]=i=>h(y)?y.value=i:null),"max-width":"520",footerBtnList:j},{default:l(()=>[u("div",ne,[e(g,{class:"mt-1","align-stretch":""},{default:l(()=>[e(s,{cols:7,class:"h-100","align-self":"start"},{default:l(()=>[e($,{modelValue:f(A),"onUpdate:modelValue":n[0]||(n[0]=i=>h(A)?A.value=i:null),inline:""},{default:l(()=>[e(T,{value:!0,class:"mr-12"},{label:l(()=>[e(r,{"key-name":"R"},{default:l(()=>[a("\u77E9\u5F62\u9635\u5217")]),_:1})]),_:1}),e(T,{value:!1},{label:l(()=>[e(r,{"key-name":"P"},{default:l(()=>[a("\u73AF\u5F62\u9635\u5217")]),_:1})]),_:1})]),_:1},8,["modelValue"]),S(u("div",null,[e(g,null,{default:l(()=>[e(s,{cols:"6"},{default:l(()=>[e(C,{class:"mt-2 ml-2",type:"number",modelValue:f(D),"onUpdate:modelValue":n[1]||(n[1]=i=>h(D)?D.value=i:null)},{prepend:l(()=>[u("div",ce,[de,e(r,{"key-name":"W",colon:""},{default:l(()=>[a("\u884C\u6570")]),_:1})])]),_:1},8,["modelValue"])]),_:1}),e(s,{cols:"6"},{default:l(()=>[e(C,{class:"mt-2 ml-2",type:"number",modelValue:f(v),"onUpdate:modelValue":n[2]||(n[2]=i=>h(v)?v.value=i:null)},{prepend:l(()=>[u("div",ie,[re,e(r,{"key-name":"O",colon:""},{default:l(()=>[a("\u5217\u6570")]),_:1})])]),_:1},8,["modelValue"])]),_:1})]),_:1}),e(O,{class:"mt-1",title:"\u504F\u79FB\u8DDD\u79BB\u548C\u65B9\u5411"},{default:l(()=>[u("div",fe,[e(g,{class:"mt-2"},{default:l(()=>[e(s,{cols:"4"},{default:l(()=>[u("p",_e,[e(r,{"key-name":"F",colon:""},{default:l(()=>[a("\u884C\u504F\u79FB")]),_:1})]),u("p",me,[e(r,{"key-name":"M",colon:""},{default:l(()=>[a("\u5217\u504F\u79FB")]),_:1})])]),_:1}),e(s,{cols:"8",class:"d-flex"},{default:l(()=>[u("div",Ae,[e(C,{class:"",type:"number",modelValue:f(_),"onUpdate:modelValue":n[3]||(n[3]=i=>h(_)?_.value=i:null)},null,8,["modelValue"]),e(C,{class:"mt-3",type:"number",modelValue:f(d),"onUpdate:modelValue":n[4]||(n[4]=i=>h(d)?d.value=i:null)},null,8,["modelValue"])]),u("div",pe,[e(x,{class:"h-100",onClick:B})]),u("div",ge,[u("div",Ce,[e(x,{onClick:F}),e(x,{class:"mt-2",onClick:p})])])]),_:1})]),_:1}),e(g,null,{default:l(()=>[e(s,{cols:"4"},{default:l(()=>[u("p",De,[e(r,{"key-name":"A",colon:""},{default:l(()=>[a("\u9635\u5217\u89D2\u5EA6")]),_:1})])]),_:1}),e(s,{cols:"8",class:"d-flex"},{default:l(()=>[u("div",ye,[e(C,{class:"mt-1",type:"number",step:"0.01",modelValue:f(c),"onUpdate:modelValue":n[5]||(n[5]=i=>h(c)?c.value=i:null)},null,8,["modelValue"])]),u("div",ve,[e(x,{class:"mt-1",onClick:f(R)},null,8,["onClick"])]),Fe]),_:1})]),_:1}),e(g,{class:"mt-2"},{default:l(()=>[e(s,{cols:"3"},{default:l(()=>[u("div",xe,[e(Y,{src:Z,alt:"\u63D0\u793A",width:"24px"}),a(" \u63D0\u793A ")])]),_:1}),e(s,{cols:"9"},{default:l(()=>[a("\u9ED8\u8BA4\u60C5\u51B5\u4E0B\uFF0C\u5982\u4F55\u884C\u504F\u79FB\u4E3A\u8D1F\u503C\uFF0C\u5219\u884C\u6DFB\u52A0\u5728\u4E0B\u9762\u3002\u5982\u679C\u5217\u504F\u79FB\u4E3A\u8D1F\u503C\uFF0C\u5219\u5217\u6DFB\u52A0\u5728\u5DE6\u8FB9 ")]),_:1})]),_:1})])]),_:1})],512),[[W,f(A)]]),S(u("div",null,[e(g,{class:"d-flex mx-3 mt-1"},{default:l(()=>[we,e(C,null,{prepend:l(()=>[Be]),_:1}),e(C,{class:"ml-1"},{prepend:l(()=>[Ve]),_:1}),e(x)]),_:1}),e(O,{title:"\u65B9\u6CD5\u548C\u503C"},{default:l(()=>[u("div",he,[e(r,{"key-name":"M",colon:""},{default:l(()=>[a("\u65B9\u6CD5")]),_:1}),e(ee,{"bg-color":"grey-lighten-2",class:"",items:[]}),e(g,null,{default:l(()=>[e(s,{cols:"6"},{default:l(()=>[e(r,{"key-name":"I",colon:""},{default:l(()=>[a("\u9879\u76EE\u603B\u6570")]),_:1})]),_:1}),e(s,{cols:"3"},{default:l(()=>[e(C,{class:"mt-1"})]),_:1}),e(s,{cols:"3"})]),_:1}),e(g,null,{default:l(()=>[e(s,{cols:"6"},{default:l(()=>[e(r,{"key-name":"F",colon:""},{default:l(()=>[a("\u586B\u5145\u89D2\u5EA6")]),_:1})]),_:1}),e(s,{cols:"3"},{default:l(()=>[e(C,{class:"mt-1"})]),_:1}),e(s,{cols:"3"},{default:l(()=>[e(x)]),_:1})]),_:1}),e(g,null,{default:l(()=>[e(s,{cols:"6"},{default:l(()=>[e(r,{"key-name":"B",colon:""},{default:l(()=>[a("\u9879\u76EE\u95F4\u89D2\u5EA6")]),_:1})]),_:1}),e(s,{cols:"3"},{default:l(()=>[e(C,{class:"mt-1",disabled:""})]),_:1}),e(s,{cols:"3"},{default:l(()=>[e(x,{disabled:""})]),_:1})]),_:1}),e(g,{class:"mt-2"},{default:l(()=>[e(s,{cols:"3"},{default:l(()=>[u("div",ke,[e(Y,{src:Z,alt:"\u63D0\u793A",width:"24px"}),a(" \u63D0\u793A ")])]),_:1}),e(s,{cols:"9"},{default:l(()=>[a("\u5BF9\u4E8E\u586B\u5145\u89D2\u5EA6,\u6B63\u503C\u6307\u5B9A\u9006\u65F6\u9488\u65CB\u8F6C\uFF0C\u8D1F\u503C\u6307\u5B9A\u987A\u65F6\u9488\u65CB\u8F6C")]),_:1})]),_:1})])]),_:1}),e(le,{class:"mt-2"},{label:l(()=>[e(r,{"key-name":"T"},{default:l(()=>[a("\u590D\u5236\u65F6\u65CB\u8F6C\u9879\u76EE")]),_:1})]),_:1})],512),[[W,!f(A)]])]),_:1}),e(s,{cols:5,"align-self":"start"},{default:l(()=>[u("div",be,[u("div",Ee,[e(x,{onClick:f(M)},null,8,["onClick"]),e(r,{"key-name":"S"},{default:l(()=>[a(q(o.$t("\u9009\u62E9\u5BF9\u8C61")),1)]),_:1})]),u("p",je,q(o.$t("\u5DF2\u9009\u62E9")+f(w)+o.$t("\u4E2A")+o.$t("\u5BF9\u8C61")),1),Me])]),_:1})]),_:1})])]),_:1},8,["modelValue"]))}});const We=ae(Re,[["__scopeId","data-v-1c32aa1e"]]);export{We as default};
|