ss-component-new 1.3.657 → 1.3.659

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 (82) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/index-CQG5_ZDD.js +1084 -0
  3. package/dist/index-C_HX7GAm.js +8849 -0
  4. package/dist/index-ZPct7ETq.js +180 -0
  5. package/dist/platform-BsULsE0-.js +16684 -0
  6. package/dist/ss-component.css +2 -8
  7. package/dist/ss-component.js +26 -67
  8. package/dist/ss-component2.js +15 -75
  9. package/dist/ss-component3.js +785 -9
  10. package/package.json +4 -4
  11. package/public/config.js +1 -1
  12. package/dist/MTLLoader-DI0avKtj.js +0 -657
  13. package/dist/URDFLoader-PUxvYFDe.js +0 -2304
  14. package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
  15. package/dist/animationData-05aVUytq.js +0 -83
  16. package/dist/array-M5UIzgFU.js +0 -1044
  17. package/dist/clone-Ddn1p6-1.js +0 -8
  18. package/dist/eleIcon-BWVKfp5t.js +0 -29
  19. package/dist/iconfont-BNdGaGPn.js +0 -1018
  20. package/dist/icons/svg/Update.svg +0 -1
  21. package/dist/icons/svg/functionList.svg +0 -1
  22. package/dist/icons/svg/uploadCopy.svg +0 -1
  23. package/dist/index-B7ESWQK3.js +0 -468
  24. package/dist/index-BDhIWgKn.js +0 -658
  25. package/dist/index-BFYqRqws.js +0 -83
  26. package/dist/index-BFqUz4pN.js +0 -52
  27. package/dist/index-BP1mKUQP.js +0 -627
  28. package/dist/index-BczRQX8N.js +0 -407
  29. package/dist/index-BnrvtCYj.js +0 -55
  30. package/dist/index-Bpr501oZ.js +0 -78
  31. package/dist/index-BtOiWnaj.js +0 -117
  32. package/dist/index-BvbZiTVB.js +0 -342
  33. package/dist/index-Bvvz41NY.js +0 -44
  34. package/dist/index-C9DBY1gg.js +0 -103
  35. package/dist/index-CFFbhR3G.js +0 -996
  36. package/dist/index-COr2mcbl.js +0 -48
  37. package/dist/index-CV_jQDcg.js +0 -9
  38. package/dist/index-CXV4riUN.js +0 -864
  39. package/dist/index-CXe4q28L.js +0 -447
  40. package/dist/index-CYKmHhSo.js +0 -61974
  41. package/dist/index-ChNfRlIP.js +0 -596
  42. package/dist/index-D-5v1Jx7.js +0 -93
  43. package/dist/index-D4LcEpQ7.js +0 -619
  44. package/dist/index-DGObzWyL.js +0 -8984
  45. package/dist/index-DJ59jXR0.js +0 -28483
  46. package/dist/index-DJrzqi4-.js +0 -209
  47. package/dist/index-D_kI6aHR.js +0 -98
  48. package/dist/index-Dr9Wt5nC.js +0 -84
  49. package/dist/index-Dwt0Wlg_.js +0 -201
  50. package/dist/index-DxBEJThZ.js +0 -93
  51. package/dist/index-DyOIxMCm.js +0 -11769
  52. package/dist/index-J_lJ8THH.js +0 -107
  53. package/dist/index-MgxLPMC2.js +0 -30
  54. package/dist/index-SeW03TeK.js +0 -2623
  55. package/dist/index-WPJbEuld.js +0 -62
  56. package/dist/index-WuWGP1Bp.js +0 -24847
  57. package/dist/index-YVR3acYT.js +0 -61
  58. package/dist/index-dD-mKgue.js +0 -27
  59. package/dist/index-uF-ibwG0.js +0 -9
  60. package/dist/index-yRXVIg-Q.js +0 -98
  61. package/dist/index.vue_vue_type_script_setup_true_lang-DwbHXtUp.js +0 -55
  62. package/dist/index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js +0 -137728
  63. package/dist/isString-CoCw_sp3.js +0 -8
  64. package/dist/localIcon-CoJHw5ss.js +0 -76
  65. package/dist/main-6nOFPtBP.js +0 -502
  66. package/dist/menuIndex-Dt0NyAyE.js +0 -159
  67. package/dist/request-DiogHwkN.js +0 -9465
  68. package/dist/threeModel-CO0qgNsr.js +0 -1108
  69. package/dist/threePreview-BHLSA5YS.js +0 -2259
  70. package/dist/threeSceneView-C2e1Jcsq.js +0 -1289
  71. package/dist/threeSceneViewForCPMPIP-DSLQhiGf.js +0 -538
  72. package/dist/threeTrackPathView-BR8-g2Tr.js +0 -620
  73. package/dist/threeViewerHost-DSHo_0Ag.js +0 -233
  74. package/dist/urdfTree-IEJgkVzs.js +0 -254
  75. package/dist/workpieceTreePanel-aZV2ut3W.js +0 -555
  76. package/public/icons/svg/Update.svg +0 -1
  77. package/public/icons/svg/functionList.svg +0 -1
  78. package/public/icons/svg/uploadCopy.svg +0 -1
  79. /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  80. /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  81. /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  82. /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
