ss-component-new 1.3.735 → 1.3.737

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 (130) hide show
  1. package/dist/JSEncrypt-B36c1iN5.js +1983 -0
  2. package/dist/MTLLoader-CkNZudBE.js +657 -0
  3. package/dist/URDFLoader-DIzEVzUD.js +2299 -0
  4. package/dist/__vite-browser-external-DYxpcVy9.js +4 -0
  5. package/dist/animationData-DvL_4GZ5.js +83 -0
  6. package/dist/array-BN2tTnqd.js +1045 -0
  7. package/dist/clone-Dp_gc9ll.js +8 -0
  8. package/dist/config.js +1 -1
  9. package/dist/eleIcon-qStmsM1q.js +29 -0
  10. package/dist/fileUtil-UOt_otFo.js +20 -0
  11. package/dist/iconfont-BwY2qVoK.js +1030 -0
  12. package/dist/icons/svg/functionList.svg +1 -0
  13. package/dist/icons/svg/method.svg +1 -0
  14. package/dist/index-11kpzK0A.js +209 -0
  15. package/dist/index-5S_ATziA.js +25341 -0
  16. package/dist/index-B0H3C7WG.js +103 -0
  17. package/dist/index-B6ePvQgB.js +83 -0
  18. package/dist/index-BHtNKL1L.js +27 -0
  19. package/dist/index-BQrVYtnl.js +201 -0
  20. package/dist/index-BbyrFzEO.js +93 -0
  21. package/dist/index-Bej2dPck.js +873 -0
  22. package/dist/index-BooO2Bml.js +78 -0
  23. package/dist/index-BqZj6gM7.js +470 -0
  24. package/dist/index-Bw3sTXPI.js +8993 -0
  25. package/dist/index-BzUgGzuc.js +48 -0
  26. package/dist/index-C9nks7xM.js +30 -0
  27. package/dist/index-CGi0g-VN.js +627 -0
  28. package/dist/index-CV_jQDcg.js +9 -0
  29. package/dist/index-CWOXvFfD.js +44 -0
  30. package/dist/index-CWpFqtvA.js +1000 -0
  31. package/dist/index-CYwlat81.js +20578 -0
  32. package/dist/index-Cflxz2Xv.js +572 -0
  33. package/dist/index-Ch8te5LO.js +411 -0
  34. package/dist/{index-DyhB-cd1.js → index-ChNfRlIP.js} +18 -253
  35. package/dist/index-Ckqlxqaw.js +119 -0
  36. package/dist/index-CpGn7sfE.js +93 -0
  37. package/dist/index-CydXQbtX.js +622 -0
  38. package/dist/index-DG4hoOWt.js +665 -0
  39. package/dist/index-DUbk5m5P.js +99 -0
  40. package/dist/index-DbHIH067.js +107 -0
  41. package/dist/index-DhUE8pTF.js +61 -0
  42. package/dist/index-Dhjj5seQ.js +98 -0
  43. package/dist/index-Ds6m_4JJ.js +28500 -0
  44. package/dist/index-DyCq_odP.js +331 -0
  45. package/dist/index-Ru-cNTPj.js +84 -0
  46. package/dist/index-UB_oCdlo.js +62 -0
  47. package/dist/index-XcH1poa0.js +63306 -0
  48. package/dist/index-YjBTGOkO.js +61 -0
  49. package/dist/index-jbOjjV0j.js +447 -0
  50. package/dist/index-rlStojTL.js +52 -0
  51. package/dist/index-uF-ibwG0.js +9 -0
  52. package/dist/index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js +137927 -0
  53. package/dist/isString-0ZglyOfu.js +8 -0
  54. package/dist/localIcon-D5UoFBU5.js +76 -0
  55. package/dist/main-BCc8TzAj.js +502 -0
  56. package/dist/menuIndex-BB0uVPRX.js +159 -0
  57. package/dist/obj/model.mtl +42 -0
  58. package/dist/obj/model.obj +26110 -0
  59. package/dist/pyodide-Dc1Mu-0d.js +489 -0
  60. package/dist/request-1RPa2bBn.js +9048 -0
  61. package/dist/ss-component.css +8 -2
  62. package/dist/ss-component.js +64 -28
  63. package/dist/ss-component2.js +75 -15
  64. package/dist/ss-component3.js +1 -1
  65. package/dist/threeModel-BXXLFYOy.js +1109 -0
  66. package/dist/threePreview-DUfFZQ5q.js +3091 -0
  67. package/dist/threeSceneView-Dez2tha0.js +1290 -0
  68. package/dist/threeSceneViewForCPMPIP-DDk128w_.js +539 -0
  69. package/dist/threeTrackPathView-DmE9QE_0.js +620 -0
  70. package/dist/threeViewerHost-7g8xu3oh.js +233 -0
  71. package/dist/urdfTree-VRms7Vm3.js +254 -0
  72. package/dist/workpieceTreePanel-DCSz_IDY.js +559 -0
  73. package/package.json +8 -11
  74. package/public/config.js +1 -1
  75. package/public/icons/svg/functionList.svg +1 -0
  76. package/public/icons/svg/method.svg +1 -0
  77. package/public/obj/model.mtl +42 -0
  78. package/public/obj/model.obj +26110 -0
  79. package/dist/index-8KTFGqOM.js +0 -25
  80. package/dist/index-A8OE-eSF.js +0 -29
  81. package/dist/index-B2xkIV6C.js +0 -25
  82. package/dist/index-B3v82KuY.js +0 -1044
  83. package/dist/index-BggN-zvK.js +0 -634
  84. package/dist/index-C0HH0uAE.js +0 -188
  85. package/dist/index-C0U2Epeo.js +0 -25
  86. package/dist/index-C8GSZPvd.js +0 -4
  87. package/dist/index-CA0CoKiz.js +0 -25
  88. package/dist/index-CHjBtkir.js +0 -4
  89. package/dist/index-CJP9hdx4.js +0 -53
  90. package/dist/index-COeMUCuq.js +0 -213
  91. package/dist/index-COxVr3MC.js +0 -4
  92. package/dist/index-CXoQiaXz.js +0 -27
  93. package/dist/index-CdanNGTM.js +0 -4
  94. package/dist/index-CfwzR4gE.js +0 -469
  95. package/dist/index-CoEteqj_.js +0 -4
  96. package/dist/index-Cqt27z96.js +0 -23
  97. package/dist/index-Cqyl2URI.js +0 -32
  98. package/dist/index-CsdL6xGl.js +0 -181
  99. package/dist/index-CuIbbhNo.js +0 -25
  100. package/dist/index-D1WMhpsE.js +0 -26
  101. package/dist/index-D3G5ymZc.js +0 -4
  102. package/dist/index-D5oMkTBW.js +0 -35
  103. package/dist/index-DGogREB4.js +0 -26
  104. package/dist/index-DRqX_bCT.js +0 -4
  105. package/dist/index-DbUt70zC.js +0 -50
  106. package/dist/index-DnLZtsZU.js +0 -4
  107. package/dist/index-IoMa0kLh.js +0 -27
  108. package/dist/index-JkTP1vyC.js +0 -4
  109. package/dist/index-boICNvPL.js +0 -4
  110. package/dist/index-qO33lx52.js +0 -50664
  111. package/dist/index-uriwf_fo.js +0 -4
  112. package/dist/index.vue_vue_type_script_setup_true_lang-B-JCE78v.js +0 -21
  113. package/dist/index.vue_vue_type_script_setup_true_lang-BSZB17y-.js +0 -42
  114. package/dist/index.vue_vue_type_script_setup_true_lang-Brir5Bym.js +0 -41
  115. package/dist/index.vue_vue_type_script_setup_true_lang-BrnE_n0l.js +0 -25
  116. package/dist/index.vue_vue_type_script_setup_true_lang-C7BgxSz4.js +0 -28
  117. package/dist/index.vue_vue_type_script_setup_true_lang-CARZt7yC.js +0 -25
  118. package/dist/index.vue_vue_type_script_setup_true_lang-CVALRKBG.js +0 -48
  119. package/dist/index.vue_vue_type_script_setup_true_lang-CsThRoDZ.js +0 -28
  120. package/dist/index.vue_vue_type_script_setup_true_lang-CuwhbWHH.js +0 -39
  121. package/dist/index.vue_vue_type_script_setup_true_lang-DAb-qhJ1.js +0 -40
  122. package/dist/index.vue_vue_type_script_setup_true_lang-DimtrEJj.js +0 -26
  123. package/dist/menu-ClNHLze7.js +0 -5208
  124. package/dist/platform-CPTootse.js +0 -11429
  125. /package/dist/icons/svg/{update.svg → Update.svg} +0 -0
  126. /package/dist/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  127. /package/dist/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
  128. /package/public/icons/svg/{update.svg → Update.svg} +0 -0
  129. /package/public/icons/svg/{table-close.svg → tableClose.svg} +0 -0
  130. /package/public/icons/svg/{table-expand.svg → tableExpand.svg} +0 -0
