@witlink/usercenter 1.0.0 → 1.0.2

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 (58) hide show
  1. package/dist/404.8c60a901.c3e76ee8.mjs +10 -0
  2. package/dist/{404.e6ab6ba0.mjs → 404.a6648431.mjs} +1 -1
  3. package/dist/Standard.f3edef69.f5212048.mjs +110 -0
  4. package/dist/{Standard.64ae6a8d.mjs → Standard.fc95c576.mjs} +38 -40
  5. package/dist/{WebClient.0ac67ce0.mjs → WebClient.80331fdc.mjs} +26 -27
  6. package/dist/WebClient.d57f9832.6ba94a3e.mjs +151 -0
  7. package/dist/assets/Standard.f3edef69.badeec91.css +1 -0
  8. package/dist/assets/WebClient.d57f9832.2a3e464e.css +1 -0
  9. package/dist/assets/index.2d0e9dcb.css +1 -0
  10. package/dist/assets/index.8b3e4f70.fb7724ee.css +1 -0
  11. package/dist/index.0da1fafa.015bee59.mjs +10 -0
  12. package/dist/index.1046a424.mjs +175799 -0
  13. package/dist/index.2242d1a7.66a01ef7.mjs +125 -0
  14. package/dist/index.2291c8e2.1c1e2758.mjs +125 -0
  15. package/dist/{index.ef2e93a1.mjs → index.2c2473ea.mjs} +167 -187
  16. package/dist/index.42fbc816.bcd3785a.mjs +10 -0
  17. package/dist/{index.e7802e27.mjs → index.5dce5a61.mjs} +149 -158
  18. package/dist/{index.da7dd593.mjs → index.69b68e45.mjs} +1 -1
  19. package/dist/index.8b3e4f70.550c8920.mjs +385 -0
  20. package/dist/index.9803c44f.5a0946eb.mjs +125 -0
  21. package/dist/index.9829f249.dfba489c.mjs +10 -0
  22. package/dist/{index.b3eb7c5d.mjs → index.cdd11689.mjs} +1 -1
  23. package/dist/{index.1af0e30d.mjs → index.ed4dbd01.mjs} +1 -1
  24. package/dist/usercenter.es.js +14 -0
  25. package/dist/usercenter.umd.js +6586 -354
  26. package/package.json +22 -9
  27. package/version.md +4 -1
  28. package/dist/Card.71482621.mjs +0 -1078
  29. package/dist/DictEx.754c617b.mjs +0 -156
  30. package/dist/FooterToolBar.2546fb1f.mjs +0 -33
  31. package/dist/RegionSelect.5272534b.mjs +0 -71
  32. package/dist/assets/FooterToolBar.d4297046.css +0 -1
  33. package/dist/assets/index.01a0fb63.css +0 -1
  34. package/dist/assets/index.19e5ba4c.css +0 -1
  35. package/dist/assets/index.2164de3b.css +0 -1
  36. package/dist/assets/index.269f5360.css +0 -1
  37. package/dist/assets/index.28bdbdc3.css +0 -1
  38. package/dist/assets/index.3150518d.css +0 -1
  39. package/dist/assets/index.3a0797c4.css +0 -1
  40. package/dist/assets/index.53c37fa8.css +0 -1
  41. package/dist/assets/index.7c8e2d8f.css +0 -1
  42. package/dist/assets/index.b965b94b.css +0 -1
  43. package/dist/index.003313e6.mjs +0 -69436
  44. package/dist/index.05ef920d.mjs +0 -1129
  45. package/dist/index.1953dbda.mjs +0 -498
  46. package/dist/index.3c2af165.mjs +0 -761
  47. package/dist/index.919ac6b4.mjs +0 -7431
  48. package/dist/index.941a34c0.mjs +0 -874
  49. package/dist/index.96479524.mjs +0 -754
  50. package/dist/index.a000e9cf.mjs +0 -1445
  51. package/dist/index.c9138cba.mjs +0 -1104
  52. package/dist/index.ceea88a4.mjs +0 -1073
  53. package/dist/index.e271ee9d.mjs +0 -643
  54. package/dist/index.f701b909.mjs +0 -142
  55. package/dist/index.f9becca6.mjs +0 -6
  56. package/dist/index.fa4bb855.mjs +0 -7645
  57. package/dist/index.html +0 -1
  58. package/dist/use-dict-by-type.c90c1d31.mjs +0 -24
