zsysview 0.0.16 → 0.0.18

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 (76) hide show
  1. package/README.md +19 -3
  2. package/dist/backup-BwHGMFM9.js +519 -0
  3. package/dist/breadcrumb.vue_vue_type_script_setup_true_lang-B-s19d7a.js +42 -0
  4. package/dist/change_password-Cvx2fsBt.js +135 -0
  5. package/dist/department-D19P31la.js +410 -0
  6. package/dist/desktop-IlIshTtF.js +9 -0
  7. package/dist/http_api_v1-DFc71lD8.js +2755 -0
  8. package/dist/index-C_d1JnWR.js +49346 -0
  9. package/dist/index.es-BcGc183Q.js +170 -0
  10. package/dist/log-sQxXMuk2.js +163 -0
  11. package/dist/login-CN37wrzM.js +111 -0
  12. package/dist/main-B5GBQKz0.js +292 -0
  13. package/dist/message-Dd0EkBmy.js +26 -0
  14. package/dist/position-DfWT0ovL.js +312 -0
  15. package/dist/role-CNn2CuOU.js +405 -0
  16. package/dist/self-CraGrpq3.js +102 -0
  17. package/dist/sys-BjlP52cg.js +30 -0
  18. package/dist/user-CYvTCZB6.js +651 -0
  19. package/dist/vite.svg +1 -0
  20. package/dist/zsys_delbutton.vue_vue_type_script_setup_true_lang-DTE_uo5w.js +72 -0
  21. package/dist/zsys_eventBus-Dc_JZwH4.js +36 -0
  22. package/dist/zsys_time-DHEMuVgo.js +17 -0
  23. package/dist/zsyslist.vue_vue_type_script_setup_true_lang-CiKZqB0j.js +465 -0
  24. package/dist/zsysview.css +1 -0
  25. package/dist/zsysview.es.js +2 -0
  26. package/package.json +34 -20
  27. package/assets/default_avatar.png +0 -0
  28. package/assets/default_logo.png +0 -0
  29. package/assets/default_logo_40.png +0 -0
  30. package/assets/login_bg.jpg +0 -0
  31. package/components/export/export_dialog.vue +0 -150
  32. package/components/export/export_progress.vue +0 -62
  33. package/components/list/zsyslist.vue +0 -164
  34. package/components/list/zsyslist_content.vue +0 -29
  35. package/components/list/zsyslist_header.vue +0 -62
  36. package/components/message/index.ts +0 -3
  37. package/components/message/message.ts +0 -35
  38. package/components/zsys_delbutton.vue +0 -60
  39. package/core/app.ts +0 -32
  40. package/core/common/common.ts +0 -29
  41. package/core/common/zsys_eventBus.ts +0 -45
  42. package/core/common/zsys_time.ts +0 -26
  43. package/core/httpapi/http_api_return_data.ts +0 -43
  44. package/core/httpapi/http_api_v1.ts +0 -151
  45. package/core/httpapi/http_axios.ts +0 -54
  46. package/core/router copy.ts +0 -148
  47. package/core/router.ts +0 -149
  48. package/core/runtime.ts +0 -14
  49. package/core/user_token.ts +0 -17
  50. package/css/common.css +0 -16
  51. package/css/style.css +0 -79
  52. package/index.ts +0 -0
  53. package/view/app.vue +0 -10
  54. package/view/backup/backup.vue +0 -308
  55. package/view/building.vue +0 -22
  56. package/view/department/department.vue +0 -111
  57. package/view/department/department_edit_dialog.vue +0 -267
  58. package/view/desktop/desktop.vue +0 -11
  59. package/view/log/log.vue +0 -60
  60. package/view/log/log_setting.vue +0 -41
  61. package/view/login.vue +0 -91
  62. package/view/main/breadcrumb.vue +0 -41
  63. package/view/main/main.vue +0 -60
  64. package/view/main/userHeader.vue +0 -73
  65. package/view/main/userMenu.vue +0 -132
  66. package/view/main/userMenuItem.vue +0 -49
  67. package/view/position/position.vue +0 -58
  68. package/view/position/position_edit_dialog.vue +0 -203
  69. package/view/role/role.vue +0 -72
  70. package/view/role/role_edit_dialog.vue +0 -271
  71. package/view/self/change_password.vue +0 -97
  72. package/view/self/self.vue +0 -62
  73. package/view/sys/sys.vue +0 -19
  74. package/view/user/change_user_password_dialog.vue +0 -155
  75. package/view/user/user.vue +0 -110
  76. package/view/user/user_edit_dialog.vue +0 -283
