ss-component-new 1.2.28 → 1.2.30

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 (140) hide show
  1. package/dist/{MTLLoader-Cqv49Ps8.cjs → MTLLoader-CGJ_BoN_.cjs} +1 -1
  2. package/dist/{MTLLoader-BreJsr54.js → MTLLoader-DKu2hJu8.js} +1 -1
  3. package/dist/{OrbitControls-BCu-cP7k.js → OrbitControls-BqqUzhiB.js} +1 -1
  4. package/dist/{OrbitControls-C956u7BP.cjs → OrbitControls-CcSIJs8U.cjs} +1 -1
  5. package/dist/{animationData-CMjNjOqc.js → animationData-C9-csPUd.js} +4 -4
  6. package/dist/{animationData-C3-BiUgV.cjs → animationData-CqnPk9Xj.cjs} +1 -1
  7. package/dist/array-CNff52dF.cjs +11 -0
  8. package/dist/array-GAxUIYkk.js +626 -0
  9. package/dist/config.js +1 -0
  10. package/dist/{dataUtil-BFjWNDM1.cjs → dataUtil-B8GQMfU9.cjs} +1 -1
  11. package/dist/{dataUtil-D9l7-XhR.js → dataUtil-CUqnwA-C.js} +2 -2
  12. package/dist/{fileUtil-D7XVXEhb.js → fileUtil-2jbB0UOW.js} +1 -1
  13. package/dist/{fileUtil-BFtJHTM0.cjs → fileUtil-DmlOwzdA.cjs} +1 -1
  14. package/dist/{iconfont-BDfcbq2v.cjs → iconfont-BRjtaT1w.cjs} +1 -1
  15. package/dist/{iconfont-B9Cj3DQM.js → iconfont-Clbumxhq.js} +2 -2
  16. package/dist/icons/svg/LowCodeEvent.svg +1 -1
  17. package/dist/icons/svg/LowCodeExtend.svg +1 -1
  18. package/dist/icons/svg/LowCodeSetting.svg +1 -1
  19. package/dist/icons/svg/LowCodeStyle.svg +1 -1
  20. package/dist/{index-DE-uHAMH.cjs → index-4vFpZiro.cjs} +1 -1
  21. package/dist/{index-DR7aNxVH.js → index-B1K65cVA.js} +4 -4
  22. package/dist/{index-C5UpEVah.js → index-B1TG4KX4.js} +2 -2
  23. package/dist/{index-C_cWjavY.cjs → index-B4kwMjRZ.cjs} +1 -1
  24. package/dist/{index-BaE0DPgC.js → index-B524ZAt_.js} +52 -52
  25. package/dist/{index-CMIGSPjz.cjs → index-B5KCSN4c.cjs} +1 -1
  26. package/dist/index-B6nEh_Jv.js +2865 -0
  27. package/dist/{index-zLkhy4JK.cjs → index-BDHmuN0R.cjs} +1 -1
  28. package/dist/{index-Rr9ZBYig.js → index-BH-dztWs.js} +2 -2
  29. package/dist/{index-DMyPjpxO.cjs → index-BKH5yrms.cjs} +1 -1
  30. package/dist/index-BQ4Ui0xZ.cjs +1 -0
  31. package/dist/{index-DqR3IwgZ.js → index-BR2gy9VY.js} +12 -12
  32. package/dist/{index-CC9RkSBT.cjs → index-BUqXSmZN.cjs} +1 -1
  33. package/dist/index-BVaHwt5f.cjs +1 -0
  34. package/dist/{index-gXbhagnF.js → index-BVx8ubcY.js} +3 -3
  35. package/dist/{index-Dx2X9pR1.js → index-Bf_EwhXB.js} +40 -40
  36. package/dist/{index-DVqfroe6.cjs → index-Bg67M1I0.cjs} +1 -1
  37. package/dist/index-Bnlo1Vn9.cjs +1 -0
  38. package/dist/{index-gPnrvvE9.js → index-BuPMGirQ.js} +3123 -3043
  39. package/dist/{index-Cwh5m4lg.cjs → index-C4sVFEb2.cjs} +1 -1
  40. package/dist/{index-CP7b7BrB.cjs → index-C5bKf4Rc.cjs} +1 -1
  41. package/dist/{index-DY5-ctYG.cjs → index-C8YYklCT.cjs} +1 -1
  42. package/dist/index-CBzeyNqc.cjs +1 -0
  43. package/dist/{index-Boazv8yC.js → index-CF3_9CuM.js} +2 -2
  44. package/dist/index-CGrK7vLD.cjs +15 -0
  45. package/dist/index-CJz9KUlK.js +2761 -0
  46. package/dist/index-CLYAJN6W.js +12157 -0
  47. package/dist/index-CPUuPtdW.cjs +1 -0
  48. package/dist/index-CQGU-KUl.cjs +1 -0
  49. package/dist/{index-BZwQB2HO.js → index-CSkbFCKk.js} +8 -8
  50. package/dist/{index-DiTYB-a4.js → index-CVduLh5F.js} +4 -4
  51. package/dist/{index-Cd9j5j41.cjs → index-CVfE7lev.cjs} +1 -1
  52. package/dist/{index-C5fTUrKx.js → index-CWvU6SMj.js} +80 -80
  53. package/dist/{index-CZu3TggJ.js → index-CkTqgfCV.js} +1 -1
  54. package/dist/{index-CBFF2bsB.cjs → index-Ct1BlKod.cjs} +1 -1
  55. package/dist/{index-BqRVuEsE.js → index-Cx-hhVVM.js} +6 -6
  56. package/dist/{index-LcnC2GQ4.cjs → index-D-vSuC_W.cjs} +1 -1
  57. package/dist/{index-HduGypr9.js → index-DBDeHECn.js} +7888 -8186
  58. package/dist/{index-CK5VdzmO.cjs → index-DC41esc7.cjs} +1 -1
  59. package/dist/index-DEBf-IBT.cjs +21 -0
  60. package/dist/{index-BwLaQntz.js → index-DKQfWQa7.js} +1 -1
  61. package/dist/index-DLNYVMBT.js +718 -0
  62. package/dist/{index-CKY0sj_X.js → index-DNmodmj5.js} +3 -3
  63. package/dist/{index-D5Dtcn-_.js → index-DOqV1gv2.js} +10 -10
  64. package/dist/{index-BWxbWhC9.cjs → index-DPJaR6_y.cjs} +1 -1
  65. package/dist/{index-B8bpiPXB.js → index-DQEoNTv9.js} +1 -1
  66. package/dist/{index-3QB55tXZ.js → index-D_vF-xur.js} +8 -8
  67. package/dist/{index-C9_Cxm8G.cjs → index-Dc_H7_4Q.cjs} +1 -1
  68. package/dist/{index-DsCD1neC.js → index-DnxJ5v5h.js} +2 -2
  69. package/dist/{index-DHOcRi3S.js → index-DpHuDey-.js} +6 -6
  70. package/dist/{index-mpoVA-DC.cjs → index-Dyk6Ept4.cjs} +1 -1
  71. package/dist/{index-zZ9bfGNx.js → index-LjM9Nk8B.js} +17 -17
  72. package/dist/{index-B33wtiif.cjs → index-M0XPuhvZ.cjs} +1 -1
  73. package/dist/index-NsYVgt6J.cjs +1 -0
  74. package/dist/{index-GGokR_Lx.cjs → index-T8lPGzLV.cjs} +1 -1
  75. package/dist/{index-Sa2hQZ0h.js → index-ZxdNFChm.js} +2 -2
  76. package/dist/{index-BccOOMaP.cjs → index-eU4qzdNW.cjs} +1 -1
  77. package/dist/{index-C-8LROmP.js → index-h2jxROLW.js} +2 -2
  78. package/dist/index-rlStojTL.js +52 -0
  79. package/dist/{index-TKouySTA.cjs → index-zfSd0dDx.cjs} +1 -1
  80. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BAJOxaYG.js +38119 -0
  81. package/dist/index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-Bz5a6KNq.cjs +56 -0
  82. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-TDoJ17os.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1Mv6nQqI.cjs} +105 -105
  83. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js} +2 -2
  84. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js → index.vue_vue_type_style_index_0_scoped_92477073_lang-B5pFO8Nu.js} +13 -13
  85. package/dist/{index.vue_vue_type_style_index_0_scoped_92477073_lang-Dqpyi0E8.cjs → index.vue_vue_type_style_index_0_scoped_92477073_lang-CfeHVTqR.cjs} +1 -1
  86. package/dist/{index.vue_vue_type_style_index_1_lang-9ANlnWKt.js → index.vue_vue_type_style_index_1_lang-C_-spRZf.js} +5 -5
  87. package/dist/index.vue_vue_type_style_index_1_lang-C_c9xkIT.js +8381 -0
  88. package/dist/index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs +32 -0
  89. package/dist/{index.vue_vue_type_style_index_1_lang-D4RvHwPS.cjs → index.vue_vue_type_style_index_1_lang-Dn15anMU.cjs} +1 -1
  90. package/dist/{isString-Cqq3-gAK.cjs → isString-D6Z6SOrb.cjs} +1 -1
  91. package/dist/{isString-BuBBWjRr.js → isString-DBnuELeA.js} +1 -1
  92. package/dist/{main-Mx9r7ydp.cjs → main-Cqs48dh5.cjs} +1 -1
  93. package/dist/{main-DpLQlLK2.js → main-D13CgkQa.js} +5 -5
  94. package/dist/ss-component.cjs +1 -1
  95. package/dist/ss-component.css +2 -2
  96. package/dist/ss-component.js +12 -12
  97. package/dist/ss-component2.cjs +1 -1
  98. package/dist/ss-component2.js +12 -12
  99. package/dist/{threeModel-DTwQnnAO.cjs → threeModel-B1Q-W8uT.cjs} +1 -1
  100. package/dist/{threeModel-CZ-qFwwk.js → threeModel-CdhAh8Bx.js} +5 -5
  101. package/dist/{threePreview-CUGoEzKf.cjs → threePreview-DFaqe_Df.cjs} +1 -1
  102. package/dist/{threePreview-DutKTPWH.js → threePreview-qK1L0B-6.js} +4 -4
  103. package/dist/{threeSceneView-CzgWYHBw.js → threeSceneView-D7A2EUjB.js} +87 -87
  104. package/dist/{threeSceneView-f1V-z4jr.cjs → threeSceneView-MV6u29zj.cjs} +1 -1
  105. package/dist/{threeSceneViewForCPMPIP-2sXIw3I1.js → threeSceneViewForCPMPIP-CFMeh1a1.js} +59 -59
  106. package/dist/{threeSceneViewForCPMPIP-CojHDVHC.cjs → threeSceneViewForCPMPIP-DWIRSSMI.cjs} +1 -1
  107. package/dist/{threeTrackPathView-BGHiOyJo.cjs → threeTrackPathView-jcnhqw1L.cjs} +1 -1
  108. package/dist/{threeTrackPathView-DA4_8jas.js → threeTrackPathView-zpNY2aoY.js} +6 -6
  109. package/dist/{threeViewerHost-D3WDKrIQ.cjs → threeViewerHost-Bmk1dyAX.cjs} +1 -1
  110. package/dist/{threeViewerHost-BNObp9oA.js → threeViewerHost-SnFuinLz.js} +14 -14
  111. package/dist/{urdfTree-CWStzmk2.cjs → urdfTree-BhIdc1in.cjs} +1 -1
  112. package/dist/{urdfTree-CnkPddyT.js → urdfTree-BqMKYhyU.js} +1 -1
  113. package/dist/{workpieceTreePanel-BvhFt3Xw.js → workpieceTreePanel-CrJBeLgr.js} +5 -5
  114. package/dist/{workpieceTreePanel-DXyb_Wnw.cjs → workpieceTreePanel-ugZl4wP-.cjs} +1 -1
  115. package/package.json +2 -2
  116. package/public/config.js +1 -0
  117. package/public/icons/svg/LowCodeEvent.svg +1 -1
  118. package/public/icons/svg/LowCodeExtend.svg +1 -1
  119. package/public/icons/svg/LowCodeSetting.svg +1 -1
  120. package/public/icons/svg/LowCodeStyle.svg +1 -1
  121. package/dist/array-0u9Sf3UC.cjs +0 -11
  122. package/dist/array-BGIM4b6g.js +0 -1142
  123. package/dist/index-B9TlIok8.cjs +0 -15
  124. package/dist/index-BgHY8wmn.cjs +0 -1
  125. package/dist/index-C1lZkQG-.js +0 -7298
  126. package/dist/index-CMwwUi6o.js +0 -3621
  127. package/dist/index-D0XPyuy4.cjs +0 -1
  128. package/dist/index-D3TgRd-7.cjs +0 -1
  129. package/dist/index-DEEZPcpU.cjs +0 -1
  130. package/dist/index-DiRBJiMW.js +0 -43
  131. package/dist/index-DnFxL5wb.cjs +0 -1
  132. package/dist/index-Dv1G67_Q.cjs +0 -21
  133. package/dist/index-OTxJnh9Z.js +0 -2570
  134. package/dist/index-uIVtG4RY.cjs +0 -1
  135. package/dist/index-wQJN1jpI.js +0 -2466
  136. package/dist/index-znR89ub7.cjs +0 -1
  137. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-D21h7jT_.cjs +0 -37
  138. package/dist/index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js +0 -38930
  139. package/dist/index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs +0 -32
  140. package/dist/index.vue_vue_type_style_index_1_lang-DwvuVXW6.js +0 -8249
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),I=require("./index-LcnC2GQ4.cjs"),B=require("./threeViewerHost-D3WDKrIQ.cjs"),C=require("./index-Dv1G67_Q.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-B9TlIok8.cjs"),_=require("./index-BpPyaNFa.cjs"),V={class:"avatar-model-wrap"},N={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:w}){const s=i,u=w,m=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),h=e.ref(""),b=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{h.value=m.value+"/"+o},{immediate:!0});const S=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});b.value=f}catch(o){throw new Error(o)}},k=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(h.value=m.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){C.ElMessage.error(r)}},y=async()=>{try{if(!h.value)return}catch(o){C.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",V,[e.createVNode(I.ssAvatar,{avatarUrl:h.value,avatarBlob:b.value,size:i.size,onClickAvatar:S,onSubmitImage:k,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=x._export_sfc(E,[["__scopeId","data-v-747bdfb7"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:w}){const s=i,u=e.ref({}),m=e.ref([]),d=w,h=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},b=()=>{u.value.dialogShow=!1,d("beforeDestroy")},S=e.computed(()=>"http://222.92.178.198:62001"),k=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){C.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=k(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,m.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:b,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,p;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:S.value+"/"+((p=i.userInfo)==null?void 0:p.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,a=>{var p;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(p=a.label)!=null&&p.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>h(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=x._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
1
+ "use strict";const e=require("vue"),I=require("./index-D-vSuC_W.cjs"),B=require("./threeViewerHost-Bmk1dyAX.cjs"),C=require("./index-DEBf-IBT.cjs"),x=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),A=require("./index-CGrK7vLD.cjs"),_=require("./index-BpPyaNFa.cjs"),V={class:"avatar-model-wrap"},N={key:0},E=e.defineComponent({__name:"index",props:{disabled:{type:Boolean,default:!1},avatarUrl:{type:String,default:""},size:{type:[String,Number],default:"large"},userInfo:{type:Object,default:{}},clickStop:{type:Boolean,default:!0}},emits:["submitImage","deleteImage"],setup(i,{emit:w}){const s=i,u=w,m=e.computed(()=>"http://222.92.178.198:62001"),d=e.ref(""),h=e.ref(""),b=e.ref();e.watch(()=>{var o;return(o=s.userInfo)==null?void 0:o.头像},o=>{h.value=m.value+"/"+o},{immediate:!0});const S=async()=>{if(!(s!=null&&s.disabled))try{const o=await B.downloadAvatarApi({url:d.value});if(o.status!==200)throw new Error(`HTTP error! status: ${o.status}`);const f=new Blob([o.data],{type:o.headers["content-type"]});b.value=f}catch(o){throw new Error(o)}},k=async o=>{var f,g,t,n,c;try{const r=await B.uploadFile(o);((f=r==null?void 0:r.data)==null?void 0:f.code)===200&&(h.value=m.value+"/"+((t=(g=r.data)==null?void 0:g.result)==null?void 0:t.url),d.value=(c=(n=r.data)==null?void 0:n.result)==null?void 0:c.url,u("submitImage",d.value))}catch(r){C.ElMessage.error(r)}},y=async()=>{try{if(!h.value)return}catch(o){C.ElMessage.error(o)}};return(o,f)=>{var g,t;return e.openBlock(),e.createElementBlock("div",V,[e.createVNode(I.ssAvatar,{avatarUrl:h.value,avatarBlob:b.value,size:i.size,onClickAvatar:S,onSubmitImage:k,onDeleteImage:y,clickStop:s==null?void 0:s.clickStop},{avatarDefault:e.withCtx(()=>{var n,c,r,l;return[e.createTextVNode(e.toDisplayString(((c=(n=i.userInfo)==null?void 0:n.account)==null?void 0:c.charAt(0))||((l=(r=i.userInfo)==null?void 0:r.姓名)==null?void 0:l.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),i.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",N,e.toDisplayString(((g=i.userInfo)==null?void 0:g.account)||((t=i.userInfo)==null?void 0:t.账号)||"未知"),1))])}}}),T=x._export_sfc(E,[["__scopeId","data-v-747bdfb7"]]),U=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(i,{emit:w}){const s=i,u=e.ref({}),m=e.ref([]),d=w,h=t=>{u.value.dialogShow=(t==null?void 0:t.label)==="电子签名",d("clickSignButton",t)},b=()=>{u.value.dialogShow=!1,d("beforeDestroy")},S=e.computed(()=>"http://222.92.178.198:62001"),k=t=>{var a;const n=t.split(","),c=(a=n==null?void 0:n[0])==null?void 0:a.match(/:(.*?);/)[1],r=atob(n[1]);let l=r.length;const v=new Uint8Array(l);for(;l--;)v[l]=r.charCodeAt(l);return new Blob([v],{type:c})},y=async t=>{var n,c,r;try{const l=await B.uploadFile(t);((n=l==null?void 0:l.data)==null?void 0:n.code)===200&&d("clickSubmitSign",(r=(c=l.data)==null?void 0:c.result)==null?void 0:r.url)}catch(l){C.ElMessage.error(l)}},o=e.ref(""),f=t=>{o.value=t,u.value.dialogShow=!1;const n=new FormData,c=k(t);n.append("file",c,"image.png"),y(n)},g=t=>{const n=new FormData;n.append("file",t==null?void 0:t.file),y(n)};return e.watch(()=>s==null?void 0:s.itemData,t=>{var c,r,l,v;o.value="",(c=u.value)!=null&&c.dialogShow&&(u.value.dialogShow=!1);const n=(r=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:r.contents;n&&Object.keys(n).forEach(a=>{(n[a]===void 0||n[a]===null||n[a]==="")&&delete n[a]}),u.value=(l=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signConfig"))==null?void 0:l.contents,m.value=(v=t==null?void 0:t.find(a=>(a==null?void 0:a.key)==="signTypeList"))==null?void 0:v.contents},{immediate:!0}),(t,n)=>{const c=e.resolveComponent("el-empty"),r=e.resolveComponent("el-image"),l=e.resolveComponent("el-button"),v=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(A.Signature,{signPadInfo:u.value,onBeforeDestroy:b,onClickSubmitSign:f},{signatureRender:e.withCtx(()=>{var a,p;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(a=u.value)==null?void 0:a.signPadWidth}%`})},[e.createVNode(r,{src:o.value?o.value:S.value+"/"+((p=i.userInfo)==null?void 0:p.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(c,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,a=>{var p;return e.openBlock(),e.createElementBlock("div",{key:a.label,class:"signature-button"},[(p=a.label)!=null&&p.includes("上传")?(e.openBlock(),e.createBlock(v,{key:0,ref_for:!0,ref:"uploadRef","http-request":g,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(l,{disabled:a.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(l,{key:1,id:"themeButton",disabled:a.disabled,onClick:$=>h(a)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(a.label),1)]),icon:e.withCtx(()=>[e.createVNode(_.SvgIcon,{name:a.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),q=x._export_sfc(U,[["__scopeId","data-v-ce5a2314"]]);exports.ssAvatar=T;exports.ssSignature=q;
@@ -1,5 +1,5 @@
1
- import { g as S, E as v, u as P, p as K } from "./index-HduGypr9.js";
2
- import { u as k } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
1
+ import { g as S, E as v, u as P, p as K } from "./index-DBDeHECn.js";
2
+ import { u as k } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
3
3
  import { ref as h } from "vue";
4
4
  const A = k(K), E = P(K), x = h(!1), D = h(!1), j = async () => {
5
5
  const I = S({
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-D0XPyuy4.cjs"),n=require("./index-TKouySTA.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),s=require("./index-CBzeyNqc.cjs"),n=require("./index-zfSd0dDx.cjs"),u=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),r=e.ref([]),i=e.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"模块名称",prop:"module",filterable:!0},{label:"操作类型",prop:"type",filterable:!0},{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:r.value}]),p=Object.freeze(Object.defineProperty({__proto__:null,pageData:i,tableData:r},Symbol.toStringTag,{value:"Module"})),b={class:"log-wrap"},d=e.defineComponent({__name:"index",setup(_){const t=e.reactive({...p});e.onMounted(async()=>{t.tableData=await n.getLogTableDataAsync("operate")});const c=l=>{var a;n.clickButton(l,(a=t.tableData)==null?void 0:a.map(o=>o.id),o=>{o&&(t.tableData=[])})};return(l,a)=>(e.openBlock(),e.createElementBlock("div",b,[e.createVNode(s.ssTable,{itemData:t.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:c},null,8,["itemData"])]))}}),f=u._export_sfc(d,[["__scopeId","data-v-3d3b471d"]]);exports.default=f;
@@ -0,0 +1 @@
1
+ "use strict";const t=require("vue");require("./index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs");const r=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),f=t.defineComponent({__name:"index",props:{modelValue:String,disabled:{type:Boolean,default:!1},content:{type:Array,default:()=>[]},isEdit:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},emptyColor:{type:Boolean,default:!1},buttonType:{type:String,default:"primary"}},emits:["clickTrigger"],setup(n,{emit:d}){const e=n,i=t.ref(e.modelValue),o=d,s=l=>{o("clickTrigger",l)};return(l,a)=>{const u=t.resolveComponent("el-button");return t.openBlock(),t.createBlock(u,{type:e==null?void 0:e.buttonType,id:e!=null&&e.emptyColor?"":"themeButton",onClick:a[0]||(a[0]=c=>s(i.value)),loading:e==null?void 0:e.loading,disabled:e==null?void 0:e.disabled},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(i.value),1)]),_:1},8,["type","id","loading","disabled"])}}}),g={class:"dialog-title"},m={__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,default:600},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}},emits:["beforeDestroy"],setup(n,{emit:d}){const e=n,i=d,o=t.ref(!1),s=()=>{i("beforeDestroy")};return t.watch(()=>e==null?void 0:e.visible,()=>{o.value=e==null?void 0:e.visible},{deep:!0,immediate:!0}),(l,a)=>{const u=t.resolveComponent("el-dialog");return t.openBlock(),t.createBlock(u,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=c=>o.value=c),width:e==null?void 0:e.dialogWidth,"before-close":s,draggable:"","append-to-body":"",style:t.normalizeStyle({height:e==null?void 0:e.dialogHeight}),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":n.modalClass,"close-on-press-escape":e==null?void 0:e.closeOnPressEscape,"align-center":e==null?void 0:e.alignCenter},{default:t.withCtx(()=>[t.renderSlot(l.$slots,"default",{},void 0,!0)]),header:t.withCtx(()=>[t.createElementVNode("div",g,t.toDisplayString(e==null?void 0:e.title),1),t.renderSlot(l.$slots,"header",{},void 0,!0)]),footer:t.withCtx(()=>[t.renderSlot(l.$slots,"footer",{},void 0,!0)]),_:3},8,["modelValue","width","style","fullscreen","show-close","close-on-click-modal","modal-class","close-on-press-escape","align-center","append-to-body"])}}},y=r._export_sfc(m,[["__scopeId","data-v-70924351"]]);exports._sfc_main=f;exports.ssDialog=y;
@@ -1,20 +1,20 @@
1
1
  import { watch as u, onMounted as g, onUnmounted as C, resolveComponent as S, createElementBlock as v, openBlock as B, createVNode as I } from "vue";
2
- import "./index-C1lZkQG-.js";
3
- import { u as K } from "./index-HduGypr9.js";
4
- import "./array-BGIM4b6g.js";
2
+ import "./index-CLYAJN6W.js";
3
+ import { u as K } from "./index-DBDeHECn.js";
4
+ import "./array-GAxUIYkk.js";
5
5
  import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-BQiH2RRX.js";
7
- import "./index.vue_vue_type_style_index_0_scoped_bcdf4fb0_lang-PE_6dfIO.js";
6
+ import "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_92477073_lang-B5pFO8Nu.js";
8
+ import "./index.vue_vue_type_style_index_0_scoped_0b6f1a18_lang-BAJOxaYG.js";
8
9
  import "./index-BHtNKL1L.js";
9
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-CuWDdCiy.js";
10
- import "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
11
- import "./index.vue_vue_type_style_index_1_lang-9ANlnWKt.js";
12
- import "./index-BZwQB2HO.js";
10
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-jN5HQ4-h.js";
11
+ import "./index.vue_vue_type_style_index_1_lang-C_-spRZf.js";
12
+ import "./index-CSkbFCKk.js";
13
13
  import "vue-router";
14
- import "./index-DiTYB-a4.js";
15
- import "./dataUtil-D9l7-XhR.js";
14
+ import "./index-CVduLh5F.js";
15
+ import "./dataUtil-CUqnwA-C.js";
16
16
  /* empty css */
17
- import "./index-Rr9ZBYig.js";
17
+ import "./index-BH-dztWs.js";
18
18
  const j = {
19
19
  __name: "index",
20
20
  props: {
@@ -1 +1 @@
1
- "use strict";const g=require("vue"),p=require("./index-Dv1G67_Q.cjs"),w=require("./index.vue_vue_type_style_index_1_lang-CrmWclPR.cjs"),D=p.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(D),V=w.useMenuState(p.pinia),{activeMenuPath:y}=p.storeToRefs(V),E=g.ref(0),P=g.computed(()=>{var s,a,t,r,n,l,e,o,d,v,f;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((d=u.value)==null?void 0:d.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((v=u.value)==null?void 0:v.layer)==="superAdmin"?"启用":((f=u.value)==null?void 0:f.状态)??"未知"}]}),W=()=>{},U=g.ref(!1),h=g.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=g.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),_=g.ref(!1),I=g.ref(!1),R=g.ref(!1),M=g.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value;return Array.isArray(a)?(R.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),O=g.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:M.value}]),$=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,d,v,f;const a=await p.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const b={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(f=(v=(d=a.data.result)==null?void 0:d[0])==null?void 0:v.key)==null?void 0:f.layer};D.setLoginUserInfo(b)}},q=async(s,a)=>{var r,n,l;const t=p.cloneDeep(s);t==null||delete t.id;try{const e=await p.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),p.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},y.value))}catch{p.ElMessage.error("修改响应失败")}finally{U.value=!1,_.value=!1,I.value=!1}},x=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};_.value=s==="avatarUrl",I.value=s==="signature",await q(r,"图片修改")},c=g.reactive({baseCols:[],otherCols:[]}),K=g.ref([]),k=g.ref(),B=(s,a,t)=>{var l,e,o,d,v,f;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?w.decryptData((d=u.value)==null?void 0:d.password,(v=m==null?void 0:m.value)==null?void 0:v.privateKey):w.resetPassword:r=(f=u.value)==null?void 0:f.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},H=(s,a,t)=>{a?t():t(new Error("请输入密码"))},j=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,d,v,f;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const b=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(d=P.value)==null?void 0:d.map(i=>i==null?void 0:i.prop);c.baseCols=b&&((v=b.contents)==null?void 0:v.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(f=b.contents)==null?void 0:f.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:B},{...A,label:"新密码",prop:"newtPass",validator:H},{...A,label:"确认密码",prop:"confirmNewPass",validator:j}];c.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:w.encryptData(s==null?void 0:s.confirmNewPass,(e=m.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},T=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=c.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=T())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=c.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=c.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(d,v,f)=>o.validator(d,v,f),trigger:"blur"}],e),{}),buttonValue:(l=T())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:_,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:$,clickTabButton:G,getUserTableHeadersAsync:J,itemData:O,loading:U,refreshLoginUserInfoAsync:N,rowContents:P,signPadInfo:h,signTypes:M,signatureLoading:I,submitImageAsync:x,tabKey:E,tabsContents:K,tempSignTypes:S,uploadDisabled:R},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=E;
1
+ "use strict";const g=require("vue"),p=require("./index-DEBf-IBT.cjs"),w=require("./index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs"),D=p.useLoginState(p.pinia),{loginUserInfo:u,cryptoInfo:m}=p.storeToRefs(D),V=w.useMenuState(p.pinia),{activeMenuPath:y}=p.storeToRefs(V),E=g.ref(0),P=g.computed(()=>{var s,a,t,r,n,l,e,o,d,v,f;return[{label:"",name:"账号",prop:"账号",value:((s=u.value)==null?void 0:s.account)||(((a=u.value)==null?void 0:a.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=u.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(r=u.value)==null?void 0:r.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((n=u.value)==null?void 0:n.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((l=u.value)==null?void 0:l.layer)==="superAdmin"?"启用":((e=u.value)==null?void 0:e.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((o=u.value)==null?void 0:o.layer)==="superAdmin"?"启用":((d=u.value)==null?void 0:d.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((v=u.value)==null?void 0:v.layer)==="superAdmin"?"启用":((f=u.value)==null?void 0:f.状态)??"未知"}]}),W=()=>{},U=g.ref(!1),h=g.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),S=g.ref([{label:"签字版",icon:p.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:p.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:p.upload_filled_default,type:"buttonUpload",disabled:!1}]),_=g.ref(!1),I=g.ref(!1),R=g.ref(!1),M=g.computed(()=>{var r,n,l;const s=sessionStorage.getItem("authority"),a=JSON.parse(s||""),t=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value;return Array.isArray(a)?(R.value=!(a!=null&&a.includes(`${t}/上传头像`)),(l=S.value)==null?void 0:l.map(e=>({...e,disabled:!(a!=null&&a.includes(`${t}/签名`))}))):typeof a=="string"&&(a==null?void 0:a.toUpperCase())==="SUPERADMIN"?S.value:[]}),O=g.computed(()=>[{key:"signConfig",contents:h},{key:"signTypeList",contents:M.value}]),$=s=>{h.dialogShow=s.label==="电子签名"},L=()=>{h.dialogShow=!1},N=async s=>{var t,r,n,l,e,o,d,v,f;const a=await p.getInsofDataApi({id:s});if(((t=a==null?void 0:a.data)==null?void 0:t.code)===200&&a.data.result&&Array.isArray(a.data.result)&&a.data.result.length>0){const b={...(l=(n=(r=a.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.tableData,id:(o=(e=a.data.result)==null?void 0:e[0])==null?void 0:o.id,layer:(f=(v=(d=a.data.result)==null?void 0:d[0])==null?void 0:v.key)==null?void 0:f.layer};D.setLoginUserInfo(b)}},q=async(s,a)=>{var r,n,l;const t=p.cloneDeep(s);t==null||delete t.id;try{const e=await p.updateInsofDataApi({id:(r=u.value)==null?void 0:r.id,value:{tableData:t}});((n=e==null?void 0:e.data)==null?void 0:n.code)===200&&(L(),p.ElMessage.success("修改成功"),await N((l=u.value)==null?void 0:l.id),await D.setLogRecordAsync({type:a,data:s},y.value))}catch{p.ElMessage.error("修改响应失败")}finally{U.value=!1,_.value=!1,I.value=!1}},x=async(s,a)=>{var n;const t=s==="avatarUrl"?"头像":"签名",r={...u.value,status:((n=u.value)==null?void 0:n.status)??"启用",[t]:a};_.value=s==="avatarUrl",I.value=s==="signature",await q(r,"图片修改")},c=g.reactive({baseCols:[],otherCols:[]}),K=g.ref([]),k=g.ref(),B=(s,a,t)=>{var l,e,o,d,v,f;let r;const n=a;((e=(l=u.value)==null?void 0:l.layer)==null?void 0:e.toUpperCase())!=="SUPERADMIN"?r=(o=u.value)!=null&&o.password?w.decryptData((d=u.value)==null?void 0:d.password,(v=m==null?void 0:m.value)==null?void 0:v.privateKey):w.resetPassword:r=(f=u.value)==null?void 0:f.password,r===n?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},H=(s,a,t)=>{a?t():t(new Error("请输入密码"))},j=(s,a,t)=>{var r;a!==((r=k.value)==null?void 0:r.newtPass)?t(new Error("两次输入的密码不一致")):t()},J=async()=>{var a,t,r,n,l,e,o,d,v,f;const s=await p.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((a=s==null?void 0:s.data)==null?void 0:a.code)===200&&s.data.result&&((t=s.data.result)==null?void 0:t.length)>0){const b=(o=(e=(l=(n=(r=s.data.result)==null?void 0:r[0])==null?void 0:n.value)==null?void 0:l.pageData)==null?void 0:e.compData)==null?void 0:o.find(i=>(i==null?void 0:i.key)==="header"),C=(d=P.value)==null?void 0:d.map(i=>i==null?void 0:i.prop);c.baseCols=b&&((v=b.contents)==null?void 0:v.map(i=>({...i,isFormColHidden:(C==null?void 0:C.includes(i==null?void 0:i.prop))||(i==null?void 0:i.label)==="操作"})));const A=(f=b.contents)==null?void 0:f.find(i=>(i==null?void 0:i.prop)==="password"),F=[{...A,label:"当前密码",prop:"currentPass",validator:B},{...A,label:"新密码",prop:"newtPass",validator:H},{...A,label:"确认密码",prop:"confirmNewPass",validator:j}];c.otherCols=F,Q(u.value)}},z=s=>{k.value=s},G=async({content:s,buttonName:a})=>{var r,n,l,e,o;let t;a==="确定"&&(t={...u.value,status:((r=u.value)==null?void 0:r.status)??"启用",password:((l=(n=u.value)==null?void 0:n.layer)==null?void 0:l.toUpperCase())==="SUPERADMIN"?s==null?void 0:s.confirmNewPass:w.encryptData(s==null?void 0:s.confirmNewPass,(e=m.value)==null?void 0:e.publicKey)}),a==="保存基本信息"&&(t={...u.value,...s,status:((o=u.value)==null?void 0:o.status)??"启用"}),U.value=!0,await q(t,a)},T=()=>{var r,n;const s={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},a=sessionStorage.getItem("authority"),t=JSON.parse(a||"");if(Array.isArray(t)){const l=(r=y.value)!=null&&r.startsWith("/")?(n=y.value)==null?void 0:n.substring(1):y.value,e=t!=null&&t.includes(`${l}/基本信息`)?s==null?void 0:s.base:[],o=t!=null&&t.includes(`${l}/修改密码`)?s==null?void 0:s.other:[];return{base:e,other:o}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?s:null},Q=s=>{var a,t,r,n,l;K.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(a=c.baseCols)==null?void 0:a.map(e=>({...e,width:2,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,prop:e==null?void 0:e.prop,contents:e==null?void 0:e.options,value:s[e==null?void 0:e.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=T())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(r=c.otherCols)==null?void 0:r.map(e=>({...e,width:1,type:e==null?void 0:e.formType,name:e==null?void 0:e.prop,contents:e==null?void 0:e.options})),formRules:(n=c.otherCols)==null?void 0:n.reduce((e,o)=>(e[o.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(d,v,f)=>o.validator(d,v,f),trigger:"blur"}],e),{}),buttonValue:(l=T())==null?void 0:l.other,isEnableWrap:!1},value:""}]}]},X=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:_,beforeSignDestroy:L,changeFormTrigger:z,clickFormButton:W,clickSignButton:$,clickTabButton:G,getUserTableHeadersAsync:J,itemData:O,loading:U,refreshLoginUserInfoAsync:N,rowContents:P,signPadInfo:h,signTypes:M,signatureLoading:I,submitImageAsync:x,tabKey:E,tabsContents:K,tempSignTypes:S,uploadDisabled:R},Symbol.toStringTag,{value:"Module"}));exports.State=X;exports.tabKey=E;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),v={__name:"index",props:{collapseContents:Array,accordion:{type:Boolean,default:!1}},emits:["change"],setup(n,{emit:r}){const s=n,i=r,l=e.ref([]),m=()=>{i("change",l.value)};return(a,c)=>{const u=e.resolveComponent("el-collapse-item"),p=e.resolveComponent("el-collapse");return e.openBlock(),e.createBlock(p,{modelValue:l.value,"onUpdate:modelValue":c[0]||(c[0]=t=>l.value=t),accordion:n.accordion,onChange:m},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.collapseContents,(t,o)=>(e.openBlock(),e.createBlock(u,{key:o,name:o},{title:e.withCtx(({isActive:d})=>[e.renderSlot(a.$slots,"title",{item:t,index:o,isActive:d})]),default:e.withCtx(()=>[e.renderSlot(a.$slots,"content",{item:t,index:o})]),_:2},1032,["name"]))),128))]),_:3},8,["modelValue","accordion"])}}};exports.default=v;
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as o, reactive as c, onMounted as s, createElementBlock as r, openBlock as u, createVNode as i } from "vue";
2
- import { s as m } from "./index-OTxJnh9Z.js";
3
- import { u as d, au as p, at as l } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
4
- import { s as g, u as h } from "./index-HduGypr9.js";
2
+ import { s as m } from "./index-B6nEh_Jv.js";
3
+ import { u as d, aB as p, aA as l } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
4
+ import { s as g, u as h } from "./index-DBDeHECn.js";
5
5
  const _ = { class: "routerPage-wrapper" }, w = /* @__PURE__ */ o({
6
6
  __name: "index",
7
7
  setup(f) {
@@ -1,8 +1,8 @@
1
- import { ref as i, computed as j, reactive as ie, nextTick as B, watch as ye } from "vue";
2
- import { u as be, a as he, ar as Ce } from "./index.vue_vue_type_style_index_1_lang-DwvuVXW6.js";
3
- import { c as J, s as Ie, g as L, bP as ke, E as S, p as U, f as ae, d as oe, bL as Te, e as Me } from "./index-HduGypr9.js";
4
- import { u as Se } from "./index-OTxJnh9Z.js";
5
- const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPath: $, cacheStructures: K } = Ie(C), q = i(!1), se = j(() => {
1
+ import { ref as i, computed as j, reactive as ie, nextTick as A, watch as ye } from "vue";
2
+ import { u as be, a as he, ay as Ce } from "./index.vue_vue_type_style_index_1_lang-C_c9xkIT.js";
3
+ import { c as J, s as Ie, g as U, bA as ke, E as S, p as $, f as ae, d as oe, bw as Te, e as Me } from "./index-DBDeHECn.js";
4
+ import { u as Se } from "./index-B6nEh_Jv.js";
5
+ const F = he($), ne = Se($), C = be($), { menus: ue, configMenu: R, activeMenuPath: q, cacheStructures: K } = Ie(C), z = i(!1), se = j(() => {
6
6
  var e, t;
7
7
  return [
8
8
  {
@@ -62,7 +62,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
62
62
  }))) == null ? void 0 : t.filter((l) => l.title !== "系统管理" && l.title !== "平台管理")
63
63
  }
64
64
  ];
65
- }), z = i([]), O = i([
65
+ }), G = i([]), O = i([
66
66
  {
67
67
  // label: "新增",
68
68
  label: "新建"
@@ -163,9 +163,9 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
163
163
  },
164
164
  {
165
165
  key: "tableContents",
166
- contents: z.value
166
+ contents: G.value
167
167
  }
168
- ]), G = i([]), I = i({}), De = i({}), x = i([
168
+ ]), L = i([]), I = i({}), De = i({}), x = i([
169
169
  // {
170
170
  // label: "配置菜单:",
171
171
  // prop: 'menu',
@@ -265,7 +265,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
265
265
  }
266
266
  ]), _ = (e) => {
267
267
  var t;
268
- G.value = e ? (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
268
+ L.value = e ? (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l : {
269
269
  ...l,
270
270
  value: e ? e[l == null ? void 0 : l.prop] : ""
271
271
  }) : x.value;
@@ -296,7 +296,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
296
296
  return (e = re(ue.value)) == null ? void 0 : e.filter((t) => t.title !== "系统管理" && t.title !== "平台管理");
297
297
  }), fe = async (e) => {
298
298
  var l, u, n, c;
299
- const t = await L({
299
+ const t = await U({
300
300
  key: {
301
301
  type: "subStructure",
302
302
  systemKey: sessionStorage.getItem("systemKey"),
@@ -319,10 +319,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
319
319
  }
320
320
  }, Fe = async (e) => {
321
321
  var t;
322
- q.value = !0, b.value = {
322
+ z.value = !0, b.value = {
323
323
  ...e,
324
324
  rootNode: ke(pe.value, e.path)
325
- }, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? O.value.splice(0) : (O.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await H(e);
325
+ }, C.setCacheStructures(null), (e == null ? void 0 : e.level) === 0 ? O.value.splice(0) : (O.value = [{ label: "新建" }], V.value = (t = e == null ? void 0 : e.path) == null ? void 0 : t.split("/")), await C.setConfigMenu(null), await fe(e == null ? void 0 : e.path), await B(e);
326
326
  }, Ke = (e) => {
327
327
  switch (e) {
328
328
  case "新建":
@@ -332,7 +332,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
332
332
  case "删除":
333
333
  return "delete";
334
334
  }
335
- }, Be = async (e, t) => {
335
+ }, Ae = async (e, t) => {
336
336
  var l, u;
337
337
  if (!b.value) return S.warning("请先选择菜单");
338
338
  if (g.type = Ke(e), V.value = [], F.setSubmitCurStructure(!1), ne.setSelectTitle([]), h.value = J(t), g.type !== "delete") {
@@ -344,10 +344,10 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
344
344
  _(h.value), await C.setConfigMenu(h.value), console.log("clickRowButton", h.value);
345
345
  break;
346
346
  }
347
- await B(), g.title = `【${g.type === "create" ? (l = b.value) == null ? void 0 : l.path : (u = h.value) == null ? void 0 : u.path}】菜单配置${e}`, g.show = !0;
347
+ await A(), g.title = `【${g.type === "create" ? (l = b.value) == null ? void 0 : l.path : (u = h.value) == null ? void 0 : u.path}】菜单配置${e}`, g.show = !0;
348
348
  } else
349
349
  await ge(h.value, g.type);
350
- }, de = i(!0), He = async (e) => {
350
+ }, de = i(!0), Be = async (e) => {
351
351
  var t;
352
352
  I.value = e, await C.setConfigMenu({
353
353
  ...I.value,
@@ -356,7 +356,7 @@ const F = he(U), ne = Se(U), C = be(U), { menus: ue, configMenu: R, activeMenuPa
356
356
  };
357
357
  ye(() => de.value, async (e) => {
358
358
  var t;
359
- await B(), G.value = (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
359
+ await A(), L.value = (t = x.value) == null ? void 0 : t.map((l) => l.prop === "dialogConfig" || l.prop === "contentConfig" || l.prop === "trigger" ? l.prop === "contentConfig" ? {
360
360
  ...l,
361
361
  isFormColHidden: e
362
362
  } : l : {
@@ -364,7 +364,7 @@ ye(() => de.value, async (e) => {
364
364
  value: I.value ? I.value[l == null ? void 0 : l.prop] : ""
365
365
  });
366
366
  }, { immediate: !0, deep: !0 });
367
- const Ae = i(null), Ee = async (e, t) => {
367
+ const He = i(null), Ee = async (e, t) => {
368
368
  var s, p, f, r, y;
369
369
  if (g.type === "create") {
370
370
  const a = (p = (s = K.value) == null ? void 0 : s.filter((d) => (d == null ? void 0 : d.key) === t)) == null ? void 0 : p.flatMap((d) => d == null ? void 0 : d.data);
@@ -377,7 +377,7 @@ const Ae = i(null), Ee = async (e, t) => {
377
377
  const l = (y = (r = e == null ? void 0 : e.structureIds) == null ? void 0 : r.filter((a) => (a == null ? void 0 : a.key) === t)) == null ? void 0 : y.map((a) => a == null ? void 0 : a.id);
378
378
  let u = l == null ? void 0 : l.map((a) => {
379
379
  if (a)
380
- return L({ id: a });
380
+ return U({ id: a });
381
381
  });
382
382
  const n = await Promise.all(u), c = n == null ? void 0 : n.every((a) => {
383
383
  var d;
@@ -385,10 +385,10 @@ const Ae = i(null), Ee = async (e, t) => {
385
385
  });
386
386
  if (console.log("getTriggerStructures2", e == null ? void 0 : e.structureIds, t, n), c && (n == null ? void 0 : n.length) > 0) {
387
387
  const a = n == null ? void 0 : n.map((d) => {
388
- var k, T, D, N, P, o, A;
388
+ var k, T, D, N, P, o, H;
389
389
  return {
390
390
  id: (D = (T = (k = d == null ? void 0 : d.data) == null ? void 0 : k.result) == null ? void 0 : T[0]) == null ? void 0 : D.id,
391
- ...(A = (o = (P = (N = d == null ? void 0 : d.data) == null ? void 0 : N.result) == null ? void 0 : P[0]) == null ? void 0 : o.value) == null ? void 0 : A.pageData
391
+ ...(H = (o = (P = (N = d == null ? void 0 : d.data) == null ? void 0 : N.result) == null ? void 0 : P[0]) == null ? void 0 : o.value) == null ? void 0 : H.pageData
392
392
  };
393
393
  });
394
394
  F.setItemData(a), C.setCacheStructures({
@@ -411,23 +411,23 @@ const Ae = i(null), Ee = async (e, t) => {
411
411
  ...I.value,
412
412
  path: (f = b.value) == null ? void 0 : f.path
413
413
  } : g.type === "update" && (u = R.value), await C.setConfigMenu(u), ne.setSelectTitle(l), F.setIsEdit("edit");
414
- }, H = async (e) => {
414
+ }, B = async (e) => {
415
415
  var l, u, n, c, s, p;
416
- const t = await L({
416
+ const t = await U({
417
417
  key: {
418
418
  type: "menuConfigData",
419
419
  systemKey: sessionStorage.getItem("systemKey"),
420
- pageKey: $.value + "/" + (e == null ? void 0 : e.path),
420
+ pageKey: q.value + "/" + (e == null ? void 0 : e.path),
421
421
  tableId: ""
422
422
  }
423
423
  });
424
- ((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200 && (u = t.data) != null && u.result && (z.value = ((c = (n = t.data) == null ? void 0 : n.result) == null ? void 0 : c.length) > 0 ? (p = (s = t.data) == null ? void 0 : s.result) == null ? void 0 : p.map((f) => {
424
+ ((l = t == null ? void 0 : t.data) == null ? void 0 : l.code) === 200 && (u = t.data) != null && u.result && (G.value = ((c = (n = t.data) == null ? void 0 : n.result) == null ? void 0 : c.length) > 0 ? (p = (s = t.data) == null ? void 0 : s.result) == null ? void 0 : p.map((f) => {
425
425
  var r;
426
426
  return {
427
427
  id: f == null ? void 0 : f.id,
428
428
  ...(r = f == null ? void 0 : f.value) == null ? void 0 : r.tableData
429
429
  };
430
- }) : []), q.value = !1;
430
+ }) : []), z.value = !1;
431
431
  }, E = async (e, t, l = "contentConfig") => {
432
432
  var u, n, c, s, p, f;
433
433
  try {
@@ -435,7 +435,7 @@ const Ae = i(null), Ee = async (e, t) => {
435
435
  t === "create" ? (r = {
436
436
  key: {
437
437
  systemKey: sessionStorage.getItem("systemKey"),
438
- pageKey: $.value + "/" + ((u = b.value) == null ? void 0 : u.path),
438
+ pageKey: q.value + "/" + ((u = b.value) == null ? void 0 : u.path),
439
439
  type: "structure",
440
440
  rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
441
441
  structureBelong: l,
@@ -504,7 +504,7 @@ const Ae = i(null), Ee = async (e, t) => {
504
504
  var l, u, n, c, s, p, f;
505
505
  try {
506
506
  const r = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "contentConfig"), y = e == null ? void 0 : e.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig");
507
- await B();
507
+ await A();
508
508
  const a = (n = (u = (l = K.value) == null ? void 0 : l.filter((o) => (o == null ? void 0 : o.key) === "dialogConfig")) == null ? void 0 : u.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : n.map((o) => o == null ? void 0 : o.id);
509
509
  let d = (p = (s = (c = K.value) == null ? void 0 : c.filter((o) => (o == null ? void 0 : o.key) === "contentConfig")) == null ? void 0 : s.flatMap((o) => o == null ? void 0 : o.data)) == null ? void 0 : p.map((o) => o == null ? void 0 : o.id);
510
510
  d = [...d, ...(f = ce.value) == null ? void 0 : f.map((o) => o == null ? void 0 : o.id)];
@@ -540,7 +540,7 @@ const Ae = i(null), Ee = async (e, t) => {
540
540
  key: {
541
541
  type: "menuConfigData",
542
542
  systemKey: sessionStorage.getItem("systemKey"),
543
- pageKey: $.value + "/" + ((n = b.value) == null ? void 0 : n.path),
543
+ pageKey: q.value + "/" + ((n = b.value) == null ? void 0 : n.path),
544
544
  tableId: "",
545
545
  rootNodePath: e == null ? void 0 : e.rootNodePath
546
546
  },
@@ -561,15 +561,15 @@ const Ae = i(null), Ee = async (e, t) => {
561
561
  }, u = oe) : t === "delete" && (l = {
562
562
  ids: [e.id, ...(c = e == null ? void 0 : e.structureIds) == null ? void 0 : c.map((s) => s.id)]
563
563
  }, u = Me), Ce(u, l, t).then((s) => {
564
- t === "create" && z.value.push({
564
+ t === "create" && G.value.push({
565
565
  ...e,
566
566
  id: s
567
- }), t && s && S.success("响应成功"), H(b.value);
567
+ }), t && s && S.success("响应成功"), B(b.value);
568
568
  });
569
569
  }, _e = async () => {
570
570
  var l, u, n, c, s;
571
571
  const e = JSON.parse(J(JSON.stringify(K.value)));
572
- await B();
572
+ await A();
573
573
  const t = g.type === "create" ? {
574
574
  ...R.value,
575
575
  rootNodePath: (u = (l = b.value) == null ? void 0 : l.rootNode) == null ? void 0 : u.path
@@ -578,7 +578,7 @@ const Ae = i(null), Ee = async (e, t) => {
578
578
  rootNodePath: (c = (n = b.value) == null ? void 0 : n.rootNode) == null ? void 0 : c.path,
579
579
  id: (s = h.value) == null ? void 0 : s.id
580
580
  };
581
- await xe(e, t), I.value = {}, g.show = !1, await H(b.value);
581
+ await xe(e, t), I.value = {}, g.show = !1, await B(b.value);
582
582
  }, je = () => {
583
583
  g.show = !1;
584
584
  }, Je = {
@@ -596,31 +596,31 @@ const Ae = i(null), Ee = async (e, t) => {
596
596
  ]
597
597
  }
598
598
  ]
599
- }, ze = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
599
+ }, Ge = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
600
600
  __proto__: null,
601
601
  beforeDialogDestroy: je,
602
602
  buttonValue: Ne,
603
- changeTrigger: He,
603
+ changeTrigger: Be,
604
604
  changedRow: De,
605
605
  clickNodeTrigger: Fe,
606
- clickRowButton: Be,
606
+ clickRowButton: Ae,
607
607
  clickSubmitForm: _e,
608
608
  clickTrigger: Re,
609
609
  dialogInfo: g,
610
610
  formatFormData: _,
611
611
  getInitialSubStructure: fe,
612
- getTableDataAsync: H,
612
+ getTableDataAsync: B,
613
613
  handleItemDataChange: Pe,
614
614
  inputForm: I,
615
615
  menuPageData: we,
616
- operatingForm: Ae,
616
+ operatingForm: He,
617
617
  pageData: se,
618
- renderFormData: G,
619
- tableLoading: q,
618
+ renderFormData: L,
619
+ tableLoading: z,
620
620
  tempMenuPageData: Je,
621
621
  treeData: pe
622
622
  }, Symbol.toStringTag, { value: "Module" }));
623
623
  export {
624
- ze as S,
624
+ Ge as S,
625
625
  Je as t
626
626
  };
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-C9_Cxm8G.cjs"),r=require("./index-Dv1G67_Q.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-Dc_H7_4Q.cjs"),r=require("./index-DEBf-IBT.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),P=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),i=require("./index-DEBf-IBT.cjs"),k=require("./index.vue_vue_type_style_index_1_lang-Dk9u-CTP.cjs"),G=require("vue-router"),Q=require("./index-Dyk6Ept4.cjs"),X={},Y={class:"left-wrap"},Z={class:"left-bg"};function ee(V,T){return e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("div",Z,[e.renderSlot(V.$slots,"img",{},void 0,!0)])])}const te=P._export_sfc(X,[["render",ee],["__scopeId","data-v-9b7ee6c9"]]),ae={class:"right-wrap"},ne={class:"tab-content"},oe={class:"tab-tips"},se={class:"tab-content"},re={class:"tab-tips"},ce=e.defineComponent({__name:"index",props:{tabList:{type:Array,default:[]},loading:{type:Boolean,default:!1}},emits:["clickLogin","handleTabChange"],setup(V,{emit:T}){const h=e.ref("account"),p=T,A=()=>{p("clickLogin",h.value)},b=f=>{p("handleTabChange",f)};return(f,m)=>{const g=e.resolveComponent("el-button"),_=e.resolveComponent("el-tab-pane"),v=e.resolveComponent("el-tabs");return e.openBlock(),e.createElementBlock("div",ae,[e.createVNode(v,{modelValue:h.value,"onUpdate:modelValue":m[0]||(m[0]=l=>h.value=l),class:"right-tabs",onTabChange:b},{default:e.withCtx(()=>[e.createVNode(_,{name:"account"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel1",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",ne,[e.renderSlot(f.$slots,"tabContent1",{},void 0,!0)]),e.createElementVNode("div",{class:"tab-button special",onClick:A},[e.createVNode(g,{loading:V.loading},{default:e.withCtx(()=>[e.renderSlot(f.$slots,"tabButton1",{},void 0,!0)]),_:3},8,["loading"])]),e.createElementVNode("div",oe,[e.renderSlot(f.$slots,"tabTips1",{},void 0,!0)])]),_:3}),e.createVNode(_,{name:"face"},{label:e.withCtx(()=>[e.renderSlot(f.$slots,"tabLabel2",{},void 0,!0)]),default:e.withCtx(()=>[e.createElementVNode("div",se,[e.renderSlot(f.$slots,"tabContent2",{},void 0,!0)]),e.createElementVNode("div",re,[e.renderSlot(f.$slots,"tabTips2",{},void 0,!0)])]),_:3})]),_:3},8,["modelValue"])])}}}),le=P._export_sfc(ce,[["__scopeId","data-v-516c8b4a"]]),ie={class:"account-wrap"},de=e.defineComponent({__name:"index",props:{activeTabName:{type:String,default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const h=V,p=e.reactive({account:"",password:""}),A=e.reactive({account:[{required:!0,message:"请输入账号",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),b=e.ref(null),f=T;return e.watch(()=>h.isClickLogin,m=>{var g;m&&(h==null?void 0:h.activeTabName)==="account"&&((g=b.value)==null||g.validate(_=>{var v;for(let l in p)p.hasOwnProperty(l)&&(p[l]=(v=p[l])==null?void 0:v.trim());f("handleLoginFormChange",_,_?p:null)}))},{immediate:!0}),e.watch(()=>h.activeTabName,m=>{var g;m==="account"&&((g=b.value)==null||g.resetFields())}),(m,g)=>{const _=e.resolveComponent("svg-icon"),v=e.resolveComponent("el-input"),l=e.resolveComponent("el-form-item"),w=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",ie,[e.createVNode(w,{model:p,rules:A,ref_key:"formRef",ref:b},{default:e.withCtx(()=>[e.createVNode(l,{label:"",prop:"account"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.account,"onUpdate:modelValue":g[0]||(g[0]=C=>p.account=C),placeholder:"请输入账号",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"account",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1}),e.createVNode(l,{label:"",prop:"password"},{default:e.withCtx(()=>[e.createVNode(v,{class:"account-input",modelValue:p.password,"onUpdate:modelValue":g[1]||(g[1]=C=>p.password=C),type:"password",placeholder:"请输入密码","show-password":"",clearable:""},{prefix:e.withCtx(()=>[e.createVNode(_,{name:"password",style:{width:"15px",height:"15px"}})]),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model","rules"])])}}}),ue=P._export_sfc(de,[["__scopeId","data-v-48037c0f"]]);function pe(V){return i.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:V})}const fe={class:"account-wrap"},ye={class:"video-wrap"},ge=e.defineComponent({__name:"index",props:{systemKey:{default:""},activeTabName:{default:""},isClickLogin:{type:Boolean,default:!1}},emits:["handleLoginFormChange"],setup(V,{emit:T}){const h=V,p=T,A=i.useLoginState(i.pinia),b=e.ref(null),f=e.ref(null);let m=!1;const g=async l=>{if(!l)return;const w=new FormData;w.set("file",l),h.systemKey&&w.set("systemKey",h.systemKey),console.log("Face Recognition",h.systemKey);const C=await pe(w),{data:S}=C||{},{account:x,password:I,layer:M}=(S==null?void 0:S.data)||{},L=S==null?void 0:S.msg;if(!x){i.ElMessage.warning(L||"识别失败,请重新识别!");return}const{privateKey:D}=await A.getModelSecretAsync();let $=I;M!=="superAdmin"&&($=k.decryptData(I,D)),p("handleLoginFormChange",!0,{account:x,password:$})},_=()=>{if(!f.value||!b.value)return;const l=f.value,w=l.getContext("2d"),C=b.value;l.width=200,l.height=200;const S=C.videoWidth||640,x=C.videoHeight||480,I=Math.min(200/S,200/x),M=S*I,L=x*I,D=(200-M)/2,$=(200-L)/2;w==null||w.drawImage(C,0,0,S,x,D,$,M,L),l.toBlob(R=>{if(R){const O=new File([R],"face.png",{type:"image/png"});g(O)}},"image/png")},v=async()=>{if(!b.value||m)return;const l=b.value;try{const w=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1});if(l){const C=l;C.srcObject=w,m=!0}}catch{i.ElMessage.warning("摄像头启动失败")}};return e.watch(()=>h.activeTabName,l=>{l==="face"&&!m&&v()}),e.onMounted(()=>{v()}),(l,w)=>(e.openBlock(),e.createElementBlock("div",fe,[e.createElementVNode("div",ye,[e.createElementVNode("video",{class:"face-video",ref_key:"videoRef",ref:b,id:"v",autoplay:"",playsinline:""},null,512)]),e.createElementVNode("button",{class:"face-screenshot",onClick:_},"人脸识别"),e.createElementVNode("canvas",{ref_key:"canvasRef",ref:f,id:"canvas"},null,512)]))}}),me=P._export_sfc(ge,[["__scopeId","data-v-5538dabd"]]);function ve(){const V={account:"superadmin",password:"1c8e7623312244c1feb677732278fb8b2af6af1a5335fdaebbdb2720137b372b7871292d11165b83b2967b9c39fa37027d63d37a2f36d764257b566dcfa99f334faa8995301601aec549adf39aef8d89c8788da03a9164937a5f73af20a15ea60d47c7cf01cf",tenantId:-1,code:"",codeId:0};return i.service({url:"/api/sysAuth/login",method:"post",data:V})}const he={class:"login-wrap"},be={class:"login-body"},_e={class:"login-body-item left"},we={class:"title"},Ce={class:"login-body-item right"},Ne=e.defineComponent({__name:"index",props:{oldSystemKey:{}},emits:["change"],setup(V,{emit:T}){const h=G.useRouter(),p=i.useLoginState(i.pinia),{systemKey:A,systemInfo:b,loginUserInfo:f}=i.storeToRefs(p),m=e.ref({sysCTitle:"",sysETitle:"",loginTitle:"账户密码登录",tabs:[{name:"密码登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"人脸识别",btnLabel:"人脸识别",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"},{name:"刷卡登录",btnLabel:"登录",tips:"温馨提示:建议使用谷歌、Microsoft Edge,版本79.0.1072.62及以上浏览器,360浏览器请使用极速模式"}]}),g=e.ref("account"),_=e.ref(!1),v=e.ref(!1),l=()=>{_.value=!0},w=(a,n)=>{_.value=!1,a&&O(n)},C=a=>k.getFirstArrayProperty(a),S=a=>{let n;const o=k.convertArrayToTree(a),s=k.addPathToTree(o),d=k.getLeafNodesRecursive(s),y=k.groupByField(d,"parentPath");return n=k.handleRowAuthorityRender(y),n},x=(a,n)=>{var s,d,y;const o=(n==null?void 0:n.userRoles)??(n==null?void 0:n.角色名称);try{if(n.layer&&((s=n==null?void 0:n.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN")return"superAdmin";if(Array.isArray(o)){if((o==null?void 0:o.length)===1){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===(o==null?void 0:o[0])||t.角色名称===(o==null?void 0:o[0])),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}if((o==null?void 0:o.length)>1){let r=a==null?void 0:a.filter(t=>o==null?void 0:o.includes(t.roleName||(t==null?void 0:t.角色名称)));const N=C(r==null?void 0:r[0]),c=(y=(d=r==null?void 0:r.map(t=>Array.isArray(t==null?void 0:t[N])?t==null?void 0:t[N]:[]))==null?void 0:d.flat())==null?void 0:y.flatMap(t=>t.checkedButtons);return(c==null?void 0:c.length)===0?i.ElMessage.error("该用户没有权限,请联系管理员"):new Set(c)}}if(typeof o=="string"){const r=a==null?void 0:a.find(t=>(t==null?void 0:t.roleName)===o||(t==null?void 0:t.角色名称)===o),N=C(r),c=S(r==null?void 0:r[N]);return r&&c&&Array.isArray(c)?r?c==null?void 0:c.flatMap(t=>t.checkedButtons):[]:[]}}catch(r){throw new Error(r)}},I=async a=>{var n,o;try{let s=[];const d=await i.getInsofDataApi({key:{systemKey:A.value?A.value:a==null?void 0:a.systemKey,pageKey:"系统管理/角色管理",type:"data"}});if(d.data.code===200){const y=(o=(n=d.data)==null?void 0:n.result)==null?void 0:o.map(r=>r.value.tableData);s=x(y,a)}if(s)return Array.isArray(s)?Array.from(s):s;throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error("获取用户权限失败,请联系管理员")}catch(s){throw i.ElMessage.error("获取用户权限失败,请联系管理员"),new Error(s)}},M=async a=>{var n,o,s,d,y,r,N;try{let c=[],t,K,B;A.value?B={pageKey:"系统管理/用户管理",type:"data",systemKey:A.value}:B={pageKey:"系统管理/用户管理",type:"data"};const j=await i.getInsofDataApi({key:B});let q;if(!sessionStorage.getItem("systemKey")||sessionStorage.getItem("systemKey")===""?q=await i.getInsofDataApi({key:{layer:"superAdmin"}}):q=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:sessionStorage.getItem("systemKey")}}),j.data.code===200&&q.data.code===200){const W=(o=(n=q.data)==null?void 0:n.result)==null?void 0:o.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),z=(d=(s=j.data)==null?void 0:s.result)==null?void 0:d.map(u=>{var E,U;return{...u.value.tableData,layer:(E=u.key)==null?void 0:E.layer,systemKey:(U=u==null?void 0:u.key)==null?void 0:U.systemKey,id:u.id}}),H=[...W,...z];if(t=H==null?void 0:H.find(u=>(u==null?void 0:u.account)===(a==null?void 0:a.account)||(u==null?void 0:u.账号)===(a==null?void 0:a.account)),t){if(((y=t.layer)==null?void 0:y.toUpperCase())!=="SUPERADMIN"&&(!(t!=null&&t.状态)||(t==null?void 0:t.状态)==="禁用"||(t==null?void 0:t.status)==="禁用")){i.ElMessage.error("该用户已被禁用,请联系管理员"),v.value=!1;return}c=await I(t);const{privateKey:u}=await p.getModelSecretAsync(t);let E;if(t.password?E=((r=t.layer)==null?void 0:r.toUpperCase())==="SUPERADMIN"?t.password:k.decryptData(t.password,u):E=((N=t.layer)==null?void 0:N.toUpperCase())==="SUPERADMIN"?t.password:k.resetPassword,(a==null?void 0:a.password)===E)K=t;else throw K=null,i.ElMessage.error("输入的密码错误,请重新输入"),v.value=!1,new Error("输入的密码错误,请重新输入")}else return i.ElMessage.error("该用户不存在,请重新输入")}return K&&c?{matchedUser:K,userAuthority:c}:void 0}catch(c){throw new Error(c)}},L=async a=>{var o,s,d;const n=await M(a);if(n!=null&&n.matchedUser){p.setLoginUserInfo(n.matchedUser),sessionStorage.setItem("authority",JSON.stringify(n.userAuthority));const y=((s=(o=n.matchedUser)==null?void 0:o.layer)==null?void 0:s.toUpperCase())==="SUPERADMIN";return sessionStorage.setItem("isSuperAdmin",JSON.stringify(y)),sessionStorage.setItem("systemKey",A.value?A.value:(d=n.matchedUser)==null?void 0:d.systemKey),await D(n.matchedUser),!0}else throw v.value=!1,new Error("该用户数据处理失败,请联系管理员")},D=async a=>{var o,s,d,y,r,N,c,t,K;const n=await i.getInsofDataApi({key:{layer:"superAdmin",systemKey:A.value?A.value:a==null?void 0:a.systemKey}});if(n.data.code===200&&(o=n.data)!=null&&o.result&&Array.isArray((s=n.data)==null?void 0:s.result)&&((y=(d=n.data)==null?void 0:d.result)==null?void 0:y.length)>0){const B=(K=(t=(c=(N=(r=n.data)==null?void 0:r.result)==null?void 0:N[0])==null?void 0:c.value)==null?void 0:t.tableData)==null?void 0:K.account;p.setSuperAdminInfo({account:B})}},$=async()=>{var a,n,o;try{const s=await ve();return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("loginToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},R=async()=>{var a,n,o;try{const s=await i.axios.post("http://139.196.154.85:20024/api/sysAuth/login",{account:"superadmin",password:"9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",codeId:0,code:""});return((a=s==null?void 0:s.data)==null?void 0:a.code)===200?(sessionStorage.setItem("magicToken",(o=(n=s.data)==null?void 0:n.result)==null?void 0:o.accessToken),!0):!1}catch(s){i.ElMessage.error(s)}},O=async a=>{var d,y,r,N;v.value=!0;let n=[L(a),$(),R()];const o=await Promise.all(n);(o==null?void 0:o.every(c=>c))&&(await Q.verifyStructureDataToStore(),h.push("/"),p.setLogRecordAsync({type:"登录",data:{account:((d=f.value)==null?void 0:d.account)??((y=f.value)==null?void 0:y.账号),userName:((r=f.value)==null?void 0:r.姓名)||((N=f.value)==null?void 0:N.userName)||"未知"}},"/login","login"))},F=a=>{g.value=a,_.value=!1,v.value=!1},J=a=>/^[\u4e00-\u9fa5\s,。!?《》“”【】]+$/.test(a);return(a,n)=>(e.openBlock(),e.createElementBlock("div",he,[e.createElementVNode("div",be,[e.createElementVNode("div",_e,[e.createVNode(te,{class:"login-left-bg"},{img:e.withCtx(()=>{var o,s,d,y;return[e.createElementVNode("div",we,[e.createElementVNode("div",null,e.toDisplayString(((o=e.unref(b))==null?void 0:o.EnglishName)||"INSOFWORKS"),1),e.createElementVNode("div",null,e.toDisplayString((s=e.unref(b))!=null&&s.chineseName&&J((d=e.unref(b))==null?void 0:d.chineseName)?(y=e.unref(b))==null?void 0:y.chineseName:"工业软件集成开发平台"),1)]),n[0]||(n[0]=e.createElementVNode("div",{class:"divide-line"},null,-1))]}),_:1})]),e.createElementVNode("div",Ce,[e.createVNode(le,{loading:v.value,onClickLogin:l,onHandleTabChange:F},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.loginTitle),1)]),tabLabel1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].name),1)]),tabContent1:e.withCtx(()=>[e.createVNode(ue,{activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["activeTabName","isClickLogin"])]),tabButton1:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[0].btnLabel),1)]),tabLabel2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].name),1)]),tabContent2:e.withCtx(()=>[e.createVNode(me,{systemKey:a.oldSystemKey,activeTabName:g.value,isClickLogin:_.value,onHandleLoginFormChange:w},null,8,["systemKey","activeTabName","isClickLogin"])]),tabButton2:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(m.value.tabs[1].btnLabel),1)]),_:1},8,["loading"])])])]))}}),Ae=P._export_sfc(Ne,[["__scopeId","data-v-cc09996c"]]);exports.default=Ae;