ss-component-new 1.3.74 → 1.3.76

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (125) hide show
  1. package/dist/{MTLLoader-BmVWiY_L.cjs → MTLLoader-D1uo8mcW.cjs} +1 -1
  2. package/dist/{MTLLoader-BnW0QbvD.js → MTLLoader-DYLUvPra.js} +43 -43
  3. package/dist/{OrbitControls-DT_fJft5.cjs → OrbitControls-B4mz4dJ8.cjs} +1 -1
  4. package/dist/{OrbitControls-aj7APKeL.js → OrbitControls-Cd9ZVfIV.js} +1 -1
  5. package/dist/{URDFLoader-DwZ7u4OY.js → URDFLoader-BfRhERaC.js} +195 -195
  6. package/dist/{URDFLoader-DJRlNIJX.cjs → URDFLoader-BnH2w4x6.cjs} +1 -1
  7. package/dist/{animationData-CjkMBYd2.js → animationData-CO_7EKV4.js} +12 -12
  8. package/dist/{animationData-G7GPUUPU.cjs → animationData-CjVloDDN.cjs} +1 -1
  9. package/dist/array-DtmeNOPn.cjs +1 -0
  10. package/dist/{array-sJwvZynh.js → array-Xb-5MHCa.js} +19 -18
  11. package/dist/{iconfont-CKL4t_qj.js → iconfont-CD3omIZU.js} +2 -2
  12. package/dist/{iconfont-BQYJXZ0j.cjs → iconfont-CkpU7gNh.cjs} +1 -1
  13. package/dist/{index-BKQu8b42.js → index--D0Thf0J.js} +1 -1
  14. package/dist/{index-DtWkoC81.js → index-0HSo1RHX.js} +5 -5
  15. package/dist/{index-BPPcQ4_M.cjs → index-5dvr_F6Q.cjs} +1 -1
  16. package/dist/index-B-A_4_n_.cjs +1 -0
  17. package/dist/{index-Ceiu-jba.cjs → index-B-nrai8J.cjs} +1 -1
  18. package/dist/{index-Dyhg1YNv.js → index-B5i-XCGU.js} +1 -1
  19. package/dist/{index-Cr4PDNa4.js → index-BFtGkyJf.js} +4729 -4660
  20. package/dist/index-BGuyjj26.cjs +1 -0
  21. package/dist/{index-CYAEfACa.js → index-BLeSUjbB.js} +4 -4
  22. package/dist/{index-oa1r-ylv.js → index-BLqnYCsi.js} +2 -2
  23. package/dist/{index-B_j1sFJ7.cjs → index-BQEvzo4s.cjs} +1 -1
  24. package/dist/{index-DFZOCQ_1.cjs → index-BRyE_Lab.cjs} +1 -1
  25. package/dist/index-BYyFrGfX.js +7962 -0
  26. package/dist/{index-int00xes.cjs → index-B_kCqo4M.cjs} +1 -1
  27. package/dist/{index-CnmkPahV.js → index-B_uWA5AJ.js} +1 -1
  28. package/dist/index-BfOeLrc4.cjs +36 -0
  29. package/dist/{index-CD4F-OmC.js → index-BkipVGFw.js} +4 -4
  30. package/dist/{index-CIqvcKX_.js → index-BrLLsp39.js} +11 -11
  31. package/dist/{index-CjXOUGmo.cjs → index-BulgFj9c.cjs} +1 -1
  32. package/dist/{index-BkEcW47y.js → index-C-iUVY59.js} +1971 -1871
  33. package/dist/{index-BDPv6PGL.js → index-C3gtImRs.js} +2 -2
  34. package/dist/{index-DlhGQC5h.js → index-C55GyDvp.js} +2 -2
  35. package/dist/index-C5WqP8vL.cjs +1 -0
  36. package/dist/{index-5MpPq33s.cjs → index-CAD9KqHl.cjs} +1 -1
  37. package/dist/{index-DolfKJiF.cjs → index-CFCn1Gpd.cjs} +1 -1
  38. package/dist/index-CI_UVQ4Z.js +476 -0
  39. package/dist/index-CLTriF5O.cjs +11 -0
  40. package/dist/{index-Ct1Ul4ea.js → index-CMdeEau9.js} +4 -4
  41. package/dist/{index-BKKLS83Q.js → index-COyNONVE.js} +10 -10
  42. package/dist/{index-DwTVLqfZ.js → index-CSUpvfmH.js} +4745 -4671
  43. package/dist/{index-C036vLtM.cjs → index-CVCJuzlD.cjs} +1 -1
  44. package/dist/{index-Cf0Y4zav.cjs → index-CW-lwsDk.cjs} +1 -1
  45. package/dist/index-CcJb2uXu.js +8191 -0
  46. package/dist/{index-C3qSTp9J.cjs → index-CeXyg5Rl.cjs} +1 -1
  47. package/dist/{index-gHhE4tiq.js → index-Cfzc5_ZK.js} +4 -4
  48. package/dist/{index-COtwZu5v.js → index-ChBgkXqb.js} +17 -17
  49. package/dist/{index-D3QoZ29d.cjs → index-D03MbrNK.cjs} +1 -1
  50. package/dist/{index-9KGs7whM.cjs → index-DJg5d7ei.cjs} +1 -1
  51. package/dist/{index-tEu4f9lM.js → index-DMfz6Qrm.js} +2 -2
  52. package/dist/{index-B_vXxIGd.cjs → index-DPjDv9Ws.cjs} +13 -13
  53. package/dist/{index-SHqJ0cwG.js → index-DYqVJN3W.js} +2 -2
  54. package/dist/index-DbFGGKSI.cjs +1 -0
  55. package/dist/index-Dc6Q0f3F.cjs +11 -0
  56. package/dist/{index-DHdrBDP4.cjs → index-DcqWejmU.cjs} +1 -1
  57. package/dist/{index-D8f_yaYM.cjs → index-DhSdgyHz.cjs} +1 -1
  58. package/dist/{index-iIWkjzE_.cjs → index-DtJC43XK.cjs} +1 -1
  59. package/dist/{index-N83NRi2K.js → index-DxGZaHuy.js} +6 -6
  60. package/dist/{index-CM8QEOIe.js → index-Dysx8GkS.js} +3 -3
  61. package/dist/index-HCKkRTvn.cjs +19 -0
  62. package/dist/{index-Cwb3YO5-.cjs → index-IYg_iR8H.cjs} +1 -1
  63. package/dist/{index-DZAoe0YQ.js → index-X_HnLtRC.js} +1 -1
  64. package/dist/{index-DRIJn74B.cjs → index-j1S7YTh5.cjs} +1 -1
  65. package/dist/{index-CbNN_p1y.js → index-jiFqoYN9.js} +8 -8
  66. package/dist/{index-K1n-pA4G.js → index-jkHlUTog.js} +2616 -2545
  67. package/dist/{index-BHrQS0PO.js → index-lz-ekKYh.js} +1 -1
  68. package/dist/{index-C0ar9TXN.js → index-mdJtPr2-.js} +1 -1
  69. package/dist/{index-V5cMOBtr.cjs → index-nlfIt66y.cjs} +1 -1
  70. package/dist/index-pWdzgg-b.cjs +1 -0
  71. package/dist/{index-Cwmin1ye.js → index-sHmgudEg.js} +1 -1
  72. package/dist/{index-BQu6Fpbk.cjs → index-u7JCx5KX.cjs} +1 -1
  73. package/dist/{index-BbREGM4J.js → index-vURW-4ky.js} +16 -13
  74. package/dist/{index-M1TyGRiF.cjs → index-wv1wwLNX.cjs} +1 -1
  75. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-5bWuAGGO.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CU0erI7U.js} +12433 -12426
  76. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CcGgDB4E.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dj8zYuMh.cjs} +335 -335
  77. package/dist/{index.vue_vue_type_style_index_1_lang-C9ZWGOE_.js → index.vue_vue_type_style_index_1_lang-CCQPqKHr.js} +17 -17
  78. package/dist/{index.vue_vue_type_style_index_1_lang-DVJ-x-dv.cjs → index.vue_vue_type_style_index_1_lang-DsZZR0tg.cjs} +1 -1
  79. package/dist/{isString-D4Yi9bDE.js → isString-Bn5VcA2n.js} +1 -1
  80. package/dist/{isString-Cdf6R00a.cjs → isString-DhPkQDQg.cjs} +1 -1
  81. package/dist/{main-BKdjwR7r.js → main-BLk4Mfi1.js} +4 -4
  82. package/dist/{main-CyV6vjiF.cjs → main-j2YKSWX-.cjs} +1 -1
  83. package/dist/{menuIndex-19Ruf69F.js → menuIndex-BJ1CSzli.js} +1 -1
  84. package/dist/{menuIndex-BtkpgAAq.cjs → menuIndex-D332F0dw.cjs} +1 -1
  85. package/dist/ss-component.cjs +1 -1
  86. package/dist/ss-component.css +2 -2
  87. package/dist/ss-component.js +20 -20
  88. package/dist/ss-component2.cjs +1 -1
  89. package/dist/ss-component2.js +18 -18
  90. package/dist/{threeModel-DJuzBw05.cjs → threeModel-C3N_ghfY.cjs} +1 -1
  91. package/dist/{threeModel-DFNXfXRG.js → threeModel-v33sxEBl.js} +6 -6
  92. package/dist/{threePreview-D_Wos3LS.js → threePreview-DNw547cG.js} +5 -5
  93. package/dist/{threePreview-BrZjF4eC.cjs → threePreview-Dif-1kRY.cjs} +1 -1
  94. package/dist/{threeSceneView-DpTiFJaa.js → threeSceneView-BkGy9bnz.js} +39 -39
  95. package/dist/{threeSceneView-BEYAcypx.cjs → threeSceneView-iXMcW_Z9.cjs} +1 -1
  96. package/dist/{threeSceneViewForCPMPIP-BxeILghC.cjs → threeSceneViewForCPMPIP-Bjimwk9q.cjs} +1 -1
  97. package/dist/{threeSceneViewForCPMPIP-CISy1L0U.js → threeSceneViewForCPMPIP-qP-6IJzE.js} +9 -9
  98. package/dist/{threeTrackPathView-B3Pv2bdS.cjs → threeTrackPathView-Cqrx2pEK.cjs} +1 -1
  99. package/dist/{threeTrackPathView-DMVNt168.js → threeTrackPathView-wK0hwn3B.js} +59 -59
  100. package/dist/{threeViewerHost-ATO1eJ5g.js → threeViewerHost-B2fHt8c2.js} +10 -10
  101. package/dist/{threeViewerHost-DPRAryxf.cjs → threeViewerHost-RuZpxQGN.cjs} +1 -1
  102. package/dist/{urdfTree-BFkOOnWh.cjs → urdfTree-CnVw_qic.cjs} +1 -1
  103. package/dist/{urdfTree-_wSayOr_.js → urdfTree-i-8eGN0m.js} +1 -1
  104. package/dist/{workpieceTreePanel-CFmrXk2r.js → workpieceTreePanel-Cy1eCrLl.js} +58 -58
  105. package/dist/{workpieceTreePanel-D_VSdlXy.cjs → workpieceTreePanel-auNIy7t8.cjs} +1 -1
  106. package/package.json +1 -1
  107. package/dist/array-Dh-A7jle.cjs +0 -1
  108. package/dist/index-BPIqIM_a.cjs +0 -1
  109. package/dist/index-BjRRaKW2.js +0 -5817
  110. package/dist/index-C5pQXH0_.cjs +0 -11
  111. package/dist/index-CEJJB1_A.js +0 -24
  112. package/dist/index-CEyDjpWD.cjs +0 -1
  113. package/dist/index-Cn7cuOeM.js +0 -465
  114. package/dist/index-Cp68Aa8G.cjs +0 -11
  115. package/dist/index-D0hhR7_L.js +0 -10434
  116. package/dist/index-DievuDNj.cjs +0 -1
  117. package/dist/index-Dkb93gli.cjs +0 -13
  118. package/dist/index-DtvBUVyE.cjs +0 -1
  119. package/dist/index-Lx9WVRw6.cjs +0 -42
  120. package/dist/index-VZzCfKCC.cjs +0 -1
  121. package/dist/index-ciCCkZew.cjs +0 -1
  122. package/dist/obj/model.mtl +0 -42
  123. package/dist/obj/model.obj +0 -26110
  124. package/public/obj/model.mtl +0 -42
  125. package/public/obj/model.obj +0 -26110
