ss-component-new 1.3.283 → 1.3.285

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 (158) hide show
  1. package/dist/{MTLLoader-CZBprXNP.cjs → MTLLoader-CdxYhBAE.cjs} +1 -1
  2. package/dist/{MTLLoader-ByvO3xpX.js → MTLLoader-RsaYZtZ_.js} +1 -1
  3. package/dist/{OrbitControls-pu_IAkAV.cjs → OrbitControls-BNTHZN2P.cjs} +1 -1
  4. package/dist/{OrbitControls-gFOfDXco.js → OrbitControls-D4mDZcDl.js} +1 -1
  5. package/dist/{URDFLoader-CJmlsLyG.cjs → URDFLoader-B56WRl4z.cjs} +1 -1
  6. package/dist/{URDFLoader-DItN2Cwe.js → URDFLoader-BPNyxykV.js} +2 -2
  7. package/dist/{animationData-DCnGuqAH.js → animationData-D4Q3av_t.js} +3 -3
  8. package/dist/animationData-DiyxzUT8.cjs +1 -0
  9. package/dist/array-CpxgPs3a.cjs +1 -0
  10. package/dist/{array-B8KzZ5ux.js → array-DuZDl88A.js} +19 -18
  11. package/dist/clone-BrrxU6_J.js +8 -0
  12. package/dist/clone-Dn6v3xp6.cjs +1 -0
  13. package/dist/dayjs.min-DRU3LNcy.cjs +1 -0
  14. package/dist/dayjs.min-Dx_LN6Bu.js +366 -0
  15. package/dist/{eleIcon-BSJV_1ZM.js → eleIcon-BLNEA11T.js} +1 -1
  16. package/dist/{iconfont-DAGWcDwE.js → iconfont-DkmQztG1.js} +2 -2
  17. package/dist/{iconfont-Cgm0Wjk4.cjs → iconfont-Dq-DsQsx.cjs} +1 -1
  18. package/dist/icons/svg/softCancel.svg +1 -0
  19. package/dist/icons/svg/softConfirm.svg +1 -0
  20. package/dist/icons/svg/softRemove.svg +1 -0
  21. package/dist/index--6MSMD-8.cjs +1 -0
  22. package/dist/{index-Du7JJqdx.js → index--PidpjSy.js} +4 -3
  23. package/dist/index--ZVD8xbU.js +83 -0
  24. package/dist/{index-CDlw-J9H.js → index-8CZJn10Y.js} +2 -2
  25. package/dist/index-9I9R7yqt.cjs +15 -0
  26. package/dist/index-B6b9Lr8M.js +623 -0
  27. package/dist/{index-C0s4Fa0R.js → index-BEGr3hBb.js} +32 -31
  28. package/dist/index-BET-Jwi1.cjs +1 -0
  29. package/dist/index-BIV-s4QY.js +29 -0
  30. package/dist/{index-CHH8aozZ.js → index-BIkySu-W.js} +2 -2
  31. package/dist/index-BOHy6XZd.cjs +1 -0
  32. package/dist/{index-Bj-ss9u6.js → index-BcwDR57s.js} +2 -2
  33. package/dist/index-BdyYMxx4.cjs +1 -0
  34. package/dist/{index-DB9zlG2m.cjs → index-BeuuWlVO.cjs} +1 -1
  35. package/dist/index-BjZpJRk2.cjs +1 -0
  36. package/dist/index-BlAISTfa.cjs +1 -0
  37. package/dist/index-Bs0qreV1.cjs +1 -0
  38. package/dist/{index-_uOv3SVz.js → index-BsDMamej.js} +1 -1
  39. package/dist/{index-BkBMQfsT.js → index-C1dVsNLG.js} +1 -1
  40. package/dist/{index-CULs51Vg.js → index-C5bOtOIk.js} +4 -4
  41. package/dist/{index-UqJOpNhM.js → index-C7-Idrnv.js} +2 -2
  42. package/dist/index-C81Qb0f2.js +209 -0
  43. package/dist/index-CAcP6bx_.cjs +1 -0
  44. package/dist/index-CPFAai4T.cjs +2 -0
  45. package/dist/{index-K_IiVShj.js → index-CQS-NY65.js} +25 -24
  46. package/dist/index-CQcXApCn.cjs +1 -0
  47. package/dist/index-CUJ_cdPT.cjs +1 -0
  48. package/dist/{index-BjEIX08g.js → index-CV8QlXGI.js} +3 -3
  49. package/dist/index-CXgZFuTt.cjs +1 -0
  50. package/dist/{index-BZ_R-Jcp.js → index-CY_HG5Gj.js} +4 -4
  51. package/dist/index-Ca-FxCDv.cjs +1 -0
  52. package/dist/index-Cbb4eaBp.js +343 -0
  53. package/dist/{index-D02CK1_5.js → index-CdKgZ2A_.js} +22 -21
  54. package/dist/{index-KrjXZO_d.cjs → index-CdrBTtcu.cjs} +1 -1
  55. package/dist/{index-CPmO67dF.js → index-Cg7Mpfpj.js} +13 -13
  56. package/dist/{index-BZwKLYgT.cjs → index-CuHxF23O.cjs} +1 -1
  57. package/dist/{index-pCW3eQ8e.js → index-D-kGKttu.js} +15 -14
  58. package/dist/{index-Dr9e3mBT.js → index-D21dwfqO.js} +24 -24
  59. package/dist/index-D3qNUVY7.cjs +1 -0
  60. package/dist/{index-77VURUPj.cjs → index-DAwnZFmG.cjs} +1 -1
  61. package/dist/{index-Cy1XXdCZ.cjs → index-DLN6R2tJ.cjs} +1 -1
  62. package/dist/index-DTiolIgS.cjs +7 -0
  63. package/dist/{index-C8kDBsVW.js → index-DTsHI5xQ.js} +2 -2
  64. package/dist/index-DXWN-UJr.cjs +1 -0
  65. package/dist/{index-Cf5PK2bA.js → index-DXjgumn5.js} +5 -5
  66. package/dist/index-Df8bxCwR.js +665 -0
  67. package/dist/{index-B_rDLuPm.js → index-DfAmIlWW.js} +3355 -3351
  68. package/dist/{index-m6ZHCUtH.cjs → index-DiPWs_9n.cjs} +1 -1
  69. package/dist/{index-C2PJu8mA.js → index-DoEwWbTL.js} +1421 -1409
  70. package/dist/index-DsNHJYr-.cjs +1 -0
  71. package/dist/index-DtYkQPnf.cjs +1 -0
  72. package/dist/index-Dx0DeTSC.js +9370 -0
  73. package/dist/{index-B_CkJtn2.js → index-DxhNwr8X.js} +1 -1
  74. package/dist/{index-BusM6WrM.js → index-H_NM-ZF-.js} +2 -2
  75. package/dist/{index-D9SznbhK.js → index-JG59WTIq.js} +1 -1
  76. package/dist/index-QG4F5kTH.js +2755 -0
  77. package/dist/{index-CW0nTu7g.js → index-RSaGZhb3.js} +4 -4
  78. package/dist/index-W8p89C7t.cjs +1 -0
  79. package/dist/index-WTaP_KDd.cjs +1 -0
  80. package/dist/index-bPKGQ9bV.cjs +25 -0
  81. package/dist/{index-DpfXqgm2.js → index-cFt1QbzL.js} +33 -32
  82. package/dist/{index-B5tAsf_R.js → index-gFBtUdzh.js} +15 -14
  83. package/dist/{index-DVrEV4RS.cjs → index-mHmXlK2R.cjs} +1 -1
  84. package/dist/{index-wHrfokYf.cjs → index-qIpeOak9.cjs} +1 -1
  85. package/dist/index-vbxWL2yo.cjs +1 -0
  86. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-mXh6sJo_.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js} +130 -129
  87. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-GxCgBV8k.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs} +327 -327
  88. package/dist/isNil-CjWwlQS3.js +6 -0
  89. package/dist/isNil-x28vo2CT.cjs +1 -0
  90. package/dist/{isString-BLBZkTvd.js → isString-BA9CJNsy.js} +1 -1
  91. package/dist/{main-DECFHBC8.cjs → main-Avmwy4Fu.cjs} +2 -2
  92. package/dist/{main-Dglgquls.js → main-Qn9bfEMh.js} +4 -4
  93. package/dist/menu-CtG1loFf.js +5637 -0
  94. package/dist/menu-Hdw0L-Y2.cjs +12 -0
  95. package/dist/{menuIndex-6Fi3NW3Q.js → menuIndex-DmS5cMwB.js} +44 -42
  96. package/dist/menuIndex-DqY0uteo.cjs +1 -0
  97. package/dist/{request-B3-w_S8Z.js → request-CoGtW0Ux.js} +60 -60
  98. package/dist/ss-component.cjs +1 -1
  99. package/dist/ss-component.css +1 -1
  100. package/dist/ss-component.js +19 -18
  101. package/dist/ss-component2.cjs +1 -1
  102. package/dist/ss-component2.js +13 -13
  103. package/dist/threeModel-Dr6PqFqA.cjs +1 -0
  104. package/dist/{threeModel-BpjWJsnX.js → threeModel-L66n6sW7.js} +5 -5
  105. package/dist/{threePreview-DeEknsco.js → threePreview-BwElOyqr.js} +5 -5
  106. package/dist/threePreview-CWRtmSvh.cjs +1 -0
  107. package/dist/{threeSceneView-D5z_ADmg.js → threeSceneView-BEwen70K.js} +17 -15
  108. package/dist/{threeSceneView-C_ianMnn.cjs → threeSceneView-BpPiRRPf.cjs} +1 -1
  109. package/dist/{threeSceneViewForCPMPIP-CMDrp7Du.js → threeSceneViewForCPMPIP-BIiU_5px.js} +9 -9
  110. package/dist/{threeSceneViewForCPMPIP-BicBhum7.cjs → threeSceneViewForCPMPIP-DpwlxGoP.cjs} +1 -1
  111. package/dist/{threeTrackPathView-DDKn5Z5k.js → threeTrackPathView-BckFDqUs.js} +6 -6
  112. package/dist/threeTrackPathView-CamXHHnK.cjs +1 -0
  113. package/dist/threeViewerHost-DLLTNlTR.cjs +1 -0
  114. package/dist/{threeViewerHost-BgN5No1S.js → threeViewerHost-DQz7pHM9.js} +3 -3
  115. package/dist/{urdfTree-DYLobS3F.js → urdfTree-B6GL3kgV.js} +1 -1
  116. package/dist/{urdfTree-ghaTIId6.cjs → urdfTree-DDQw6tEb.cjs} +1 -1
  117. package/dist/{workpieceTreePanel-BAu_7YB6.cjs → workpieceTreePanel-B6AVU13A.cjs} +1 -1
  118. package/dist/{workpieceTreePanel-PUhlo13O.js → workpieceTreePanel-BvO881iH.js} +4 -4
  119. package/package.json +1 -1
  120. package/public/icons/svg/softCancel.svg +1 -0
  121. package/public/icons/svg/softConfirm.svg +1 -0
  122. package/public/icons/svg/softRemove.svg +1 -0
  123. package/dist/animationData-CIM8_iu6.cjs +0 -1
  124. package/dist/array-DlgywTCo.cjs +0 -1
  125. package/dist/clone-BjZYQq33.cjs +0 -1
  126. package/dist/clone-XNy-gcwO.js +0 -8
  127. package/dist/index-5zdMes-B.cjs +0 -1
  128. package/dist/index-7aU_bwDz.js +0 -8959
  129. package/dist/index-9Q1_s4bE.cjs +0 -1
  130. package/dist/index-B3yoiLPJ.cjs +0 -1
  131. package/dist/index-BAGLBch9.cjs +0 -1
  132. package/dist/index-BB392QRk.js +0 -672
  133. package/dist/index-BBxu8MeT.js +0 -89
  134. package/dist/index-BHLuFtij.cjs +0 -1
  135. package/dist/index-BIDFrngN.cjs +0 -1
  136. package/dist/index-BM4Blp7z.cjs +0 -1
  137. package/dist/index-BUxJL5W1.cjs +0 -1
  138. package/dist/index-BmTzLFkx.js +0 -630
  139. package/dist/index-BuAZTecX.cjs +0 -1
  140. package/dist/index-C-6jbR4D.cjs +0 -1
  141. package/dist/index-C6dVScaZ.js +0 -349
  142. package/dist/index-Cm-ohQUX.cjs +0 -1
  143. package/dist/index-D0k42JA4.cjs +0 -15
  144. package/dist/index-D4QFcxJ-.js +0 -9196
  145. package/dist/index-DGULgN2U.cjs +0 -1
  146. package/dist/index-DRBuICJi.cjs +0 -2
  147. package/dist/index-DeAnBGqU.cjs +0 -18
  148. package/dist/index-Dtq1IcgW.cjs +0 -1
  149. package/dist/index-RNu0IAS4.cjs +0 -1
  150. package/dist/index-RpaKc4Lu.cjs +0 -25
  151. package/dist/index-ZGUlK0ro.cjs +0 -1
  152. package/dist/index-ity_8Fmx.cjs +0 -1
  153. package/dist/index-vUaB-HgD.cjs +0 -1
  154. package/dist/menuIndex-SRHovjCX.cjs +0 -1
  155. package/dist/threeModel-BAzu1aRu.cjs +0 -1
  156. package/dist/threePreview-5dyC70n0.cjs +0 -1
  157. package/dist/threeTrackPathView-DHLZAc5E.cjs +0 -1
  158. package/dist/threeViewerHost-B_4KXwsO.cjs +0 -1
