@witlink/usercenter 1.0.37 → 1.0.39
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.
- package/dist/{404.a6cf3c49.mjs → 404.6c4d9ace.mjs} +1 -1
- package/dist/RegionSelect.32365169.mjs +70 -0
- package/dist/{Standard.7fa07868.mjs → Standard.33b93b11.mjs} +38 -36
- package/dist/{WebClient.cf0c1ce8.mjs → WebClient.c449a21d.mjs} +14 -13
- package/dist/assets/index.01a0fb63.css +1 -0
- package/dist/assets/index.28bdbdc3.css +1 -0
- package/dist/assets/index.3a0797c4.css +1 -0
- package/dist/assets/index.5b827d5e.css +1 -0
- package/dist/assets/index.b965b94b.css +1 -0
- package/dist/index.22d88205.mjs +7733 -0
- package/dist/index.3bdffde7.mjs +1124 -0
- package/dist/{index.95c13e27.mjs → index.3d126a5f.mjs} +1 -1
- package/dist/{index.c80d3de6.mjs → index.5b29a0a3.mjs} +38139 -48626
- package/dist/{index.064d9edb.mjs → index.6d6d2aad.mjs} +1 -1
- package/dist/index.7944ca38.mjs +498 -0
- package/dist/index.a1bb9fcb.mjs +1073 -0
- package/dist/index.a6671bfa.mjs +142 -0
- package/dist/{index.7eb35e21.mjs → index.b6fecf34.mjs} +1 -1
- package/dist/{index.5fcc79f8.mjs → index.d49f6ddb.mjs} +1 -1
- package/dist/usercenter.es.js +8 -12
- package/dist/usercenter.umd.js +28 -28
- package/package.json +1 -1
- package/dist/assets/index.8ddfd902.css +0 -1
|
@@ -0,0 +1,1124 @@
|
|
|
1
|
+
import { defineComponent as T, ref as b, computed as G, openBlock as f, createBlock as $, withCtx as o, renderSlot as Q, createElementVNode as V, normalizeClass as ee, createElementBlock as P, watch as ae, onMounted as K, createVNode as t, Fragment as F, renderList as oe, createTextVNode as k, toDisplayString as z, reactive as S, mergeProps as te, resolveComponent as x, withDirectives as _e, unref as ye, createCommentVNode as R, vShow as fe } from "vue";
|
|
2
|
+
import { u as ve, o as be, _ as O, p as he, q as le, r as re, t as we, d as B, D as H, v as Ce, I as ne, b as se, j as ue, k as de, F as ie, S as Ae, B as Ne, C as me, h as ke, M as Ie, w as Pe, e as ze, x as Ue, y as $e, z as Re } from "./index.5b29a0a3.mjs";
|
|
3
|
+
import { useI18n as J } from "vue-i18n";
|
|
4
|
+
import { R as qe } from "./RegionSelect.32365169.mjs";
|
|
5
|
+
import { _ as De } from "./index.a1bb9fcb.mjs";
|
|
6
|
+
import './assets/index.b965b94b.css';const Se = /* @__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 p = ve(), r = n, g = b(!1), c = G(() => p.langId), d = G(() => c.value === "en_US"), v = G(() => {
|
|
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 d.value ? (f(), $(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
|
+
V("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(), P("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__ */ O(Se, [["__scopeId", "data-v-ce85d961"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/PlaceholderTip/index.vue"]]), Te = /* @__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: p }) {
|
|
74
|
+
const r = p, g = n, c = b([]), d = 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] && (d.value = e);
|
|
84
|
+
}
|
|
85
|
+
), K(() => {
|
|
86
|
+
_();
|
|
87
|
+
}), (e, i) => {
|
|
88
|
+
const N = le, h = re;
|
|
89
|
+
return f(), P("div", null, [
|
|
90
|
+
t(h, {
|
|
91
|
+
style: { width: "100%" },
|
|
92
|
+
value: d.value,
|
|
93
|
+
"onUpdate:value": i[0] || (i[0] = (w) => d.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), P(F, null, oe(c.value, (w, y) => (f(), $(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
|
+
}), Oe = /* @__PURE__ */ O(Te, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/public/TimeZone.vue"]]), Be = /* @__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: p }) {
|
|
137
|
+
const r = p, g = n, c = b([]), d = 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] && (d.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(), P("div", null, [
|
|
155
|
+
t(h, {
|
|
156
|
+
style: { width: "100%" },
|
|
157
|
+
value: d.value,
|
|
158
|
+
"onUpdate:value": i[0] || (i[0] = (w) => d.value = w),
|
|
159
|
+
placeholder: n.placeholder,
|
|
160
|
+
mode: n.mode,
|
|
161
|
+
disabled: n.disabled,
|
|
162
|
+
onChange: v
|
|
163
|
+
}, {
|
|
164
|
+
default: o(() => [
|
|
165
|
+
(f(!0), P(F, null, oe(c.value, (w, y) => (f(), $(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__ */ O(Be, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/public/LangCombo.vue"]]);
|
|
181
|
+
function xe(n) {
|
|
182
|
+
return B({
|
|
183
|
+
url: "/api/sys/org/resetpwd",
|
|
184
|
+
method: "post",
|
|
185
|
+
params: n
|
|
186
|
+
});
|
|
187
|
+
}
|
|
188
|
+
function Fe(n) {
|
|
189
|
+
return B({
|
|
190
|
+
url: "/api/sys/org/search-list",
|
|
191
|
+
method: "get",
|
|
192
|
+
params: n
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
function Le(n) {
|
|
196
|
+
return B({
|
|
197
|
+
url: "/api/sys/org/delete",
|
|
198
|
+
method: "post",
|
|
199
|
+
params: n
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
function Ve(n) {
|
|
203
|
+
return B({
|
|
204
|
+
url: "/api/sys/org/insert",
|
|
205
|
+
method: "post",
|
|
206
|
+
params: n
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
function Ee(n) {
|
|
210
|
+
return B({
|
|
211
|
+
url: "/api/sys/org/update",
|
|
212
|
+
method: "post",
|
|
213
|
+
params: n
|
|
214
|
+
});
|
|
215
|
+
}
|
|
216
|
+
function Me(n) {
|
|
217
|
+
return B({
|
|
218
|
+
url: "/api/sys/org/update-load",
|
|
219
|
+
method: "get",
|
|
220
|
+
params: n
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
const Ye = /* @__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: p }) {
|
|
233
|
+
const { t: r } = J(), g = p, c = n, d = b(null), v = b(null), _ = b(!1), e = S({
|
|
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 = S({}), N = async () => {
|
|
249
|
+
_.value = !0;
|
|
250
|
+
const { result: a } = await Me({
|
|
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), console.log(e, "value");
|
|
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
|
+
});
|
|
271
|
+
}, y = () => {
|
|
272
|
+
g("cancel");
|
|
273
|
+
}, C = () => {
|
|
274
|
+
d.value && d.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 Ve({
|
|
298
|
+
jsonStr: JSON.stringify(a)
|
|
299
|
+
});
|
|
300
|
+
_.value = !1, g("ok", l);
|
|
301
|
+
} else if (c.params.opType == "2") {
|
|
302
|
+
const { result: l } = await Ee({
|
|
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",
|
|
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
|
+
message: r("org.dateformat_msg1")
|
|
353
|
+
}
|
|
354
|
+
],
|
|
355
|
+
monetaryyUnit: [
|
|
356
|
+
{
|
|
357
|
+
required: !0,
|
|
358
|
+
message: r("org.monery_unit_msg1")
|
|
359
|
+
}
|
|
360
|
+
],
|
|
361
|
+
langId: [
|
|
362
|
+
{
|
|
363
|
+
required: !0,
|
|
364
|
+
message: r("org.lang_msg1"),
|
|
365
|
+
trigger: "change",
|
|
366
|
+
validator: (a, l) => Array.isArray(l) && l.length !== 0 ? Promise.resolve() : Promise.reject(r("org.lang_msg1"))
|
|
367
|
+
}
|
|
368
|
+
],
|
|
369
|
+
equiNum: [
|
|
370
|
+
{
|
|
371
|
+
required: !0,
|
|
372
|
+
message: r("org.equi_num_msg1"),
|
|
373
|
+
trigger: "change"
|
|
374
|
+
}
|
|
375
|
+
],
|
|
376
|
+
userNum: [
|
|
377
|
+
{
|
|
378
|
+
required: !0,
|
|
379
|
+
message: r("org.user_num_msg1"),
|
|
380
|
+
trigger: "change"
|
|
381
|
+
}
|
|
382
|
+
]
|
|
383
|
+
};
|
|
384
|
+
return K(() => {
|
|
385
|
+
h(c.params);
|
|
386
|
+
}), (a, l) => {
|
|
387
|
+
const I = ne, m = se, s = ue, A = de, D = De, E = ie, M = Ae, L = Ne, Y = me;
|
|
388
|
+
return f(), $(Y, {
|
|
389
|
+
bordered: !1,
|
|
390
|
+
title: n.params.opType == "1" ? a.$t("org.title") : a.$t("org.title4")
|
|
391
|
+
}, {
|
|
392
|
+
default: o(() => [
|
|
393
|
+
t(M, { spinning: _.value }, {
|
|
394
|
+
default: o(() => [
|
|
395
|
+
t(E, {
|
|
396
|
+
model: e,
|
|
397
|
+
ref_key: "formRef",
|
|
398
|
+
ref: d,
|
|
399
|
+
layout: "vertical",
|
|
400
|
+
rules: q
|
|
401
|
+
}, {
|
|
402
|
+
default: o(() => [
|
|
403
|
+
t(A, { gutter: 48 }, {
|
|
404
|
+
default: o(() => [
|
|
405
|
+
t(s, {
|
|
406
|
+
lg: 7,
|
|
407
|
+
md: 7,
|
|
408
|
+
sm: 24
|
|
409
|
+
}, {
|
|
410
|
+
default: o(() => [
|
|
411
|
+
t(m, {
|
|
412
|
+
label: a.$t("org.user_name"),
|
|
413
|
+
name: "userName"
|
|
414
|
+
}, {
|
|
415
|
+
default: o(() => [
|
|
416
|
+
t(I, {
|
|
417
|
+
type: "userName",
|
|
418
|
+
disabled: "",
|
|
419
|
+
placeholder: a.$t("org.user_name"),
|
|
420
|
+
value: e.userName,
|
|
421
|
+
"onUpdate:value": l[0] || (l[0] = (u) => e.userName = u)
|
|
422
|
+
}, null, 8, ["placeholder", "value"])
|
|
423
|
+
]),
|
|
424
|
+
_: 1
|
|
425
|
+
}, 8, ["label"])
|
|
426
|
+
]),
|
|
427
|
+
_: 1
|
|
428
|
+
}),
|
|
429
|
+
t(s, {
|
|
430
|
+
xl: { span: 7 },
|
|
431
|
+
lg: { span: 7 },
|
|
432
|
+
md: { span: 12 },
|
|
433
|
+
sm: 24
|
|
434
|
+
}, {
|
|
435
|
+
default: o(() => [
|
|
436
|
+
t(m, {
|
|
437
|
+
label: a.$t("user.mobile"),
|
|
438
|
+
name: "mobile"
|
|
439
|
+
}, {
|
|
440
|
+
default: o(() => [
|
|
441
|
+
t(I, {
|
|
442
|
+
placeholder: a.$t("user.mobile"),
|
|
443
|
+
disabled: n.params.opType == "2",
|
|
444
|
+
value: e.mobile,
|
|
445
|
+
"onUpdate:value": l[1] || (l[1] = (u) => e.mobile = u)
|
|
446
|
+
}, null, 8, ["placeholder", "disabled", "value"])
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
}, 8, ["label"])
|
|
450
|
+
]),
|
|
451
|
+
_: 1
|
|
452
|
+
}),
|
|
453
|
+
t(s, {
|
|
454
|
+
xl: { span: 7 },
|
|
455
|
+
lg: { span: 7 },
|
|
456
|
+
md: { span: 12 },
|
|
457
|
+
sm: 24
|
|
458
|
+
}, {
|
|
459
|
+
default: o(() => [
|
|
460
|
+
t(m, {
|
|
461
|
+
label: a.$t("user.email"),
|
|
462
|
+
name: "email"
|
|
463
|
+
}, {
|
|
464
|
+
default: o(() => [
|
|
465
|
+
t(I, {
|
|
466
|
+
placeholder: a.$t("user.email"),
|
|
467
|
+
disabled: n.params.opType == "2",
|
|
468
|
+
value: e.email,
|
|
469
|
+
"onUpdate:value": l[2] || (l[2] = (u) => e.email = u)
|
|
470
|
+
}, null, 8, ["placeholder", "disabled", "value"])
|
|
471
|
+
]),
|
|
472
|
+
_: 1
|
|
473
|
+
}, 8, ["label"])
|
|
474
|
+
]),
|
|
475
|
+
_: 1
|
|
476
|
+
})
|
|
477
|
+
]),
|
|
478
|
+
_: 1
|
|
479
|
+
}),
|
|
480
|
+
t(A, { gutter: 48 }, {
|
|
481
|
+
default: o(() => [
|
|
482
|
+
t(s, {
|
|
483
|
+
lg: 7,
|
|
484
|
+
md: 7,
|
|
485
|
+
sm: 24
|
|
486
|
+
}, {
|
|
487
|
+
default: o(() => [
|
|
488
|
+
t(m, {
|
|
489
|
+
label: a.$t("org.org_name"),
|
|
490
|
+
name: "orgName"
|
|
491
|
+
}, {
|
|
492
|
+
default: o(() => [
|
|
493
|
+
t(Z, { className: "tip-wrapper" }, {
|
|
494
|
+
title: o(() => [
|
|
495
|
+
k(z(a.$t("org.org_name_placeholder")), 1)
|
|
496
|
+
]),
|
|
497
|
+
default: o(() => [
|
|
498
|
+
t(I, {
|
|
499
|
+
placeholder: a.$t("org.org_name_placeholder"),
|
|
500
|
+
value: e.orgName,
|
|
501
|
+
"onUpdate:value": l[3] || (l[3] = (u) => e.orgName = u)
|
|
502
|
+
}, null, 8, ["placeholder", "value"])
|
|
503
|
+
]),
|
|
504
|
+
_: 1
|
|
505
|
+
})
|
|
506
|
+
]),
|
|
507
|
+
_: 1
|
|
508
|
+
}, 8, ["label"])
|
|
509
|
+
]),
|
|
510
|
+
_: 1
|
|
511
|
+
}),
|
|
512
|
+
t(s, {
|
|
513
|
+
xl: { span: 7 },
|
|
514
|
+
lg: { span: 7 },
|
|
515
|
+
md: { span: 12 },
|
|
516
|
+
sm: 24
|
|
517
|
+
}, {
|
|
518
|
+
default: o(() => [
|
|
519
|
+
t(m, {
|
|
520
|
+
label: a.$t("org.org_type"),
|
|
521
|
+
name: "orgType"
|
|
522
|
+
}, {
|
|
523
|
+
default: o(() => [
|
|
524
|
+
t(H, {
|
|
525
|
+
type: "ORG_TYPE",
|
|
526
|
+
placeholder: a.$t("org.org_type_placeholder"),
|
|
527
|
+
value: e.orgType,
|
|
528
|
+
"onUpdate:value": l[4] || (l[4] = (u) => e.orgType = u)
|
|
529
|
+
}, null, 8, ["placeholder", "value"])
|
|
530
|
+
]),
|
|
531
|
+
_: 1
|
|
532
|
+
}, 8, ["label"])
|
|
533
|
+
]),
|
|
534
|
+
_: 1
|
|
535
|
+
}),
|
|
536
|
+
t(s, {
|
|
537
|
+
xl: { span: 7 },
|
|
538
|
+
lg: { span: 7 },
|
|
539
|
+
md: { span: 12 },
|
|
540
|
+
sm: 24
|
|
541
|
+
}, {
|
|
542
|
+
default: o(() => [
|
|
543
|
+
t(m, {
|
|
544
|
+
label: a.$t("org.industry"),
|
|
545
|
+
name: "industryCode"
|
|
546
|
+
}, {
|
|
547
|
+
default: o(() => [
|
|
548
|
+
t(H, {
|
|
549
|
+
type: "INDUSTRY_CODE",
|
|
550
|
+
placeholder: a.$t("org.industry_placeholder"),
|
|
551
|
+
value: e.industryCode,
|
|
552
|
+
"onUpdate:value": l[5] || (l[5] = (u) => e.industryCode = u)
|
|
553
|
+
}, null, 8, ["placeholder", "value"])
|
|
554
|
+
]),
|
|
555
|
+
_: 1
|
|
556
|
+
}, 8, ["label"])
|
|
557
|
+
]),
|
|
558
|
+
_: 1
|
|
559
|
+
})
|
|
560
|
+
]),
|
|
561
|
+
_: 1
|
|
562
|
+
}),
|
|
563
|
+
t(A, { gutter: 48 }, {
|
|
564
|
+
default: o(() => [
|
|
565
|
+
t(s, {
|
|
566
|
+
xl: { span: 7 },
|
|
567
|
+
lg: { span: 7 },
|
|
568
|
+
md: { span: 12 },
|
|
569
|
+
sm: 24
|
|
570
|
+
}, {
|
|
571
|
+
default: o(() => [
|
|
572
|
+
t(m, {
|
|
573
|
+
label: a.$t("org.zone_code"),
|
|
574
|
+
name: "zoneCode"
|
|
575
|
+
}, {
|
|
576
|
+
default: o(() => [
|
|
577
|
+
t(qe, {
|
|
578
|
+
placeholder: a.$t("org.zone_code_placeholder"),
|
|
579
|
+
ref_key: "regionSelRef",
|
|
580
|
+
ref: v,
|
|
581
|
+
onChange: w,
|
|
582
|
+
defaultVal: i.zoneCode
|
|
583
|
+
}, null, 8, ["placeholder", "defaultVal"])
|
|
584
|
+
]),
|
|
585
|
+
_: 1
|
|
586
|
+
}, 8, ["label"])
|
|
587
|
+
]),
|
|
588
|
+
_: 1
|
|
589
|
+
}),
|
|
590
|
+
t(s, {
|
|
591
|
+
lg: 7,
|
|
592
|
+
md: 7,
|
|
593
|
+
sm: 24
|
|
594
|
+
}, {
|
|
595
|
+
default: o(() => [
|
|
596
|
+
t(m, {
|
|
597
|
+
label: a.$t("org.timezone"),
|
|
598
|
+
name: "timezone"
|
|
599
|
+
}, {
|
|
600
|
+
default: o(() => [
|
|
601
|
+
t(Oe, {
|
|
602
|
+
placeholder: a.$t("org.timezone_placeholder"),
|
|
603
|
+
disabled: !0,
|
|
604
|
+
value: e.timezone,
|
|
605
|
+
"onUpdate:value": l[6] || (l[6] = (u) => e.timezone = u)
|
|
606
|
+
}, null, 8, ["placeholder", "value"])
|
|
607
|
+
]),
|
|
608
|
+
_: 1
|
|
609
|
+
}, 8, ["label"])
|
|
610
|
+
]),
|
|
611
|
+
_: 1
|
|
612
|
+
}),
|
|
613
|
+
t(s, {
|
|
614
|
+
xl: { span: 7 },
|
|
615
|
+
lg: { span: 7 },
|
|
616
|
+
md: { span: 12 },
|
|
617
|
+
sm: 24
|
|
618
|
+
}, {
|
|
619
|
+
default: o(() => [
|
|
620
|
+
t(m, {
|
|
621
|
+
label: a.$t("org.dateformat"),
|
|
622
|
+
name: "dateFormat"
|
|
623
|
+
}, {
|
|
624
|
+
default: o(() => [
|
|
625
|
+
t(H, {
|
|
626
|
+
type: "DATE_FORMAT",
|
|
627
|
+
disabled: !0,
|
|
628
|
+
value: e.dateFormat,
|
|
629
|
+
"onUpdate:value": l[7] || (l[7] = (u) => e.dateFormat = u)
|
|
630
|
+
}, null, 8, ["value"])
|
|
631
|
+
]),
|
|
632
|
+
_: 1
|
|
633
|
+
}, 8, ["label"])
|
|
634
|
+
]),
|
|
635
|
+
_: 1
|
|
636
|
+
})
|
|
637
|
+
]),
|
|
638
|
+
_: 1
|
|
639
|
+
}),
|
|
640
|
+
t(A, { gutter: 48 }, {
|
|
641
|
+
default: o(() => [
|
|
642
|
+
t(s, {
|
|
643
|
+
xl: { span: 7 },
|
|
644
|
+
lg: { span: 7 },
|
|
645
|
+
md: { span: 12 },
|
|
646
|
+
sm: 24
|
|
647
|
+
}, {
|
|
648
|
+
default: o(() => [
|
|
649
|
+
t(m, {
|
|
650
|
+
label: a.$t("org.monery_unit"),
|
|
651
|
+
name: "monetaryyUnit"
|
|
652
|
+
}, {
|
|
653
|
+
default: o(() => [
|
|
654
|
+
t(Z, { className: "tip-wrapper" }, {
|
|
655
|
+
title: o(() => [
|
|
656
|
+
k(z(a.$t("org.monery_unit_placeholder")), 1)
|
|
657
|
+
]),
|
|
658
|
+
default: o(() => [
|
|
659
|
+
t(I, {
|
|
660
|
+
placeholder: a.$t("org.monery_unit_placeholder"),
|
|
661
|
+
disabled: !0,
|
|
662
|
+
style: { width: "100%" },
|
|
663
|
+
value: e.monetaryyUnit,
|
|
664
|
+
"onUpdate:value": l[8] || (l[8] = (u) => e.monetaryyUnit = u)
|
|
665
|
+
}, null, 8, ["placeholder", "value"])
|
|
666
|
+
]),
|
|
667
|
+
_: 1
|
|
668
|
+
})
|
|
669
|
+
]),
|
|
670
|
+
_: 1
|
|
671
|
+
}, 8, ["label"])
|
|
672
|
+
]),
|
|
673
|
+
_: 1
|
|
674
|
+
}),
|
|
675
|
+
t(s, {
|
|
676
|
+
xl: { span: 7 },
|
|
677
|
+
lg: { span: 7 },
|
|
678
|
+
md: { span: 12 },
|
|
679
|
+
sm: 24
|
|
680
|
+
}, {
|
|
681
|
+
default: o(() => [
|
|
682
|
+
t(m, {
|
|
683
|
+
label: a.$t("org.monery_deci"),
|
|
684
|
+
name: "monetaryyDeci"
|
|
685
|
+
}, {
|
|
686
|
+
default: o(() => [
|
|
687
|
+
t(I, {
|
|
688
|
+
placeholder: a.$t("org.monery_deci_placeholder"),
|
|
689
|
+
value: e.monetaryyDeci,
|
|
690
|
+
"onUpdate:value": l[9] || (l[9] = (u) => e.monetaryyDeci = u)
|
|
691
|
+
}, null, 8, ["placeholder", "value"])
|
|
692
|
+
]),
|
|
693
|
+
_: 1
|
|
694
|
+
}, 8, ["label"])
|
|
695
|
+
]),
|
|
696
|
+
_: 1
|
|
697
|
+
}),
|
|
698
|
+
t(s, {
|
|
699
|
+
lg: 7,
|
|
700
|
+
md: 7,
|
|
701
|
+
sm: 24
|
|
702
|
+
}, {
|
|
703
|
+
default: o(() => [
|
|
704
|
+
t(m, {
|
|
705
|
+
label: a.$t("org.lang"),
|
|
706
|
+
name: "langId"
|
|
707
|
+
}, {
|
|
708
|
+
default: o(() => [
|
|
709
|
+
t(je, {
|
|
710
|
+
placeholder: a.$t("org.lang_placeholder"),
|
|
711
|
+
value: e.langId,
|
|
712
|
+
"onUpdate:value": l[10] || (l[10] = (u) => e.langId = u)
|
|
713
|
+
}, null, 8, ["placeholder", "value"])
|
|
714
|
+
]),
|
|
715
|
+
_: 1
|
|
716
|
+
}, 8, ["label"])
|
|
717
|
+
]),
|
|
718
|
+
_: 1
|
|
719
|
+
})
|
|
720
|
+
]),
|
|
721
|
+
_: 1
|
|
722
|
+
}),
|
|
723
|
+
t(A, { gutter: 48 }, {
|
|
724
|
+
default: o(() => [
|
|
725
|
+
t(s, {
|
|
726
|
+
lg: 7,
|
|
727
|
+
md: 7,
|
|
728
|
+
sm: 24
|
|
729
|
+
}, {
|
|
730
|
+
default: o(() => [
|
|
731
|
+
t(m, {
|
|
732
|
+
label: a.$t("org.equi_num"),
|
|
733
|
+
name: "equiNum"
|
|
734
|
+
}, {
|
|
735
|
+
default: o(() => [
|
|
736
|
+
t(D, {
|
|
737
|
+
style: { width: "100%" },
|
|
738
|
+
placeholder: a.$t("org.equi_num_placeholder"),
|
|
739
|
+
min: 1,
|
|
740
|
+
value: e.equiNum,
|
|
741
|
+
"onUpdate:value": l[11] || (l[11] = (u) => e.equiNum = u)
|
|
742
|
+
}, null, 8, ["placeholder", "value"])
|
|
743
|
+
]),
|
|
744
|
+
_: 1
|
|
745
|
+
}, 8, ["label"])
|
|
746
|
+
]),
|
|
747
|
+
_: 1
|
|
748
|
+
}),
|
|
749
|
+
t(s, {
|
|
750
|
+
xl: { span: 7 },
|
|
751
|
+
lg: { span: 7 },
|
|
752
|
+
md: { span: 12 },
|
|
753
|
+
sm: 24
|
|
754
|
+
}, {
|
|
755
|
+
default: o(() => [
|
|
756
|
+
t(m, {
|
|
757
|
+
label: a.$t("org.user_num"),
|
|
758
|
+
name: "userNum"
|
|
759
|
+
}, {
|
|
760
|
+
default: o(() => [
|
|
761
|
+
t(D, {
|
|
762
|
+
style: { width: "100%" },
|
|
763
|
+
placeholder: a.$t("org.user_num_placeholder"),
|
|
764
|
+
min: 1,
|
|
765
|
+
value: e.userNum,
|
|
766
|
+
"onUpdate:value": l[12] || (l[12] = (u) => e.userNum = u)
|
|
767
|
+
}, null, 8, ["placeholder", "value"])
|
|
768
|
+
]),
|
|
769
|
+
_: 1
|
|
770
|
+
}, 8, ["label"])
|
|
771
|
+
]),
|
|
772
|
+
_: 1
|
|
773
|
+
})
|
|
774
|
+
]),
|
|
775
|
+
_: 1
|
|
776
|
+
})
|
|
777
|
+
]),
|
|
778
|
+
_: 1
|
|
779
|
+
}, 8, ["model"])
|
|
780
|
+
]),
|
|
781
|
+
_: 1
|
|
782
|
+
}, 8, ["spinning"]),
|
|
783
|
+
t(Ce, { style: { width: "100%" } }, {
|
|
784
|
+
default: o(() => [
|
|
785
|
+
t(L, { onClick: y }, {
|
|
786
|
+
default: o(() => [
|
|
787
|
+
k(z(a.$t("common.btn_cancel")), 1)
|
|
788
|
+
]),
|
|
789
|
+
_: 1
|
|
790
|
+
}),
|
|
791
|
+
l[13] || (l[13] = k("\xA0\xA0 ")),
|
|
792
|
+
t(L, {
|
|
793
|
+
onClick: C,
|
|
794
|
+
type: "primary"
|
|
795
|
+
}, {
|
|
796
|
+
default: o(() => [
|
|
797
|
+
k(z(a.$t("common.btn_ok")), 1)
|
|
798
|
+
]),
|
|
799
|
+
_: 1
|
|
800
|
+
})
|
|
801
|
+
]),
|
|
802
|
+
_: 1
|
|
803
|
+
})
|
|
804
|
+
]),
|
|
805
|
+
_: 1
|
|
806
|
+
}, 8, ["title"]);
|
|
807
|
+
};
|
|
808
|
+
}
|
|
809
|
+
});
|
|
810
|
+
const Ge = /* @__PURE__ */ O(Ye, [["__scopeId", "data-v-bc1e3beb"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/org/OrgEdit.vue"]]), Qe = /* @__PURE__ */ T({
|
|
811
|
+
__name: "ResetPwdModal",
|
|
812
|
+
props: {
|
|
813
|
+
params: {
|
|
814
|
+
type: Object,
|
|
815
|
+
default: () => ({})
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
emits: ["close"],
|
|
819
|
+
setup(n, { emit: p }) {
|
|
820
|
+
const { t: r } = J(), g = p, c = n, d = b(), v = b(!0), _ = b(!0), e = S({}), i = S({
|
|
821
|
+
userPwd: "",
|
|
822
|
+
userPwd1: ""
|
|
823
|
+
}), N = () => {
|
|
824
|
+
d.value && d.value.validate().then(() => {
|
|
825
|
+
const { orgId: y } = c.params;
|
|
826
|
+
y && xe({
|
|
827
|
+
orgId: y,
|
|
828
|
+
userPwd: ke.sha256().update(i.userPwd).digest("hex")
|
|
829
|
+
}).then(() => {
|
|
830
|
+
g("close");
|
|
831
|
+
});
|
|
832
|
+
});
|
|
833
|
+
}, h = () => {
|
|
834
|
+
g("close");
|
|
835
|
+
}, w = {
|
|
836
|
+
userPwd: [
|
|
837
|
+
{
|
|
838
|
+
required: !0,
|
|
839
|
+
message: r("org.user_pwd1_msg1")
|
|
840
|
+
}
|
|
841
|
+
],
|
|
842
|
+
userPwd1: [
|
|
843
|
+
{
|
|
844
|
+
required: !0,
|
|
845
|
+
message: r("org.user_pwd2_msg1"),
|
|
846
|
+
vidator: (y, C) => C == i.userPwd ? Promise.resolve() : Promise.reject(r("org.user_pwd2_msg1"))
|
|
847
|
+
}
|
|
848
|
+
]
|
|
849
|
+
};
|
|
850
|
+
return (y, C) => {
|
|
851
|
+
const q = ne, a = se, l = ie, I = Ie;
|
|
852
|
+
return f(), $(I, {
|
|
853
|
+
onOk: N,
|
|
854
|
+
onCancel: h,
|
|
855
|
+
width: 500,
|
|
856
|
+
open: v.value,
|
|
857
|
+
"onUpdate:open": C[2] || (C[2] = (m) => v.value = m),
|
|
858
|
+
style: { top: "280px" },
|
|
859
|
+
title: y.$t("org.user_pwd2_msg"),
|
|
860
|
+
destroyOnClose: _.value
|
|
861
|
+
}, {
|
|
862
|
+
default: o(() => [
|
|
863
|
+
t(l, {
|
|
864
|
+
model: i,
|
|
865
|
+
ref_key: "formRef",
|
|
866
|
+
ref: d,
|
|
867
|
+
rules: w,
|
|
868
|
+
class: "inline-query-form clear-formctrl-lh"
|
|
869
|
+
}, {
|
|
870
|
+
default: o(() => [
|
|
871
|
+
t(a, te({
|
|
872
|
+
label: y.$t("org.user_pwd1")
|
|
873
|
+
}, e, {
|
|
874
|
+
style: { "margin-bottom": "0" },
|
|
875
|
+
name: "userPwd"
|
|
876
|
+
}), {
|
|
877
|
+
default: o(() => [
|
|
878
|
+
t(q, {
|
|
879
|
+
type: "password",
|
|
880
|
+
placeholder: y.$t("org.user_pwd1_placeholder"),
|
|
881
|
+
value: i.userPwd,
|
|
882
|
+
"onUpdate:value": C[0] || (C[0] = (m) => i.userPwd = m)
|
|
883
|
+
}, null, 8, ["placeholder", "value"])
|
|
884
|
+
]),
|
|
885
|
+
_: 1
|
|
886
|
+
}, 16, ["label"]),
|
|
887
|
+
t(a, te({
|
|
888
|
+
label: y.$t("org.user_pwd2")
|
|
889
|
+
}, e, { name: "userPwd1" }), {
|
|
890
|
+
default: o(() => [
|
|
891
|
+
t(q, {
|
|
892
|
+
type: "password",
|
|
893
|
+
placeholder: y.$t("org.user_pwd2_placeholder"),
|
|
894
|
+
value: i.userPwd1,
|
|
895
|
+
"onUpdate:value": C[1] || (C[1] = (m) => i.userPwd1 = m)
|
|
896
|
+
}, null, 8, ["placeholder", "value"])
|
|
897
|
+
]),
|
|
898
|
+
_: 1
|
|
899
|
+
}, 16, ["label"])
|
|
900
|
+
]),
|
|
901
|
+
_: 1
|
|
902
|
+
}, 8, ["model"])
|
|
903
|
+
]),
|
|
904
|
+
_: 1
|
|
905
|
+
}, 8, ["open", "title", "destroyOnClose"]);
|
|
906
|
+
};
|
|
907
|
+
}
|
|
908
|
+
}), He = /* @__PURE__ */ O(Qe, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/org/ResetPwdModal.vue"]]), Ze = "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=", Ke = { bordered: !1 }, Je = { style: { margin: "10px 0 16px" } }, We = {
|
|
909
|
+
class: "table-page-search-wrapper",
|
|
910
|
+
style: { "margin-bottom": "16px" }
|
|
911
|
+
}, Xe = ["src"], et = /* @__PURE__ */ T({
|
|
912
|
+
__name: "index",
|
|
913
|
+
setup(n) {
|
|
914
|
+
const { t: p } = J(), { getLabel: r } = Pe("CMS_STATUS"), g = b(), c = b(!1), d = b(!1), v = b({}), _ = S({}), e = b({
|
|
915
|
+
opType: "",
|
|
916
|
+
orgId: ""
|
|
917
|
+
}), i = async (s) => {
|
|
918
|
+
const A = Object.assign(s, _), { result: D } = await Fe(A);
|
|
919
|
+
return D;
|
|
920
|
+
}, N = () => {
|
|
921
|
+
c.value = !1;
|
|
922
|
+
}, h = (s) => {
|
|
923
|
+
Re.emit("change", {
|
|
924
|
+
title: "org.title" + s,
|
|
925
|
+
description: "org.description" + s
|
|
926
|
+
});
|
|
927
|
+
}, w = () => {
|
|
928
|
+
h("1"), e.value.opType = "1", d.value = !0;
|
|
929
|
+
}, y = () => {
|
|
930
|
+
g.value.refresh();
|
|
931
|
+
}, C = (s) => {
|
|
932
|
+
h("2"), e.value = { opType: "2", orgId: s.orgId }, d.value = !0;
|
|
933
|
+
}, q = (s) => {
|
|
934
|
+
h("3"), v.value = s, c.value = !0;
|
|
935
|
+
}, a = (s) => {
|
|
936
|
+
Le({ orgId: s.orgId }).then(() => {
|
|
937
|
+
g.value.refresh();
|
|
938
|
+
});
|
|
939
|
+
}, l = () => {
|
|
940
|
+
h("0"), d.value = !1, g.value.refresh();
|
|
941
|
+
}, I = () => {
|
|
942
|
+
d.value = !1;
|
|
943
|
+
}, m = S([
|
|
944
|
+
{
|
|
945
|
+
title: p("device.index1"),
|
|
946
|
+
width: "50px",
|
|
947
|
+
align: "center",
|
|
948
|
+
key: "index1"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
title: p("org.id"),
|
|
952
|
+
dataIndex: "orgId",
|
|
953
|
+
width: "150px",
|
|
954
|
+
align: "center",
|
|
955
|
+
key: "orgId"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
title: p("org.org_name"),
|
|
959
|
+
dataIndex: "orgName",
|
|
960
|
+
width: "150px",
|
|
961
|
+
align: "center",
|
|
962
|
+
key: "orgName"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
title: p("org.zone_code"),
|
|
966
|
+
dataIndex: "zoneCode",
|
|
967
|
+
width: "150px",
|
|
968
|
+
align: "center",
|
|
969
|
+
key: "zoneCode"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
title: p("org.timezone"),
|
|
973
|
+
dataIndex: "timezone",
|
|
974
|
+
width: "100px",
|
|
975
|
+
align: "center",
|
|
976
|
+
key: "timezone"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
title: p("org.user_name"),
|
|
980
|
+
dataIndex: "userId",
|
|
981
|
+
width: "150px",
|
|
982
|
+
align: "center",
|
|
983
|
+
key: "userId"
|
|
984
|
+
},
|
|
985
|
+
{
|
|
986
|
+
title: p("org.mobile"),
|
|
987
|
+
dataIndex: "mobile",
|
|
988
|
+
width: "110px",
|
|
989
|
+
align: "center",
|
|
990
|
+
key: "mobile"
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
title: p("org.user_status"),
|
|
994
|
+
dataIndex: "orgStatus",
|
|
995
|
+
width: "80px",
|
|
996
|
+
align: "center",
|
|
997
|
+
key: "orgStatus",
|
|
998
|
+
customRender: ({ record: s }) => r(s.orgStatus)
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
title: p("org.coperator"),
|
|
1002
|
+
dataIndex: "coperator",
|
|
1003
|
+
width: "80px",
|
|
1004
|
+
align: "center",
|
|
1005
|
+
key: "coperator"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
title: p("org.cdate"),
|
|
1009
|
+
dataIndex: "cdate",
|
|
1010
|
+
width: "160px",
|
|
1011
|
+
align: "center",
|
|
1012
|
+
key: "cdate"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
title: p("org.action"),
|
|
1016
|
+
key: "action"
|
|
1017
|
+
}
|
|
1018
|
+
]);
|
|
1019
|
+
return (s, A) => {
|
|
1020
|
+
const D = Ue, E = x("uc-btn-add"), M = ue, L = de, Y = x("uc-pick-label"), u = x("uc-btn-edit"), W = $e, pe = x("uc-btn-reset-pwd"), ce = x("uc-btn-remove"), ge = me;
|
|
1021
|
+
return f(), P("div", null, [
|
|
1022
|
+
t(ge, null, {
|
|
1023
|
+
default: o(() => [
|
|
1024
|
+
_e(V("div", Ke, [
|
|
1025
|
+
V("div", Je, [
|
|
1026
|
+
t(Z, null, {
|
|
1027
|
+
title: o(() => [
|
|
1028
|
+
k(z(s.$t("org.nameInput")), 1)
|
|
1029
|
+
]),
|
|
1030
|
+
default: o(() => [
|
|
1031
|
+
t(D, {
|
|
1032
|
+
placeholder: s.$t("org.nameInput"),
|
|
1033
|
+
ref: "inputSearch",
|
|
1034
|
+
value: _.orgName,
|
|
1035
|
+
"onUpdate:value": A[0] || (A[0] = (U) => _.orgName = U),
|
|
1036
|
+
onSearch: y,
|
|
1037
|
+
allowClear: "",
|
|
1038
|
+
style: { width: "350px", "margin-right": "16px" }
|
|
1039
|
+
}, null, 8, ["placeholder", "value"])
|
|
1040
|
+
]),
|
|
1041
|
+
_: 1
|
|
1042
|
+
})
|
|
1043
|
+
]),
|
|
1044
|
+
V("div", We, [
|
|
1045
|
+
t(L, null, {
|
|
1046
|
+
default: o(() => [
|
|
1047
|
+
t(M, { md: 16 }, {
|
|
1048
|
+
default: o(() => [
|
|
1049
|
+
t(E, { onClick: w }),
|
|
1050
|
+
A[1] || (A[1] = k("\xA0 "))
|
|
1051
|
+
]),
|
|
1052
|
+
_: 1
|
|
1053
|
+
})
|
|
1054
|
+
]),
|
|
1055
|
+
_: 1
|
|
1056
|
+
})
|
|
1057
|
+
]),
|
|
1058
|
+
t(ze, {
|
|
1059
|
+
ref_key: "tableRef",
|
|
1060
|
+
ref: g,
|
|
1061
|
+
data: i,
|
|
1062
|
+
rowKey: "cdate",
|
|
1063
|
+
columns: m
|
|
1064
|
+
}, {
|
|
1065
|
+
bodyCell: o(({ record: U, column: j }) => [
|
|
1066
|
+
j.key === "index1" ? (f(), P("img", {
|
|
1067
|
+
key: 0,
|
|
1068
|
+
src: ye(Ze),
|
|
1069
|
+
alt: "\u7EC4\u7EC7",
|
|
1070
|
+
style: { width: "25px", height: "25px" }
|
|
1071
|
+
}, null, 8, Xe)) : R("v-if", !0),
|
|
1072
|
+
j.key === "cdate" ? (f(), $(Y, {
|
|
1073
|
+
key: 1,
|
|
1074
|
+
defaultValue: U.cdate
|
|
1075
|
+
}, null, 8, ["defaultValue"])) : R("v-if", !0),
|
|
1076
|
+
j.key === "userId" ? (f(), P(F, { key: 2 }, [
|
|
1077
|
+
k(z(U.sysUser.userId), 1)
|
|
1078
|
+
], 64)) : R("v-if", !0),
|
|
1079
|
+
j.key === "mobile" ? (f(), P(F, { key: 3 }, [
|
|
1080
|
+
k(z(U.sysUser.mobile), 1)
|
|
1081
|
+
], 64)) : R("v-if", !0),
|
|
1082
|
+
j.key === "action" ? (f(), P(F, { key: 4 }, [
|
|
1083
|
+
t(u, {
|
|
1084
|
+
onClick: (X) => C(U),
|
|
1085
|
+
type: "a"
|
|
1086
|
+
}, null, 8, ["onClick"]),
|
|
1087
|
+
t(W, { type: "vertical" }),
|
|
1088
|
+
t(pe, {
|
|
1089
|
+
onClick: (X) => q(U),
|
|
1090
|
+
type: "a"
|
|
1091
|
+
}, null, 8, ["onClick"]),
|
|
1092
|
+
t(W, { type: "vertical" }),
|
|
1093
|
+
t(ce, {
|
|
1094
|
+
onClick: (X) => a(U),
|
|
1095
|
+
type: "a"
|
|
1096
|
+
}, null, 8, ["onClick"])
|
|
1097
|
+
], 64)) : R("v-if", !0)
|
|
1098
|
+
]),
|
|
1099
|
+
_: 1
|
|
1100
|
+
}, 8, ["columns"])
|
|
1101
|
+
], 512), [
|
|
1102
|
+
[fe, !d.value]
|
|
1103
|
+
])
|
|
1104
|
+
]),
|
|
1105
|
+
_: 1
|
|
1106
|
+
}),
|
|
1107
|
+
c.value ? (f(), $(He, {
|
|
1108
|
+
key: 0,
|
|
1109
|
+
params: v.value,
|
|
1110
|
+
onClose: N
|
|
1111
|
+
}, null, 8, ["params"])) : R("v-if", !0),
|
|
1112
|
+
d.value ? (f(), $(Ge, {
|
|
1113
|
+
key: 1,
|
|
1114
|
+
onOk: l,
|
|
1115
|
+
onCancel: I,
|
|
1116
|
+
params: e.value
|
|
1117
|
+
}, null, 8, ["params"])) : R("v-if", !0)
|
|
1118
|
+
]);
|
|
1119
|
+
};
|
|
1120
|
+
}
|
|
1121
|
+
}), nt = /* @__PURE__ */ O(et, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/org/index.vue"]]);
|
|
1122
|
+
export {
|
|
1123
|
+
nt as default
|
|
1124
|
+
};
|