ss-component-new 1.3.440 → 1.3.443

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 (103) hide show
  1. package/dist/{MTLLoader-BwkFVqL-.cjs → MTLLoader-B5SKHnGa.cjs} +1 -1
  2. package/dist/{MTLLoader-DNSv6X0i.js → MTLLoader-DwPdWizk.js} +1 -1
  3. package/dist/{OrbitControls-DaZRnXU6.cjs → OrbitControls-DeBaEHUj.cjs} +1 -1
  4. package/dist/{OrbitControls-BYUrBNWv.js → OrbitControls-DnETMpm3.js} +1 -1
  5. package/dist/{URDFLoader-DYKZA4lN.cjs → URDFLoader-DrI0sVHT.cjs} +1 -1
  6. package/dist/{URDFLoader-BZBVqZws.js → URDFLoader-W-BC9a18.js} +2 -2
  7. package/dist/{animationData-BJRWi-LU.cjs → animationData-DnRszQps.cjs} +1 -1
  8. package/dist/{animationData-Zq5cH5C8.js → animationData-M0ZPGMne.js} +3 -3
  9. package/dist/{array-CXkBrDAz.cjs → array-BcF0y4bf.cjs} +1 -1
  10. package/dist/{array-Q3XGsUSs.js → array-DYVJyzOW.js} +3 -3
  11. package/dist/clone-7j6nCPRO.cjs +1 -0
  12. package/dist/{clone-BDsG8VVj.js → clone-CHuh4brN.js} +1 -1
  13. package/dist/{iconfont-Bt2wRD-G.cjs → iconfont-BWb856Sc.cjs} +1 -1
  14. package/dist/{iconfont-CY4Fa9KU.js → iconfont-kof-t-Oh.js} +2 -2
  15. package/dist/index--VFc-Ha-.cjs +2 -0
  16. package/dist/{index--tdZ_yDs.cjs → index-B0sA7LCa.cjs} +1 -1
  17. package/dist/{index-DdE_CHsO.cjs → index-B4Cm0GS_.cjs} +1 -1
  18. package/dist/{index-BXZq_sqI.cjs → index-BCnRN-on.cjs} +1 -1
  19. package/dist/{index-Cw0_-C_T.js → index-BOO6MX4H.js} +8 -8
  20. package/dist/{index-BRUxCmkT.js → index-BRCZWpMk.js} +2 -2
  21. package/dist/{index-BMofVGXk.cjs → index-BTEY8ajW.cjs} +1 -1
  22. package/dist/{index-IGuY2Qp9.cjs → index-BVXSPL5O.cjs} +1 -1
  23. package/dist/{index-D8DyFGA3.cjs → index-BXHzLi8Y.cjs} +1 -1
  24. package/dist/{index-CDGUQzvl.js → index-BizvZzv2.js} +1885 -1901
  25. package/dist/{index-BiwYTq-N.cjs → index-BkZKlNn0.cjs} +1 -1
  26. package/dist/{index-RF5qQdBY.js → index-Bkwc6r6A.js} +1 -1
  27. package/dist/{index-DoorIpTj.cjs → index-BoSbQ2Mg.cjs} +1 -1
  28. package/dist/{index-DCm5o7Nl.js → index-Bq8jxIHD.js} +1 -1
  29. package/dist/{index-sVk4LM6C.js → index-BtAXbWEV.js} +3 -3
  30. package/dist/{index-BngLkn1F.js → index-BunOxSP0.js} +4 -4
  31. package/dist/{index-D7aAxcbI.cjs → index-BwcMTycx.cjs} +1 -1
  32. package/dist/{index-Digv4Fyh.cjs → index-CBKu-nLA.cjs} +1 -1
  33. package/dist/{index-Pda6xIs5.js → index-CNKespzb.js} +2 -2
  34. package/dist/{index-CCUIg0kG.js → index-CRm3arFM.js} +3 -3
  35. package/dist/{index-B3xqfizn.cjs → index-CXN4UfKz.cjs} +1 -1
  36. package/dist/{index-sl2ZbrIv.js → index-CZp5_GWt.js} +1 -1
  37. package/dist/{index-4SWc85gj.cjs → index-Cc43YUZe.cjs} +1 -1
  38. package/dist/{index-C4qnDJ7y.cjs → index-Cf6R7l0z.cjs} +1 -1
  39. package/dist/{index-5zBx2xab.js → index-CmJoUVma.js} +1 -1
  40. package/dist/{index-D4qChNi3.cjs → index-Cr6zDtw8.cjs} +1 -1
  41. package/dist/{index-DDynMbhm.js → index-CrF-uwcR.js} +4 -4
  42. package/dist/{index-DQ94pBGZ.js → index-CrWrs_KJ.js} +3 -3
  43. package/dist/{index-DyCQbiMc.cjs → index-Cvn9j6Uk.cjs} +1 -1
  44. package/dist/{index-CnuQRzui.js → index-D0CTX2lt.js} +2 -2
  45. package/dist/{index-aaiRLVcp.js → index-D1UnVGMH.js} +2 -2
  46. package/dist/{index-9Fw7ND1N.js → index-D4df8WCz.js} +1 -1
  47. package/dist/{index-DU2dKJOK.js → index-D6CkQo8N.js} +4 -4
  48. package/dist/{index-BK-oz1IK.js → index-D6RGTlCo.js} +1 -1
  49. package/dist/{index-CGdHW3ql.cjs → index-D97Au279.cjs} +1 -1
  50. package/dist/{index-CUL-lmb5.js → index-DCzeVZ4J.js} +8291 -8290
  51. package/dist/{index-DZ3bTPbQ.cjs → index-DRpc0H48.cjs} +1 -1
  52. package/dist/{index-ilXWn4_Y.cjs → index-DSQTv7ZT.cjs} +1 -1
  53. package/dist/{index-XVjZTSe1.cjs → index-DSazO1WU.cjs} +1 -1
  54. package/dist/{index-DDK5gDem.js → index-DYvi5VRx.js} +2 -2
  55. package/dist/{index-Tco6PJIR.cjs → index-DZG8GFTu.cjs} +1 -1
  56. package/dist/{index-FcjQa2OL.cjs → index-D_VYSFMf.cjs} +1 -1
  57. package/dist/{index-CKsprVNa.js → index-DetbfoFY.js} +1 -1
  58. package/dist/index-DhbI3EyP.cjs +26 -0
  59. package/dist/{index-xN3pvlzo.cjs → index-Dom0zBom.cjs} +1 -1
  60. package/dist/{index-D1U0qzcp.js → index-Dr4B59gA.js} +1 -1
  61. package/dist/{index-B6T-kHUJ.js → index-DudGkjPi.js} +5 -5
  62. package/dist/{index-0FpZWIIY.js → index-Dxrnw0Zh.js} +2 -2
  63. package/dist/{index-pTiemqvw.cjs → index-OlrEuv1h.cjs} +1 -1
  64. package/dist/{index-Cy1kw0Nt.js → index-TST5eqVE.js} +5 -5
  65. package/dist/{index--pSIRGrA.js → index-cqtuMGhv.js} +7 -7
  66. package/dist/{index-B5oXMF5a.cjs → index-iIVZhifA.cjs} +1 -1
  67. package/dist/{index-CL9NLBg4.js → index-l_Jkuubw.js} +1 -1
  68. package/dist/{index-C09sw7CL.cjs → index-m2-jgnHZ.cjs} +1 -1
  69. package/dist/{index-dAoOU6TR.cjs → index-mqL-OFAs.cjs} +1 -1
  70. package/dist/{index-D-pcZs4P.js → index-wJMAUIc_.js} +2 -2
  71. package/dist/{index-D5c-glVN.cjs → index-wiR2PRep.cjs} +1 -1
  72. package/dist/{index-BMbjyksn.js → index-xrsX_7VG.js} +2 -2
  73. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-PnEFT3X7.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BPcdPEE5.js} +3 -3
  74. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DTWSzwUy.cjs} +1 -1
  75. package/dist/{main-BFSFTa5H.js → main-CC0T5bl0.js} +4 -4
  76. package/dist/{main-C89I_j8J.cjs → main-CkoQfMOM.cjs} +1 -1
  77. package/dist/{menuIndex-CPrSvY9F.js → menuIndex-Cdz5Y6LK.js} +1 -1
  78. package/dist/{menuIndex-8KYc1zS9.cjs → menuIndex-WtaEC57t.cjs} +1 -1
  79. package/dist/ss-component.cjs +1 -1
  80. package/dist/ss-component.css +1 -1
  81. package/dist/ss-component.js +11 -11
  82. package/dist/ss-component2.cjs +1 -1
  83. package/dist/ss-component2.js +12 -12
  84. package/dist/{threeModel-3tt2Brip.cjs → threeModel-CChYFtyb.cjs} +1 -1
  85. package/dist/{threeModel-j3rd3jta.js → threeModel-DKd1_z9I.js} +4 -4
  86. package/dist/{threePreview-Djh17gcq.js → threePreview-B6F8FDdJ.js} +4 -4
  87. package/dist/{threePreview-9qfx_J15.cjs → threePreview-CCLl0t2L.cjs} +1 -1
  88. package/dist/{threeSceneView-CiVN4gbh.cjs → threeSceneView-CxnuY_tw.cjs} +1 -1
  89. package/dist/{threeSceneView-rYnHYo2_.js → threeSceneView-DX8-MlLs.js} +11 -11
  90. package/dist/{threeSceneViewForCPMPIP-BX3tSRdC.cjs → threeSceneViewForCPMPIP-B6D9Pway.cjs} +1 -1
  91. package/dist/{threeSceneViewForCPMPIP-C4SwId__.js → threeSceneViewForCPMPIP-BvZtzENp.js} +8 -8
  92. package/dist/{threeTrackPathView-CewpNc2B.js → threeTrackPathView-BNZmWUNv.js} +4 -4
  93. package/dist/{threeTrackPathView-C8S1xa9M.cjs → threeTrackPathView-CTSE5lvC.cjs} +1 -1
  94. package/dist/{threeViewerHost-CWrX4pzc.cjs → threeViewerHost-C8cNJWl7.cjs} +1 -1
  95. package/dist/{threeViewerHost-oZOwIdFN.js → threeViewerHost-CaukI5Hg.js} +3 -3
  96. package/dist/{urdfTree-tWRZTeGx.cjs → urdfTree-Cl-Ete0V.cjs} +1 -1
  97. package/dist/{urdfTree-BWSOyDd8.js → urdfTree-ilk9ZvH3.js} +1 -1
  98. package/dist/{workpieceTreePanel-C_zbYiB6.js → workpieceTreePanel-Dou3yknm.js} +4 -4
  99. package/dist/{workpieceTreePanel-cotaSjga.cjs → workpieceTreePanel-psliSrxN.cjs} +1 -1
  100. package/package.json +1 -1
  101. package/dist/clone-D92QCGo2.cjs +0 -1
  102. package/dist/index-Cy8mMwpW.cjs +0 -2
  103. package/dist/index-D_9JR2Ks.cjs +0 -26