@@ -1,17 +1,18 @@
1
- import { defineComponent as te, ref as p, computed as $e, resolveComponent as d, createElementBlock as T, openBlock as y, createElementVNode as a, createVNode as e, withCtx as o, toDisplayString as F, createBlock as _e, reactive as Be, Fragment as fe, renderList as Ie, unref as c, createTextVNode as g, onMounted as rt, withModifiers as nt, createCommentVNode as M } from "vue";
2
- import { u as it, g as dt } from "./request-B3-w_S8Z.js";
3
- import { u as Re, o as ct, s as pe, f as me } from "./index-C6dVScaZ.js";
4
- import { C as Ae, D as ut, u as pt, p as mt } from "./index-7aU_bwDz.js";
1
+ import { defineComponent as te, ref as p, computed as $e, resolveComponent as d, createElementBlock as T, openBlock as y, createElementVNode as a, createVNode as e, withCtx as o, toDisplayString as F, createBlock as _e, reactive as Be, Fragment as fe, renderList as Ie, unref as c, createTextVNode as g, onMounted as rt, withModifiers as nt, createCommentVNode as q } from "vue";
2
+ import { u as it, g as dt } from "./request-CoGtW0Ux.js";
3
+ import { u as Re, o as ct, s as pe, f as me } from "./index-Cbb4eaBp.js";
4
+ import "./dayjs.min-Dx_LN6Bu.js";
5
+ import { q as Ae, r as ut, u as pt, p as mt } from "./menu-CtG1loFf.js";
5
6
  import { s as ee } from "./index-CnjGqJZS.js";
6
- import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-mXh6sJo_.js";
7
- import "./index-B_rDLuPm.js";
7
+ import "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js";
8
+ import "./index-DfAmIlWW.js";
8
9
  import "./index-BHtNKL1L.js";
9
10
  import { _ as S } from "./index.vue_vue_type_script_setup_true_lang-DRzriV-s.js";
10
- import "./index-CW0nTu7g.js";
11
- import "./index-K_IiVShj.js";
12
- import "./index-CPmO67dF.js";
11
+ import "./index-RSaGZhb3.js";
12
+ import "./index-CQS-NY65.js";
13
+ import "./index-Cg7Mpfpj.js";
13
14
  import { _ as ae } from "./_plugin-vue_export-helper-CHgC5LLL.js";
