@witlink/usercenter 1.2.22 → 1.2.24

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.
@@ -1,1107 +0,0 @@
1
- import { defineComponent as T, ref as b, computed as V, openBlock as f, createBlock as R, withCtx as o, renderSlot as Q, createElementVNode as E, normalizeClass as ee, createElementBlock as I, watch as ae, onMounted as K, createVNode as t, Fragment as j, renderList as oe, createTextVNode as k, toDisplayString as z, reactive as F, createCommentVNode as $, mergeProps as te, resolveComponent as x, withDirectives as _e, unref as ye, vShow as fe } from "vue";
2
- import { d as ve, Q as be, _ as D, R as he, U as le, V as re, W as we, z as O, X as H, Y as Ce, Z as Ae, p as ne, q as se, K as ue, L as de, F as ie, S as Ne, B as ke, $ as me, h as Ie, G as Pe, a0 as ze, H as Ue, a1 as $e, a2 as Re, a3 as qe } from "./index.6bf835b9.mjs";
3
- import { useI18n as W } from "vue-i18n";
4
- import { _ as Se } from "./index.52fe71f6.mjs";
5
- import { message as Te } from "ant-design-vue";
6
- import './assets/index.b965b94b.css';const De = /* @__PURE__ */ T({
7
- __name: "index",
8
- props: {
9
- className: {
10
- type: [String, Object, Array],
11
- default: void 0
12
- }
13
- },
14
- setup(n) {
15
- const m = ve(), r = n, g = b(!1), c = V(() => m.userLanguage), u = V(() => c.value === "en_US"), v = V(() => {
16
- let e = "ctrl-wrapper";
17
- return typeof r.className == "string" || Array.isArray(r.className) ? e = ["ctrl-wrapper"].concat(r.className) : typeof r.className == "object" && (e = {
18
- "ctrl-wrapper": !0,
19
- ...r.className
20
- }), e;
21
- }), _ = () => {
22
- g.value = !1;
23
- };
24
- return (e, i) => {
25
- const N = be;
26
- return u.value ? (f(), R(N, {
27
- key: 0,
28
- open: g.value,
29
- "onUpdate:open": i[0] || (i[0] = (h) => g.value = h)
30
- }, {
31
- title: o(() => [
32
- Q(e.$slots, "title", {}, void 0, !0)
33
- ]),
34
- default: o(() => [
35
- E("div", {
36
- onFocusin: _,
37
- class: ee(v.value)
38
- }, [
39
- Q(e.$slots, "default", {}, void 0, !0)
40
- ], 34)
41
- ]),
42
- _: 3
43
- }, 8, ["open"])) : (f(), I("div", {
44
- key: 1,
45
- class: ee(v.value)
46
- }, [
47
- Q(e.$slots, "default", {}, void 0, !0)
48
- ], 2));
49
- };
50
- }
51
- });
52
- const Z = /* @__PURE__ */ D(De, [["__scopeId", "data-v-ce85d961"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/components/PlaceholderTip/index.vue"]]), Oe = /* @__PURE__ */ T({
53
- __name: "TimeZone",
54
- props: {
55
- mode: {
56
- type: String,
57
- default: "default"
58
- },
59
- value: {
60
- type: Array,
61
- default: null
62
- },
63
- placeholder: {
64
- type: String,
65
- default: ""
66
- },
67
- disabled: {
68
- type: Boolean,
69
- default: !1
70
- }
71
- },
72
- emits: ["change", "updata:value"],
73
- setup(n, { emit: m }) {
74
- const r = m, g = n, c = b([]), u = b([]), v = (e) => {
75
- typeof e == "string" ? (r("change", [e]), r("updata:value", [e])) : (r("change", e), r("updata:value", e));
76
- }, _ = async () => {
77
- const { result: e } = await he({});
78
- c.value = e;
79
- };
80
- return ae(
81
- () => g.value,
82
- (e) => {
83
- e && e[0] && (u.value = e);
84
- }
85
- ), K(() => {
86
- _();
87
- }), (e, i) => {
88
- const N = le, h = re;
89
- return f(), I("div", null, [
90
- t(h, {
91
- style: { width: "100%" },
92
- value: u.value,
93
- "onUpdate:value": i[0] || (i[0] = (w) => u.value = w),
94
- placeholder: n.placeholder ? n.placeholder : e.$t("zone.pbl_select"),
95
- mode: n.mode,
96
- disabled: n.disabled,
97
- onChange: v
98
- }, {
99
- default: o(() => [
100
- (f(!0), I(j, null, oe(c.value, (w, y) => (f(), R(N, {
101
- key: y,
102
- value: w
103
- }, {
104
- default: o(() => [
105
- k(z(w), 1)
106
- ]),
107
- _: 2
108
- }, 1032, ["value"]))), 128))
109
- ]),
110
- _: 1
111
- }, 8, ["value", "placeholder", "mode", "disabled"])
112
- ]);
113
- };
114
- }
115
- }), Be = /* @__PURE__ */ D(Oe, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/components/public/TimeZone.vue"]]), xe = /* @__PURE__ */ T({
116
- __name: "LangCombo",
117
- props: {
118
- mode: {
119
- type: String,
120
- default: "default"
121
- },
122
- value: {
123
- type: Array,
124
- default: null
125
- },
126
- placeholder: {
127
- type: String,
128
- default: ""
129
- },
130
- disabled: {
131
- type: Boolean,
132
- default: !1
133
- }
134
- },
135
- emits: ["change", "loaded", "update:value"],
136
- setup(n, { emit: m }) {
137
- const r = m, g = n, c = b([]), u = b([]), v = (e) => {
138
- typeof e == "string" ? (r("change", [e]), r("update:value", [e])) : (r("change", e), r("update:value", e));
139
- };
140
- ae(
141
- () => g.value,
142
- (e) => {
143
- e && e[0] && (u.value = e);
144
- }
145
- );
146
- const _ = async () => {
147
- const { result: e } = await we({});
148
- c.value = e;
149
- };
150
- return K(() => {
151
- _();
152
- }), (e, i) => {
153
- const N = le, h = re;
154
- return f(), I("div", null, [
155
- t(h, {
156
- style: { width: "100%" },
157
- value: u.value,
158
- "onUpdate:value": i[0] || (i[0] = (w) => u.value = w),
159
- placeholder: n.placeholder,
160
- mode: n.mode,
161
- disabled: n.disabled,
162
- onChange: v
163
- }, {
164
- default: o(() => [
165
- (f(!0), I(j, null, oe(c.value, (w, y) => (f(), R(N, {
166
- key: y,
167
- value: y
168
- }, {
169
- default: o(() => [
170
- k(z(w), 1)
171
- ]),
172
- _: 2
173
- }, 1032, ["value"]))), 128))
174
- ]),
175
- _: 1
176
- }, 8, ["value", "placeholder", "mode", "disabled"])
177
- ]);
178
- };
179
- }
180
- }), je = /* @__PURE__ */ D(xe, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/components/public/LangCombo.vue"]]);
181
- function Fe(n) {
182
- return O({
183
- url: "/api/sys/org/resetpwd",
184
- method: "post",
185
- params: n
186
- });
187
- }
188
- function Le(n) {
189
- return O({
190
- url: "/api/sys/org/search-list",
191
- method: "get",
192
- params: n
193
- });
194
- }
195
- function Ve(n) {
196
- return O({
197
- url: "/api/sys/org/delete",
198
- method: "post",
199
- params: n
200
- });
201
- }
202
- function Ee(n) {
203
- return O({
204
- url: "/api/sys/org/insert",
205
- method: "post",
206
- params: n
207
- });
208
- }
209
- function Me(n) {
210
- return O({
211
- url: "/api/sys/org/update",
212
- method: "post",
213
- params: n
214
- });
215
- }
216
- function Ye(n) {
217
- return O({
218
- url: "/api/sys/org/update-load",
219
- method: "get",
220
- params: n
221
- });
222
- }
223
- const Ge = /* @__PURE__ */ T({
224
- __name: "OrgEdit",
225
- props: {
226
- params: {
227
- type: Object,
228
- default: null
229
- }
230
- },
231
- emits: ["ok", "cancel"],
232
- setup(n, { emit: m }) {
233
- const { t: r } = W(), g = m, c = n, u = b(null), v = b(null), _ = b(!1), e = F({
234
- userName: "",
235
- orgName: "",
236
- industryCode: [],
237
- orgType: [],
238
- zoneCode: "",
239
- timezone: [],
240
- dateFormat: [],
241
- langId: [],
242
- monetaryyUnit: "",
243
- monetaryyDeci: "",
244
- mobile: "",
245
- email: "",
246
- equiNum: "",
247
- userNum: ""
248
- }), i = F({}), N = async () => {
249
- _.value = !0;
250
- const { result: a } = await Ye({
251
- orgId: c.params.orgId
252
- });
253
- _.value = !1, Object.assign(i, a, {
254
- mobile: a.sysUser.mobile,
255
- email: a.sysUser.email,
256
- zoneCode: a.zoneCode,
257
- orgType: [a.orgType],
258
- timezone: [a.timezone],
259
- dateFormat: [a.dateFormat],
260
- langId: [a.langId + ""],
261
- industryCode: [a.industryCode],
262
- userName: a.sysUser.userId,
263
- monetaryyDeci: a.monetaryyDeci ? a.monetaryyDeci : 2
264
- }), Object.assign(e, i);
265
- }, h = (a) => {
266
- !a || !a.opType || (i.orgId = a.orgId, a.opType == "2" && N());
267
- }, w = (a) => {
268
- e.zoneCode = a, v.value && v.value.getObject(a).then((l) => {
269
- e.timezone = [l.result.v1], e.dateFormat = [l.result.v2], e.monetaryyUnit = l.result.v3;
270
- }), u.value && u.value.clearValidate(["timezone", "dateFormat", "monetaryyUnit"]);
271
- }, y = () => {
272
- g("cancel");
273
- }, C = () => {
274
- u.value && u.value.validate().then(async () => {
275
- const a = {
276
- sysUser: {
277
- mobile: e.mobile,
278
- email: e.email
279
- },
280
- sysOrg: {
281
- orgId: c.params.opType == "1" ? "" : c.params.orgId,
282
- industryCode: e.industryCode[0],
283
- orgName: e.orgName,
284
- orgType: e.orgType[0],
285
- zoneCode: e.zoneCode,
286
- timezone: e.timezone[0],
287
- monetaryyUnit: e.monetaryyUnit,
288
- monetaryyDeci: e.monetaryyDeci,
289
- dateFormat: e.dateFormat[0],
290
- langId: e.langId[0],
291
- equiNum: e.equiNum,
292
- userNum: e.userNum,
293
- remark: ""
294
- }
295
- };
296
- if (_.value = !0, c.params.opType == "1") {
297
- const { result: l } = await Ee({
298
- jsonStr: JSON.stringify(a)
299
- });
300
- _.value = !1, g("ok", l);
301
- } else if (c.params.opType == "2") {
302
- const { result: l } = await Me({
303
- jsonStr: JSON.stringify(a)
304
- });
305
- _.value = !1, g("ok", l);
306
- }
307
- });
308
- }, q = {
309
- orgName: [
310
- {
311
- required: !0,
312
- message: r("org.org_name_msg1"),
313
- trigger: "change",
314
- validator: (a, l) => l == "" ? Promise.reject(r("org.org_name_msg1")) : Promise.resolve()
315
- }
316
- ],
317
- orgType: [
318
- {
319
- required: !0,
320
- message: r("org.org_type_msg1"),
321
- trigger: "change",
322
- validator: (a, l) => Array.isArray(l) && l.length !== 0 ? Promise.resolve() : Promise.reject(r("org.org_type_msg1"))
323
- }
324
- ],
325
- industryCode: [
326
- {
327
- required: !0,
328
- message: r("org.industry_msg1"),
329
- trigger: "change",
330
- validator: (a, l) => Array.isArray(l) && l.length !== 0 ? Promise.resolve() : Promise.reject(r("org.industry_msg1"))
331
- }
332
- ],
333
- zoneCode: [
334
- {
335
- required: !0,
336
- message: r("org.zone_code_msg1"),
337
- trigger: ["change", "blur"],
338
- validator: (a, l) => l == "" ? Promise.reject(r("org.zone_code_msg1")) : Promise.resolve()
339
- }
340
- ],
341
- timezone: [
342
- {
343
- required: !0,
344
- message: r("org.timezone_type_msg1"),
345
- trigger: ["change", "blur"],
346
- validator: (a, l) => Array.isArray(l) && l.length !== 0 ? Promise.resolve() : Promise.reject(r("org.timezone_type_msg1"))
347
- }
348
- ],
349
- dateFormat: [
350
- {
351
- required: !0,
352
- trigger: ["change", "blur"],
353
- message: r("org.dateformat_msg1")
354
- }
355
- ],
356
- monetaryyUnit: [
357
- {
358
- required: !0,
359
- trigger: ["change", "blur"],
360
- message: r("org.monery_unit_msg1")
361
- }
362
- ],
363
- langId: [
364
- {
365
- required: !0,
366
- message: r("org.lang_msg1"),
367
- trigger: "change",
368
- validator: (a, l) => Array.isArray(l) && l.length !== 0 ? Promise.resolve() : Promise.reject(r("org.lang_msg1"))
369
- }
370
- ],
371
- equiNum: [
372
- {
373
- required: !0,
374
- message: r("org.equi_num_msg1"),
375
- trigger: "change"
376
- }
377
- ],
378
- userNum: [
379
- {
380
- required: !0,
381
- message: r("org.user_num_msg1"),
382
- trigger: "change"
383
- }
384
- ]
385
- };
386
- return K(() => {
387
- h(c.params);
388
- }), (a, l) => {
389
- const P = ne, p = se, s = ue, A = de, S = Se, M = ie, Y = Ne, L = ke, G = me;
390
- return f(), R(G, {
391
- bordered: !1,
392
- title: n.params.opType == "1" ? a.$t("org.title") : a.$t("org.title4")
393
- }, {
394
- default: o(() => [
395
- t(Y, { spinning: _.value }, {
396
- default: o(() => [
397
- t(M, {
398
- model: e,
399
- ref_key: "formRef",
400
- ref: u,
401
- layout: "vertical",
402
- rules: q
403
- }, {
404
- default: o(() => [
405
- t(A, { gutter: 48 }, {
406
- default: o(() => [
407
- t(s, {
408
- lg: 7,
409
- md: 7,
410
- sm: 24
411
- }, {
412
- default: o(() => [
413
- t(p, {
414
- label: a.$t("org.user_name"),
415
- name: "userName"
416
- }, {
417
- default: o(() => [
418
- t(P, {
419
- type: "userName",
420
- disabled: "",
421
- placeholder: a.$t("org.user_name"),
422
- value: e.userName,
423
- "onUpdate:value": l[0] || (l[0] = (d) => e.userName = d)
424
- }, null, 8, ["placeholder", "value"])
425
- ]),
426
- _: 1
427
- }, 8, ["label"])
428
- ]),
429
- _: 1
430
- }),
431
- t(s, {
432
- xl: { span: 7 },
433
- lg: { span: 7 },
434
- md: { span: 12 },
435
- sm: 24
436
- }, {
437
- default: o(() => [
438
- t(p, {
439
- label: a.$t("user.mobile"),
440
- name: "mobile"
441
- }, {
442
- default: o(() => [
443
- t(P, {
444
- placeholder: a.$t("user.mobile"),
445
- disabled: n.params.opType == "2",
446
- value: e.mobile,
447
- "onUpdate:value": l[1] || (l[1] = (d) => e.mobile = d)
448
- }, null, 8, ["placeholder", "disabled", "value"])
449
- ]),
450
- _: 1
451
- }, 8, ["label"])
452
- ]),
453
- _: 1
454
- }),
455
- t(s, {
456
- xl: { span: 7 },
457
- lg: { span: 7 },
458
- md: { span: 12 },
459
- sm: 24
460
- }, {
461
- default: o(() => [
462
- t(p, {
463
- label: a.$t("user.email"),
464
- name: "email"
465
- }, {
466
- default: o(() => [
467
- t(P, {
468
- placeholder: a.$t("user.email"),
469
- disabled: n.params.opType == "2",
470
- value: e.email,
471
- "onUpdate:value": l[2] || (l[2] = (d) => e.email = d)
472
- }, null, 8, ["placeholder", "disabled", "value"])
473
- ]),
474
- _: 1
475
- }, 8, ["label"])
476
- ]),
477
- _: 1
478
- })
479
- ]),
480
- _: 1
481
- }),
482
- t(A, { gutter: 48 }, {
483
- default: o(() => [
484
- t(s, {
485
- lg: 7,
486
- md: 7,
487
- sm: 24
488
- }, {
489
- default: o(() => [
490
- t(p, {
491
- label: a.$t("org.org_name"),
492
- name: "orgName"
493
- }, {
494
- default: o(() => [
495
- t(Z, { className: "tip-wrapper" }, {
496
- title: o(() => [
497
- k(z(a.$t("org.org_name_placeholder")), 1)
498
- ]),
499
- default: o(() => [
500
- t(P, {
501
- placeholder: a.$t("org.org_name_placeholder"),
502
- value: e.orgName,
503
- "onUpdate:value": l[3] || (l[3] = (d) => e.orgName = d)
504
- }, null, 8, ["placeholder", "value"])
505
- ]),
506
- _: 1
507
- })
508
- ]),
509
- _: 1
510
- }, 8, ["label"])
511
- ]),
512
- _: 1
513
- }),
514
- t(s, {
515
- xl: { span: 7 },
516
- lg: { span: 7 },
517
- md: { span: 12 },
518
- sm: 24
519
- }, {
520
- default: o(() => [
521
- t(p, {
522
- label: a.$t("org.org_type"),
523
- name: "orgType"
524
- }, {
525
- default: o(() => [
526
- t(H, {
527
- type: "ORG_TYPE",
528
- placeholder: a.$t("org.org_type_placeholder"),
529
- value: e.orgType,
530
- "onUpdate:value": l[4] || (l[4] = (d) => e.orgType = d)
531
- }, null, 8, ["placeholder", "value"])
532
- ]),
533
- _: 1
534
- }, 8, ["label"])
535
- ]),
536
- _: 1
537
- }),
538
- t(s, {
539
- xl: { span: 7 },
540
- lg: { span: 7 },
541
- md: { span: 12 },
542
- sm: 24
543
- }, {
544
- default: o(() => [
545
- t(p, {
546
- label: a.$t("org.industry"),
547
- name: "industryCode"
548
- }, {
549
- default: o(() => [
550
- t(H, {
551
- type: "INDUSTRY_CODE",
552
- placeholder: a.$t("org.industry_placeholder"),
553
- value: e.industryCode,
554
- "onUpdate:value": l[5] || (l[5] = (d) => e.industryCode = d)
555
- }, null, 8, ["placeholder", "value"])
556
- ]),
557
- _: 1
558
- }, 8, ["label"])
559
- ]),
560
- _: 1
561
- })
562
- ]),
563
- _: 1
564
- }),
565
- t(A, { gutter: 48 }, {
566
- default: o(() => [
567
- t(s, {
568
- xl: { span: 7 },
569
- lg: { span: 7 },
570
- md: { span: 12 },
571
- sm: 24
572
- }, {
573
- default: o(() => [
574
- t(p, {
575
- label: a.$t("org.zone_code"),
576
- name: "zoneCode"
577
- }, {
578
- default: o(() => [
579
- t(Ce, {
580
- placeholder: a.$t("org.zone_code_placeholder"),
581
- ref_key: "regionSelRef",
582
- ref: v,
583
- onChange: w,
584
- defaultVal: i.zoneCode
585
- }, null, 8, ["placeholder", "defaultVal"])
586
- ]),
587
- _: 1
588
- }, 8, ["label"])
589
- ]),
590
- _: 1
591
- }),
592
- t(s, {
593
- lg: 7,
594
- md: 7,
595
- sm: 24
596
- }, {
597
- default: o(() => [
598
- t(p, {
599
- label: a.$t("org.timezone"),
600
- name: "timezone"
601
- }, {
602
- default: o(() => [
603
- t(Be, {
604
- placeholder: a.$t("org.timezone_placeholder"),
605
- disabled: !0,
606
- value: e.timezone,
607
- "onUpdate:value": l[6] || (l[6] = (d) => e.timezone = d)
608
- }, null, 8, ["placeholder", "value"])
609
- ]),
610
- _: 1
611
- }, 8, ["label"])
612
- ]),
613
- _: 1
614
- }),
615
- t(s, {
616
- xl: { span: 7 },
617
- lg: { span: 7 },
618
- md: { span: 12 },
619
- sm: 24
620
- }, {
621
- default: o(() => [
622
- t(p, {
623
- label: a.$t("org.dateformat"),
624
- name: "dateFormat"
625
- }, {
626
- default: o(() => [
627
- t(H, {
628
- type: "DATE_FORMAT",
629
- disabled: !0,
630
- value: e.dateFormat,
631
- "onUpdate:value": l[7] || (l[7] = (d) => e.dateFormat = d)
632
- }, null, 8, ["value"])
633
- ]),
634
- _: 1
635
- }, 8, ["label"])
636
- ]),
637
- _: 1
638
- })
639
- ]),
640
- _: 1
641
- }),
642
- t(A, { gutter: 48 }, {
643
- default: o(() => [
644
- t(s, {
645
- xl: { span: 7 },
646
- lg: { span: 7 },
647
- md: { span: 12 },
648
- sm: 24
649
- }, {
650
- default: o(() => [
651
- t(p, {
652
- label: a.$t("org.monery_unit"),
653
- name: "monetaryyUnit"
654
- }, {
655
- default: o(() => [
656
- t(Z, { className: "tip-wrapper" }, {
657
- title: o(() => [
658
- k(z(a.$t("org.monery_unit_placeholder")), 1)
659
- ]),
660
- default: o(() => [
661
- t(P, {
662
- placeholder: a.$t("org.monery_unit_placeholder"),
663
- disabled: !0,
664
- style: { width: "100%" },
665
- value: e.monetaryyUnit,
666
- "onUpdate:value": l[8] || (l[8] = (d) => e.monetaryyUnit = d)
667
- }, null, 8, ["placeholder", "value"])
668
- ]),
669
- _: 1
670
- })
671
- ]),
672
- _: 1
673
- }, 8, ["label"])
674
- ]),
675
- _: 1
676
- }),
677
- $(` <a-col\r
678
- :xl="{ span: 7 }"\r
679
- :lg="{ span: 7 }"\r
680
- :md="{ span: 12 }"\r
681
- :sm="24"\r
682
- >\r
683
- <a-form-item :label="$t('org.monery_deci')" name="monetaryyDeci">\r
684
- <a-input\r
685
- :placeholder="$t('org.monery_deci_placeholder')"\r
686
- v-model:value="form.monetaryyDeci"\r
687
- />\r
688
- </a-form-item>\r
689
- </a-col> `),
690
- t(s, {
691
- lg: 7,
692
- md: 7,
693
- sm: 24
694
- }, {
695
- default: o(() => [
696
- t(p, {
697
- label: a.$t("org.lang"),
698
- name: "langId"
699
- }, {
700
- default: o(() => [
701
- t(je, {
702
- placeholder: a.$t("org.lang_placeholder"),
703
- value: e.langId,
704
- "onUpdate:value": l[9] || (l[9] = (d) => e.langId = d)
705
- }, null, 8, ["placeholder", "value"])
706
- ]),
707
- _: 1
708
- }, 8, ["label"])
709
- ]),
710
- _: 1
711
- }),
712
- t(s, {
713
- lg: 7,
714
- md: 7,
715
- sm: 24
716
- }, {
717
- default: o(() => [
718
- t(p, {
719
- label: a.$t("org.equi_num"),
720
- name: "equiNum"
721
- }, {
722
- default: o(() => [
723
- t(S, {
724
- style: { width: "100%" },
725
- placeholder: a.$t("org.equi_num_placeholder"),
726
- min: 1,
727
- value: e.equiNum,
728
- "onUpdate:value": l[10] || (l[10] = (d) => e.equiNum = d)
729
- }, null, 8, ["placeholder", "value"])
730
- ]),
731
- _: 1
732
- }, 8, ["label"])
733
- ]),
734
- _: 1
735
- })
736
- ]),
737
- _: 1
738
- }),
739
- t(A, { gutter: 48 }, {
740
- default: o(() => [
741
- t(s, {
742
- xl: { span: 7 },
743
- lg: { span: 7 },
744
- md: { span: 12 },
745
- sm: 24
746
- }, {
747
- default: o(() => [
748
- t(p, {
749
- label: a.$t("org.user_num"),
750
- name: "userNum"
751
- }, {
752
- default: o(() => [
753
- t(S, {
754
- style: { width: "100%" },
755
- placeholder: a.$t("org.user_num_placeholder"),
756
- min: 1,
757
- value: e.userNum,
758
- "onUpdate:value": l[11] || (l[11] = (d) => e.userNum = d)
759
- }, null, 8, ["placeholder", "value"])
760
- ]),
761
- _: 1
762
- }, 8, ["label"])
763
- ]),
764
- _: 1
765
- })
766
- ]),
767
- _: 1
768
- })
769
- ]),
770
- _: 1
771
- }, 8, ["model"])
772
- ]),
773
- _: 1
774
- }, 8, ["spinning"]),
775
- t(Ae, { style: { width: "100%" } }, {
776
- default: o(() => [
777
- t(L, { onClick: y }, {
778
- default: o(() => [
779
- k(z(a.$t("common.btn_cancel")), 1)
780
- ]),
781
- _: 1
782
- }),
783
- l[12] || (l[12] = k("\xA0\xA0 ")),
784
- t(L, {
785
- onClick: C,
786
- type: "primary"
787
- }, {
788
- default: o(() => [
789
- k(z(a.$t("common.btn_ok")), 1)
790
- ]),
791
- _: 1
792
- })
793
- ]),
794
- _: 1
795
- })
796
- ]),
797
- _: 1
798
- }, 8, ["title"]);
799
- };
800
- }
801
- });
802
- const Qe = /* @__PURE__ */ D(Ge, [["__scopeId", "data-v-bc1e3beb"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/org/OrgEdit.vue"]]), He = /* @__PURE__ */ T({
803
- __name: "ResetPwdModal",
804
- props: {
805
- params: {
806
- type: Object,
807
- default: () => ({})
808
- }
809
- },
810
- emits: ["close"],
811
- setup(n, { emit: m }) {
812
- const { t: r } = W(), g = m, c = n, u = b(), v = b(!0), _ = b(!0), e = F({}), i = F({
813
- userPwd: "",
814
- userPwd1: ""
815
- }), N = () => {
816
- u.value && u.value.validate().then(() => {
817
- const { orgId: y } = c.params;
818
- y && Fe({
819
- orgId: y,
820
- userPwd: Ie.sha256().update(i.userPwd).digest("hex")
821
- }).then(() => {
822
- g("close");
823
- });
824
- });
825
- }, h = () => {
826
- g("close");
827
- }, w = {
828
- userPwd: [
829
- {
830
- required: !0,
831
- message: r("org.user_pwd1_msg1")
832
- }
833
- ],
834
- userPwd1: [
835
- {
836
- required: !0,
837
- message: r("org.user_pwd2_msg1"),
838
- vidator: (y, C) => C == i.userPwd ? Promise.resolve() : Promise.reject(r("org.user_pwd2_msg1"))
839
- }
840
- ]
841
- };
842
- return (y, C) => {
843
- const q = ne, a = se, l = ie, P = Pe;
844
- return f(), R(P, {
845
- onOk: N,
846
- onCancel: h,
847
- width: 500,
848
- open: v.value,
849
- "onUpdate:open": C[2] || (C[2] = (p) => v.value = p),
850
- style: { top: "280px" },
851
- title: y.$t("org.user_pwd2_msg"),
852
- destroyOnClose: _.value
853
- }, {
854
- default: o(() => [
855
- t(l, {
856
- model: i,
857
- ref_key: "formRef",
858
- ref: u,
859
- rules: w,
860
- class: "inline-query-form clear-formctrl-lh"
861
- }, {
862
- default: o(() => [
863
- t(a, te({
864
- label: y.$t("org.user_pwd1")
865
- }, e, {
866
- style: { "margin-bottom": "0" },
867
- name: "userPwd"
868
- }), {
869
- default: o(() => [
870
- t(q, {
871
- type: "password",
872
- placeholder: y.$t("org.user_pwd1_placeholder"),
873
- value: i.userPwd,
874
- "onUpdate:value": C[0] || (C[0] = (p) => i.userPwd = p)
875
- }, null, 8, ["placeholder", "value"])
876
- ]),
877
- _: 1
878
- }, 16, ["label"]),
879
- t(a, te({
880
- label: y.$t("org.user_pwd2")
881
- }, e, { name: "userPwd1" }), {
882
- default: o(() => [
883
- t(q, {
884
- type: "password",
885
- placeholder: y.$t("org.user_pwd2_placeholder"),
886
- value: i.userPwd1,
887
- "onUpdate:value": C[1] || (C[1] = (p) => i.userPwd1 = p)
888
- }, null, 8, ["placeholder", "value"])
889
- ]),
890
- _: 1
891
- }, 16, ["label"])
892
- ]),
893
- _: 1
894
- }, 8, ["model"])
895
- ]),
896
- _: 1
897
- }, 8, ["open", "title", "destroyOnClose"]);
898
- };
899
- }
900
- }), Ze = /* @__PURE__ */ D(He, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/org/ResetPwdModal.vue"]]), Ke = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAD/klEQVRYR8WXfWiVZRTAf+e9mzp13r03LZM+wA8kh62oJAxLDSIsRcQijf6wtiAKyllTwmh/jNim80YRBJtBREZGSikiiLmK/FqQ2yD6mFNhZvO63X2oc9t93yee++7j7t773ve9V6Hnv3uf85zze885z3nOEXwu9cms6QzEVoOsBBYjah5QNHK8ByVngVZQP1CQd0Bej1z1o1q8hFRtcB5GYBvCBmCal/zI/jUUX2Fb1VLRq8FclyuA2kUBtlmJsBkk36fhJDE1jCLM1ej7UsmNdDrSAjhfbexD5P7cDCdzqBZse106b6QAqNqiBwgYh4E7XI3nT4NH3oQFz8LBTdD1px/OTiz7aanoOZMoPAFAhYNzsQPH3Y0L3Pc8LNsO0+c4eg69CmcPw93L4PxRsIczwXRiWEtlc2/7qNAYgKpkCoXmSZCStBrmLIHlH8DsBydua4CiubB0G/S0Q+N70K4d6LZUM/3RR0dzYhygzqwG2ZpybOrtsLwKFq4DSZMyGmDmIljy1vjRCz9C47vQ9YcLhaqVLdG4rbjGeNIFjN9BJqWceKIKHnrN/YPSAWhpOwYtn8MvVTDYl5yVQ1j2Ip2UDsDOUD1CaVorT+6AkpedrX+a4HoE5q8aF00GuNwKRsDxil5NH8PPlamqFQ3ydneZqI9CM4hxCcVUT4Cvn4GLJ6G8yx2gvsTxa2mzI9P8GRx9J53qAfKZLWqnuQGRPa4+TvTA+WNw7V8o1kVxZCV74MxuEANKNnkBgK1elIzu1yoSAU6FnTu/6lN3gNMfOsmq60RmD+jd3aLqQk3Aw748sHcNdByH8iu3IgRax6+i6swIyExfAEP9YA1BwW3uAN1tjgdM/VhmzAGd/hENMAyS5wtg/wtw8RS8cc4d4Ju1IAFY/60fgMHsABq3Q6QVnvvOA8CA9ft8A/gPweUWGOiCe1e4A/RecOpb8B4/ADoEWSSh7zogUDry6LnXgdEkDDUAr/jKgb8PQF/HxNKcXAdOh5064Psa7jA3YsiXvgB+q4doG6ysuTWFSHQhqjaD5MsloCAtRGIh2rsaOk541wGtqMxHKR5WdzqPUV2oXlfvFICNR8BcAJMLna3rV8C6AYV3jYvqx8mYBFOCzn/6MdIhmFXs/B7sh+hfsOepZPUNsqW7LPNz/NJPE4uOa5w8NvTN+eLxBCE1hFjFUt7XltiQ1IBU5Goju3NJDUk8DF4tWXYWMki7tGRxCM+m9KYpOrGsxxLb89za8tw4vNvyUb3/62AyBqFHM2XqZu7mRjMI05/laJboYbVrxnzsvK05DadGrEZftUwR85yOxzyix/PB2BpsWYHBYlR8PDcBC6QH4Rw2rRjqGJPzvvc7nv8HJ9O88//HRdEAAAAASUVORK5CYII=", We = { bordered: !1 }, Xe = { style: { margin: "10px 0 16px" } }, Je = {
901
- class: "table-page-search-wrapper",
902
- style: { "margin-bottom": "16px" }
903
- }, et = ["src"], tt = /* @__PURE__ */ T({
904
- __name: "index",
905
- setup(n) {
906
- const { t: m } = W(), { getLabel: r } = ze("CMS_STATUS"), g = b(), c = b(!1), u = b(!1), v = b({}), _ = F({}), e = b({
907
- opType: "",
908
- orgId: ""
909
- }), i = async (s) => {
910
- const A = Object.assign(s, _), { result: S } = await Le(A);
911
- return S;
912
- }, N = () => {
913
- c.value = !1;
914
- }, h = (s) => {
915
- qe.emit("change", {
916
- title: "org.title" + s,
917
- description: "org.description" + s
918
- });
919
- }, w = () => {
920
- h("1"), e.value.opType = "1", u.value = !0;
921
- }, y = () => {
922
- g.value.refresh();
923
- }, C = (s) => {
924
- h("2"), e.value = { opType: "2", orgId: s.orgId }, u.value = !0;
925
- }, q = (s) => {
926
- h("3"), v.value = s, c.value = !0;
927
- }, a = (s) => {
928
- Ve({ orgId: s.orgId }).then(() => {
929
- g.value.refresh(), Te.success(m("assetclass.del_success"));
930
- });
931
- }, l = () => {
932
- h("0"), u.value = !1, g.value.refresh();
933
- }, P = () => {
934
- u.value = !1;
935
- }, p = V(() => [
936
- {
937
- title: m("device.index1"),
938
- width: "50px",
939
- align: "center",
940
- key: "index1"
941
- },
942
- {
943
- title: m("org.id"),
944
- dataIndex: "orgId",
945
- width: "150px",
946
- key: "orgId"
947
- },
948
- {
949
- title: m("org.org_name"),
950
- dataIndex: "orgName",
951
- width: "150px",
952
- key: "orgName"
953
- },
954
- {
955
- title: m("org.zone_code"),
956
- dataIndex: "zoneCode",
957
- width: "150px",
958
- key: "zoneCode"
959
- },
960
- {
961
- title: m("org.timezone"),
962
- dataIndex: "timezone",
963
- width: "100px",
964
- key: "timezone"
965
- },
966
- {
967
- title: m("org.user_name"),
968
- dataIndex: "userId",
969
- width: "150px",
970
- key: "userId"
971
- },
972
- {
973
- title: m("org.mobile"),
974
- dataIndex: "mobile",
975
- width: "110px",
976
- key: "mobile"
977
- },
978
- {
979
- title: m("org.user_status"),
980
- dataIndex: "orgStatus",
981
- width: "80px",
982
- key: "orgStatus",
983
- customRender: ({ record: s }) => r(s.orgStatus)
984
- },
985
- {
986
- title: m("org.coperator"),
987
- dataIndex: "coperator",
988
- width: "80px",
989
- key: "coperator"
990
- },
991
- {
992
- title: m("org.cdate"),
993
- dataIndex: "cdate",
994
- width: "160px",
995
- key: "cdate"
996
- },
997
- {
998
- title: m("org.action"),
999
- key: "action"
1000
- }
1001
- ]);
1002
- return (s, A) => {
1003
- const S = $e, M = x("uc-btn-add"), Y = ue, L = de, G = x("uc-pick-label"), d = x("uc-btn-edit"), X = Re, pe = x("uc-btn-reset-pwd"), ce = x("uc-btn-remove"), ge = me;
1004
- return f(), I("div", null, [
1005
- t(ge, null, {
1006
- default: o(() => [
1007
- _e(E("div", We, [
1008
- E("div", Xe, [
1009
- t(Z, null, {
1010
- title: o(() => [
1011
- k(z(s.$t("org.nameInput")), 1)
1012
- ]),
1013
- default: o(() => [
1014
- t(S, {
1015
- placeholder: s.$t("org.nameInput"),
1016
- ref: "inputSearch",
1017
- value: _.orgName,
1018
- "onUpdate:value": A[0] || (A[0] = (U) => _.orgName = U),
1019
- onSearch: y,
1020
- allowClear: "",
1021
- style: { width: "350px", "margin-right": "16px" }
1022
- }, null, 8, ["placeholder", "value"])
1023
- ]),
1024
- _: 1
1025
- })
1026
- ]),
1027
- E("div", Je, [
1028
- t(L, null, {
1029
- default: o(() => [
1030
- t(Y, { md: 16 }, {
1031
- default: o(() => [
1032
- t(M, { onClick: w }),
1033
- A[1] || (A[1] = k("\xA0 "))
1034
- ]),
1035
- _: 1
1036
- })
1037
- ]),
1038
- _: 1
1039
- })
1040
- ]),
1041
- t(Ue, {
1042
- ref_key: "tableRef",
1043
- ref: g,
1044
- data: i,
1045
- rowKey: "cdate",
1046
- columns: p.value
1047
- }, {
1048
- bodyCell: o(({ record: U, column: B }) => [
1049
- B.key === "index1" ? (f(), I("img", {
1050
- key: 0,
1051
- src: ye(Ke),
1052
- alt: "\u7EC4\u7EC7",
1053
- style: { width: "24px", height: "24px" }
1054
- }, null, 8, et)) : $("v-if", !0),
1055
- B.key === "cdate" ? (f(), R(G, {
1056
- key: 1,
1057
- defaultValue: U.cdate
1058
- }, null, 8, ["defaultValue"])) : $("v-if", !0),
1059
- B.key === "userId" ? (f(), I(j, { key: 2 }, [
1060
- k(z(U.sysUser.userId), 1)
1061
- ], 64)) : $("v-if", !0),
1062
- B.key === "mobile" ? (f(), I(j, { key: 3 }, [
1063
- k(z(U.sysUser.mobile), 1)
1064
- ], 64)) : $("v-if", !0),
1065
- B.key === "action" ? (f(), I(j, { key: 4 }, [
1066
- t(d, {
1067
- onClick: (J) => C(U),
1068
- type: "a"
1069
- }, null, 8, ["onClick"]),
1070
- t(X, { type: "vertical" }),
1071
- t(pe, {
1072
- onClick: (J) => q(U),
1073
- type: "a"
1074
- }, null, 8, ["onClick"]),
1075
- t(X, { type: "vertical" }),
1076
- t(ce, {
1077
- onClick: (J) => a(U),
1078
- type: "a"
1079
- }, null, 8, ["onClick"])
1080
- ], 64)) : $("v-if", !0)
1081
- ]),
1082
- _: 1
1083
- }, 8, ["columns"])
1084
- ], 512), [
1085
- [fe, !u.value]
1086
- ])
1087
- ]),
1088
- _: 1
1089
- }),
1090
- c.value ? (f(), R(Ze, {
1091
- key: 0,
1092
- params: v.value,
1093
- onClose: N
1094
- }, null, 8, ["params"])) : $("v-if", !0),
1095
- u.value ? (f(), R(Qe, {
1096
- key: 1,
1097
- onOk: l,
1098
- onCancel: P,
1099
- params: e.value
1100
- }, null, 8, ["params"])) : $("v-if", !0)
1101
- ]);
1102
- };
1103
- }
1104
- }), st = /* @__PURE__ */ D(tt, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter/src/views/sys/org/index.vue"]]);
1105
- export {
1106
- st as default
1107
- };