@@ -1,5 +1,5 @@
1
1
  import { g as pt, b as Cc, e as ti, a as Rh } from "./index-DUq4XELr.js";
2
- import { c as ae, a5 as Bf, s as Gr, p as Mr, b as I0, u as D0, i as Lf, a as fi } from "./index-BK-oz1IK.js";
2
+ import { c as ae, a5 as Bf, s as Gr, p as Mr, b as I0, u as D0, i as Lf, a as fi } from "./index-D6RGTlCo.js";
3
3
  import { E as Y0 } from "./request-XJsZ4h2T.js";
4
4
  import { ref as Oa, reactive as no, computed as is, watch as io } from "vue";
5
5
  import "./JSEncrypt-B36c1iN5.js";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CGdHW3ql.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BzLhfrPk.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-C4qnDJ7y.cjs");require("./index-BMofVGXk.cjs");const _=require("./index-xN3pvlzo.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-D97Au279.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DTWSzwUy.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-Cf6R7l0z.cjs");require("./index-BTEY8ajW.cjs");const _=require("./index-Dom0zBom.cjs");require("./request-Dl8yi2iS.cjs");;/* empty css */const h=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),y={class:"personal-wrapper"},V={class:"personal-box left"},N={class:"base-avatar"},x={class:"center-avatar"},S={class:"base-info"},D={class:"base-signature"},E={class:"personal-box right"},k=e.defineComponent({__name:"index",setup(C){const t=e.reactive({...o.State}),f=_.useLoginState(),{loginUserInfo:n}=_.storeToRefs(f);return e.onMounted(()=>{var i;t.getUserTableHeadersAsync(),t.refreshLoginUserInfoAsync((i=n==null?void 0:n.value)==null?void 0:i.id),o.tabKey.value++}),(i,r)=>{var c,d,u,g,p,m,v;const s=e.resolveComponent("svg-icon"),a=e.resolveDirective("loading");return e.openBlock(),e.createElementBlock("div",y,[e.createElementVNode("div",V,[e.createElementVNode("div",N,[e.createElementVNode("div",x,[e.withDirectives(e.createVNode(o.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:r[0]||(r[0]=l=>t.submitImageAsync("avatarUrl",l))},null,8,["disabled","userInfo"]),[[a,t.avatarLoading]])])]),e.createElementVNode("div",S,[e.createElementVNode("div",null,[e.createVNode(s,{name:"userAccount",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((c=e.unref(n))==null?void 0:c.account)||(((d=e.unref(n))==null?void 0:d.姓名)??"未知")),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"role",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((u=e.unref(n))==null?void 0:u.layer)==="superAdmin"?"超级管理员":((g=e.unref(n))==null?void 0:g.角色名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"dept",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((p=e.unref(n))==null?void 0:p.部门名称)??"未知"),1)]),e.createElementVNode("div",null,[e.createVNode(s,{name:"status",style:{width:"15px",height:"15px"}}),e.createElementVNode("span",null,e.toDisplayString(((m=e.unref(n))==null?void 0:m.layer)==="superAdmin"?"启用":((v=e.unref(n))==null?void 0:v.状态)??"未知"),1)])]),e.createElementVNode("div",D,[e.withDirectives(e.createVNode(o.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:r[1]||(r[1]=l=>t.submitImageAsync("signature",l))},null,8,["userInfo","itemData","onClickSignButton","onBeforeDestroy"]),[[a,t.signatureLoading]])])]),e.withDirectives((e.openBlock(),e.createElementBlock("div",E,[(e.openBlock(),e.createBlock(b.ssTab,{key:e.unref(o.tabKey),tabsContents:t.tabsContents,onChangeTrigger:t.changeFormTrigger,onClickTrigger:t.clickTabButton},null,8,["tabsContents","onChangeTrigger","onClickTrigger"]))])),[[a,t.loading]])])}}}),B=h._export_sfc(k,[["__scopeId","data-v-3bdf3f4b"]]);exports.default=B;
