ss-component-new 1.3.284 → 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 (155) hide show
  1. package/dist/{MTLLoader-Bqhk9Jys.cjs → MTLLoader-CdxYhBAE.cjs} +1 -1
  2. package/dist/{MTLLoader-EOL84Fqh.js → MTLLoader-RsaYZtZ_.js} +1 -1
  3. package/dist/{OrbitControls-BWG74qkO.cjs → OrbitControls-BNTHZN2P.cjs} +1 -1
  4. package/dist/{OrbitControls-CxSrJzfK.js → OrbitControls-D4mDZcDl.js} +1 -1
  5. package/dist/{URDFLoader-BqeLHtkR.cjs → URDFLoader-B56WRl4z.cjs} +1 -1
  6. package/dist/{URDFLoader-BSQM0MFY.js → URDFLoader-BPNyxykV.js} +2 -2
  7. package/dist/{animationData-OUnrQP51.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-xKxoi12Q.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-Btz3-LPC.js → iconfont-DkmQztG1.js} +2 -2
  17. package/dist/{iconfont-BmNNxKez.cjs → iconfont-Dq-DsQsx.cjs} +1 -1
  18. package/dist/index--6MSMD-8.cjs +1 -0
  19. package/dist/{index-CGMtFV1Q.js → index--PidpjSy.js} +4 -3
  20. package/dist/index--ZVD8xbU.js +83 -0
  21. package/dist/{index-CeZUWqvK.js → index-8CZJn10Y.js} +2 -2
  22. package/dist/index-9I9R7yqt.cjs +15 -0
  23. package/dist/index-B6b9Lr8M.js +623 -0
  24. package/dist/{index-CJ8NDikV.js → index-BEGr3hBb.js} +32 -31
  25. package/dist/index-BET-Jwi1.cjs +1 -0
  26. package/dist/index-BIV-s4QY.js +29 -0
  27. package/dist/{index-CHH8aozZ.js → index-BIkySu-W.js} +2 -2
  28. package/dist/index-BOHy6XZd.cjs +1 -0
  29. package/dist/{index-ElqvI5ex.js → index-BcwDR57s.js} +2 -2
  30. package/dist/index-BdyYMxx4.cjs +1 -0
  31. package/dist/{index-BqvDjIQV.cjs → index-BeuuWlVO.cjs} +1 -1
  32. package/dist/index-BjZpJRk2.cjs +1 -0
  33. package/dist/index-BlAISTfa.cjs +1 -0
  34. package/dist/index-Bs0qreV1.cjs +1 -0
  35. package/dist/{index-_uOv3SVz.js → index-BsDMamej.js} +1 -1
  36. package/dist/{index-CjYg7JmZ.js → index-C1dVsNLG.js} +1 -1
  37. package/dist/{index-DV4EK1-2.js → index-C5bOtOIk.js} +4 -4
  38. package/dist/{index-jNLiwply.js → index-C7-Idrnv.js} +2 -2
  39. package/dist/index-C81Qb0f2.js +209 -0
  40. package/dist/index-CAcP6bx_.cjs +1 -0
  41. package/dist/index-CPFAai4T.cjs +2 -0
  42. package/dist/{index-4xnn1f1g.js → index-CQS-NY65.js} +25 -24
  43. package/dist/index-CQcXApCn.cjs +1 -0
  44. package/dist/index-CUJ_cdPT.cjs +1 -0
  45. package/dist/{index-G1sbqmHL.js → index-CV8QlXGI.js} +3 -3
  46. package/dist/index-CXgZFuTt.cjs +1 -0
  47. package/dist/{index-CXvcupvx.js → index-CY_HG5Gj.js} +4 -4
  48. package/dist/index-Ca-FxCDv.cjs +1 -0
  49. package/dist/index-Cbb4eaBp.js +343 -0
  50. package/dist/{index-BwMOEC4q.js → index-CdKgZ2A_.js} +22 -21
  51. package/dist/{index-DNweOPPD.cjs → index-CdrBTtcu.cjs} +1 -1
  52. package/dist/{index-e0mEoILb.js → index-Cg7Mpfpj.js} +13 -13
  53. package/dist/{index-DxvTyaZA.cjs → index-CuHxF23O.cjs} +1 -1
  54. package/dist/{index-C76FOIsp.js → index-D-kGKttu.js} +15 -14
  55. package/dist/{index-BeKB3RN2.js → index-D21dwfqO.js} +24 -24
  56. package/dist/index-D3qNUVY7.cjs +1 -0
  57. package/dist/{index-SZfR_fis.cjs → index-DAwnZFmG.cjs} +1 -1
  58. package/dist/{index-BL4nM14n.cjs → index-DLN6R2tJ.cjs} +1 -1
  59. package/dist/index-DTiolIgS.cjs +7 -0
  60. package/dist/{index-DPCE3lus.js → index-DTsHI5xQ.js} +2 -2
  61. package/dist/index-DXWN-UJr.cjs +1 -0
  62. package/dist/{index-BbPvKYdu.js → index-DXjgumn5.js} +5 -5
  63. package/dist/index-Df8bxCwR.js +665 -0
  64. package/dist/{index-0_jsBM-d.js → index-DfAmIlWW.js} +1505 -1501
  65. package/dist/{index-DTraz10-.cjs → index-DiPWs_9n.cjs} +1 -1
  66. package/dist/{index-Cpjq5z7o.js → index-DoEwWbTL.js} +24 -21
  67. package/dist/index-DsNHJYr-.cjs +1 -0
  68. package/dist/index-DtYkQPnf.cjs +1 -0
  69. package/dist/{index-C4InSXSr.js → index-Dx0DeTSC.js} +3698 -3650
  70. package/dist/{index-B_CkJtn2.js → index-DxhNwr8X.js} +1 -1
  71. package/dist/{index-BexCzyNE.js → index-H_NM-ZF-.js} +2 -2
  72. package/dist/{index-DwdykOc6.js → index-JG59WTIq.js} +1 -1
  73. package/dist/index-QG4F5kTH.js +2755 -0
  74. package/dist/{index-Bv70rbZ6.js → index-RSaGZhb3.js} +4 -4
  75. package/dist/index-W8p89C7t.cjs +1 -0
  76. package/dist/index-WTaP_KDd.cjs +1 -0
  77. package/dist/index-bPKGQ9bV.cjs +25 -0
  78. package/dist/{index-DaNy-S_9.js → index-cFt1QbzL.js} +33 -32
  79. package/dist/{index-BqkLBQns.js → index-gFBtUdzh.js} +15 -14
  80. package/dist/{index-BCKgE2pH.cjs → index-mHmXlK2R.cjs} +1 -1
  81. package/dist/{index-EiHA6j0x.cjs → index-qIpeOak9.cjs} +1 -1
  82. package/dist/index-vbxWL2yo.cjs +1 -0
  83. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BnwSB0LU.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DBQ_-V1_.js} +1974 -1968
  84. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DgWN3RSf.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DpyDtD61.cjs} +341 -341
  85. package/dist/isNil-CjWwlQS3.js +6 -0
  86. package/dist/isNil-x28vo2CT.cjs +1 -0
  87. package/dist/{isString-BLBZkTvd.js → isString-BA9CJNsy.js} +1 -1
  88. package/dist/{main-xxDziR4i.cjs → main-Avmwy4Fu.cjs} +2 -2
  89. package/dist/{main-Op9IAicu.js → main-Qn9bfEMh.js} +4 -4
  90. package/dist/menu-CtG1loFf.js +5637 -0
  91. package/dist/menu-Hdw0L-Y2.cjs +12 -0
  92. package/dist/{menuIndex-CtfirKit.js → menuIndex-DmS5cMwB.js} +44 -42
  93. package/dist/menuIndex-DqY0uteo.cjs +1 -0
  94. package/dist/obj/model.mtl +42 -0
  95. package/dist/obj/model.obj +26110 -0
  96. package/dist/{request-B3-w_S8Z.js → request-CoGtW0Ux.js} +60 -60
  97. package/dist/ss-component.cjs +1 -1
  98. package/dist/ss-component.css +1 -1
  99. package/dist/ss-component.js +19 -18
  100. package/dist/ss-component2.cjs +1 -1
  101. package/dist/ss-component2.js +13 -13
  102. package/dist/threeModel-Dr6PqFqA.cjs +1 -0
  103. package/dist/{threeModel-BQJlwx1b.js → threeModel-L66n6sW7.js} +5 -5
  104. package/dist/{threePreview-BvoOwR3P.js → threePreview-BwElOyqr.js} +5 -5
  105. package/dist/threePreview-CWRtmSvh.cjs +1 -0
  106. package/dist/{threeSceneView-Bza4Zdhc.js → threeSceneView-BEwen70K.js} +17 -15
  107. package/dist/{threeSceneView-B-mp8ti2.cjs → threeSceneView-BpPiRRPf.cjs} +1 -1
  108. package/dist/{threeSceneViewForCPMPIP-BDnRICpT.js → threeSceneViewForCPMPIP-BIiU_5px.js} +9 -9
  109. package/dist/{threeSceneViewForCPMPIP-E53xQhDU.cjs → threeSceneViewForCPMPIP-DpwlxGoP.cjs} +1 -1
  110. package/dist/{threeTrackPathView-BvdroPQT.js → threeTrackPathView-BckFDqUs.js} +6 -6
  111. package/dist/threeTrackPathView-CamXHHnK.cjs +1 -0
  112. package/dist/threeViewerHost-DLLTNlTR.cjs +1 -0
  113. package/dist/{threeViewerHost-DH4wt41-.js → threeViewerHost-DQz7pHM9.js} +3 -3
  114. package/dist/{urdfTree-HXxyasgJ.js → urdfTree-B6GL3kgV.js} +1 -1
  115. package/dist/{urdfTree-qfvqhztE.cjs → urdfTree-DDQw6tEb.cjs} +1 -1
  116. package/dist/{workpieceTreePanel-Cv1PkuIU.cjs → workpieceTreePanel-B6AVU13A.cjs} +1 -1
  117. package/dist/{workpieceTreePanel-CZR_19oS.js → workpieceTreePanel-BvO881iH.js} +4 -4
  118. package/package.json +1 -1
  119. package/public/obj/model.mtl +42 -0
  120. package/public/obj/model.obj +26110 -0
  121. package/dist/animationData-DKQAQ0Q6.cjs +0 -1
  122. package/dist/array-BQQV2GhI.cjs +0 -1
  123. package/dist/clone-CJYoRgdn.js +0 -8
  124. package/dist/clone-DkrZ-gjv.cjs +0 -1
  125. package/dist/index-5y5usJED.cjs +0 -1
  126. package/dist/index-AxVVkBRT.cjs +0 -1
  127. package/dist/index-BGlBomlq.cjs +0 -1
  128. package/dist/index-BSRFHLJm.cjs +0 -17
  129. package/dist/index-Bp1JJaW7.cjs +0 -1
  130. package/dist/index-BsdseSUM.cjs +0 -15
  131. package/dist/index-CUfzk-1j.cjs +0 -1
  132. package/dist/index-Cqn5PC2I.js +0 -672
  133. package/dist/index-D130jckG.cjs +0 -1
  134. package/dist/index-D4QLgaiH.cjs +0 -1
  135. package/dist/index-DGL0VTV1.cjs +0 -25
  136. package/dist/index-DM9A0QSh.cjs +0 -1
  137. package/dist/index-DVtUGC93.js +0 -349
  138. package/dist/index-D_TB8ir5.cjs +0 -1
  139. package/dist/index-DbfAkYyy.js +0 -89
  140. package/dist/index-DeDxP61d.cjs +0 -1
  141. package/dist/index-Dg5_a2Ay.cjs +0 -2
  142. package/dist/index-HeRIcJsN.cjs +0 -1
  143. package/dist/index-IFC0gmAb.cjs +0 -1
  144. package/dist/index-J1KoqqvS.js +0 -630
  145. package/dist/index-L7-gj3tB.cjs +0 -1
  146. package/dist/index-NHpnAgSO.cjs +0 -1
  147. package/dist/index-_foYuOcj.js +0 -9047
  148. package/dist/index-ayjWbW0b.cjs +0 -1
  149. package/dist/index-goFvtphp.cjs +0 -1
  150. package/dist/index-thsS5Z7G.cjs +0 -1
  151. package/dist/menuIndex-Dqei7A5D.cjs +0 -1
  152. package/dist/threeModel-CPgKY4_u.cjs +0 -1
  153. package/dist/threePreview-BkJHSJf8.cjs +0 -1
  154. package/dist/threeTrackPathView-BMbgm6yw.cjs +0 -1
  155. package/dist/threeViewerHost-Dpt8UN_F.cjs +0 -1
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-NHpnAgSO.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DgWN3RSf.cjs");require("./index-BpPyaNFa.cjs");const b=require("./index-BsdseSUM.cjs");require("./index-DxvTyaZA.cjs");const _=require("./index-BSRFHLJm.cjs");require("./request-BC2w2vGr.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,349 +0,0 @@
1
- import { watch as ve, ref as L, computed as A } from "vue";
2
- import { i as B, f as U, w as Le } from "./index-Bv70rbZ6.js";
3
- import { s as Te, b as z, p as O, u as Re, t as De, c as P, F as V, E as Ee, i as Ae, ad as Be, ae as Ue, af as Pe, ag as xe, ah as Se, ai as ke } from "./index-_foYuOcj.js";
4
- import { s as G } from "./request-B3-w_S8Z.js";
5
- const qe = z(O), { systemUrl: g } = Te(qe);
6
- let x = g.value === "" || !g.value ? "http://222.92.178.198:63002" : g.value;
7
- ve(
8
- () => g.value,
9
- () => {
10
- x = g.value === "" || !g.value ? "http://222.92.178.198:63002" : g.value;
11
- },
12
- { deep: !0, immediate: !0 }
13
- );
14
- function Fe(s) {
15
- return G({
16
- url: `${x}/platform/import_data`,
17
- method: "post",
18
- data: s
19
- });
20
- }
21
- function Ne(s) {
22
- return G({
23
- url: `${x}/platform/export_data`,
24
- method: "post",
25
- data: s,
26
- responseType: "blob"
27
- });
28
- }
29
- function Ve(s = "") {
30
- const r = s.match(/filename\*=UTF-8''([^;]+)/i);
31
- if (r)
32
- return decodeURIComponent(r[1]);
33
- const p = s.match(/filename=["']?([^"';]+)["']?/);
34
- return p ? p[1] : "download.xlsx";
35
- }
36
- const Ce = (s) => {
37
- var y, I;
38
- const r = ((y = s == null ? void 0 : s.headers) == null ? void 0 : y["content-type"]) || "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", p = new Blob([s.data], { type: r }), i = (I = s == null ? void 0 : s.headers) == null ? void 0 : I["content-disposition"], T = Ve(i) || "数据.xlsx", d = window.URL.createObjectURL(p), m = document.createElement("a");
39
- m.href = d, m.setAttribute("download", T), document.body.appendChild(m), m.click(), document.body.removeChild(m), window.URL.revokeObjectURL(d);
40
- }, Ke = [
41
- {
42
- label: "编辑",
43
- value: "edit"
44
- },
45
- {
46
- label: "删除",
47
- value: "delete"
48
- }
49
- ], C = "role", f = {
50
- ENABLE: {
51
- value: "enable",
52
- label: "启用",
53
- tag: "primary"
54
- },
55
- DISABLED: {
56
- value: "disabled",
57
- label: "禁用",
58
- tag: "info"
59
- }
60
- }, u = {
61
- EDITABLE: {
62
- value: "editable",
63
- label: "可编辑",
64
- tag: "primary"
65
- },
66
- DISABLED: {
67
- value: "disabled",
68
- label: "不可编辑",
69
- tag: "info"
70
- }
71
- }, ze = {
72
- TABLE: {
73
- value: "Table"
74
- }
75
- }, Oe = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], We = () => {
76
- const s = z(), r = Re(O), p = L([]), i = () => {
77
- const t = s.loginUserInfo, { plat_id: e } = t || {};
78
- return e;
79
- }, T = A(() => {
80
- const t = s.loginUserInfo, { id: e } = t || {};
81
- return e;
82
- }), d = A(() => {
83
- const t = s.loginUserInfo, { layer: e } = t || {};
84
- return e === De;
85
- }), m = (t) => {
86
- const { propertyType: e } = t || {};
87
- return e === ze.TABLE.value;
88
- }, y = L({}), I = A(() => {
89
- var e;
90
- return d.value ? !0 : ((e = y.value) == null ? void 0 : e.status) === u.EDITABLE.value;
91
- }), M = (t) => {
92
- var l, c;
93
- const e = V(Date.now()), { user_name: a, id: n = 0 } = s.loginUserInfo || {}, o = P(t);
94
- return o.update_user_id = n, o.update_user_name = a, o.update_time = e, o.checked_ids = ((c = (l = o == null ? void 0 : o.main_ids) == null ? void 0 : l.map) == null ? void 0 : c.call(l, (w) => {
95
- const { id: v } = w;
96
- return v;
97
- })) || [], o;
98
- }, S = (t) => {
99
- let e = [];
100
- return t.forEach((a) => {
101
- var n;
102
- if (a.isPropertyLeaf) {
103
- const o = P(a);
104
- e.push(o);
105
- }
106
- a.children && ((n = a.children) == null ? void 0 : n.length) > 0 && (e = e.concat(S(a.children)));
107
- }), e;
108
- }, k = (t = []) => {
109
- let e = [];
110
- for (let a = 0; a < t.length; a++) {
111
- const n = t[a], o = n.children || [];
112
- delete n.children, e.push(n), o && o.length > 0 && (e = e.concat(k(o)));
113
- }
114
- return e;
115
- }, $ = (t) => {
116
- let e = [];
117
- return t.forEach((a) => {
118
- if (a.isPropertyLeaf) {
119
- const n = k(a.params);
120
- e = e.concat(n);
121
- }
122
- }), e;
123
- }, q = (t, e) => {
124
- const a = s.loginUserInfo, { user_name: n, id: o = 0 } = a || {}, l = V(Date.now());
125
- let c = {
126
- name: "",
127
- code: "",
128
- order_no: 1,
129
- data_scope: 1,
130
- remark: "",
131
- tenant_id: "",
132
- create_time: l,
133
- update_time: l,
134
- create_user_id: o,
135
- create_user_name: n,
136
- update_user_id: o,
137
- update_user_name: n,
138
- status: f.ENABLE.value,
139
- main_ids: [],
140
- checked_ids: [],
141
- params: []
142
- };
143
- const { checkAll: w, tree: v } = e || {};
144
- if (w && v) {
145
- const _ = S(v), we = _.map((E) => ({
146
- ...E,
147
- department_scope: "unlimited"
148
- }));
149
- c.main_ids = we, c.checked_ids = _.map((E) => E.id), c.params = $(_);
150
- }
151
- if (t) {
152
- const _ = M(t);
153
- c = {
154
- ...c,
155
- ..._
156
- };
157
- }
158
- return c;
159
- }, R = (t) => ({
160
- platId: i(),
161
- changeRoleData: [t]
162
- }), j = async (t) => await Se({
163
- platId: t
164
- }), H = async () => {
165
- var a;
166
- r.setImportLoading(!0);
167
- const t = i(), e = await j(t).finally(() => {
168
- r.setImportLoading(!1);
169
- });
170
- return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
171
- }, F = () => ({
172
- name: ""
173
- }), b = L(F()), Q = () => {
174
- b.value = F();
175
- }, h = L({
176
- pageNum: 1,
177
- pageSize: 10,
178
- total: 0,
179
- pageSizes: [5, 10, 20, 50, 100]
180
- }), K = (t) => {
181
- h.value.pageNum = t;
182
- }, W = (t) => {
183
- h.value.pageSize = t;
184
- }, J = () => ({
185
- platId: i(),
186
- pageNum: h.value.pageNum,
187
- pageSize: h.value.pageSize,
188
- filter: {
189
- ...b.value
190
- }
191
- }), X = async (t) => {
192
- var a;
193
- const e = await ke(t);
194
- return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
195
- }, Y = async () => {
196
- const t = J(), e = await X(t), { total: a } = e || {};
197
- return h.value.total = a, e || {};
198
- }, Z = async (t) => {
199
- delete t.role_id;
200
- const e = R(t);
201
- await xe(e);
202
- }, ee = async (t) => {
203
- r.setImportLoading(!0), await Z(t).finally(() => {
204
- r.setImportLoading(!1);
205
- });
206
- }, te = async (t) => {
207
- const e = R(t);
208
- await Pe(e);
209
- }, ae = async (t) => {
210
- r.setImportLoading(!0), await te(t).finally(() => {
211
- r.setImportLoading(!1);
212
- });
213
- }, ne = async (t) => {
214
- const e = i(), { role_id: a } = t;
215
- await Ue({
216
- platId: e,
217
- role_id: [a]
218
- });
219
- }, oe = async (t) => {
220
- await Ee.confirm("是否确认要删除", "", {
221
- showClose: !1,
222
- confirmButtonText: "确认",
223
- cancelButtonText: "取消",
224
- type: "warning",
225
- modalClass: "delete-role-message-modal",
226
- confirmButtonClass: "delete-role-confirm"
227
- }), r.setImportLoading(!0), await ne(t).finally(() => {
228
- r.setImportLoading(!1);
229
- });
230
- }, se = (t) => {
231
- const e = t.toUpperCase(), a = f == null ? void 0 : f[e];
232
- return (a == null ? void 0 : a.label) || t;
233
- }, re = (t) => {
234
- const e = t.toUpperCase(), a = f == null ? void 0 : f[e];
235
- return (a == null ? void 0 : a.tag) || "info";
236
- }, le = async (t) => {
237
- var a;
238
- const e = await Be(t);
239
- return ((a = e == null ? void 0 : e.data) == null ? void 0 : a.result) || [];
240
- }, ce = async (t) => {
241
- const a = {
242
- platId: i(),
243
- includeHidden: !0,
244
- roleIds: t
245
- };
246
- r.setImportLoading(!0);
247
- const n = await le(a).finally(() => {
248
- r.setImportLoading(!1);
249
- });
250
- p.value = n;
251
- }, ie = (t = "") => {
252
- const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
253
- return (a == null ? void 0 : a.label) || t;
254
- }, ue = (t = "") => {
255
- const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
256
- return (a == null ? void 0 : a.tag) || "info";
257
- }, D = (t) => t === u.EDITABLE.value, pe = (t, e) => {
258
- const { status: a } = t || {}, { tableOperate: n } = e || {};
259
- return !!(D(a) || n && Oe.includes(n));
260
- }, de = (t, e) => {
261
- const { status: a } = t || {};
262
- return D(a);
263
- }, me = (t, e) => {
264
- if (d.value)
265
- return !0;
266
- const { type: a } = e || {};
267
- if (B.TABLE === a)
268
- return pe(t, e);
269
- if (B.FORM === a)
270
- return de(t);
271
- const { status: n } = t || {};
272
- return D(n);
273
- }, fe = async () => {
274
- var o, l;
275
- const t = "系统管理/角色管理", e = i(), a = {
276
- pageName: t,
277
- platId: e,
278
- userId: T.value
279
- }, n = await Ae(a);
280
- return (l = (o = n == null ? void 0 : n.data) == null ? void 0 : o.result) == null ? void 0 : l[0];
281
- }, ge = async () => {
282
- if (!d.value)
283
- return y.value = await fe(), y;
284
- }, N = (t) => {
285
- const e = P(t);
286
- for (let a = 0; a < e.length; a++) {
287
- const n = e == null ? void 0 : e[a], { id: o, prop: l, children: c } = n || {};
288
- n.uniqueKey = `${o}_${l}`, c && (n.children = N(c));
289
- }
290
- return e;
291
- }, ye = async (t) => {
292
- var a;
293
- const e = await Fe(t);
294
- return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
295
- }, he = async (t) => {
296
- const e = new FormData(), a = q(), { create_user_id: n, update_user_id: o, create_user_name: l, update_user_name: c } = a;
297
- return e.set("platId", i()), e.set("file", t), e.set("tableType", C), e.set("create_user_id", n), e.set("update_user_id", o), e.set("create_user_name", l), e.set("update_user_name", c), await ye(e);
298
- }, _e = async (t) => await Ne(t), Ie = async () => {
299
- const e = {
300
- platId: i(),
301
- tableType: C,
302
- filter: b.value
303
- }, a = await _e(e);
304
- return Ce(a), a;
305
- }, be = [["名称", "编码", "备注", "状态"]];
306
- return {
307
- compType: B,
308
- getPlatId: i,
309
- isTableFeature: m,
310
- queryInfo: b,
311
- resetQuery: Q,
312
- pageInfo: h,
313
- setPageNum: K,
314
- setPageSize: W,
315
- initGetByPage: Y,
316
- initRoleList: H,
317
- initCreate: ee,
318
- initUpdate: ae,
319
- initDelete: oe,
320
- initRoleRequestData: R,
321
- initPropertyAuthTree: ce,
322
- propertyAuthTree: p,
323
- initRoleItem: q,
324
- isSuperAdmin: d,
325
- getStatusLabelByValue: se,
326
- getStatusTagByValue: re,
327
- getFeatureStatusLabelByValue: ie,
328
- getFeatureStatusTagByValue: ue,
329
- hasEditable: me,
330
- initRoleConfig: ge,
331
- hasRoleEditAuth: I,
332
- buildParamAuthTree: N,
333
- initImport: he,
334
- initExport: Ie,
335
- exportTemplate: async () => {
336
- const t = U.aoa_to_sheet(be), e = U.book_new();
337
- U.book_append_sheet(e, t, "角色"), Le(e, "角色模板.xlsx");
338
- }
339
- };
340
- };
341
- export {
342
- Fe as a,
343
- Ne as e,
344
- u as f,
345
- Ce as i,
346
- Ke as o,
347
- f as s,
348
- We as u
349
- };
@@ -1 +0,0 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("vue"),_=require("./index-DNweOPPD.cjs"),r=require("./index-BSRFHLJm.cjs"),f=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),m=(t,l,a)=>{var n,p,u,g;let e=l;e.title.text=(a==null?void 0:a.chartName)??"",e.xAxis.data=(n=r.cloneDeep(t))==null?void 0:n.map(i=>i.x),e.legend.data=(u=(p=r.cloneDeep(t))==null?void 0:p[0])!=null&&u.y?Object.keys(r.cloneDeep(t)[0].y):[];let o=[];return((g=e.legend.data)==null?void 0:g.length)>0&&r.cloneDeep(e.legend.data).forEach(i=>{var x;const y=(x=r.cloneDeep(t))==null?void 0:x.map(c=>{var h;return(h=c==null?void 0:c.y)==null?void 0:h[i]});o.push({name:i,type:"line",data:y})}),e.series=o,e},d=[{key:"折线图",value:{title:{text:"",left:"center",top:25,textStyle:{color:"#333",fontSize:18,fontWeight:"bold"}},tooltip:{trigger:"axis"},legend:{data:[]},grid:{left:"6%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",axisLabel:{interval:0},data:[]},yAxis:{type:"value"},series:[]}}],C={class:"eCharts"},D={__name:"index",props:{eChartContents:Array},setup(t){const l=t,a=s.ref({});return s.onMounted(()=>{var o;const e=l==null?void 0:l.eChartContents;a.value=m(r.cloneDeep(e==null?void 0:e.compData),(o=d==null?void 0:d.find(n=>(n==null?void 0:n.key)===(e==null?void 0:e.name)))==null?void 0:o.value,e==null?void 0:e.extraContent)}),(e,o)=>(s.openBlock(),s.createElementBlock("div",C,[s.createVNode(_.ssChart,{optionContents:a.value},null,8,["optionContents"])]))}},b=f._export_sfc(D,[["__scopeId","data-v-0440fac3"]]);exports.default=b;
@@ -1,89 +0,0 @@
1
- import { computed as s, ref as h, onMounted as A } from "vue";
2
- import { useRouter as _ } from "vue-router";
3
- import { b as C, u as U, p as R, t as S, c as M, i as b, n as D } from "./index-_foYuOcj.js";
4
- const i = {
5
- ALLOW: {
6
- value: "允许"
7
- },
8
- DENY: {
9
- value: "不允许"
10
- }
11
- }, N = "系统管理/用户管理", L = "用户列表", E = {
12
- title: "个人中心",
13
- path: "/个人中心",
14
- level: 1,
15
- show: !0,
16
- icon: "个人中心",
17
- carryData: !0,
18
- isPenultimate: !0,
19
- isRouter: !0,
20
- children: [],
21
- childMenus: []
22
- }, $ = () => {
23
- const u = _(), r = C(), a = U(R), c = s(() => {
24
- const t = r.loginUserInfo, { plat_id: e } = t || {};
25
- return e;
26
- }), p = s(() => {
27
- const t = r.loginUserInfo, { layer: e } = t || {};
28
- return e === S;
29
- }), d = (t) => {
30
- const { id: e } = t;
31
- return {
32
- id: e,
33
- password: "",
34
- allow_reset_password: i.DENY.value
35
- };
36
- }, l = h([]), f = s(() => {
37
- var e, n;
38
- const t = (n = (e = l.value) == null ? void 0 : e.find) == null ? void 0 : n.call(e, (o) => o.property_name === L);
39
- return t == null ? void 0 : t.object_id;
40
- }), w = async () => {
41
- var n;
42
- const t = {
43
- pageName: N,
44
- platId: c.value
45
- }, e = await b(t);
46
- return ((n = e == null ? void 0 : e.data) == null ? void 0 : n.result) || [];
47
- }, m = async () => {
48
- const t = await w();
49
- l.value = t || [];
50
- };
51
- A(async () => {
52
- await m();
53
- });
54
- const y = s(() => `content_${f.value}`), I = async (t) => ({
55
- platId: c.value,
56
- changeContents: [
57
- {
58
- tableContents: [t],
59
- tableName: y.value
60
- }
61
- ]
62
- }), g = (t) => {
63
- const { allow_reset_password: e } = t;
64
- return e === i.ALLOW.value;
65
- }, v = async (t) => {
66
- const { id: e, password: n, allow_reset_password: o } = t;
67
- return I({
68
- id: e,
69
- password: n,
70
- allow_reset_password: o
71
- });
72
- }, P = async (t) => {
73
- const e = await v(t);
74
- return await D(e);
75
- };
76
- return {
77
- isSuperAdmin: p,
78
- toPersonalCenter: () => {
79
- const t = M(E);
80
- a.setAsideMenus([t]), a.setActiveMenuPath(t == null ? void 0 : t.path), a.setActiveAsideMenu(t), u.push(t.path);
81
- },
82
- isAllowReplacePassword: g,
83
- initReplacePassword: async (t) => await P(t),
84
- initEditForm: d
85
- };
86
- };
87
- export {
88
- $ as u
89
- };
@@ -1 +0,0 @@
1
- "use strict";const t=require("vue"),u=require("./index-BSRFHLJm.cjs"),vt=require("./index-BpPyaNFa.cjs");require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DgWN3RSf.cjs");const gt=require("./request-BC2w2vGr.cjs"),kt=require("./index-CUw6nGTo.cjs"),Ct=require("./index-BsdseSUM.cjs"),Dt=require("vue-router"),qe=require("./index-RoXicHV9.cjs"),$=require("./index-CW4qJdP8.cjs"),It=require("./index-DGL0VTV1.cjs"),St=require("./menuIndex-Dqei7A5D.cjs"),m=require("./index-DxvTyaZA.cjs"),_t=require("./index-goFvtphp.cjs"),Bt=require("./_plugin-vue_export-helper-BHFhmbuH.cjs"),je=t.defineAsyncComponent(()=>Promise.resolve().then(()=>require("./index-BsdseSUM.cjs")).then(n=>n.index));je.install=n=>{n.component("ssMenu",je)};const Xe={__name:"index",props:{name:String},setup(n){const p=n,T=t.computed(()=>gt.Icons[p.name]);return t.onMounted(()=>{}),(h,r)=>{const l=t.resolveComponent("el-icon");return t.openBlock(),t.createBlock(l,null,{default:t.withCtx(()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(T.value)))]),_:1})}}},Pe=(n,p,T=0)=>{let h=n;return h!=null&&h.every(r=>Array.isArray(r))&&(h!=null&&h.every(r=>Array.isArray(r)&&r.length===1)?h=h==null?void 0:h.filter(r=>(r==null?void 0:r[0])!==(p==null?void 0:p[T])):h=h==null?void 0:h.map(r=>{if(r!=null&&r.find(l=>l===(p==null?void 0:p[T]))&&(p==null?void 0:p.length)!==1){let l=u.cloneDeep(p),c=r==null?void 0:r.filter(I=>I!==(l==null?void 0:l[T])),w=T+1,A=Pe(c,l,w),E=[];E.push(r==null?void 0:r[0]),A==null||A.forEach(I=>{E.push(I)}),r=E}return r})),h},Re=(n,p,T,h=0)=>{let r=n;return r!=null&&r.every(l=>Array.isArray(l))&&(r!=null&&r.every(l=>Array.isArray(l)&&l.length===1)?r.push([T]):r=r==null?void 0:r.map(l=>{if(l!=null&&l.find(c=>c===(p==null?void 0:p[h]))&&(p==null?void 0:p.length)!==1){let c=u.cloneDeep(p),w=l==null?void 0:l.filter(K=>K!==(c==null?void 0:c[h])),A=h+1,E=Re(w,c,T,A),I=[];I.push(l==null?void 0:l[0]),E==null||E.forEach(K=>{I.push(K)}),l=I}return l})),r},Oe=(n,p,T,h,r=0)=>{let l=n;return l!=null&&l.every(c=>Array.isArray(c))&&(l!=null&&l.every(c=>Array.isArray(c)&&c.length===1)?l=l==null?void 0:l.map(c=>((c==null?void 0:c[0])===T&&(c=[h]),c)):l=l==null?void 0:l.map(c=>{if(c!=null&&c.find(w=>w===(p==null?void 0:p[r]))&&(p==null?void 0:p.length)!==1){let w=u.cloneDeep(p),A=c==null?void 0:c.filter(P=>P!==(w==null?void 0:w[r])),E=r+1,I=Oe(A,w,T,h,E),K=[];K.push(c==null?void 0:c[0]),I==null||I.forEach(P=>{K.push(P)}),c=K}return c})),l};function Ye(n="menu"){return{name:n,components:{SvgIcon:vt.SvgIcon,ssMenu:je,DynamicIcon:Xe,ssDialog:kt.ssDialog,ssInput:Ct.ssInput},setup(p,{emit:T}){const h=t.defineProps({mode:{type:String,default:"vertical"}}),r=t.ref([{allowInherit:!1,operateType:"复制新增",operateIcon:"CopyAddMenu"},{allowInherit:!1,operateType:"删除",operateIcon:"DeleteMenu"},{allowInherit:!1,operateType:"修改菜单名",operateIcon:"FixedMenu"}]),l=u.useMenuState(),c=u.useModelComp(u.pinia),w=u.useLoginState(u.pinia),{loginUserInfo:A}=u.storeToRefs(w),E=t.ref(0),I=Dt.useRouter(),K=t.ref(),{asideMenus:P,menuTriggerType:s,platform:Ve}=u.storeToRefs(l),{fixMenuStatus:Fe}=u.storeToRefs(c),{isSuperAdmin:Le}=_t.useRole(),Ne=t.computed(()=>h==null?void 0:h.mode),q=o=>o==null?void 0:o.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=q(e.children)),e}),Ue=t.computed(()=>{let o=[...P.value];if((o==null?void 0:o.length)===0)return I.push("/"),[];const a=ot(o,tt.value);return a.isFlag||(o=a==null?void 0:a.data),o=o==null?void 0:o.map(e=>{var k,C;return!(e!=null&&e.children)||((k=e==null?void 0:e.children)==null?void 0:k.length)===0?e.config=r.value:e!=null&&e.children&&((C=e==null?void 0:e.children)==null?void 0:C.length)>0&&(e.children=q(e.children)),e}),o}),He=async(o,a)=>{c.setRouteToChildPath(""),l.setMenuTriggerType("click"),l.setActiveMenuPath(o==null?void 0:o.path),l.setActiveAsideMenu(o),o.isRouter?I.push(o.path):I.push("/"),T("node-click",o,a)},me=async o=>{const a=St.findNodeByPropInTree(Ue.value,"path",o);l.setActiveAsideMenu(a),c.setRouteToChildPath(""),Fe.value?c.setFixMenuStatus(!1):(Z.value&&(s.value="open"),s.value==="click"?E.value===1?l.setActiveMenuPath(sessionStorage.getItem("pageKey")):l.setActiveMenuPath(o):Z.value||(l.setMenuTriggerType("click"),l.setActiveMenuPath(o))),o!=null&&o.startsWith("/")?I.push(o):I.push("/"),E.value++},et=o=>{Z.value||l.setActiveMenuPath(o)},X=o=>{const a=document.documentElement;o==null||o.forEach(e=>{a.style.setProperty(e.name,e.value)})};t.onMounted(()=>{E.value=1});const tt=t.computed(()=>{const o=sessionStorage.getItem("authority");return o?JSON.parse(o):[]});t.watch(()=>Ve.value,o=>{o==="browser"?X(qe.browserVerticalMenuClasses):o==="client"?(X(qe.clientHorizontalMenuClasses),X(qe.clientVerticalMenuClasses)):o==="three"&&(X(qe.threeHorizontalMenuClasses),X(qe.threeVerticalMenuClasses))},{immediate:!0});const ot=(o,a)=>({isFlag:!0}),R=t.reactive({show:!1,title:"菜单配置",width:"30%",type:"create"}),lt=o=>It.getComponent(o),at=t.ref({}),st=t.ref([]),ee=t.ref({}),Y=t.ref({}),it=o=>{switch(o){case"复制新增":return"create";case"修改菜单名":return"update";case"删除":return"delete"}},ze=t.ref({}),rt=o=>{l.setCacheInputMenu({type:R.type,data:o}),l.setIsRefreshMenus(!0)},nt=async(o,a,e)=>{var k,C,_,z,M,H,U,te,oe,le,ae,se,ie,re,ne,ce,pe,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,Be,be,we,Te,Ee,Me,xe,ue,Ae,y,V,F,B;if(a==="create"){let d=(e==null?void 0:e.title)+"(1)",x=await $.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(C=(k=x==null?void 0:x.data)==null?void 0:k.result)==null?void 0:C[0],J=(_=S==null?void 0:S.value)==null?void 0:_.pageData;J.compData=(z=J.compData)==null?void 0:z.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Re(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"),d)),i}),await $.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}});let L=(H=(M=e==null?void 0:e.path)==null?void 0:M.split("/"))==null?void 0:H.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}),N=await m.getItemData((oe=(te=(U=e==null?void 0:e.path)==null?void 0:U.split("/"))==null?void 0:te.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:oe.join("/"),sessionStorage.getItem("systemKey"),"");if(L.push(d),L=L==null?void 0:L.join("/"),(N==null?void 0:N.length)>0){let i=N==null?void 0:N[0],f=(ae=(le=i==null?void 0:i.compData)==null?void 0:le.find(g=>(g==null?void 0:g.key)==="header"))==null?void 0:ae.contents;if(((se=f==null?void 0:f[0])==null?void 0:se.directiveLabel)==="#isMain"){let g=(ie=f==null?void 0:f[0])==null?void 0:ie.prop,D=(ne=(re=i==null?void 0:i.compData)==null?void 0:re.find(b=>(b==null?void 0:b.key)==="tableContents"))==null?void 0:ne.contents,W;D==null||D.forEach(b=>{var G,O;if(b.length===1)((G=b==null?void 0:b[0])==null?void 0:G[g])===(e==null?void 0:e.title)&&(W=b==null?void 0:b[0],W[g]=d);else{let Q=(O=f==null?void 0:f.filter(j=>j!=="操作"))==null?void 0:O.map(j=>j==null?void 0:j.prop),$e=b==null?void 0:b.filter(j=>!(j!=null&&j.id)),Ke=m.getValueToObjectValue($e,Q);Ke[g]=d,W=Ke}}),await $.createInsofDataApi({key:{type:"data",pageKey:(de=(pe=(ce=e==null?void 0:e.path)==null?void 0:ce.split("/"))==null?void 0:pe.filter((b,G)=>{var O,Q;return G!==((Q=(O=e==null?void 0:e.path)==null?void 0:O.split("/"))==null?void 0:Q.length)-1}))==null?void 0:de.join("/"),tableId:i==null?void 0:i.id,systemKey:sessionStorage.getItem("systemKey"),createUserId:(fe=A.value)==null?void 0:fe.id,createUserLayer:((he=A.value)==null?void 0:he.dept)||((ye=A.value)==null?void 0:ye.部门名称)},value:{tableData:W}})}}await m.newLoadingConstruct(e==null?void 0:e.path,L),l.setUpdateMenuStatus(!1),await u.verifyStructureDataToStore(),l.setActiveMenuPath((ke=(ge=(ve=e==null?void 0:e.path)==null?void 0:ve.split("/"))==null?void 0:ge.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:ke.join("/")),l.setActiveTopMenuPath((De=(Ce=e==null?void 0:e.path)==null?void 0:Ce.split("/"))==null?void 0:De[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}else if(a==="update")K.value=e;else if(a==="delete"){let d=await $.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:e==null?void 0:e.path}}),x=await $.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),S=(Se=(Ie=x==null?void 0:x.data)==null?void 0:Ie.result)==null?void 0:Se[0],J=(_e=S==null?void 0:S.value)==null?void 0:_e.pageData;if(J.compData=(Be=J.compData)==null?void 0:Be.map(i=>{var f;return(i==null?void 0:i.key)==="menuContents"&&(i.contents=Pe(i.contents,(f=e==null?void 0:e.path)==null?void 0:f.split("/"))),i}),await $.updateInsofDataApi({id:S==null?void 0:S.id,value:{pageData:J}}),((we=(be=d==null?void 0:d.data)==null?void 0:be.result)==null?void 0:we.length)>0){let i=(Ee=(Te=d==null?void 0:d.data)==null?void 0:Te.result)==null?void 0:Ee.map(f=>f==null?void 0:f.id);(i==null?void 0:i.length)>0&&await $.batchDeleteInsofDataApi({ids:i})}let L=await m.getItemData((ue=(xe=(Me=e==null?void 0:e.path)==null?void 0:Me.split("/"))==null?void 0:xe.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:ue.join("/"),sessionStorage.getItem("systemKey"),""),N=[];(L==null?void 0:L.length)>0&&(L==null||L.forEach(i=>{var g,D,W,b,G,O,Q,$e,Ke,j,Je;let f=(b=(W=(D=(g=i==null?void 0:i.compData)==null?void 0:g.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:D.contents)==null?void 0:W[0])==null?void 0:b.prop;(($e=(Q=(O=(G=i==null?void 0:i.compData)==null?void 0:G.find(v=>(v==null?void 0:v.key)==="header"))==null?void 0:O.contents)==null?void 0:Q[0])==null?void 0:$e.directiveLabel)==="#isMain"&&((Je=(j=(Ke=i==null?void 0:i.compData)==null?void 0:Ke.find(v=>(v==null?void 0:v.key)==="tableContents"))==null?void 0:j.contents)==null||Je.forEach(v=>{var We,Ge,Qe;(v==null?void 0:v.length)>1?(v==null?void 0:v[1])===(e==null?void 0:e.title)&&N.push((We=v==null?void 0:v[0])==null?void 0:We.id):((Ge=v==null?void 0:v[0])==null?void 0:Ge[f])===(e==null?void 0:e.title)&&N.push((Qe=v==null?void 0:v[0])==null?void 0:Qe.id)}))})),(N==null?void 0:N.length)>0&&await $.batchDeleteInsofDataApi({ids:N}),l.setUpdateMenuStatus(!1),await u.verifyStructureDataToStore(),l.setActiveMenuPath((V=(y=(Ae=e==null?void 0:e.path)==null?void 0:Ae.split("/"))==null?void 0:y.filter((i,f)=>{var g,D;return f!==((D=(g=e==null?void 0:e.path)==null?void 0:g.split("/"))==null?void 0:D.length)-1}))==null?void 0:V.join("/")),l.setActiveTopMenuPath((B=(F=e==null?void 0:e.path)==null?void 0:F.split("/"))==null?void 0:B[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0)}},ct=async(o,a)=>{var te,oe,le,ae,se,ie,re,ne,ce,pe,de,fe,he,ye,ve,ge,ke,Ce,De,Ie,Se,_e,Be,be,we,Te,Ee,Me,xe,ue,Ae;let e=await $.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:"menu"}}),k=(oe=(te=e==null?void 0:e.data)==null?void 0:te.result)==null?void 0:oe[0],C=(le=k==null?void 0:k.value)==null?void 0:le.pageData;C.compData=(ae=C.compData)==null?void 0:ae.map(y=>{var V,F;return(y==null?void 0:y.key)==="menuContents"&&(y.contents=Oe(y.contents,(V=a==null?void 0:a.path)==null?void 0:V.split("/"),a==null?void 0:a.title,(F=o==null?void 0:o.target)==null?void 0:F.value)),y}),k!=null&&k.id&&await $.updateInsofDataApi({id:k==null?void 0:k.id,value:{pageData:C}});let _=(ie=(se=a==null?void 0:a.path)==null?void 0:se.split("/"))==null?void 0:ie.filter((y,V)=>{var F,B;return V!==((B=(F=a==null?void 0:a.path)==null?void 0:F.split("/"))==null?void 0:B.length)-1}),z=_==null?void 0:_.join("/");_.push((re=o==null?void 0:o.target)==null?void 0:re.value),_=_==null?void 0:_.join("/");let M=await m.getItemData(z,sessionStorage.getItem("systemKey"),"");if(((fe=(de=(pe=(ce=(ne=M==null?void 0:M[0])==null?void 0:ne.compData)==null?void 0:ce.find(y=>(y==null?void 0:y.key)==="header"))==null?void 0:pe.contents)==null?void 0:de[0])==null?void 0:fe.directiveLabel)==="#isMain"){let y=(ke=(ge=(ve=(ye=(he=M==null?void 0:M[0])==null?void 0:he.compData)==null?void 0:ye.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:ve.contents)==null?void 0:ge[0])==null?void 0:ke.prop,V=(Ie=(De=(Ce=M==null?void 0:M[0])==null?void 0:Ce.compData)==null?void 0:De.find(d=>(d==null?void 0:d.key)==="tableContents"))==null?void 0:Ie.contents,F=(be=(Be=(_e=(Se=M==null?void 0:M[0])==null?void 0:Se.compData)==null?void 0:_e.find(d=>(d==null?void 0:d.key)==="header"))==null?void 0:Be.contents)==null?void 0:be.map(d=>d==null?void 0:d.prop),B;if(V==null||V.forEach(d=>{var S;let x=m.getValueToObjectValue(d,F);(x==null?void 0:x[y])===a.title&&(B=x,B[y]=(S=o==null?void 0:o.target)==null?void 0:S.value)}),B){let d={};for(let S in B)S!=="id"&&(d[S]=B==null?void 0:B[S]);let x=[{id:B==null?void 0:B.id,value:{tableData:d}}];await $.batchUpdateInsofDataApi({dataList:x})}}let H=await $.getInsofDataApi({key:{systemKey:sessionStorage.getItem("systemKey"),pageKey:a==null?void 0:a.path}}),U=(Te=(we=H==null?void 0:H.data)==null?void 0:we.result)==null?void 0:Te.map(y=>({id:y==null?void 0:y.id,key:y==null?void 0:y.key}));U=U==null?void 0:U.map(y=>(y.key.pageKey=_,y)),(U==null?void 0:U.length)>0&&await $.batchUpdateInsofDataApi({dataList:U}),l.setUpdateMenuStatus(!1),await u.verifyStructureDataToStore(),l.setActiveMenuPath((xe=(Me=(Ee=a==null?void 0:a.path)==null?void 0:Ee.split("/"))==null?void 0:Me.filter((y,V)=>{var F,B;return V!==((B=(F=a==null?void 0:a.path)==null?void 0:F.split("/"))==null?void 0:B.length)-1}))==null?void 0:xe.join("/")),l.setActiveTopMenuPath((Ae=(ue=a==null?void 0:a.path)==null?void 0:ue.split("/"))==null?void 0:Ae[0]),l.setIsRefreshMenus(!1),l.setIsRefreshMenus(!0),K.value=void 0},pt=async(o,a)=>{R.type=it(a==null?void 0:a.operateType),await nt(a,R.type,o),Y.value=o,ze.value=a},dt=()=>{R.show=!1},ft=o=>o==null?void 0:o.filter(a=>a.allowInherit),ht=()=>{var e,k,C,_,z;let o;R.type==="create"&&(o=((e=Y.value)==null?void 0:e.path)+"/"+ee.value[(k=ee.value)==null?void 0:k.prop]),R.type==="update"&&(o=(C=Y.value)==null?void 0:C.path);const a={...Y.value,config:ft((_=Y.value)==null?void 0:_.config),children:[],childMenus:[],title:ee.value[(z=ee.value)==null?void 0:z.prop],path:o};console.log("clickSubmitForm",ze.value,Y.value,a),rt(a),R.show=!1},yt=o=>{var e,k;const a=(e=o==null?void 0:o.contents)==null?void 0:e.find(C=>C.key==="formContent");a&&(ee.value=(k=a==null?void 0:a.contents)==null?void 0:k.reduce((C,_)=>(C[_.key]=_.value,C.prop=_.key,C),{}))},Z=t.ref(!1);return{isCollapse:Z,handleMenuCollapse:()=>{Z.value=!Z.value},handleCompChange:yt,dialogForm:at,dialogRenderComps:st,getComponents:lt,clickSubmitForm:ht,dialogInfo:R,beforeDialogDestroy:dt,clickMenuIcon:pt,mode:Ne,renderMenuList:Ue,clickMenu:He,openMenu:me,closeMenu:et,changeMenuStyle:X,fixElement:K,onBlur:ct,isSuperAdmin:Le}}}}const bt=t.defineComponent(Ye()),wt=["title"],Tt={key:1,class:"menu-title",style:{display:"flex",width:"100px"}},Et={key:2,class:"menu-operate-icon"},Mt={class:"menu-config-wrap"},xt=["onClick"],ut={class:"module-dialog-content"};function At(n,p,T,h,r,l){var P;const c=t.resolveComponent("ss-input"),w=t.resolveComponent("svg-icon"),A=t.resolveComponent("el-popover"),E=t.resolveComponent("ss-menu"),I=t.resolveComponent("el-button"),K=t.resolveComponent("ss-dialog");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(E,{class:"vertical-menu",mode:n.mode,menuList:n.renderMenuList,isCollapse:n.isCollapse,uniqueOpened:!0,onClickMenu:n.clickMenu,onOpenMenu:n.openMenu,onCloseMenu:n.closeMenu},{title:t.withCtx(({menu:s})=>{var Ve,Fe,Le,Ne;return[!n.fixElement||(s==null?void 0:s.path)!==((Ve=n.fixElement)==null?void 0:Ve.path)?(t.openBlock(),t.createElementBlock("span",{key:0,title:s.title,class:"menu-title",style:t.normalizeStyle({marginRight:s!=null&&s.config&&((Fe=s==null?void 0:s.config)==null?void 0:Fe.length)>0?"25px":"1px"})},t.toDisplayString(s.title??""),13,wt)):t.createCommentVNode("",!0),n.fixElement&&(s==null?void 0:s.path)===((Le=n.fixElement)==null?void 0:Le.path)?(t.openBlock(),t.createElementBlock("span",Tt,[t.createVNode(c,{value:s.title,onBlur:q=>n.onBlur(q,s)},null,8,["value","onBlur"])])):t.createCommentVNode("",!0),s!=null&&s.config&&((Ne=s==null?void 0:s.config)==null?void 0:Ne.length)>0&&n.isSuperAdmin?(t.openBlock(),t.createElementBlock("span",Et,[t.createVNode(A,{title:"",placement:"bottom-start",trigger:"hover","popper-class":"menu-operate-popover"},{reference:t.withCtx(()=>[t.createVNode(w,{name:"more",style:{cursor:"pointer",width:"15px",height:"15px"}})]),default:t.withCtx(()=>[t.createElementVNode("div",Mt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s==null?void 0:s.config,q=>(t.openBlock(),t.createElementBlock("div",{class:"menu-config-item",key:q.id,onClick:Ue=>n.clickMenuIcon(s,q)},[t.createVNode(w,{name:q==null?void 0:q.operateIcon,style:{width:"15px",height:"15px","margin-right":"8px"}},null,8,["name"]),t.createElementVNode("span",null,t.toDisplayString(q==null?void 0:q.operateType),1)],8,xt))),128))])]),_:2},1024)])):t.createCommentVNode("",!0)]}),_:1},8,["mode","menuList","isCollapse","onClickMenu","onOpenMenu","onCloseMenu"]),((P=n.renderMenuList)==null?void 0:P.length)>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fold-icon",onClick:p[0]||(p[0]=(...s)=>n.handleMenuCollapse&&n.handleMenuCollapse(...s))},[t.createVNode(w,{name:n.isCollapse?"expand":"pack",style:{width:"15px",height:"15px"}},null,8,["name"])])):t.createCommentVNode("",!0),t.createVNode(K,{class:"module-dialog",title:n.dialogInfo.title,visible:n.dialogInfo.show,width:n.dialogInfo.width,onBeforeDestroy:n.beforeDialogDestroy},{default:t.withCtx(()=>[t.createElementVNode("div",ut,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.dialogRenderComps,s=>(t.openBlock(),t.createElementBlock("div",{key:s.id},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(n.getComponents((s==null?void 0:s.comp)??"Input")),{itemData:s==null?void 0:s.compData,key:s==null?void 0:s.id,content:(s==null?void 0:s.contents)??[],config:s==null?void 0:s.config,onContentChange:n.handleCompChange},null,40,["itemData","content","config","onContentChange"]))]))),128))])]),footer:t.withCtx(()=>[t.createElementVNode("div",null,[t.createVNode(I,{id:"themeBorderButton",onClick:n.beforeDialogDestroy},{default:t.withCtx(()=>p[1]||(p[1]=[t.createTextVNode("取消")])),_:1,__:[1]},8,["onClick"]),t.createVNode(I,{id:"themeButton",onClick:n.clickSubmitForm},{default:t.withCtx(()=>p[2]||(p[2]=[t.createTextVNode(" 确认 ")])),_:1,__:[2]},8,["onClick"])])]),_:1},8,["title","visible","width","onBeforeDestroy"])],64)}const Ze=Bt._export_sfc(bt,[["render",At],["__scopeId","data-v-b8641e04"]]),Kt=Object.freeze(Object.defineProperty({__proto__:null,addSelectMenu:Re,default:Ze,deleteSelectMenu:Pe,fixSelectMenu:Oe,setComponent:Ye},Symbol.toStringTag,{value:"Module"}));exports._sfc_main=Xe;exports.index=Kt;exports.ssMenu=je;exports.ssVMenu=Ze;