zsysview 0.0.17 → 0.0.19

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