@@ -1,209 +0,0 @@
1
- import { ref as L, reactive as O, watch as X, resolveComponent as Y, openBlock as s, createBlock as P, normalizeStyle as U, withCtx as S, renderSlot as B, createElementBlock as a, withModifiers as r, createCommentVNode as u, createElementVNode as j, toDisplayString as q } from "vue";
2
- /* empty css */
3
- import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
4
- const F = { class: "dialog-title" }, G = {
5
- __name: "index",
6
- props: {
7
- title: {
8
- type: String,
9
- default: ""
10
- },
11
- dialogWidth: {
12
- type: [Number, String],
13
- default: 600
14
- },
15
- visible: {
16
- type: Boolean,
17
- default: !1
18
- },
19
- fullScreen: {
20
- type: Boolean,
21
- default: !1
22
- },
23
- // 仅在 resizable=true 时生效
24
- dialogHeight: {
25
- type: [Number, String],
26
- default: 600
27
- },
28
- // 仅在 resizable=true 时生效
29
- minWidth: {
30
- type: [Number, String],
31
- default: 400
32
- },
33
- // 仅在 resizable=true 时生效
34
- minHeight: {
35
- type: [Number, String],
36
- default: 300
37
- },
38
- showClose: {
39
- type: Boolean,
40
- default: !0
41
- },
42
- closeOnClickModal: {
43
- type: Boolean,
44
- default: !0
45
- },
46
- closeOnPressEscape: {
47
- type: Boolean,
48
- default: !0
49
- },
50
- modalClass: {
51
- type: String,
52
- default: ""
53
- },
54
- alignCenter: {
55
- type: Boolean,
56
- default: !1
57
- },
58
- appendToBody: {
59
- type: Boolean,
60
- default: !0
61
- },
62
- zIndex: {
63
- type: Number,
64
- default: void 0
65
- },
66
- // 是否允许四边拖拽改变弹窗大小
67
- resizable: {
68
- type: Boolean,
69
- default: !1
70
- }
71
- },
72
- emits: ["beforeDestroy"],
73
- setup(w, { emit: $ }) {
74
- const e = w, T = $, v = L(!1), o = O({
75
- width: void 0,
76
- height: void 0,
77
- minWidth: void 0,
78
- minHeight: void 0
79
- });
80
- let W = !1, m = "", C = 0, E = 0, h = 0, y = 0, p = 0, z = 0, x = null;
81
- const D = (i) => {
82
- var n, l;
83
- const t = (l = (n = i == null ? void 0 : i.target) == null ? void 0 : n.closest) == null ? void 0 : l.call(n, ".el-dialog");
84
- return t || null;
85
- }, I = (i) => {
86
- if (!i || i === "none")
87
- return { tx: 0, ty: 0 };
88
- let t = i.match(/matrix\(([^)]+)\)/);
89
- if (t) {
90
- const n = t[1].split(",").map((l) => Number(l.trim()));
91
- return { tx: (n == null ? void 0 : n[4]) || 0, ty: (n == null ? void 0 : n[5]) || 0 };
92
- }
93
- if (t = i.match(/matrix3d\(([^)]+)\)/), t) {
94
- const n = t[1].split(",").map((l) => Number(l.trim()));
95
- return { tx: (n == null ? void 0 : n[12]) || 0, ty: (n == null ? void 0 : n[13]) || 0 };
96
- }
97
- return t = i.match(/translate\(\s*([-\d.]+)px\s*,\s*([-\d.]+)px\s*\)/), t ? { tx: Number(t[1]) || 0, ty: Number(t[2]) || 0 } : { tx: 0, ty: 0 };
98
- }, R = (i, t, n) => {
99
- i.style.transform = `translate(${t}px, ${n}px)`;
100
- }, d = (i, t) => {
101
- if (!e.resizable) return;
102
- const n = D(i);
103
- if (!n) return;
104
- x = n, W = !0, m = t, C = i.clientX, E = i.clientY;
105
- const l = n.getBoundingClientRect();
106
- h = l.width, y = l.height;
107
- const f = window.getComputedStyle(n), { tx: g, ty: c } = I(f.transform);
108
- p = g, z = c, document.addEventListener("mousemove", M), document.addEventListener("mouseup", N);
109
- }, M = (i) => {
110
- if (!W || !x) return;
111
- const t = i.clientX - C, n = i.clientY - E, l = parseInt(o.minWidth || "0", 10) || 0, f = parseInt(o.minHeight || "0", 10) || 0;
112
- let g = h, c = y, H = p, k = z;
113
- if (m.includes("right") && (g = Math.max(l, h + t)), m.includes("bottom") && (c = Math.max(f, y + n)), m.includes("left")) {
114
- const b = h - t;
115
- b < l ? (g = l, H = p + (h - l)) : (g = b, H = p + t);
116
- }
117
- if (m.includes("top")) {
118
- const b = y - n;
119
- b < f ? (c = f, k = z + (y - f)) : (c = b, k = z + n);
120
- }
121
- o.width = `${g}px`, o.height = `${c}px`, R(x, H, k);
122
- }, N = () => {
123
- W = !1, m = "", x = null, document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", N);
124
- }, V = () => {
125
- T("beforeDestroy");
126
- };
127
- return X(
128
- () => e == null ? void 0 : e.visible,
129
- (i) => {
130
- v.value = i, i && (e.resizable ? (o.width = typeof e.dialogWidth == "number" ? `${e.dialogWidth}px` : e.dialogWidth, o.height = typeof e.dialogHeight == "number" ? `${e.dialogHeight}px` : e.dialogHeight, o.minWidth = typeof e.minWidth == "number" ? `${e.minWidth}px` : e.minWidth, o.minHeight = typeof e.minHeight == "number" ? `${e.minHeight}px` : e.minHeight) : (o.width = void 0, o.height = void 0, o.minWidth = void 0, o.minHeight = void 0));
131
- },
132
- { deep: !0, immediate: !0 }
133
- ), (i, t) => {
134
- const n = Y("el-dialog");
135
- return s(), P(n, {
136
- modelValue: v.value,
137
- "onUpdate:modelValue": t[8] || (t[8] = (l) => v.value = l),
138
- width: e == null ? void 0 : e.dialogWidth,
139
- "before-close": V,
140
- draggable: "",
141
- style: U(e != null && e.resizable ? o : void 0),
142
- fullscreen: e == null ? void 0 : e.fullScreen,
143
- "destroy-on-close": !0,
144
- "show-close": e == null ? void 0 : e.showClose,
145
- "close-on-click-modal": e == null ? void 0 : e.closeOnClickModal,
146
- "modal-class": w.modalClass,
147
- "close-on-press-escape": e == null ? void 0 : e.closeOnPressEscape,
148
- "align-center": e == null ? void 0 : e.alignCenter,
149
- "append-to-body": w.appendToBody,
150
- "z-index": e == null ? void 0 : e.zIndex
151
- }, {
152
- header: S(() => [
153
- j("div", F, q(e == null ? void 0 : e.title), 1),
154
- B(i.$slots, "header", {}, void 0, !0)
155
- ]),
156
- footer: S(() => [
157
- B(i.$slots, "footer", {}, void 0, !0)
158
- ]),
159
- default: S(() => [
160
- B(i.$slots, "default", {}, void 0, !0),
161
- e.resizable ? (s(), a("div", {
162
- key: 0,
163
- class: "resizable-handle top",
164
- onMousedown: t[0] || (t[0] = r((l) => d(l, "top"), ["stop"]))
165
- }, null, 32)) : u("", !0),
166
- e.resizable ? (s(), a("div", {
167
- key: 1,
168
- class: "resizable-handle right",
169
- onMousedown: t[1] || (t[1] = r((l) => d(l, "right"), ["stop"]))
170
- }, null, 32)) : u("", !0),
171
- e.resizable ? (s(), a("div", {
172
- key: 2,
173
- class: "resizable-handle bottom",
174
- onMousedown: t[2] || (t[2] = r((l) => d(l, "bottom"), ["stop"]))
175
- }, null, 32)) : u("", !0),
176
- e.resizable ? (s(), a("div", {
177
- key: 3,
178
- class: "resizable-handle left",
179
- onMousedown: t[3] || (t[3] = r((l) => d(l, "left"), ["stop"]))
180
- }, null, 32)) : u("", !0),
181
- e.resizable ? (s(), a("div", {
182
- key: 4,
183
- class: "resizable-handle top-left",
184
- onMousedown: t[4] || (t[4] = r((l) => d(l, "top-left"), ["stop"]))
185
- }, null, 32)) : u("", !0),
186
- e.resizable ? (s(), a("div", {
187
- key: 5,
188
- class: "resizable-handle top-right",
189
- onMousedown: t[5] || (t[5] = r((l) => d(l, "top-right"), ["stop"]))
190
- }, null, 32)) : u("", !0),
191
- e.resizable ? (s(), a("div", {
192
- key: 6,
193
- class: "resizable-handle bottom-left",
194
- onMousedown: t[6] || (t[6] = r((l) => d(l, "bottom-left"), ["stop"]))
195
- }, null, 32)) : u("", !0),
196
- e.resizable ? (s(), a("div", {
197
- key: 7,
198
- class: "resizable-handle bottom-right",
199
- onMousedown: t[7] || (t[7] = r((l) => d(l, "bottom-right"), ["stop"]))
200
- }, null, 32)) : u("", !0)
201
- ]),
202
- _: 3
203
- }, 8, ["modelValue", "width", "style", "fullscreen", "show-close", "close-on-click-modal", "modal-class", "close-on-press-escape", "align-center", "append-to-body", "z-index"]);
204
- };
205
- }
206
- }, Z = /* @__PURE__ */ A(G, [["__scopeId", "data-v-16b3a6b2"]]);
207
- export {
208
- Z as s
209
- };
@@ -1,98 +0,0 @@
1
- import { defineComponent as C, reactive as f, ref as i, onMounted as E, resolveComponent as s, openBlock as _, createElementBlock as v, 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-YVR3acYT.js";
3
- import { useRouter as M } from "vue-router";
4
- import { E as g } from "./request-DiogHwkN.js";
5
- import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
6
- const T = { class: "tenant-wrap" }, $ = { class: "tenant-content" }, q = /* @__PURE__ */ C({
7
- __name: "index",
8
- setup(D) {
9
- const o = f({
10
- tenantKey: ""
11
- }), K = f({
12
- tenantKey: [
13
- { required: !0, message: "请选择模型", trigger: "blur" }
14
- ]
15
- }), m = i(null), y = i([]), k = M(), x = async () => {
16
- var n, t;
17
- try {
18
- const l = await I({
19
- key: {
20
- layer: "superAdmin"
21
- }
22
- });
23
- if (l.data.code === 200) {
24
- const r = (t = (n = l == null ? void 0 : l.data) == null ? void 0 : n.result) == null ? void 0 : t.flatMap((e) => e == null ? void 0 : e.key), p = r == null ? void 0 : r.map((e) => ({
25
- value: e == null ? void 0 : e.systemKey,
26
- label: `【${e == null ? void 0 : e.systemKey}】` + ((e == null ? void 0 : e.name) ?? "未知")
27
- }));
28
- y.value = [...p].sort((e, d) => e.value.localeCompare(d.value));
29
- } else
30
- g.error("获取模型数据响应失败");
31
- } catch {
32
- g.error("获取模型数据失败");
33
- }
34
- };
35
- E(() => {
36
- x();
37
- });
38
- const V = (n) => {
39
- n == null || n.validate((t) => {
40
- t && (console.log("submitForm", o), sessionStorage.setItem("tenantKey", o == null ? void 0 : o.tenantKey), k.push("/login"));
41
- });
42
- };
43
- return (n, t) => {
44
- const l = s("el-option"), r = s("el-select"), p = s("el-form-item"), e = s("el-form"), d = s("el-button");
45
- return _(), v("div", T, [
46
- b("div", $, [
47
- t[3] || (t[3] = b("div", { class: "tenant-title" }, "租户信息", -1)),
48
- u(e, {
49
- model: o,
50
- rules: K,
51
- ref_key: "formRef",
52
- ref: m
53
- }, {
54
- default: c(() => [
55
- u(p, {
56
- label: "",
57
- prop: "tenantKey"
58
- }, {
59
- default: c(() => [
60
- u(r, {
61
- modelValue: o.tenantKey,
62
- "onUpdate:modelValue": t[0] || (t[0] = (a) => o.tenantKey = a),
63
- placeholder: "请选择(可搜索查询)",
64
- filterable: "",
65
- clearable: ""
66
- }, {
67
- default: c(() => [
68
- (_(!0), v(w, null, A(y.value, (a) => (_(), B(l, {
69
- key: a.value,
70
- label: a.label,
71
- value: a.value
72
- }, null, 8, ["label", "value"]))), 128))
73
- ]),
74
- _: 1
75
- }, 8, ["modelValue"])
76
- ]),
77
- _: 1
78
- })
79
- ]),
80
- _: 1
81
- }, 8, ["model", "rules"]),
82
- u(d, {
83
- type: "primary",
84
- onClick: t[1] || (t[1] = (a) => V(m.value))
85
- }, {
86
- default: c(() => [...t[2] || (t[2] = [
87
- F(" 确认 ", -1)
88
- ])]),
89
- _: 1
90
- })
91
- ])
92
- ]);
93
- };
94
- }
95
- }), z = /* @__PURE__ */ N(q, [["__scopeId", "data-v-5d82b8dd"]]);
96
- export {
97
- z as default
98
- };
@@ -1,84 +0,0 @@
1
- import { ref as x, onMounted as _, openBlock as g, createElementBlock as y, createVNode as C } from "vue";
2
- import { s as b } from "./index-COr2mcbl.js";
3
- import { c as s } from "./index-DGObzWyL.js";
4
- import { _ as k } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const A = (t, n, a) => {
6
- var r, d, p, m;
7
- let e = n;
8
- e.title.text = (a == null ? void 0 : a.chartName) ?? "", e.xAxis.data = (r = s(t)) == null ? void 0 : r.map((i) => i.x), e.legend.data = (p = (d = s(t)) == null ? void 0 : d[0]) != null && p.y ? Object.keys(s(t)[0].y) : [];
9
- let o = [];
10
- return ((m = e.legend.data) == null ? void 0 : m.length) > 0 && s(e.legend.data).forEach((i) => {
11
- var f;
12
- const h = (f = s(t)) == null ? void 0 : f.map((l) => {
13
- var u;
14
- return (u = l == null ? void 0 : l.y) == null ? void 0 : u[i];
15
- });
16
- o.push({
17
- name: i,
18
- type: "line",
19
- data: h
20
- });
21
- }), e.series = o, e;
22
- }, c = [
23
- {
24
- key: "折线图",
25
- value: {
26
- title: {
27
- text: "",
28
- // 标题文本
29
- left: "center",
30
- // 水平居中
31
- top: 25,
32
- // 距离顶部距离
33
- textStyle: {
34
- // 文本样式
35
- color: "#333",
36
- fontSize: 18,
37
- fontWeight: "bold"
38
- }
39
- },
40
- tooltip: {
41
- trigger: "axis"
42
- },
43
- legend: {
44
- data: []
45
- },
46
- grid: {
47
- left: "6%",
48
- right: "4%",
49
- bottom: "3%",
50
- containLabel: !0
51
- },
52
- xAxis: {
53
- type: "category",
54
- axisLabel: {
55
- interval: 0
56
- // 强制显示所有标签
57
- },
58
- data: []
59
- },
60
- yAxis: {
61
- type: "value"
62
- },
63
- series: []
64
- }
65
- }
66
- ], v = { class: "eCharts" }, D = {
67
- __name: "index",
68
- props: {
69
- eChartContents: Array
70
- },
71
- setup(t) {
72
- const n = t, a = x({});
73
- return _(() => {
74
- var o;
75
- const e = n == null ? void 0 : n.eChartContents;
76
- a.value = A(s(e == null ? void 0 : e.compData), (o = c == null ? void 0 : c.find((r) => (r == null ? void 0 : r.key) === (e == null ? void 0 : e.name))) == null ? void 0 : o.value, e == null ? void 0 : e.extraContent);
77
- }), (e, o) => (g(), y("div", v, [
78
- C(b, { optionContents: a.value }, null, 8, ["optionContents"])
79
- ]));
80
- }
81
- }, N = /* @__PURE__ */ k(D, [["__scopeId", "data-v-0440fac3"]]);
82
- export {
83
- N as default
84
- };
@@ -1,201 +0,0 @@
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 $, openBlock as w, createElementBlock as L, 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-DGObzWyL.js";
3
- import { l as ee } from "./index-BnrvtCYj.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
- };
@@ -1,93 +0,0 @@
1
- import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, openBlock as u, createElementBlock as y, createElementVNode as t, withDirectives as p, createVNode as o, unref as n, toDisplayString as r, createBlock as A } from "vue";
2
- import { S as I, t as x, s as w, a as L } from "./index-SeW03TeK.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_39e1db95_lang-CG9X8aa2.js";
4
- import "./index-dD-mKgue.js";
5
- import { f as E } from "./index-WuWGP1Bp.js";
6
- import "./index-DJ59jXR0.js";
7
- import { b as N, s as U } from "./index-DGObzWyL.js";
8
- import "./request-DiogHwkN.js";
9
- /* empty css */
10
- import { _ as V } from "./_plugin-vue_export-helper-CHgC5LLL.js";
11
- const z = { class: "personal-wrapper" }, F = { class: "personal-box left" }, H = { class: "base-avatar" }, K = { class: "center-avatar" }, M = { class: "base-info" }, R = { class: "base-signature" }, j = { class: "personal-box right" }, q = /* @__PURE__ */ C({
12
- __name: "index",
13
- setup(G) {
14
- const e = k({ ...I }), S = N(), { loginUserInfo: s } = U(S);
15
- return D(() => {
16
- var l;
17
- e.getUserTableHeadersAsync(), e.refreshLoginUserInfoAsync((l = s == null ? void 0 : s.value) == null ? void 0 : l.id), x.value++;
18
- }), (l, a) => {
19
- var g, m, _, v, f, b, h;
20
- const i = B("svg-icon"), c = T("loading");
21
- return u(), y("div", z, [
22
- t("div", F, [
23
- t("div", H, [
24
- t("div", K, [
25
- p(o(w, {
26
- size: 100,
27
- disabled: e.uploadDisabled,
28
- userInfo: n(s),
29
- onSubmitImage: a[0] || (a[0] = (d) => e.submitImageAsync("avatarUrl", d))
30
- }, null, 8, ["disabled", "userInfo"]), [
31
- [c, e.avatarLoading]
32
- ])
33
- ])
34
- ]),
35
- t("div", M, [
36
- t("div", null, [
37
- o(i, {
38
- name: "userAccount",
39
- style: { width: "15px", height: "15px" }
40
- }),
41
- t("span", null, r(((g = n(s)) == null ? void 0 : g.account) || (((m = n(s)) == null ? void 0 : m.姓名) ?? "未知")), 1)
42
- ]),
43
- t("div", null, [
44
- o(i, {
45
- name: "role",
46
- style: { width: "15px", height: "15px" }
47
- }),
48
- t("span", null, r(((_ = n(s)) == null ? void 0 : _.layer) === "superAdmin" ? "超级管理员" : ((v = n(s)) == null ? void 0 : v.角色名称) ?? "未知"), 1)
49
- ]),
50
- t("div", null, [
51
- o(i, {
52
- name: "dept",
53
- style: { width: "15px", height: "15px" }
54
- }),
55
- t("span", null, r(((f = n(s)) == null ? void 0 : f.部门名称) ?? "未知"), 1)
56
- ]),
57
- t("div", null, [
58
- o(i, {
59
- name: "status",
60
- style: { width: "15px", height: "15px" }
61
- }),
62
- t("span", null, r(((b = n(s)) == null ? void 0 : b.layer) === "superAdmin" ? "启用" : ((h = n(s)) == null ? void 0 : h.状态) ?? "未知"), 1)
63
- ])
64
- ]),
65
- t("div", R, [
66
- p(o(L, {
67
- userInfo: n(s),
68
- itemData: e.itemData,
69
- onClickSignButton: e.clickSignButton,
70
- onBeforeDestroy: e.beforeSignDestroy,
71
- onClickSubmitSign: a[1] || (a[1] = (d) => e.submitImageAsync("signature", d))
72
- }, null, 8, ["userInfo", "itemData", "onClickSignButton", "onBeforeDestroy"]), [
73
- [c, e.signatureLoading]
74
- ])
75
- ])
76
- ]),
77
- p((u(), y("div", j, [
78
- (u(), A(E, {
79
- key: n(x),
80
- tabsContents: e.tabsContents,
81
- onChangeTrigger: e.changeFormTrigger,
82
- onClickTrigger: e.clickTabButton
83
- }, null, 8, ["tabsContents", "onChangeTrigger", "onClickTrigger"]))
84
- ])), [
85
- [c, e.loading]
86
- ])
87
- ]);
88
- };
89
- }
90
- }), te = /* @__PURE__ */ V(q, [["__scopeId", "data-v-3bdf3f4b"]]);
91
- export {
92
- te as default
93
- };