@pangu-backend-ui/user-core 0.0.9 → 0.0.11

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,13 +1,11 @@
1
- import { openBlock as a, createElementBlock as d, Fragment as h, createTextVNode as f, toDisplayString as b, createCommentVNode as _, defineComponent as T, ref as w, resolveComponent as u, createVNode as e, withCtx as s, createElementVNode as k, unref as g, createBlock as v, pushScopeId as N, popScopeId as P } from "vue";
2
- import { component as D } from "v-viewer";
3
- import { PgTable as S } from "@pangu-backend-ui/common";
4
- const y = (l, n) => {
5
- const o = l.__vccOpts || l;
6
- for (const [r, i] of n)
7
- o[r] = i;
8
- return o;
9
- }, V = {
10
- name: "UserMobile",
1
+ import { defineComponent as U, ref as h, inject as S, resolveComponent as p, openBlock as _, createElementBlock as T, Fragment as I, createTextVNode as m, toDisplayString as g, createBlock as w, withCtx as t, createVNode as e, createCommentVNode as k, watch as E, computed as $, resolveDirective as z, withDirectives as O, renderList as B, resolveDynamicComponent as F, createElementVNode as x, unref as H, pushScopeId as A, popScopeId as Y } from "vue";
2
+ import { defineStore as j } from "pinia";
3
+ import { PgTable as G } from "@pangu-backend-ui/common";
4
+ const W = {
5
+ key: 0,
6
+ class: "container"
7
+ }, q = /* @__PURE__ */ U({
8
+ __name: "UserMobileComponent",
11
9
  props: {
12
10
  userId: {
13
11
  type: Number,
@@ -18,226 +16,556 @@ const y = (l, n) => {
18
16
  default: null
19
17
  }
20
18
  },
21
- data() {
22
- return {
19
+ setup(a) {
20
+ const o = a, l = h({
23
21
  plainMobile: null,
24
22
  loading: !1
25
- };
26
- },
27
- methods: {
28
- getPlainMobile() {
29
- this.plainMobile == null && (this.loading = !0, this.$http.get(`/api/user/${this.userId}/plainmobile`).then((l) => {
30
- this.plainMobile = l.data, this.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;
31
27
  }).finally(() => {
32
- this.loading = !1;
28
+ l.value.loading = !1;
33
29
  }));
34
30
  }
31
+ return (s, c) => {
32
+ const u = p("View"), b = p("el-icon"), y = p("Loading");
33
+ return o.maskMobile != null ? (_(), T("div", W, [
34
+ l.value.plainMobile == null ? (_(), T(I, { key: 0 }, [
35
+ m(g(o.maskMobile), 1)
36
+ ], 64)) : (_(), T(I, { key: 1 }, [
37
+ m(g(l.value.plainMobile), 1)
38
+ ], 64)),
39
+ l.value.plainMobile == null && !l.value.loading && o.userId != null ? (_(), w(b, {
40
+ key: 2,
41
+ class: "view-icon",
42
+ onClick: v
43
+ }, {
44
+ default: t(() => [
45
+ e(u)
46
+ ]),
47
+ _: 1
48
+ })) : k("", !0),
49
+ l.value.loading ? (_(), w(b, {
50
+ key: 3,
51
+ class: "is-loading view-icon"
52
+ }, {
53
+ default: t(() => [
54
+ e(y)
55
+ ]),
56
+ _: 1
57
+ })) : k("", !0)
58
+ ])) : k("", !0);
59
+ };
60
+ }
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);
35
70
  }
36
- }, L = {
37
- key: 3,
38
- class: "el-icon-loading"
39
71
  };
40
- function B(l, n, o, r, i, m) {
41
- return a(), d("div", null, [
42
- o.maskMobile != null ? (a(), d(h, { key: 0 }, [
43
- i.plainMobile == null ? (a(), d(h, { key: 0 }, [
44
- f(b(o.maskMobile), 1)
45
- ], 64)) : (a(), d(h, { key: 1 }, [
46
- f(b(i.plainMobile), 1)
47
- ], 64)),
48
- i.plainMobile == null && !i.loading && o.userId != null ? (a(), d("i", {
49
- key: 2,
50
- class: "el-icon-view",
51
- onClick: n[0] || (n[0] = (...c) => m.getPlainMobile && m.getPlainMobile(...c))
52
- })) : _("", !0),
53
- i.loading ? (a(), d("i", L)) : _("", !0)
54
- ], 64)) : _("", !0)
55
- ]);
56
- }
57
- const M = /* @__PURE__ */ y(V, [["render", B]]), E = {
58
- install: (l) => {
59
- l.component("PgUserMobile", M);
72
+ function K() {
73
+ const a = S("http");
74
+ function o(l) {
75
+ return a == null ? void 0 : a.get(`/api/user/${l}`);
60
76
  }
61
- }, R = [
62
- E
63
- ];
64
- const q = (l) => (N("data-v-690b99ee"), l = l(), P(), l), z = { class: "page-layout" }, F = { style: { "margin-top": "10px" } }, O = /* @__PURE__ */ q(() => /* @__PURE__ */ k("template", { "slot-scope": "{row}" }, null, -1)), j = /* @__PURE__ */ T({
65
- __name: "list",
66
- setup(l) {
67
- const n = w({
68
- id: null,
69
- phoneNumber: null
70
- }), o = w(null);
71
- function r() {
72
- o.value.search();
77
+ return {
78
+ getUserDetail: o
79
+ };
80
+ }
81
+ const Q = /* @__PURE__ */ U({
82
+ __name: "LoginHistory",
83
+ props: ["userId"],
84
+ setup(a) {
85
+ const l = h({
86
+ userId: a.userId,
87
+ loginTimeStart: null,
88
+ loginTimeEnd: null
89
+ }), r = h([]);
90
+ E(r, (c) => {
91
+ c ? (l.value.loginTimeStart = c[0], l.value.loginTimeEnd = c[1]) : (l.value.loginTimeStart = null, l.value.loginTimeEnd = null);
92
+ });
93
+ const v = h();
94
+ function s() {
95
+ v.value.search();
73
96
  }
74
- return (i, m) => {
75
- const c = u("el-input"), x = u("el-button"), I = u("el-space"), U = u("el-card"), t = u("el-table-column"), C = u("el-avatar");
76
- return a(), d("div", z, [
77
- e(U, null, {
78
- default: s(() => [
79
- e(I, null, {
80
- default: s(() => [
81
- e(c, {
82
- placeholder: "ID",
83
- style: { width: "100px" }
84
- }),
85
- e(c, {
86
- placeholder: "父用户ID",
87
- style: { width: "100px" }
88
- }),
89
- e(c, { placeholder: "手机号" }),
90
- e(c, { placeholder: "昵称" }),
91
- e(c, { placeholder: "邀请码" }),
92
- e(x, {
97
+ return (c, u) => {
98
+ const b = p("el-date-picker"), y = p("el-button"), f = p("el-space"), i = p("el-table-column"), d = p("el-tag"), V = p("pg-table");
99
+ return _(), T(I, null, [
100
+ e(f, null, {
101
+ default: t(() => [
102
+ e(b, {
103
+ modelValue: r.value,
104
+ "onUpdate:modelValue": u[0] || (u[0] = (n) => r.value = n),
105
+ type: "datetimerange",
106
+ "range-separator": "-",
107
+ "start-placeholder": "登录开始时间",
108
+ "end-placeholder": "登录结束时间",
109
+ clearable: ""
110
+ }, null, 8, ["modelValue"]),
111
+ e(y, {
112
+ type: "primary",
113
+ icon: "search",
114
+ onClick: s
115
+ }, {
116
+ default: t(() => [
117
+ m("搜索")
118
+ ]),
119
+ _: 1
120
+ })
121
+ ]),
122
+ _: 1
123
+ }),
124
+ e(V, {
125
+ ref_key: "historiesTable",
126
+ ref: v,
127
+ style: { "margin-top": "10px" },
128
+ "data-url": "/api/user/login-history",
129
+ condition: l.value
130
+ }, {
131
+ columns: t(() => [
132
+ e(i, {
133
+ prop: "createdTime",
134
+ label: "登录时间",
135
+ align: "center",
136
+ "show-overflow-tooltip": ""
137
+ }),
138
+ e(i, {
139
+ prop: "ip",
140
+ label: "登录IP",
141
+ align: "center",
142
+ "show-overflow-tooltip": ""
143
+ }),
144
+ e(i, {
145
+ prop: "runtimeName",
146
+ label: "运行容器",
147
+ align: "center",
148
+ "show-overflow-tooltip": ""
149
+ }),
150
+ e(i, {
151
+ label: "登录方式",
152
+ align: "center",
153
+ "show-overflow-tooltip": ""
154
+ }, {
155
+ default: t(({ row: n }) => [
156
+ n.method === "SMS" ? (_(), w(d, {
157
+ key: 0,
93
158
  type: "primary",
94
- icon: "search",
95
- onClick: r
159
+ size: "small"
96
160
  }, {
97
- default: s(() => [
98
- f("搜索")
161
+ default: t(() => [
162
+ m("短信登录")
99
163
  ]),
100
164
  _: 1
101
- })
165
+ })) : k("", !0),
166
+ n.method === "THIRD_PLATFORM" ? (_(), w(d, {
167
+ key: 1,
168
+ type: "primary",
169
+ size: "small"
170
+ }, {
171
+ default: t(() => [
172
+ m("第三方平台")
173
+ ]),
174
+ _: 1
175
+ })) : k("", !0),
176
+ n.method === "UNIVERIFY" ? (_(), w(d, {
177
+ key: 2,
178
+ type: "primary",
179
+ size: "small"
180
+ }, {
181
+ default: t(() => [
182
+ m("一键登录")
183
+ ]),
184
+ _: 1
185
+ })) : k("", !0),
186
+ n.method === "PASSWORD" ? (_(), w(d, {
187
+ key: 3,
188
+ type: "primary",
189
+ size: "small"
190
+ }, {
191
+ default: t(() => [
192
+ m("帐号密码")
193
+ ]),
194
+ _: 1
195
+ })) : k("", !0)
102
196
  ]),
103
197
  _: 1
198
+ }),
199
+ e(i, {
200
+ prop: "thirdPlatformName",
201
+ label: "第三方登录",
202
+ align: "center",
203
+ "show-overflow-tooltip": ""
204
+ }),
205
+ e(i, {
206
+ prop: "versionCode",
207
+ label: "版本代码",
208
+ align: "center",
209
+ "show-overflow-tooltip": ""
210
+ }),
211
+ e(i, {
212
+ prop: "versionName",
213
+ label: "版本名称",
214
+ align: "center",
215
+ "show-overflow-tooltip": ""
104
216
  })
105
217
  ]),
106
218
  _: 1
107
- }),
108
- k("div", F, [
109
- e(g(S), {
110
- ref_key: "userTable",
111
- ref: o,
112
- "data-url": "/api/user/page",
113
- condition: n.value
114
- }, {
115
- columns: s(() => [
116
- e(t, {
117
- prop: "id",
118
- label: "UID",
119
- width: "80",
120
- align: "center"
121
- }),
122
- e(t, {
123
- prop: "mobile",
124
- label: "手机",
125
- width: "110",
126
- align: "left",
127
- "show-overflow-tooltip": ""
128
- }, {
129
- default: s((p) => [
130
- (a(), v(M, {
131
- "mask-mobile": p.row.mobile,
132
- "user-id": p.row.id,
133
- key: p.row.id
134
- }, null, 8, ["mask-mobile", "user-id"]))
219
+ }, 8, ["condition"])
220
+ ], 64);
221
+ };
222
+ }
223
+ }), N = j("pg-user-core-config-store", () => {
224
+ const a = [];
225
+ return a.push({
226
+ name: "登录历史",
227
+ code: "LOGIN_HISTORY",
228
+ component: Q
229
+ }), {
230
+ userDetailDialogTabs: $(() => a)
231
+ };
232
+ }), L = /* @__PURE__ */ U({
233
+ __name: "UserDetailDialog",
234
+ setup(a, { expose: o }) {
235
+ const { getUserDetail: l } = K(), r = N(), v = h(!1), s = h(), c = h({
236
+ activeName: r.userDetailDialogTabs[0].code,
237
+ tabs: []
238
+ }), u = h(!1);
239
+ function b(y, f) {
240
+ var i;
241
+ u.value = !0, (i = l(y)) == null || i.then((d) => {
242
+ s.value = d.data, u.value = !1, v.value = !0, c.value.tabs.length = 0, c.value.tabs = c.value.tabs.concat(r.userDetailDialogTabs), f && (c.value.tabs = c.value.tabs.concat(f));
243
+ });
244
+ }
245
+ return o({
246
+ show: b
247
+ }), (y, f) => {
248
+ const i = p("el-descriptions-item"), d = p("el-descriptions"), V = p("el-tab-pane"), n = p("el-tabs"), P = p("el-dialog"), R = z("loading");
249
+ return O((_(), w(P, {
250
+ modelValue: v.value,
251
+ "onUpdate:modelValue": f[1] || (f[1] = (D) => v.value = D),
252
+ title: "用户详情",
253
+ width: "1300"
254
+ }, {
255
+ default: t(() => [
256
+ e(d, { border: "" }, {
257
+ default: t(() => [
258
+ e(i, { label: "用户编号" }, {
259
+ default: t(() => [
260
+ m(g(s.value.id), 1)
135
261
  ]),
136
262
  _: 1
137
263
  }),
138
- e(t, {
139
- prop: "username",
140
- label: "用户名",
141
- width: "110",
142
- align: "left",
143
- "show-overflow-tooltip": ""
144
- }),
145
- e(t, {
146
- prop: "nickname",
147
- label: "昵称",
148
- width: "110",
149
- align: "left",
150
- "show-overflow-tooltip": ""
264
+ e(i, { label: "用户昵称" }, {
265
+ default: t(() => [
266
+ m(g(s.value.nickname), 1)
267
+ ]),
268
+ _: 1
151
269
  }),
152
- e(t, {
153
- prop: "inviteCode",
154
- label: "邀请码",
155
- width: "90",
156
- align: "center",
157
- "show-overflow-tooltip": ""
270
+ e(i, { label: "手机号码" }, {
271
+ default: t(() => [
272
+ (_(), w(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
158
279
  }),
159
- e(t, {
160
- prop: "avatar",
161
- label: "头像",
162
- width: "60",
163
- align: "center",
164
- "show-overflow-tooltip": ""
165
- }, {
166
- default: s((p) => [
167
- p.row.avatar ? (a(), v(g(D), {
168
- key: 0,
169
- images: [p.row.avatar]
170
- }, {
171
- default: s(() => [
172
- e(C, {
173
- shape: "square",
174
- fit: "cover",
175
- size: 30,
176
- src: p.row.avatar
177
- }, null, 8, ["src"])
178
- ]),
179
- _: 2
180
- }, 1032, ["images"])) : _("", !0)
280
+ e(i, { label: "邀请编码" }, {
281
+ default: t(() => [
282
+ m(g(s.value.inviteCode), 1)
181
283
  ]),
182
284
  _: 1
183
285
  }),
184
- e(t, {
185
- prop: "parentId",
186
- label: "上级ID",
187
- width: "80",
188
- align: "left",
189
- "show-overflow-tooltip": ""
286
+ e(i, { label: "活动时间" }, {
287
+ default: t(() => [
288
+ m(g(s.value.touchTime), 1)
289
+ ]),
290
+ _: 1
190
291
  }),
191
- e(t, {
192
- prop: "relationPath",
193
- label: "邀请关系",
194
- "min-width": "150",
195
- align: "left",
196
- "show-overflow-tooltip": ""
292
+ e(i, { label: "注册时间" }, {
293
+ default: t(() => [
294
+ m(g(s.value.createdTime), 1)
295
+ ]),
296
+ _: 1
197
297
  }),
198
- e(t, {
199
- prop: "blackUnlockTime",
200
- label: "黑名单解锁",
201
- width: "145",
202
- align: "left",
203
- "show-overflow-tooltip": ""
298
+ e(i, { label: "最后登陆" }, {
299
+ default: t(() => [
300
+ m(g(s.value.lastLoginTime), 1)
301
+ ]),
302
+ _: 1
204
303
  }),
205
- e(t, {
206
- prop: "lastLoginTime",
207
- label: "最后登录时间",
208
- width: "145",
209
- align: "center",
210
- "show-overflow-tooltip": ""
304
+ e(i, { label: "最后更新" }, {
305
+ default: t(() => [
306
+ m(g(s.value.updatedTime), 1)
307
+ ]),
308
+ _: 1
211
309
  }),
212
- e(t, {
213
- prop: "createdTime",
214
- label: "创建时间",
215
- width: "145",
216
- align: "center",
217
- "show-overflow-tooltip": ""
310
+ e(i, { label: "上级用户" }, {
311
+ default: t(() => [
312
+ m(g(s.value.parentId), 1)
313
+ ]),
314
+ _: 1
218
315
  }),
219
- e(t, {
220
- label: "操作",
221
- width: "220",
222
- fixed: "right"
223
- }, {
224
- default: s(() => [
225
- O
316
+ e(i, { label: "邀请关系" }, {
317
+ default: t(() => [
318
+ m(g(s.value.relationPath), 1)
226
319
  ]),
227
320
  _: 1
228
321
  })
229
322
  ]),
230
323
  _: 1
231
- }, 8, ["condition"])
232
- ])
324
+ }),
325
+ e(n, {
326
+ modelValue: c.value.activeName,
327
+ "onUpdate:modelValue": f[0] || (f[0] = (D) => c.value.activeName = D),
328
+ style: { "margin-top": "10px" },
329
+ type: "border-card"
330
+ }, {
331
+ default: t(() => [
332
+ (_(!0), T(I, null, B(c.value.tabs, (D, se) => (_(), w(V, {
333
+ label: D.name,
334
+ name: D.code,
335
+ key: `user_detail_dialog_${D.code}`
336
+ }, {
337
+ default: t(() => [
338
+ (_(), w(F(D.component), {
339
+ userId: s.value.id
340
+ }, null, 8, ["userId"]))
341
+ ]),
342
+ _: 2
343
+ }, 1032, ["label", "name"]))), 128))
344
+ ]),
345
+ _: 1
346
+ }, 8, ["modelValue"])
347
+ ]),
348
+ _: 1
349
+ }, 8, ["modelValue"])), [
350
+ [R, u.value]
233
351
  ]);
234
352
  };
235
353
  }
354
+ }), X = {
355
+ install: (a) => {
356
+ a.component("PgUserDetailDialog", L);
357
+ }
358
+ }, Z = [
359
+ J,
360
+ X
361
+ ], ee = (a) => (A("data-v-391c43be"), a = a(), Y(), a), le = { class: "page-layout" }, te = { style: { "margin-top": "10px" } }, oe = /* @__PURE__ */ ee(() => /* @__PURE__ */ x("template", { "slot-scope": "{row}" }, null, -1)), ae = /* @__PURE__ */ U({
362
+ __name: "list",
363
+ setup(a) {
364
+ const o = h({
365
+ id: null,
366
+ parentId: null,
367
+ phone: null,
368
+ nicekname: null,
369
+ inviteCode: null
370
+ }), l = h(null);
371
+ function r() {
372
+ l.value.search();
373
+ }
374
+ const v = h();
375
+ function s(c) {
376
+ v.value.show(c.id);
377
+ }
378
+ return (c, u) => {
379
+ const b = p("el-input"), y = p("el-button"), f = p("el-space"), i = p("el-card"), d = p("el-table-column"), V = p("el-image");
380
+ return _(), T(I, null, [
381
+ x("div", le, [
382
+ e(i, null, {
383
+ default: t(() => [
384
+ e(f, null, {
385
+ default: t(() => [
386
+ e(b, {
387
+ modelValue: o.value.id,
388
+ "onUpdate:modelValue": u[0] || (u[0] = (n) => o.value.id = n),
389
+ placeholder: "ID",
390
+ style: { width: "100px" },
391
+ clearable: ""
392
+ }, null, 8, ["modelValue"]),
393
+ e(b, {
394
+ modelValue: o.value.parentId,
395
+ "onUpdate:modelValue": u[1] || (u[1] = (n) => o.value.parentId = n),
396
+ placeholder: "父用户ID",
397
+ style: { width: "100px" },
398
+ clearable: ""
399
+ }, null, 8, ["modelValue"]),
400
+ e(b, {
401
+ modelValue: o.value.phone,
402
+ "onUpdate:modelValue": u[2] || (u[2] = (n) => o.value.phone = n),
403
+ placeholder: "手机号",
404
+ style: { width: "120px" },
405
+ clearable: ""
406
+ }, null, 8, ["modelValue"]),
407
+ e(b, {
408
+ modelValue: o.value.nicekname,
409
+ "onUpdate:modelValue": u[3] || (u[3] = (n) => o.value.nicekname = n),
410
+ placeholder: "昵称",
411
+ style: { width: "150px" },
412
+ clearable: ""
413
+ }, null, 8, ["modelValue"]),
414
+ e(b, {
415
+ modelValue: o.value.inviteCode,
416
+ "onUpdate:modelValue": u[4] || (u[4] = (n) => o.value.inviteCode = n),
417
+ placeholder: "邀请码",
418
+ style: { width: "100px" },
419
+ clearable: ""
420
+ }, null, 8, ["modelValue"]),
421
+ e(y, {
422
+ type: "primary",
423
+ icon: "search",
424
+ onClick: r
425
+ }, {
426
+ default: t(() => [
427
+ m("搜索")
428
+ ]),
429
+ _: 1
430
+ })
431
+ ]),
432
+ _: 1
433
+ })
434
+ ]),
435
+ _: 1
436
+ }),
437
+ x("div", te, [
438
+ e(H(G), {
439
+ ref_key: "userTable",
440
+ ref: l,
441
+ "data-url": "/api/user/page",
442
+ condition: o.value,
443
+ onRowDbClick: u[5] || (u[5] = (n) => s(n))
444
+ }, {
445
+ columns: t(() => [
446
+ e(d, {
447
+ prop: "id",
448
+ label: "UID",
449
+ width: "80",
450
+ align: "center"
451
+ }),
452
+ e(d, {
453
+ prop: "mobile",
454
+ label: "手机",
455
+ width: "115",
456
+ align: "left",
457
+ "show-overflow-tooltip": ""
458
+ }, {
459
+ default: t((n) => [
460
+ (_(), w(C, {
461
+ "mask-mobile": n.row.mobile,
462
+ "user-id": n.row.id,
463
+ key: n.row.id
464
+ }, null, 8, ["mask-mobile", "user-id"]))
465
+ ]),
466
+ _: 1
467
+ }),
468
+ e(d, {
469
+ prop: "username",
470
+ label: "用户名",
471
+ width: "110",
472
+ align: "left",
473
+ "show-overflow-tooltip": ""
474
+ }),
475
+ e(d, {
476
+ prop: "nickname",
477
+ label: "昵称",
478
+ width: "110",
479
+ align: "left",
480
+ "show-overflow-tooltip": ""
481
+ }),
482
+ e(d, {
483
+ prop: "inviteCode",
484
+ label: "邀请码",
485
+ width: "90",
486
+ align: "center",
487
+ "show-overflow-tooltip": ""
488
+ }),
489
+ e(d, {
490
+ prop: "avatar",
491
+ label: "头像",
492
+ width: "60",
493
+ align: "center",
494
+ "show-overflow-tooltip": ""
495
+ }, {
496
+ default: t((n) => [
497
+ e(V, {
498
+ fit: "cover",
499
+ size: 30,
500
+ src: n.row.avatar,
501
+ "preview-teleported": "",
502
+ "preview-src-list": [n.row.avatar]
503
+ }, null, 8, ["src", "preview-src-list"])
504
+ ]),
505
+ _: 1
506
+ }),
507
+ e(d, {
508
+ prop: "parentId",
509
+ label: "上级ID",
510
+ width: "80",
511
+ align: "left",
512
+ "show-overflow-tooltip": ""
513
+ }),
514
+ e(d, {
515
+ prop: "relationPath",
516
+ label: "邀请关系",
517
+ "min-width": "150",
518
+ align: "left",
519
+ "show-overflow-tooltip": ""
520
+ }),
521
+ e(d, {
522
+ prop: "blackUnlockTime",
523
+ label: "黑名单解锁",
524
+ width: "145",
525
+ align: "left",
526
+ "show-overflow-tooltip": ""
527
+ }),
528
+ e(d, {
529
+ prop: "lastLoginTime",
530
+ label: "最后登录时间",
531
+ width: "145",
532
+ align: "center",
533
+ "show-overflow-tooltip": ""
534
+ }),
535
+ e(d, {
536
+ prop: "createdTime",
537
+ label: "创建时间",
538
+ width: "145",
539
+ align: "center",
540
+ "show-overflow-tooltip": ""
541
+ }),
542
+ e(d, {
543
+ label: "操作",
544
+ width: "220",
545
+ fixed: "right"
546
+ }, {
547
+ default: t(() => [
548
+ oe
549
+ ]),
550
+ _: 1
551
+ })
552
+ ]),
553
+ _: 1
554
+ }, 8, ["condition"])
555
+ ])
556
+ ]),
557
+ e(L, {
558
+ ref_key: "userDetailDialog",
559
+ ref: v
560
+ }, null, 512)
561
+ ], 64);
562
+ };
563
+ }
236
564
  });
237
- const A = /* @__PURE__ */ y(j, [["__scopeId", "data-v-690b99ee"]]), G = {
238
- install: (l, n = {}) => {
239
- let o = n.router, r = o.getRoutes().find((i) => i.path == "/");
240
- r && r.meta && o.addRoute({
565
+ const ne = /* @__PURE__ */ M(ae, [["__scopeId", "data-v-391c43be"]]), ie = {
566
+ install: (a, o) => {
567
+ let l = o.router, r = l.getRoutes().find((v) => v.path == "/");
568
+ r && r.meta && l.addRoute({
241
569
  path: "/user",
242
570
  name: "User",
243
571
  redirect: "/user/list",
@@ -245,17 +573,23 @@ const A = /* @__PURE__ */ y(j, [["__scopeId", "data-v-690b99ee"]]), G = {
245
573
  children: [{
246
574
  path: "list",
247
575
  name: "UserList",
248
- component: A
576
+ component: ne
249
577
  }]
250
578
  });
251
579
  }
252
- }, H = (l, n = {}) => {
253
- R.forEach((o) => l.use(o)), l.use(G, n);
254
- }, W = {
255
- install: H
580
+ }, re = (a, o) => {
581
+ const l = N();
582
+ if (o.userDetailDialogTabs && o.userDetailDialogTabs.length)
583
+ for (let r of o.userDetailDialogTabs)
584
+ l.userDetailDialogTabs.push(r);
585
+ Z.forEach((r) => a.use(r)), a.use(ie, o);
586
+ }, ce = {
587
+ install: re
256
588
  };
257
589
  export {
258
- E as UserMobileComp,
259
- W as default,
260
- H as install
590
+ X as UserDetailDialog,
591
+ J as UserMobileComp,
592
+ ce as default,
593
+ re as install,
594
+ N as useUserCoreConfigStore
261
595
  };