@@ -1,6 +1,6 @@
1
1
  import { ref as _, computed as A } from "vue";
2
- import { f as I, E as s, g as M } from "./index-K1n-pA4G.js";
3
- import { E as N } from "./index-D0hhR7_L.js";
2
+ import { f as I, E as s, g as M } from "./index-jkHlUTog.js";
3
+ import { E as N } from "./index-CcJb2uXu.js";
4
4
  const K = _([]), T = A(() => [
5
5
  {
6
6
  key: "extraButton",
@@ -1,6 +1,6 @@
1
1
  import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
- import { s as m } from "./index-BjRRaKW2.js";
3
- import { g as d, c as _ } from "./index-BDPv6PGL.js";
2
+ import { s as m } from "./index-CcJb2uXu.js";
3
+ import { g as d, c as _ } from "./index-C3gtImRs.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),k=require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dj8zYuMh.cjs"),a=require("./index-Dc6Q0f3F.cjs"),C=require("./_plugin-vue_export-helper-BHFhmbuH.cjs");function b(r){return r==null}const O="ElUpload";class B extends Error{constructor(o,l,i,p){super(o),this.name="UploadAjaxError",this.status=l,this.method=i,this.url=p}}function h(r,o,l){let i;return l.response?i=`${l.response.error||l.response}`:l.responseText?i=`${l.responseText}`:i=`fail to ${o.method} ${r} ${l.status}`,new B(i,l.status,o.method,r)}function R(r){const o=r.responseText||r.response;if(!o)return o;try{return JSON.parse(o)}catch{return o}}const T=r=>{typeof XMLHttpRequest>"u"&&a.throwError(O,"XMLHttpRequest is undefined");const o=new XMLHttpRequest,l=r.action;o.upload&&o.upload.addEventListener("progress",t=>{const c=t;c.percent=t.total>0?t.loaded/t.total*100:0,r.onProgress(c)});const i=new FormData;if(r.data)for(const[t,c]of Object.entries(r.data))a.isArray$1(c)&&c.length?i.append(t,...c):i.append(t,c);i.append(r.filename,r.file,r.file.name),o.addEventListener("error",()=>{r.onError(h(l,r,o))}),o.addEventListener("load",()=>{if(o.status<200||o.status>=300)return r.onError(h(l,r,o));r.onSuccess(R(o))}),o.open(r.method,l,!0),r.withCredentials&&"withCredentials"in o&&(o.withCredentials=!0);const p=r.headers||{};if(p instanceof Headers)p.forEach((t,c)=>o.setRequestHeader(c,t));else for(const[t,c]of Object.entries(p))b(c)||o.setRequestHeader(t,String(c));return o.send(i),o},U=["text","picture","picture-card"];let D=1;const L=()=>Date.now()+D++,F=a.buildProps({action:{type:String,default:"#"},headers:{type:a.definePropType(Object)},method:{type:String,default:"post"},data:{type:a.definePropType([Object,Function,Promise]),default:()=>a.mutable({})},multiple:Boolean,name:{type:String,default:"file"},drag:Boolean,withCredentials:Boolean,showFileList:{type:Boolean,default:!0},accept:{type:String,default:""},fileList:{type:a.definePropType(Array),default:()=>a.mutable([])},autoUpload:{type:Boolean,default:!0},listType:{type:String,values:U,default:"text"},httpRequest:{type:a.definePropType(Function),default:T},disabled:Boolean,limit:Number});a.buildProps({...F,beforeUpload:{type:a.definePropType(Function),default:a.NOOP},beforeRemove:{type:a.definePropType(Function)},onRemove:{type:a.definePropType(Function),default:a.NOOP},onChange:{type:a.definePropType(Function),default:a.NOOP},onPreview:{type:a.definePropType(Function),default:a.NOOP},onSuccess:{type:a.definePropType(Function),default:a.NOOP},onProgress:{type:a.definePropType(Function),default:a.NOOP},onError:{type:a.definePropType(Function),default:a.NOOP},onExceed:{type:a.definePropType(Function),default:a.NOOP},crossorigin:{type:a.definePropType(String)}});const j={style:{"text-align":"left"}},A={class:"cropper-warp"},q={class:"cropper-warp-left"},$=["src"],H={class:"cropper-warp-right"},z={class:"cropper-warp-right-item"},M={class:"cropper-warp-right-value"},X=["src"],J={class:"cropper-warp-right-item"},G={class:"cropper-warp-right-value"},K=["src"],Q={class:"dialog-footer"},W=e.defineComponent({__name:"index",props:{title:{type:String,default:""}},emits:["submitImage","deleteImage"],setup(r,{expose:o,emit:l}){const i=l,p=e.ref(),t=e.reactive({isShowDialog:!1,cropperImg:"",cropperImgBase64:"",cropper:null}),c=async s=>{if(t.isShowDialog=!0,!s)return;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s),e.nextTick(()=>{w()})},f=()=>{var s;(s=t.cropper)==null||s.destroy(),t.isShowDialog=!1},m=()=>{f()},y=async()=>{const s=await v();i("submitImage",{file:s}),f()},d=async()=>{i("deleteImage")},w=()=>{const s=document.querySelector(".cropper-warp-left-img");s&&s.setAttribute("crossOrigin","anonymous"),t.cropper=new k.Cropper(s,{viewMode:1,dragMode:"none",initialAspectRatio:1,aspectRatio:1,preview:".before",background:!0,autoCropArea:1,checkCrossOrigin:!1,crop:()=>{t.cropperImgBase64=t.cropper.getCroppedCanvas().toDataURL("image/jpeg")}})},v=async()=>t!=null&&t.cropper?new Promise(s=>{var n,u;(u=(n=t==null?void 0:t.cropper)==null?void 0:n.getCroppedCanvas())==null||u.toBlob(_=>{s(_)})}):(await fetch(t.cropperImg)).blob(),E=async s=>{var u;let n=window.URL||window.webkitURL;t.cropperImg=n.createObjectURL(s.raw),(u=t.cropper)==null||u.replace(t.cropperImg)},P=s=>{p.value.clearFiles();const n=s[0];n.uid=L(),p.value.handleStart(n)};return o({openDialog:c}),(s,n)=>{const u=e.resolveComponent("ele-Edit"),_=e.resolveComponent("el-icon"),g=e.resolveComponent("el-button"),V=e.resolveComponent("el-upload"),S=e.resolveComponent("el-dialog");return e.openBlock(),e.createElementBlock("div",null,[e.createVNode(S,{modelValue:t.isShowDialog,"onUpdate:modelValue":n[0]||(n[0]=I=>t.isShowDialog=I),width:"769px","before-close":m},{header:e.withCtx(()=>[e.createElementVNode("div",j,[e.createVNode(_,{size:"16",style:{"margin-right":"3px",display:"inline","vertical-align":"middle"}},{default:e.withCtx(()=>[e.createVNode(u)]),_:1}),e.createElementVNode("span",null,e.toDisplayString(r.title),1)])]),footer:e.withCtx(()=>[e.createElementVNode("span",Q,[e.createVNode(V,{class:"avatar-uploader",ref_key:"uploadSignRef",ref:p,accept:".jpg,.png",limit:1,"show-file-list":!1,"auto-upload":!1,"on-change":E,"on-exceed":P},{trigger:e.withCtx(()=>[e.createVNode(g,{type:"info",icon:"ele-Picture"},{default:e.withCtx(()=>n[4]||(n[4]=[e.createTextVNode("选择图片")])),_:1,__:[4]})]),default:e.withCtx(()=>[e.createVNode(g,{onClick:d,type:"danger",icon:"ele-Picture",style:{"margin-left":"8px"}},{default:e.withCtx(()=>n[5]||(n[5]=[e.createTextVNode("删除图片")])),_:1,__:[5]})]),_:1},512),e.createElementVNode("div",null,[e.createVNode(g,{onClick:m,id:"themeBorderButton"},{default:e.withCtx(()=>n[6]||(n[6]=[e.createTextVNode("取 消")])),_:1,__:[6]}),e.createVNode(g,{onClick:y,id:"themeButton"},{default:e.withCtx(()=>n[7]||(n[7]=[e.createTextVNode("确 定")])),_:1,__:[7]})])])]),default:e.withCtx(()=>[e.createElementVNode("div",A,[e.createElementVNode("div",q,[e.createElementVNode("img",{src:t.cropperImg,class:"cropper-warp-left-img"},null,8,$)]),e.createElementVNode("div",H,[n[3]||(n[3]=e.createElementVNode("div",{class:"cropper-warp-right-title"},"预览",-1)),e.createElementVNode("div",z,[e.createElementVNode("div",M,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img"},null,8,X)]),n[1]||(n[1]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"100 x 100",-1))]),e.createElementVNode("div",J,[e.createElementVNode("div",G,[e.createElementVNode("img",{src:t.cropperImgBase64,class:"cropper-warp-right-value-img cropper-size"},null,8,K)]),n[2]||(n[2]=e.createElementVNode("div",{class:"cropper-warp-right-label"},"50 x 50",-1))])])])]),_:1},8,["modelValue"])])}}}),N=C._export_sfc(W,[["__scopeId","data-v-4a19ffcf"]]),Y=e.defineComponent({__name:"index",props:{avatarUrl:{type:String,default:""},avatarBlob:{type:Blob,default:""},size:{type:[String,Number],default:"large"},showCropper:{type:Boolean,default:!0},banClick:{type:Boolean,default:!1},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage","clickAvatar"],setup(r,{emit:o}){const l=r,i=e.ref(),p=e.ref(null),t=o,c=()=>!0,f=async()=>{var d;l!=null&&l.banClick||(t("clickAvatar",l.avatarUrl),(d=i.value)==null||d.openDialog(l.avatarBlob))},m=async d=>{t("submitImage",d)},y=async()=>{t("deleteImage")};return(d,w)=>{const v=e.resolveComponent("el-avatar");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(v,{src:r.avatarUrl,onClick:f,fit:"cover",size:r.size,ref_key:"avatarRef",ref:p,style:{background:"var(--user-avatar-bg)"},alt:"头像查找失败",onError:c},{default:e.withCtx(()=>[e.renderSlot(d.$slots,"avatarDefault",{},void 0,!0)]),_:3},8,["src","size"]),e.withDirectives(e.createVNode(N,{ref_key:"cropperDialogRef",ref:i,title:"更改头像",avatarUrl:r.avatarUrl,onSubmitImage:m,onDeleteImage:y},null,8,["avatarUrl"]),[[e.vShow,r.showCropper&&(l==null?void 0:l.clickStop)]])],64)}}}),x=C._export_sfc(Y,[["__scopeId","data-v-82946fb9"]]),Z=Object.freeze(Object.defineProperty({__proto__:null,default:x},Symbol.toStringTag,{value:"Module"}));exports.Avatar=x;exports.CropperDialog=N;exports.index=Z;exports.isNil=b;
@@ -1 +1 @@
1
- "use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CcGgDB4E.cjs");const $=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T={class:"dialog-title"},D={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:[Number,String],default:600},minWidth:{type:[Number,String],default:400},minHeight:{type:[Number,String],default:300},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0},resizable:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(p,{emit:M}){const e=p,H=M,w=t.ref(!1),s=t.reactive({width:void 0,height:void 0,minWidth:void 0,minHeight:void 0});let k=!1,r="",x=0,z=0,c=0,f=0,g=0,y=0,b=null;const N=i=>{var n,o;const l=(o=(n=i==null?void 0:i.target)==null?void 0:n.closest)==null?void 0:o.call(n,".el-dialog");return l||null},S=i=>{if(!i||i==="none")return{tx:0,ty:0};let l=i.match(/matrix\(([^)]+)\)/);if(l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[4])||0,ty:(n==null?void 0:n[5])||0}}if(l=i.match(/matrix3d\(([^)]+)\)/),l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[12])||0,ty:(n==null?void 0:n[13])||0}}return l=i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),l?{tx:Number(l[1])||0,ty:Number(l[2])||0}:{tx:0,ty:0}},W=(i,l,n)=>{i.style.transform=`translate(${l}px, ${n}px)`},d=(i,l)=>{if(!e.resizable)return;const n=N(i);if(!n)return;b=n,k=!0,r=l,x=i.clientX,z=i.clientY;const o=n.getBoundingClientRect();c=o.width,f=o.height;const a=window.getComputedStyle(n),{tx:u,ty:m}=S(a.transform);g=u,y=m,document.addEventListener("mousemove",C),document.addEventListener("mouseup",E)},C=i=>{if(!k||!b)return;const l=i.clientX-x,n=i.clientY-z,o=parseInt(s.minWidth||"0",10)||0,a=parseInt(s.minHeight||"0",10)||0;let u=c,m=f,B=g,v=y;if(r.includes("right")&&(u=Math.max(o,c+l)),r.includes("bottom")&&(m=Math.max(a,f+n)),r.includes("left")){const h=c-l;h<o?(u=o,B=g+(c-o)):(u=h,B=g+l)}if(r.includes("top")){const h=f-n;h<a?(m=a,v=y+(f-a)):(m=h,v=y+n)}s.width=`${u}px`,s.height=`${m}px`,W(b,B,v)},E=()=>{k=!1,r="",b=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)},V=()=>{H("beforeDestroy")};return t.watch(()=>e==null?void 0:e.visible,i=>{w.value=i,i&&(e.resizable?(s.width=typeof e.dialogWidth=="number"?`${e.dialogWidth}px`:e.dialogWidth,s.height=typeof e.dialogHeight=="number"?`${e.dialogHeight}px`:e.dialogHeight,s.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth,s.minHeight=typeof e.minHeight=="number"?`${e.minHeight}px`:e.minHeight):(s.width=void 0,s.height=void 0,s.minWidth=void 0,s.minHeight=void 0))},{deep:!0,immediate:!0}),(i,l)=>{const n=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(n,{modelValue:w.value,"onUpdate:modelValue":l[8]||(l[8]=o=>w.value=o),width:e==null?void 0:e.dialogWidth,"before-close":V,draggable:"",style:t.normalizeStyle(e!=null&&e.resizable?s:void 0),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":p.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":p.appendToBody},{header:t.withCtx(()=>[t.createElementVNode("div",T,t.toDisplayString(e==null?void 0:e.title),1),t.renderSlot(i.$slots,"header",{},void 0,!0)]),footer:t.withCtx(()=>[t.renderSlot(i.$slots,"footer",{},void 0,!0)]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"resizable-handle top",onMousedown:l[0]||(l[0]=t.withModifiers(o=>d(o,"top"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:1,class:"resizable-handle right",onMousedown:l[1]||(l[1]=t.withModifiers(o=>d(o,"right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:2,class:"resizable-handle bottom",onMousedown:l[2]||(l[2]=t.withModifiers(o=>d(o,"bottom"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:3,class:"resizable-handle left",onMousedown:l[3]||(l[3]=t.withModifiers(o=>d(o,"left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:4,class:"resizable-handle top-left",onMousedown:l[4]||(l[4]=t.withModifiers(o=>d(o,"top-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:5,class:"resizable-handle top-right",onMousedown:l[5]||(l[5]=t.withModifiers(o=>d(o,"top-right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:6,class:"resizable-handle bottom-left",onMousedown:l[6]||(l[6]=t.withModifiers(o=>d(o,"bottom-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:7,class:"resizable-handle bottom-right",onMousedown:l[7]||(l[7]=t.withModifiers(o=>d(o,"bottom-right"),["stop"]))},null,32)):t.createCommentVNode("",!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},R=$._export_sfc(D,[["__scopeId","data-v-c3e3bec2"]]);exports.ssDialog=R;
1
+ "use strict";const t=require("vue");require("./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-Dj8zYuMh.cjs");const $=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),T={class:"dialog-title"},D={__name:"index",props:{title:{type:String,default:""},dialogWidth:{type:[Number,String],default:600},visible:{type:Boolean,default:!1},fullScreen:{type:Boolean,default:!1},dialogHeight:{type:[Number,String],default:600},minWidth:{type:[Number,String],default:400},minHeight:{type:[Number,String],default:300},showClose:{type:Boolean,default:!0},closeOnClickModal:{type:Boolean,default:!0},closeOnPressEscape:{type:Boolean,default:!0},modalClass:{type:String,default:""},alignCenter:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0},resizable:{type:Boolean,default:!1}},emits:["beforeDestroy"],setup(p,{emit:M}){const e=p,H=M,w=t.ref(!1),s=t.reactive({width:void 0,height:void 0,minWidth:void 0,minHeight:void 0});let k=!1,r="",x=0,z=0,c=0,f=0,g=0,y=0,b=null;const N=i=>{var n,o;const l=(o=(n=i==null?void 0:i.target)==null?void 0:n.closest)==null?void 0:o.call(n,".el-dialog");return l||null},S=i=>{if(!i||i==="none")return{tx:0,ty:0};let l=i.match(/matrix\(([^)]+)\)/);if(l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[4])||0,ty:(n==null?void 0:n[5])||0}}if(l=i.match(/matrix3d\(([^)]+)\)/),l){const n=l[1].split(",").map(o=>Number(o.trim()));return{tx:(n==null?void 0:n[12])||0,ty:(n==null?void 0:n[13])||0}}return l=i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/),l?{tx:Number(l[1])||0,ty:Number(l[2])||0}:{tx:0,ty:0}},W=(i,l,n)=>{i.style.transform=`translate(${l}px, ${n}px)`},d=(i,l)=>{if(!e.resizable)return;const n=N(i);if(!n)return;b=n,k=!0,r=l,x=i.clientX,z=i.clientY;const o=n.getBoundingClientRect();c=o.width,f=o.height;const a=window.getComputedStyle(n),{tx:u,ty:m}=S(a.transform);g=u,y=m,document.addEventListener("mousemove",C),document.addEventListener("mouseup",E)},C=i=>{if(!k||!b)return;const l=i.clientX-x,n=i.clientY-z,o=parseInt(s.minWidth||"0",10)||0,a=parseInt(s.minHeight||"0",10)||0;let u=c,m=f,B=g,v=y;if(r.includes("right")&&(u=Math.max(o,c+l)),r.includes("bottom")&&(m=Math.max(a,f+n)),r.includes("left")){const h=c-l;h<o?(u=o,B=g+(c-o)):(u=h,B=g+l)}if(r.includes("top")){const h=f-n;h<a?(m=a,v=y+(f-a)):(m=h,v=y+n)}s.width=`${u}px`,s.height=`${m}px`,W(b,B,v)},E=()=>{k=!1,r="",b=null,document.removeEventListener("mousemove",C),document.removeEventListener("mouseup",E)},V=()=>{H("beforeDestroy")};return t.watch(()=>e==null?void 0:e.visible,i=>{w.value=i,i&&(e.resizable?(s.width=typeof e.dialogWidth=="number"?`${e.dialogWidth}px`:e.dialogWidth,s.height=typeof e.dialogHeight=="number"?`${e.dialogHeight}px`:e.dialogHeight,s.minWidth=typeof e.minWidth=="number"?`${e.minWidth}px`:e.minWidth,s.minHeight=typeof e.minHeight=="number"?`${e.minHeight}px`:e.minHeight):(s.width=void 0,s.height=void 0,s.minWidth=void 0,s.minHeight=void 0))},{deep:!0,immediate:!0}),(i,l)=>{const n=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(n,{modelValue:w.value,"onUpdate:modelValue":l[8]||(l[8]=o=>w.value=o),width:e==null?void 0:e.dialogWidth,"before-close":V,draggable:"",style:t.normalizeStyle(e!=null&&e.resizable?s:void 0),fullscreen:e==null?void 0:e.fullScreen,"destroy-on-close":!0,"show-close":e==null?void 0:e.showClose,"close-on-click-modal":e==null?void 0:e.closeOnClickModal,"modal-class":p.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter,"append-to-body":p.appendToBody},{header:t.withCtx(()=>[t.createElementVNode("div",T,t.toDisplayString(e==null?void 0:e.title),1),t.renderSlot(i.$slots,"header",{},void 0,!0)]),footer:t.withCtx(()=>[t.renderSlot(i.$slots,"footer",{},void 0,!0)]),default:t.withCtx(()=>[t.renderSlot(i.$slots,"default",{},void 0,!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:0,class:"resizable-handle top",onMousedown:l[0]||(l[0]=t.withModifiers(o=>d(o,"top"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:1,class:"resizable-handle right",onMousedown:l[1]||(l[1]=t.withModifiers(o=>d(o,"right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:2,class:"resizable-handle bottom",onMousedown:l[2]||(l[2]=t.withModifiers(o=>d(o,"bottom"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:3,class:"resizable-handle left",onMousedown:l[3]||(l[3]=t.withModifiers(o=>d(o,"left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:4,class:"resizable-handle top-left",onMousedown:l[4]||(l[4]=t.withModifiers(o=>d(o,"top-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:5,class:"resizable-handle top-right",onMousedown:l[5]||(l[5]=t.withModifiers(o=>d(o,"top-right"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:6,class:"resizable-handle bottom-left",onMousedown:l[6]||(l[6]=t.withModifiers(o=>d(o,"bottom-left"),["stop"]))},null,32)):t.createCommentVNode("",!0),e.resizable?(t.openBlock(),t.createElementBlock("div",{key:7,class:"resizable-handle bottom-right",onMousedown:l[7]||(l[7]=t.withModifiers(o=>d(o,"bottom-right"),["stop"]))},null,32)):t.createCommentVNode("",!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},R=$._export_sfc(D,[["__scopeId","data-v-c3e3bec2"]]);exports.ssDialog=R;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-Lx9WVRw6.cjs"),_=require("./index-Dkb93gli.cjs"),r=require("./index-DHdrBDP4.cjs"),C=require("./index-C5pQXH0_.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("vue"),u=require("./index-BfOeLrc4.cjs"),_=require("./index-HCKkRTvn.cjs"),r=require("./index-DcqWejmU.cjs"),C=require("./index-Dc6Q0f3F.cjs"),g=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),v={class:"menu-content"},x=l.defineComponent({__name:"index",setup(q){const m=u.useMenuState(u.pinia),{menus:c}=u.storeToRefs(m),p=l.ref([]),f=async()=>{var i,t,n,a;const e=await C.getInsofDataApi({key:{type:"mainEquip",systemKey:sessionStorage.getItem("systemKey")}});if(((i=e==null?void 0:e.data)==null?void 0:i.type)==="success"){let o=(n=(t=e==null?void 0:e.data)==null?void 0:t.result)==null?void 0:n.map(s=>s);return o=(a=u.cloneDeep(o))==null?void 0:a.map(s=>{var d;const b=Object.values((d=s==null?void 0:s.value)==null?void 0:d.tableData);return b.unshift({id:s==null?void 0:s.id}),b}),o}else return[]};l.onMounted(async()=>{var n;const e=await f(),t=[{key:"header",contents:[{label:"主菜单名称",formType:"Select",options:(n=u.cloneDeep(c.value))==null?void 0:n.map(a=>({label:a==null?void 0:a.title,value:a==null?void 0:a.title})),prop:"主菜单名称"},{label:"隐藏三维显示",formType:"Switch",value:!1,prop:"隐藏三维显示"},{label:"操作"}]},{key:"extraButton",contents:[{label:"新增"}]},{key:"rowButton",contents:[{label:"查看"},{label:"编辑"},{label:"删除"}]}];t.push({key:"tableContents",contents:e}),p.value=t});const y=e=>{(e==null?void 0:e.buttonName)==="新增"?r.addMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="删除"?r.deleteMenuContent(e==null?void 0:e.singleContent):(e==null?void 0:e.buttonName)==="编辑"&&r.fixMenuContent(e==null?void 0:e.singleContent)};return(e,i)=>(l.openBlock(),l.createElementBlock("div",v,[l.createVNode(_.ssTable,{itemData:p.value,class:"table-content",onChange:y},null,8,["itemData"])]))}}),h=g._export_sfc(x,[["__scopeId","data-v-26f5cadc"]]);exports.default=h;
@@ -0,0 +1,476 @@
1
+ import { createElementBlock as I, openBlock as B, createElementVNode as v, renderSlot as $, defineComponent as P, ref as A, resolveComponent as E, createVNode as h, withCtx as u, unref as R, reactive as q, watch as D, onBeforeUnmount as J, onMounted as Q, toDisplayString as S, createTextVNode as V } from "vue";
2
+ import { _ as M } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ import { b as j, p as H, d as X, s as Y } from "./index-BYyFrGfX.js";
4
+ import { s as z, E as O, a as Z } from "./index-jkHlUTog.js";
5
+ import { useRouter as ee } from "vue-router";
6
+ import { v as te } from "./index-BLqnYCsi.js";
7
+ import { l as ae, a as oe } from "./index-COyNONVE.js";
8
+ const ne = {}, se = { class: "left-wrap" }, ie = { class: "left-bg" };
9
+ function ce(y, _) {
10
+ return B(), I("div", se, [
11
+ v("div", ie, [
12
+ $(y.$slots, "img", {}, void 0, !0)
13
+ ])
14
+ ]);
15
+ }
16
+ const le = /* @__PURE__ */ M(ne, [["render", ce], ["__scopeId", "data-v-9b7ee6c9"]]), x = {
17
+ ACCOUNT: "account",
18
+ FACE: "face"
19
+ }, re = { class: "right-wrap" }, de = { class: "tab-content" }, ue = { class: "tab-tips" }, me = { class: "tab-content" }, fe = { class: "tab-tips" }, pe = /* @__PURE__ */ P({
20
+ __name: "index",
21
+ props: {
22
+ tabList: {
23
+ type: Array,
24
+ default: []
25
+ },
26
+ loading: {
27
+ type: Boolean,
28
+ default: !1
29
+ }
30
+ },
31
+ emits: ["clickLogin", "handleTabChange"],
32
+ setup(y, { emit: _ }) {
33
+ const t = A(x.ACCOUNT), e = _, w = () => {
34
+ e("clickLogin", t.value);
35
+ }, g = (i) => {
36
+ e("handleTabChange", i);
37
+ };
38
+ return (i, l) => {
39
+ const o = E("el-button"), b = E("el-tab-pane"), m = E("el-tabs");
40
+ return B(), I("div", re, [
41
+ h(m, {
42
+ modelValue: t.value,
43
+ "onUpdate:modelValue": l[0] || (l[0] = (f) => t.value = f),
44
+ class: "right-tabs",
45
+ onTabChange: g
46
+ }, {
47
+ default: u(() => [
48
+ h(b, {
49
+ name: R(x).ACCOUNT
50
+ }, {
51
+ label: u(() => [
52
+ $(i.$slots, "tabLabel1", {}, void 0, !0)
53
+ ]),
54
+ default: u(() => [
55
+ v("div", de, [
56
+ $(i.$slots, "tabContent1", {}, void 0, !0)
57
+ ]),
58
+ v("div", {
59
+ class: "tab-button special",
60
+ onClick: w
61
+ }, [
62
+ h(o, { loading: y.loading }, {
63
+ default: u(() => [
64
+ $(i.$slots, "tabButton1", {}, void 0, !0)
65
+ ]),
66
+ _: 3
67
+ }, 8, ["loading"])
68
+ ]),
69
+ v("div", ue, [
70
+ $(i.$slots, "tabTips1", {}, void 0, !0)
71
+ ])
72
+ ]),
73
+ _: 3
74
+ }, 8, ["name"]),
75
+ h(b, {
76
+ name: R(x).FACE
77
+ }, {
78
+ label: u(() => [
79
+ $(i.$slots, "tabLabel2", {}, void 0, !0)
80
+ ]),
81
+ default: u(() => [
82
+ v("div", me, [
83
+ $(i.$slots, "tabContent2", {}, void 0, !0)
84
+ ]),
85
+ v("div", fe, [
86
+ $(i.$slots, "tabTips2", {}, void 0, !0)
87
+ ])
88
+ ]),
89
+ _: 3
90
+ }, 8, ["name"])
91
+ ]),
92
+ _: 3
93
+ }, 8, ["modelValue"])
94
+ ]);
95
+ };
96
+ }
97
+ }), ge = /* @__PURE__ */ M(pe, [["__scopeId", "data-v-8b1962f0"]]), be = { class: "account-wrap" }, ve = /* @__PURE__ */ P({
98
+ __name: "index",
99
+ props: {
100
+ activeTabName: {
101
+ type: String,
102
+ default: ""
103
+ },
104
+ isClickLogin: {
105
+ type: Boolean,
106
+ default: !1
107
+ }
108
+ },
109
+ emits: ["handleLoginFormChange"],
110
+ setup(y, { emit: _ }) {
111
+ const t = y, e = q({
112
+ account: "",
113
+ password: ""
114
+ }), w = q({
115
+ account: [
116
+ { required: !0, message: "请输入账号", trigger: "blur" }
117
+ ],
118
+ password: [
119
+ { required: !0, message: "请输入密码", trigger: "blur" }
120
+ ]
121
+ }), g = A(null), i = _;
122
+ return D(() => t.isClickLogin, (l) => {
123
+ var o;
124
+ l && (t == null ? void 0 : t.activeTabName) === "account" && ((o = g.value) == null || o.validate((b) => {
125
+ var m;
126
+ for (let f in e)
127
+ e.hasOwnProperty(f) && (e[f] = (m = e[f]) == null ? void 0 : m.trim());
128
+ i("handleLoginFormChange", b, b ? e : null);
129
+ }));
130
+ }, {
131
+ immediate: !0
132
+ }), D(() => t.activeTabName, (l) => {
133
+ var o;
134
+ l === "account" && ((o = g.value) == null || o.resetFields());
135
+ }), (l, o) => {
136
+ const b = E("svg-icon"), m = E("el-input"), f = E("el-form-item"), k = E("el-form");
137
+ return B(), I("div", be, [
138
+ h(k, {
139
+ model: e,
140
+ rules: w,
141
+ ref_key: "formRef",
142
+ ref: g
143
+ }, {
144
+ default: u(() => [
145
+ h(f, {
146
+ label: "",
147
+ prop: "account"
148
+ }, {
149
+ default: u(() => [
150
+ h(m, {
151
+ class: "account-input",
152
+ modelValue: e.account,
153
+ "onUpdate:modelValue": o[0] || (o[0] = (L) => e.account = L),
154
+ placeholder: "请输入账号",
155
+ clearable: ""
156
+ }, {
157
+ prefix: u(() => [
158
+ h(b, {
159
+ name: "account",
160
+ style: { width: "15px", height: "15px" }
161
+ })
162
+ ]),
163
+ _: 1
164
+ }, 8, ["modelValue"])
165
+ ]),
166
+ _: 1
167
+ }),
168
+ h(f, {
169
+ label: "",
170
+ prop: "password"
171
+ }, {
172
+ default: u(() => [
173
+ h(m, {
174
+ class: "account-input",
175
+ modelValue: e.password,
176
+ "onUpdate:modelValue": o[1] || (o[1] = (L) => e.password = L),
177
+ type: "password",
178
+ placeholder: "请输入密码",
179
+ "show-password": "",
180
+ clearable: ""
181
+ }, {
182
+ prefix: u(() => [
183
+ h(b, {
184
+ name: "password",
185
+ style: { width: "15px", height: "15px" }
186
+ })
187
+ ]),
188
+ _: 1
189
+ }, 8, ["modelValue"])
190
+ ]),
191
+ _: 1
192
+ })
193
+ ]),
194
+ _: 1
195
+ }, 8, ["model", "rules"])
196
+ ]);
197
+ };
198
+ }
199
+ }), _e = /* @__PURE__ */ M(ve, [["__scopeId", "data-v-48037c0f"]]);
200
+ function he(y) {
201
+ return z({
202
+ url: "http://139.196.154.85:20015/api/face/face-verify",
203
+ method: "post",
204
+ data: y
205
+ });
206
+ }
207
+ const ye = { class: "account-wrap" }, Ce = { class: "video-wrap" }, we = /* @__PURE__ */ P({
208
+ __name: "index",
209
+ props: {
210
+ systemKey: { default: "" },
211
+ activeTabName: { default: "" },
212
+ isClickLogin: { type: Boolean, default: !1 }
213
+ },
214
+ emits: ["handleLoginFormChange"],
215
+ setup(y, { emit: _ }) {
216
+ const t = y, e = _, w = j(H), g = A(null), i = A(null);
217
+ let l = !1, o = null;
218
+ const b = async (n, c) => {
219
+ const { privateKey: C } = await w.getModelSecretAsync();
220
+ let p = n;
221
+ return c !== "superAdmin" && (p = X(n, C)), p;
222
+ }, m = async (n) => {
223
+ if (!n)
224
+ return;
225
+ const c = new FormData();
226
+ c.set("file", n), t.systemKey && c.set("systemKey", t.systemKey), console.log("Face Recognition", t.systemKey);
227
+ const C = await he(c), { data: p } = C || {}, { account: s, password: r, layer: d } = (p == null ? void 0 : p.data) || {}, a = p == null ? void 0 : p.msg;
228
+ if (!s) {
229
+ O.warning(a || "识别失败,请重新识别!");
230
+ return;
231
+ }
232
+ const T = await b(r, d);
233
+ e("handleLoginFormChange", !0, {
234
+ account: s,
235
+ password: T
236
+ });
237
+ }, f = () => {
238
+ if (!i.value || !g.value)
239
+ return;
240
+ const n = i.value, c = n.getContext("2d"), C = g.value;
241
+ n.width = 200, n.height = 200;
242
+ const p = C.videoWidth || 640, s = C.videoHeight || 480, r = Math.min(200 / p, 200 / s), d = p * r, a = s * r, T = (200 - d) / 2, F = (200 - a) / 2;
243
+ c == null || c.drawImage(C, 0, 0, p, s, T, F, d, a), n.toBlob((K) => {
244
+ if (K) {
245
+ const U = new File([K], "face.png", { type: "image/png" });
246
+ m(U);
247
+ }
248
+ }, "image/png");
249
+ }, k = async () => {
250
+ if (!g.value || l)
251
+ return;
252
+ const n = g.value;
253
+ try {
254
+ if (o = await navigator.mediaDevices.getUserMedia({
255
+ video: { facingMode: "user" },
256
+ // 前置;后置用 'environment'
257
+ audio: !1
258
+ }), n) {
259
+ const c = n;
260
+ c.srcObject = o, l = !0;
261
+ }
262
+ } catch {
263
+ O.warning("摄像头启动失败");
264
+ }
265
+ };
266
+ function L(n) {
267
+ if (n && (n.getTracks().forEach((c) => c.stop()), g.value)) {
268
+ const c = g.value;
269
+ c.srcObject = null;
270
+ }
271
+ }
272
+ const N = () => {
273
+ L(o), l = !1;
274
+ };
275
+ return D(() => t.activeTabName, (n) => {
276
+ if (n !== x.FACE) {
277
+ N();
278
+ return;
279
+ }
280
+ if (n === x.FACE && !l) {
281
+ k();
282
+ return;
283
+ }
284
+ }), J(() => {
285
+ N();
286
+ }), (n, c) => (B(), I("div", ye, [
287
+ v("div", Ce, [
288
+ v("video", {
289
+ class: "face-video",
290
+ ref_key: "videoRef",
291
+ ref: g,
292
+ id: "v",
293
+ autoplay: "",
294
+ playsinline: ""
295
+ }, null, 512)
296
+ ]),
297
+ v("button", {
298
+ class: "face-screenshot",
299
+ onClick: f
300
+ }, "人脸识别"),
301
+ v("canvas", {
302
+ ref_key: "canvasRef",
303
+ ref: i,
304
+ id: "canvas"
305
+ }, null, 512)
306
+ ]));
307
+ }
308
+ }), Le = /* @__PURE__ */ M(we, [["__scopeId", "data-v-0ae97a87"]]);
309
+ function Te() {
310
+ return z({
311
+ url: "/api/sysAuth/login",
312
+ method: "post",
313
+ data: {
314
+ account: "superadmin",
315
+ password: "1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",
316
+ tenantId: -1,
317
+ code: "",
318
+ codeId: 0
319
+ }
320
+ });
321
+ }
322
+ const W = j(H), ke = async (y, _) => {
323
+ var w, g, i, l, o, b, m, f, k, L, N, n, c, C, p, s, r, d;
324
+ let t = Object.values(y), e = await ae({
325
+ userName: (w = t == null ? void 0 : t[0]) == null ? void 0 : w.trim(),
326
+ password: (g = t == null ? void 0 : t[1]) == null ? void 0 : g.trim()
327
+ });
328
+ if (((i = e == null ? void 0 : e.data) == null ? void 0 : i.status) === 200 && ((o = (l = e == null ? void 0 : e.data) == null ? void 0 : l.result) == null ? void 0 : o.length) <= 0 && (e = await oe({
329
+ userName: (b = t == null ? void 0 : t[0]) == null ? void 0 : b.trim(),
330
+ password: (m = t == null ? void 0 : t[1]) == null ? void 0 : m.trim(),
331
+ path: "系统管理/用户管理",
332
+ platId: _
333
+ // platId: '785771438178373'
334
+ })), ((f = e == null ? void 0 : e.data) == null ? void 0 : f.status) === 200 && ((L = (k = e == null ? void 0 : e.data) == null ? void 0 : k.result) == null ? void 0 : L.length) > 0) {
335
+ sessionStorage.setItem("systemKey", _ && _ !== "" ? _ : (c = (n = (N = e == null ? void 0 : e.data) == null ? void 0 : N.result) == null ? void 0 : n[0]) == null ? void 0 : c.plat_id);
336
+ let a = (p = (C = e == null ? void 0 : e.data) == null ? void 0 : C.result) == null ? void 0 : p[0];
337
+ return a.plat_id = a.plat_id ?? _, W.setLoginUserInfo(a), W.setSystemKey(_ && _ !== "" ? _ : (d = (r = (s = e == null ? void 0 : e.data) == null ? void 0 : s.result) == null ? void 0 : r[0]) == null ? void 0 : d.plat_id), !0;
338
+ } else
339
+ return O.error("输入的密码错误,请重新输入"), !1;
340
+ }, Ne = { class: "login-wrap" }, $e = { class: "login-body" }, Ae = { class: "login-body-item left" }, Fe = { class: "title" }, Se = { class: "login-body-item right" }, Ee = /* @__PURE__ */ P({
341
+ __name: "index",
342
+ props: {
343
+ oldSystemKey: {}
344
+ },
345
+ emits: ["change"],
346
+ setup(y, { emit: _ }) {
347
+ const t = y, e = ee(), w = j(H), { systemKey: g, systemInfo: i, loginUserInfo: l } = Y(w), o = A({
348
+ // sysCTitle: 'INSOFWORKS',
349
+ sysCTitle: "",
350
+ sysETitle: "",
351
+ // sysETitle: 'Dynamic Test Information System',
352
+ loginTitle: "账户密码登录",
353
+ tabs: [
354
+ {
355
+ name: "密码登录",
356
+ btnLabel: "登录",
357
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
358
+ },
359
+ {
360
+ name: "人脸识别",
361
+ btnLabel: "人脸识别",
362
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
363
+ },
364
+ {
365
+ name: "刷卡登录",
366
+ btnLabel: "登录",
367
+ tips: "温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"
368
+ }
369
+ ]
370
+ }), b = A("account"), m = A(!1), f = A(!1), k = () => {
371
+ m.value = !0;
372
+ }, L = (s, r) => {
373
+ m.value = !1, s && c(r);
374
+ }, N = async () => {
375
+ var s, r, d;
376
+ try {
377
+ const a = await Te();
378
+ return ((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200 ? (sessionStorage.setItem("loginToken", (d = (r = a.data) == null ? void 0 : r.result) == null ? void 0 : d.accessToken), !0) : !1;
379
+ } catch (a) {
380
+ O.error(a);
381
+ }
382
+ }, n = async () => {
383
+ var s, r, d;
384
+ try {
385
+ const a = await Z.post("http://139.196.154.85:20024/api/sysAuth/login", {
386
+ account: "superadmin",
387
+ password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
388
+ codeId: 0,
389
+ code: ""
390
+ });
391
+ return ((s = a == null ? void 0 : a.data) == null ? void 0 : s.code) === 200 && sessionStorage.setItem("magicToken", (d = (r = a.data) == null ? void 0 : r.result) == null ? void 0 : d.accessToken), !0;
392
+ } catch {
393
+ return !0;
394
+ }
395
+ };
396
+ Q(async () => {
397
+ await N();
398
+ });
399
+ const c = async (s) => {
400
+ var T, F, K, U;
401
+ f.value = !0;
402
+ let r = [ke(s, t.oldSystemKey), N(), n()];
403
+ const d = await Promise.all(r);
404
+ (d == null ? void 0 : d.every((G) => G)) ? (await te(), e.push("/"), w.setLogRecordAsync({
405
+ type: "登录",
406
+ data: {
407
+ account: ((T = l.value) == null ? void 0 : T.account) ?? ((F = l.value) == null ? void 0 : F.账号),
408
+ userName: ((K = l.value) == null ? void 0 : K.姓名) || ((U = l.value) == null ? void 0 : U.userName) || "未知"
409
+ }
410
+ }, "/login", "login")) : f.value = !1;
411
+ }, C = (s) => {
412
+ b.value = s, m.value = !1, f.value = !1;
413
+ }, p = (s) => /^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(s);
414
+ return (s, r) => (B(), I("div", Ne, [
415
+ v("div", $e, [
416
+ v("div", Ae, [
417
+ h(le, { class: "login-left-bg" }, {
418
+ img: u(() => {
419
+ var d, a, T, F;
420
+ return [
421
+ v("div", Fe, [
422
+ v("div", null, S(((d = R(i)) == null ? void 0 : d.EnglishName) || "ETCS"), 1),
423
+ v("div", null, S((a = R(i)) != null && a.chineseName && p((T = R(i)) == null ? void 0 : T.chineseName) ? (F = R(i)) == null ? void 0 : F.chineseName : "发动机试验管控系统"), 1)
424
+ ]),
425
+ r[0] || (r[0] = v("div", { class: "divide-line" }, null, -1))
426
+ ];
427
+ }),
428
+ _: 1
429
+ })
430
+ ]),
431
+ v("div", Se, [
432
+ h(ge, {
433
+ loading: f.value,
434
+ onClickLogin: k,
435
+ onHandleTabChange: C
436
+ }, {
437
+ title: u(() => [
438
+ V(S(o.value.loginTitle), 1)
439
+ ]),
440
+ tabLabel1: u(() => [
441
+ V(S(o.value.tabs[0].name), 1)
442
+ ]),
443
+ tabContent1: u(() => [
444
+ h(_e, {
445
+ activeTabName: b.value,
446
+ isClickLogin: m.value,
447
+ onHandleLoginFormChange: L
448
+ }, null, 8, ["activeTabName", "isClickLogin"])
449
+ ]),
450
+ tabButton1: u(() => [
451
+ V(S(o.value.tabs[0].btnLabel), 1)
452
+ ]),
453
+ tabLabel2: u(() => [
454
+ V(S(o.value.tabs[1].name), 1)
455
+ ]),
456
+ tabContent2: u(() => [
457
+ h(Le, {
458
+ systemKey: s.oldSystemKey,
459
+ activeTabName: b.value,
460
+ isClickLogin: m.value,
461
+ onHandleLoginFormChange: L
462
+ }, null, 8, ["systemKey", "activeTabName", "isClickLogin"])
463
+ ]),
464
+ tabButton2: u(() => [
465
+ V(S(o.value.tabs[1].btnLabel), 1)
466
+ ]),
467
+ _: 1
468
+ }, 8, ["loading"])
469
+ ])
470
+ ])
471
+ ]));
472
+ }
473
+ }), Ue = /* @__PURE__ */ M(Ee, [["__scopeId", "data-v-ca0d27a0"]]);
474
+ export {
475
+ Ue as default
476
+ };