@@ -1,11 +1,11 @@
1
1
  import { ref as h, computed as E, reactive as j, defineComponent as q, watch as H, createElementBlock as N, openBlock as k, createVNode as A, createCommentVNode as ue, withCtx as _, createTextVNode as V, toDisplayString as F, resolveComponent as D, createBlock as R, Fragment as ie, renderList as ce, createElementVNode as de, normalizeStyle as pe } from "vue";
2
2
  import { av as fe, aw as ve, ax as ge, E as T } from "./request-XJsZ4h2T.js";
3
- import { s as J, b as ye, u as be, p as G, c as me, e as he } from "./index-BK-oz1IK.js";
3
+ import { s as J, b as ye, u as be, p as G, c as me, e as he } from "./index-D6RGTlCo.js";
4
4
  import { g as Q, u as we } from "./index-DUq4XELr.js";
5
5
  import { J as X } from "./JSEncrypt-B36c1iN5.js";
6
- import { a4 as Se } from "./index-5zBx2xab.js";
7
- import { A as _e } from "./index-BMbjyksn.js";
8
- import { u as Y, l as Ce } from "./index-B6T-kHUJ.js";
6
+ import { a4 as Se } from "./index-CmJoUVma.js";
7
+ import { A as _e } from "./index-xrsX_7VG.js";
8
+ import { u as Y, l as Ce } from "./index-DudGkjPi.js";
9
9
  import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
10
10
  import { S as x } from "./index-BHtNKL1L.js";
