@pangu-backend-ui/user-core 0.0.13 → 0.0.15

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.
package/index.js CHANGED
@@ -1,10 +1,10 @@
1
- import { defineComponent as U, ref as w, inject as S, resolveComponent as p, openBlock as m, createElementBlock as V, Fragment as I, createTextVNode as _, toDisplayString as h, createBlock as b, withCtx as t, createVNode as e, createCommentVNode as k, watch as $, computed as E, resolveDirective as z, withDirectives as O, renderList as A, KeepAlive as B, resolveDynamicComponent as F, createElementVNode as x, unref as H, pushScopeId as Y, popScopeId as j } from "vue";
2
- import { defineStore as G } from "pinia";
3
- import { PgTable as K } from "@pangu-backend-ui/common";
4
- const W = {
1
+ import { defineComponent as B, ref as g, inject as A, resolveComponent as o, openBlock as v, createElementBlock as U, Fragment as N, createTextVNode as c, toDisplayString as w, createBlock as V, withCtx as l, createVNode as e, createCommentVNode as x, watch as q, computed as Q, renderSlot as H, renderList as O, resolveDirective as X, withDirectives as Z, KeepAlive as ee, resolveDynamicComponent as le, createElementVNode as F, unref as te, pushScopeId as oe, popScopeId as ae } from "vue";
2
+ import { defineStore as ne } from "pinia";
3
+ import { PgTable as ie } from "@pangu-backend-ui/common";
4
+ const ue = {
5
5
  key: 0,
6
6
  class: "container"
7
- }, q = /* @__PURE__ */ U({
7
+ }, se = /* @__PURE__ */ B({
8
8
  __name: "UserMobileComponent",
9
9
  props: {
10
10
  userId: {
@@ -16,199 +16,189 @@ const W = {
16
16
  default: null
17
17
  }
18
18
  },
19
- setup(a) {
20
- const o = a, l = w({
19
+ setup(m) {
20
+ const s = m, a = g({
21
21
  plainMobile: null,
22
22
  loading: !1
23
- }), r = S("http");
24
- function v() {
25
- l.value.plainMobile == null && (l.value.loading = !0, r == null || r.get(`/api/user/${o.userId}/plainmobile`).then((s) => {
26
- l.value.plainMobile = s.data, l.value.loading = !1;
23
+ }), r = A("http");
24
+ function _() {
25
+ a.value.plainMobile == null && (a.value.loading = !0, r == null || r.get(`/api/user/${s.userId}/plainmobile`).then((i) => {
26
+ a.value.plainMobile = i.data, a.value.loading = !1;
27
27
  }).finally(() => {
28
- l.value.loading = !1;
28
+ a.value.loading = !1;
29
29
  }));
30
30
  }
31
- return (s, c) => {
32
- const d = p("View"), f = p("el-icon"), D = p("Loading");
33
- return o.maskMobile != null ? (m(), V("div", W, [
34
- l.value.plainMobile == null ? (m(), V(I, { key: 0 }, [
35
- _(h(o.maskMobile), 1)
36
- ], 64)) : (m(), V(I, { key: 1 }, [
37
- _(h(l.value.plainMobile), 1)
31
+ return (i, b) => {
32
+ const u = o("View"), h = o("el-icon"), d = o("Loading");
33
+ return s.maskMobile != null ? (v(), U("div", ue, [
34
+ a.value.plainMobile == null ? (v(), U(N, { key: 0 }, [
35
+ c(w(s.maskMobile), 1)
36
+ ], 64)) : (v(), U(N, { key: 1 }, [
37
+ c(w(a.value.plainMobile), 1)
38
38
  ], 64)),
39
- l.value.plainMobile == null && !l.value.loading && o.userId != null ? (m(), b(f, {
39
+ a.value.plainMobile == null && !a.value.loading && s.userId != null ? (v(), V(h, {
40
40
  key: 2,
41
41
  class: "view-icon",
42
- onClick: v
42
+ onClick: _
43
43
  }, {
44
- default: t(() => [
45
- e(d)
44
+ default: l(() => [
45
+ e(u)
46
46
  ]),
47
47
  _: 1
48
- })) : k("", !0),
49
- l.value.loading ? (m(), b(f, {
48
+ })) : x("", !0),
49
+ a.value.loading ? (v(), V(h, {
50
50
  key: 3,
51
51
  class: "is-loading view-icon"
52
52
  }, {
53
- default: t(() => [
54
- e(D)
53
+ default: l(() => [
54
+ e(d)
55
55
  ]),
56
56
  _: 1
57
- })) : k("", !0)
58
- ])) : k("", !0);
57
+ })) : x("", !0)
58
+ ])) : x("", !0);
59
59
  };
60
60
  }
61
61
  });
62
- const M = (a, o) => {
63
- const l = a.__vccOpts || a;
64
- for (const [r, v] of o)
65
- l[r] = v;
66
- return l;
67
- }, C = /* @__PURE__ */ M(q, [["__scopeId", "data-v-76c9c9ae"]]), J = {
68
- install: (a) => {
69
- a.component("PgUserMobile", C);
70
- }
71
- };
72
- function Q() {
73
- const a = S("http");
74
- function o(l) {
75
- return a == null ? void 0 : a.get(`/api/user/${l}`);
62
+ const j = (m, s) => {
63
+ const a = m.__vccOpts || m;
64
+ for (const [r, _] of s)
65
+ a[r] = _;
66
+ return a;
67
+ }, R = /* @__PURE__ */ j(se, [["__scopeId", "data-v-76c9c9ae"]]), re = {
68
+ install: (m) => {
69
+ m.component("PgUserMobile", R);
76
70
  }
77
- return {
78
- getUserDetail: o
79
- };
80
- }
81
- const X = /* @__PURE__ */ U({
71
+ }, de = /* @__PURE__ */ B({
82
72
  __name: "LoginHistory",
83
73
  props: ["userId"],
84
- setup(a) {
85
- const l = w({
86
- userId: a.userId,
74
+ setup(m) {
75
+ const a = g({
76
+ userId: m.userId,
87
77
  loginTimeStart: null,
88
78
  loginTimeEnd: null
89
- }), r = w([]);
90
- $(r, (c) => {
91
- c ? (l.value.loginTimeStart = c[0], l.value.loginTimeEnd = c[1]) : (l.value.loginTimeStart = null, l.value.loginTimeEnd = null);
79
+ }), r = g([]);
80
+ q(r, (b) => {
81
+ b ? (a.value.loginTimeStart = b[0], a.value.loginTimeEnd = b[1]) : (a.value.loginTimeStart = null, a.value.loginTimeEnd = null);
92
82
  });
93
- const v = w();
94
- function s() {
95
- v.value.search();
83
+ const _ = g();
84
+ function i() {
85
+ _.value.search();
96
86
  }
97
- return (c, d) => {
98
- const f = p("el-date-picker"), D = p("el-button"), g = p("el-space"), i = p("el-table-column"), u = p("el-tag"), T = p("pg-table");
99
- return m(), V(I, null, [
100
- e(g, null, {
101
- default: t(() => [
102
- e(f, {
87
+ return (b, u) => {
88
+ const h = o("el-date-picker"), d = o("el-button"), I = o("el-space"), C = o("el-table-column"), f = o("el-tag"), y = o("pg-table");
89
+ return v(), U(N, null, [
90
+ e(I, null, {
91
+ default: l(() => [
92
+ e(h, {
103
93
  modelValue: r.value,
104
- "onUpdate:modelValue": d[0] || (d[0] = (n) => r.value = n),
94
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => r.value = p),
105
95
  type: "datetimerange",
106
96
  "range-separator": "-",
107
97
  "start-placeholder": "登录开始时间",
108
98
  "end-placeholder": "登录结束时间",
109
99
  clearable: ""
110
100
  }, null, 8, ["modelValue"]),
111
- e(D, {
101
+ e(d, {
112
102
  type: "primary",
113
103
  icon: "search",
114
- onClick: s
104
+ onClick: i
115
105
  }, {
116
- default: t(() => [
117
- _("搜索")
106
+ default: l(() => [
107
+ c("搜索")
118
108
  ]),
119
109
  _: 1
120
110
  })
121
111
  ]),
122
112
  _: 1
123
113
  }),
124
- e(T, {
114
+ e(y, {
125
115
  ref_key: "historiesTable",
126
- ref: v,
116
+ ref: _,
127
117
  style: { "margin-top": "10px" },
128
118
  "data-url": "/api/user/login-history",
129
- condition: l.value
119
+ condition: a.value
130
120
  }, {
131
- columns: t(() => [
132
- e(i, {
121
+ columns: l(() => [
122
+ e(C, {
133
123
  prop: "createdTime",
134
124
  label: "登录时间",
135
125
  align: "center",
136
126
  "show-overflow-tooltip": ""
137
127
  }),
138
- e(i, {
128
+ e(C, {
139
129
  prop: "ip",
140
130
  label: "登录IP",
141
131
  align: "center",
142
132
  "show-overflow-tooltip": ""
143
133
  }),
144
- e(i, {
134
+ e(C, {
145
135
  prop: "runtimeName",
146
136
  label: "运行容器",
147
137
  align: "center",
148
138
  "show-overflow-tooltip": ""
149
139
  }),
150
- e(i, {
140
+ e(C, {
151
141
  label: "登录方式",
152
142
  align: "center",
153
143
  "show-overflow-tooltip": ""
154
144
  }, {
155
- default: t(({ row: n }) => [
156
- n.method === "SMS" ? (m(), b(u, {
145
+ default: l(({ row: p }) => [
146
+ p.method === "SMS" ? (v(), V(f, {
157
147
  key: 0,
158
148
  type: "primary",
159
149
  size: "small"
160
150
  }, {
161
- default: t(() => [
162
- _("短信登录")
151
+ default: l(() => [
152
+ c("短信登录")
163
153
  ]),
164
154
  _: 1
165
- })) : k("", !0),
166
- n.method === "THIRD_PLATFORM" ? (m(), b(u, {
155
+ })) : x("", !0),
156
+ p.method === "THIRD_PLATFORM" ? (v(), V(f, {
167
157
  key: 1,
168
158
  type: "primary",
169
159
  size: "small"
170
160
  }, {
171
- default: t(() => [
172
- _("第三方平台")
161
+ default: l(() => [
162
+ c("第三方平台")
173
163
  ]),
174
164
  _: 1
175
- })) : k("", !0),
176
- n.method === "UNIVERIFY" ? (m(), b(u, {
165
+ })) : x("", !0),
166
+ p.method === "UNIVERIFY" ? (v(), V(f, {
177
167
  key: 2,
178
168
  type: "primary",
179
169
  size: "small"
180
170
  }, {
181
- default: t(() => [
182
- _("一键登录")
171
+ default: l(() => [
172
+ c("一键登录")
183
173
  ]),
184
174
  _: 1
185
- })) : k("", !0),
186
- n.method === "PASSWORD" ? (m(), b(u, {
175
+ })) : x("", !0),
176
+ p.method === "PASSWORD" ? (v(), V(f, {
187
177
  key: 3,
188
178
  type: "primary",
189
179
  size: "small"
190
180
  }, {
191
- default: t(() => [
192
- _("帐号密码")
181
+ default: l(() => [
182
+ c("帐号密码")
193
183
  ]),
194
184
  _: 1
195
- })) : k("", !0)
185
+ })) : x("", !0)
196
186
  ]),
197
187
  _: 1
198
188
  }),
199
- e(i, {
189
+ e(C, {
200
190
  prop: "thirdPlatformName",
201
191
  label: "第三方登录",
202
192
  align: "center",
203
193
  "show-overflow-tooltip": ""
204
194
  }),
205
- e(i, {
195
+ e(C, {
206
196
  prop: "versionCode",
207
197
  label: "版本代码",
208
198
  align: "center",
209
199
  "show-overflow-tooltip": ""
210
200
  }),
211
- e(i, {
201
+ e(C, {
212
202
  prop: "versionName",
213
203
  label: "版本名称",
214
204
  align: "center",
@@ -220,215 +210,567 @@ const X = /* @__PURE__ */ U({
220
210
  ], 64);
221
211
  };
222
212
  }
223
- }), N = G("pg-user-core-config-store", () => {
224
- const a = [];
225
- return a.push({
213
+ }), J = ne("pg-user-core-config-store", () => {
214
+ const m = [];
215
+ return m.push({
226
216
  name: "登录历史",
227
217
  code: "LOGIN_HISTORY",
228
- component: X
218
+ component: de
229
219
  }), {
230
- userDetailDialogTabs: E(() => a)
220
+ userDetailDialogTabs: Q(() => m)
231
221
  };
232
- }), L = /* @__PURE__ */ U({
222
+ }), G = /* @__PURE__ */ B({
223
+ __name: "AddBlacklistComp",
224
+ props: {
225
+ hiddenEntranceSlot: {
226
+ type: Boolean,
227
+ default: !1
228
+ },
229
+ userId: {
230
+ type: Number,
231
+ required: !0
232
+ }
233
+ },
234
+ emits: ["success"],
235
+ setup(m, { expose: s, emit: a }) {
236
+ const r = m, _ = A("http"), i = g(!1);
237
+ let b = g(null);
238
+ function u(t) {
239
+ i.value = !0, b.value = t ?? r.userId, t && C(b.value);
240
+ }
241
+ const h = g({
242
+ description: [{ required: !0, message: "请输入加入黑名单的说明" }],
243
+ unlockTime: [
244
+ { required: !0, message: "解锁时间不能为空" }
245
+ ]
246
+ }), d = g({
247
+ userId: null,
248
+ unlockTime: null,
249
+ permissions: [],
250
+ description: null
251
+ }), I = g();
252
+ function C(t) {
253
+ _ == null || _.get(`/api/user/${t}/blacklist-and-all-permission-codes`).then((n) => {
254
+ var $, M, k, L, P;
255
+ ($ = n.data) != null && $.info && ((M = n.data) != null && M.info.allowPermissionCodes && (d.value.permissions = JSON.parse((k = n.data) == null ? void 0 : k.info.allowPermissionCodes)), d.value.userId = (L = n.data) == null ? void 0 : L.info.userId, d.value.unlockTime = n.data.info.unlockTime, d.value.description = n.data.info.description), I.value = (P = n.data) == null ? void 0 : P.permissionCodes;
256
+ });
257
+ }
258
+ const f = g();
259
+ function y() {
260
+ var t;
261
+ (t = f.value) == null || t.resetFields();
262
+ }
263
+ function p() {
264
+ var t;
265
+ (t = f.value) == null || t.validate((n, $) => {
266
+ n && (_ == null || _.post(`/api/user/${b.value}/blacklist`, d.value).then((M) => {
267
+ i.value = !1, a("success");
268
+ }));
269
+ });
270
+ }
271
+ const D = [
272
+ {
273
+ text: "三天",
274
+ value: () => {
275
+ const t = new Date();
276
+ return t.setDate(t.getDate() + 3), t;
277
+ }
278
+ },
279
+ {
280
+ text: "七天",
281
+ value: () => {
282
+ const t = new Date();
283
+ return t.setDate(t.getDate() + 7), t;
284
+ }
285
+ },
286
+ {
287
+ text: "十五天",
288
+ value: () => {
289
+ const t = new Date();
290
+ return t.setDate(t.getDate() + 15), t;
291
+ }
292
+ },
293
+ {
294
+ text: "一个月",
295
+ value: () => {
296
+ const t = new Date();
297
+ return t.setMonth(t.getMonth() + 1), t;
298
+ }
299
+ },
300
+ {
301
+ text: "三个月",
302
+ value: () => {
303
+ const t = new Date();
304
+ return t.setMonth(t.getMonth() + 3), t;
305
+ }
306
+ },
307
+ {
308
+ text: "六个月",
309
+ value: () => {
310
+ const t = new Date();
311
+ return t.setMonth(t.getMonth() + 6), t;
312
+ }
313
+ },
314
+ {
315
+ text: "永久",
316
+ value: () => {
317
+ const t = new Date();
318
+ return t.setFullYear(t.getFullYear() + 100), t;
319
+ }
320
+ }
321
+ ];
322
+ return s({
323
+ show: u
324
+ }), (t, n) => {
325
+ const $ = o("el-button"), M = o("el-date-picker"), k = o("el-form-item"), L = o("el-checkbox"), P = o("el-checkbox-group"), E = o("el-input"), z = o("el-form"), T = o("el-dialog");
326
+ return v(), U(N, null, [
327
+ r.hiddenEntranceSlot ? x("", !0) : H(t.$slots, "default", { key: 0 }, () => [
328
+ e($, {
329
+ icon: "lock",
330
+ type: "warning",
331
+ onClick: n[0] || (n[0] = (S) => u())
332
+ }, {
333
+ default: l(() => [
334
+ c("加入黑名单")
335
+ ]),
336
+ _: 1
337
+ })
338
+ ]),
339
+ e(T, {
340
+ modelValue: i.value,
341
+ "onUpdate:modelValue": n[4] || (n[4] = (S) => i.value = S),
342
+ onClosed: y,
343
+ title: "黑名单管理",
344
+ width: "500"
345
+ }, {
346
+ footer: l(() => [
347
+ e($, {
348
+ type: "primary",
349
+ onClick: p
350
+ }, {
351
+ default: l(() => [
352
+ c("提交")
353
+ ]),
354
+ _: 1
355
+ })
356
+ ]),
357
+ default: l(() => [
358
+ e(z, {
359
+ ref_key: "form",
360
+ ref: f,
361
+ "label-position": "top",
362
+ rules: h.value,
363
+ model: d.value
364
+ }, {
365
+ default: l(() => [
366
+ e(k, {
367
+ label: "解锁时间",
368
+ prop: "unlockTime"
369
+ }, {
370
+ default: l(() => [
371
+ e(M, {
372
+ type: "datetime",
373
+ shortcuts: D,
374
+ modelValue: d.value.unlockTime,
375
+ "onUpdate:modelValue": n[1] || (n[1] = (S) => d.value.unlockTime = S)
376
+ }, null, 8, ["modelValue"])
377
+ ]),
378
+ _: 1
379
+ }),
380
+ e(k, {
381
+ label: "允许权限",
382
+ prop: "allowPermissionCodes"
383
+ }, {
384
+ default: l(() => [
385
+ e(P, {
386
+ modelValue: d.value.permissions,
387
+ "onUpdate:modelValue": n[2] || (n[2] = (S) => d.value.permissions = S)
388
+ }, {
389
+ default: l(() => [
390
+ (v(!0), U(N, null, O(I.value, (S, Y) => (v(), V(L, {
391
+ label: Y,
392
+ key: Y
393
+ }, {
394
+ default: l(() => [
395
+ c(w(S), 1)
396
+ ]),
397
+ _: 2
398
+ }, 1032, ["label"]))), 128))
399
+ ]),
400
+ _: 1
401
+ }, 8, ["modelValue"])
402
+ ]),
403
+ _: 1
404
+ }),
405
+ e(k, {
406
+ label: "描述",
407
+ prop: "description"
408
+ }, {
409
+ default: l(() => [
410
+ e(E, {
411
+ type: "textarea",
412
+ modelValue: d.value.description,
413
+ "onUpdate:modelValue": n[3] || (n[3] = (S) => d.value.description = S)
414
+ }, null, 8, ["modelValue"])
415
+ ]),
416
+ _: 1
417
+ })
418
+ ]),
419
+ _: 1
420
+ }, 8, ["rules", "model"])
421
+ ]),
422
+ _: 1
423
+ }, 8, ["modelValue"])
424
+ ], 64);
425
+ };
426
+ }
427
+ }), K = /* @__PURE__ */ B({
233
428
  __name: "UserDetailDialog",
234
- setup(a, { expose: o }) {
235
- const { getUserDetail: l } = Q(), r = N(), v = w(!1), s = w(), c = w({
236
- activeName: r.userDetailDialogTabs[0].code,
429
+ setup(m, { expose: s }) {
430
+ const a = J(), r = A("http"), _ = g(!1), i = g(), b = g(), u = g({
431
+ activeName: a.userDetailDialogTabs[0].code,
237
432
  tabs: []
238
- }), d = w(!1);
239
- function f(D, g, i) {
240
- var u;
241
- d.value = !0, (u = l(D)) == null || u.then((T) => {
242
- s.value = T.data, d.value = !1, v.value = !0, g && (c.value.activeName = g), c.value.tabs.length = 0, c.value.tabs = c.value.tabs.concat(r.userDetailDialogTabs), i && (c.value.tabs = c.value.tabs.concat(i));
433
+ }), h = g(!1);
434
+ function d(D, t, n) {
435
+ h.value = !0, I(D), t && (u.value.activeName = t), u.value.tabs.length = 0, u.value.tabs = u.value.tabs.concat(a.userDetailDialogTabs), n && (u.value.tabs = u.value.tabs.concat(n));
436
+ }
437
+ function I(D) {
438
+ r == null || r.get(`/api/user/${D}`).then((t) => {
439
+ i.value = t.data, h.value = !1, _.value = !0, i.value.inBlacklist && C(D);
243
440
  });
244
441
  }
245
- return o({
246
- show: f
247
- }), (D, g) => {
248
- const i = p("el-descriptions-item"), u = p("el-descriptions"), T = p("el-tab-pane"), n = p("el-tabs"), P = p("el-dialog"), R = z("loading");
249
- return O((m(), b(P, {
250
- modelValue: v.value,
251
- "onUpdate:modelValue": g[1] || (g[1] = (y) => v.value = y),
252
- title: "用户详情",
253
- width: "1300"
442
+ function C(D) {
443
+ r == null || r.get(`/api/user/${D}/blacklist`).then((t) => {
444
+ b.value = t.data;
445
+ });
446
+ }
447
+ const f = g();
448
+ function y() {
449
+ f.value.show(i.value.id);
450
+ }
451
+ function p() {
452
+ i.value = null, b.value = null;
453
+ }
454
+ return s({
455
+ show: d
456
+ }), (D, t) => {
457
+ const n = o("el-descriptions-item"), $ = o("el-tag"), M = o("el-descriptions"), k = o("el-tab-pane"), L = o("el-tabs"), P = o("el-button"), E = o("el-dialog"), z = X("loading");
458
+ return v(), U(N, null, [
459
+ Z((v(), V(E, {
460
+ modelValue: _.value,
461
+ "onUpdate:modelValue": t[1] || (t[1] = (T) => _.value = T),
462
+ title: "用户详情",
463
+ width: "1300",
464
+ onClosed: p
465
+ }, {
466
+ footer: l(() => [
467
+ e(P, {
468
+ icon: "lock",
469
+ type: "warning",
470
+ onClick: y
471
+ }, {
472
+ default: l(() => [
473
+ c(w(i.value.inBlacklist ? "修改" : "加入") + "黑名单", 1)
474
+ ]),
475
+ _: 1
476
+ })
477
+ ]),
478
+ default: l(() => [
479
+ e(M, { border: "" }, {
480
+ default: l(() => [
481
+ e(n, { label: "用户编号" }, {
482
+ default: l(() => [
483
+ c(w(i.value.id), 1)
484
+ ]),
485
+ _: 1
486
+ }),
487
+ e(n, { label: "用户昵称" }, {
488
+ default: l(() => [
489
+ c(w(i.value.nickname), 1)
490
+ ]),
491
+ _: 1
492
+ }),
493
+ e(n, { label: "手机号码" }, {
494
+ default: l(() => [
495
+ (v(), V(R, {
496
+ "mask-mobile": i.value.mobile,
497
+ "user-id": i.value.id,
498
+ key: i.value.id
499
+ }, null, 8, ["mask-mobile", "user-id"]))
500
+ ]),
501
+ _: 1
502
+ }),
503
+ e(n, { label: "邀请编码" }, {
504
+ default: l(() => [
505
+ c(w(i.value.inviteCode), 1)
506
+ ]),
507
+ _: 1
508
+ }),
509
+ e(n, { label: "活动时间" }, {
510
+ default: l(() => [
511
+ c(w(i.value.touchTime), 1)
512
+ ]),
513
+ _: 1
514
+ }),
515
+ e(n, { label: "注册时间" }, {
516
+ default: l(() => [
517
+ c(w(i.value.createdTime), 1)
518
+ ]),
519
+ _: 1
520
+ }),
521
+ e(n, { label: "最后登陆" }, {
522
+ default: l(() => [
523
+ c(w(i.value.lastLoginTime), 1)
524
+ ]),
525
+ _: 1
526
+ }),
527
+ e(n, { label: "最后更新" }, {
528
+ default: l(() => [
529
+ c(w(i.value.updatedTime), 1)
530
+ ]),
531
+ _: 1
532
+ }),
533
+ e(n, { label: "上级用户" }, {
534
+ default: l(() => [
535
+ c(w(i.value.parentId), 1)
536
+ ]),
537
+ _: 1
538
+ }),
539
+ e(n, { label: "黑名单" }, {
540
+ default: l(() => [
541
+ e($, {
542
+ type: i.value.inBlacklist ? "danger" : "success"
543
+ }, {
544
+ default: l(() => [
545
+ c(w(i.value.inBlacklist ? "是" : "否"), 1)
546
+ ]),
547
+ _: 1
548
+ }, 8, ["type"])
549
+ ]),
550
+ _: 1
551
+ }),
552
+ e(n, { label: "邀请关系" }, {
553
+ default: l(() => [
554
+ c(w(i.value.relationPath), 1)
555
+ ]),
556
+ _: 1
557
+ })
558
+ ]),
559
+ _: 1
560
+ }),
561
+ b.value ? (v(), V(M, {
562
+ key: 0,
563
+ style: { "margin-top": "10px" },
564
+ border: "",
565
+ column: "2"
566
+ }, {
567
+ default: l(() => [
568
+ e(n, { label: "黑名单解锁时间" }, {
569
+ default: l(() => [
570
+ c(w(b.value.unlockTime), 1)
571
+ ]),
572
+ _: 1
573
+ }),
574
+ e(n, { label: "加入时间" }, {
575
+ default: l(() => [
576
+ c(w(b.value.createdTime), 1)
577
+ ]),
578
+ _: 1
579
+ }),
580
+ e(n, { label: "允许权限" }, {
581
+ default: l(() => [
582
+ c(w(b.value.allowPermissionCodes ? JSON.parse(b.value.allowPermissionCodes).join(", ") : ""), 1)
583
+ ]),
584
+ _: 1
585
+ }),
586
+ e(n, { label: "描述" }, {
587
+ default: l(() => [
588
+ c(w(b.value.description), 1)
589
+ ]),
590
+ _: 1
591
+ })
592
+ ]),
593
+ _: 1
594
+ })) : x("", !0),
595
+ (v(), V(L, {
596
+ modelValue: u.value.activeName,
597
+ "onUpdate:modelValue": t[0] || (t[0] = (T) => u.value.activeName = T),
598
+ key: `usr_tab_${i.value.id}`,
599
+ style: { "margin-top": "10px" },
600
+ type: "border-card"
601
+ }, {
602
+ default: l(() => [
603
+ (v(!0), U(N, null, O(u.value.tabs, (T, S) => (v(), V(k, {
604
+ label: T.name,
605
+ name: T.code,
606
+ key: `user_detail_dialog_${T.code}`
607
+ }, {
608
+ default: l(() => [
609
+ (v(), V(ee, null, [
610
+ u.value.activeName == T.code ? (v(), V(le(T.component), {
611
+ key: `ud_tab_${T.code}`,
612
+ userId: i.value.id
613
+ }, null, 8, ["userId"])) : x("", !0)
614
+ ], 1024))
615
+ ]),
616
+ _: 2
617
+ }, 1032, ["label", "name"]))), 128))
618
+ ]),
619
+ _: 1
620
+ }, 8, ["modelValue"]))
621
+ ]),
622
+ _: 1
623
+ }, 8, ["modelValue"])), [
624
+ [z, h.value]
625
+ ]),
626
+ e(G, {
627
+ ref_key: "addBlacklistComp",
628
+ ref: f,
629
+ onSuccess: t[2] || (t[2] = (T) => I(i.value.id)),
630
+ "hidden-entrance-slot": ""
631
+ }, null, 512)
632
+ ], 64);
633
+ };
634
+ }
635
+ }), ce = {
636
+ install: (m) => {
637
+ m.component("PgUserDetailDialog", K);
638
+ }
639
+ }, W = /* @__PURE__ */ B({
640
+ __name: "UserSelectorComp",
641
+ props: {
642
+ modelValue: {
643
+ required: !0,
644
+ type: Number
645
+ },
646
+ pageSize: {
647
+ type: Number,
648
+ default: 20
649
+ }
650
+ },
651
+ emits: ["update:modelValue"],
652
+ setup(m, { emit: s }) {
653
+ const a = m, r = A("http"), _ = g(a.modelValue);
654
+ q(_, (d) => {
655
+ s("update:modelValue", d);
656
+ });
657
+ const i = g(!1), b = g([]);
658
+ let u = null;
659
+ function h(d) {
660
+ d && (i.value = !0, u && clearTimeout(u), u = setTimeout(() => {
661
+ r == null || r.get("/api/user/keyword-search", {
662
+ keyword: d,
663
+ pageSize: a.pageSize
664
+ }).then((I) => {
665
+ b.value = I.data;
666
+ }).finally(() => {
667
+ i.value = !1;
668
+ });
669
+ }, 200));
670
+ }
671
+ return (d, I) => {
672
+ const C = o("el-option"), f = o("el-select");
673
+ return v(), V(f, {
674
+ modelValue: _.value,
675
+ "onUpdate:modelValue": I[0] || (I[0] = (y) => _.value = y),
676
+ filterable: "",
677
+ remote: "",
678
+ loading: i.value,
679
+ "remote-method": h
254
680
  }, {
255
- default: t(() => [
256
- e(u, { border: "" }, {
257
- default: t(() => [
258
- e(i, { label: "用户编号" }, {
259
- default: t(() => [
260
- _(h(s.value.id), 1)
261
- ]),
262
- _: 1
263
- }),
264
- e(i, { label: "用户昵称" }, {
265
- default: t(() => [
266
- _(h(s.value.nickname), 1)
267
- ]),
268
- _: 1
269
- }),
270
- e(i, { label: "手机号码" }, {
271
- default: t(() => [
272
- (m(), b(C, {
273
- "mask-mobile": s.value.mobile,
274
- "user-id": s.value.id,
275
- key: s.value.id
276
- }, null, 8, ["mask-mobile", "user-id"]))
277
- ]),
278
- _: 1
279
- }),
280
- e(i, { label: "邀请编码" }, {
281
- default: t(() => [
282
- _(h(s.value.inviteCode), 1)
283
- ]),
284
- _: 1
285
- }),
286
- e(i, { label: "活动时间" }, {
287
- default: t(() => [
288
- _(h(s.value.touchTime), 1)
289
- ]),
290
- _: 1
291
- }),
292
- e(i, { label: "注册时间" }, {
293
- default: t(() => [
294
- _(h(s.value.createdTime), 1)
295
- ]),
296
- _: 1
297
- }),
298
- e(i, { label: "最后登陆" }, {
299
- default: t(() => [
300
- _(h(s.value.lastLoginTime), 1)
301
- ]),
302
- _: 1
303
- }),
304
- e(i, { label: "最后更新" }, {
305
- default: t(() => [
306
- _(h(s.value.updatedTime), 1)
307
- ]),
308
- _: 1
309
- }),
310
- e(i, { label: "上级用户" }, {
311
- default: t(() => [
312
- _(h(s.value.parentId), 1)
313
- ]),
314
- _: 1
315
- }),
316
- e(i, { label: "邀请关系" }, {
317
- default: t(() => [
318
- _(h(s.value.relationPath), 1)
319
- ]),
320
- _: 1
321
- })
322
- ]),
323
- _: 1
324
- }),
325
- (m(), b(n, {
326
- modelValue: c.value.activeName,
327
- "onUpdate:modelValue": g[0] || (g[0] = (y) => c.value.activeName = y),
328
- key: `usr_tab_${s.value.id}`,
329
- style: { "margin-top": "10px" },
330
- type: "border-card"
681
+ default: l(() => [
682
+ (v(!0), U(N, null, O(b.value, (y) => (v(), V(C, {
683
+ key: y.id,
684
+ value: y.id,
685
+ label: `${y.id} / ${y.nickname} / ${y.mobile} / ${y.inviteCode}`
331
686
  }, {
332
- default: t(() => [
333
- (m(!0), V(I, null, A(c.value.tabs, (y, ue) => (m(), b(T, {
334
- label: y.name,
335
- name: y.code,
336
- key: `user_detail_dialog_${y.code}`
337
- }, {
338
- default: t(() => [
339
- (m(), b(B, null, [
340
- c.value.activeName == y.code ? (m(), b(F(y.component), {
341
- key: `ud_tab_${y.code}`,
342
- userId: s.value.id
343
- }, null, 8, ["userId"])) : k("", !0)
344
- ], 1024))
345
- ]),
346
- _: 2
347
- }, 1032, ["label", "name"]))), 128))
687
+ default: l(() => [
688
+ H(d.$slots, "default", { user: y }, () => [
689
+ c(w(y.id) + " / " + w(y.nickname) + " / " + w(y.mobile) + " / " + w(y.inviteCode), 1)
690
+ ])
348
691
  ]),
349
- _: 1
350
- }, 8, ["modelValue"]))
692
+ _: 2
693
+ }, 1032, ["value", "label"]))), 128))
351
694
  ]),
352
- _: 1
353
- }, 8, ["modelValue"])), [
354
- [R, d.value]
355
- ]);
695
+ _: 3
696
+ }, 8, ["modelValue", "loading"]);
356
697
  };
357
698
  }
358
- }), Z = {
359
- install: (a) => {
360
- a.component("PgUserDetailDialog", L);
699
+ }), pe = {
700
+ install: (m) => {
701
+ m.component("PgUserSelector", W);
361
702
  }
362
- }, ee = [
363
- J,
364
- Z
365
- ], le = (a) => (Y("data-v-391c43be"), a = a(), j(), a), te = { class: "page-layout" }, oe = { style: { "margin-top": "10px" } }, ae = /* @__PURE__ */ le(() => /* @__PURE__ */ x("template", { "slot-scope": "{row}" }, null, -1)), ne = /* @__PURE__ */ U({
703
+ }, me = [
704
+ re,
705
+ ce,
706
+ pe
707
+ ], _e = (m) => (oe("data-v-391c43be"), m = m(), ae(), m), fe = { class: "page-layout" }, ve = { style: { "margin-top": "10px" } }, be = /* @__PURE__ */ _e(() => /* @__PURE__ */ F("template", { "slot-scope": "{row}" }, null, -1)), ge = /* @__PURE__ */ B({
366
708
  __name: "list",
367
- setup(a) {
368
- const o = w({
709
+ setup(m) {
710
+ const s = g({
369
711
  id: null,
370
712
  parentId: null,
371
713
  phone: null,
372
714
  nicekname: null,
373
715
  inviteCode: null
374
- }), l = w(null);
716
+ }), a = g(null);
375
717
  function r() {
376
- l.value.search();
718
+ a.value.search();
377
719
  }
378
- const v = w();
379
- function s(c) {
380
- v.value.show(c.id);
720
+ const _ = g();
721
+ function i(b) {
722
+ _.value.show(b.id);
381
723
  }
382
- return (c, d) => {
383
- const f = p("el-input"), D = p("el-button"), g = p("el-space"), i = p("el-card"), u = p("el-table-column"), T = p("el-image");
384
- return m(), V(I, null, [
385
- x("div", te, [
386
- e(i, null, {
387
- default: t(() => [
388
- e(g, null, {
389
- default: t(() => [
390
- e(f, {
391
- modelValue: o.value.id,
392
- "onUpdate:modelValue": d[0] || (d[0] = (n) => o.value.id = n),
724
+ return (b, u) => {
725
+ const h = o("el-input"), d = o("el-button"), I = o("el-space"), C = o("el-card"), f = o("el-table-column"), y = o("el-image");
726
+ return v(), U(N, null, [
727
+ F("div", fe, [
728
+ e(C, null, {
729
+ default: l(() => [
730
+ e(I, null, {
731
+ default: l(() => [
732
+ e(h, {
733
+ modelValue: s.value.id,
734
+ "onUpdate:modelValue": u[0] || (u[0] = (p) => s.value.id = p),
393
735
  placeholder: "ID",
394
736
  style: { width: "100px" },
395
737
  clearable: ""
396
738
  }, null, 8, ["modelValue"]),
397
- e(f, {
398
- modelValue: o.value.parentId,
399
- "onUpdate:modelValue": d[1] || (d[1] = (n) => o.value.parentId = n),
739
+ e(h, {
740
+ modelValue: s.value.parentId,
741
+ "onUpdate:modelValue": u[1] || (u[1] = (p) => s.value.parentId = p),
400
742
  placeholder: "父用户ID",
401
743
  style: { width: "100px" },
402
744
  clearable: ""
403
745
  }, null, 8, ["modelValue"]),
404
- e(f, {
405
- modelValue: o.value.phone,
406
- "onUpdate:modelValue": d[2] || (d[2] = (n) => o.value.phone = n),
746
+ e(h, {
747
+ modelValue: s.value.phone,
748
+ "onUpdate:modelValue": u[2] || (u[2] = (p) => s.value.phone = p),
407
749
  placeholder: "手机号",
408
750
  style: { width: "120px" },
409
751
  clearable: ""
410
752
  }, null, 8, ["modelValue"]),
411
- e(f, {
412
- modelValue: o.value.nicekname,
413
- "onUpdate:modelValue": d[3] || (d[3] = (n) => o.value.nicekname = n),
753
+ e(h, {
754
+ modelValue: s.value.nicekname,
755
+ "onUpdate:modelValue": u[3] || (u[3] = (p) => s.value.nicekname = p),
414
756
  placeholder: "昵称",
415
757
  style: { width: "150px" },
416
758
  clearable: ""
417
759
  }, null, 8, ["modelValue"]),
418
- e(f, {
419
- modelValue: o.value.inviteCode,
420
- "onUpdate:modelValue": d[4] || (d[4] = (n) => o.value.inviteCode = n),
760
+ e(h, {
761
+ modelValue: s.value.inviteCode,
762
+ "onUpdate:modelValue": u[4] || (u[4] = (p) => s.value.inviteCode = p),
421
763
  placeholder: "邀请码",
422
764
  style: { width: "100px" },
423
765
  clearable: ""
424
766
  }, null, 8, ["modelValue"]),
425
- e(D, {
767
+ e(d, {
426
768
  type: "primary",
427
769
  icon: "search",
428
770
  onClick: r
429
771
  }, {
430
- default: t(() => [
431
- _("搜索")
772
+ default: l(() => [
773
+ c("搜索")
432
774
  ]),
433
775
  _: 1
434
776
  })
@@ -438,118 +780,118 @@ const X = /* @__PURE__ */ U({
438
780
  ]),
439
781
  _: 1
440
782
  }),
441
- x("div", oe, [
442
- e(H(K), {
783
+ F("div", ve, [
784
+ e(te(ie), {
443
785
  ref_key: "userTable",
444
- ref: l,
786
+ ref: a,
445
787
  "data-url": "/api/user/page",
446
- condition: o.value,
447
- onRowDbClick: d[5] || (d[5] = (n) => s(n))
788
+ condition: s.value,
789
+ onRowDbClick: u[5] || (u[5] = (p) => i(p))
448
790
  }, {
449
- columns: t(() => [
450
- e(u, {
791
+ columns: l(() => [
792
+ e(f, {
451
793
  prop: "id",
452
794
  label: "UID",
453
795
  width: "80",
454
796
  align: "center"
455
797
  }),
456
- e(u, {
798
+ e(f, {
457
799
  prop: "mobile",
458
800
  label: "手机",
459
801
  width: "115",
460
802
  align: "left",
461
803
  "show-overflow-tooltip": ""
462
804
  }, {
463
- default: t((n) => [
464
- (m(), b(C, {
465
- "mask-mobile": n.row.mobile,
466
- "user-id": n.row.id,
467
- key: n.row.id
805
+ default: l((p) => [
806
+ (v(), V(R, {
807
+ "mask-mobile": p.row.mobile,
808
+ "user-id": p.row.id,
809
+ key: p.row.id
468
810
  }, null, 8, ["mask-mobile", "user-id"]))
469
811
  ]),
470
812
  _: 1
471
813
  }),
472
- e(u, {
814
+ e(f, {
473
815
  prop: "username",
474
816
  label: "用户名",
475
817
  width: "110",
476
818
  align: "left",
477
819
  "show-overflow-tooltip": ""
478
820
  }),
479
- e(u, {
821
+ e(f, {
480
822
  prop: "nickname",
481
823
  label: "昵称",
482
824
  width: "110",
483
825
  align: "left",
484
826
  "show-overflow-tooltip": ""
485
827
  }),
486
- e(u, {
828
+ e(f, {
487
829
  prop: "inviteCode",
488
830
  label: "邀请码",
489
831
  width: "90",
490
832
  align: "center",
491
833
  "show-overflow-tooltip": ""
492
834
  }),
493
- e(u, {
835
+ e(f, {
494
836
  prop: "avatar",
495
837
  label: "头像",
496
838
  width: "60",
497
839
  align: "center",
498
840
  "show-overflow-tooltip": ""
499
841
  }, {
500
- default: t((n) => [
501
- e(T, {
842
+ default: l((p) => [
843
+ e(y, {
502
844
  fit: "cover",
503
845
  size: 30,
504
- src: n.row.avatar,
846
+ src: p.row.avatar,
505
847
  "preview-teleported": "",
506
- "preview-src-list": [n.row.avatar]
848
+ "preview-src-list": [p.row.avatar]
507
849
  }, null, 8, ["src", "preview-src-list"])
508
850
  ]),
509
851
  _: 1
510
852
  }),
511
- e(u, {
853
+ e(f, {
512
854
  prop: "parentId",
513
855
  label: "上级ID",
514
856
  width: "80",
515
857
  align: "left",
516
858
  "show-overflow-tooltip": ""
517
859
  }),
518
- e(u, {
860
+ e(f, {
519
861
  prop: "relationPath",
520
862
  label: "邀请关系",
521
863
  "min-width": "150",
522
864
  align: "left",
523
865
  "show-overflow-tooltip": ""
524
866
  }),
525
- e(u, {
867
+ e(f, {
526
868
  prop: "blackUnlockTime",
527
869
  label: "黑名单解锁",
528
870
  width: "145",
529
871
  align: "left",
530
872
  "show-overflow-tooltip": ""
531
873
  }),
532
- e(u, {
874
+ e(f, {
533
875
  prop: "lastLoginTime",
534
876
  label: "最后登录时间",
535
877
  width: "145",
536
878
  align: "center",
537
879
  "show-overflow-tooltip": ""
538
880
  }),
539
- e(u, {
881
+ e(f, {
540
882
  prop: "createdTime",
541
883
  label: "创建时间",
542
884
  width: "145",
543
885
  align: "center",
544
886
  "show-overflow-tooltip": ""
545
887
  }),
546
- e(u, {
888
+ e(f, {
547
889
  label: "操作",
548
890
  width: "220",
549
891
  fixed: "right"
550
892
  }, {
551
- default: t(() => [
552
- ae
893
+ default: l(() => [
894
+ be
553
895
  ]),
554
896
  _: 1
555
897
  })
@@ -558,18 +900,220 @@ const X = /* @__PURE__ */ U({
558
900
  }, 8, ["condition"])
559
901
  ])
560
902
  ]),
561
- e(L, {
903
+ e(K, {
562
904
  ref_key: "userDetailDialog",
563
- ref: v
905
+ ref: _
564
906
  }, null, 512)
565
907
  ], 64);
566
908
  };
567
909
  }
568
910
  });
569
- const ie = /* @__PURE__ */ M(ne, [["__scopeId", "data-v-391c43be"]]), re = {
570
- install: (a, o) => {
571
- let l = o.router, r = l.getRoutes().find((v) => v.path == "/");
572
- r && r.meta && l.addRoute({
911
+ const ke = /* @__PURE__ */ j(ge, [["__scopeId", "data-v-391c43be"]]), we = /* @__PURE__ */ B({
912
+ __name: "BlackListView",
913
+ setup(m) {
914
+ const s = A("http"), a = g({
915
+ userId: null,
916
+ status: "VALID"
917
+ }), r = g();
918
+ function _() {
919
+ r.value.search();
920
+ }
921
+ function i(h) {
922
+ s == null || s.post(`/api/user/blacklist/${h}/unlock`).then((d) => {
923
+ _();
924
+ });
925
+ }
926
+ const b = g();
927
+ function u(h) {
928
+ b.value.show(h);
929
+ }
930
+ return (h, d) => {
931
+ const I = o("el-option"), C = o("el-select"), f = o("el-button"), y = o("el-space"), p = o("el-card"), D = o("el-table-column"), t = o("el-link"), n = o("el-tag"), $ = o("el-popconfirm"), M = o("pg-table");
932
+ return v(), U(N, null, [
933
+ e(p, null, {
934
+ default: l(() => [
935
+ e(y, null, {
936
+ default: l(() => [
937
+ e(W, {
938
+ modelValue: a.value.userId,
939
+ "onUpdate:modelValue": d[0] || (d[0] = (k) => a.value.userId = k),
940
+ clearable: "",
941
+ style: { width: "300px" }
942
+ }, null, 8, ["modelValue"]),
943
+ e(C, {
944
+ placeholder: "状态",
945
+ modelValue: a.value.status,
946
+ "onUpdate:modelValue": d[1] || (d[1] = (k) => a.value.status = k),
947
+ clearable: "",
948
+ style: { width: "100px" }
949
+ }, {
950
+ default: l(() => [
951
+ e(I, {
952
+ value: "VALID",
953
+ label: "有效"
954
+ }),
955
+ e(I, {
956
+ value: "INVALID",
957
+ label: "失效"
958
+ })
959
+ ]),
960
+ _: 1
961
+ }, 8, ["modelValue"]),
962
+ e(f, {
963
+ icon: "search",
964
+ type: "primary",
965
+ onClick: _
966
+ }, {
967
+ default: l(() => [
968
+ c("搜索")
969
+ ]),
970
+ _: 1
971
+ })
972
+ ]),
973
+ _: 1
974
+ })
975
+ ]),
976
+ _: 1
977
+ }),
978
+ e(M, {
979
+ ref_key: "table",
980
+ ref: r,
981
+ "data-url": "/api/user/blacklist",
982
+ condition: a.value,
983
+ style: { "margin-top": "10px" }
984
+ }, {
985
+ columns: l(() => [
986
+ e(D, {
987
+ label: "ID",
988
+ prop: "id",
989
+ width: "100"
990
+ }),
991
+ e(D, { label: "用户信息" }, {
992
+ default: l(() => [
993
+ e(D, {
994
+ label: "用户ID",
995
+ width: "100"
996
+ }, {
997
+ default: l(({ row: k }) => [
998
+ e(t, { type: "primary" }, {
999
+ default: l(() => [
1000
+ c(w(k.userId), 1)
1001
+ ]),
1002
+ _: 2
1003
+ }, 1024)
1004
+ ]),
1005
+ _: 1
1006
+ }),
1007
+ e(D, {
1008
+ label: "手机号",
1009
+ width: "150"
1010
+ }, {
1011
+ default: l(({ row: k }) => [
1012
+ e(R, {
1013
+ "user-id": k.userId,
1014
+ "mask-mobile": k.userMobile
1015
+ }, null, 8, ["user-id", "mask-mobile"])
1016
+ ]),
1017
+ _: 1
1018
+ }),
1019
+ e(D, {
1020
+ label: "用户昵称",
1021
+ prop: "userNickname"
1022
+ })
1023
+ ]),
1024
+ _: 1
1025
+ }),
1026
+ e(D, { label: "限制信息" }, {
1027
+ default: l(() => [
1028
+ e(D, {
1029
+ label: "描述",
1030
+ prop: "description"
1031
+ }),
1032
+ e(D, {
1033
+ label: "允许权限",
1034
+ prop: "allowPermissionCodes",
1035
+ "show-overflow-tooltip": ""
1036
+ }),
1037
+ e(D, {
1038
+ label: "状态",
1039
+ prop: "status",
1040
+ align: "center",
1041
+ width: "100"
1042
+ }, {
1043
+ default: l(({ row: k }) => [
1044
+ e(n, {
1045
+ type: k.status == "VALID" ? "success" : "warning"
1046
+ }, {
1047
+ default: l(() => [
1048
+ c(w(k.status == "VALID" ? "有效" : "失效"), 1)
1049
+ ]),
1050
+ _: 2
1051
+ }, 1032, ["type"])
1052
+ ]),
1053
+ _: 1
1054
+ }),
1055
+ e(D, {
1056
+ label: "加入时间",
1057
+ prop: "createdTime",
1058
+ width: "170"
1059
+ }),
1060
+ e(D, {
1061
+ label: "解锁时间",
1062
+ prop: "unlockTime",
1063
+ width: "170"
1064
+ })
1065
+ ]),
1066
+ _: 1
1067
+ }),
1068
+ e(D, null, {
1069
+ default: l(({ row: k }) => [
1070
+ k.status == "VALID" ? (v(), V($, {
1071
+ key: 0,
1072
+ title: "确定要解锁吗?",
1073
+ onConfirm: i
1074
+ }, {
1075
+ reference: l(() => [
1076
+ e(f, {
1077
+ type: "warning",
1078
+ icon: "unlock"
1079
+ }, {
1080
+ default: l(() => [
1081
+ c("解锁")
1082
+ ]),
1083
+ _: 1
1084
+ })
1085
+ ]),
1086
+ _: 1
1087
+ })) : x("", !0),
1088
+ k.status == "VALID" ? (v(), V(f, {
1089
+ key: 1,
1090
+ icon: "edit",
1091
+ onClick: (L) => u(k.userId)
1092
+ }, {
1093
+ default: l(() => [
1094
+ c("编辑")
1095
+ ]),
1096
+ _: 2
1097
+ }, 1032, ["onClick"])) : x("", !0)
1098
+ ]),
1099
+ _: 1
1100
+ })
1101
+ ]),
1102
+ _: 1
1103
+ }, 8, ["condition"]),
1104
+ e(G, {
1105
+ ref_key: "addBlacklistComp",
1106
+ ref: b,
1107
+ onSuccess: _,
1108
+ "hidden-entrance-slot": ""
1109
+ }, null, 512)
1110
+ ], 64);
1111
+ };
1112
+ }
1113
+ }), he = {
1114
+ install: (m, s) => {
1115
+ let a = s.router, r = a.getRoutes().find((_) => _.path == "/");
1116
+ r && r.meta && a.addRoute({
573
1117
  path: "/user",
574
1118
  name: "User",
575
1119
  redirect: "/user/list",
@@ -577,23 +1121,28 @@ const ie = /* @__PURE__ */ M(ne, [["__scopeId", "data-v-391c43be"]]), re = {
577
1121
  children: [{
578
1122
  path: "list",
579
1123
  name: "UserList",
580
- component: ie
1124
+ component: ke
1125
+ }, {
1126
+ path: "blacklist",
1127
+ name: "BlackListView",
1128
+ component: we
581
1129
  }]
582
1130
  });
583
1131
  }
584
- }, se = (a, o) => {
585
- const l = N();
586
- if (o.userDetailDialogTabs && o.userDetailDialogTabs.length)
587
- for (let r of o.userDetailDialogTabs)
588
- l.userDetailDialogTabs.push(r);
589
- ee.forEach((r) => a.use(r)), a.use(re, o);
590
- }, me = {
591
- install: se
1132
+ }, ye = (m, s) => {
1133
+ const a = J();
1134
+ if (s.userDetailDialogTabs && s.userDetailDialogTabs.length)
1135
+ for (let r of s.userDetailDialogTabs)
1136
+ a.userDetailDialogTabs.push(r);
1137
+ me.forEach((r) => m.use(r)), m.use(he, s);
1138
+ }, Ce = {
1139
+ install: ye
592
1140
  };
593
1141
  export {
594
- Z as UserDetailDialog,
595
- J as UserMobileComp,
596
- me as default,
597
- se as install,
598
- N as useUserCoreConfigStore
1142
+ ce as UserDetailDialog,
1143
+ re as UserMobileComp,
1144
+ pe as UserSelectComp,
1145
+ Ce as default,
1146
+ ye as install,
1147
+ J as useUserCoreConfigStore
599
1148
  };