ss-component-new 1.3.704 → 1.3.705

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 (89) hide show
  1. package/dist/config.js +1 -1
  2. package/dist/index-BCCtMBNM.js +181 -0
  3. package/dist/{index-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
  4. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js → index-CPex-4gb.js} +112373 -111255
  5. package/dist/index-CUXLS1Ir.js +50 -0
  6. package/dist/index-CZYbAE5l.js +1044 -0
  7. package/dist/index-Ca2Zj4Is.js +213 -0
  8. package/dist/index-IoMa0kLh.js +27 -0
  9. package/dist/menu-BYmz2cKN.js +5229 -0
  10. package/dist/platform-C0GP6Nyp.js +11490 -0
  11. package/dist/ss-component.css +8 -8
  12. package/dist/ss-component.js +28 -64
  13. package/dist/ss-component2.js +15 -75
  14. package/dist/ss-component3.js +1 -1
  15. package/package.json +10 -7
  16. package/public/config.js +1 -1
  17. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  18. package/dist/MTLLoader-CkNZudBE.js +0 -657
  19. package/dist/URDFLoader-DIzEVzUD.js +0 -2299
  20. package/dist/animationData-DvL_4GZ5.js +0 -83
  21. package/dist/array-jbiWLnR-.js +0 -1045
  22. package/dist/clone-Dp_gc9ll.js +0 -8
  23. package/dist/eleIcon-qStmsM1q.js +0 -29
  24. package/dist/fileUtil-UOt_otFo.js +0 -20
  25. package/dist/iconfont-C9LP7Z-d.js +0 -1026
  26. package/dist/icons/svg/functionList.svg +0 -1
  27. package/dist/icons/svg/method.svg +0 -1
  28. package/dist/index-11kpzK0A.js +0 -209
  29. package/dist/index-6kpIJwSG.js +0 -98
  30. package/dist/index-B0H3C7WG.js +0 -103
  31. package/dist/index-B0l2_9Pc.js +0 -30
  32. package/dist/index-BFnTZBOW.js +0 -93
  33. package/dist/index-BHtNKL1L.js +0 -27
  34. package/dist/index-BbyrFzEO.js +0 -93
  35. package/dist/index-BooO2Bml.js +0 -78
  36. package/dist/index-Bw3sTXPI.js +0 -8993
  37. package/dist/index-BzUgGzuc.js +0 -48
  38. package/dist/index-CGi0g-VN.js +0 -627
  39. package/dist/index-CSD3bL5o.js +0 -83
  40. package/dist/index-CV_jQDcg.js +0 -9
  41. package/dist/index-CWOXvFfD.js +0 -44
  42. package/dist/index-Ch8te5LO.js +0 -411
  43. package/dist/index-CydXQbtX.js +0 -622
  44. package/dist/index-DAJxL40d.js +0 -55
  45. package/dist/index-DBsEVMiM.js +0 -201
  46. package/dist/index-DG4hoOWt.js +0 -665
  47. package/dist/index-DUbk5m5P.js +0 -99
  48. package/dist/index-Da5qIKd6.js +0 -119
  49. package/dist/index-Ds6m_4JJ.js +0 -28500
  50. package/dist/index-DupTchhl.js +0 -1000
  51. package/dist/index-DyCq_odP.js +0 -331
  52. package/dist/index-OGTnqUDW.js +0 -20578
  53. package/dist/index-PV2PkfRE.js +0 -63008
  54. package/dist/index-Ru-cNTPj.js +0 -84
  55. package/dist/index-SohCFB2I.js +0 -107
  56. package/dist/index-UB_oCdlo.js +0 -62
  57. package/dist/index-YcuQhWbw.js +0 -25297
  58. package/dist/index-YjBTGOkO.js +0 -61
  59. package/dist/index-d9yiC1Rr.js +0 -572
  60. package/dist/index-eunh_06c.js +0 -873
  61. package/dist/index-jbOjjV0j.js +0 -447
  62. package/dist/index-l3g33MKM.js +0 -470
  63. package/dist/index-rlStojTL.js +0 -52
  64. package/dist/index-uF-ibwG0.js +0 -9
  65. package/dist/isString-0ZglyOfu.js +0 -8
  66. package/dist/localIcon-D5UoFBU5.js +0 -76
  67. package/dist/main-Dqoc5YbP.js +0 -502
  68. package/dist/menuIndex-BB0uVPRX.js +0 -159
  69. package/dist/obj/model.mtl +0 -42
  70. package/dist/obj/model.obj +0 -26110
  71. package/dist/request-1RPa2bBn.js +0 -9048
  72. package/dist/threeModel-BI3l0-99.js +0 -1109
  73. package/dist/threePreview-BkYkq6k4.js +0 -2918
  74. package/dist/threeSceneView-ChFhJWgw.js +0 -1290
  75. package/dist/threeSceneViewForCPMPIP-DE5Oil86.js +0 -539
  76. package/dist/threeTrackPathView-BxUqwu4s.js +0 -620
  77. package/dist/threeViewerHost-Dc7tuhCy.js +0 -233
  78. package/dist/urdfTree-VRms7Vm3.js +0 -254
  79. package/dist/workpieceTreePanel-Bnhv3-BB.js +0 -559
  80. package/public/icons/svg/functionList.svg +0 -1
  81. package/public/icons/svg/method.svg +0 -1
  82. package/public/obj/model.mtl +0 -42
  83. package/public/obj/model.obj +0 -26110
  84. /package/dist/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  85. /package/dist/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  86. /package/dist/icons/svg/{Update.svg → update.svg} +0 -0
  87. /package/public/icons/svg/{tableClose.svg → table-close.svg} +0 -0
  88. /package/public/icons/svg/{tableExpand.svg → table-expand.svg} +0 -0
  89. /package/public/icons/svg/{Update.svg → update.svg} +0 -0
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1780642425297" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2833" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M384 806.4l275.2-275.2-57.6-57.6-19.2 19.2c-12.8 12.8-38.4 12.8-51.2 0-12.8-12.8-12.8-38.4 0-51.2l19.2-19.2c25.6-25.6 64-25.6 89.6 0l64 70.4c25.6 25.6 25.6 64 0 89.6l-275.2 275.2c6.4 12.8 12.8 32 12.8 44.8 0 51.2-44.8 96-96 96S256 947.2 256 896s44.8-96 96-96c12.8 0 25.6 0 32 6.4z m275.2-563.2L384 518.4l57.6 57.6 19.2-19.2c12.8-12.8 38.4-12.8 51.2 0 12.8 12.8 12.8 38.4 0 51.2l-25.6 25.6c-25.6 25.6-64 25.6-89.6 0l-64-70.4c-25.6-25.6-25.6-64 0-89.6L614.4 192c-6.4-12.8-6.4-19.2-6.4-32 0-51.2 44.8-96 96-96s96 44.8 96 96S755.2 256 704 256c-19.2 0-32-6.4-44.8-12.8z m198.4 275.2l-128-128c-12.8-12.8-12.8-38.4 0-51.2 12.8-12.8 38.4-12.8 51.2 0l128 128c12.8 12.8 19.2 32 19.2 51.2 0 19.2-6.4 38.4-19.2 51.2l-128 128c-12.8 12.8-38.4 12.8-51.2 0-12.8-12.8-12.8-38.4 0-51.2l128-128z m-691.2 0l128 128c12.8 12.8 12.8 38.4 0 51.2-12.8 12.8-38.4 12.8-51.2 0l-128-128c-12.8-12.8-19.2-32-19.2-51.2 0-19.2 6.4-38.4 19.2-51.2l128-128c12.8-12.8 38.4-12.8 51.2 0 12.8 12.8 12.8 38.4 0 51.2l-128 128z" p-id="2834"></path></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1782276995812" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4176" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><path d="M469.745309 0a469.745309 469.745309 0 1 0 0 939.490619A469.745309 469.745309 0 0 0 469.809272 0z m0 81.872821a387.872488 387.872488 0 1 1 0 775.744977 387.872488 387.872488 0 0 1 0-775.744977z" fill="#444444" p-id="4177"></path><path d="M753.485804 753.485804a40.93641 40.93641 0 0 1 55.264154-2.4306l2.558525 2.4306 200.204633 200.076706a40.93641 40.93641 0 0 1-55.328118 60.317242l-2.622488-2.4306-200.140669-200.076705a40.93641 40.93641 0 0 1 0-57.886643z" fill="#444444" p-id="4178"></path><path d="M266.086668 552.64154c15.351154 0 29.423045 8.571061 36.45899 22.19521l-1.982857-2.878341c45.733646 70.487382 115.005728 111.295866 198.477627 113.598539l7.419724 0.063963V767.557695c-112.575129 0-208.327951-53.217334-270.308235-144.556699l-4.28553-6.396314 0.191889-0.127927a40.93641 40.93641 0 0 1 34.028392-63.771252z" p-id="4179"></path></svg>
@@ -1,209 +0,0 @@
1
- import { ref as L, reactive as O, watch as X, resolveComponent as Y, createBlock as P, openBlock as s, normalizeStyle as U, withCtx as S, renderSlot as B, createElementBlock as a, createCommentVNode as r, withModifiers 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] = u((l) => d(l, "top"), ["stop"]))
165
- }, null, 32)) : r("", !0),
166
- e.resizable ? (s(), a("div", {
167
- key: 1,
168
- class: "resizable-handle right",
169
- onMousedown: t[1] || (t[1] = u((l) => d(l, "right"), ["stop"]))
170
- }, null, 32)) : r("", !0),
171
- e.resizable ? (s(), a("div", {
172
- key: 2,
173
- class: "resizable-handle bottom",
174
- onMousedown: t[2] || (t[2] = u((l) => d(l, "bottom"), ["stop"]))
175
- }, null, 32)) : r("", !0),
176
- e.resizable ? (s(), a("div", {
177
- key: 3,
178
- class: "resizable-handle left",
179
- onMousedown: t[3] || (t[3] = u((l) => d(l, "left"), ["stop"]))
180
- }, null, 32)) : r("", !0),
181
- e.resizable ? (s(), a("div", {
182
- key: 4,
183
- class: "resizable-handle top-left",
184
- onMousedown: t[4] || (t[4] = u((l) => d(l, "top-left"), ["stop"]))
185
- }, null, 32)) : r("", !0),
186
- e.resizable ? (s(), a("div", {
187
- key: 5,
188
- class: "resizable-handle top-right",
189
- onMousedown: t[5] || (t[5] = u((l) => d(l, "top-right"), ["stop"]))
190
- }, null, 32)) : r("", !0),
191
- e.resizable ? (s(), a("div", {
192
- key: 6,
193
- class: "resizable-handle bottom-left",
194
- onMousedown: t[6] || (t[6] = u((l) => d(l, "bottom-left"), ["stop"]))
195
- }, null, 32)) : r("", !0),
196
- e.resizable ? (s(), a("div", {
197
- key: 7,
198
- class: "resizable-handle bottom-right",
199
- onMousedown: t[7] || (t[7] = u((l) => d(l, "bottom-right"), ["stop"]))
200
- }, null, 32)) : r("", !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 y, ref as C, onMounted as _, createElementBlock as c, openBlock as g, createVNode as v } from "vue";
2
- import { u as h, p as k, s as x, c as m } from "./index-Bw3sTXPI.js";
3
- import { W as M } from "./index-PV2PkfRE.js";
4
- import { a as D, d as T, f as S } from "./index-CWOXvFfD.js";
5
- import { g as w } from "./index-YjBTGOkO.js";
6
- import { _ as B } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
- const N = { class: "menu-content" }, E = /* @__PURE__ */ y({
8
- __name: "index",
9
- setup(I) {
10
- const p = h(k), { menus: b } = x(p), r = C([]), f = async () => {
11
- var o, l, t, a;
12
- const e = await w({
13
- key: {
14
- type: "mainEquip",
15
- systemKey: sessionStorage.getItem("systemKey")
16
- }
17
- });
18
- if (((o = e == null ? void 0 : e.data) == null ? void 0 : o.type) === "success") {
19
- let i = (t = (l = e == null ? void 0 : e.data) == null ? void 0 : l.result) == null ? void 0 : t.map((s) => s);
20
- return i = (a = m(i)) == null ? void 0 : a.map((s) => {
21
- var n;
22
- const u = Object.values((n = s == null ? void 0 : s.value) == null ? void 0 : n.tableData);
23
- return u.unshift({
24
- id: s == null ? void 0 : s.id
25
- }), u;
26
- }), i;
27
- } else
28
- return [];
29
- };
30
- _(async () => {
31
- var t;
32
- const e = await f(), l = [
33
- {
34
- key: "header",
35
- contents: [
36
- {
37
- label: "主菜单名称",
38
- formType: "Select",
39
- options: (t = m(b.value)) == null ? void 0 : t.map((a) => ({
40
- label: a == null ? void 0 : a.title,
41
- value: a == null ? void 0 : a.title
42
- })),
43
- prop: "主菜单名称"
44
- },
45
- {
46
- label: "隐藏三维显示",
47
- formType: "Switch",
48
- value: !1,
49
- prop: "隐藏三维显示"
50
- },
51
- {
52
- label: "操作"
53
- }
54
- ]
55
- },
56
- {
57
- key: "extraButton",
58
- contents: [
59
- {
60
- label: "新增"
61
- }
62
- ]
63
- },
64
- {
65
- key: "rowButton",
66
- contents: [
67
- {
68
- label: "查看"
69
- },
70
- {
71
- label: "编辑"
72
- },
73
- {
74
- label: "删除"
75
- }
76
- ]
77
- }
78
- ];
79
- l.push({
80
- key: "tableContents",
81
- contents: e
82
- }), r.value = l;
83
- });
84
- const d = (e) => {
85
- (e == null ? void 0 : e.buttonName) === "新增" ? D(e == null ? void 0 : e.singleContent) : (e == null ? void 0 : e.buttonName) === "删除" ? T(e == null ? void 0 : e.singleContent) : (e == null ? void 0 : e.buttonName) === "编辑" && S(e == null ? void 0 : e.singleContent);
86
- };
87
- return (e, o) => (g(), c("div", N, [
88
- v(M, {
89
- itemData: r.value,
90
- class: "table-content",
91
- onChange: d
92
- }, null, 8, ["itemData"])
93
- ]));
94
- }
95
- }), R = /* @__PURE__ */ B(E, [["__scopeId", "data-v-26f5cadc"]]);
96
- export {
97
- R as default
98
- };
@@ -1,103 +0,0 @@
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
- };
@@ -1,30 +0,0 @@
1
- import { defineComponent as l, reactive as c, onMounted as s, createElementBlock as r, openBlock as i, createVNode as p } from "vue";
2
- import { S as m } from "./index-B0H3C7WG.js";
3
- import { W as _ } from "./index-PV2PkfRE.js";
4
- import { _ as d } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- const f = { class: "log-wrap" }, u = /* @__PURE__ */ l({
6
- __name: "index",
7
- setup(b) {
8
- const t = c({ ...m });
9
- s(async () => {
10
- t.tableData = await t.getLogTableDataAsync();
11
- });
12
- const n = (o) => {
13
- var e;
14
- t.clickButton(o, (e = t.tableData) == null ? void 0 : e.map((a) => a.id), (a) => {
15
- console.log("清空操作成功:", a), a && (t.tableData = []);
16
- });
17
- };
18
- return (o, e) => (i(), r("div", f, [
19
- p(_, {
20
- itemData: t.pageData,
21
- allowOperate: !1,
22
- allowSelect: !1,
23
- onOnButtonClick: n
24
- }, null, 8, ["itemData"])
25
- ]));
26
- }
27
- }), B = /* @__PURE__ */ d(u, [["__scopeId", "data-v-b4bfde04"]]);
28
- export {
29
- B as default
30
- };
@@ -1,93 +0,0 @@
1
- import { defineComponent as C, reactive as k, onMounted as D, resolveComponent as B, resolveDirective as T, createElementBlock as y, openBlock as u, 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-d9yiC1Rr.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-C2itW9KG.js";
4
- import "./index-BHtNKL1L.js";
5
- import { f as E } from "./index-YcuQhWbw.js";
6
- import { b as N, s as U } from "./index-Bw3sTXPI.js";
7
- /* empty css */
8
- import "./index-Ds6m_4JJ.js";
9
- import "./request-1RPa2bBn.js";
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
- };
@@ -1,27 +0,0 @@
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
- };
@@ -1,93 +0,0 @@
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
- };