11
11
  function Ae(t, s) {
@@ -1,12 +1,12 @@
1
1
  import { createElementBlock as F, openBlock as L, createElementVNode as s, renderSlot as E, defineComponent as W, ref as _, resolveComponent as b, createVNode as t, withCtx as a, unref as P, reactive as le, computed as G, onMounted as me, createBlock as J, resolveDirective as ye, createCommentVNode as ae, withDirectives as he, normalizeClass as ie, toDisplayString as S, Transition as Ce, watch as ee, Fragment as we, createTextVNode as O, onBeforeUnmount as Te } from "vue";
2
2
  import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { b as ne, p as Q, s as se, u as ke, a as Ue, l as Ve, e as Le, v as $e } from "./index-BK-oz1IK.js";
3
+ import { b as ne, p as Q, s as se, u as ke, a as Ue, l as Ve, e as Le, v as $e } from "./index-D6RGTlCo.js";
4
4
  import { _ as Y } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
5
  import { c as qe, a as Ae, f as Ie, b as re, E as ce } from "./request-XJsZ4h2T.js";
6
6
  import "./JSEncrypt-B36c1iN5.js";
7
- import { u as De } from "./index-9Fw7ND1N.js";
7
+ import { u as De } from "./index-D4df8WCz.js";
8
8
  import { useRouter as Fe } from "vue-router";
9
- import { l as xe } from "./index-RF5qQdBY.js";
9
+ import { l as xe } from "./index-Bkwc6r6A.js";
10
10
  const Re = {}, Ne = { class: "left-wrap" }, Se = { class: "left-bg" };
11
11
  function Ee(y, T) {
12
12
  return L(), F("div", Ne, [
@@ -1 +1 @@
1
- "use strict";const k=require("vue"),q=require("./index-DmwxzDGW.cjs"),_=require("./index-xN3pvlzo.cjs"),l=require("./request-Dl8yi2iS.cjs"),A=k.ref([]),I=k.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:A.value}]),K=(n,s,o)=>{n==="清空"&&_.ElMessageBox.confirm("是否确认清空所有日志","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var r,e;try{const a=await q.batchDeleteInsofDataApi({ids:s});((r=a==null?void 0:a.data)==null?void 0:r.code)===200?(l.ElMessage.success("清空日志成功"),o(!0)):(l.ElMessage.error(((e=a==null?void 0:a.data)==null?void 0:e.message)??"清空请求响应失败"),o(!1))}catch{l.ElMessage.error("清空操作处理失败"),o(!1)}}).catch(()=>{o(!1)})},T=async(n="login")=>{var s,o,r;try{const e=await q.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"/log",type:"system",logType:n}});if(((s=e==null?void 0:e.data)==null?void 0:s.code)===200)return(r=(o=e==null?void 0:e.data)==null?void 0:o.result)==null?void 0:r.map(a=>{var t,u,c,d,p,y,f,g,v,b,S,h,B,D,w,x,E,M;return n==="login"?{...(u=(t=a==null?void 0:a.value)==null?void 0:t.detail)==null?void 0:u.data,timeStamp:(c=a==null?void 0:a.value)==null?void 0:c.timeStamp,id:a==null?void 0:a.id,type:(p=(d=a==null?void 0:a.value)==null?void 0:d.detail)==null?void 0:p.type}:{timeStamp:(y=a==null?void 0:a.value)==null?void 0:y.timeStamp,account:(f=a==null?void 0:a.value)==null?void 0:f.account,userName:(g=a==null?void 0:a.value)==null?void 0:g.userName,module:typeof((v=a==null?void 0:a.value)==null?void 0:v.module)=="string"?(S=(b=a==null?void 0:a.value)==null?void 0:b.module)!=null&&S.startsWith("/")?(B=(h=a==null?void 0:a.value)==null?void 0:h.module)==null?void 0:B.substring(1):(D=a==null?void 0:a.value)==null?void 0:D.module:(x=(w=a==null?void 0:a.value)==null?void 0:w.module)==null?void 0:x.pageKey,id:a==null?void 0:a.id,type:(M=(E=a==null?void 0:a.value)==null?void 0:E.detail)==null?void 0:M.type}});l.ElMessage.error("获取数据响应失败")}catch(e){throw new Error("获取数据失败"+e)}},N=Object.freeze(Object.defineProperty({__proto__:null,clickButton:K,getLogTableDataAsync:T,pageData:I,tableData:A},Symbol.toStringTag,{value:"Module"}));exports.State=N;exports.clickButton=K;exports.getLogTableDataAsync=T;
1
+ "use strict";const k=require("vue"),q=require("./index-DmwxzDGW.cjs"),_=require("./index-Dom0zBom.cjs"),l=require("./request-Dl8yi2iS.cjs"),A=k.ref([]),I=k.computed(()=>[{key:"extraButton",contents:[{label:"清空",background:"#f56c6c",color:"#ffffff"}]},{key:"rowButton",contents:[]},{key:"header",contents:[{label:"账号",prop:"account",filterable:!0},{label:"姓名",prop:"userName",filterable:!0},{label:"时间",prop:"timeStamp",sortable:!0}]},{key:"tableContents",contents:A.value}]),K=(n,s,o)=>{n==="清空"&&_.ElMessageBox.confirm("是否确认清空所有日志","",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}).then(async()=>{var r,e;try{const a=await q.batchDeleteInsofDataApi({ids:s});((r=a==null?void 0:a.data)==null?void 0:r.code)===200?(l.ElMessage.success("清空日志成功"),o(!0)):(l.ElMessage.error(((e=a==null?void 0:a.data)==null?void 0:e.message)??"清空请求响应失败"),o(!1))}catch{l.ElMessage.error("清空操作处理失败"),o(!1)}}).catch(()=>{o(!1)})},T=async(n="login")=>{var s,o,r;try{const e=await q.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"/log",type:"system",logType:n}});if(((s=e==null?void 0:e.data)==null?void 0:s.code)===200)return(r=(o=e==null?void 0:e.data)==null?void 0:o.result)==null?void 0:r.map(a=>{var t,u,c,d,p,y,f,g,v,b,S,h,B,D,w,x,E,M;return n==="login"?{...(u=(t=a==null?void 0:a.value)==null?void 0:t.detail)==null?void 0:u.data,timeStamp:(c=a==null?void 0:a.value)==null?void 0:c.timeStamp,id:a==null?void 0:a.id,type:(p=(d=a==null?void 0:a.value)==null?void 0:d.detail)==null?void 0:p.type}:{timeStamp:(y=a==null?void 0:a.value)==null?void 0:y.timeStamp,account:(f=a==null?void 0:a.value)==null?void 0:f.account,userName:(g=a==null?void 0:a.value)==null?void 0:g.userName,module:typeof((v=a==null?void 0:a.value)==null?void 0:v.module)=="string"?(S=(b=a==null?void 0:a.value)==null?void 0:b.module)!=null&&S.startsWith("/")?(B=(h=a==null?void 0:a.value)==null?void 0:h.module)==null?void 0:B.substring(1):(D=a==null?void 0:a.value)==null?void 0:D.module:(x=(w=a==null?void 0:a.value)==null?void 0:w.module)==null?void 0:x.pageKey,id:a==null?void 0:a.id,type:(M=(E=a==null?void 0:a.value)==null?void 0:E.detail)==null?void 0:M.type}});l.ElMessage.error("获取数据响应失败")}catch(e){throw new Error("获取数据失败"+e)}},N=Object.freeze(Object.defineProperty({__proto__:null,clickButton:K,getLogTableDataAsync:T,pageData:I,tableData:A},Symbol.toStringTag,{value:"Module"}));exports.State=N;exports.clickButton=K;exports.getLogTableDataAsync=T;
@@ -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 { W as m } from "./index-CUL-lmb5.js";
3
- import { g as d, c as _ } from "./index-sl2ZbrIv.js";
2
+ import { W as m } from "./index-DCzeVZ4J.js";
3
+ import { g as d, c as _ } from "./index-CZp5_GWt.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {
@@ -1,6 +1,6 @@
1
1
  import { watch as be, ref as w, computed as we } from "vue";