@@ -1,54 +1,49 @@
1
- import { C as j, D as Q, I as ue, b as ie, bu as me, F as de, S as he, aP as pe, _ as J, aT as fe, aU as ve, aV as ge, bz as ke, B as ye, E as be, G as Ce, a$ as we, aY as Ie, H as $e, aZ as Se, L as Ae, M as De, N as xe, bA as Ne } from "./index.003313e6.mjs";
2
- import { defineComponent as H, ref as r, openBlock as m, createBlock as P, withCtx as o, createVNode as e, mergeProps as oe, onMounted as ee, createElementBlock as x, normalizeClass as Fe, createElementVNode as G, toDisplayString as M, nextTick as Re, watch as Le, createTextVNode as z, createCommentVNode as L, Fragment as ne, renderList as Oe, computed as se, unref as V, reactive as Ue, withDirectives as re, vShow as ce } from "vue";
3
- import { C as _e, a as Te, S as Ee } from "./index.fa4bb855.mjs";
4
- import { D as Me } from "./DictEx.754c617b.mjs";
5
- import { C as te } from "./Card.71482621.mjs";
6
- import { F as Pe } from "./FooterToolBar.2546fb1f.mjs";
7
- import { _ as ae, a as le } from "./index.f9becca6.mjs";
8
- import './assets/index.7c8e2d8f.css';function Be(c) {
9
- return j({
1
+ import { f as V, u as X, I as ue, d as ie, i as _e, F as de, S as he, M as pe, _ as J, C as ee, j as me, k as fe, m as ve, n as te, o as ae, p as ke, q as ge, r as ye, t as be, B as Ce, v as we, w as Ie, x as $e, D as Se, y as Ae, z as De, E as Ne, P as xe, G as Fe, H as Re, K as Le, L as Oe } from "./index.1046a424.mjs";
2
+ import { defineComponent as H, ref as r, openBlock as _, createBlock as M, withCtx as o, createVNode as e, mergeProps as oe, onMounted as le, createElementBlock as N, normalizeClass as Ue, createElementVNode as G, toDisplayString as T, nextTick as Ee, watch as Be, createTextVNode as q, createCommentVNode as L, Fragment as ne, renderList as Te, computed as se, unref as j, reactive as Me, withDirectives as re, vShow as ce } from "vue";
3
+ function Pe(c) {
4
+ return V({
10
5
  url: "/api/sys/role/search-list",
11
6
  method: "get",
12
7
  params: c
13
8
  });
14
9
  }
15
- function Ve(c) {
16
- return j({
10
+ function je(c) {
11
+ return V({
17
12
  url: "/api/sys/role/switch",
18
13
  method: "post",
19
14
  params: c
20
15
  });
21
16
  }
22
- function je(c) {
23
- return j({
17
+ function Ve(c) {
18
+ return V({
24
19
  url: "/api/sys/role/detail",
25
20
  method: "get",
26
21
  params: c
27
22
  });
28
23
  }
29
- function ze(c) {
30
- return j({
24
+ function qe(c) {
25
+ return V({
31
26
  url: "/api/member/myapp/public-search-list",
32
27
  method: "get",
33
28
  params: c
34
29
  });
35
30
  }
36
- function qe(c) {
37
- return j({
31
+ function ze(c) {
32
+ return V({
38
33
  url: "/api/sys/role/detail-role",
39
34
  method: "get",
40
35
  params: c
41
36
  });
42
37
  }
43
38
  function Ge(c) {
44
- return j({
39
+ return V({
45
40
  url: "/api/sys/role/update",
46
41
  method: "post",
47
42
  data: c
48
43
  });
49
44
  }
50
45
  function Je(c) {
51
- return j({
46
+ return V({
52
47
  url: "/api/sys/role/insert",
53
48
  method: "post",
54
49
  params: c
@@ -58,10 +53,10 @@ const He = /* @__PURE__ */ H({
58
53
  __name: "RoleAddModal",
59
54
  emits: ["ok", "cancel"],
60
55
  setup(c, { emit: O }) {
61
- const { t: h } = Q(), $ = O, i = r(), d = r(!0), y = r(!0), f = r(!1), v = r({
56
+ const { t: h } = X(), $ = O, i = r(), d = r(!0), y = r(!0), f = r(!1), v = r({
62
57
  roleName: "",
63
58
  remark: ""
64
- }), g = r({
59
+ }), k = r({
65
60
  labelCol: { lg: { span: 7 }, sm: { span: 7 } },
66
61
  wrapperCol: { lg: { span: 14 }, sm: { span: 14 } }
67
62
  }), p = (t, l) => l == "" ? Promise.reject(h("role.role_name_msg1")) : Promise.resolve();
@@ -78,10 +73,10 @@ const He = /* @__PURE__ */ H({
78
73
  });
79
74
  };
80
75
  return (t, l) => {
81
- const u = ue, _ = ie, S = me, s = de, w = he, b = pe;
82
- return m(), P(b, {
76
+ const u = ue, m = ie, S = _e, s = de, w = he, b = pe;
77
+ return _(), M(b, {
83
78
  open: y.value,
84
- "onUpdate:open": l[2] || (l[2] = (N) => y.value = N),
79
+ "onUpdate:open": l[2] || (l[2] = (x) => y.value = x),
85
80
  width: 560,
86
81
  onOk: a,
87
82
  onCancel: C,
@@ -98,9 +93,9 @@ const He = /* @__PURE__ */ H({
98
93
  ref: i
99
94
  }, {
100
95
  default: o(() => [
101
- e(_, oe({
96
+ e(m, oe({
102
97
  label: t.$t("role.role_name")
103
- }, g.value, {
98
+ }, k.value, {
104
99
  name: "roleName",
105
100
  rules: [
106
101
  {
@@ -114,20 +109,20 @@ const He = /* @__PURE__ */ H({
114
109
  e(u, {
115
110
  placeholder: t.$t("role.role_name_placeholder"),
116
111
  value: v.value.roleName,
117
- "onUpdate:value": l[0] || (l[0] = (N) => v.value.roleName = N)
112
+ "onUpdate:value": l[0] || (l[0] = (x) => v.value.roleName = x)
118
113
  }, null, 8, ["placeholder", "value"])
119
114
  ]),
120
115
  _: 1
121
116
  }, 16, ["label", "rules"]),
122
- e(_, oe({
117
+ e(m, oe({
123
118
  label: t.$t("role.remark")
124
- }, g.value, { name: "remark" }), {
119
+ }, k.value, { name: "remark" }), {
125
120
  default: o(() => [
126
121
  e(S, {
127
122
  placeholder: t.$t("role.remark_placeholder"),
128
123
  rows: 4,
129
124
  value: v.value.remark,
130
- "onUpdate:value": l[1] || (l[1] = (N) => v.value.remark = N)
125
+ "onUpdate:value": l[1] || (l[1] = (x) => v.value.remark = x)
131
126
  }, null, 8, ["placeholder", "value"])
132
127
  ]),
133
128
  _: 1
@@ -143,7 +138,7 @@ const He = /* @__PURE__ */ H({
143
138
  }, 8, ["open", "title", "destroyOnClose"]);
144
139
  };
145
140
  }
146
- }), Ke = /* @__PURE__ */ J(He, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/RoleAddModal.vue"]]), Ye = { class: "name" }, Ze = /* @__PURE__ */ H({
141
+ }), Ke = /* @__PURE__ */ J(He, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/RoleAddModal.vue"]]), Qe = { class: "name" }, We = /* @__PURE__ */ H({
147
142
  __name: "AuthList",
148
143
  props: {
149
144
  roleId: {
@@ -157,46 +152,46 @@ const He = /* @__PURE__ */ H({
157
152
  },
158
153
  emits: ["select", "checkChange"],
159
154
  setup(c, { emit: O }) {
160
- const h = O, $ = c, i = r([]), d = r(!1), y = (g, p) => {
161
- d.value = !d.value, p.authFlag = g.target.checked ? 0 : 1, h("checkChange", p);
162
- }, f = (g, p, C) => {
163
- h("select", g, C, d.value, p);
155
+ const h = O, $ = c, i = r([]), d = r(!1), y = (k, p) => {
156
+ d.value = !d.value, p.authFlag = k.target.checked ? 0 : 1, h("checkChange", p);
157
+ }, f = (k, p, C) => {
158
+ h("select", k, C, d.value, p);
164
159
  }, v = async () => {
165
- const { result: g } = await ze({
160
+ const { result: k } = await qe({
166
161
  roleId: $.roleId
167
162
  });
168
- d.value = !1, i.value = g, i.value.length > 0 && Re(() => {
163
+ d.value = !1, i.value = k, i.value.length > 0 && Ee(() => {
169
164
  f(i.value[0], 0, "init");
170
165
  });
171
166
  };
172
- return ee(() => {
167
+ return le(() => {
173
168
  v();
174
- }), (g, p) => {
175
- const C = te, a = _e, t = fe, l = ve;
176
- return m(), x("div", null, [
169
+ }), (k, p) => {
170
+ const C = ee, a = me, t = fe, l = ve;
171
+ return _(), N("div", null, [
177
172
  e(l, {
178
173
  size: "small",
179
174
  split: !1,
180
175
  "data-source": i.value
181
176
  }, {
182
- renderItem: o(({ item: u, index: _ }) => [
177
+ renderItem: o(({ item: u, index: m }) => [
183
178
  e(t, { type: "inner" }, {
184
179
  default: o(() => [
185
180
  e(C, {
186
181
  hoverable: !0,
187
182
  bordered: !1,
188
- class: Fe(["a-card", c.selectItem == _ ? "active" : ""]),
189
- onClick: (S) => f(u, _, "manual")
183
+ class: Ue(["a-card", c.selectItem == m ? "active" : ""]),
184
+ onClick: (S) => f(u, m, "manual")
190
185
  }, {
191
186
  default: o(() => [
192
- G("div", Ye, M(u.sysOrgDeploy.deployName), 1)
187
+ G("div", Qe, T(u.sysOrgDeploy.deployName), 1)
193
188
  ]),
194
189
  _: 2
195
190
  }, 1032, ["onClick", "class"]),
196
191
  e(a, {
197
192
  style: { "margin-right": "0px" },
198
193
  checked: u.authFlag == 0,
199
- disabled: c.selectItem != _,
194
+ disabled: c.selectItem != m,
200
195
  onChange: (S) => y(S, u)
201
196
  }, null, 8, ["checked", "disabled", "onChange"])
202
197
  ]),
@@ -208,8 +203,7 @@ const He = /* @__PURE__ */ H({
208
203
  ]);
209
204
  };
210
205
  }
211
- });
212
- const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/AuthList/AuthList.vue"]]), We = { key: 0 }, Xe = { key: 1 }, et = /* @__PURE__ */ H({
206
+ }), Xe = /* @__PURE__ */ J(We, [["__scopeId", "data-v-debbabd6"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/AuthList/AuthList.vue"]]), Ye = { key: 0 }, Ze = { key: 1 }, et = /* @__PURE__ */ H({
213
207
  __name: "ActDetail",
214
208
  props: {
215
209
  params: {
@@ -222,12 +216,12 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
222
216
  }
223
217
  },
224
218
  setup(c, { expose: O }) {
225
- const { t: h } = Q(), $ = c, i = r([]), d = [
219
+ const { t: h } = X(), $ = c, i = r([]), d = [
226
220
  20,
227
221
  102
228
222
  ], y = r(!1), f = (a) => $.mode === "view" ? a.checkedAll || a.indeterminate : !0, v = (a) => {
229
223
  a.indeterminate = !!a.selects.length && a.selects.length < a.options.length, a.checkedAll = a.selects.length === a.options.length;
230
- }, g = (a, t) => {
224
+ }, k = (a, t) => {
231
225
  Object.assign(t, {
232
226
  selects: a.target.checked ? t.options.map((l) => l.value) : [],
233
227
  indeterminate: !1,
@@ -249,7 +243,7 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
249
243
  });
250
244
  }), a;
251
245
  }
252
- }), Le(
246
+ }), Be(
253
247
  () => $.params,
254
248
  (a) => {
255
249
  const t = [];
@@ -259,22 +253,22 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
259
253
  }
260
254
  a.forEach((l) => {
261
255
  const u = [];
262
- let _ = [];
256
+ let m = [];
263
257
  for (let s = 0; s < l.actions.length; s++) {
264
258
  const w = l.actions[s], b = h("button._" + w.id);
265
259
  u.push({
266
260
  value: w.id,
267
261
  label: b == "" ? w.id : b
268
- }), w.checked && _.push(w.id);
262
+ }), w.checked && m.push(w.id);
269
263
  }
270
264
  const S = l.name;
271
- d.includes(Number(l.id)) && l.actions.every((s) => !s.checked) && (_ = l.actions.map((s) => s.id)), t.push({
265
+ d.includes(Number(l.id)) && l.actions.every((s) => !s.checked) && (m = l.actions.map((s) => s.id)), t.push({
272
266
  id: l.id,
273
267
  name: S == "" ? l.id : S,
274
268
  options: u,
275
- selects: _,
276
- checkedAll: u.length === _.length,
277
- indeterminate: !!_.length && _.length < u.length
269
+ selects: m,
270
+ checkedAll: u.length === m.length,
271
+ indeterminate: !!m.length && m.length < u.length
278
272
  });
279
273
  }), i.value = t;
280
274
  },
@@ -282,10 +276,10 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
282
276
  deep: !0
283
277
  }
284
278
  ), (a, t) => {
285
- const l = _e, u = ae, _ = le, S = Te;
286
- return m(), x("div", null, [
287
- i.value.length > 0 ? (m(), x("div", We, [
288
- c.mode !== "view" ? (m(), P(_, {
279
+ const l = me, u = te, m = ae, S = ke;
280
+ return _(), N("div", null, [
281
+ i.value.length > 0 ? (_(), N("div", Ye, [
282
+ c.mode !== "view" ? (_(), M(m, {
289
283
  key: 0,
290
284
  gutter: 16
291
285
  }, {
@@ -302,7 +296,7 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
302
296
  onChange: p
303
297
  }, {
304
298
  default: o(() => [
305
- z(M(a.$t("role.operation")), 1)
299
+ q(T(a.$t("role.operation")), 1)
306
300
  ]),
307
301
  _: 1
308
302
  }, 8, ["checked"])
@@ -312,8 +306,8 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
312
306
  ]),
313
307
  _: 1
314
308
  })) : L("v-if", !0),
315
- (m(!0), x(ne, null, Oe(i.value, (s, w) => (m(), x(ne, null, [
316
- f(s) ? (m(), P(_, {
309
+ (_(!0), N(ne, null, Te(i.value, (s, w) => (_(), N(ne, null, [
310
+ f(s) ? (_(), M(m, {
317
311
  gutter: 16,
318
312
  key: w
319
313
  }, {
@@ -323,7 +317,7 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
323
317
  class: "col"
324
318
  }, {
325
319
  default: o(() => [
326
- z(M(s.name) + "\uFF1A ", 1)
320
+ q(T(s.name) + "\uFF1A ", 1)
327
321
  ]),
328
322
  _: 2
329
323
  }, 1024),
@@ -332,16 +326,16 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
332
326
  class: "col"
333
327
  }, {
334
328
  default: o(() => [
335
- s.options.length > 0 ? (m(), P(l, {
329
+ s.options.length > 0 ? (_(), M(l, {
336
330
  key: 0,
337
331
  style: { "margin-right": "18px" },
338
332
  indeterminate: s.indeterminate,
339
333
  checked: s.checkedAll,
340
334
  "onUpdate:checked": (b) => s.checkedAll = b,
341
- onChange: (b) => g(b, s)
335
+ onChange: (b) => k(b, s)
342
336
  }, {
343
337
  default: o(() => [
344
- z(M(a.$t("role.operation")), 1)
338
+ q(T(a.$t("role.operation")), 1)
345
339
  ]),
346
340
  _: 2
347
341
  }, 1032, ["indeterminate", "checked", "onUpdate:checked", "onChange"])) : L("v-if", !0),
@@ -358,12 +352,11 @@ const Qe = /* @__PURE__ */ J(Ze, [["__scopeId", "data-v-debbabd6"], ["__file", "
358
352
  _: 2
359
353
  }, 1024)) : L("v-if", !0)
360
354
  ], 64))), 256))
361
- ])) : (m(), x("div", Xe, M(a.$t("actDetail.text")), 1))
355
+ ])) : (_(), N("div", Ze, T(a.$t("actDetail.text")), 1))
362
356
  ]);
363
357
  };
364
358
  }
365
- });
366
- const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/ActDetail.vue"]]), at = { class: "role-detail-wrap" }, lt = /* @__PURE__ */ H({
359
+ }), tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/ActDetail.vue"]]), at = { class: "role-detail-wrap" }, lt = /* @__PURE__ */ H({
367
360
  __name: "RoleDetail",
368
361
  props: {
369
362
  params: {
@@ -373,7 +366,7 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
373
366
  },
374
367
  emits: ["cancel", "ok"],
375
368
  setup(c, { emit: O }) {
376
- const { t: h } = Q(), $ = ge(), i = O, d = c, y = r(), f = r(), v = r(), g = r({
369
+ const { t: h } = X(), $ = ge(), i = O, d = c, y = r(), f = r(), v = r(), k = r({
377
370
  roleId: "",
378
371
  roleName: "",
379
372
  remark: ""
@@ -383,65 +376,65 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
383
376
  }), C = r({
384
377
  authId: "",
385
378
  authFlag: ""
386
- }), a = r([]), t = r("[]"), l = r(0), u = r(!1), _ = r("\u6743\u9650\u4FEE\u6539\u672A\u4FDD\u5B58\uFF0C\u8BF7\u5148\u63D0\u4EA4\u4FDD\u5B58\u518D\u5207\u6362\u5E73\u53F0"), S = se(() => $.langId), s = se(() => d.params.opType === "2" ? "edit" : d.params.opType === "3" ? "view" : ""), w = () => {
379
+ }), a = r([]), t = r("[]"), l = r(0), u = r(!1), m = r("\u6743\u9650\u4FEE\u6539\u672A\u4FDD\u5B58\uFF0C\u8BF7\u5148\u63D0\u4EA4\u4FDD\u5B58\u518D\u5207\u6362\u5E73\u53F0"), S = se(() => $.langId), s = se(() => d.params.opType === "2" ? "edit" : d.params.opType === "3" ? "view" : ""), w = () => {
387
380
  const n = f.value.getDetail();
388
381
  v.value.validate().then(async () => {
389
- const k = {
390
- roleId: g.value.roleId,
382
+ const g = {
383
+ roleId: k.value.roleId,
391
384
  authId: C.value.authId,
392
385
  authFlag: C.value.authFlag,
393
386
  roleName: p.value.roleName,
394
387
  remark: p.value.remark,
395
388
  detail: n
396
- }, { result: R } = await Ge(k);
397
- R && (t.value = JSON.stringify(n), y.value.platFlag = !1, i("ok"), ke.success({
389
+ }, { result: R } = await Ge(g);
390
+ R && (t.value = JSON.stringify(n), y.value.platFlag = !1, i("ok"), be.success({
398
391
  message: h("common.msg3"),
399
392
  description: h("common.msg4")
400
393
  }));
401
394
  });
402
395
  }, b = () => {
403
396
  i("cancel");
404
- }, N = () => {
397
+ }, x = () => {
405
398
  u.value = !1;
406
399
  }, K = (n) => {
407
400
  C.value.authFlag = n.authFlag;
408
- }, Y = () => {
401
+ }, Q = () => {
409
402
  u.value = !0;
410
403
  }, I = (n) => {
411
- const k = [];
404
+ const g = [];
412
405
  n == null || n.forEach((R) => {
413
406
  const A = [];
414
407
  R.actions.forEach((U) => {
415
408
  U.checked && A.push(U.id);
416
- }), A.length > 0 && k.push({
409
+ }), A.length > 0 && g.push({
417
410
  id: R.id,
418
411
  actions: A.join(",")
419
412
  });
420
- }), t.value = JSON.stringify(k);
421
- }, F = async (n, k, R, A) => {
413
+ }), t.value = JSON.stringify(g);
414
+ }, F = async (n, g, R, A) => {
422
415
  const U = f.value.getDetail();
423
- k === "init" || d.params.opType === "3" || t.value === JSON.stringify(U) && R == !1 ? (C.value.authId = n.authId, C.value.authFlag = n.authFlag, qe({
424
- roleId: g.value.roleId,
416
+ g === "init" || d.params.opType === "3" || t.value === JSON.stringify(U) && R == !1 ? (C.value.authId = n.authId, C.value.authFlag = n.authFlag, ze({
417
+ roleId: k.value.roleId,
425
418
  authId: n.authId,
426
419
  isoCode: S.value
427
420
  }).then((D) => {
428
421
  a.value = D == null ? void 0 : D.result, I((D == null ? void 0 : D.result) || []), l.value = A;
429
- })) : Y();
430
- }, q = async (n) => {
431
- const { result: k } = await je({ roleId: n });
432
- return k;
433
- }, W = async () => {
422
+ })) : Q();
423
+ }, z = async (n) => {
424
+ const { result: g } = await Ve({ roleId: n });
425
+ return g;
426
+ }, Y = async () => {
434
427
  if (!d.params || !d.params.roleId)
435
428
  return;
436
- const n = await q(d.params.roleId);
437
- p.value.roleName = n.roleName, p.value.remark = n.remark, g.value = n;
429
+ const n = await z(d.params.roleId);
430
+ p.value.roleName = n.roleName, p.value.remark = n.remark, k.value = n;
438
431
  };
439
- return ee(() => {
440
- W();
441
- }), (n, k) => {
442
- const R = pe, A = te, U = ae, D = ue, Z = ie, X = de, T = le, B = ye;
443
- return m(), x("div", at, [
444
- e(T, {
432
+ return le(() => {
433
+ Y();
434
+ }), (n, g) => {
435
+ const R = pe, A = ee, U = te, D = ue, W = ie, Z = de, E = ae, P = Ce;
436
+ return _(), N("div", at, [
437
+ e(E, {
445
438
  gutter: 16,
446
439
  class: "role-detail-content"
447
440
  }, {
@@ -456,7 +449,7 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
456
449
  bordered: !1
457
450
  }, {
458
451
  cover: o(() => [
459
- e(V(Qe), {
452
+ e(j(Xe), {
460
453
  ref_key: "authListRef",
461
454
  ref: y,
462
455
  roleId: d.params.roleId,
@@ -467,12 +460,12 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
467
460
  e(R, {
468
461
  title: "\u63D0\u793A",
469
462
  open: u.value,
470
- "onUpdate:open": k[0] || (k[0] = (E) => u.value = E),
471
- onCancel: N,
472
- onOk: N
463
+ "onUpdate:open": g[0] || (g[0] = (B) => u.value = B),
464
+ onCancel: x,
465
+ onOk: x
473
466
  }, {
474
467
  default: o(() => [
475
- G("p", null, M(_.value), 1)
468
+ G("p", null, T(m.value), 1)
476
469
  ]),
477
470
  _: 1
478
471
  }, 8, ["open"])
@@ -492,14 +485,14 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
492
485
  title: n.$t("role.role_info")
493
486
  }, {
494
487
  default: o(() => [
495
- e(X, {
488
+ e(Z, {
496
489
  ref_key: "formRef",
497
490
  ref: v,
498
491
  model: p.value,
499
492
  layout: "inline"
500
493
  }, {
501
494
  default: o(() => [
502
- e(Z, {
495
+ e(W, {
503
496
  label: n.$t("role.role_name"),
504
497
  name: "roleName",
505
498
  rules: [{ required: !0, message: n.$t("role.role_name_msg1") }]
@@ -508,12 +501,12 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
508
501
  e(D, {
509
502
  placeholder: n.$t("role.role_name_placeholder"),
510
503
  value: p.value.roleName,
511
- "onUpdate:value": k[1] || (k[1] = (E) => p.value.roleName = E)
504
+ "onUpdate:value": g[1] || (g[1] = (B) => p.value.roleName = B)
512
505
  }, null, 8, ["placeholder", "value"])
513
506
  ]),
514
507
  _: 1
515
508
  }, 8, ["label", "rules"]),
516
- e(Z, {
509
+ e(W, {
517
510
  label: n.$t("role.remark"),
518
511
  name: "remark",
519
512
  rules: [{ message: n.$t("role.remark_msg1") }]
@@ -522,7 +515,7 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
522
515
  e(D, {
523
516
  placeholder: n.$t("role.remark_placeholder"),
524
517
  value: p.value.remark,
525
- "onUpdate:value": k[2] || (k[2] = (E) => p.value.remark = E)
518
+ "onUpdate:value": g[2] || (g[2] = (B) => p.value.remark = B)
526
519
  }, null, 8, ["placeholder", "value"])
527
520
  ]),
528
521
  _: 1
@@ -540,7 +533,7 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
540
533
  style: { "padding-bottom": "30px" }
541
534
  }, {
542
535
  default: o(() => [
543
- e(V(tt), {
536
+ e(j(tt), {
544
537
  ref_key: "actDetailRef",
545
538
  ref: f,
546
539
  params: a.value,
@@ -555,24 +548,24 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
555
548
  ]),
556
549
  _: 1
557
550
  }),
558
- e(V(Pe), null, {
551
+ e(j(ye), null, {
559
552
  default: o(() => [
560
- e(B, {
553
+ e(P, {
561
554
  onClick: b,
562
555
  style: { "margin-right": "20px" }
563
556
  }, {
564
557
  default: o(() => [
565
- z(M(n.$t("common.btn_cancel")), 1)
558
+ q(T(n.$t("common.btn_cancel")), 1)
566
559
  ]),
567
560
  _: 1
568
561
  }),
569
- c.params.opType == "2" ? (m(), P(B, {
562
+ c.params.opType == "2" ? (_(), M(P, {
570
563
  key: 0,
571
564
  onClick: w,
572
565
  type: "primary"
573
566
  }, {
574
567
  default: o(() => [
575
- z(M(n.$t("common.btn_ok")), 1)
568
+ q(T(n.$t("common.btn_ok")), 1)
576
569
  ]),
577
570
  _: 1
578
571
  })) : L("v-if", !0)
@@ -582,18 +575,17 @@ const tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "
582
575
  ]);
583
576
  };
584
577
  }
585
- });
586
- const ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/RoleDetail.vue"]]), nt = { bordered: !1 }, st = { style: { margin: "10px 0 16px" } }, rt = {
578
+ }), ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/RoleDetail.vue"]]), nt = { bordered: !1 }, st = { style: { margin: "10px 0 16px" } }, rt = {
587
579
  class: "table-page-search-wrapper",
588
580
  style: { "margin-bottom": "16px" }
589
581
  }, ct = { key: 1 }, ut = { key: 2 }, it = { key: 3 }, dt = /* @__PURE__ */ H({
590
582
  name: "Function6",
591
583
  __name: "index",
592
584
  setup(c, { expose: O }) {
593
- var K, Y;
594
- const { t: h } = Q(), $ = r(), i = r(), d = r(!1), y = r(!1), f = r({
585
+ var K, Q;
586
+ const { t: h } = X(), $ = r(), i = r(), d = r(!1), y = r(!1), f = r({
595
587
  roleName: ""
596
- }), v = r({}), g = Ue([
588
+ }), v = r({}), k = Me([
597
589
  {
598
590
  title: h("device.index1"),
599
591
  width: "50px",
@@ -640,21 +632,21 @@ const ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "
640
632
  align: "center",
641
633
  key: "action"
642
634
  }
643
- ]), p = (K = i.value) == null ? void 0 : K.getLabel(0), C = (Y = i.value) == null ? void 0 : Y.getLabel(1), a = () => {
635
+ ]), p = (K = i.value) == null ? void 0 : K.getLabel(0), C = (Q = i.value) == null ? void 0 : Q.getLabel(1), a = () => {
644
636
  $.value.refresh();
645
637
  }, t = (I) => {
646
- we.emit("change", {
638
+ Ae.emit("change", {
647
639
  title: "role.title" + I,
648
640
  description: "role.description" + I
649
641
  });
650
642
  }, l = () => {
651
643
  t("1"), y.value = !0;
652
644
  }, u = async (I, F) => {
653
- await Ve({
645
+ await je({
654
646
  roleId: F.roleId,
655
647
  roleStatus: I ? "0" : "1"
656
648
  }), a();
657
- }, _ = (I) => {
649
+ }, m = (I) => {
658
650
  t("2"), v.value = { opType: "2", roleId: I.roleId }, d.value = !0;
659
651
  }, S = (I) => {
660
652
  t("3"), v.value = { opType: "3", roleId: I.roleId }, d.value = !0;
@@ -666,40 +658,40 @@ const ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "
666
658
  f.value = {
667
659
  roleName: ""
668
660
  };
669
- }, N = async (I) => {
670
- const F = Object.assign(I, f.value), { result: q } = await Be(F);
671
- return q;
661
+ }, x = async (I) => {
662
+ const F = Object.assign(I, f.value), { result: z } = await Pe(F);
663
+ return z;
672
664
  };
673
665
  return O({
674
666
  onSearch: a,
675
667
  onSwitch: u,
676
668
  onReset: b
677
- }), ee(() => {
669
+ }), le(() => {
678
670
  t("0");
679
671
  }), (I, F) => {
680
- const q = Ie, W = $e, n = ae, k = le, R = Se, A = Ae, U = De, D = xe, Z = Ne, X = te;
681
- return m(), x("div", null, [
682
- re(e(X, null, {
672
+ const z = De, Y = Ne, n = te, g = ae, R = xe, A = Fe, U = Re, D = Le, W = Oe, Z = ee;
673
+ return _(), N("div", null, [
674
+ re(e(Z, null, {
683
675
  default: o(() => [
684
676
  G("div", nt, [
685
677
  G("div", st, [
686
- e(q, {
678
+ e(z, {
687
679
  placeholder: I.$t("role.nameInput"),
688
680
  ref: "inputSearch",
689
681
  value: f.value.roleName,
690
- "onUpdate:value": F[0] || (F[0] = (T) => f.value.roleName = T),
682
+ "onUpdate:value": F[0] || (F[0] = (E) => f.value.roleName = E),
691
683
  onSearch: a,
692
684
  allowClear: "",
693
685
  style: { width: "350px", "margin-right": "16px" }
694
686
  }, null, 8, ["placeholder", "value"])
695
687
  ]),
696
688
  G("div", rt, [
697
- e(k, null, {
689
+ e(g, null, {
698
690
  default: o(() => [
699
691
  e(n, { md: 18 }, {
700
692
  default: o(() => [
701
- e(W, { onClick: l }),
702
- F[1] || (F[1] = z("\xA0 "))
693
+ e(Y, { onClick: l }),
694
+ F[1] || (F[1] = q("\xA0 "))
703
695
  ]),
704
696
  _: 1
705
697
  })
@@ -707,45 +699,45 @@ const ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "
707
699
  _: 1
708
700
  })
709
701
  ]),
710
- e(Ee, {
702
+ e(we, {
711
703
  ref_key: "tableRef",
712
704
  ref: $,
713
- data: N,
714
- columns: g,
705
+ data: x,
706
+ columns: k,
715
707
  rowKey: "roleId"
716
708
  }, {
717
- bodyCell: o(({ record: T, column: B }) => [
718
- B.key === "index1" ? (m(), P(V(be), {
709
+ bodyCell: o(({ record: E, column: P }) => [
710
+ P.key === "index1" ? (_(), M(j(Ie), {
719
711
  key: 0,
720
712
  class: "icon",
721
713
  style: { fontSize: "25px", color: "#1890ff" }
722
714
  }, {
723
715
  component: o(() => [
724
- e(V(Ce))
716
+ e(j($e))
725
717
  ]),
726
718
  _: 1
727
719
  })) : L("v-if", !0),
728
- B.key === "udate" ? (m(), x("span", ct, [
720
+ P.key === "udate" ? (_(), N("span", ct, [
729
721
  e(R, {
730
- defaultValue: T.udate
722
+ defaultValue: E.udate
731
723
  }, null, 8, ["defaultValue"])
732
724
  ])) : L("v-if", !0),
733
- B.key === "roleStatus" ? (m(), x("span", ut, [
725
+ P.key === "roleStatus" ? (_(), N("span", ut, [
734
726
  e(A, {
735
- defaultChecked: T.roleStatus == 0,
736
- checkedChildren: V(p),
737
- unCheckedChildren: V(C),
738
- onChange: (E) => u(E, T)
727
+ defaultChecked: E.roleStatus == 0,
728
+ checkedChildren: j(p),
729
+ unCheckedChildren: j(C),
730
+ onChange: (B) => u(B, E)
739
731
  }, null, 8, ["defaultChecked", "checkedChildren", "unCheckedChildren", "onChange"])
740
732
  ])) : L("v-if", !0),
741
- B.key === "action" ? (m(), x("span", it, [
733
+ P.key === "action" ? (_(), N("span", it, [
742
734
  e(U, {
743
- onClick: (E) => _(T),
735
+ onClick: (B) => m(E),
744
736
  type: "a"
745
737
  }, null, 8, ["onClick"]),
746
738
  e(D, { type: "vertical" }),
747
- e(Z, {
748
- onClick: (E) => S(T),
739
+ e(W, {
740
+ onClick: (B) => S(E),
749
741
  type: "a"
750
742
  }, null, 8, ["onClick"])
751
743
  ])) : L("v-if", !0)
@@ -758,18 +750,18 @@ const ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "
758
750
  }, 512), [
759
751
  [ce, !d.value]
760
752
  ]),
761
- y.value ? (m(), P(Ke, {
753
+ y.value ? (_(), M(Ke, {
762
754
  key: 0,
763
755
  onOk: s,
764
756
  onCancel: w
765
757
  })) : L("v-if", !0),
766
- d.value ? (m(), P(ot, {
758
+ d.value ? (_(), M(ot, {
767
759
  key: 1,
768
760
  onOk: s,
769
761
  onCancel: w,
770
762
  params: v.value
771
763
  }, null, 8, ["params"])) : L("v-if", !0),
772
- re(e(Me, {
764
+ re(e(Se, {
773
765
  type: "CMS_STATUS",
774
766
  ref_key: "dictRoleStatusRef",
775
767
  ref: i
@@ -779,8 +771,7 @@ const ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "
779
771
  ]);
780
772
  };
781
773
  }
782
- });
783
- const kt = /* @__PURE__ */ J(dt, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/index.vue"]]);
774
+ }), _t = /* @__PURE__ */ J(dt, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/index.vue"]]);
784
775
  export {
785
- kt as default
776
+ _t as default
786
777
  };