ss-component-new 1.1.683 → 1.1.684

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 (48) hide show
  1. package/dist/{array-CFgXuvC7.js → array-DQv6Fq_h.js} +1 -1
  2. package/dist/{index-D7972vPx.cjs → index-A3saAmqE.cjs} +1 -1
  3. package/dist/{index-CkJrBjxb.js → index-BEw4LLmL.js} +1 -1
  4. package/dist/{index-Bu7FgFfT.js → index-BHNMTdto.js} +6 -6
  5. package/dist/{index-Ctp-ZNXJ.js → index-BHQX2b3v.js} +4 -4
  6. package/dist/{index-DnfBO8l9.cjs → index-BQsjG47J.cjs} +1 -1
  7. package/dist/{index-DkdlE-0X.js → index-BRgZOn_I.js} +1 -1
  8. package/dist/{index-Tc0mRMFd.js → index-BSgBncEa.js} +1 -1
  9. package/dist/{index-BTJMFN46.js → index-BslQsQTm.js} +4 -4
  10. package/dist/{index-D8TOsOyy.js → index-C8Eee7Ii.js} +4 -4
  11. package/dist/{index-B_V1iStm.js → index-CHAuEpfz.js} +4 -4
  12. package/dist/{index-iKuo-ebM.js → index-CHr0L9Hz.js} +3 -3
  13. package/dist/{index-CYFmTv2U.js → index-CNsfln9_.js} +2 -2
  14. package/dist/{index-CZ4ftvfO.js → index-ClLd4KYT.js} +6 -6
  15. package/dist/{index-CKb8cAaM.js → index-CtdLGajE.js} +6 -6
  16. package/dist/{index-D2R-k46X.js → index-CuAkYbDd.js} +4 -4
  17. package/dist/{index-C4EBKLL9.js → index-D7lAlQGg.js} +5 -5
  18. package/dist/{index-DWoA2-jS.js → index-DDx4MVXZ.js} +9 -9
  19. package/dist/{index-MAIzxb8N.js → index-DTbvrsmi.js} +15 -15
  20. package/dist/{index-Dy8kDV5v.js → index-DYbRjzWS.js} +9 -9
  21. package/dist/{index-ChkX8GDZ.js → index-D_clGpnN.js} +1 -1
  22. package/dist/{index-Dhy1Y89d.js → index-DawR-pHw.js} +106 -106
  23. package/dist/{index-BzwdCW4U.js → index-DctT6QfQ.js} +5 -5
  24. package/dist/{index-ELMFdxgk.js → index-DjOudbez.js} +6 -6
  25. package/dist/{index-BBOOo1YZ.js → index-DlNF-SSe.js} +6 -6
  26. package/dist/{index-CSR0zJSn.js → index-DnTCVD54.js} +5 -5
  27. package/dist/{index-_fhSeliS.js → index-Dvr4jMfd.js} +1 -1
  28. package/dist/{index-DdStXKTj.js → index-DwwWetw6.js} +7 -7
  29. package/dist/{index-qQejLivi.cjs → index-eGRu-SFJ.cjs} +1 -1
  30. package/dist/{index-CHiPgrQL.js → index-qEczFkU8.js} +3 -3
  31. package/dist/{index.vue_vue_type_script_setup_true_lang-BaDXL-YS.js → index.vue_vue_type_script_setup_true_lang-DUUF2_hw.js} +2 -2
  32. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BwRUgxBJ.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ChvECHc_.js} +2 -2
  33. package/dist/index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CZov_hXS.js +37373 -0
  34. package/dist/index.vue_vue_type_style_index_0_scoped_2be0f146_lang-CiNzpzwu.cjs +56 -0
  35. package/dist/{index.vue_vue_type_style_index_0_scoped_c81d0427_lang-CtY3vbC8.js → index.vue_vue_type_style_index_0_scoped_c81d0427_lang-OCY6BqHy.js} +9 -9
  36. package/dist/{login-4wzx9zEV.js → login-Czn1jLVJ.js} +13 -13
  37. package/dist/{main-9BX2MJYz.js → main-BMaFysGX.js} +5 -5
  38. package/dist/{menu-DAmGEFm7.js → menu-IwkXhFha.js} +1 -1
  39. package/dist/{modelComp-DbjARUmR.js → modelComp-DSmZe2d_.js} +1 -1
  40. package/dist/ss-component.cjs +1 -1
  41. package/dist/ss-component.css +1 -1
  42. package/dist/ss-component.js +10 -10
  43. package/dist/ss-component2.cjs +1 -1
  44. package/dist/ss-component2.js +18 -19
  45. package/dist/{threeModel-CUBtJRNa.js → threeModel-DEqxNQg2.js} +3 -3
  46. package/package.json +1 -1
  47. package/dist/index.vue_vue_type_style_index_0_scoped_2be0f146_lang-C82VlVRJ.js +0 -37127
  48. package/dist/index.vue_vue_type_style_index_0_scoped_2be0f146_lang-D1mE-jpK.cjs +0 -56