14
- import { c as ve } from "./clone-XNy-gcwO.js";
15
+ import { c as ve } from "./clone-BrrxU6_J.js";
15
16
  const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-content-wrapper" }, gt = { class: "node-label-wrapper" }, yt = { class: "node-label" }, ht = /* @__PURE__ */ te({
16
17
  __name: "index",
17
18
  props: {
@@ -49,7 +50,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
49
50
  "default-checked-keys": m.value,
50
51
  height: "100%"
51
52
  }, {
52
- default: o(({ node: v, data: q }) => [
53
+ default: o(({ node: v, data: M }) => [
53
54
  a("div", vt, [
54
55
  a("div", gt, [
55
56
  a("div", yt, F(v.label), 1)
@@ -157,7 +158,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
157
158
  m.value = ve(D), C();
158
159
  }, v = () => {
159
160
  m.value = E(), f();
160
- }, q = async () => {
161
+ }, M = async () => {
161
162
  var D, k;
162
163
  await ((k = (D = h.value) == null ? void 0 : D.validate) == null ? void 0 : k.call(D)), $("confirm", ve(m.value)), v();
163
164
  };
@@ -248,7 +249,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
248
249
  e(S, {
249
250
  class: "confirm",
250
251
  emptyColor: !0,
251
- onClickTrigger: q,
252
+ onClickTrigger: M,
252
253
  modelValue: "确定",
253
254
  buttonType: "primary"
254
255
  })
@@ -259,7 +260,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
259
260
  }, 8, ["visible"]);
260
261
  };
261
262
  }
262
- }), It = /* @__PURE__ */ ae(Bt, [["__scopeId", "data-v-40d37c72"]]), Rt = { class: "role-management" }, At = { class: "header" }, Ft = { class: "header-left" }, Nt = { class: "query-wrapper" }, Ot = { class: "header-right" }, Ut = { class: "body" }, zt = { class: "role-table-wrapper" }, Mt = { class: "operate-list" }, qt = ["onClick"], Kt = { class: "pagination-wrapper" }, Gt = { class: "role-management-wrapper" }, Qt = { class: "role-management-body" }, jt = { class: "role-form-wrapper" }, Ht = { class: "node-content-wrapper" }, Jt = { class: "node-label-wrapper" }, Wt = { class: "node-label" }, Xt = {
263
+ }), It = /* @__PURE__ */ ae(Bt, [["__scopeId", "data-v-40d37c72"]]), Rt = { class: "role-management" }, At = { class: "header" }, Ft = { class: "header-left" }, Nt = { class: "query-wrapper" }, Ot = { class: "header-right" }, Ut = { class: "body" }, zt = { class: "role-table-wrapper" }, qt = { class: "operate-list" }, Mt = ["onClick"], Kt = { class: "pagination-wrapper" }, Gt = { class: "role-management-wrapper" }, Qt = { class: "role-management-body" }, jt = { class: "role-form-wrapper" }, Ht = { class: "node-content-wrapper" }, Jt = { class: "node-label-wrapper" }, Wt = { class: "node-label" }, Xt = {
263
264
  key: 0,
264
265
  class: "status-tag"
265
266
  }, Yt = {
@@ -298,7 +299,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
298
299
  initGetByPage: w,
299
300
  // initRoleList,
300
301
  initCreate: v,
301
- initUpdate: q,
302
+ initUpdate: M,
302
303
  initDelete: D,
303
304
  propertyAuthTree: k,
304
305
  initPropertyAuthTree: oe,
@@ -317,9 +318,9 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
317
318
  return t;
318
319
  }, K = async () => {
319
320
  ge.value = await ze();
320
- }, Me = (l) => {
321
- C(l), K();
322
321
  }, qe = (l) => {
322
+ C(l), K();
323
+ }, Me = (l) => {
323
324
  f(l), K();
324
325
  }, Ke = async () => {
325
326
  m(), _.setImportLoading(!0), await K().finally(() => {
@@ -375,11 +376,11 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
375
376
  if (!x.value)
376
377
  return;
377
378
  const { status: t } = l;
378
- pe.ENABLE.value === t ? l.status = pe.DISABLED.value : l.status = pe.ENABLE.value, await q(l), await O();
379
+ pe.ENABLE.value === t ? l.status = pe.DISABLED.value : l.status = pe.ENABLE.value, await M(l), await O();
379
380
  }, He = async () => {
380
381
  await v(n.value), await O();
381
382
  }, Je = async () => {
382
- await q(n.value), await O();
383
+ await M(n.value), await O();
383
384
  }, We = async (l) => {
384
385
  await D(l), await O();
385
386
  }, Xe = async (l, t) => {
@@ -584,12 +585,12 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
584
585
  align: "center"
585
586
  }, {
586
587
  default: o((i) => [
587
- a("div", Mt, [
588
+ a("div", qt, [
588
589
  (y(!0), T(fe, null, Ie(c(ct), (r) => (y(), T("div", {
589
590
  class: "operate-item",
590
591
  key: r.value,
591
592
  onClick: nt((z) => Xe(r, i), ["stop"])
592
- }, F(r.label), 9, qt))), 128))
593
+ }, F(r.label), 9, Mt))), 128))
593
594
  ])
594
595
  ]),
595
596
  _: 1
@@ -601,8 +602,8 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
601
602
  a("div", Kt, [
602
603
  t[14] || (t[14] = a("div", null, null, -1)),
603
604
  e(st, {
604
- onSizeChange: qe,
605
- onCurrentChange: Me,
605
+ onSizeChange: Me,
606
+ onCurrentChange: qe,
606
607
  "current-page": (De = c(b)) == null ? void 0 : De.pageNum,
607
608
  "page-sizes": (xe = c(b)) == null ? void 0 : xe.pageSizes,
608
609
  "page-size": ((Se = c(b)) == null ? void 0 : Se.pageSize) ?? 10,
@@ -755,7 +756,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
755
756
  ]),
756
757
  _: 2
757
758
  }, 1032, ["type", "onClick"])
758
- ])) : M("", !0),
759
+ ])) : q("", !0),
759
760
  r.isProperty && G(r) && ((z = r.params) == null ? void 0 : z.length) > 0 ? (y(), T("div", Yt, [
760
761
  e(N, {
761
762
  class: "status-tag",
@@ -768,7 +769,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
768
769
  _: 2,
769
770
  __: [16]
770
771
  }, 1032, ["onClick"])
771
- ])) : M("", !0)
772
+ ])) : q("", !0)
772
773
  ])
773
774
  ];
774
775
  }),
@@ -959,7 +960,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
959
960
  ]),
960
961
  _: 2
961
962
  }, 1032, ["type", "onClick"])
962
- ])) : M("", !0),
963
+ ])) : q("", !0),
963
964
  r.isProperty && G(r) && ((z = r.params) == null ? void 0 : z.length) > 0 ? (y(), T("div", ia, [
964
965
  e(N, {
965
966
  class: "status-tag",
@@ -972,7 +973,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
972
973
  _: 2,
973
974
  __: [19]
974
975
  }, 1032, ["onClick"])
975
- ])) : M("", !0),
976
+ ])) : q("", !0),
976
977
  r.isPropertyLeaf && G(r) && c(Fe)(r) ? (y(), T("div", da, [
977
978
  e(N, {
978
979
  class: "status-tag",
@@ -985,7 +986,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
985
986
  _: 2,
986
987
  __: [20]
987
988
  }, 1032, ["onClick"])
988
- ])) : M("", !0),
989
+ ])) : q("", !0),
989
990
  i.level == 1 && i.checked && !r.isProperty ? (y(), T("div", ca, [
990
991
  e(N, {
991
992
  class: "status-tag",
@@ -998,7 +999,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
998
999
  _: 2,
999
1000
  __: [21]
1000
1001
  }, 1032, ["onClick"])
1001
- ])) : M("", !0)
1002
+ ])) : q("", !0)
1002
1003
  ])
1003
1004
  ];
1004
1005
  }),