@@ -0,0 +1,103 @@
1
+ import { ref as _, computed as A } from "vue";
2
+ import { a as I, g as M } from "./index-YjBTGOkO.js";
3
+ import { E as N } from "./index-Bw3sTXPI.js";
4
+ import { E as s } from "./request-1RPa2bBn.js";
5
+ const K = _([]), T = A(() => [
6
+ {
7
+ key: "extraButton",
8
+ contents: [
9
+ {
10
+ label: "清空",
11
+ background: "#f56c6c",
12
+ color: "#ffffff"
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ key: "rowButton",
18
+ contents: []
19
+ },
20
+ {
21
+ key: "header",
22
+ contents: [
23
+ {
24
+ label: "账号",
25
+ prop: "account",
26
+ filterable: !0
27
+ },
28
+ {
29
+ label: "姓名",
30
+ prop: "userName",
31
+ filterable: !0
32
+ },
33
+ {
34
+ label: "时间",
35
+ prop: "timeStamp",
36
+ sortable: !0
37
+ }
38
+ ]
39
+ },
40
+ {
41
+ key: "tableContents",
42
+ contents: K.value
43
+ }
44
+ ]), j = (l, n, r) => {
45
+ l === "清空" && N.confirm("是否确认清空所有日志", "", {
46
+ confirmButtonText: "确认",
47
+ cancelButtonText: "取消",
48
+ type: "warning"
49
+ }).then(async () => {
50
+ var e, o;
51
+ try {
52
+ const a = await I({ ids: n });
53
+ ((e = a == null ? void 0 : a.data) == null ? void 0 : e.code) === 200 ? (s.success("清空日志成功"), r(!0)) : (s.error(((o = a == null ? void 0 : a.data) == null ? void 0 : o.message) ?? "清空请求响应失败"), r(!1));
54
+ } catch {
55
+ s.error("清空操作处理失败"), r(!1);
56
+ }
57
+ }).catch(() => {
58
+ r(!1);
59
+ });
60
+ }, O = async (l = "login") => {
61
+ var n, r, e;
62
+ try {
63
+ const o = await M({
64
+ key: {
65
+ systemKey: sessionStorage.getItem("systemKey"),
66
+ pageKey: "/log",
67
+ type: "system",
68
+ logType: l
69
+ }
70
+ });
71
+ if (((n = o == null ? void 0 : o.data) == null ? void 0 : n.code) === 200)
72
+ return (e = (r = o == null ? void 0 : o.data) == null ? void 0 : r.result) == null ? void 0 : e.map((a) => {
73
+ var t, u, c, p, f, d, y, g, v, b, S, h, w, B, D, x, E, k;
74
+ return l === "login" ? {
75
+ ...(u = (t = a == null ? void 0 : a.value) == null ? void 0 : t.detail) == null ? void 0 : u.data,
76
+ timeStamp: (c = a == null ? void 0 : a.value) == null ? void 0 : c.timeStamp,
77
+ id: a == null ? void 0 : a.id,
78
+ type: (f = (p = a == null ? void 0 : a.value) == null ? void 0 : p.detail) == null ? void 0 : f.type
79
+ } : {
80
+ timeStamp: (d = a == null ? void 0 : a.value) == null ? void 0 : d.timeStamp,
81
+ account: (y = a == null ? void 0 : a.value) == null ? void 0 : y.account,
82
+ userName: (g = a == null ? void 0 : a.value) == null ? void 0 : g.userName,
83
+ module: typeof ((v = a == null ? void 0 : a.value) == null ? void 0 : v.module) == "string" ? (S = (b = a == null ? void 0 : a.value) == null ? void 0 : b.module) != null && S.startsWith("/") ? (w = (h = a == null ? void 0 : a.value) == null ? void 0 : h.module) == null ? void 0 : w.substring(1) : (B = a == null ? void 0 : a.value) == null ? void 0 : B.module : (x = (D = a == null ? void 0 : a.value) == null ? void 0 : D.module) == null ? void 0 : x.pageKey,
84
+ id: a == null ? void 0 : a.id,
85
+ type: (k = (E = a == null ? void 0 : a.value) == null ? void 0 : E.detail) == null ? void 0 : k.type
86
+ };
87
+ });
88
+ s.error("获取数据响应失败");
89
+ } catch (o) {
90
+ throw new Error("获取数据失败" + o);
91
+ }
92
+ }, W = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
93
+ __proto__: null,
94
+ clickButton: j,
95
+ getLogTableDataAsync: O,
96
+ pageData: T,
97
+ tableData: K
98
+ }, Symbol.toStringTag, { value: "Module" }));
99
+ export {
100
+ W as S,
101
+ j as c,
102
+ O as g
103
+ };
@@ -0,0 +1,83 @@
1
+ import { ref as n, computed as c, defineComponent as s, reactive as p, onMounted as i, createElementBlock as u, openBlock as f, createVNode as b } from "vue";
2
+ import { W as m } from "./index-XcH1poa0.js";
3
+ import { g as d, c as _ } from "./index-B0H3C7WG.js";
4
+ import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
+ const l = n([]), g = c(() => [
6
+ {
7
+ key: "extraButton",
8
+ contents: [
9
+ {
10
+ label: "清空",
11
+ background: "#f56c6c",
12
+ color: "#ffffff"
13
+ }
14
+ ]
15
+ },
16
+ {
17
+ key: "rowButton",
18
+ contents: []
19
+ },
20
+ {
21
+ key: "header",
22
+ contents: [
23
+ {
24
+ label: "模块名称",
25
+ prop: "module",
26
+ filterable: !0
27
+ },
28
+ {
29
+ label: "操作类型",
30
+ prop: "type",
31
+ filterable: !0
32
+ },
33
+ {
34
+ label: "账号",
35
+ prop: "account",
36
+ filterable: !0
37
+ },
38
+ {
39
+ label: "姓名",
40
+ prop: "userName",
41
+ filterable: !0
42
+ },
43
+ {
44
+ label: "时间",
45
+ prop: "timeStamp",
46
+ sortable: !0
47
+ }
48
+ ]
49
+ },
50
+ {
51
+ key: "tableContents",
52
+ contents: l.value
53
+ }
54
+ ]), y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
55
+ __proto__: null,
56
+ pageData: g,
57
+ tableData: l
58
+ }, Symbol.toStringTag, { value: "Module" })), D = { class: "log-wrap" }, B = /* @__PURE__ */ s({
59
+ __name: "index",
60
+ setup(x) {
61
+ const e = p({ ...y });
62
+ i(async () => {
63
+ e.tableData = await d("operate");
64
+ });
65
+ const r = (o) => {
66
+ var t;
67
+ _(o, (t = e.tableData) == null ? void 0 : t.map((a) => a.id), (a) => {
68
+ a && (e.tableData = []);
69
+ });
70
+ };
71
+ return (o, t) => (f(), u("div", D, [
72
+ b(m, {
73
+ itemData: e.pageData,
74
+ allowOperate: !1,
75
+ allowSelect: !1,
76
+ onOnButtonClick: r
77
+ }, null, 8, ["itemData"])
78
+ ]));
79
+ }
80
+ }), O = /* @__PURE__ */ k(B, [["__scopeId", "data-v-3d3b471d"]]);
81
+ export {
82
+ O as default
83
+ };
@@ -0,0 +1,27 @@
1
+ import { computed as s, createElementBlock as a, openBlock as c, mergeProps as l, toHandlers as i, createElementVNode as m } from "vue";
2
+ import { _ as p } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
+ const u = ["xlink:href"], _ = {
4
+ __name: "index",
5
+ props: {
6
+ name: {
7
+ type: String,
8
+ required: !0
9
+ },
10
+ className: {
11
+ type: String,
12
+ default: ""
13
+ }
14
+ },
15
+ setup(t) {
16
+ const e = t, n = s(() => `#icon-${e.name}`), o = s(() => e.className ? `svg-icon ${e.className}` : "svg-icon");
17
+ return (r, d) => (c(), a("svg", l({
18
+ class: o.value,
19
+ "aria-hidden": "true"
20
+ }, i(r.$attrs, !0)), [
21
+ m("use", { "xlink:href": n.value }, null, 8, u)
22
+ ], 16));
23
+ }
24
+ }, f = /* @__PURE__ */ p(_, [["__scopeId", "data-v-b0571675"]]);
25
+ export {
26
+ f as S
27
+ };
@@ -0,0 +1,201 @@
1
+ import { defineComponent as W, ref as z, computed as N, watch as y, nextTick as V, onMounted as k, onUnmounted as G, resolveComponent as $, createElementBlock as L, openBlock as w, createBlock as q } from "vue";
2
+ import { b as J, p as h, s as v, d as Q, a as X, u as Y, g as Z, v as p } from "./index-Bw3sTXPI.js";
3
+ import { l as ee } from "./index-DhUE8pTF.js";
4
+ import { useRouter as te } from "vue-router";
5
+ import { _ as ne } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
+ const oe = { key: 0 }, ae = /* @__PURE__ */ W({
7
+ __name: "index",
8
+ props: {
9
+ windowConfig: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ },
14
+ systemInfo: {
15
+ type: Object,
16
+ default: () => {
17
+ }
18
+ },
19
+ systemKey: {
20
+ type: String,
21
+ default: ""
22
+ },
23
+ pathContent: {
24
+ type: String,
25
+ default: ""
26
+ },
27
+ mode: {
28
+ type: String,
29
+ default: "view"
30
+ },
31
+ content: {
32
+ type: String,
33
+ default: ""
34
+ },
35
+ jsonContents: {
36
+ type: Array,
37
+ default: () => []
38
+ },
39
+ showButton: {
40
+ type: Boolean,
41
+ default: !1
42
+ },
43
+ nodeDev: {
44
+ type: String,
45
+ default: ""
46
+ },
47
+ pageKey: {
48
+ type: String,
49
+ default: ""
50
+ },
51
+ interfaceContent: {
52
+ type: Array,
53
+ default: () => []
54
+ },
55
+ loginContent: {
56
+ type: Object,
57
+ default: () => {
58
+ }
59
+ },
60
+ menuFiles: {
61
+ type: Array,
62
+ default: () => []
63
+ },
64
+ workspaceHistoryData: {
65
+ type: Array,
66
+ default: () => []
67
+ },
68
+ // 用于打开/拣选工作区
69
+ workspaceInfo: {
70
+ type: Object,
71
+ default: () => []
72
+ }
73
+ },
74
+ emits: ["buildContent", "openThreeBuild", "threeData", "setLoginInfo", "projectLogin", "updateApiUrl", "clearFileContent", "systemContent", "getMenuPathValue", "executeWorkspace", "updateVersion"],
75
+ setup(m, { emit: _ }) {
76
+ const A = te(), d = J(h), { loginUserInfo: s } = v(d), { initSystemInfo: D } = Q(), F = X(h), { refreshLogin: E } = v(F), f = Y(h), g = z(!0), { activeMenuPath: I } = v(f), e = m, o = _, j = N(() => {
77
+ var t, n;
78
+ return (e == null ? void 0 : e.showButton) || ((n = (t = s.value) == null ? void 0 : t.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
79
+ }), B = (t) => {
80
+ o("systemContent", t);
81
+ }, M = () => {
82
+ o("updateVersion");
83
+ }, T = () => {
84
+ o("clearFileContent");
85
+ };
86
+ y(
87
+ () => e == null ? void 0 : e.menuFiles,
88
+ () => {
89
+ var t;
90
+ ((t = e == null ? void 0 : e.menuFiles) == null ? void 0 : t.length) > 0 && f.setLocalFiles(e == null ? void 0 : e.menuFiles);
91
+ },
92
+ { deep: !0, immediate: !0 }
93
+ ), y(
94
+ () => I.value,
95
+ async () => {
96
+ var n, a;
97
+ let t = await Z({
98
+ platId: parseInt((n = s == null ? void 0 : s.value) == null ? void 0 : n.plat_id)
99
+ });
100
+ t = (a = t == null ? void 0 : t.data) == null ? void 0 : a.result, f.setDataFiles(t), o("getMenuPathValue", I.value);
101
+ },
102
+ { deep: !0, immediate: !0 }
103
+ ), y(
104
+ () => e == null ? void 0 : e.loginContent,
105
+ async () => {
106
+ var n, a, u, l;
107
+ g.value = !0;
108
+ let t = e == null ? void 0 : e.loginContent;
109
+ if (t != null && t.account && (t != null && t.password) && !E.value && (await ee(t), status)) {
110
+ let c = await p();
111
+ o("systemContent", c == null ? void 0 : c.allMenuContents), A.push("/"), d.setLogRecordAsync({
112
+ type: "登录",
113
+ data: {
114
+ account: ((n = s.value) == null ? void 0 : n.account) ?? ((a = s.value) == null ? void 0 : a.账号),
115
+ userName: ((u = s.value) == null ? void 0 : u.姓名) || ((l = s.value) == null ? void 0 : l.userName) || "未知"
116
+ }
117
+ }, "/login", "login"), f.setHasClickEditComp(!1);
118
+ }
119
+ g.value = !1, await V();
120
+ },
121
+ { deep: !0, immediate: !0 }
122
+ );
123
+ const b = (t) => {
124
+ o("projectLogin", t);
125
+ }, x = () => {
126
+ o("projectLogin", "");
127
+ };
128
+ y(() => [e == null ? void 0 : e.systemKey, e == null ? void 0 : e.systemInfo], async ([t, n]) => {
129
+ d.setSystemKey(t), t !== "" && sessionStorage.setItem("systemKey", t);
130
+ }, { immediate: !0 }), y(
131
+ () => e == null ? void 0 : e.interfaceContent,
132
+ () => {
133
+ var a, u, l, c, r;
134
+ if (!(e != null && e.interfaceContent) || Array.isArray(e == null ? void 0 : e.interfaceContent) && ((a = e == null ? void 0 : e.interfaceContent) == null ? void 0 : a.length) === 0) return;
135
+ let t = (u = e == null ? void 0 : e.interfaceContent) == null ? void 0 : u.find((i) => i == null ? void 0 : i.includes("VITE_API_NEW_URL")), n = (l = e == null ? void 0 : e.interfaceContent) == null ? void 0 : l.find((i) => i == null ? void 0 : i.includes("VITE_FACE_RECOGNITION_API_URL"));
136
+ n = (c = n == null ? void 0 : n.split("=")) == null ? void 0 : c[1], n = n == null ? void 0 : n.trim(), t = (r = t == null ? void 0 : t.split("=")) == null ? void 0 : r[1], t = t == null ? void 0 : t.trim(), d.setExtraUrl(n ?? ""), d.setSystemUrl(t ?? "");
137
+ },
138
+ { immediate: !0, deep: !0 }
139
+ ), k(async () => {
140
+ e.systemInfo ? d.setSystemInfo(e.systemInfo) : await D();
141
+ });
142
+ const K = () => {
143
+ o("buildContent");
144
+ }, R = () => {
145
+ o("setLoginInfo");
146
+ }, U = (t) => {
147
+ o("openThreeBuild", t);
148
+ }, H = (t) => {
149
+ o("threeData", t);
150
+ }, O = (t) => {
151
+ o("updateApiUrl", t);
152
+ }, P = (t) => {
153
+ o("executeWorkspace", t);
154
+ }, C = () => {
155
+ var r, i, S;
156
+ const t = e != null && e.windowConfig ? (r = e == null ? void 0 : e.windowConfig) == null ? void 0 : r.width : window.innerWidth, n = (i = e == null ? void 0 : e.windowConfig) != null && i.height ? (S = e == null ? void 0 : e.windowConfig) == null ? void 0 : S.height : window.innerHeight;
157
+ f.setSystemHeight(n);
158
+ const a = 1920, u = 16, l = t / a, c = u * l;
159
+ document.documentElement.style.fontSize = `${c}px`;
160
+ };
161
+ return k(() => {
162
+ C(), window.addEventListener("resize", C);
163
+ }), G(() => {
164
+ window.removeEventListener("resize", C);
165
+ }), (t, n) => {
166
+ const a = $("router-view");
167
+ return w(), L("div", null, [
168
+ g.value ? (w(), L("div", oe)) : (w(), q(a, {
169
+ key: 1,
170
+ mode: e == null ? void 0 : e.mode,
171
+ content: e == null ? void 0 : e.content,
172
+ jsonContents: e == null ? void 0 : e.jsonContents,
173
+ pathContent: e == null ? void 0 : e.pathContent,
174
+ showButton: j.value,
175
+ nodeDev: e == null ? void 0 : e.nodeDev,
176
+ windowConfig: m.windowConfig,
177
+ systemInfo: m.systemInfo,
178
+ "old-systemKey": m.systemKey,
179
+ onBuildContent: K,
180
+ onProjectLogin: b,
181
+ onClearLogin: x,
182
+ onUpdateApiUrl: O,
183
+ onOpenThreeBuild: U,
184
+ pageKey: m.pageKey,
185
+ onThreeData: H,
186
+ onSetLoginInfo: R,
187
+ loginContent: e == null ? void 0 : e.loginContent,
188
+ onUpdateVersion: M,
189
+ onClearFileContent: T,
190
+ onSystemContent: B,
191
+ onExecuteWorkspace: P,
192
+ workspaceHistoryData: e == null ? void 0 : e.workspaceHistoryData,
193
+ workspaceInfo: e == null ? void 0 : e.workspaceInfo
194
+ }, null, 8, ["mode", "content", "jsonContents", "pathContent", "showButton", "nodeDev", "windowConfig", "systemInfo", "old-systemKey", "pageKey", "loginContent", "workspaceHistoryData", "workspaceInfo"]))
195
+ ]);
196
+ };
197
+ }
198
+ }), de = /* @__PURE__ */ ne(ae, [["__scopeId", "data-v-201a6b2b"]]);
199
+ export {
200
+ de as default
201
+ };
@@ -0,0 +1,93 @@
1
+ import { ref as A, computed as c, onMounted as _ } from "vue";
2
+ import { useRouter as C } from "vue-router";
3
+ import { u as g, p as h, B as R, c as b, r as S, x as E } from "./index-Bw3sTXPI.js";
4
+ const l = {
5
+ ALLOW: {
6
+ value: "允许"
7
+ },
8
+ DENY: {
9
+ value: "不允许"
10
+ }
11
+ }, M = "系统管理/用户管理", N = "用户列表", D = {
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
+ }, K = {
23
+ BASE: {
24
+ label: "基础信息",
25
+ value: "base"
26
+ },
27
+ RESET_PASSWORD_BY_FACE_RECOGNITION: {
28
+ label: "修改密码",
29
+ value: "reset-password-by-face-recognition"
30
+ }
31
+ }, T = () => {
32
+ const u = C(), s = g(h), { platId: o, isSuperAdmin: i } = R(), p = (e) => {
33
+ const { id: t } = e;
34
+ return {
35
+ id: t,
36
+ password: "",
37
+ allow_reset_password: l.DENY.value
38
+ };
39
+ }, r = A([]), d = c(() => {
40
+ var t, a;
41
+ const e = (a = (t = r.value) == null ? void 0 : t.find) == null ? void 0 : a.call(t, (n) => n.property_name === N);
42
+ return e == null ? void 0 : e.object_id;
43
+ }), w = async () => {
44
+ var a;
45
+ const e = {
46
+ pageName: M,
47
+ platId: o.value
48
+ }, t = await S(e);
49
+ return ((a = t == null ? void 0 : t.data) == null ? void 0 : a.result) || [];
50
+ }, f = async () => {
51
+ const e = await w();
52
+ r.value = e || [];
53
+ };
54
+ _(async () => {
55
+ await f();
56
+ });
57
+ const y = c(() => `content_${d.value}`), m = async (e) => ({
58
+ platId: o.value,
59
+ changeContents: [
60
+ {
61
+ tableContents: [e],
62
+ tableName: y.value
63
+ }
64
+ ]
65
+ }), I = (e) => {
66
+ const { allow_reset_password: t } = e;
67
+ return t === l.ALLOW.value;
68
+ }, v = async (e) => {
69
+ const { id: t, password: a, allow_reset_password: n } = e;
70
+ return m({
71
+ id: t,
72
+ password: a,
73
+ allow_reset_password: n
74
+ });
75
+ }, P = async (e) => {
76
+ const t = await v(e);
77
+ return await E(t);
78
+ };
79
+ return {
80
+ isSuperAdmin: i,
81
+ toPersonalCenter: () => {
82
+ const e = b(D);
83
+ s.setAsideMenus([e]), s.setActiveMenuPath(e == null ? void 0 : e.path), s.setActiveAsideMenu(e), u.push(e.path);
84
+ },
85
+ isAllowReplacePassword: I,
86
+ initReplacePassword: async (e) => await P(e),
87
+ initEditForm: p
88
+ };
89
+ };
90
+ export {
91
+ K as t,
92
+ T as u
93
+ };