2
- import { p as E, k as B, w as Le } from "./index-5zBx2xab.js";
3
- import { s as Te, b as C, p as V, u as Re, r as De, c as A, C as N, E as Ee, j as Be, ae as Ae, af as Pe, ag as Ue, ah as xe, ai as Se, aj as ke } from "./index-BK-oz1IK.js";
2
+ import { p as E, k as B, w as Le } from "./index-CmJoUVma.js";
3
+ import { s as Te, b as C, p as V, u as Re, r as De, c as A, C as N, E as Ee, j as Be, ae as Ae, af as Pe, ag as Ue, ah as xe, ai as Se, aj as ke } from "./index-D6RGTlCo.js";
4
4
  import { s as z } from "./request-XJsZ4h2T.js";
5
5
  const qe = C(V), { systemUrl: f } = Te(qe);
6
6
  let P = f.value === "" || !f.value ? "http://222.92.178.198:63002" : f.value;
@@ -1,4 +1,4 @@
1
- import { s as h, b as l, p as w, r as F } from "./index-BK-oz1IK.js";
1
+ import { s as h, b as l, p as w, r as F } from "./index-D6RGTlCo.js";
2
2
  import { s as f } from "./request-XJsZ4h2T.js";
3
3
  import { watch as p } from "vue";
4
4
  const P = l(w), { systemUrl: s, extraUrl: r } = h(P);
@@ -1,12 +1,12 @@
1
1
  import { defineComponent as J, ref as u, onBeforeUnmount as le, createElementBlock as L, openBlock as F, createElementVNode as o, renderSlot as te, computed as z, onMounted as se, onUnmounted as ne, reactive as re, resolveComponent as g, Fragment as ie, createVNode as a, withCtx as l, toDisplayString as H, unref as h, createBlock as de, createCommentVNode as ce } from "vue";
2
- import { b as ue, s as pe, e as fe, t as ve } from "./index-BK-oz1IK.js";
3
- import { u as me, t as w } from "./index-D1U0qzcp.js";
2
+ import { b as ue, s as pe, e as fe, t as ve } from "./index-D6RGTlCo.js";
3
+ import { u as me, t as w } from "./index-Dr4B59gA.js";
4
4
  import { _ as x } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
5
5
  import { s as _e } from "./index-11kpzK0A.js";
6
- import { u as ge } from "./index-9Fw7ND1N.js";
6
+ import { u as ge } from "./index-D4df8WCz.js";
7
7
  import { E as K } from "./request-XJsZ4h2T.js";
8
8
  import { _ as Q } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