@@ -1051,7 +1052,7 @@ const _t = { class: "param-auth" }, ft = { class: "body" }, vt = { class: "node-
1051
1052
  ], 64);
1052
1053
  };
1053
1054
  }
1054
- }), Da = /* @__PURE__ */ ae(ma, [["__scopeId", "data-v-8f06e1a7"]]);
1055
+ }), xa = /* @__PURE__ */ ae(ma, [["__scopeId", "data-v-8f06e1a7"]]);
1055
1056
  export {
1056
- Da as default
1057
+ xa as default
1057
1058
  };
@@ -0,0 +1 @@
1
+ "use strict";const e=require("vue"),C=require("./request-BC2w2vGr.cjs"),_=require("./menu-Hdw0L-Y2.cjs"),D=require("./index-CW4qJdP8.cjs"),N=require("./index-DAwnZFmG.cjs"),Q=require("./index-DLN6R2tJ.cjs"),M=require("./index-DsNHJYr-.cjs"),R=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),X=require("./index-9I9R7yqt.cjs"),U=require("./index-BpPyaNFa.cjs");function Y(r,s){const t=new N.JSEncrypt;return t.setPublicKey(s),t.encrypt(r)||""}function Z(r,s){const t=new N.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:""}),T=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=T.value)==null?void 0:u.map(a=>({...a,disabled:!(s!=null&&s.includes(`${t}/签名`))}))):typeof s=="string"&&(s==null?void 0:s.toUpperCase())==="SUPERADMIN"?T.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 D.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 D.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):N.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 D.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:T,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 M.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(Q.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 M.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(X.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;
@@ -0,0 +1,29 @@
1
+ import { s as o } from "./request-CoGtW0Ux.js";
2
+ function i(t) {
3
+ const e = sessionStorage.getItem("loginToken") ?? "123456";
4
+ return o({
5
+ url: "/api/sysFile/uploadFile",
6
+ method: "post",
7
+ data: t,
8
+ headers: {
9
+ Authorization: e,
10
+ "Content-Type": "multipart/form-data"
11
+ }
12
+ });
13
+ }
14
+ function s(t) {
15
+ const e = sessionStorage.getItem("loginToken") ?? "123456";
16
+ return o({
17
+ url: "/api/sysFile/uploadFiles",
18
+ method: "post",
19
+ data: t,
20
+ headers: {
21
+ Authorization: e,
22
+ "Content-Type": "multipart/form-data"
23
+ }
24
+ });
25
+ }
26
+ export {
27
+ s as a,
28
+ i as u
29
+ };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as C, reactive as f, ref as i, onMounted as E, resolveComponent as s, createElementBlock as v, openBlock as _, createElementVNode as b, createVNode as u, withCtx as c, Fragment as w, renderList as A, createBlock as B, createTextVNode as F } from "vue";
2
- import { g as I } from "./index-_uOv3SVz.js";
2
+ import { g as I } from "./index-BsDMamej.js";
3
3
  import { useRouter as M } from "vue-router";
4
- import { E as g } from "./request-B3-w_S8Z.js";
4
+ import { E as g } from "./request-CoGtW0Ux.js";
5
5
  import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
6
  const T = { class: "tenant-wrap" }, $ = { class: "tenant-content" }, q = /* @__PURE__ */ C({
7
7
  __name: "index",
@@ -0,0 +1 @@
1
+ "use strict";const v=require("vue"),g=require("./index-CuHxF23O.cjs"),s=require("./menu-Hdw0L-Y2.cjs"),A=require("./index-DTiolIgS.cjs"),N=require("./request-BC2w2vGr.cjs"),we=s.useLoginState(s.pinia),{systemUrl:y}=s.storeToRefs(we);let S=y.value===""||!y.value?"http://222.92.178.198:63002":y.value;v.watch(()=>y.value,()=>{S=y.value===""||!y.value?"http://222.92.178.198:63002":y.value},{deep:!0,immediate:!0});function C(r){return N.service({url:`${S}/platform/import_data`,method:"post",data:r})}function V(r){return N.service({url:`${S}/platform/export_data`,method:"post",data:r,responseType:"blob"})}function Te(r=""){const l=r.match(/filename\*=UTF-8''([^;]+)/i);if(l)return decodeURIComponent(l[1]);const u=r.match(/filename=["']?([^"';]+)["']?/);return u?u[1]:"download.xlsx"}const z=r=>{var w,h;const l=((w=r==null?void 0:r.headers)==null?void 0:w["content-type"])||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",u=new Blob([r.data],{type:l}),D=(h=r==null?void 0:r.headers)==null?void 0:h["content-disposition"],I=Te(D)||"数据.xlsx",i=window.URL.createObjectURL(u),d=document.createElement("a");d.href=i,d.setAttribute("download",I),document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(i)},De=[{label:"编辑",value:"edit"},{label:"删除",value:"delete"}],F="role",f={ENABLE:{value:"enable",label:"启用",tag:"primary"},DISABLED:{value:"disabled",label:"禁用",tag:"info"}},p={EDITABLE:{value:"editable",label:"可编辑",tag:"primary"},DISABLED:{value:"disabled",label:"不可编辑",tag:"info"}},Re={TABLE:{value:"Table"}},Ee=["查看","查看三维模型","导出paraform","导出","导出全部","导出选中"],Be=()=>{const r=s.useLoginState(),l=s.useMenuState(s.pinia),{isSuperAdmin:u,userId:D,userName:I,platId:i}=s.useUserInfo(),d=v.ref([]),w=t=>{const{propertyType:e}=t||{};return e===Re.TABLE.value},h=v.ref({}),O=v.computed(()=>{var e;return u.value?!0:((e=h.value)==null?void 0:e.status)===p.EDITABLE.value}),$=t=>{var o,c;const e=A.formatterTimeStr(Date.now()),{id:a=0}=r.loginUserInfo||{},n=s.cloneDeep(t);return n.update_user_id=a,n.update_user_name=I.value,n.update_time=e,n.checked_ids=((c=(o=n==null?void 0:n.main_ids)==null?void 0:o.map)==null?void 0:c.call(o,m=>{const{id:b}=m;return b}))||[],n},P=t=>{let e=[];return t.forEach(a=>{var n;if(a.isPropertyLeaf){const o=s.cloneDeep(a);e.push(o)}a.children&&((n=a.children)==null?void 0:n.length)>0&&(e=e.concat(P(a.children)))}),e},q=(t=[])=>{let e=[];for(let a=0;a<t.length;a++){const n=t[a],o=n.children||[];delete n.children,e.push(n),o&&o.length>0&&(e=e.concat(q(o)))}return e},G=t=>{let e=[];return t.forEach(a=>{if(a.isPropertyLeaf){const n=q(a.params);e=e.concat(n)}}),e},x=(t,e)=>{const a=r.loginUserInfo,{id:n=0}=a||{},o=A.formatterTimeStr(Date.now());let c={name:"",code:"",order_no:1,data_scope:1,remark:"",tenant_id:"",create_time:o,update_time:o,create_user_id:n,create_user_name:I.value,update_user_id:n,update_user_name:I.value,status:f.ENABLE.value,main_ids:[],checked_ids:[],params:[]};const{checkAll:m,tree:b}=e||{};if(m&&b){const L=P(b),Le=L.map(B=>({...B,department_scope:"unlimited"}));c.main_ids=Le,c.checked_ids=L.map(B=>B.id),c.params=G(L)}if(t){const L=$(t);c={...c,...L}}return c},R=t=>{const e=[t];return{platId:i.value,changeRoleData:e}},M=async t=>await s.getRoleList({platId:t}),j=async()=>{var e;l.setImportLoading(!0);const t=await M(i.value).finally(()=>{l.setImportLoading(!1)});return(e=t==null?void 0:t.data)==null?void 0:e.result},U=()=>({name:""}),T=v.ref(U()),H=()=>{T.value=U()},Q=()=>({pageNum:1,pageSize:10,total:0,pageSizes:[5,10,20,50,100]}),_=v.ref(Q()),K=t=>{_.value.pageNum=t},W=t=>{_.value.pageSize=t},J=()=>({platId:i.value,pageNum:_.value.pageNum,pageSize:_.value.pageSize,filter:{...T.value}}),X=async t=>{var a;const e=await s.getByPage(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},Y=async()=>{const t=J(),e=await X(t),{total:a}=e||{};return _.value.total=a,e||{}},Z=async t=>{delete t.role_id;const e=R(t);await s.createRole(e)},ee=async t=>{l.setImportLoading(!0),await Z(t).finally(()=>{l.setImportLoading(!1)})},te=async t=>{const e=R(t);await s.updateRole(e)},ae=async t=>{l.setImportLoading(!0),await te(t).finally(()=>{l.setImportLoading(!1)})},ne=async t=>{const{role_id:e}=t,a={platId:i.value,role_id:[e]};await s.deleteRole(a)},oe=async t=>{await A.ElMessageBox.confirm("是否确认要删除","",{showClose:!1,confirmButtonText:"确认",cancelButtonText:"取消",type:"warning",modalClass:"delete-role-message-modal",confirmButtonClass:"delete-role-confirm"}),l.setImportLoading(!0),await ne(t).finally(()=>{l.setImportLoading(!1)})},re=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.label)||t},se=t=>{const e=t.toUpperCase(),a=f==null?void 0:f[e];return(a==null?void 0:a.tag)||"info"},le=async t=>{var a;const e=await s.getPropertyAuthTree(t);return((a=e==null?void 0:e.data)==null?void 0:a.result)||[]},ce=async t=>{const e={platId:i.value,includeHidden:!0,roleIds:t};l.setImportLoading(!0);const a=await le(e).finally(()=>{l.setImportLoading(!1)});d.value=a},ie=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.label)||t},ue=(t="")=>{const e=t.toUpperCase(),a=p==null?void 0:p[e];return(a==null?void 0:a.tag)||"info"},E=t=>t===p.EDITABLE.value,pe=(t,e)=>{const{status:a}=t||{},{tableOperate:n}=e||{};return!!(E(a)||n&&Ee.includes(n))},de=(t,e)=>{const{status:a}=t||{};return E(a)},me=(t,e)=>{if(u.value)return!0;const{type:a}=e||{};if(g.compType.TABLE===a)return pe(t,e);if(g.compType.FORM===a)return de(t);const{status:n}=t||{};return E(n)},fe=async()=>{var n,o;const e={pageName:"系统管理/角色管理",platId:i.value,userId:D.value},a=await s.getPageDataApi(e);return(o=(n=a==null?void 0:a.data)==null?void 0:n.result)==null?void 0:o[0]},ge=async()=>{if(!u.value)return h.value=await fe(),h},k=t=>{const e=s.cloneDeep(t);for(let a=0;a<e.length;a++){const n=e==null?void 0:e[a],{id:o,prop:c,children:m}=n||{};n.uniqueKey=`${o}_${c}`,m&&(n.children=k(m))}return e},ye=async t=>{var a;const e=await C(t);return(a=e==null?void 0:e.data)==null?void 0:a.result},he=async t=>{const e=new FormData,a=x(),{create_user_id:n,update_user_id:o,create_user_name:c,update_user_name:m}=a;return e.set("platId",i.value),e.set("file",t),e.set("tableType",F),e.set("create_user_id",n),e.set("update_user_id",o),e.set("create_user_name",c),e.set("update_user_name",m),await ye(e)},_e=async t=>await V(t),ve=async()=>{const t={platId:i.value,tableType:F,filter:T.value},e=await _e(t);return z(e),e},Ie=[["名称","编码","备注","状态"]],be=async()=>{const t=g.utils.aoa_to_sheet(Ie),e=g.utils.book_new();g.utils.book_append_sheet(e,t,"角色"),g.writeFileSync(e,"角色模板.xlsx")};return{compType:g.compType,isTableFeature:w,queryInfo:T,resetQuery:H,pageInfo:_,setPageNum:K,setPageSize:W,initGetByPage:Y,initRoleList:j,initCreate:ee,initUpdate:ae,initDelete:oe,initRoleRequestData:R,initPropertyAuthTree:ce,propertyAuthTree:d,initRoleItem:x,isSuperAdmin:u,getStatusLabelByValue:re,getStatusTagByValue:se,getFeatureStatusLabelByValue:ie,getFeatureStatusTagByValue:ue,hasEditable:me,initRoleConfig:ge,hasRoleEditAuth:O,buildParamAuthTree:k,initImport:he,initExport:ve,exportTemplate:be}};exports.exportData=V;exports.featureStatusConstants=p;exports.importData=C;exports.initDownloadFileByResponse=z;exports.operateList=De;exports.statusConstants=f;exports.useRole=Be;
@@ -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 { Y as m } from "./index-B_rDLuPm.js";
3
- import { g as d, c as _ } from "./index-BjEIX08g.js";
2
+ import { Y as m } from "./index-DfAmIlWW.js";
3
+ import { g as d, c as _ } from "./index-CV8QlXGI.js";
4
4
  import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
5
  const l = n([]), g = c(() => [
6
6
  {
@@ -0,0 +1 @@
1
+ "use strict";const a=require("vue"),g=require("vue-router"),s=require("./menu-Hdw0L-Y2.cjs"),l={ALLOW:{value:"允许"},DENY:{value:"不允许"}},A="系统管理/用户管理",C="用户列表",R={title:"个人中心",path:"/个人中心",level:1,show:!0,icon:"个人中心",carryData:!0,isPenultimate:!0,isRouter:!0,children:[],childMenus:[]},_=()=>{const i=g.useRouter(),o=s.useMenuState(s.pinia),{platId:c,isSuperAdmin:d}=s.useUserInfo(),p=e=>{const{id:t}=e;return{id:t,password:"",allow_reset_password:l.DENY.value}},u=a.ref([]),w=a.computed(()=>{var t,n;const e=(n=(t=u.value)==null?void 0:t.find)==null?void 0:n.call(t,r=>r.property_name===C);return e==null?void 0:e.object_id}),y=async()=>{var n;const e={pageName:A,platId:c.value},t=await s.getPageDataApi(e);return((n=t==null?void 0:t.data)==null?void 0:n.result)||[]},f=async()=>{const e=await y();u.value=e||[]};a.onMounted(async()=>{await f()});const m=a.computed(()=>`content_${w.value}`),v=async e=>({platId:c.value,changeContents:[{tableContents:[e],tableName:m.value}]}),I=e=>{const{allow_reset_password:t}=e;return t===l.ALLOW.value},P=async e=>{const{id:t,password:n,allow_reset_password:r}=e;return v({id:t,password:n,allow_reset_password:r})},h=async e=>{const t=await P(e);return await s.pageBatchUpdateApi(t)};return{isSuperAdmin:d,toPersonalCenter:()=>{const e=s.cloneDeep(R);o.setAsideMenus([e]),o.setActiveMenuPath(e==null?void 0:e.path),o.setActiveAsideMenu(e),i.push(e.path)},isAllowReplacePassword:I,initReplacePassword:async e=>await h(e),initEditForm:p}};exports.usePersonalCenter=_;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-DVrEV4RS.cjs"),r=require("./index-RpaKc4Lu.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),c=require("./index-mHmXlK2R.cjs"),r=require("./index-bPKGQ9bV.cjs"),i=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),s={class:"log-wrap"},u=t.defineComponent({__name:"index",setup(_){const e=t.reactive({...c.State});t.onMounted(async()=>{e.tableData=await e.getLogTableDataAsync()});const l=n=>{var o;e.clickButton(n,(o=e.tableData)==null?void 0:o.map(a=>a.id),a=>{console.log("清空操作成功:",a),a&&(e.tableData=[])})};return(n,o)=>(t.openBlock(),t.createElementBlock("div",s,[t.createVNode(r.ssTable,{itemData:e.pageData,allowOperate:!1,allowSelect:!1,onOnButtonClick:l},null,8,["itemData"])]))}}),d=i._export_sfc(u,[["__scopeId","data-v-b4bfde04"]]);exports.default=d;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),r=require("./index-BET-Jwi1.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-9I9R7yqt.cjs");require("./index-CuHxF23O.cjs");const _=require("./menu-Hdw0L-Y2.cjs");require("./request-BC2w2vGr.cjs");require("./dayjs.min-DRU3LNcy.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({...r.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),r.tabKey.value++}),(i,o)=>{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(r.ssAvatar,{size:100,disabled:t.uploadDisabled,userInfo:e.unref(n),onSubmitImage:o[0]||(o[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(r.ssSignature,{userInfo:e.unref(n),itemData:t.itemData,onClickSignButton:t.clickSignButton,onBeforeDestroy:t.beforeSignDestroy,onClickSubmitSign:o[1]||(o[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(r.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;
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),_=require("./menu-Hdw0L-Y2.cjs"),T=require("./index-BdyYMxx4.cjs"),f=require("./index.vue_vue_type_script_setup_true_lang-BKTJR2th.cjs"),D=require("./index-CUw6nGTo.cjs"),L=require("./clone-Dn6v3xp6.cjs"),S=require("./index-W8p89C7t.cjs"),I=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),O={class:"personal-center"},P={class:"body"},A={class:"body-left"},j={class:"personal-profile"},M={class:"avatar"},$=["src"],z={key:1,class:"downgrade-avatar"},H={class:"base-info"},G={class:"permission"},J={class:"personal-form-wrapper"},K={class:"password-input-wrapper"},Q={class:"edit-wrapper"},W={class:"edit-body"},X={class:"edit-form-wrapper"},Y={class:"edit-footer"},Z={class:"footer-right"},ee=e.defineComponent({__name:"index",setup(oe){const{isSuperAdmin:V,initEditForm:N,isAllowReplacePassword:w,initReplacePassword:b}=T.usePersonalCenter(),g=_.useLoginState(),{loginUserInfo:u}=_.storeToRefs(g),y=e.computed(()=>V.value?"超级管理员":"普通用户"),E=e.computed(()=>{var a,t;return((t=(a=u.value)==null?void 0:a.account)==null?void 0:t.charAt(0))||""}),o=e.ref({}),x=()=>{o.value=L.clone(u.value)||{}},p=e.ref(""),k=async()=>{var r,s,c;const a=(c=(s=(r=u.value)==null?void 0:r.face_photo_url)==null?void 0:s[0])==null?void 0:c.url;if(!a)return;const t=await _.platformDownloadFile({url:a}),i=new Blob([t==null?void 0:t.data],{type:t==null?void 0:t.headers["content-type"]}),n=URL.createObjectURL(i);p.value=n},U=()=>{p.value&&URL.revokeObjectURL(p.value)};e.onMounted(()=>{x(),k()}),e.onUnmounted(()=>{U()});const h=e.ref(),d=e.ref(N(u.value)),B=e.reactive({password:[{required:!0,message:"请输入密码",trigger:"blur"}]}),m=e.ref(!1),R=()=>{m.value=!0},v=()=>{m.value=!1},F=()=>{d.value=N(u.value),R()},q=async()=>{var t,i;if(await((i=(t=h.value)==null?void 0:t.validate)==null?void 0:i.call(t)),!w(o.value))return;const a=S.ElLoading.service({lock:!0,text:"Loading",background:"rgba(0, 0, 0, 0.7)"});await b(d.value).finally(()=>{a.close()}),o.value={...o.value,...d.value},g.setLoginUserInfo(o.value),v()};return(a,t)=>{const i=e.resolveComponent("el-avatar"),n=e.resolveComponent("el-input"),r=e.resolveComponent("el-form-item"),s=e.resolveComponent("el-col"),c=e.resolveComponent("el-row"),C=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",O,[t[6]||(t[6]=e.createElementVNode("div",{class:"header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",P,[e.createElementVNode("div",A,[e.createElementVNode("div",j,[e.createElementVNode("div",M,[e.createVNode(i,{fit:"cover",size:96,ref:"avatarRef",alt:"头像查找失败"},{default:e.withCtx(()=>[p.value?(e.openBlock(),e.createElementBlock("img",{key:0,class:"face-img",src:p.value},null,8,$)):(e.openBlock(),e.createElementBlock("div",z,e.toDisplayString(E.value),1))]),_:1},512)]),e.createElementVNode("div",H,[e.createElementVNode("div",G,e.toDisplayString(y.value),1)])])]),t[5]||(t[5]=e.createElementVNode("div",{class:"divide"},null,-1)),e.createElementVNode("div",J,[e.createVNode(C,{class:"personal-form",model:o.value},{default:e.withCtx(()=>[e.createVNode(c,{gutter:20},{default:e.withCtx(()=>[e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{prop:"user_name",label:"姓名","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:o.value.user_name,"onUpdate:modelValue":t[0]||(t[0]=l=>o.value.user_name=l),"aria-label":"姓名",placeholder:"姓名",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{prop:"employee_no",label:"工号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:o.value.employee_no,"onUpdate:modelValue":t[1]||(t[1]=l=>o.value.employee_no=l),"aria-label":"工号",placeholder:"工号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1})]),_:1}),e.createVNode(c,{gutter:20},{default:e.withCtx(()=>[e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{prop:"account",label:"账号","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:o.value.account,"onUpdate:modelValue":t[2]||(t[2]=l=>o.value.account=l),"aria-label":"账号",placeholder:"账号",readonly:""},null,8,["modelValue"])]),_:1})]),_:1}),e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createVNode(n,{modelValue:o.value.password,"onUpdate:modelValue":t[3]||(t[3]=l=>o.value.password=l),type:"password","show-password":"",readonly:"","aria-label":"密码",placeholder:"密码"},null,8,["modelValue"]),!e.unref(V)&&e.unref(w)(o.value)?(e.openBlock(),e.createBlock(f._sfc_main,{key:0,class:"replace-password",emptyColor:!0,onClickTrigger:F,modelValue:"更改密码",buttonType:"primary"})):e.createCommentVNode("",!0)])]),_:1})]),_:1})]),_:1})]),_:1},8,["model"])])]),t[7]||(t[7]=e.createElementVNode("div",{class:"footer"},[e.createElementVNode("div",{class:"footer-left"}),e.createElementVNode("div",{class:"footer-right"})],-1))]),e.createVNode(D.ssDialog,{class:"edit-dialog",visible:m.value,title:"角色信息",onBeforeDestroy:v,showClose:!0,closeOnClickModal:!1,closeOnPressEscape:!1,modalClass:"role-edit-modal",alignCenter:!0,appendToBody:!1},{default:e.withCtx(()=>[e.createElementVNode("div",Q,[t[8]||(t[8]=e.createElementVNode("div",{class:"edit-header"},[e.createElementVNode("div",{class:"header-left"}),e.createElementVNode("div",{class:"header-right"})],-1)),e.createElementVNode("div",W,[e.createElementVNode("div",X,[e.createVNode(C,{class:"edit-form",ref_key:"editFormRef",ref:h,model:d.value,rules:B},{default:e.withCtx(()=>[e.createVNode(c,{gutter:20},{default:e.withCtx(()=>[e.createVNode(s,{span:12},{default:e.withCtx(()=>[e.createVNode(r,{prop:"password",label:"密码","label-position":"top"},{default:e.withCtx(()=>[e.createVNode(n,{modelValue:d.value.password,"onUpdate:modelValue":t[4]||(t[4]=l=>d.value.password=l),"aria-label":"密码",placeholder:"密码"},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1},8,["model","rules"])])])])]),footer:e.withCtx(()=>[e.createElementVNode("div",Y,[t[9]||(t[9]=e.createElementVNode("div",{class:"footer-left"},null,-1)),e.createElementVNode("div",Z,[e.createVNode(f._sfc_main,{class:"cancel",emptyColor:!0,onClickTrigger:v,modelValue:"取消",buttonType:"info"}),e.createVNode(f._sfc_main,{class:"confirm",emptyColor:!0,onClickTrigger:q,modelValue:"确定",buttonType:"primary"})])])]),_:1},8,["visible"])],64)}}}),te=I._export_sfc(ee,[["__scopeId","data-v-dd4f6961"]]);exports.default=te;
@@ -0,0 +1 @@
1
+ "use strict";const a=require("./menu-Hdw0L-Y2.cjs"),r=require("./request-BC2w2vGr.cjs"),o=require("vue"),i=a.useLoginState(a.pinia),{systemUrl:e}=a.storeToRefs(i);let u=e.value===""||!e.value?"http://222.92.178.198:63002":e.value;o.watch(()=>e.value,()=>{u=e.value===""||!e.value?"http://222.92.178.198:63002":e.value},{deep:!0,immediate:!0});function c(t){return r.service({url:"http://139.196.154.85:20015/api/face/face-verify",method:"post",data:t})}function s(t){return r.service({url:u+"/platform/updatedata_faceURL",method:"post",data:t})}exports.updateFacePhotoUrl=s;exports.verifyFaceImage=c;
@@ -1,4 +1,4 @@
1
- import { s as a } from "./request-B3-w_S8Z.js";
1
+ import { s as a } from "./request-CoGtW0Ux.js";
2
2
  function n(t) {
3
3
  return a({
4
4
  url: "/api/insofData/add",
@@ -1,5 +1,5 @@
1
1
  import { ref as c, onMounted as p, watch as u, onUnmounted as f, createElementBlock as v, openBlock as m } from "vue";
2
- import { a9 as _ } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-mXh6sJo_.js";
2
+ import { a9 as _ } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js";
3
3
  import { _ as h } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
4
  const z = {
5
5
  __name: "index",
@@ -1,8 +1,8 @@
1
1
  import { defineComponent as y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
- import { u as h, p as k, s as x, c as m } from "./index-7aU_bwDz.js";
3
- import { Y as M } from "./index-B_rDLuPm.js";
4
- import { a as D, d as T, f as S } from "./index-B_CkJtn2.js";
5
- import { g as w } from "./index-_uOv3SVz.js";
2
+ import { u as h, p as k, s as x, c as m } from "./menu-CtG1loFf.js";
3
+ import { Y as M } from "./index-DfAmIlWW.js";
4
+ import { a as D, d as T, f as S } from "./index-DxhNwr8X.js";
5
+ import { g as w } from "./index-BsDMamej.js";
6
6
  import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
8
8
  __name: "index",
@@ -1,6 +1,6 @@
1
1
  import { watch as n } from "vue";
2
- import { s as o, b as p, p as u } from "./index-7aU_bwDz.js";
3
- import { s as r } from "./request-B3-w_S8Z.js";
2
+ import { s as o, b as p, p as u } from "./menu-CtG1loFf.js";
3
+ import { s as r } from "./request-CoGtW0Ux.js";
4
4
  const m = p(u), { systemUrl: a } = o(m);
5
5
  let e = a.value === "" || !a.value ? "http://222.92.178.198:63002" : a.value;
6
6
  n(
@@ -0,0 +1,209 @@
1
+ import { ref as B, reactive as P, defineComponent as O, h as b, Transition as j, withCtx as z, withDirectives as R, createVNode as q, vShow as Y, createApp as D, toRefs as F, nextTick as I, isRef as G } from "vue";
2
+ import { at as H, aq as L, Y as K, $ as S, ap as x, ao as h, ag as E, ay as M } from "./request-CoGtW0Ux.js";
3
+ function Z(e, n) {
4
+ let t;
5
+ const s = B(!1), o = P({
6
+ ...e,
7
+ originalPosition: "",
8
+ originalOverflow: "",
9
+ visible: !1
10
+ });
11
+ function r(l) {
12
+ o.text = l;
13
+ }
14
+ function c() {
15
+ const l = o.parent, u = v.ns;
16
+ if (!l.vLoadingAddClassList) {
17
+ let a = l.getAttribute("loading-number");
18
+ a = Number.parseInt(a) - 1, a ? l.setAttribute("loading-number", a.toString()) : (L(l, u.bm("parent", "relative")), l.removeAttribute("loading-number")), L(l, u.bm("parent", "hidden"));
19
+ }
20
+ d(), f.unmount();
21
+ }
22
+ function d() {
23
+ var l, u;
24
+ (u = (l = v.$el) == null ? void 0 : l.parentNode) == null || u.removeChild(v.$el);
25
+ }
26
+ function A() {
27
+ var l;
28
+ e.beforeClose && !e.beforeClose() || (s.value = !0, clearTimeout(t), t = setTimeout(i, 400), o.visible = !1, (l = e.closed) == null || l.call(e));
29
+ }
30
+ function i() {
31
+ if (!s.value)
32
+ return;
33
+ const l = o.parent;
34
+ s.value = !1, l.vLoadingAddClassList = void 0, c();
35
+ }
36
+ const C = O({
37
+ name: "ElLoading",
38
+ setup(l, { expose: u }) {
39
+ const { ns: a, zIndex: N } = H("loading");
40
+ return u({
41
+ ns: a,
42
+ zIndex: N
43
+ }), () => {
44
+ const k = o.spinner || o.svg, T = b("svg", {
45
+ class: "circular",
46
+ viewBox: o.svgViewBox ? o.svgViewBox : "0 0 50 50",
47
+ ...k ? { innerHTML: k } : {}
48
+ }, [
49
+ b("circle", {
50
+ class: "path",
51
+ cx: "25",
52
+ cy: "25",
53
+ r: "20",
54
+ fill: "none"
55
+ })
56
+ ]), V = o.text ? b("p", { class: a.b("text") }, [o.text]) : void 0;
57
+ return b(j, {
58
+ name: a.b("fade"),
59
+ onAfterLeave: i
60
+ }, {
61
+ default: z(() => [
62
+ R(q("div", {
63
+ style: {
64
+ backgroundColor: o.background || ""
65
+ },
66
+ class: [
67
+ a.b("mask"),
68
+ o.customClass,
69
+ a.is("fullscreen", o.fullscreen)
70
+ ]
71
+ }, [
72
+ b("div", {
73
+ class: a.b("spinner")
74
+ }, [T, V])
75
+ ]), [[Y, o.visible]])
76
+ ])
77
+ });
78
+ };
79
+ }
80
+ }), f = D(C);
81
+ Object.assign(f._context, n ?? {});
82
+ const v = f.mount(document.createElement("div"));
83
+ return {
84
+ ...F(o),
85
+ setText: r,
86
+ removeElLoadingChild: d,
87
+ close: A,
88
+ handleAfterLeave: i,
89
+ vm: v,
90
+ get $el() {
91
+ return v.$el;
92
+ }
93
+ };
94
+ }
95
+ let _;
96
+ const m = function(e = {}, n) {
97
+ if (!K)
98
+ return;
99
+ const t = J(e);
100
+ if (t.fullscreen && _)
101
+ return _;
102
+ const s = Z({
103
+ ...t,
104
+ closed: () => {
105
+ var r;
106
+ (r = t.closed) == null || r.call(t), t.fullscreen && (_ = void 0);
107
+ }
108
+ }, n ?? m._context);
109
+ Q(t, t.parent, s), w(t, t.parent, s), t.parent.vLoadingAddClassList = () => w(t, t.parent, s);
110
+ let o = t.parent.getAttribute("loading-number");
111
+ return o ? o = `${Number.parseInt(o) + 1}` : o = "1", t.parent.setAttribute("loading-number", o), t.parent.appendChild(s.$el), I(() => s.visible.value = t.visible), t.fullscreen && (_ = s), s;
112
+ }, J = (e) => {
113
+ var n, t, s, o;
114
+ let r;
115
+ return S(e.target) ? r = (n = document.querySelector(e.target)) != null ? n : document.body : r = e.target || document.body, {
116
+ parent: r === document.body || e.body ? document.body : r,
117
+ background: e.background || "",
118
+ svg: e.svg || "",
119
+ svgViewBox: e.svgViewBox || "",
120
+ spinner: e.spinner || !1,
121
+ text: e.text || "",
122
+ fullscreen: r === document.body && ((t = e.fullscreen) != null ? t : !0),
123
+ lock: (s = e.lock) != null ? s : !1,
124
+ customClass: e.customClass || "",
125
+ visible: (o = e.visible) != null ? o : !0,
126
+ beforeClose: e.beforeClose,
127
+ closed: e.closed,
128
+ target: r
129
+ };
130
+ }, Q = async (e, n, t) => {
131
+ const { nextZIndex: s } = t.vm.zIndex || t.vm._.exposed.zIndex, o = {};
132
+ if (e.fullscreen)
133
+ t.originalPosition.value = x(document.body, "position"), t.originalOverflow.value = x(document.body, "overflow"), o.zIndex = s();
134
+ else if (e.parent === document.body) {
135
+ t.originalPosition.value = x(document.body, "position"), await I();
136
+ for (const r of ["top", "left"]) {
137
+ const c = r === "top" ? "scrollTop" : "scrollLeft";
138
+ o[r] = `${e.target.getBoundingClientRect()[r] + document.body[c] + document.documentElement[c] - Number.parseInt(x(document.body, `margin-${r}`), 10)}px`;
139
+ }
140
+ for (const r of ["height", "width"])
141
+ o[r] = `${e.target.getBoundingClientRect()[r]}px`;
142
+ } else
143
+ t.originalPosition.value = x(n, "position");
144
+ for (const [r, c] of Object.entries(o))
145
+ t.$el.style[r] = c;
146
+ }, w = (e, n, t) => {
147
+ const s = t.vm.ns || t.vm._.exposed.ns;
148
+ ["absolute", "fixed", "sticky"].includes(t.originalPosition.value) ? L(n, s.bm("parent", "relative")) : h(n, s.bm("parent", "relative")), e.fullscreen && e.lock ? h(n, s.bm("parent", "hidden")) : L(n, s.bm("parent", "hidden"));
149
+ };
150
+ m._context = null;
151
+ const p = Symbol("ElLoading"), g = (e) => `element-loading-${M(e)}`, $ = (e, n) => {
152
+ var t, s, o, r;
153
+ const c = n.instance, d = (l) => E(n.value) ? n.value[l] : void 0, A = (l) => {
154
+ const u = S(l) && (c == null ? void 0 : c[l]) || l;
155
+ return B(u);
156
+ }, i = (l) => A(d(l) || e.getAttribute(g(l))), C = (t = d("fullscreen")) != null ? t : n.modifiers.fullscreen, f = {
157
+ text: i("text"),
158
+ svg: i("svg"),
159
+ svgViewBox: i("svgViewBox"),
160
+ spinner: i("spinner"),
161
+ background: i("background"),
162
+ customClass: i("customClass"),
163
+ fullscreen: C,
164
+ target: (s = d("target")) != null ? s : C ? void 0 : e,
165
+ body: (o = d("body")) != null ? o : n.modifiers.body,
166
+ lock: (r = d("lock")) != null ? r : n.modifiers.lock
167
+ }, v = m(f);
168
+ v._context = y._context, e[p] = {
169
+ options: f,
170
+ instance: v
171
+ };
172
+ }, U = (e, n) => {
173
+ for (const t of Object.keys(e))
174
+ G(e[t]) && (e[t].value = n[t]);
175
+ }, y = {
176
+ mounted(e, n) {
177
+ n.value && $(e, n);
178
+ },
179
+ updated(e, n) {
180
+ const t = e[p];
181
+ if (!n.value) {
182
+ t == null || t.instance.close(), e[p] = null;
183
+ return;
184
+ }
185
+ t ? U(t.options, E(n.value) ? n.value : {
186
+ text: e.getAttribute(g("text")),
187
+ svg: e.getAttribute(g("svg")),
188
+ svgViewBox: e.getAttribute(g("svgViewBox")),
189
+ spinner: e.getAttribute(g("spinner")),
190
+ background: e.getAttribute(g("background")),
191
+ customClass: e.getAttribute(g("customClass"))
192
+ }) : $(e, n);
193
+ },
194
+ unmounted(e) {
195
+ var n;
196
+ (n = e[p]) == null || n.instance.close(), e[p] = null;
197
+ }
198
+ };
199
+ y._context = null;
200
+ const ee = {
201
+ install(e) {
202
+ m._context = e._context, y._context = e._context, e.directive("loading", y), e.config.globalProperties.$loading = m;
203
+ },
204
+ directive: y,
205
+ service: m
206
+ };
207
+ export {
208
+ ee as E
209
+ };
@@ -0,0 +1 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("vue"),l=require("./menu-Hdw0L-Y2.cjs"),v=require("./index-DTiolIgS.cjs"),B=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),_=n.defineComponent({__name:"index",props:{windowConfig:{type:Object,default:()=>{}},systemInfo:{type:Object,default:()=>{}},systemKey:{type:String,default:""},pathContent:{type:String,default:""},mode:{type:String,default:"view"},content:{type:String,default:""},jsonContents:{type:Array,default:()=>[]},showButton:{type:Boolean,default:!1},nodeDev:{type:String,default:""},pageKey:{type:String,default:""},interfaceContent:{type:Array,default:()=>[]}},emits:["buildContent","openThreeBuild","threeData","setLoginInfo"],setup(s,{emit:m}){const d=l.useLoginState(l.pinia),{loginUserInfo:r}=l.storeToRefs(d),{initSystemInfo:w}=v.useModelManagement(),e=s,u=m,g=n.computed(()=>{var t,o;return(e==null?void 0:e.showButton)||((o=(t=r.value)==null?void 0:t.layer)==null?void 0:o.toUpperCase())==="SUPERADMIN"});n.watch(()=>[e==null?void 0:e.systemKey,e==null?void 0:e.systemInfo],async([t,o])=>{d.setSystemKey(t),t!==""&&sessionStorage.setItem("systemKey",t)},{immediate:!0}),n.watch(()=>e==null?void 0:e.interfaceContent,()=>{var o,i,c;if(!(e!=null&&e.interfaceContent)||Array.isArray(e==null?void 0:e.interfaceContent)&&((o=e==null?void 0:e.interfaceContent)==null?void 0:o.length)===0)return;let t=(i=e==null?void 0:e.interfaceContent)==null?void 0:i.find(a=>a==null?void 0:a.includes("VITE_API_NEW_URL"));t=(c=t==null?void 0:t.split("="))==null?void 0:c[1],t=t==null?void 0:t.trim(),d.setSystemUrl(t??"")},{immediate:!0,deep:!0}),n.onMounted(async()=>{e.systemInfo?d.setSystemInfo(e.systemInfo):await w()});const C=()=>{u("buildContent")},h=()=>{u("setLoginInfo")},S=t=>{u("openThreeBuild",t)},I=t=>{u("threeData",t)},f=()=>{var y;const t=e!=null&&e.windowConfig?(y=e==null?void 0:e.windowConfig)==null?void 0:y.width:window.innerWidth,o=1920,i=16,c=t/o,a=i*c;document.documentElement.style.fontSize=`${a}px`};return n.onMounted(()=>{f(),window.addEventListener("resize",f)}),n.onUnmounted(()=>{window.removeEventListener("resize",f)}),(t,o)=>{const i=n.resolveComponent("router-view");return n.openBlock(),n.createElementBlock("div",null,[n.createVNode(i,{mode:e==null?void 0:e.mode,content:e==null?void 0:e.content,jsonContents:e==null?void 0:e.jsonContents,pathContent:e==null?void 0:e.pathContent,showButton:g.value,nodeDev:e==null?void 0:e.nodeDev,windowConfig:s.windowConfig,systemInfo:s.systemInfo,"old-systemKey":s.systemKey,onBuildContent:C,onOpenThreeBuild:S,pageKey:s.pageKey,onThreeData:I,onSetLoginInfo:h},null,8,["mode","content","jsonContents","pathContent","showButton","nodeDev","windowConfig","systemInfo","old-systemKey","pageKey"])])}}}),D=B._export_sfc(_,[["__scopeId","data-v-a16fd15f"]]);exports.default=D;