ss-component-new 1.3.700 → 1.3.702

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-ChNfRlIP.js → index-BKoAuSBh.js} +223 -18
  3. package/dist/index-BZ6XZp4O.js +182 -0
  4. package/dist/index-DMqUY4yR.js +27 -0
  5. package/dist/{index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js → index-DXYV8CAc.js} +112561 -111278
  6. package/dist/index-Dad_IdSm.js +213 -0
  7. package/dist/index-Nxu5ivW5.js +1044 -0
  8. package/dist/index-T_MmKXF1.js +50 -0
  9. package/dist/menu-BYmz2cKN.js +5229 -0
  10. package/dist/platform-C9131Sg-.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 +8 -6
  16. package/public/config.js +1 -1
  17. package/dist/JSEncrypt-B36c1iN5.js +0 -1983
  18. package/dist/MTLLoader-DzQM5Czw.js +0 -657
  19. package/dist/URDFLoader-CPXooEPU.js +0 -2299
  20. package/dist/animationData-DOIhMG9C.js +0 -83
  21. package/dist/array-lig-X3M9.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-DwCBmDct.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-B-AFi1eL.js +0 -873
  30. package/dist/index-B0H3C7WG.js +0 -103
  31. package/dist/index-BDRDpsgF.js +0 -25297
  32. package/dist/index-BHtNKL1L.js +0 -27
  33. package/dist/index-BJ3RS3n_.js +0 -63004
  34. package/dist/index-BJLCuYEK.js +0 -84
  35. package/dist/index-BbyrFzEO.js +0 -93
  36. package/dist/index-Bn1_Pbpm.js +0 -98
  37. package/dist/index-BniHrGik.js +0 -107
  38. package/dist/index-BooO2Bml.js +0 -78
  39. package/dist/index-Bw3sTXPI.js +0 -8993
  40. package/dist/index-C7sOKXGv.js +0 -48
  41. package/dist/index-CGUz8yrZ.js +0 -20503
  42. package/dist/index-CGi0g-VN.js +0 -627
  43. package/dist/index-CV_jQDcg.js +0 -9
  44. package/dist/index-CWOXvFfD.js +0 -44
  45. package/dist/index-CjlKFGAF.js +0 -470
  46. package/dist/index-CydXQbtX.js +0 -622
  47. package/dist/index-D9XVxZlg.js +0 -411
  48. package/dist/index-DAJxL40d.js +0 -55
  49. package/dist/index-DBsEVMiM.js +0 -201
  50. package/dist/index-DG4hoOWt.js +0 -665
  51. package/dist/index-DUbk5m5P.js +0 -99
  52. package/dist/index-Ds6m_4JJ.js +0 -28500
  53. package/dist/index-DupTchhl.js +0 -1000
  54. package/dist/index-DxduRnLV.js +0 -93
  55. package/dist/index-DyCq_odP.js +0 -331
  56. package/dist/index-TDMzk3L7.js +0 -83
  57. package/dist/index-UB_oCdlo.js +0 -62
  58. package/dist/index-VV2Ao7jZ.js +0 -119
  59. package/dist/index-YjBTGOkO.js +0 -61
  60. package/dist/index-erE4kNF5.js +0 -30
  61. package/dist/index-iY5h1bpA.js +0 -572
  62. package/dist/index-jbOjjV0j.js +0 -447
  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-Cepry4zn.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-DcUyC6Vh.js +0 -1109
  73. package/dist/threePreview-CbGqCMch.js +0 -2810
  74. package/dist/threeSceneView-BDyFpkq-.js +0 -1290
  75. package/dist/threeSceneViewForCPMPIP-DUSufDRq.js +0 -539
  76. package/dist/threeTrackPathView-yLEUuGXc.js +0 -620
  77. package/dist/threeViewerHost-BXdZ6Wgi.js +0 -233
  78. package/dist/urdfTree-C6mx4T9t.js +0 -254
  79. package/dist/workpieceTreePanel-DjR9f2D1.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,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-iY5h1bpA.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_05e3a1d8_lang-Mr9QL-WU.js";
