jmash-core 0.0.40 → 0.0.41

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 (70) hide show
  1. package/dist/{401-CEl3xZ9U.mjs → 401-CJFCHgSZ.mjs} +2 -2
  2. package/dist/{404-BJI4jQGp.mjs → 404-CIMxkP9D.mjs} +1 -1
  3. package/dist/{BarChart-DdL2YjH9.mjs → BarChart-DU09mkLm.mjs} +2 -2
  4. package/dist/{PieChart-DpRLzU_D.mjs → PieChart-CoqFm60I.mjs} +1 -1
  5. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-Db-lqTD8.mjs → PieChart.vue_vue_type_script_setup_true_lang-sfYOFNKO.mjs} +2 -2
  6. package/dist/{RadarChart-2a1QGb0r.mjs → RadarChart-0WISsxpt.mjs} +1 -1
  7. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-CwF9slnO.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BIOHXswr.mjs} +2 -2
  8. package/dist/{el-card-FMIPeWk6.mjs → el-card-DTXS4SWb.mjs} +1 -1
  9. package/dist/{el-col-8K1Xv7aq.mjs → el-col-C1oER81S.mjs} +1 -1
  10. package/dist/{el-form-item-J_27GFln.mjs → el-form-item-CJcAbcqr.mjs} +76 -76
  11. package/dist/{index-BB9i38wB.mjs → index-BAk-5oG9.mjs} +1 -1
  12. package/dist/{index--oHFkGGF.mjs → index-BwIx8FCt.mjs} +32 -32
  13. package/dist/{index-C_arFWKZ.mjs → index-C195Pa7c.mjs} +9759 -11332
  14. package/dist/{index-Ca93omwQ.mjs → index-DB4OW-7Q.mjs} +980 -944
  15. package/dist/{index-BUndPokw.mjs → index-ORr19rEl.mjs} +42 -42
  16. package/dist/index.mjs +36 -36
  17. package/dist/index.vue_vue_type_script_setup_true_lang-fPrQh0lj.mjs +720 -0
  18. package/dist/{picture-BQKPWIIU.mjs → picture-Cpgh-vo-.mjs} +106 -106
  19. package/dist/{position-DZbY0x3r.mjs → position-M0AZIV5D.mjs} +1 -1
  20. package/dist/profile-DBegP-cF.mjs +4904 -0
  21. package/dist/{runAs-DSfasz8M.mjs → runAs-xhA9mf-i.mjs} +1 -1
  22. package/dist/runAs.vue_vue_type_script_setup_true_lang-DLfQ0lsg.mjs +610 -0
  23. package/dist/style.css +1 -1
  24. package/dist/{types-BHZ78WKD.mjs → types-FkPgztcJ.mjs} +4 -3
  25. package/dist/{updatePwd-D2U2rq9Q.mjs → updatePwd-D1EnTbTY.mjs} +1 -1
  26. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-HlhGZun3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DkH3J5K0.mjs} +20 -20
  27. package/dts/src/api/auth/index.d.ts +27 -2
  28. package/dts/src/api/auth/types.d.ts +42 -34
  29. package/dts/src/index.d.ts +2 -3
  30. package/dts/src/lang/package/zh-cn.d.ts +2 -0
  31. package/dts/src/utils/request.d.ts +2 -0
  32. package/package.json +1 -1
  33. package/dist/edit-BEz2CGVA.mjs +0 -4
  34. package/dist/edit-BfCUuHU7.mjs +0 -823
  35. package/dist/edit-BjIGOyRY.mjs +0 -4
  36. package/dist/edit-ByyeESA7.mjs +0 -4
  37. package/dist/edit-DCqdRa7R.mjs +0 -4
  38. package/dist/edit-DaPZ7RSc.mjs +0 -4
  39. package/dist/edit-Mg7mOWDc.mjs +0 -4
  40. package/dist/edit-voW3EO87.mjs +0 -459
  41. package/dist/edit.vue_vue_type_script_setup_true_lang-BCgNC4mY.mjs +0 -136
  42. package/dist/edit.vue_vue_type_script_setup_true_lang-BMYBrnHy.mjs +0 -280
  43. package/dist/edit.vue_vue_type_script_setup_true_lang-C-WS99W7.mjs +0 -157
  44. package/dist/edit.vue_vue_type_script_setup_true_lang-CylQxP9Z.mjs +0 -226
  45. package/dist/edit.vue_vue_type_script_setup_true_lang-DDCQNqdc.mjs +0 -593
  46. package/dist/edit.vue_vue_type_script_setup_true_lang-DyO-f1Lc.mjs +0 -216
  47. package/dist/el-checkbox-group-l0sNRNKZ.mjs +0 -1
  48. package/dist/el-date-picker-CHigi6WN.mjs +0 -3345
  49. package/dist/el-divider-Cg4Mgsu-.mjs +0 -45
  50. package/dist/el-dropdown-item-DHcRJ-Fg.mjs +0 -671
  51. package/dist/el-tree-select-C4cU2Ot7.mjs +0 -1313
  52. package/dist/index-9e59vbzb.mjs +0 -949
  53. package/dist/index-B5IfrzOt.mjs +0 -63
  54. package/dist/index-BcxeqvFF.mjs +0 -505
  55. package/dist/index-BoT8a4D9.mjs +0 -480
  56. package/dist/index-BzsE8aZb.mjs +0 -280
  57. package/dist/index-CKu3Vm7Y.mjs +0 -246
  58. package/dist/index-CPi9CcGt.mjs +0 -134
  59. package/dist/index-CdarTP7Q.mjs +0 -471
  60. package/dist/index-D3kdKwxs.mjs +0 -292
  61. package/dist/index-D7uxePGV.mjs +0 -501
  62. package/dist/index-DSwTLzp1.mjs +0 -74
  63. package/dist/index-Dd9wDjLG.mjs +0 -280
  64. package/dist/index-DdnQhmYX.mjs +0 -502
  65. package/dist/index-DsmvLyNJ.mjs +0 -93
  66. package/dist/index-VD2Oa87u.mjs +0 -280
  67. package/dist/index.vue_vue_type_script_setup_true_lang-BUTwLlja.mjs +0 -55
  68. package/dist/moment-CMYwqyVT.mjs +0 -2579
  69. package/dist/profile-Blgfj6Pw.mjs +0 -262
  70. package/dist/runAs.vue_vue_type_script_setup_true_lang-xOMc-WaC.mjs +0 -114