- import { c as ye } from "./clone-BDsG8VVj.js";
9
+ import { c as ye } from "./clone-CHuh4brN.js";
10
10
  const be = { class: "account-wrap" }, we = { class: "video-wrap" }, Re = /* @__PURE__ */ J({
11
11
  __name: "index",
12
12
  emits: ["startVerify", "completeVerify", "verifyResult"],
@@ -8522,7 +8522,7 @@ const X0 = "user_unique_id", Vu = {
8522
8522
  structureExist: ti.value,
8523
8523
  allMenuContents: (p = (u = (l = e == null ? void 0 : e.data) == null ? void 0 : l.result) == null ? void 0 : u.filter((d) => {
8524
8524
  var h, f;
8525
- return ((f = d == null ? void 0 : d.object_name) == null ? void 0 : f[((h = d == null ? void 0 : d.object_name) == null ? void 0 : h.length) - 1]) !== "/" && (d == null ? void 0 : d.is_show);
8525
+ return ((f = d == null ? void 0 : d.object_name) == null ? void 0 : f[((h = d == null ? void 0 : d.object_name) == null ? void 0 : h.length) - 1]) !== "/";
8526
8526
  })) == null ? void 0 : p.sort((d, h) => (d == null ? void 0 : d.object_id) - (h == null ? void 0 : h.object_id))
8527
8527
  };
8528
8528
  }, oh = lt(xe), { systemUrl: Et } = Zt(oh);
@@ -1 +1 @@
1
- "use strict";const e=require("vue"),C=require("./request-Dl8yi2iS.cjs"),_=require("./index-xN3pvlzo.cjs"),N=require("./index-DmwxzDGW.cjs"),M=require("./JSEncrypt-IYbV4kRj.cjs"),Q=require("./index-BMofVGXk.cjs"),X=require("./index-BiwYTq-N.cjs"),T=require("./index-C4qnDJ7y.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new M.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new M.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const V=_.useLoginState(_.pinia),{loginUserInfo:p,cryptoInfo:x}=_.storeToRefs(V),ee=_.useMenuState(_.pinia),{activeMenuPath:A}=_.storeToRefs(ee),L=e.ref(0),K=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},q=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=e.ref([{label:"签字版",icon:C.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:C.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:C.upload_filled_default,type:"buttonUpload",disabled:!1}]),P=e.ref(!1),$=e.ref(!1),z=e.ref(!1),O=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(z.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=D.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?D.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:O.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},W=()=>{E.dialogShow=!1},j=async r=>{var t,o,l,u,a,f,b,m,y;const s=await N.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};V.setLoginUserInfo(d)}},H=async(r,s)=>{var o,l,u;const t=_.cloneDeep(r);t==null||delete t.id;try{const a=await N.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(W(),C.ElMessage.success("修改成功"),await j((u=p.value)==null?void 0:u.id),await V.setLogRecordAsync({type:s,data:r},A.value))}catch{C.ElMessage.error("修改响应失败")}finally{q.value=!1,P.value=!1,$.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};P.value=r==="avatarUrl",$.value=r==="signature",await H(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),J=e.ref([]),G=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):Q.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=G.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=K.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{G.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),q.value=!0,await H(t,s)},F=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;J.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=F())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=F())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:P,beforeSignDestroy:W,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:q,refreshLoginUserInfoAsync:j,rowContents:K,signPadInfo:E,signTypes:O,signatureLoading:$,submitImageAsync:se,tabKey:L,tabsContents:J,tempSignTypes:D,uploadDisabled:z},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=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(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await _.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await T.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){C.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){C.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(X.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=R._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await T.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){C.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(T.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=R._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=L;
1
+ "use strict";const e=require("vue"),C=require("./request-Dl8yi2iS.cjs"),_=require("./index-Dom0zBom.cjs"),N=require("./index-DmwxzDGW.cjs"),M=require("./JSEncrypt-IYbV4kRj.cjs"),Q=require("./index-BTEY8ajW.cjs"),X=require("./index-BkZKlNn0.cjs"),T=require("./index-Cf6R7l0z.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new M.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new M.JSEncrypt;return t.setPrivateKey(s),t.decrypt(r)||""}const V=_.useLoginState(_.pinia),{loginUserInfo:p,cryptoInfo:x}=_.storeToRefs(V),ee=_.useMenuState(_.pinia),{activeMenuPath:A}=_.storeToRefs(ee),L=e.ref(0),K=e.computed(()=>{var r,s,t,o,l,u,a,f,b,m,y;return[{label:"",name:"账号",prop:"账号",value:((r=p.value)==null?void 0:r.account)||(((s=p.value)==null?void 0:s.账号)??"未知")},{label:"",name:"角色名称",prop:"角色名称",value:((t=p.value)==null?void 0:t.layer)==="superAdmin"?"超级管理员":(o=p.value)==null?void 0:o.角色名称},{label:"",name:"部门名称",prop:"部门名称",value:((l=p.value)==null?void 0:l.部门名称)??"未知"},{label:"",name:"状态",prop:"状态",value:((u=p.value)==null?void 0:u.layer)==="superAdmin"?"启用":((a=p.value)==null?void 0:a.状态)??"未知"},{label:"",prop:"头像",isFormColHidden:!0,value:((f=p.value)==null?void 0:f.layer)==="superAdmin"?"启用":((b=p.value)==null?void 0:b.状态)??"未知"},{label:"",prop:"签名",isFormColHidden:!0,value:((m=p.value)==null?void 0:m.layer)==="superAdmin"?"启用":((y=p.value)==null?void 0:y.状态)??"未知"}]}),te=()=>{},q=e.ref(!1),E=e.reactive({dialogTitle:"电子签名",dialogWidth:"30",dialogShow:!1,url:""}),D=e.ref([{label:"签字版",icon:C.edit_pen_default,type:"button",disabled:!1},{label:"电子签名",icon:C.edit_default,type:"button",disabled:!1},{label:"上传手写签名",icon:C.upload_filled_default,type:"buttonUpload",disabled:!1}]),P=e.ref(!1),$=e.ref(!1),z=e.ref(!1),O=e.computed(()=>{var o,l,u;const r=sessionStorage.getItem("authority"),s=JSON.parse(r||""),t=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value;return Array.isArray(s)?(z.value=!(s!=null&&s.includes(`${t}/上传头像`)),(u=D.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?D.value:[]}),ae=e.computed(()=>[{key:"signConfig",contents:E},{key:"signTypeList",contents:O.value}]),re=r=>{E.dialogShow=r.label==="电子签名"},W=()=>{E.dialogShow=!1},j=async r=>{var t,o,l,u,a,f,b,m,y;const s=await N.getInsofDataApi({id:r});if(((t=s==null?void 0:s.data)==null?void 0:t.code)===200&&s.data.result&&Array.isArray(s.data.result)&&s.data.result.length>0){const d={...(u=(l=(o=s.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.tableData,id:(f=(a=s.data.result)==null?void 0:a[0])==null?void 0:f.id,layer:(y=(m=(b=s.data.result)==null?void 0:b[0])==null?void 0:m.key)==null?void 0:y.layer};V.setLoginUserInfo(d)}},H=async(r,s)=>{var o,l,u;const t=_.cloneDeep(r);t==null||delete t.id;try{const a=await N.updateInsofDataApi({id:(o=p.value)==null?void 0:o.id,value:{tableData:t}});((l=a==null?void 0:a.data)==null?void 0:l.code)===200&&(W(),C.ElMessage.success("修改成功"),await j((u=p.value)==null?void 0:u.id),await V.setLogRecordAsync({type:s,data:r},A.value))}catch{C.ElMessage.error("修改响应失败")}finally{q.value=!1,P.value=!1,$.value=!1}},se=async(r,s)=>{var l;const t=r==="avatarUrl"?"头像":"签名",o={...p.value,status:((l=p.value)==null?void 0:l.status)??"启用",[t]:s};P.value=r==="avatarUrl",$.value=r==="signature",await H(o,"图片修改")},I=e.reactive({baseCols:[],otherCols:[]}),J=e.ref([]),G=e.ref(),ne=(r,s,t)=>{var u,a,f,b,m,y;let o;const l=s;((a=(u=p.value)==null?void 0:u.layer)==null?void 0:a.toUpperCase())!=="SUPERADMIN"?o=(f=p.value)!=null&&f.password?Z((b=p.value)==null?void 0:b.password,(m=x==null?void 0:x.value)==null?void 0:m.privateKey):Q.resetPassword:o=(y=p.value)==null?void 0:y.password,o===l?t():t(new Error("输入的密码与原密码不匹配,请重新输入"))},oe=(r,s,t)=>{s?t():t(new Error("请输入密码"))},le=(r,s,t)=>{var o;s!==((o=G.value)==null?void 0:o.newtPass)?t(new Error("两次输入的密码不一致")):t()},ue=async()=>{var s,t,o,l,u,a,f,b,m,y;const r=await N.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),type:"structure",pageKey:"系统管理/用户管理"}});if(((s=r==null?void 0:r.data)==null?void 0:s.code)===200&&r.data.result&&((t=r.data.result)==null?void 0:t.length)>0){const d=(f=(a=(u=(l=(o=r.data.result)==null?void 0:o[0])==null?void 0:l.value)==null?void 0:u.pageData)==null?void 0:a.compData)==null?void 0:f.find(n=>(n==null?void 0:n.key)==="header"),w=(b=K.value)==null?void 0:b.map(n=>n==null?void 0:n.prop);I.baseCols=d&&((m=d.contents)==null?void 0:m.map(n=>({...n,isFormColHidden:(w==null?void 0:w.includes(n==null?void 0:n.prop))||(n==null?void 0:n.label)==="操作"})));const S=(y=d.contents)==null?void 0:y.find(n=>(n==null?void 0:n.prop)==="password"),i=[{...S,label:"当前密码",prop:"currentPass",validator:ne},{...S,label:"新密码",prop:"newtPass",validator:oe},{...S,label:"确认密码",prop:"confirmNewPass",validator:le}];I.otherCols=i,de(p.value)}},ie=r=>{G.value=r},ce=async({content:r,buttonName:s})=>{var o,l,u,a,f;let t;s==="确定"&&(t={...p.value,status:((o=p.value)==null?void 0:o.status)??"启用",password:((u=(l=p.value)==null?void 0:l.layer)==null?void 0:u.toUpperCase())==="SUPERADMIN"?r==null?void 0:r.confirmNewPass:Y(r==null?void 0:r.confirmNewPass,(a=x.value)==null?void 0:a.publicKey)}),s==="保存基本信息"&&(t={...p.value,...r,status:((f=p.value)==null?void 0:f.status)??"启用"}),q.value=!0,await H(t,s)},F=()=>{var o,l;const r={base:[{label:"保存基本信息"}],other:[{label:"重置",background:"#b7b8b8"},{label:"确定"}]},s=sessionStorage.getItem("authority"),t=JSON.parse(s||"");if(Array.isArray(t)){const u=(o=A.value)!=null&&o.startsWith("/")?(l=A.value)==null?void 0:l.substring(1):A.value,a=t!=null&&t.includes(`${u}/基本信息`)?r==null?void 0:r.base:[],f=t!=null&&t.includes(`${u}/修改密码`)?r==null?void 0:r.other:[];return{base:a,other:f}}else return typeof t=="string"&&(t==null?void 0:t.toUpperCase())==="SUPERADMIN"?r:null},de=r=>{var s,t,o,l,u;J.value=[{value:"基础信息",label:"基础信息",children:[{type:"form",content:{rowContents:(s=I.baseCols)==null?void 0:s.map(a=>({...a,width:2,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,prop:a==null?void 0:a.prop,contents:a==null?void 0:a.options,value:r[a==null?void 0:a.prop]})),formRules:{userName:[{required:!0,message:"输入不能为空",trigger:"blur"}],birthDay:[{required:!0,message:"输入不能为空",trigger:"blur"}],phone:[{required:!0,message:"输入不能为空",trigger:"blur"}]},buttonValue:(t=F())==null?void 0:t.base,isEnableWrap:!1,isButtonRow:!1},value:""}]},{value:"修改密码",label:"修改密码",children:[{type:"form",content:{rowContents:(o=I.otherCols)==null?void 0:o.map(a=>({...a,width:1,type:a==null?void 0:a.formType,name:a==null?void 0:a.prop,contents:a==null?void 0:a.options})),formRules:(l=I.otherCols)==null?void 0:l.reduce((a,f)=>(a[f.prop]=[{required:!0,message:"输入有误",trigger:"change"},{validator:(b,m,y)=>f.validator(b,m,y),trigger:"blur"}],a),{}),buttonValue:(u=F())==null?void 0:u.other,isEnableWrap:!1},value:""}]}]},pe=Object.freeze(Object.defineProperty({__proto__:null,avatarLoading:P,beforeSignDestroy:W,changeFormTrigger:ie,clickFormButton:te,clickSignButton:re,clickTabButton:ce,getUserTableHeadersAsync:ue,itemData:ae,loading:q,refreshLoginUserInfoAsync:j,rowContents:K,signPadInfo:E,signTypes:O,signatureLoading:$,submitImageAsync:se,tabKey:L,tabsContents:J,tempSignTypes:D,uploadDisabled:z},Symbol.toStringTag,{value:"Module"})),fe={class:"avatar-model-wrap"},ge={key:0},ve=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(r,{emit:s}){const t=r,o=s,l=e.computed(()=>"http://222.92.178.198:62001"),u=e.ref(""),a=e.ref(""),f=e.ref();e.watch(()=>{var d;return(d=t.userInfo)==null?void 0:d.头像},d=>{a.value=d?l.value+"/"+d:""},{immediate:!0});const b=async()=>{if(!(t!=null&&t.disabled))try{const d=await _.platformDownloadFile({url:u.value});if(d.status!==200)throw new Error(`HTTP error! status: ${d.status}`);const w=new Blob([d.data],{type:d.headers["content-type"]});f.value=w}catch(d){throw new Error(d)}},m=async d=>{var w,S,i,n,h;try{const g=await T.uploadFile(d);((w=g==null?void 0:g.data)==null?void 0:w.code)===200&&(a.value=l.value+"/"+((i=(S=g.data)==null?void 0:S.result)==null?void 0:i.url),u.value=(h=(n=g.data)==null?void 0:n.result)==null?void 0:h.url,o("submitImage",u.value))}catch(g){C.ElMessage.error(g)}},y=async()=>{try{if(!a.value)return}catch(d){C.ElMessage.error(d)}};return(d,w)=>{var S,i;return e.openBlock(),e.createElementBlock("div",fe,[e.createVNode(X.Avatar,{avatarUrl:a.value??"",avatarBlob:f.value,size:r.size,onClickAvatar:b,onSubmitImage:m,onDeleteImage:y,clickStop:t==null?void 0:t.clickStop},{avatarDefault:e.withCtx(()=>{var n,h,g,v;return[e.createTextVNode(e.toDisplayString(((h=(n=r.userInfo)==null?void 0:n.account)==null?void 0:h.charAt(0))||((v=(g=r.userInfo)==null?void 0:g.姓名)==null?void 0:v.charAt(0))||""),1)]}),_:1},8,["avatarUrl","avatarBlob","size","clickStop"]),r.disabled?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(((S=r.userInfo)==null?void 0:S.account)||((i=r.userInfo)==null?void 0:i.账号)||"未知"),1))])}}}),ye=R._export_sfc(ve,[["__scopeId","data-v-1a1f2575"]]),be=e.defineComponent({__name:"index",props:{itemData:{type:Array,default:()=>[]},childItemData:{type:Array,default:()=>[]},userInfo:{type:Object,default:{}}},emits:["clickSignButton","clickSubmitSign","beforeDestroy"],setup(r,{emit:s}){const t=r,o=e.ref({}),l=e.ref([]),u=s,a=i=>{o.value.dialogShow=(i==null?void 0:i.label)==="电子签名",u("clickSignButton",i)},f=()=>{o.value.dialogShow=!1,u("beforeDestroy")},b=e.computed(()=>"http://222.92.178.198:62001"),m=i=>{var c;const n=i.split(","),h=(c=n==null?void 0:n[0])==null?void 0:c.match(/:(.*?);/)[1],g=atob(n[1]);let v=g.length;const k=new Uint8Array(v);for(;v--;)k[v]=g.charCodeAt(v);return new Blob([k],{type:h})},y=async i=>{var n,h,g;try{const v=await T.uploadFile(i);((n=v==null?void 0:v.data)==null?void 0:n.code)===200&&u("clickSubmitSign",(g=(h=v.data)==null?void 0:h.result)==null?void 0:g.url)}catch(v){C.ElMessage.error(v)}},d=e.ref(""),w=i=>{d.value=i,o.value.dialogShow=!1;const n=new FormData,h=m(i);n.append("file",h,"image.png"),y(n)},S=i=>{const n=new FormData;n.append("file",i==null?void 0:i.file),y(n)};return e.watch(()=>t==null?void 0:t.itemData,i=>{var h,g,v,k;d.value="",(h=o.value)!=null&&h.dialogShow&&(o.value.dialogShow=!1);const n=(g=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:g.contents;n&&Object.keys(n).forEach(c=>{(n[c]===void 0||n[c]===null||n[c]==="")&&delete n[c]}),o.value=(v=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signConfig"))==null?void 0:v.contents,l.value=(k=i==null?void 0:i.find(c=>(c==null?void 0:c.key)==="signTypeList"))==null?void 0:k.contents},{immediate:!0}),(i,n)=>{const h=e.resolveComponent("el-empty"),g=e.resolveComponent("el-image"),v=e.resolveComponent("el-button"),k=e.resolveComponent("el-upload");return e.openBlock(),e.createBlock(T.Signature,{signPadInfo:o.value,onBeforeDestroy:f,onClickSubmitSign:w},{signatureRender:e.withCtx(()=>{var c,B;return[e.createElementVNode("div",{class:"signature-render",style:e.normalizeStyle({width:`${(c=o.value)==null?void 0:c.signPadWidth}%`})},[e.createVNode(g,{src:d.value?d.value:b.value+"/"+((B=r.userInfo)==null?void 0:B.签名),fit:"contain"},{error:e.withCtx(()=>[e.createVNode(h,{"image-size":60,description:" "},{image:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:"emptyImg"})]),_:1})]),_:1},8,["src"])],4)]}),signatureTypes:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,c=>{var B;return e.openBlock(),e.createElementBlock("div",{key:c.label,class:"signature-button"},[(B=c.label)!=null&&B.includes("上传")?(e.openBlock(),e.createBlock(k,{key:0,ref_for:!0,ref:"uploadRef","http-request":S,"show-file-list":!1},{trigger:e.withCtx(()=>[e.createVNode(v,{disabled:c.disabled,id:"themeButton"},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled"])]),_:2},1536)):(e.openBlock(),e.createBlock(v,{key:1,id:"themeButton",disabled:c.disabled,onClick:he=>a(c)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(c.label),1)]),icon:e.withCtx(()=>[e.createVNode(U.SvgIcon,{name:c.icon??""},null,8,["name"])]),_:2},1032,["disabled","onClick"]))])}),128))]),_:1},8,["signPadInfo"])}}}),me=R._export_sfc(be,[["__scopeId","data-v-ce5a2314"]]);exports.State=pe;exports.ssAvatar=ye;exports.ssSignature=me;exports.tabKey=L;