4
- import "./index-BHtNKL1L.js";
5
- import { f as E } from "./index-BDRDpsgF.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,331 +0,0 @@
1
- import { watch as be, ref as h, computed as Le } from "vue";
2
- import { p as w, k as D, w as Te } from "./index-Ds6m_4JJ.js";
3
- import { s as we, b as N, p as F, u as De, B as Ee, c as E, K as U, E as Be, r as Re, aZ as Ae, a_ as Pe, a$ as Se, b0 as qe, b1 as xe, b2 as Ue } from "./index-Bw3sTXPI.js";
4
- import { s as V } from "./request-1RPa2bBn.js";
5
- import { i as ke } from "./fileUtil-UOt_otFo.js";
6
- const Ne = N(F), { systemUrl: p } = we(Ne);
7
- let B = p.value === "" || !p.value ? "http://222.92.178.198:63002" : p.value;
8
- be(
9
- () => p.value,
10
- () => {
11
- B = p.value === "" || !p.value ? "http://222.92.178.198:63002" : p.value;
12
- },
13
- { deep: !0, immediate: !0 }
14
- );
15
- function Fe(d) {
16
- return V({
17
- url: `${B}/platform/import_data`,
18
- method: "post",
19
- data: d
20
- });
21
- }
22
- function Ve(d) {
23
- return V({
24
- url: `${B}/platform/export_data`,
25
- method: "post",
26
- data: d,
27
- responseType: "blob"
28
- });
29
- }
30
- const We = [
31
- {
32
- label: "编辑",
33
- value: "edit"
34
- },
35
- {
36
- label: "删除",
37
- value: "delete"
38
- }
39
- ], k = "role", u = {
40
- ENABLE: {
41
- value: "enable",
42
- label: "启用",
43
- tag: "primary"
44
- },
45
- DISABLED: {
46
- value: "disabled",
47
- label: "禁用",
48
- tag: "info"
49
- }
50
- }, c = {
51
- EDITABLE: {
52
- value: "editable",
53
- label: "可编辑",
54
- tag: "primary"
55
- },
56
- DISABLED: {
57
- value: "disabled",
58
- label: "不可编辑",
59
- tag: "info"
60
- }
61
- }, ze = {
62
- TABLE: {
63
- value: "Table"
64
- }
65
- }, $e = ["查看", "查看三维模型", "导出paraform", "导出", "导出全部", "导出选中"], Ze = () => {
66
- const d = N(), o = De(F), { isSuperAdmin: y, userId: z, userName: v, platId: l } = Ee(), R = h([]), $ = (t) => {
67
- const { propertyType: e } = t || {};
68
- return e === ze.TABLE.value;
69
- }, I = h({}), G = Le(() => {
70
- var e;
71
- return y.value ? !0 : ((e = I.value) == null ? void 0 : e.status) === c.EDITABLE.value;
72
- }), C = (t) => {
73
- var s, n;
74
- const e = U(Date.now()), { id: a = 0 } = d.loginUserInfo || {}, r = E(t);
75
- return r.update_user_id = a, r.update_user_name = v.value, r.update_time = e, r.checked_ids = ((n = (s = r == null ? void 0 : r.main_ids) == null ? void 0 : s.map) == null ? void 0 : n.call(s, (i) => {
76
- const { id: f } = i;
77
- return f;
78
- })) || [], r;
79
- }, A = (t) => {
80
- let e = [];
81
- return t.forEach((a) => {
82
- var r;
83
- if (a.isPropertyLeaf) {
84
- const s = E(a);
85
- e.push(s);
86
- }
87
- a.children && ((r = a.children) == null ? void 0 : r.length) > 0 && (e = e.concat(A(a.children)));
88
- }), e;
89
- }, P = (t = []) => {
90
- let e = [];
91
- for (let a = 0; a < t.length; a++) {
92
- const r = t[a], s = r.children || [];
93
- delete r.children, e.push(r), s && s.length > 0 && (e = e.concat(P(s)));
94
- }
95
- return e;
96
- }, M = (t) => {
97
- let e = [];
98
- return t.forEach((a) => {
99
- if (a.isPropertyLeaf) {
100
- const r = P(a.params);
101
- e = e.concat(r);
102
- }
103
- }), e;
104
- }, S = (t, e) => {
105
- const a = d.loginUserInfo, { id: r = 0 } = a || {}, s = U(Date.now());
106
- let n = {
107
- name: "",
108
- code: "",
109
- order_no: 1,
110
- data_scope: 1,
111
- remark: "",
112
- tenant_id: "",
113
- create_time: s,
114
- update_time: s,
115
- create_user_id: r,
116
- create_user_name: v.value,
117
- update_user_id: r,
118
- update_user_name: v.value,
119
- status: u.ENABLE.value,
120
- main_ids: [],
121
- checked_ids: [],
122
- params: []
123
- };
124
- const { checkAll: i, tree: f } = e || {};
125
- if (i && f) {
126
- const g = A(f), Ie = g.map((T) => ({
127
- ...T,
128
- department_scope: "unlimited"
129
- }));
130
- n.main_ids = Ie, n.checked_ids = g.map((T) => T.id), n.params = M(g);
131
- }
132
- if (t) {
133
- const g = C(t);
134
- n = {
135
- ...n,
136
- ...g
137
- };
138
- }
139
- return n;
140
- }, b = (t) => {
141
- const e = [t];
142
- return {
143
- platId: l.value,
144
- changeRoleData: e
145
- };
146
- }, O = async (t) => await xe({
147
- platId: t
148
- }), H = async () => {
149
- var e;
150
- o.setImportLoading(!0);
151
- const t = await O(l.value).finally(() => {
152
- o.setImportLoading(!1);
153
- });
154
- return (e = t == null ? void 0 : t.data) == null ? void 0 : e.result;
155
- }, q = () => ({
156
- name: ""
157
- }), _ = h(q()), K = () => {
158
- _.value = q();
159
- }, m = h({
160
- pageNum: 1,
161
- pageSize: 10,
162
- total: 0,
163
- pageSizes: [5, 10, 20, 50, 100]
164
- }), Q = (t) => {
165
- m.value.pageNum = t;
166
- }, W = (t) => {
167
- m.value.pageSize = t;
168
- }, Z = () => ({
169
- platId: l.value,
170
- pageNum: m.value.pageNum,
171
- pageSize: m.value.pageSize,
172
- filter: {
173
- ..._.value
174
- }
175
- }), j = async (t) => {
176
- var a;
177
- const e = await Ue(t);
178
- return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
179
- }, J = async () => {
180
- const t = Z(), e = await j(t), { total: a } = e || {};
181
- return m.value.total = a, e || {};
182
- }, X = async (t) => {
183
- delete t.role_id;
184
- const e = b(t);
185
- await qe(e);
186
- }, Y = async (t) => {
187
- o.setImportLoading(!0), await X(t).finally(() => {
188
- o.setImportLoading(!1);
189
- });
190
- }, ee = async (t) => {
191
- const e = b(t);
192
- await Se(e);
193
- }, te = async (t) => {
194
- o.setImportLoading(!0), await ee(t).finally(() => {
195
- o.setImportLoading(!1);
196
- });
197
- }, ae = async (t) => {
198
- const { role_id: e } = t, a = {
199
- platId: l.value,
200
- role_id: [e]
201
- };
202
- await Pe(a);
203
- }, re = async (t) => {
204
- await Be.confirm("是否确认要删除", "", {
205
- showClose: !1,
206
- confirmButtonText: "确认",
207
- cancelButtonText: "取消",
208
- type: "warning",
209
- modalClass: "delete-role-message-modal",
210
- confirmButtonClass: "delete-role-confirm"
211
- }), o.setImportLoading(!0), await ae(t).finally(() => {
212
- o.setImportLoading(!1);
213
- });
214
- }, se = (t) => {
215
- const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
216
- return (a == null ? void 0 : a.label) || t;
217
- }, ne = (t) => {
218
- const e = t.toUpperCase(), a = u == null ? void 0 : u[e];
219
- return (a == null ? void 0 : a.tag) || "info";
220
- }, oe = async (t) => {
221
- var a;
222
- const e = await Ae(t);
223
- return ((a = e == null ? void 0 : e.data) == null ? void 0 : a.result) || [];
224
- }, le = async (t) => {
225
- const e = {
226
- platId: l.value,
227
- includeHidden: !0,
228
- roleIds: t
229
- };
230
- o.setImportLoading(!0);
231
- const a = await oe(e).finally(() => {
232
- o.setImportLoading(!1);
233
- });
234
- R.value = a;
235
- }, ie = (t = "") => {
236
- const e = t.toUpperCase(), a = c == null ? void 0 : c[e];
237
- return (a == null ? void 0 : a.label) || t;
238
- }, ce = (t = "") => {
239
- const e = t.toUpperCase(), a = c == null ? void 0 : c[e];
240
- return (a == null ? void 0 : a.tag) || "info";
241
- }, L = (t) => t === c.EDITABLE.value, ue = (t, e) => {
242
- const { status: a } = t || {}, { tableOperate: r } = e || {};
243
- return !!(L(a) || r && $e.includes(r));
244
- }, pe = (t, e) => {
245
- const { status: a } = t || {};
246
- return L(a);
247
- }, de = (t, e) => {
248
- if (y.value)
249
- return !0;
250
- const { type: a } = e || {};
251
- if (w.TABLE === a)
252
- return ue(t, e);
253
- if (w.FORM === a)
254
- return pe(t);
255
- const { status: r } = t || {};
256
- return L(r);
257
- }, me = async () => {
258
- var r, s;
259
- const e = {
260
- pageName: "系统管理/角色管理",
261
- platId: l.value,
262
- userId: z.value
263
- }, a = await Re(e);
264
- return (s = (r = a == null ? void 0 : a.data) == null ? void 0 : r.result) == null ? void 0 : s[0];
265
- }, fe = async () => {
266
- if (!y.value)
267
- return I.value = await me(), I;
268
- }, x = (t) => {
269
- const e = E(t);
270
- for (let a = 0; a < e.length; a++) {
271
- const r = e == null ? void 0 : e[a], { id: s, prop: n, children: i } = r || {};
272
- r.uniqueKey = `${s}_${n}`, i && (r.children = x(i));
273
- }
274
- return e;
275
- }, ge = async (t) => {
276
- var a;
277
- const e = await Fe(t);
278
- return (a = e == null ? void 0 : e.data) == null ? void 0 : a.result;
279
- }, ye = async (t) => {
280
- const e = new FormData(), a = S(), { create_user_id: r, update_user_id: s, create_user_name: n, update_user_name: i } = a;
281
- return e.set("platId", l.value), e.set("file", t), e.set("tableType", k), e.set("create_user_id", r), e.set("update_user_id", s), e.set("create_user_name", n), e.set("update_user_name", i), await ge(e);
282
- }, _e = async (t) => await Ve(t), he = async () => {
283
- const t = {
284
- platId: l.value,
285
- tableType: k,
286
- filter: _.value
287
- }, e = await _e(t);
288
- return ke(e), e;
289
- }, ve = [["名称", "编码", "备注", "状态"]];
290
- return {
291
- compType: w,
292
- isTableFeature: $,
293
- queryInfo: _,
294
- resetQuery: K,
295
- pageInfo: m,
296
- setPageNum: Q,
297
- setPageSize: W,
298
- initGetByPage: J,
299
- initRoleList: H,
300
- initCreate: Y,
301
- initUpdate: te,
302
- initDelete: re,
303
- initRoleRequestData: b,
304
- initPropertyAuthTree: le,
305
- propertyAuthTree: R,
306
- initRoleItem: S,
307
- isSuperAdmin: y,
308
- getStatusLabelByValue: se,
309
- getStatusTagByValue: ne,
310
- getFeatureStatusLabelByValue: ie,
311
- getFeatureStatusTagByValue: ce,
312
- hasEditable: de,
313
- initRoleConfig: fe,
314
- hasRoleEditAuth: G,
315
- buildParamAuthTree: x,
316
- initImport: ye,
317
- initExport: he,
318
- exportTemplate: async () => {
319
- const t = D.aoa_to_sheet(ve), e = D.book_new();
320
- D.book_append_sheet(e, t, "角色"), Te(e, "角色模板.xlsx");
321
- }
322
- };
323
- };
324
- export {
325
- Ve as e,
326
- c as f,
327
- Fe as i,
328
- We as o,
329
- u as s,
330
- Ze as u
331
- };
@@ -1,83 +0,0 @@
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-BJ3RS3n_.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
- };
@@ -1,62 +0,0 @@
1
- import { s as h, b as l, p as w, B as F } from "./index-Bw3sTXPI.js";
2
- import { s as f } from "./request-1RPa2bBn.js";
3
- import { watch as p } from "vue";
4
- const P = l(w), { systemUrl: s, extraUrl: o } = h(P);
5
- let d = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value, m = o.value === "" || !o.value ? "http://139.196.154.85:20015" : o.value;
6
- p(
7
- () => s.value,
8
- () => {
9
- d = s.value === "" || !s.value ? "http://222.92.178.198:63002" : s.value;
10
- },
11
- { deep: !0, immediate: !0 }
12
- );
13
- p(
14
- () => o.value,
15
- () => {
16
- m = o.value === "" || !o.value ? "http://139.196.154.85:20015" : o.value;
17
- },
18
- { deep: !0, immediate: !0 }
19
- );
20
- function S(a) {
21
- return f({
22
- url: m + "/api/face/face-verify",
23
- method: "post",
24
- data: a
25
- });
26
- }
27
- function V(a) {
28
- return f({
29
- url: d + "/platform/updatedata_faceURL",
30
- method: "post",
31
- data: a
32
- });
33
- }
34
- const b = () => {
35
- const a = l(), { platId: v, userName: y, account: u, isSuperAdmin: g } = F(), c = async (t) => {
36
- if (!t)
37
- return;
38
- const e = new FormData();
39
- e.set("file", t);
40
- const r = a.systemInfo.plat_id;
41
- return e.set("systemKey", r), await S(e);
42
- };
43
- return { updateFacePhoto: async (t) => {
44
- const e = a.loginUserInfo, { password: r } = e || {}, n = {
45
- platId: v.value,
46
- userName: y.value,
47
- password: r,
48
- faceURL: t
49
- };
50
- g.value && (n.platId = ""), await V(n);
51
- }, initVerifySelf: async (t) => {
52
- var i;
53
- const e = await c(t), { account: r, password: n } = ((i = e == null ? void 0 : e.data) == null ? void 0 : i.data) || {};
54
- if (!u)
55
- return !1;
56
- const I = a.loginUserInfo, { password: U } = I || {};
57
- return r === u.value && n === U;
58
- }, initVerify: async (t) => await c(t) };
59
- };
60
- export {
61
- b as u
62
- };
@@ -1,119 +0,0 @@
1
- import { defineComponent as C, reactive as k, ref as v, onMounted as D, nextTick as b, resolveComponent as i, resolveDirective as T, createElementBlock as m, openBlock as u, createVNode as t, withCtx as n, withDirectives as w, createElementVNode as p, createTextVNode as _ } from "vue";
2
- import { S as x } from "./index-CGi0g-VN.js";
3
- import { W as B } from "./index-BJ3RS3n_.js";
4
- import { s as F } from "./index-11kpzK0A.js";
5
- import { a as y } from "./index-BDRDpsgF.js";
6
- import { u as S, p as I, s as N } from "./index-Bw3sTXPI.js";
7
- import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
8
- const E = { class: "menu-module" }, M = {
9
- class: "table-wrap",
10
- "element-loading-text": "加载中..."
11
- }, O = { class: "module-dialog-default" }, V = /* @__PURE__ */ C({
12
- __name: "index",
13
- setup(P) {
14
- const e = k({ ...x }), s = v(null), c = S(I), { configMenu: a } = N(c);
15
- return D(() => {
16
- var r;
17
- e.formatFormData(a.value), b(() => {
18
- var o, l;
19
- (l = s.value) == null || l.setCurrentKey((o = a.value) == null ? void 0 : o.path), c.setActiveMenuPath("/平台管理/菜单管理");
20
- }), a.value && e.getInitialSubStructure((r = a.value) == null ? void 0 : r.path);
21
- }), (r, o) => {
22
- const l = i("el-tree"), d = i("el-splitter-panel"), f = i("el-splitter"), g = i("el-button"), h = T("loading");
23
- return u(), m("div", E, [
24
- t(f, null, {
25
- default: n(() => [
26
- t(d, {
27
- size: 208,
28
- class: "tree-wrap",
29
- min: 200
30
- }, {
31
- default: n(() => [
32
- t(l, {
33
- ref_key: "treeRef",
34
- ref: s,
35
- data: e.treeData,
36
- "expand-on-click-node": !1,
37
- "node-key": "path",
38
- props: { children: "children", label: "label", path: "path" },
39
- "highlight-current": "",
40
- "default-expand-all": "",
41
- "check-on-click-leaf": !1,
42
- "check-strictly": "",
43
- onNodeClick: e.clickNodeTrigger
44
- }, null, 8, ["data", "onNodeClick"])
45
- ]),
46
- _: 1
47
- }),
48
- t(d, { min: 500 }, {
49
- default: n(() => [
50
- w((u(), m("div", M, [
51
- t(B, {
52
- itemData: e.menuPageData,
53
- changedContent: e.changedRow,
54
- operatingForm: e.operatingForm,
55
- onOnFormChange: e.changeTrigger,
56
- onChange: e.handleItemDataChange,
57
- onClickTrigger: e.clickTrigger,
58
- onOnButtonClick: e.clickRowButton
59
- }, null, 8, ["itemData", "changedContent", "operatingForm", "onOnFormChange", "onChange", "onClickTrigger", "onOnButtonClick"])
60
- ])), [
61
- [h, e.tableLoading]
62
- ])
63
- ]),
64
- _: 1
65
- })
66
- ]),
67
- _: 1
68
- }),
69
- t(F, {
70
- class: "module-dialog",
71
- title: e.dialogInfo.title,
72
- visible: e.dialogInfo.show,
73
- width: e.dialogInfo.width,
74
- onBeforeDestroy: e.beforeDialogDestroy
75
- }, {
76
- default: n(() => [
77
- p("div", O, [
78
- t(y, {
79
- rowContents: e.renderFormData,
80
- isEnableWrap: !1,
81
- isEdit: !0,
82
- onChange: e.changeTrigger,
83
- onClickTrigger: e.clickTrigger
84
- }, null, 8, ["rowContents", "onChange", "onClickTrigger"])
85
- ])
86
- ]),
87
- footer: n(() => [
88
- p("div", null, [
89
- t(g, {
90
- onClick: e.beforeDialogDestroy,
91
- id: "themeBorderButton"
92
- }, {
93
- default: n(() => o[0] || (o[0] = [
94
- _("取消")
95
- ])),
96
- _: 1,
97
- __: [0]
98
- }, 8, ["onClick"]),
99
- t(g, {
100
- id: "themeButton",
101
- onClick: e.clickSubmitForm
102
- }, {
103
- default: n(() => o[1] || (o[1] = [
104
- _(" 确认 ")
105
- ])),
106
- _: 1,
107
- __: [1]
108
- }, 8, ["onClick"])
109
- ])
110
- ]),
111
- _: 1
112
- }, 8, ["title", "visible", "width", "onBeforeDestroy"])
113
- ]);
114
- };
115
- }
116
- }), G = /* @__PURE__ */ R(V, [["__scopeId", "data-v-74868a06"]]);
117
- export {
118
- G as default
119
- };