@@ -0,0 +1,651 @@
1
+ import { defineComponent as K, ref as x, watch as A, reactive as F, resolveComponent as n, resolveDirective as G, createBlock as k, openBlock as _, withCtx as o, withDirectives as Y, withModifiers as J, createVNode as t, createCommentVNode as D, createElementBlock as N, Fragment as j, renderList as W, createElementVNode as O, toDisplayString as H, createTextVNode as p, computed as se, unref as ie } from "vue";
2
+ import { _ as ue } from "./breadcrumb.vue_vue_type_script_setup_true_lang-B-s19d7a.js";
3
+ import { _ as re } from "./zsyslist.vue_vue_type_script_setup_true_lang-CiKZqB0j.js";
4
+ import { H as V } from "./http_api_v1-DFc71lD8.js";
5
+ import { Z as E } from "./message-Dd0EkBmy.js";
6
+ import { m as X, w as ee } from "./index-C_d1JnWR.js";
7
+ import { z as de } from "./zsys_eventBus-Dc_JZwH4.js";
8
+ import { h as le } from "./index.es-BcGc183Q.js";
9
+ import { _ as me } from "./zsys_delbutton.vue_vue_type_script_setup_true_lang-DTE_uo5w.js";
10
+ import { f as pe } from "./zsys_time-DHEMuVgo.js";
11
+ const _e = { style: { float: "left" } }, fe = {
12
+ key: 0,
13
+ style: { float: "right", color: "var(--el-text-color-secondary)", "font-size": "13px" }
14
+ }, ce = { style: { display: "flex", "justify-content": "right" } }, ve = /* @__PURE__ */ K({
15
+ __name: "user_edit_dialog",
16
+ props: {
17
+ modelValue: { type: Boolean, required: !0 },
18
+ // 控制显示隐藏
19
+ id: { type: BigInt, required: !0 }
20
+ },
21
+ emits: ["update:modelValue"],
22
+ setup(q, { emit: I }) {
23
+ const U = de(), d = x(null), v = q, g = I, a = x(!1);
24
+ A(
25
+ () => v.modelValue,
26
+ (i) => {
27
+ a.value = i;
28
+ },
29
+ { immediate: !0 }
30
+ ), A(a, (i) => {
31
+ g("update:modelValue", i);
32
+ });
33
+ const R = () => {
34
+ s.isnew = v.id == 0n, L();
35
+ }, b = () => {
36
+ a.value = !1;
37
+ }, f = (i) => {
38
+ h.value?.clearValidate(), i();
39
+ }, s = F({
40
+ loading: !0,
41
+ saving: !1,
42
+ donotClose: !1,
43
+ isnew: !0
44
+ });
45
+ v.id == 0n && (s.isnew = !0);
46
+ const S = async () => {
47
+ let i = [], l = await V.Post(V.url_sysrole_list, { page_size: 999, page_index: 1 });
48
+ if (l.IsSuccess) {
49
+ let m = l.data;
50
+ for (let y = 0; y < m.listdata.length; y++) {
51
+ let c = m.listdata[y];
52
+ i.push({ value: c.role_id.toString(), label: c.role_name, enable: c.role_enable });
53
+ }
54
+ return i;
55
+ }
56
+ return [];
57
+ }, C = x([]), h = x(), e = x({
58
+ uid: v.id,
59
+ uname: "",
60
+ username: "",
61
+ password: "",
62
+ is_enable: !0,
63
+ role_value: []
64
+ }), $ = F({
65
+ uname: [
66
+ { required: !0, message: "请输入姓名", trigger: "blur" }
67
+ ]
68
+ }), L = async () => {
69
+ if (s.loading = !0, C.value = await S(), e.value.uid = v.id, v.id != 0n) {
70
+ s.donotClose = !1;
71
+ try {
72
+ let i = await V.Post(V.url_user_detail, { id: v.id });
73
+ if (i.IsSuccess) {
74
+ let l = i.data;
75
+ e.value.uid = l.uid, e.value.uname = l.uname, e.value.username = l.username, e.value.is_enable = l.user_enable == 1;
76
+ let m = [];
77
+ for (const y of l.role_ids)
78
+ for (let c of C.value)
79
+ if (c.value == y.toString()) {
80
+ m.push(y.toString());
81
+ break;
82
+ }
83
+ e.value.role_value = m;
84
+ }
85
+ } catch (i) {
86
+ console.log(i);
87
+ } finally {
88
+ }
89
+ }
90
+ s.loading = !1;
91
+ }, w = async () => {
92
+ let i = [];
93
+ for (const m of e.value.role_value)
94
+ i.push(BigInt(m));
95
+ let l = {
96
+ uid: e.value.uid,
97
+ username: e.value.username,
98
+ password: e.value.uid == 0n ? le.hashStr(e.value.password) : "",
99
+ uname: e.value.uname,
100
+ user_enable: e.value.is_enable ? 1 : 0,
101
+ role_ids: i
102
+ };
103
+ return await V.Post(V.url_user_save, l);
104
+ }, u = (i) => {
105
+ i && i.validate(async (l) => {
106
+ if (l) {
107
+ s.saving = !0;
108
+ try {
109
+ let m = await w();
110
+ m.IsSuccess ? (s.donotClose ? (e.value.uid = 0n, setTimeout(() => {
111
+ B();
112
+ }, 200)) : b(), E.ShowSuccess("保存成功"), U.emit("aud", { module: "user", id: e.value.uid })) : E.ShowError(m.message);
113
+ } catch {
114
+ } finally {
115
+ s.saving = !1;
116
+ }
117
+ }
118
+ });
119
+ }, B = () => {
120
+ d.value?.focus(), d.value?.select();
121
+ }, P = X();
122
+ return ee(P.alt_s, () => {
123
+ a.value && (console.log("Alt+S提交"), u(h.value));
124
+ }), (i, l) => {
125
+ const m = n("el-input"), y = n("el-switch"), c = n("el-form-item"), T = n("el-option"), M = n("el-select"), z = n("el-form"), te = n("el-checkbox"), Q = n("el-tooltip"), oe = n("el-text"), Z = n("el-button"), ae = n("el-dialog"), ne = G("loading");
126
+ return _(), k(ae, {
127
+ modelValue: a.value,
128
+ "onUpdate:modelValue": l[8] || (l[8] = (r) => a.value = r),
129
+ title: "用户",
130
+ "align-center": !0,
131
+ "before-close": f,
132
+ onOpen: R,
133
+ width: "550",
134
+ draggable: !0,
135
+ overflow: !0,
136
+ onOpened: B,
137
+ "destroy-on-close": "",
138
+ "close-on-click-modal": !1
139
+ }, {
140
+ footer: o(() => [
141
+ O("div", ce, [
142
+ s.isnew ? (_(), k(Q, {
143
+ key: 0,
144
+ content: "保存成功后不关闭窗口"
145
+ }, {
146
+ default: o(() => [
147
+ t(te, {
148
+ modelValue: s.donotClose,
149
+ "onUpdate:modelValue": l[6] || (l[6] = (r) => s.donotClose = r),
150
+ label: "连续录入",
151
+ style: { "margin-right": "10px" }
152
+ }, null, 8, ["modelValue"])
153
+ ]),
154
+ _: 1
155
+ })) : D("", !0),
156
+ t(Q, {
157
+ content: "快捷键 Alt+S",
158
+ "show-after": 800
159
+ }, {
160
+ default: o(() => [
161
+ t(Z, {
162
+ type: "primary",
163
+ onClick: l[7] || (l[7] = (r) => u(h.value)),
164
+ disabled: s.loading,
165
+ loading: s.saving
166
+ }, {
167
+ default: o(() => [
168
+ l[10] || (l[10] = p("保存(", -1)),
169
+ t(oe, {
170
+ tag: "ins",
171
+ style: { color: "white" }
172
+ }, {
173
+ default: o(() => [...l[9] || (l[9] = [
174
+ p("S", -1)
175
+ ])]),
176
+ _: 1
177
+ }),
178
+ l[11] || (l[11] = p(")", -1))
179
+ ]),
180
+ _: 1
181
+ }, 8, ["disabled", "loading"])
182
+ ]),
183
+ _: 1
184
+ }),
185
+ t(Z, { onClick: b }, {
186
+ default: o(() => [...l[12] || (l[12] = [
187
+ p("取消", -1)
188
+ ])]),
189
+ _: 1
190
+ })
191
+ ])
192
+ ]),
193
+ default: o(() => [
194
+ Y((_(), k(z, {
195
+ onSubmit: l[5] || (l[5] = J(() => {
196
+ }, ["prevent"])),
197
+ ref_key: "ruleFormRef",
198
+ ref: h,
199
+ model: e.value,
200
+ rules: $,
201
+ style: { "padding-left": "10px", "padding-right": "10px" },
202
+ "label-width": "auto",
203
+ disabled: s.saving
204
+ }, {
205
+ default: o(() => [
206
+ t(c, {
207
+ label: "姓名",
208
+ prop: "uname"
209
+ }, {
210
+ default: o(() => [
211
+ t(m, {
212
+ ref_key: "inputRef",
213
+ ref: d,
214
+ modelValue: e.value.uname,
215
+ "onUpdate:modelValue": l[0] || (l[0] = (r) => e.value.uname = r),
216
+ style: { width: "300px" }
217
+ }, null, 8, ["modelValue"]),
218
+ t(y, {
219
+ modelValue: e.value.is_enable,
220
+ "onUpdate:modelValue": l[1] || (l[1] = (r) => e.value.is_enable = r),
221
+ "inline-prompt": "",
222
+ "active-text": "已启用",
223
+ "inactive-text": "已禁用",
224
+ style: { "margin-left": "10px" }
225
+ }, null, 8, ["modelValue"])
226
+ ]),
227
+ _: 1
228
+ }),
229
+ t(c, {
230
+ label: "用户名",
231
+ prop: "username"
232
+ }, {
233
+ default: o(() => [
234
+ t(m, {
235
+ modelValue: e.value.username,
236
+ "onUpdate:modelValue": l[2] || (l[2] = (r) => e.value.username = r),
237
+ style: { width: "300px" }
238
+ }, null, 8, ["modelValue"])
239
+ ]),
240
+ _: 1
241
+ }),
242
+ e.value.uid == 0n ? (_(), k(c, {
243
+ key: 0,
244
+ label: "初始密码",
245
+ prop: "password"
246
+ }, {
247
+ default: o(() => [
248
+ t(m, {
249
+ modelValue: e.value.password,
250
+ "onUpdate:modelValue": l[3] || (l[3] = (r) => e.value.password = r),
251
+ style: { width: "300px" }
252
+ }, null, 8, ["modelValue"])
253
+ ]),
254
+ _: 1
255
+ })) : D("", !0),
256
+ t(c, {
257
+ label: "角色权限",
258
+ prop: "role_title"
259
+ }, {
260
+ default: o(() => [
261
+ t(M, {
262
+ multiple: "",
263
+ modelValue: e.value.role_value,
264
+ "onUpdate:modelValue": l[4] || (l[4] = (r) => e.value.role_value = r),
265
+ placeholder: "未选择",
266
+ clearable: ""
267
+ }, {
268
+ default: o(() => [
269
+ (_(!0), N(j, null, W(C.value, (r) => (_(), k(T, {
270
+ key: r.value,
271
+ label: r.label,
272
+ value: r.value
273
+ }, {
274
+ default: o(() => [
275
+ O("span", _e, H(r.label), 1),
276
+ r.enable ? D("", !0) : (_(), N("span", fe, " 禁用不生效 "))
277
+ ]),
278
+ _: 2
279
+ }, 1032, ["label", "value"]))), 128))
280
+ ]),
281
+ _: 1
282
+ }, 8, ["modelValue"])
283
+ ]),
284
+ _: 1
285
+ })
286
+ ]),
287
+ _: 1
288
+ }, 8, ["model", "rules", "disabled"])), [
289
+ [ne, s.loading]
290
+ ])
291
+ ]),
292
+ _: 1
293
+ }, 8, ["modelValue"]);
294
+ };
295
+ }
296
+ }), ge = { style: { display: "flex", "justify-content": "right" } }, be = /* @__PURE__ */ K({
297
+ __name: "change_user_password_dialog",
298
+ props: {
299
+ modelValue: { type: Boolean, required: !0 },
300
+ // 控制显示隐藏
301
+ id: { type: BigInt, required: !0 }
302
+ },
303
+ emits: ["update:modelValue"],
304
+ setup(q, { emit: I }) {
305
+ const U = x(null), d = q, v = I, g = x(!1);
306
+ A(
307
+ () => d.modelValue,
308
+ (w) => {
309
+ g.value = w;
310
+ },
311
+ { immediate: !0 }
312
+ ), A(g, (w) => {
313
+ v("update:modelValue", w);
314
+ });
315
+ const a = () => {
316
+ }, R = () => {
317
+ g.value = !1;
318
+ }, b = (w) => {
319
+ s.value?.clearValidate(), w();
320
+ }, f = F({
321
+ loading: !1,
322
+ saving: !1
323
+ }), s = x(), S = x({
324
+ uid: d.id,
325
+ new_p: ""
326
+ }), C = F({
327
+ new_p: [
328
+ { required: !0, message: "请输入新密码", trigger: "blur" }
329
+ ]
330
+ }), h = async () => await V.Post(V.url_user_change_pwd, { uid: S.value.uid, new_p: le.hashStr(S.value.new_p) }), e = (w) => {
331
+ w && w.validate(async (u) => {
332
+ if (u) {
333
+ f.saving = !0;
334
+ try {
335
+ let B = await h();
336
+ B.IsSuccess ? (R(), E.ShowSuccess("修改成功")) : E.ShowError(B.message);
337
+ } catch {
338
+ } finally {
339
+ f.saving = !1;
340
+ }
341
+ }
342
+ });
343
+ }, $ = () => {
344
+ U.value?.focus(), U.value?.select();
345
+ }, L = X();
346
+ return ee(L.alt_s, () => {
347
+ g.value && (console.log("Alt+S提交"), e(s.value));
348
+ }), (w, u) => {
349
+ const B = n("el-alert"), P = n("el-input"), i = n("el-form-item"), l = n("el-form"), m = n("el-text"), y = n("el-button"), c = n("el-tooltip"), T = n("el-dialog"), M = G("loading");
350
+ return _(), k(T, {
351
+ modelValue: g.value,
352
+ "onUpdate:modelValue": u[3] || (u[3] = (z) => g.value = z),
353
+ title: "修改密码",
354
+ "align-center": !0,
355
+ "before-close": b,
356
+ width: "450",
357
+ draggable: !0,
358
+ overflow: !0,
359
+ onOpen: a,
360
+ onOpened: $,
361
+ "destroy-on-close": "",
362
+ "close-on-click-modal": !1
363
+ }, {
364
+ footer: o(() => [
365
+ O("div", ge, [
366
+ t(c, {
367
+ content: "快捷键 Alt+S",
368
+ "show-after": 800
369
+ }, {
370
+ default: o(() => [
371
+ t(y, {
372
+ type: "primary",
373
+ onClick: u[2] || (u[2] = (z) => e(s.value)),
374
+ disabled: f.loading,
375
+ loading: f.saving
376
+ }, {
377
+ default: o(() => [
378
+ u[5] || (u[5] = p("确认修改(", -1)),
379
+ t(m, {
380
+ tag: "ins",
381
+ style: { color: "white" }
382
+ }, {
383
+ default: o(() => [...u[4] || (u[4] = [
384
+ p("S", -1)
385
+ ])]),
386
+ _: 1
387
+ }),
388
+ u[6] || (u[6] = p(")", -1))
389
+ ]),
390
+ _: 1
391
+ }, 8, ["disabled", "loading"])
392
+ ]),
393
+ _: 1
394
+ }),
395
+ t(y, { onClick: R }, {
396
+ default: o(() => [...u[7] || (u[7] = [
397
+ p("取消", -1)
398
+ ])]),
399
+ _: 1
400
+ })
401
+ ])
402
+ ]),
403
+ default: o(() => [
404
+ t(B, {
405
+ title: "请为这个账号输入一个新密码",
406
+ type: "info",
407
+ "show-icon": "",
408
+ closable: !1
409
+ }),
410
+ Y((_(), k(l, {
411
+ onSubmit: u[1] || (u[1] = J(() => {
412
+ }, ["prevent"])),
413
+ ref_key: "ruleFormRef",
414
+ ref: s,
415
+ model: S.value,
416
+ rules: C,
417
+ style: { "padding-left": "10px", "padding-right": "10px", "margin-top": "10px" },
418
+ "label-width": "auto",
419
+ disabled: f.saving
420
+ }, {
421
+ default: o(() => [
422
+ t(i, {
423
+ label: "新密码",
424
+ prop: "new_p"
425
+ }, {
426
+ default: o(() => [
427
+ t(P, {
428
+ ref_key: "inputRef",
429
+ ref: U,
430
+ modelValue: S.value.new_p,
431
+ "onUpdate:modelValue": u[0] || (u[0] = (z) => S.value.new_p = z),
432
+ style: { width: "300px" }
433
+ }, null, 8, ["modelValue"])
434
+ ]),
435
+ _: 1
436
+ })
437
+ ]),
438
+ _: 1
439
+ }, 8, ["model", "rules", "disabled"])), [
440
+ [M, f.loading]
441
+ ])
442
+ ]),
443
+ _: 1
444
+ }, 8, ["modelValue"]);
445
+ };
446
+ }
447
+ }), we = { style: { padding: "0px 20px" } }, Ie = /* @__PURE__ */ K({
448
+ __name: "user",
449
+ setup(q) {
450
+ const I = x("userList"), U = F({
451
+ ApiUrl: V.url_user_list,
452
+ KeywordTip: "姓名、用户名",
453
+ QuickConditionsGroups: [
454
+ {
455
+ Label: "状态:",
456
+ Select: 0,
457
+ QuickConditions: [
458
+ { label: "全部", column: null },
459
+ { label: "正常", column: "user_enable", condition: "=", value: 1 },
460
+ { label: "已禁用", column: "user_enable", condition: "=", value: 0 }
461
+ ]
462
+ }
463
+ ],
464
+ ExportUrl: V.url_user_export
465
+ // ExportColumn:[
466
+ // {ColumnTitle:'姓名',ColumnName:'uname'},
467
+ // {ColumnTitle:'用户名',ColumnName:'username'},
468
+ // {ColumnTitle:'状态',ColumnName:'user_enable'},
469
+ // {ColumnTitle:'最后登录时间',ColumnName:'last_login_time'},
470
+ // {ColumnTitle:'角色',ColumnName:'role_titles'},
471
+ // ]
472
+ }), d = F({
473
+ edit_id: BigInt(0),
474
+ edit_dialog_show: !1,
475
+ change_pwd_dialog_show: !1
476
+ }), v = se(() => (g) => pe(g));
477
+ return (g, a) => {
478
+ const R = n("el-button"), b = n("el-table-column"), f = n("el-tag"), s = n("el-link"), S = n("el-space"), C = n("el-tab-pane"), h = n("el-tabs");
479
+ return _(), N(j, null, [
480
+ t(ue),
481
+ O("div", we, [
482
+ t(h, {
483
+ modelValue: I.value,
484
+ "onUpdate:modelValue": a[1] || (a[1] = (e) => I.value = e)
485
+ }, {
486
+ default: o(() => [
487
+ t(C, {
488
+ label: "全部用户",
489
+ name: "userList"
490
+ }, {
491
+ default: o(() => [
492
+ t(re, {
493
+ config: U,
494
+ module: "user"
495
+ }, {
496
+ headermain: o(() => [
497
+ t(R, {
498
+ class: "main_btn",
499
+ type: "primary",
500
+ onClick: a[0] || (a[0] = (e) => {
501
+ d.edit_id = 0n, d.edit_dialog_show = !0;
502
+ })
503
+ }, {
504
+ default: o(() => [...a[4] || (a[4] = [
505
+ p("新建", -1)
506
+ ])]),
507
+ _: 1
508
+ })
509
+ ]),
510
+ content: o(() => [
511
+ t(b, {
512
+ prop: "uname",
513
+ label: "姓名",
514
+ width: "100"
515
+ }),
516
+ t(b, {
517
+ prop: "enable",
518
+ label: "状态",
519
+ width: "70"
520
+ }, {
521
+ default: o(({ row: e }) => [
522
+ e.user_enable == 1 ? (_(), k(f, {
523
+ key: 0,
524
+ type: "success",
525
+ "disable-transitions": !0,
526
+ size: "small"
527
+ }, {
528
+ default: o(() => [...a[5] || (a[5] = [
529
+ p("正常", -1)
530
+ ])]),
531
+ _: 1
532
+ })) : D("", !0),
533
+ e.user_enable == 0 ? (_(), k(f, {
534
+ key: 1,
535
+ type: "info",
536
+ "disable-transitions": !0,
537
+ size: "small"
538
+ }, {
539
+ default: o(() => [...a[6] || (a[6] = [
540
+ p("禁用", -1)
541
+ ])]),
542
+ _: 1
543
+ })) : D("", !0)
544
+ ]),
545
+ _: 1
546
+ }),
547
+ t(b, {
548
+ prop: "username",
549
+ label: "用户名",
550
+ width: "100"
551
+ }),
552
+ t(b, {
553
+ label: "角色",
554
+ "min-width": "240"
555
+ }, {
556
+ default: o(({ row: e }) => [
557
+ e.role_titles != "" ? (_(!0), N(j, { key: 0 }, W(e.role_titles.split(","), ($) => (_(), k(f, {
558
+ style: { "margin-right": "2px" },
559
+ "disable-transitions": !0,
560
+ size: "small"
561
+ }, {
562
+ default: o(() => [
563
+ p(H($), 1)
564
+ ]),
565
+ _: 2
566
+ }, 1024))), 256)) : D("", !0)
567
+ ]),
568
+ _: 1
569
+ }),
570
+ t(b, {
571
+ label: "最后登录时间",
572
+ prop: "last_login_time",
573
+ width: "180"
574
+ }, {
575
+ default: o(({ row: e }) => [
576
+ p(H(v.value(e.last_login_time)), 1)
577
+ ]),
578
+ _: 1
579
+ }),
580
+ t(b, {
581
+ fixed: "right",
582
+ label: "操作",
583
+ width: "180"
584
+ }, {
585
+ default: o(({ row: e }) => [
586
+ t(S, null, {
587
+ default: o(() => [
588
+ t(s, {
589
+ type: "primary",
590
+ onClick: ($) => {
591
+ d.edit_id = BigInt(e.uid), d.edit_dialog_show = !0;
592
+ }
593
+ }, {
594
+ default: o(() => [...a[7] || (a[7] = [
595
+ p("查看和编辑", -1)
596
+ ])]),
597
+ _: 1
598
+ }, 8, ["onClick"]),
599
+ t(s, {
600
+ type: "primary",
601
+ onClick: ($) => {
602
+ d.edit_id = BigInt(e.uid), d.change_pwd_dialog_show = !0;
603
+ }
604
+ }, {
605
+ default: o(() => [...a[8] || (a[8] = [
606
+ p("改密码", -1)
607
+ ])]),
608
+ _: 1
609
+ }, 8, ["onClick"]),
610
+ t(me, {
611
+ id: BigInt(e.uid),
612
+ api_url: ie(V).url_user_del,
613
+ module: "user"
614
+ }, null, 8, ["id", "api_url"])
615
+ ]),
616
+ _: 2
617
+ }, 1024)
618
+ ]),
619
+ _: 1
620
+ })
621
+ ]),
622
+ _: 1
623
+ }, 8, ["config"])
624
+ ]),
625
+ _: 1
626
+ }),
627
+ t(C, {
628
+ label: "设置",
629
+ name: "second"
630
+ })
631
+ ]),
632
+ _: 1
633
+ }, 8, ["modelValue"])
634
+ ]),
635
+ t(ve, {
636
+ id: d.edit_id,
637
+ modelValue: d.edit_dialog_show,
638
+ "onUpdate:modelValue": a[2] || (a[2] = (e) => d.edit_dialog_show = e)
639
+ }, null, 8, ["id", "modelValue"]),
640
+ t(be, {
641
+ id: d.edit_id,
642
+ modelValue: d.change_pwd_dialog_show,
643
+ "onUpdate:modelValue": a[3] || (a[3] = (e) => d.change_pwd_dialog_show = e)
644
+ }, null, 8, ["id", "modelValue"])
645
+ ], 64);
646
+ };
647
+ }
648
+ });
649
+ export {
650
+ Ie as default
651
+ };
package/dist/vite.svg ADDED
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" aria-hidden="true" role="img" class="iconify iconify--logos" width="31.88" height="32" preserveAspectRatio="xMidYMid meet" viewBox="0 0 256 257"><defs><linearGradient id="IconifyId1813088fe1fbc01fb466" x1="-.828%" x2="57.636%" y1="7.652%" y2="78.411%"><stop offset="0%" stop-color="#41D1FF"></stop><stop offset="100%" stop-color="#BD34FE"></stop></linearGradient><linearGradient id="IconifyId1813088fe1fbc01fb467" x1="43.376%" x2="50.316%" y1="2.242%" y2="89.03%"><stop offset="0%" stop-color="#FFEA83"></stop><stop offset="8.333%" stop-color="#FFDD35"></stop><stop offset="100%" stop-color="#FFA800"></stop></linearGradient></defs><path fill="url(#IconifyId1813088fe1fbc01fb466)" d="M255.153 37.938L134.897 252.976c-2.483 4.44-8.862 4.466-11.382.048L.875 37.958c-2.746-4.814 1.371-10.646 6.827-9.67l120.385 21.517a6.537 6.537 0 0 0 2.322-.004l117.867-21.483c5.438-.991 9.574 4.796 6.877 9.62Z"></path><path fill="url(#IconifyId1813088fe1fbc01fb467)" d="M185.432.063L96.44 17.501a3.268 3.268 0 0 0-2.634 3.014l-5.474 92.456a3.268 3.268 0 0 0 3.997 3.378l24.777-5.718c2.318-.535 4.413 1.507 3.936 3.838l-7.361 36.047c-.495 2.426 1.782 4.5 4.151 3.78l15.304-4.649c2.372-.72 4.652 1.36 4.15 3.788l-11.698 56.621c-.732 3.542 3.979 5.473 5.943 2.437l1.313-2.028l72.516-144.72c1.215-2.423-.88-5.186-3.54-4.672l-25.505 4.922c-2.396.462-4.435-1.77-3.759-4.114l16.646-57.705c.677-2.35-1.37-4.583-3.769-4.113Z"></path></svg>