@witlink/usercenter 1.0.0

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