@@ -1,20 +1,20 @@
1
- import { createElementBlock as D, openBlock as O, createElementVNode as b, renderSlot as B, defineComponent as Y, ref as K, resolveComponent as T, createVNode as A, withCtx as g, reactive as tt, watch as j, unref as et, createTextVNode as L, toDisplayString as Q } from "vue";
1
+ import { createElementBlock as D, openBlock as O, createElementVNode as b, renderSlot as B, defineComponent as Y, ref as K, resolveComponent as T, createVNode as g, withCtx as A, reactive as tt, watch as j, unref as et, createTextVNode as L, toDisplayString as Q } from "vue";
2
2
  import { _ as R } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
3
  import { useRouter as it } from "vue-router";
4
- import { u as ot } from "./login-4wzx9zEV.js";
5
- import { g as M, E as I, s as dt, a as ut } from "./index-ELMFdxgk.js";
6
- import { u as pt, p as z } from "./menu-DAmGEFm7.js";
4
+ import { u as ot } from "./login-Czn1jLVJ.js";
5
+ import { g as M, E, s as dt, a as ut } from "./index-DjOudbez.js";
6
+ import { u as pt, p as z } from "./menu-IwkXhFha.js";
7
7
  import { d as ft } from "./crypto-BRyGpjGR.js";
8
- import { r as yt, g as gt, c as At, a as bt, b as mt, d as ht, h as vt } from "./index-C4EBKLL9.js";
8
+ import { r as yt, g as At, c as gt, a as bt, b as mt, d as ht, h as vt } from "./index-D7lAlQGg.js";
9
9
  const _t = {}, wt = { class: "left-wrap" }, Ct = { class: "left-bg" };