@@ -1,823 +0,0 @@
1
- import { b5 as u, $ as m, b6 as W, b7 as X, cp as he, cq as ge, bG as ve, as as Ue, at as _e, s as Ie, t as Ve, aM as ke, b1 as we, E as $e, aQ as Ee, al as Ne, a4 as Ce } from "./index-C_arFWKZ.mjs";
2
- import { E as qe } from "./el-tree-select-C4cU2Ot7.mjs";
3
- import { E as De } from "./el-date-picker-CHigi6WN.mjs";
4
- import { E as Re, a as Ae } from "./el-col-8K1Xv7aq.mjs";
5
- import { E as je, a as Je } from "./el-form-item-J_27GFln.mjs";
6
- import { defineComponent as Pe, ref as h, reactive as R, toRef as Te, resolveComponent as G, resolveDirective as Me, openBlock as y, createBlock as g, withCtx as a, createElementVNode as A, createVNode as l, createTextVNode as k, toDisplayString as w, unref as n, createElementBlock as K, Fragment as Q, renderList as H, createCommentVNode as j, withDirectives as Be } from "vue";
7
- import { ElMessage as $, ElMessageBox as Fe } from "element-plus";
8
- import { useI18n as Oe } from "vue-i18n";
9
- import { t as Se } from "./index-CPi9CcGt.mjs";
10
- import { t as Ye } from "./index-B5IfrzOt.mjs";
11
- function pt(r) {
12
- return u({
13
- url: "/v1/rbac/user/page",
14
- method: "get",
15
- params: r
16
- });
17
- }
18
- function mt(r) {
19
- const i = {
20
- tenant: m().user.tenant,
21
- userId: r
22
- };
23
- return u({
24
- url: "/v1/rbac/user/id",
25
- method: "delete",
26
- params: i
27
- });
28
- }
29
- function ct(r) {
30
- const i = {
31
- tenant: m().user.tenant,
32
- userId: r
33
- };
34
- return u({
35
- url: "/v1/rbac/user/batch",
36
- method: "put",
37
- data: i
38
- });
39
- }
40
- function ze(r) {
41
- return u({
42
- url: "/v1/rbac/user",
43
- method: "post",
44
- data: r
45
- });
46
- }
47
- function Le(r) {
48
- return u({
49
- url: "/v1/rbac/user",
50
- method: "patch",
51
- data: r
52
- });
53
- }
54
- function bt(r) {
55
- return u({
56
- url: "/v1/rbac/user/lock",
57
- method: "post",
58
- data: r
59
- });
60
- }
61
- function ft(r) {
62
- return u({
63
- url: "/v1/rbac/user/batch_enable",
64
- method: "put",
65
- data: r
66
- });
67
- }
68
- function yt(r) {
69
- return u({
70
- url: "/v1/rbac/user/enable",
71
- method: "post",
72
- params: {
73
- tenant: m().user.tenant,
74
- userId: r
75
- }
76
- });
77
- }
78
- function ht(r) {
79
- const i = {
80
- tenant: m().user.tenant,
81
- userId: r
82
- };
83
- return u({
84
- url: "/v1/rbac/user/id",
85
- method: "get",
86
- params: i
87
- });
88
- }
89
- function gt(r) {
90
- return u({
91
- url: "/v1/rbac/user/resetpwd",
92
- method: "put",
93
- data: r
94
- });
95
- }
96
- function vt(r) {
97
- r.tenant = m().user.tenant, r.req.tenant = m().user.tenant, W(r);
98
- const i = X.stringify(r, {
99
- arrayFormat: "brackets",
100
- allowDots: !0
101
- });
102
- return u({
103
- url: "/v1/rbac/user/users.xlsx?" + i,
104
- method: "get",
105
- responseType: "blob"
106
- });
107
- }
108
- function Ut(r) {
109
- r.tenant = m().user.tenant, r.req.tenant = m().user.tenant, W(r);
110
- const i = X.stringify(r, {
111
- arrayFormat: "brackets",
112
- allowDots: !0
113
- });
114
- return u({
115
- url: "/v1/rbac/user/users.pdf?" + i,
116
- method: "get",
117
- responseType: "blob"
118
- });
119
- }
120
- function _t() {
121
- return u({
122
- url: "/v1/rbac/user/template.xlsx",
123
- method: "get",
124
- responseType: "blob",
125
- params: {
126
- tenant: m().user.tenant
127
- }
128
- });
129
- }
130
- function It(r) {
131
- return u({
132
- url: "/v1/rbac/user/import",
133
- method: "patch",
134
- data: r
135
- });
136
- }
137
- function Ze(r) {
138
- const i = {
139
- tenant: m().user.tenant,
140
- userId: r
141
- };
142
- return u({
143
- url: "/v1/rbac/opens/list",
144
- method: "get",
145
- params: i
146
- });
147
- }
148
- function Ge(r) {
149
- return u({
150
- url: "/v1/rbac/opens/id",
151
- method: "delete",
152
- params: r
153
- });
154
- }
155
- function Ke(r, i) {
156
- const d = {
157
- tenant: m().user.tenant,
158
- userId: r,
159
- userName: i,
160
- directoryId: "jmash"
161
- };
162
- return u({
163
- url: "/v1/rbac/user/exist",
164
- method: "get",
165
- params: d
166
- });
167
- }
168
- function Qe() {
169
- return u({
170
- url: "/v1/rbac/user/select_directory_id?tenant=" + m().user.tenant,
171
- method: "get"
172
- });
173
- }
174
- function Vt(r) {
175
- return u({
176
- url: "/v1/rbac/user/approved",
177
- method: "post",
178
- data: r
179
- });
180
- }
181
- const He = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { class: "dialog-footer" }, xe = /* @__PURE__ */ Pe({
182
- __name: "edit",
183
- props: {
184
- formData: {
185
- type: Object,
186
- default: () => {
187
- }
188
- },
189
- dialog: {
190
- type: Object,
191
- default: () => {
192
- }
193
- }
194
- },
195
- emits: ["dialogEvent", "refresh"],
196
- setup(r, { emit: i }) {
197
- var Y, z;
198
- const { t: d } = Oe(), J = h(), P = h(), T = h(), M = h(), B = h();
199
- let t = R({
200
- tenant: m().user.tenant,
201
- requestId: Math.random() * 10 + "",
202
- updateMask: "directoryId,loginName,nickName,realName,gender,birthDate,mobilePhone,email,emailApproved,phoneApproved",
203
- directoryId: "",
204
- loginName: "",
205
- nickName: "",
206
- gender: "",
207
- mobilePhone: "",
208
- birthDate: "",
209
- roleIds: [],
210
- email: "",
211
- realName: "",
212
- status: "enabled",
213
- userJobs: [
214
- {
215
- deptId: "",
216
- jobId: ""
217
- }
218
- ]
219
- });
220
- const x = R({
221
- directoryId: [
222
- {
223
- required: !0,
224
- message: d("sysUser.directoryRequired"),
225
- trigger: "change"
226
- }
227
- ],
228
- loginName: [
229
- { required: !0, message: d("sysUser.usernameRequired"), trigger: "blur" }
230
- ],
231
- nickName: [
232
- { required: !0, message: d("sysUser.nicknameRequired"), trigger: "blur" }
233
- ],
234
- mobilePhone: [
235
- {
236
- pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
237
- message: d("sysUser.correctPhone"),
238
- trigger: "blur"
239
- }
240
- ],
241
- email: [
242
- {
243
- pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
244
- message: d("sysUser.correctEmail"),
245
- trigger: "blur"
246
- }
247
- ],
248
- roleIds: [
249
- { required: !0, message: d("sysUser.roleRequired"), trigger: "change" }
250
- ]
251
- }), E = r, N = Te(E, "dialog"), _ = i, C = h(!1), F = h([]), ee = R([
252
- {
253
- label: d("sysUser.type"),
254
- prop: "openType",
255
- isColumn: !0
256
- },
257
- {
258
- label: d("sysUser.nickname"),
259
- prop: "nickName",
260
- isColumn: !0
261
- },
262
- {
263
- label: "OpenId",
264
- prop: "openId",
265
- isColumn: !0
266
- },
267
- {
268
- label: "UnionId",
269
- prop: "unionId",
270
- isColumn: !0
271
- },
272
- {
273
- label: d("common.operate"),
274
- slotName: "operation",
275
- columnType: "slot",
276
- fixed: "right",
277
- isColumn: !0
278
- }
279
- ]);
280
- function te() {
281
- var e;
282
- t.userJobs && t.userJobs.length < 5 && ((e = t.userJobs) == null || e.push({
283
- deptId: "",
284
- jobId: ""
285
- }));
286
- }
287
- function le(e) {
288
- var o;
289
- (o = t.userJobs) == null || o.splice(e, 1);
290
- }
291
- function ae() {
292
- t.pwd = ge(), t.repeatPwd = t.pwd;
293
- }
294
- function re(e) {
295
- t.repeatPwd = e;
296
- }
297
- (Y = E.formData) != null && Y.userId && (t = Object.assign(t, E.formData), ((z = t.userJobs) == null ? void 0 : z.length) === 0 && (t.userJobs = [
298
- {
299
- deptId: "",
300
- jobId: ""
301
- }
302
- ]), t.gender === "unknown" && (t.gender = ""));
303
- const oe = async () => {
304
- var e;
305
- await ((e = J.value) == null ? void 0 : e.validate((o) => {
306
- o && (t.userId ? Le(t).then((p) => {
307
- console.log(p), p.status === 200 && ($({
308
- message: d("common.submitSuccess"),
309
- type: "success"
310
- }), _("dialogEvent", !1), _("refresh", p.status === 200));
311
- }) : ze(t).then((p) => {
312
- console.log(p), p.status === 200 && ($({
313
- message: d("common.submitSuccess"),
314
- type: "success"
315
- }), _("dialogEvent", !1), _("refresh", p.status === 200));
316
- }));
317
- }));
318
- };
319
- function O() {
320
- _("dialogEvent", !1);
321
- }
322
- function q(e, o) {
323
- Ke(t.userId ? t.userId : "", e).then(({ data: p }) => {
324
- p === !0 && $({
325
- message: o + d("sysUser.exists"),
326
- type: "warning"
327
- });
328
- });
329
- }
330
- function se(e) {
331
- Fe.confirm(d("common.confirmUnbind"), d("common.unbind"), {
332
- cancelButtonText: d("common.cancel"),
333
- confirmButtonText: d("common.confirm"),
334
- type: "warning"
335
- }).then(() => {
336
- const o = {
337
- tenant: m().user.tenant,
338
- appId: e.appId,
339
- userId: e.userId,
340
- openId: e.openId
341
- };
342
- Ge(o).then((p) => {
343
- console.log(p), p.status === 200 && ($({
344
- message: d("common.successUnbind"),
345
- type: "success"
346
- }), S());
347
- });
348
- }).catch(() => {
349
- });
350
- }
351
- function ne() {
352
- ve().then(({ data: e }) => {
353
- P.value = e.results;
354
- }), Se().then(({ data: e }) => {
355
- T.value = e.results;
356
- }), Ye().then(({ data: e }) => {
357
- M.value = e.results;
358
- }), Qe().then(({ data: e }) => {
359
- console.log(e), B.value = e.directoryId;
360
- });
361
- }
362
- function S() {
363
- C.value = !0, Ze(t.userId).then(({ data: e }) => {
364
- F.value = e.results, C.value = !1;
365
- });
366
- }
367
- return ne(), S(), (e, o) => {
368
- const p = Ue, de = _e, b = je, c = Re, v = Ie, U = Ae, I = Ve, ue = ke, L = we, ie = De, D = qe, pe = G("Remove"), Z = $e, me = G("CirclePlus"), ce = Je, be = Ee, fe = Ne, ye = Me("hasPerm");
369
- return y(), g(fe, {
370
- title: N.value.title,
371
- modelValue: N.value.visible,
372
- "onUpdate:modelValue": o[15] || (o[15] = (s) => N.value.visible = s),
373
- width: "900px",
374
- onClose: O
375
- }, {
376
- footer: a(() => [
377
- A("div", Xe, [
378
- l(I, { onClick: O }, {
379
- default: a(() => [
380
- k(w(e.$t("common.cancel")), 1)
381
- ]),
382
- _: 1
383
- }),
384
- l(I, {
385
- type: "primary",
386
- onClick: oe
387
- }, {
388
- default: a(() => [
389
- k(w(e.$t("common.confirm")), 1)
390
- ]),
391
- _: 1
392
- })
393
- ])
394
- ]),
395
- default: a(() => [
396
- l(ce, {
397
- ref_key: "userFormRef",
398
- ref: J,
399
- model: n(t),
400
- "label-width": "120px",
401
- rules: x
402
- }, {
403
- default: a(() => [
404
- l(U, null, {
405
- default: a(() => [
406
- l(c, { span: 12 }, {
407
- default: a(() => [
408
- l(b, {
409
- label: e.$t("sysUser.directory"),
410
- prop: "directoryId"
411
- }, {
412
- default: a(() => [
413
- l(de, {
414
- modelValue: n(t).directoryId,
415
- "onUpdate:modelValue": o[0] || (o[0] = (s) => n(t).directoryId = s),
416
- placeholder: e.$t("sysUser.directoryRequired"),
417
- clearable: "",
418
- style: { width: "100%" }
419
- }, {
420
- default: a(() => [
421
- (y(!0), K(Q, null, H(B.value, (s) => (y(), g(p, {
422
- key: s,
423
- label: s,
424
- value: s
425
- }, null, 8, ["label", "value"]))), 128))
426
- ]),
427
- _: 1
428
- }, 8, ["modelValue", "placeholder"])
429
- ]),
430
- _: 1
431
- }, 8, ["label"])
432
- ]),
433
- _: 1
434
- }),
435
- l(c, { span: 12 }, {
436
- default: a(() => [
437
- l(b, {
438
- label: e.$t("sysUser.username"),
439
- prop: "loginName"
440
- }, {
441
- default: a(() => [
442
- l(v, {
443
- modelValue: n(t).loginName,
444
- "onUpdate:modelValue": o[1] || (o[1] = (s) => n(t).loginName = s),
445
- clearable: "",
446
- placeholder: e.$t("sysUser.usernameRequired"),
447
- maxlength: "30",
448
- "show-word-limit": "",
449
- onChange: o[2] || (o[2] = (s) => q(s, e.$t("sysUser.username")))
450
- }, null, 8, ["modelValue", "placeholder"])
451
- ]),
452
- _: 1
453
- }, 8, ["label"])
454
- ]),
455
- _: 1
456
- })
457
- ]),
458
- _: 1
459
- }),
460
- l(U, null, {
461
- default: a(() => [
462
- l(c, { span: 12 }, {
463
- default: a(() => [
464
- l(b, {
465
- label: e.$t("sysUser.nickname"),
466
- prop: "nickName"
467
- }, {
468
- default: a(() => [
469
- l(v, {
470
- modelValue: n(t).nickName,
471
- "onUpdate:modelValue": o[3] || (o[3] = (s) => n(t).nickName = s),
472
- clearable: "",
473
- maxlength: "30",
474
- "show-word-limit": "",
475
- placeholder: e.$t("sysUser.nicknameRequired")
476
- }, null, 8, ["modelValue", "placeholder"])
477
- ]),
478
- _: 1
479
- }, 8, ["label"])
480
- ]),
481
- _: 1
482
- }),
483
- l(c, { span: 12 }, {
484
- default: a(() => [
485
- n(t).userId ? j("", !0) : (y(), g(b, {
486
- key: 0,
487
- label: e.$t("sysUser.password"),
488
- prop: "pwd"
489
- }, {
490
- default: a(() => [
491
- l(v, {
492
- modelValue: n(t).pwd,
493
- "onUpdate:modelValue": o[4] || (o[4] = (s) => n(t).pwd = s),
494
- clearable: "",
495
- placeholder: e.$t("sysUser.passwordRequired"),
496
- onChange: re
497
- }, {
498
- append: a(() => [
499
- l(I, { onClick: ae }, {
500
- default: a(() => [
501
- k(w(e.$t("sysUser.randomPwd")), 1)
502
- ]),
503
- _: 1
504
- })
505
- ]),
506
- _: 1
507
- }, 8, ["modelValue", "placeholder"])
508
- ]),
509
- _: 1
510
- }, 8, ["label"]))
511
- ]),
512
- _: 1
513
- })
514
- ]),
515
- _: 1
516
- }),
517
- l(U, null, {
518
- default: a(() => [
519
- l(c, { span: 12 }, {
520
- default: a(() => [
521
- l(b, {
522
- label: e.$t("sysUser.fullName"),
523
- prop: "realName"
524
- }, {
525
- default: a(() => [
526
- l(v, {
527
- modelValue: n(t).realName,
528
- "onUpdate:modelValue": o[5] || (o[5] = (s) => n(t).realName = s),
529
- clearable: "",
530
- maxlength: "30",
531
- "show-word-limit": "",
532
- placeholder: e.$t("sysUser.fullNameRequired")
533
- }, null, 8, ["modelValue", "placeholder"])
534
- ]),
535
- _: 1
536
- }, 8, ["label"])
537
- ]),
538
- _: 1
539
- }),
540
- l(c, { span: 12 }, {
541
- default: a(() => [
542
- l(b, {
543
- label: e.$t("sysUser.gender"),
544
- prop: "gender"
545
- }, {
546
- default: a(() => [
547
- l(ue, {
548
- modelValue: n(t).gender,
549
- "onUpdate:modelValue": o[6] || (o[6] = (s) => n(t).gender = s),
550
- clearable: !0,
551
- placeholder: e.$t("sysUser.genderRequired"),
552
- "dict-type": "jmash.protobuf.Gender"
553
- }, null, 8, ["modelValue", "placeholder"])
554
- ]),
555
- _: 1
556
- }, 8, ["label"])
557
- ]),
558
- _: 1
559
- })
560
- ]),
561
- _: 1
562
- }),
563
- l(U, null, {
564
- default: a(() => [
565
- l(c, { span: 12 }, {
566
- default: a(() => [
567
- l(b, {
568
- label: e.$t("sysUser.phoneNumber"),
569
- prop: "mobilePhone"
570
- }, {
571
- default: a(() => [
572
- l(v, {
573
- modelValue: n(t).mobilePhone,
574
- "onUpdate:modelValue": o[8] || (o[8] = (s) => n(t).mobilePhone = s),
575
- placeholder: e.$t("sysUser.phoneNumberRequired"),
576
- clearable: "",
577
- onChange: o[9] || (o[9] = (s) => q(s, e.$t("sysUser.phoneNumber")))
578
- }, {
579
- append: a(() => [
580
- l(L, {
581
- modelValue: n(t).phoneApproved,
582
- "onUpdate:modelValue": o[7] || (o[7] = (s) => n(t).phoneApproved = s),
583
- disabled: !n(t).userId,
584
- label: "通过手机号验证"
585
- }, null, 8, ["modelValue", "disabled"])
586
- ]),
587
- _: 1
588
- }, 8, ["modelValue", "placeholder"])
589
- ]),
590
- _: 1
591
- }, 8, ["label"])
592
- ]),
593
- _: 1
594
- }),
595
- l(c, { span: 12 }, {
596
- default: a(() => [
597
- l(b, {
598
- label: e.$t("sysUser.email"),
599
- prop: "email"
600
- }, {
601
- default: a(() => [
602
- l(v, {
603
- modelValue: n(t).email,
604
- "onUpdate:modelValue": o[11] || (o[11] = (s) => n(t).email = s),
605
- placeholder: e.$t("sysUser.emailRequired"),
606
- clearable: "",
607
- maxlength: "30",
608
- "show-word-limit": "",
609
- onChange: o[12] || (o[12] = (s) => q(s, e.$t("sysUser.email")))
610
- }, {
611
- append: a(() => [
612
- l(L, {
613
- modelValue: n(t).emailApproved,
614
- "onUpdate:modelValue": o[10] || (o[10] = (s) => n(t).emailApproved = s),
615
- disabled: !n(t).userId,
616
- label: "通过邮件验证"
617
- }, null, 8, ["modelValue", "disabled"])
618
- ]),
619
- _: 1
620
- }, 8, ["modelValue", "placeholder"])
621
- ]),
622
- _: 1
623
- }, 8, ["label"])
624
- ]),
625
- _: 1
626
- })
627
- ]),
628
- _: 1
629
- }),
630
- l(U, null, {
631
- default: a(() => [
632
- l(c, { span: 12 }, {
633
- default: a(() => [
634
- l(b, {
635
- label: e.$t("sysUser.birthday"),
636
- prop: "birthDate"
637
- }, {
638
- default: a(() => [
639
- l(ie, {
640
- modelValue: n(t).birthDate,
641
- "onUpdate:modelValue": o[13] || (o[13] = (s) => n(t).birthDate = s),
642
- type: "date",
643
- placeholder: e.$t("sysUser.birthdayRequired"),
644
- format: "YYYY-MM-DD",
645
- "value-format": "YYYY-MM-DD",
646
- style: { width: "100%" }
647
- }, null, 8, ["modelValue", "placeholder"])
648
- ]),
649
- _: 1
650
- }, 8, ["label"])
651
- ]),
652
- _: 1
653
- }),
654
- l(c, { span: 12 }, {
655
- default: a(() => [
656
- l(b, {
657
- label: e.$t("sysUser.role"),
658
- prop: "roleIds"
659
- }, {
660
- default: a(() => [
661
- l(D, {
662
- modelValue: n(t).roleIds,
663
- "onUpdate:modelValue": o[14] || (o[14] = (s) => n(t).roleIds = s),
664
- data: P.value,
665
- "render-after-expand": !1,
666
- "show-checkbox": "",
667
- "check-strictly": !0,
668
- multiple: "",
669
- clearable: "",
670
- style: { width: "100%" },
671
- placeholder: e.$t("sysUser.roleRequired")
672
- }, null, 8, ["modelValue", "data", "placeholder"])
673
- ]),
674
- _: 1
675
- }, 8, ["label"])
676
- ]),
677
- _: 1
678
- })
679
- ]),
680
- _: 1
681
- }),
682
- A("div", He, [
683
- (y(!0), K(Q, null, H(n(t).userJobs, (s, f) => (y(), g(U, {
684
- key: f,
685
- style: { width: "100%" }
686
- }, {
687
- default: a(() => [
688
- l(c, { span: 12 }, {
689
- default: a(() => [
690
- l(b, {
691
- label: e.$t("sysUser.department"),
692
- prop: `userJobs.${f}.deptId`
693
- }, {
694
- default: a(() => [
695
- l(D, {
696
- modelValue: n(t).userJobs[f].deptId,
697
- "onUpdate:modelValue": (V) => n(t).userJobs[f].deptId = V,
698
- data: T.value,
699
- "render-after-expand": !1,
700
- filterable: "",
701
- clearable: "",
702
- "check-strictly": "",
703
- placeholder: e.$t("sysUser.departmentRequired"),
704
- style: { width: "100%" }
705
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
706
- ]),
707
- _: 2
708
- }, 1032, ["label", "prop"])
709
- ]),
710
- _: 2
711
- }, 1024),
712
- l(c, { span: 11 }, {
713
- default: a(() => [
714
- l(b, {
715
- label: e.$t("sysUser.position"),
716
- prop: `userJobs.${f}.jobId`
717
- }, {
718
- default: a(() => [
719
- l(D, {
720
- modelValue: n(t).userJobs[f].jobId,
721
- "onUpdate:modelValue": (V) => n(t).userJobs[f].jobId = V,
722
- data: M.value,
723
- "render-after-expand": !1,
724
- filterable: "",
725
- clearable: "",
726
- "check-strictly": "",
727
- placeholder: e.$t("sysUser.positionRequired"),
728
- style: { width: "100%" }
729
- }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
730
- ]),
731
- _: 2
732
- }, 1032, ["label", "prop"])
733
- ]),
734
- _: 2
735
- }, 1024),
736
- f !== 0 ? (y(), g(c, {
737
- key: 0,
738
- span: 1,
739
- class: "position-center"
740
- }, {
741
- default: a(() => [
742
- l(Z, {
743
- size: "16",
744
- onClick: (V) => le(f)
745
- }, {
746
- default: a(() => [
747
- l(pe)
748
- ]),
749
- _: 2
750
- }, 1032, ["onClick"])
751
- ]),
752
- _: 2
753
- }, 1024)) : j("", !0)
754
- ]),
755
- _: 2
756
- }, 1024))), 128)),
757
- A("div", We, [
758
- l(Z, {
759
- size: "16",
760
- onClick: te
761
- }, {
762
- default: a(() => [
763
- l(me)
764
- ]),
765
- _: 1
766
- })
767
- ])
768
- ])
769
- ]),
770
- _: 1
771
- }, 8, ["model", "rules"]),
772
- n(t).userId ? (y(), g(be, {
773
- key: 0,
774
- "list-loading": C.value,
775
- "table-data": F.value,
776
- "table-label": ee,
777
- "is-selection": !1
778
- }, {
779
- operation: a((s) => [
780
- Be((y(), g(I, {
781
- link: "",
782
- size: "small",
783
- type: "primary",
784
- icon: n(he),
785
- onClick: (f) => se(s.data.row)
786
- }, {
787
- default: a(() => [
788
- k(w(e.$t("common.unbind")), 1)
789
- ]),
790
- _: 2
791
- }, 1032, ["icon", "onClick"])), [
792
- [ye, ["rbac:opens:delete"]]
793
- ])
794
- ]),
795
- _: 1
796
- }, 8, ["list-loading", "table-data", "table-label"])) : j("", !0)
797
- ]),
798
- _: 1
799
- }, 8, ["title", "modelValue"]);
800
- };
801
- }
802
- }), et = /* @__PURE__ */ Ce(xe, [["__scopeId", "data-v-0f361491"]]), kt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
803
- __proto__: null,
804
- default: et
805
- }, Symbol.toStringTag, { value: "Module" }));
806
- export {
807
- Qe as a,
808
- ct as b,
809
- ht as c,
810
- mt as d,
811
- Vt as e,
812
- ft as f,
813
- pt as g,
814
- bt as h,
815
- yt as i,
816
- vt as j,
817
- Ut as k,
818
- It as l,
819
- kt as m,
820
- gt as r,
821
- _t as t,
822
- et as u
823
- };