10
- function St(w, E) {
10
+ function St(w, I) {
11
11
  return O(), D("div", wt, [
12
12
  b("div", Ct, [
13
13
  B(w.$slots, "img", {}, void 0, !0)
14
14
  ])
15
15
  ]);
16
16
  }
17
- const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9"]]), Et = { class: "right-wrap" }, kt = { class: "right-title" }, Kt = { class: "right-content" }, Tt = { class: "tab-content" }, Nt = { class: "tab-tips" }, Ut = /* @__PURE__ */ Y({
17
+ const Et = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9"]]), It = { class: "right-wrap" }, kt = { class: "right-title" }, Kt = { class: "right-content" }, Tt = { class: "tab-content" }, Nt = { class: "tab-tips" }, Ut = /* @__PURE__ */ Y({
18
18
  __name: "index",
19
19
  props: {
20
20
  tabList: {
@@ -27,31 +27,31 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
27
27
  }
28
28
  },
29
29
  emits: ["clickLogin", "handleTabClick"],
30
- setup(w, { emit: E }) {
31
- const f = K("account"), r = E, l = () => {
30
+ setup(w, { emit: I }) {
31
+ const f = K("account"), r = I, l = () => {
32
32
  r("clickLogin", f.value);
33
33
  }, m = () => {
34
34
  r("handleTabClick", f.value);
35
35
  };
36
36
  return (d, u) => {
37
37
  const p = T("el-button"), h = T("el-tab-pane"), C = T("el-tabs");
38
- return O(), D("div", Et, [
38
+ return O(), D("div", It, [
39
39
  b("div", kt, [
40
40
  B(d.$slots, "title", {}, void 0, !0)
41
41
  ]),
42
42
  b("div", Kt, [
43
- A(C, {
43
+ g(C, {
44
44
  modelValue: f.value,
45
45
  "onUpdate:modelValue": u[0] || (u[0] = (S) => f.value = S),
46
46
  class: "right-tabs",
47
47
  onTabClick: m
48
48
  }, {
49
- default: g(() => [
50
- A(h, { name: "account" }, {
51
- label: g(() => [
49
+ default: A(() => [
50
+ g(h, { name: "account" }, {
51
+ label: A(() => [
52
52
  B(d.$slots, "tabLabel2", {}, void 0, !0)
53
53
  ]),
54
- default: g(() => [
54
+ default: A(() => [
55
55
  b("div", Tt, [
56
56
  B(d.$slots, "tabContent2", {}, void 0, !0)
57
57
  ]),
@@ -59,8 +59,8 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
59
59
  class: "tab-button special",
60
60
  onClick: l
61
61
  }, [
62
- A(p, { loading: w.loading }, {
63
- default: g(() => [
62
+ g(p, { loading: w.loading }, {
63
+ default: A(() => [
64
64
  B(d.$slots, "tabButton2", {}, void 0, !0)
65
65
  ]),
66
66
  _: 3
@@ -92,7 +92,7 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
92
92
  }
93
93
  },
94
94
  emits: ["handleLoginFormChange"],
95
- setup(w, { emit: E }) {
95
+ setup(w, { emit: I }) {
96
96
  const f = w, r = tt({
97
97
  account: "",
98
98
  password: ""
@@ -103,7 +103,7 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
103
103
  password: [
104
104
  { required: !0, message: "请输入密码", trigger: "blur" }
105
105
  ]
106
- }), m = K(null), d = E;
106
+ }), m = K(null), d = I;
107
107
  return j(() => f.isClickLogin, (u) => {
108
108
  var p;
109
109
  u && ((p = m.value) == null || p.validate((h) => {
@@ -117,26 +117,26 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
117
117
  }), (u, p) => {
118
118
  const h = T("svg-icon"), C = T("el-input"), S = T("el-form-item"), U = T("el-form");
119
119
  return O(), D("div", Bt, [
120
- A(U, {
120
+ g(U, {
121
121
  model: r,
122
122
  rules: l,
123
123
  ref_key: "formRef",
124
124
  ref: m
125
125
  }, {
126
- default: g(() => [
127
- A(S, {
126
+ default: A(() => [
127
+ g(S, {
128
128
  label: "",
129
129
  prop: "account"
130
130
  }, {
131
- default: g(() => [
132
- A(C, {
131
+ default: A(() => [
132
+ g(C, {
133
133
  modelValue: r.account,
134
134
  "onUpdate:modelValue": p[0] || (p[0] = (N) => r.account = N),
135
135
  placeholder: "请输入账号",
136
136
  clearable: ""
137
137
  }, {
138
- prefix: g(() => [
139
- A(h, {
138
+ prefix: A(() => [
139
+ g(h, {
140
140
  name: "account",
141
141
  style: { width: "15px", height: "15px" }
142
142
  })
@@ -146,12 +146,12 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
146
146
  ]),
147
147
  _: 1
148
148
  }),
149
- A(S, {
149
+ g(S, {
150
150
  label: "",
151
151
  prop: "password"
152
152
  }, {
153
- default: g(() => [
154
- A(C, {
153
+ default: A(() => [
154
+ g(C, {
155
155
  modelValue: r.password,
156
156
  "onUpdate:modelValue": p[1] || (p[1] = (N) => r.password = N),
157
157
  type: "password",
@@ -159,8 +159,8 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
159
159
  "show-password": "",
160
160
  clearable: ""
161
161
  }, {
162
- prefix: g(() => [
163
- A(h, {
162
+ prefix: A(() => [
163
+ g(h, {
164
164
  name: "password",
165
165
  style: { width: "15px", height: "15px" }
166
166
  })
@@ -185,8 +185,8 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
185
185
  }
186
186
  },
187
187
  emits: ["handleCardInput"],
188
- setup(w, { emit: E }) {
189
- const f = w, r = K(""), l = E, m = (d) => {
188
+ setup(w, { emit: I }) {
189
+ const f = w, r = K(""), l = I, m = (d) => {
190
190
  l("handleCardInput", d);
191
191
  };
192
192
  return j(() => f.activeTabName, (d) => {
@@ -195,13 +195,13 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
195
195
  const p = T("el-image"), h = T("el-input");
196
196
  return O(), D("div", Dt, [
197
197
  b("div", Ot, [
198
- A(p, {
198
+ g(p, {
199
199
  src: et(Lt),
200
200
  fit: "contain"
201
201
  }, null, 8, ["src"])
202
202
  ]),
203
203
  b("div", Rt, [
204
- A(h, {
204
+ g(h, {
205
205
  modelValue: r.value,
206
206
  "onUpdate:modelValue": u[0] || (u[0] = (C) => r.value = C),
207
207
  onChange: m,
@@ -209,7 +209,7 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
209
209
  }, null, 8, ["modelValue"])
210
210
  ]),
211
211
  b("div", Jt, [
212
- A(p, {
212
+ g(p, {
213
213
  src: et(Qt),
214
214
  fit: "contain"
215
215
  }, null, 8, ["src"])
@@ -217,30 +217,30 @@ const It = /* @__PURE__ */ R(_t, [["render", St], ["__scopeId", "data-v-9b7ee6c9
217
217
  ]);
218
218
  };
219
219
  }
220
- }), Xt = /* @__PURE__ */ R(Vt, [["__scopeId", "data-v-23f91251"]]), qt = pt(z), at = ot(z), st = K(!1), nt = K(!1), Gt = async () => {
220
+ }), Xt = /* @__PURE__ */ R(Vt, [["__scopeId", "data-v-23f91251"]]), qt = pt(z), at = ot(z), nt = K(!1), st = K(!1), Gt = async () => {
221
221
  const w = M({
222
222
  key: {
223
223
  systemKey: sessionStorage.getItem("systemKey"),
224
224
  pageKey: "menu"
225
225
  }
226
- }), E = M({
226
+ }), I = M({
227
227
  key: {
228
228
  systemKey: sessionStorage.getItem("systemKey"),
229
229
  type: "structure"
230
230
  }
231
231
  });
232
- return await Promise.all([w, E]).then((f) => {
232
+ return await Promise.all([w, I]).then((f) => {
233
233
  var m, d, u, p, h, C, S, U, N, J, V, X, q, G;
234
234
  const r = f == null ? void 0 : f[0], l = f == null ? void 0 : f[1];
235
235
  if (r.data.code === 200) {
236
236
  const F = (S = (C = (h = (p = (u = (d = (m = r == null ? void 0 : r.data) == null ? void 0 : m.result) == null ? void 0 : d[0]) == null ? void 0 : u.value) == null ? void 0 : p.pageData) == null ? void 0 : h.compData) == null ? void 0 : C[0]) == null ? void 0 : S.contents;
237
- qt.setRawMenus(F ?? []), st.value = ((U = r == null ? void 0 : r.data) == null ? void 0 : U.result) && ((J = (N = r == null ? void 0 : r.data) == null ? void 0 : N.result) == null ? void 0 : J.length) > 0;
237
+ qt.setRawMenus(F ?? []), nt.value = ((U = r == null ? void 0 : r.data) == null ? void 0 : U.result) && ((J = (N = r == null ? void 0 : r.data) == null ? void 0 : N.result) == null ? void 0 : J.length) > 0;
238
238
  } else
239
- I.error("获取模型菜单响应失败");
240
- l.data.code === 200 ? l.data.result && ((V = l.data.result) == null ? void 0 : V.length) > 0 && (at.setStructureData(l.data.result), at.setIsStructureExist(!0), nt.value = ((X = l == null ? void 0 : l.data) == null ? void 0 : X.result) && ((G = (q = l == null ? void 0 : l.data) == null ? void 0 : q.result) == null ? void 0 : G.length) > 0) : I.error("获取模型结构响应失败");
239
+ E.error("获取模型菜单响应失败");
240
+ l.data.code === 200 ? l.data.result && ((V = l.data.result) == null ? void 0 : V.length) > 0 && (at.setStructureData(l.data.result), at.setIsStructureExist(!0), st.value = ((X = l == null ? void 0 : l.data) == null ? void 0 : X.result) && ((G = (q = l == null ? void 0 : l.data) == null ? void 0 : q.result) == null ? void 0 : G.length) > 0) : E.error("获取模型结构响应失败");
241
241
  }), {
242
- menuExist: st.value,
243
- structureExist: nt.value
242
+ menuExist: nt.value,
243
+ structureExist: st.value
244
244
  };
245
245
  };
246
246
  function Zt() {
@@ -259,7 +259,7 @@ function Zt() {
259
259
  const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class: "login-body-item left" }, jt = { class: "login-body-item right" }, zt = /* @__PURE__ */ Y({
260
260
  __name: "index",
261
261
  emits: ["change"],
262
- setup(w, { emit: E }) {
262
+ setup(w, { emit: I }) {
263
263
  const f = it(), r = ot(z), l = K({
264
264
  // sysCTitle: 'INSOFWORKS',
265
265
  sysCTitle: "",
@@ -284,38 +284,38 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
284
284
  d.value = !1, H(e);
285
285
  }, C = (e, a) => {
286
286
  d.value = !1, e && H(a);
287
- }, S = (e) => gt(e), U = (e) => {
287
+ }, S = (e) => At(e), U = (e) => {
288
288
  let a;
289
- const s = At(e), n = bt(s), y = mt(n), v = ht(y, "parentPath");
289
+ const n = gt(e), s = bt(n), y = mt(s), v = ht(y, "parentPath");
290
290
  return a = vt(v), a;
291
291
  }, N = (e, a) => {
292
- var n, y, v;
293
- const s = (a == null ? void 0 : a.userRoles) ?? (a == null ? void 0 : a.角色名称);
292
+ var s, y, v;
293
+ const n = (a == null ? void 0 : a.userRoles) ?? (a == null ? void 0 : a.角色名称);
294
294
  try {
295
- if (a.layer && ((n = a == null ? void 0 : a.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN")
295
+ if (a.layer && ((s = a == null ? void 0 : a.layer) == null ? void 0 : s.toUpperCase()) === "SUPERADMIN")
296
296
  return "superAdmin";
297
- if (Array.isArray(s)) {
298
- if ((s == null ? void 0 : s.length) === 1) {
299
- const o = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.roleName) === (s == null ? void 0 : s[0]) || t.角色名称 === (s == null ? void 0 : s[0])), _ = S(o), c = U(o == null ? void 0 : o[_]);
297
+ if (Array.isArray(n)) {
298
+ if ((n == null ? void 0 : n.length) === 1) {
299
+ const o = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.roleName) === (n == null ? void 0 : n[0]) || t.角色名称 === (n == null ? void 0 : n[0])), _ = S(o), c = U(o == null ? void 0 : o[_]);
300
300
  return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((t) => t.checkedButtons) : [] : [];
301
301
  }
302
- if ((s == null ? void 0 : s.length) > 1) {
303
- let o = e == null ? void 0 : e.filter((t) => s == null ? void 0 : s.includes(t.roleName || (t == null ? void 0 : t.角色名称)));
302
+ if ((n == null ? void 0 : n.length) > 1) {
303
+ let o = e == null ? void 0 : e.filter((t) => n == null ? void 0 : n.includes(t.roleName || (t == null ? void 0 : t.角色名称)));
304
304
  const _ = S(o == null ? void 0 : o[0]), c = (v = (y = o == null ? void 0 : o.map((t) => Array.isArray(t == null ? void 0 : t[_]) ? t == null ? void 0 : t[_] : [])) == null ? void 0 : y.flat()) == null ? void 0 : v.flatMap((t) => t.checkedButtons);
305
- return (c == null ? void 0 : c.length) === 0 ? I.error("该用户没有权限,请联系管理员") : new Set(c);
305
+ return (c == null ? void 0 : c.length) === 0 ? E.error("该用户没有权限,请联系管理员") : new Set(c);
306
306
  }
307
307
  }
308
- if (typeof s == "string") {
309
- const o = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.roleName) === s || (t == null ? void 0 : t.角色名称) === s), _ = S(o), c = U(o == null ? void 0 : o[_]);
308
+ if (typeof n == "string") {
309
+ const o = e == null ? void 0 : e.find((t) => (t == null ? void 0 : t.roleName) === n || (t == null ? void 0 : t.角色名称) === n), _ = S(o), c = U(o == null ? void 0 : o[_]);
310
310
  return o && c && Array.isArray(c) ? o ? c == null ? void 0 : c.flatMap((t) => t.checkedButtons) : [] : [];
311
311
  }
312
312
  } catch (o) {
313
313
  throw new Error(o);
314
314
  }
315
315
  }, J = async (e) => {
316
- var a, s;
316
+ var a, n;
317
317
  try {
318
- let n = [];
318
+ let s = [];
319
319
  const y = await M({
320
320
  key: {
321
321
  systemKey: e == null ? void 0 : e.systemKey,
@@ -325,34 +325,34 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
325
325
  }
326
326
  });
327
327
  if (y.data.code === 200) {
328
- const v = (s = (a = y.data) == null ? void 0 : a.result) == null ? void 0 : s.map((o) => o.value.tableData);
329
- n = N(v, e);
328
+ const v = (n = (a = y.data) == null ? void 0 : a.result) == null ? void 0 : n.map((o) => o.value.tableData);
329
+ s = N(v, e);
330
330
  }
331
- if (n)
332
- return Array.isArray(n) ? Array.from(n) : n;
333
- throw I.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
334
- } catch (n) {
335
- throw I.error("获取用户权限失败,请联系管理员"), new Error(n);
331
+ if (s)
332
+ return Array.isArray(s) ? Array.from(s) : s;
333
+ throw E.error("获取用户权限失败,请联系管理员"), new Error("获取用户权限失败,请联系管理员");
334
+ } catch (s) {
335
+ throw E.error("获取用户权限失败,请联系管理员"), new Error(s);
336
336
  }
337
337
  }, V = async (e) => {
338
- var a, s, n, y, v, o, _;
338
+ var a, n, s, y, v, o, _;
339
339
  try {
340
340
  let c = [], t, x;
341
341
  const Z = await M({
342
342
  key: {
343
343
  // pageKey: '/系统管理/用户管理',
344
344
  pageKey: "系统管理/用户管理",
345
- type: "data",
346
- systemKey: sessionStorage.getItem("tenantKey")
345
+ type: "data"
346
+ // systemKey:sessionStorage.getItem('tenantKey')
347
347
  }
348
348
  }), $ = await M({
349
349
  key: {
350
- layer: "superAdmin",
351
- systemKey: sessionStorage.getItem("tenantKey")
350
+ layer: "superAdmin"
351
+ // systemKey:sessionStorage.getItem('tenantKey')
352
352
  }
353
353
  });
354
354
  if (Z.data.code === 200 && $.data.code === 200) {
355
- const ct = (s = (a = $.data) == null ? void 0 : a.result) == null ? void 0 : s.map((i) => {
355
+ const ct = (n = (a = $.data) == null ? void 0 : a.result) == null ? void 0 : n.map((i) => {
356
356
  var k, P;
357
357
  return {
358
358
  ...i.value.tableData,
@@ -360,7 +360,7 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
360
360
  systemKey: (P = i == null ? void 0 : i.key) == null ? void 0 : P.systemKey,
361
361
  id: i.id
362
362
  };
363
- }), lt = (y = (n = Z.data) == null ? void 0 : n.result) == null ? void 0 : y.map((i) => {
363
+ }), lt = (y = (s = Z.data) == null ? void 0 : s.result) == null ? void 0 : y.map((i) => {
364
364
  var k, P;
365
365
  return {
366
366
  ...i.value.tableData,
@@ -371,7 +371,7 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
371
371
  }), W = [...ct, ...lt];
372
372
  if (t = W == null ? void 0 : W.find((i) => (i == null ? void 0 : i.account) === (e == null ? void 0 : e.account) || (i == null ? void 0 : i.账号) === (e == null ? void 0 : e.account)), t) {
373
373
  if (((v = t.layer) == null ? void 0 : v.toUpperCase()) !== "SUPERADMIN" && (!(t != null && t.状态) || (t == null ? void 0 : t.状态) === "禁用" || (t == null ? void 0 : t.status) === "禁用")) {
374
- I.error("该用户已被禁用,请联系管理员"), u.value = !1;
374
+ E.error("该用户已被禁用,请联系管理员"), u.value = !1;
375
375
  return;
376
376
  }
377
377
  c = await J(t);
@@ -380,7 +380,7 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
380
380
  if (t.password ? k = ((o = t.layer) == null ? void 0 : o.toUpperCase()) === "SUPERADMIN" ? t.password : ft(t.password, i) : k = ((_ = t.layer) == null ? void 0 : _.toUpperCase()) === "SUPERADMIN" ? t.password : yt, (e == null ? void 0 : e.password) === k)
381
381
  x = t;
382
382
  else
383
- throw x = null, I.error("输入的密码错误,请重新输入"), u.value = !1, new Error("输入的密码错误,请重新输入");
383
+ throw x = null, E.error("输入的密码错误,请重新输入"), u.value = !1, new Error("输入的密码错误,请重新输入");
384
384
  }
385
385
  }
386
386
  return x && c ? {
@@ -391,16 +391,16 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
391
391
  throw new Error(c);
392
392
  }
393
393
  }, X = async (e) => {
394
- var s, n, y;
394
+ var n, s, y;
395
395
  const a = await V(e);
396
396
  if (a != null && a.matchedUser) {
397
397
  r.setLoginUserInfo(a.matchedUser), sessionStorage.setItem("authority", JSON.stringify(a.userAuthority));
398
- const v = ((n = (s = a.matchedUser) == null ? void 0 : s.layer) == null ? void 0 : n.toUpperCase()) === "SUPERADMIN";
398
+ const v = ((s = (n = a.matchedUser) == null ? void 0 : n.layer) == null ? void 0 : s.toUpperCase()) === "SUPERADMIN";
399
399
  return sessionStorage.setItem("isSuperAdmin", JSON.stringify(v)), sessionStorage.setItem("systemKey", (y = a.matchedUser) == null ? void 0 : y.systemKey), await q(a.matchedUser), !0;
400
400
  } else
401
- throw u.value = !1, I.error("该用户不存在,请重新输入"), new Error("该用户不存在,请重新输入");
401
+ throw u.value = !1, E.error("该用户不存在,请重新输入"), new Error("该用户不存在,请重新输入");
402
402
  }, q = async (e) => {
403
- var s, n, y, v, o, _, c, t, x;
403
+ var n, s, y, v, o, _, c, t, x;
404
404
  const a = await M({
405
405
  key: {
406
406
  // pageKey: '/user',
@@ -408,38 +408,38 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
408
408
  systemKey: e == null ? void 0 : e.systemKey
409
409
  }
410
410
  });
411
- if (a.data.code === 200 && (s = a.data) != null && s.result && Array.isArray((n = a.data) == null ? void 0 : n.result) && ((v = (y = a.data) == null ? void 0 : y.result) == null ? void 0 : v.length) > 0) {
411
+ if (a.data.code === 200 && (n = a.data) != null && n.result && Array.isArray((s = a.data) == null ? void 0 : s.result) && ((v = (y = a.data) == null ? void 0 : y.result) == null ? void 0 : v.length) > 0) {
412
412
  const Z = (x = (t = (c = (_ = (o = a.data) == null ? void 0 : o.result) == null ? void 0 : _[0]) == null ? void 0 : c.value) == null ? void 0 : t.tableData) == null ? void 0 : x.account;
413
413
  r.setSuperAdminInfo({
414
414
  account: Z
415
415
  });
416
416
  }
417
417
  }, G = async () => {
418
- var e, a, s;
418
+ var e, a, n;
419
419
  try {
420
- const n = await Zt();
421
- return ((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 200 ? (sessionStorage.setItem("loginToken", (s = (a = n.data) == null ? void 0 : a.result) == null ? void 0 : s.accessToken), !0) : !1;
422
- } catch (n) {
423
- I.error(n);
420
+ const s = await Zt();
421
+ return ((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 200 ? (sessionStorage.setItem("loginToken", (n = (a = s.data) == null ? void 0 : a.result) == null ? void 0 : n.accessToken), !0) : !1;
422
+ } catch (s) {
423
+ E.error(s);
424
424
  }
425
425
  }, F = async () => {
426
- var e, a, s;
426
+ var e, a, n;
427
427
  try {
428
- const n = await ut.post("http://139.196.154.85:20024/api/sysAuth/login", {
428
+ const s = await ut.post("http://139.196.154.85:20024/api/sysAuth/login", {
429
429
  account: "superadmin",
430
430
  password: "9bf00809059adc7f57bd290bf73ddf4d16f4c83b5937e2d68144ab0bd60d045d22d70afeed8f2fa071cda536e1fac0daf12b8e63dd870c3ca8b308f23be6e693bb32ebd3d013116dc8338d6854b1332701a522a7c43706a6db4162fbe991c8c08aa842fbbc34",
431
431
  codeId: 0,
432
432
  code: ""
433
433
  });
434
- return ((e = n == null ? void 0 : n.data) == null ? void 0 : e.code) === 200 ? (sessionStorage.setItem("magicToken", (s = (a = n.data) == null ? void 0 : a.result) == null ? void 0 : s.accessToken), !0) : !1;
435
- } catch (n) {
436
- I.error(n);
434
+ return ((e = s == null ? void 0 : s.data) == null ? void 0 : e.code) === 200 ? (sessionStorage.setItem("magicToken", (n = (a = s.data) == null ? void 0 : a.result) == null ? void 0 : n.accessToken), !0) : !1;
435
+ } catch (s) {
436
+ E.error(s);
437
437
  }
438
438
  }, H = (e) => {
439
439
  u.value = !0;
440
440
  let a = [X(e), G(), F()];
441
- Promise.all(a).then((s) => {
442
- (s == null ? void 0 : s.every((y) => y)) && (Gt(), f.push("/"), r.setLogRecordAsync({
441
+ Promise.all(a).then((n) => {
442
+ (n == null ? void 0 : n.every((y) => y)) && (Gt(), f.push("/"), r.setLogRecordAsync({
443
443
  type: "登录",
444
444
  data: {
445
445
  account: e == null ? void 0 : e.account
@@ -452,8 +452,8 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
452
452
  return (e, a) => (O(), D("div", Yt, [
453
453
  b("div", Ft, [
454
454
  b("div", Wt, [
455
- A(It, { class: "login-left-bg" }, {
456
- img: g(() => a[0] || (a[0] = [
455
+ g(Et, { class: "login-left-bg" }, {
456
+ img: A(() => a[0] || (a[0] = [
457
457
  b("div", { class: "title" }, [
458
458
  b("div", null, "INSOFWORKS"),
459
459
  b("div", null, "工业软件集成开发平台")
@@ -464,37 +464,37 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
464
464
  })
465
465
  ]),
466
466
  b("div", jt, [
467
- A(xt, {
467
+ g(xt, {
468
468
  loading: u.value,
469
469
  onClickLogin: p,
470
470
  onHandleTabClick: rt
471
471
  }, {
472
- title: g(() => [
472
+ title: A(() => [
473
473
  L(Q(l.value.loginTitle), 1)
474
474
  ]),
475
- tabLabel1: g(() => [
475
+ tabLabel1: A(() => [
476
476
  L(Q(l.value.tabs[0].name), 1)
477
477
  ]),
478
- tabContent1: g(() => [
479
- A(Xt, {
478
+ tabContent1: A(() => [
479
+ g(Xt, {
480
480
  activeTabName: m.value,
481
481
  onHandleCardInput: h
482
482
  }, null, 8, ["activeTabName"])
483
483
  ]),
484
- tabButton1: g(() => [
484
+ tabButton1: A(() => [
485
485
  L(Q(l.value.tabs[0].btnLabel), 1)
486
486
  ]),
487
- tabLabel2: g(() => [
487
+ tabLabel2: A(() => [
488
488
  L(Q(l.value.tabs[1].name), 1)
489
489
  ]),
490
- tabContent2: g(() => [
491
- A(Pt, {
490
+ tabContent2: A(() => [
491
+ g(Pt, {
492
492
  activeTabName: m.value,
493
493
  isClickLogin: d.value,
494
494
  onHandleLoginFormChange: C
495
495
  }, null, 8, ["activeTabName", "isClickLogin"])
496
496
  ]),
497
- tabButton2: g(() => [
497
+ tabButton2: A(() => [
498
498
  L(Q(l.value.tabs[1].btnLabel), 1)
499
499
  ]),
500
500
  _: 1
@@ -503,7 +503,7 @@ const Yt = { class: "login-wrap" }, Ft = { class: "login-body" }, Wt = { class:
503
503
  ])
504
504
  ]));
505
505
  }
506
- }), re = /* @__PURE__ */ R(zt, [["__scopeId", "data-v-b773e48a"]]);
506
+ }), re = /* @__PURE__ */ R(zt, [["__scopeId", "data-v-476e2d85"]]);
507
507
  export {
508
508
  re as default
509
509
  };
@@ -1,11 +1,11 @@
1
1
  import { ref as $, resolveComponent as F, createBlock as G, openBlock as C, createCommentVNode as ee, defineComponent as _t, onMounted as Yt, withCtx as V, createVNode as q, createElementVNode as K, createElementBlock as E, Fragment as me, renderList as ve, createTextVNode as Wt, toDisplayString as Le, watch as at, normalizeStyle as Ee, unref as x0, createSlots as Ft, resolveDynamicComponent as g2, normalizeClass as Nl, nextTick as v0, renderSlot as ne, normalizeProps as Ga, guardReactiveProps as Fa, mergeProps as V2, reactive as $s, computed as se, withDirectives as To, withModifiers as ja, vShow as Ao, watchEffect as $0, onUnmounted as Ji, h as Po, onBeforeUnmount as Ua, toRefs as qa } from "vue";
2
2
  import { S as zo } from "./index-BHtNKL1L.js";
3
- import { h as Vo, Z as Eo, R as Ya, _ as Ka, $ as Xa, a0 as Bo, a1 as Lo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BwRUgxBJ.js";
3
+ import { h as Vo, Z as Eo, R as Ya, _ as Ka, $ as Xa, a0 as Bo, a1 as Lo } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ChvECHc_.js";
4
4
  import { _ as Ce } from "./_plugin-vue_export-helper-CHgC5LLL.js";
5
- import { c as bt, p as Qa, u as Ja, s as Za } from "./menu-DAmGEFm7.js";
6
- import { bo as eh, bp as th, s as Zi, E as $l, bt as ih, bL as nh, aB as sh, ad as oh } from "./index-ELMFdxgk.js";
7
- import { u as rh } from "./modelComp-DbjARUmR.js";
8
- import { _ as lh } from "./index.vue_vue_type_script_setup_true_lang-BaDXL-YS.js";
5
+ import { c as bt, p as Qa, u as Ja, s as Za } from "./menu-IwkXhFha.js";
6
+ import { bp as eh, bq as th, s as Zi, E as $l, bt as ih, bL as nh, aB as sh, ad as oh } from "./index-DjOudbez.js";
7
+ import { u as rh } from "./modelComp-DSmZe2d_.js";
8
+ import { _ as lh } from "./index.vue_vue_type_script_setup_true_lang-DUUF2_hw.js";
9
9
  var ah = "[object Number]";
10
10
  function Ro(n) {
11
11
  return typeof n == "number" || eh(n) && th(n) == ah;
@@ -8586,12 +8586,12 @@ export {
8586
8586
  d6 as bi,
8587
8587
  p9 as bj,
8588
8588
  c9 as bk,
8589
- u9 as bl,
8590
- i9 as bm,
8591
- Ni as bn,
8592
- Zt as bo,
8593
- Me as bp,
8594
- d9 as bq,
8589
+ d9 as bl,
8590
+ u9 as bm,
8591
+ i9 as bn,
8592
+ Ni as bo,
8593
+ Zt as bp,
8594
+ Me as bq,
8595
8595
  F3 as br,
8596
8596
  N3 as bs,
8597
8597
  y_ as bt,
@@ -1,11 +1,11 @@
1
1
  import { defineComponent as o, reactive as n, onMounted as r, createElementBlock as s, openBlock as m, createVNode as i } from "vue";
2
2
  import "./index-BHtNKL1L.js";
3
- import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-BwRUgxBJ.js";
4
- import { u as c, s as u } from "./menu-DAmGEFm7.js";
5
- import "./index-ELMFdxgk.js";
6
- import { s as p } from "./index-CZ4ftvfO.js";
7
- import { S as l } from "./index-BTJMFN46.js";
8
- import { i as d } from "./index-C4EBKLL9.js";
3
+ import "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ChvECHc_.js";
4
+ import { u as c, s as u } from "./menu-IwkXhFha.js";
5
+ import "./index-DjOudbez.js";
6
+ import { s as p } from "./index-ClLd4KYT.js";
7
+ import { S as l } from "./index-BslQsQTm.js";
8
+ import { i as d } from "./index-D7lAlQGg.js";
9
9
  const k = /* @__PURE__ */ o({
10
10
  __name: "index",
11
11
  setup(f) {
@@ -1,10 +1,10 @@
1
1
  import { ref as c, reactive as k, computed as M, defineComponent as Z, onMounted as G, resolveDirective as Q, createElementBlock as U, openBlock as _, createElementVNode as b, withDirectives as X, createVNode as S, unref as D, createBlock as Y } from "vue";
2
- import { br as ee, bs as te, bt as ae, g as P, bk as se, E as B } from "./index-ELMFdxgk.js";
3
- import { u as V } from "./login-4wzx9zEV.js";
4
- import { s as E, u as re, p as L } from "./menu-DAmGEFm7.js";
2
+ import { br as ee, bs as te, bt as ae, g as P, bk as se, E as B } from "./index-DjOudbez.js";
3
+ import { u as V } from "./login-Czn1jLVJ.js";
4
+ import { s as E, u as re, p as L } from "./menu-IwkXhFha.js";
5
5
  import { e as ne, d as oe } from "./crypto-BRyGpjGR.js";
6
- import { a as le, s as ie } from "./index-iKuo-ebM.js";
7
- import { e as ue, j as de } from "./index-BzwdCW4U.js";
6
+ import { a as le, s as ie } from "./index-CHr0L9Hz.js";
7
+ import { e as ue, j as de } from "./index-DctT6QfQ.js";
8
8
  import { _ as pe } from "./_plugin-vue_export-helper-CHgC5LLL.js";
9
9
  const $ = V(L), { loginUserInfo: i, cryptoInfo: m } = E($), ge = re(L), { activeMenuPath: h } = E(ge), I = c(0);
10
10
  var R, N, x, K;
@@ -1,6 +1,6 @@
1
1
  import { ref as Sp, onMounted as Ab, watch as vL, onUnmounted as cL, createElementBlock as Mb, openBlock as Ib, createVNode as pL } from "vue";
2
2
  import { _ as Lb } from "./_plugin-vue_export-helper-CHgC5LLL.js";
3
- import { c as Ki } from "./menu-DAmGEFm7.js";
3
+ import { c as Ki } from "./menu-IwkXhFha.js";
4
4
  /*! *****************************************************************************
5
5
  Copyright (c) Microsoft Corporation.
6
6
 
@@ -1,13 +1,13 @@
1
1
  import { resolveComponent as L, createElementBlock as _, openBlock as r, Fragment as j, renderList as q, unref as W, createElementVNode as C, createVNode as D, toDisplayString as E, ref as I, watch as A, withCtx as z, createBlock as G, resolveDynamicComponent as H, createCommentVNode as y, normalizeStyle as X, withModifiers as w } from "vue";
2
- import { s as Y, g as J } from "./index-DWoA2-jS.js";
3
- import { p as B, s as V, c as v } from "./menu-DAmGEFm7.js";
4
- import { u as S } from "./modelComp-DbjARUmR.js";
5
- import "./array-CFgXuvC7.js";
2
+ import { s as Y, g as J } from "./index-DDx4MVXZ.js";
3
+ import { p as B, s as V, c as v } from "./menu-IwkXhFha.js";
4
+ import { u as S } from "./modelComp-DSmZe2d_.js";
5
+ import "./array-DQv6Fq_h.js";
6
6
  import { _ as b } from "./_plugin-vue_export-helper-CHgC5LLL.js";
7
7
  import Z from "./index-CZtXRS3l.js";
8
- import { b as ee } from "./index-BzwdCW4U.js";
9
- import { E as te } from "./index-CYFmTv2U.js";
10
- import { E as ne } from "./index-ELMFdxgk.js";
8
+ import { b as ee } from "./index-DctT6QfQ.js";
9
+ import { E as te } from "./index-CNsfln9_.js";
10
+ import { E as ne } from "./index-DjOudbez.js";
11
11
  const oe = { class: "type-select" }, se = ["onClick"], ae = { class: "list-icon" }, le = {
12
12
  __name: "index",
13
13
  setup(M) {