@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.
- package/README.md +155 -0
- package/dist/404.e6ab6ba0.mjs +10 -0
- package/dist/Card.71482621.mjs +1078 -0
- package/dist/DictEx.754c617b.mjs +156 -0
- package/dist/FooterToolBar.2546fb1f.mjs +33 -0
- package/dist/RegionSelect.5272534b.mjs +71 -0
- package/dist/Standard.64ae6a8d.mjs +113 -0
- package/dist/WebClient.0ac67ce0.mjs +153 -0
- package/dist/assets/FooterToolBar.d4297046.css +1 -0
- package/dist/assets/Standard.badeec91.css +1 -0
- package/dist/assets/WebClient.2a3e464e.css +1 -0
- package/dist/assets/index.01a0fb63.css +1 -0
- package/dist/assets/index.19e5ba4c.css +1 -0
- package/dist/assets/index.2164de3b.css +1 -0
- package/dist/assets/index.269f5360.css +1 -0
- package/dist/assets/index.28bdbdc3.css +1 -0
- package/dist/assets/index.3150518d.css +1 -0
- package/dist/assets/index.3a0797c4.css +1 -0
- package/dist/assets/index.53c37fa8.css +1 -0
- package/dist/assets/index.7c8e2d8f.css +1 -0
- package/dist/assets/index.b965b94b.css +1 -0
- package/dist/assets/index.fb7724ee.css +1 -0
- package/dist/index.003313e6.mjs +69436 -0
- package/dist/index.05ef920d.mjs +1129 -0
- package/dist/index.1953dbda.mjs +498 -0
- package/dist/index.1af0e30d.mjs +10 -0
- package/dist/index.2242d1a7.mjs +125 -0
- package/dist/index.2291c8e2.mjs +125 -0
- package/dist/index.3c2af165.mjs +761 -0
- package/dist/index.919ac6b4.mjs +7431 -0
- package/dist/index.941a34c0.mjs +874 -0
- package/dist/index.96479524.mjs +754 -0
- package/dist/index.9803c44f.mjs +125 -0
- package/dist/index.a000e9cf.mjs +1445 -0
- package/dist/index.b3eb7c5d.mjs +10 -0
- package/dist/index.c9138cba.mjs +1104 -0
- package/dist/index.ceea88a4.mjs +1073 -0
- package/dist/index.da7dd593.mjs +10 -0
- package/dist/index.e271ee9d.mjs +643 -0
- package/dist/index.e7802e27.mjs +786 -0
- package/dist/index.ef2e93a1.mjs +386 -0
- package/dist/index.f701b909.mjs +142 -0
- package/dist/index.f9becca6.mjs +6 -0
- package/dist/index.fa4bb855.mjs +7645 -0
- package/dist/index.html +1 -0
- package/dist/use-dict-by-type.c90c1d31.mjs +24 -0
- package/dist/usercenter.umd.js +6237 -0
- package/package.json +26 -0
- package/version.md +2 -0
|
@@ -0,0 +1,1445 @@
|
|
|
1
|
+
import { bB as Te, bC as pe, bD as Fe, bE as je, _ as Y, C as L, aD as me, aF as fe, bF as Ee, D as ue, I as _e, b as he, F as ge, B as ve, bv as ye, N as be, aZ as Me, h as Ve, aO as Ae, aP as Le, a$ as Be, aY as qe, H as ze, L as Ke, M as Ze, a_ as He, O as We } from "./index.003313e6.mjs";
|
|
2
|
+
import { defineComponent as G, ref as f, computed as se, reactive as V, watch as ae, onMounted as de, openBlock as $, createElementBlock as j, createBlock as A, normalizeStyle as Xe, createCommentVNode as M, toDisplayString as m, createVNode as e, withCtx as t, Fragment as we, renderList as Ie, createTextVNode as g, mergeProps as F, createElementVNode as H, withDirectives as W, vShow as X, nextTick as ie } from "vue";
|
|
3
|
+
import { S as Ye, _ as Ge } from "./index.fa4bb855.mjs";
|
|
4
|
+
import { _ as Je } from "./index.c9138cba.mjs";
|
|
5
|
+
import { D as oe } from "./DictEx.754c617b.mjs";
|
|
6
|
+
import { _ as ke, a as Se } from "./index.f9becca6.mjs";
|
|
7
|
+
import { C as Qe } from "./Card.71482621.mjs";
|
|
8
|
+
import './assets/index.3150518d.css';const et = { key: 1 }, tt = /* @__PURE__ */ G({
|
|
9
|
+
__name: "BranchSelect",
|
|
10
|
+
props: {
|
|
11
|
+
value: {
|
|
12
|
+
type: [String, Array],
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
disabled: {
|
|
16
|
+
type: Boolean,
|
|
17
|
+
default: !1
|
|
18
|
+
},
|
|
19
|
+
placeholder: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: ""
|
|
22
|
+
},
|
|
23
|
+
kind: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "dict"
|
|
26
|
+
},
|
|
27
|
+
type: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
emits: ["change", "loaded", "click", "update:value"],
|
|
33
|
+
setup(i, { expose: S, emit: _ }) {
|
|
34
|
+
const r = Te(), v = _, p = i, y = f(), c = se(() => r.branchId), a = f(!1), n = f(!1), s = V({ width: "100%" }), w = f(200), I = f([]), x = f([]), k = V({
|
|
35
|
+
branchId: ""
|
|
36
|
+
}), C = async () => {
|
|
37
|
+
I.value = [], x.value = [];
|
|
38
|
+
const { result: h } = await pe();
|
|
39
|
+
h && (I.value = Fe(h), v("loaded"));
|
|
40
|
+
}, D = () => {
|
|
41
|
+
a.value = !1, v("click");
|
|
42
|
+
}, B = () => {
|
|
43
|
+
y.value && y.value.focus(), a.value = !0;
|
|
44
|
+
}, q = () => {
|
|
45
|
+
n.value = !0;
|
|
46
|
+
}, z = (h, b) => {
|
|
47
|
+
const U = [];
|
|
48
|
+
b.forEach((Q) => {
|
|
49
|
+
U.push(Q.label);
|
|
50
|
+
});
|
|
51
|
+
const l = U.join("/"), u = l.length, E = l.match(/ /g) ? l.match(/ /g).length : 0, N = l.match(/[a-zA-Z]/g) ? l.match(/[a-zA-Z]/g).length : 0, T = l.match(/[\d]/g) ? l.match(/[\d]/g).length : 0, O = E + N + T, te = (u - O + 1) * 16 + O * 8;
|
|
52
|
+
w.value = te, v("change", h[h.length - 1]), v("update:value", h[h.length - 1]);
|
|
53
|
+
}, K = async (h) => {
|
|
54
|
+
const b = h[h.length - 1];
|
|
55
|
+
b.loading = !0, k.branchId = b.value;
|
|
56
|
+
const { result: U } = await je(k);
|
|
57
|
+
b.loading = !1, b.children = U;
|
|
58
|
+
}, R = (h, b) => {
|
|
59
|
+
for (let U = 0; U < h.length; U++) {
|
|
60
|
+
const l = h[U];
|
|
61
|
+
if (l.value == b)
|
|
62
|
+
return l.label;
|
|
63
|
+
if (b.indexOf(l.value) == 0)
|
|
64
|
+
return R(h[U].children, b);
|
|
65
|
+
}
|
|
66
|
+
}, J = (h) => R(I.value, h);
|
|
67
|
+
return ae(
|
|
68
|
+
() => p.value,
|
|
69
|
+
(h) => {
|
|
70
|
+
const b = parseInt(c.value.length / 3) - 1, U = [];
|
|
71
|
+
for (let l = b; l < h.length / 3; l++)
|
|
72
|
+
U.push(h.substr(0, (l + 1) * 3));
|
|
73
|
+
x.value = U;
|
|
74
|
+
}
|
|
75
|
+
), ae(
|
|
76
|
+
() => x,
|
|
77
|
+
(h) => {
|
|
78
|
+
h.length > 0 ? (v("change", h[h.length - 1]), v("update:value", h[h.length - 1])) : (v("change"), v("update:value"));
|
|
79
|
+
}
|
|
80
|
+
), S({
|
|
81
|
+
changeVisible: D,
|
|
82
|
+
focus: B,
|
|
83
|
+
autofocus: q,
|
|
84
|
+
getLabel: J
|
|
85
|
+
}), de(() => {
|
|
86
|
+
C();
|
|
87
|
+
}), (h, b) => {
|
|
88
|
+
const U = Je;
|
|
89
|
+
return $(), j("div", null, [
|
|
90
|
+
i.kind == "dict" && I.value.length > 0 ? ($(), A(U, {
|
|
91
|
+
key: 0,
|
|
92
|
+
ref_key: "acascaderRef",
|
|
93
|
+
ref: y,
|
|
94
|
+
open: a.value,
|
|
95
|
+
options: I.value,
|
|
96
|
+
loadData: K,
|
|
97
|
+
showSearch: !0,
|
|
98
|
+
allowClear: !0,
|
|
99
|
+
treeDefaultExpandedKeys: !0,
|
|
100
|
+
value: x.value,
|
|
101
|
+
"onUpdate:value": b[0] || (b[0] = (l) => x.value = l),
|
|
102
|
+
style: Xe(
|
|
103
|
+
i.type === "expand" ? { width: w.value + "px", minWidth: "200px" } : s
|
|
104
|
+
),
|
|
105
|
+
placeholder: i.placeholder !== "" ? i.placeholder : h.$t("dept.tree_placeholder"),
|
|
106
|
+
disabled: i.disabled,
|
|
107
|
+
onDropdownVisibleChange: D,
|
|
108
|
+
changeOnSelect: "",
|
|
109
|
+
onChange: z,
|
|
110
|
+
onFocus: b[1] || (b[1] = () => a.value = !0),
|
|
111
|
+
onBlur: b[2] || (b[2] = () => a.value = !1)
|
|
112
|
+
}, null, 8, ["open", "options", "value", "style", "placeholder", "disabled"])) : M("v-if", !0),
|
|
113
|
+
i.kind == "text" ? ($(), j("span", et, m(J(i.value)), 1)) : M("v-if", !0)
|
|
114
|
+
]);
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
}), Ce = /* @__PURE__ */ Y(tt, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/public/BranchSelect.vue"]]);
|
|
118
|
+
function lt(i) {
|
|
119
|
+
return L({
|
|
120
|
+
url: "/api/sys/user/search-list",
|
|
121
|
+
method: "get",
|
|
122
|
+
params: i
|
|
123
|
+
});
|
|
124
|
+
}
|
|
125
|
+
function $e(i) {
|
|
126
|
+
return L({
|
|
127
|
+
url: "/api/sys/role/public-timezone-combo",
|
|
128
|
+
method: "get",
|
|
129
|
+
params: i
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function at(i) {
|
|
133
|
+
return L({
|
|
134
|
+
url: "/api/sys/user/switch",
|
|
135
|
+
method: "post",
|
|
136
|
+
params: i
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function st(i) {
|
|
140
|
+
return L({
|
|
141
|
+
url: "/api/sys/user/delete",
|
|
142
|
+
method: "post",
|
|
143
|
+
params: i
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
function nt(i) {
|
|
147
|
+
return L({
|
|
148
|
+
url: "/api/sys/user/update-load",
|
|
149
|
+
method: "get",
|
|
150
|
+
params: i
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
function rt(i) {
|
|
154
|
+
return L({
|
|
155
|
+
url: "/api/sys/user/update",
|
|
156
|
+
method: "post",
|
|
157
|
+
params: i
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
function ot(i) {
|
|
161
|
+
return L({
|
|
162
|
+
url: "/api/sys/user/insert",
|
|
163
|
+
method: "post",
|
|
164
|
+
params: i
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
function ut(i) {
|
|
168
|
+
return L({
|
|
169
|
+
url: "/api/sys/user/detail",
|
|
170
|
+
method: "get",
|
|
171
|
+
params: i
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
function dt(i) {
|
|
175
|
+
return L({
|
|
176
|
+
url: "/api/sys/user/resetpwd",
|
|
177
|
+
method: "post",
|
|
178
|
+
params: i
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
const it = /* @__PURE__ */ G({
|
|
182
|
+
__name: "RoleSelect",
|
|
183
|
+
props: {
|
|
184
|
+
mode: {
|
|
185
|
+
type: String,
|
|
186
|
+
default: "default"
|
|
187
|
+
},
|
|
188
|
+
value: {
|
|
189
|
+
type: Array,
|
|
190
|
+
default: null
|
|
191
|
+
},
|
|
192
|
+
roleId: {
|
|
193
|
+
type: String,
|
|
194
|
+
default: ""
|
|
195
|
+
},
|
|
196
|
+
placeholder: {
|
|
197
|
+
type: String,
|
|
198
|
+
default: ""
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
emits: ["change", "changeRoleIdOthers", "update:value"],
|
|
202
|
+
setup(i, { emit: S }) {
|
|
203
|
+
const _ = S, r = i, v = f([]), p = f([]), y = se(() => {
|
|
204
|
+
var s;
|
|
205
|
+
return r.roleId ? (s = p.value) == null ? void 0 : s.filter((w) => w.value !== r.roleId) : p.value;
|
|
206
|
+
}), c = async () => {
|
|
207
|
+
const { result: s } = await $e({});
|
|
208
|
+
p.value = Object.keys(s).map((w) => ({
|
|
209
|
+
label: s[w],
|
|
210
|
+
value: w
|
|
211
|
+
}));
|
|
212
|
+
}, a = (s, w) => w.componentOptions.children[0].text.toLowerCase().indexOf(s.toLowerCase()) >= 0, n = (s) => {
|
|
213
|
+
typeof s == "string" ? (_("change", [s]), _("update:value", [s])) : (_("change", s), _("update:value", s));
|
|
214
|
+
};
|
|
215
|
+
return ae(
|
|
216
|
+
() => r.value,
|
|
217
|
+
(s) => {
|
|
218
|
+
s && s[0] && (v.value = s);
|
|
219
|
+
}
|
|
220
|
+
), de(() => {
|
|
221
|
+
c();
|
|
222
|
+
}), (s, w) => {
|
|
223
|
+
const I = me, x = fe;
|
|
224
|
+
return $(), j("div", null, [
|
|
225
|
+
e(x, {
|
|
226
|
+
"show-search": "",
|
|
227
|
+
style: { width: "100%" },
|
|
228
|
+
value: v.value,
|
|
229
|
+
"onUpdate:value": w[0] || (w[0] = (k) => v.value = k),
|
|
230
|
+
placeholder: i.placeholder,
|
|
231
|
+
mode: i.mode,
|
|
232
|
+
allowClear: !0,
|
|
233
|
+
"option-filter-prop": "children",
|
|
234
|
+
"filter-option": a,
|
|
235
|
+
onChange: n
|
|
236
|
+
}, {
|
|
237
|
+
default: t(() => [
|
|
238
|
+
($(!0), j(we, null, Ie(y.value, ({ label: k, value: C }) => ($(), A(I, {
|
|
239
|
+
key: C,
|
|
240
|
+
value: C
|
|
241
|
+
}, {
|
|
242
|
+
default: t(() => [
|
|
243
|
+
g(m(k), 1)
|
|
244
|
+
]),
|
|
245
|
+
_: 2
|
|
246
|
+
}, 1032, ["value"]))), 128))
|
|
247
|
+
]),
|
|
248
|
+
_: 1
|
|
249
|
+
}, 8, ["value", "placeholder", "mode"])
|
|
250
|
+
]);
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
}), ce = /* @__PURE__ */ Y(it, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/public/RoleSelect.vue"]]), ct = /* @__PURE__ */ G({
|
|
254
|
+
__name: "DeptSelect",
|
|
255
|
+
props: {
|
|
256
|
+
mode: {
|
|
257
|
+
type: String,
|
|
258
|
+
default: "default"
|
|
259
|
+
},
|
|
260
|
+
value: {
|
|
261
|
+
type: Array,
|
|
262
|
+
default: null
|
|
263
|
+
},
|
|
264
|
+
placeholder: {
|
|
265
|
+
type: String,
|
|
266
|
+
default: ""
|
|
267
|
+
},
|
|
268
|
+
branchId: {
|
|
269
|
+
type: String,
|
|
270
|
+
default: ""
|
|
271
|
+
}
|
|
272
|
+
},
|
|
273
|
+
emits: ["change", "changeDeptId", "update:value"],
|
|
274
|
+
setup(i, { emit: S }) {
|
|
275
|
+
const _ = S, r = i, v = f([]), p = f([]), y = async () => {
|
|
276
|
+
const { result: a } = await Ee({ branchId: r.branchId });
|
|
277
|
+
p.value = a, (!p.value || p.value && p.value.length === 0) && (v.value = [], _("changeDeptId", []));
|
|
278
|
+
}, c = (a) => {
|
|
279
|
+
typeof a == "string" ? (_("change", [a]), _("update:value", [a])) : (_("change", a), _("update:value", a));
|
|
280
|
+
};
|
|
281
|
+
return ae(
|
|
282
|
+
() => r.value,
|
|
283
|
+
(a) => {
|
|
284
|
+
a && a[0] && (v.value = a);
|
|
285
|
+
}
|
|
286
|
+
), ae(
|
|
287
|
+
() => r.branchId,
|
|
288
|
+
(a, n) => {
|
|
289
|
+
n !== "" && (v.value = [], _("changeDeptId", a)), y();
|
|
290
|
+
}
|
|
291
|
+
), (a, n) => {
|
|
292
|
+
const s = me, w = fe;
|
|
293
|
+
return $(), j("div", null, [
|
|
294
|
+
e(w, {
|
|
295
|
+
style: { width: "100%" },
|
|
296
|
+
value: v.value,
|
|
297
|
+
"onUpdate:value": n[0] || (n[0] = (I) => v.value = I),
|
|
298
|
+
placeholder: i.placeholder,
|
|
299
|
+
mode: i.mode,
|
|
300
|
+
allowClear: !0,
|
|
301
|
+
onChange: c
|
|
302
|
+
}, {
|
|
303
|
+
default: t(() => [
|
|
304
|
+
($(!0), j(we, null, Ie(p.value, (I, x) => ($(), A(s, {
|
|
305
|
+
key: x,
|
|
306
|
+
value: I.deptId
|
|
307
|
+
}, {
|
|
308
|
+
default: t(() => [
|
|
309
|
+
g(m(I.deptName), 1)
|
|
310
|
+
]),
|
|
311
|
+
_: 2
|
|
312
|
+
}, 1032, ["value"]))), 128))
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
}, 8, ["value", "placeholder", "mode"])
|
|
316
|
+
]);
|
|
317
|
+
};
|
|
318
|
+
}
|
|
319
|
+
}), pt = /* @__PURE__ */ Y(ct, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/public/DeptSelect.vue"]]), mt = { style: {
|
|
320
|
+
position: "absolute",
|
|
321
|
+
right: 0,
|
|
322
|
+
bottom: 0,
|
|
323
|
+
width: "100%",
|
|
324
|
+
borderTop: "1px solid #e9e9e9",
|
|
325
|
+
padding: "10px 16px",
|
|
326
|
+
background: "#fff",
|
|
327
|
+
textAlign: "center",
|
|
328
|
+
zIndex: 1
|
|
329
|
+
} }, ft = /* @__PURE__ */ G({
|
|
330
|
+
__name: "UserEdit",
|
|
331
|
+
emits: ["ok"],
|
|
332
|
+
setup(i, { expose: S, emit: _ }) {
|
|
333
|
+
const { t: r } = ue(), v = _, p = f(), y = f(!1), c = f(!1), a = V({
|
|
334
|
+
userCode: "",
|
|
335
|
+
userName: "",
|
|
336
|
+
branchId: "",
|
|
337
|
+
deptId: [],
|
|
338
|
+
userDesc: "",
|
|
339
|
+
mobile: "",
|
|
340
|
+
email: "",
|
|
341
|
+
roleId: [],
|
|
342
|
+
roleIdOthers: []
|
|
343
|
+
}), n = V({}), s = V({}), w = f(""), I = f(""), x = f([]), k = V({
|
|
344
|
+
labelCol: { lg: { span: 7 }, sm: { span: 7 } },
|
|
345
|
+
wrapperCol: { lg: { span: 14 }, sm: { span: 14 } }
|
|
346
|
+
}), C = (l) => {
|
|
347
|
+
}, D = (l) => {
|
|
348
|
+
}, B = (l) => {
|
|
349
|
+
I.value = l.join(",");
|
|
350
|
+
}, q = (l) => {
|
|
351
|
+
}, z = (l, u) => /^[a-zA-Z0-9]+$/.test(u) ? /^.{1,20}$/.test(u) ? Promise.resolve() : Promise.reject(r("user.user_code_msg3")) : Promise.reject(r("user.user_code_msg2")), K = {
|
|
352
|
+
userName: [
|
|
353
|
+
{
|
|
354
|
+
required: !0,
|
|
355
|
+
message: r("user.user_name_msg1"),
|
|
356
|
+
validator: (l, u) => /^\s+$/.test(u) ? Promise.reject(r("user.user_name_msg1")) : Promise.resolve()
|
|
357
|
+
}
|
|
358
|
+
],
|
|
359
|
+
branchId: [
|
|
360
|
+
{
|
|
361
|
+
required: !0,
|
|
362
|
+
message: r("user.branch_msg1"),
|
|
363
|
+
validator: (l, u) => /^\s+$/.test(u) ? Promise.reject(r("user.branch_msg1")) : Promise.resolve()
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
roleId: [
|
|
367
|
+
{
|
|
368
|
+
required: !0,
|
|
369
|
+
message: r("user.role_msg1"),
|
|
370
|
+
trigger: "change"
|
|
371
|
+
}
|
|
372
|
+
]
|
|
373
|
+
}, R = () => {
|
|
374
|
+
p.value && p.value.resetFields();
|
|
375
|
+
}, J = async () => {
|
|
376
|
+
const { result: l } = await nt({ userId: s.userId });
|
|
377
|
+
Object.assign(n, l, {
|
|
378
|
+
deptId: l.deptId ? [l.deptId + ""] : [],
|
|
379
|
+
roleId: l.roleId ? [l.roleId + ""] : [],
|
|
380
|
+
roleIdOthers: l.roleIdOthers ? l.roleIdOthers.split(",") : []
|
|
381
|
+
}), c.value = l.businessFlag === "1", I.value = l.roleId, x.value = l.roleIdOthers ? l.roleIdOthers.split(",") : [], Object.assign(a, n);
|
|
382
|
+
}, h = (l) => {
|
|
383
|
+
Object.assign(s, l), R(), l.opType == "2" && J(), y.value = !0;
|
|
384
|
+
}, b = () => {
|
|
385
|
+
y.value = !1, I.value = "", w.value = "", R(), Object.assign(n, {
|
|
386
|
+
userCode: "",
|
|
387
|
+
userName: "",
|
|
388
|
+
branchId: "",
|
|
389
|
+
deptId: [],
|
|
390
|
+
userDesc: "",
|
|
391
|
+
mobile: "",
|
|
392
|
+
email: "",
|
|
393
|
+
roleId: [],
|
|
394
|
+
roleIdOthers: []
|
|
395
|
+
});
|
|
396
|
+
}, U = () => {
|
|
397
|
+
p.value && p.value.validate().then(async () => {
|
|
398
|
+
const l = Object.assign({}, a);
|
|
399
|
+
if (l.roleId = l.roleId[0], l.deptId && l.deptId.length > 0 ? l.deptId = l.deptId[0] : l.deptId = "", l.roleIdOthers = l.roleIdOthers.join(","), s.opType == "2") {
|
|
400
|
+
const u = await rt(l);
|
|
401
|
+
u.result && (v("ok", u), b());
|
|
402
|
+
} else {
|
|
403
|
+
const u = await ot(l);
|
|
404
|
+
u.result && (v("ok", u), b());
|
|
405
|
+
}
|
|
406
|
+
});
|
|
407
|
+
};
|
|
408
|
+
return S({
|
|
409
|
+
showModal: h
|
|
410
|
+
}), (l, u) => {
|
|
411
|
+
const E = _e, N = he, T = ke, O = Se, te = ge, Q = ve, o = ye;
|
|
412
|
+
return $(), A(o, {
|
|
413
|
+
open: y.value,
|
|
414
|
+
"onUpdate:open": u[10] || (u[10] = (d) => y.value = d),
|
|
415
|
+
onClose: b,
|
|
416
|
+
width: 800,
|
|
417
|
+
title: l.$t("user.title" + s.opType),
|
|
418
|
+
destroyOnClose: !0
|
|
419
|
+
}, {
|
|
420
|
+
default: t(() => [
|
|
421
|
+
e(te, {
|
|
422
|
+
model: a,
|
|
423
|
+
ref_key: "formRef",
|
|
424
|
+
ref: p,
|
|
425
|
+
rules: K,
|
|
426
|
+
"label-col": { span: 8 },
|
|
427
|
+
"wrapper-col": { span: 16 }
|
|
428
|
+
}, {
|
|
429
|
+
default: t(() => [
|
|
430
|
+
s.opType == "2" ? ($(), A(O, { key: 0 }, {
|
|
431
|
+
default: t(() => [
|
|
432
|
+
e(T, { span: 24 }, {
|
|
433
|
+
default: t(() => [
|
|
434
|
+
e(N, F({
|
|
435
|
+
label: l.$t("user.user_id")
|
|
436
|
+
}, k, { name: "userCode" }), {
|
|
437
|
+
default: t(() => [
|
|
438
|
+
e(E, {
|
|
439
|
+
placeholder: l.$t("user.user_id_placeholder"),
|
|
440
|
+
disabled: !0,
|
|
441
|
+
value: a.userCode,
|
|
442
|
+
"onUpdate:value": u[0] || (u[0] = (d) => a.userCode = d)
|
|
443
|
+
}, null, 8, ["placeholder", "value"])
|
|
444
|
+
]),
|
|
445
|
+
_: 1
|
|
446
|
+
}, 16, ["label"])
|
|
447
|
+
]),
|
|
448
|
+
_: 1
|
|
449
|
+
})
|
|
450
|
+
]),
|
|
451
|
+
_: 1
|
|
452
|
+
})) : M("v-if", !0),
|
|
453
|
+
s.opType == "1" ? ($(), A(O, { key: 1 }, {
|
|
454
|
+
default: t(() => [
|
|
455
|
+
e(T, { span: 24 }, {
|
|
456
|
+
default: t(() => [
|
|
457
|
+
e(N, F({
|
|
458
|
+
label: l.$t("user.user_id")
|
|
459
|
+
}, k, { name: "userCode" }), {
|
|
460
|
+
default: t(() => [
|
|
461
|
+
e(E, {
|
|
462
|
+
placeholder: l.$t("user.user_id_placeholder"),
|
|
463
|
+
value: a.userCode,
|
|
464
|
+
"onUpdate:value": u[1] || (u[1] = (d) => a.userCode = d),
|
|
465
|
+
rules: [
|
|
466
|
+
{
|
|
467
|
+
required: !0,
|
|
468
|
+
message: l.$t("user.user_id_msg1"),
|
|
469
|
+
validator: z
|
|
470
|
+
}
|
|
471
|
+
]
|
|
472
|
+
}, null, 8, ["placeholder", "value", "rules"])
|
|
473
|
+
]),
|
|
474
|
+
_: 1
|
|
475
|
+
}, 16, ["label"])
|
|
476
|
+
]),
|
|
477
|
+
_: 1
|
|
478
|
+
})
|
|
479
|
+
]),
|
|
480
|
+
_: 1
|
|
481
|
+
})) : M("v-if", !0),
|
|
482
|
+
e(O, null, {
|
|
483
|
+
default: t(() => [
|
|
484
|
+
e(T, { span: 24 }, {
|
|
485
|
+
default: t(() => [
|
|
486
|
+
e(N, F({
|
|
487
|
+
label: l.$t("user.user_name")
|
|
488
|
+
}, k, { name: "userName" }), {
|
|
489
|
+
default: t(() => [
|
|
490
|
+
e(E, {
|
|
491
|
+
placeholder: l.$t("user.user_name_placeholder"),
|
|
492
|
+
value: a.userName,
|
|
493
|
+
"onUpdate:value": u[2] || (u[2] = (d) => a.userName = d)
|
|
494
|
+
}, null, 8, ["placeholder", "value"])
|
|
495
|
+
]),
|
|
496
|
+
_: 1
|
|
497
|
+
}, 16, ["label"])
|
|
498
|
+
]),
|
|
499
|
+
_: 1
|
|
500
|
+
})
|
|
501
|
+
]),
|
|
502
|
+
_: 1
|
|
503
|
+
}),
|
|
504
|
+
e(O, null, {
|
|
505
|
+
default: t(() => [
|
|
506
|
+
e(T, { span: 24 }, {
|
|
507
|
+
default: t(() => [
|
|
508
|
+
e(N, F({
|
|
509
|
+
label: l.$t("user.branchId")
|
|
510
|
+
}, k, { name: "branchId" }), {
|
|
511
|
+
default: t(() => [
|
|
512
|
+
e(Ce, {
|
|
513
|
+
disabled: c.value,
|
|
514
|
+
value: a.branchId,
|
|
515
|
+
"onUpdate:value": u[3] || (u[3] = (d) => a.branchId = d),
|
|
516
|
+
onChange: C
|
|
517
|
+
}, null, 8, ["disabled", "value"])
|
|
518
|
+
]),
|
|
519
|
+
_: 1
|
|
520
|
+
}, 16, ["label"])
|
|
521
|
+
]),
|
|
522
|
+
_: 1
|
|
523
|
+
})
|
|
524
|
+
]),
|
|
525
|
+
_: 1
|
|
526
|
+
}),
|
|
527
|
+
e(O, null, {
|
|
528
|
+
default: t(() => [
|
|
529
|
+
e(T, { span: 24 }, {
|
|
530
|
+
default: t(() => [
|
|
531
|
+
e(N, F({
|
|
532
|
+
label: l.$t("user.depyId")
|
|
533
|
+
}, k, { name: "deptId" }), {
|
|
534
|
+
default: t(() => [
|
|
535
|
+
e(pt, {
|
|
536
|
+
placeholder: l.$t("user.depyId_placeholder"),
|
|
537
|
+
mode: "default",
|
|
538
|
+
value: a.deptId,
|
|
539
|
+
"onUpdate:value": u[4] || (u[4] = (d) => a.deptId = d),
|
|
540
|
+
branchId: a.branchId,
|
|
541
|
+
onChangeDeptId: D
|
|
542
|
+
}, null, 8, ["placeholder", "value", "branchId"])
|
|
543
|
+
]),
|
|
544
|
+
_: 1
|
|
545
|
+
}, 16, ["label"])
|
|
546
|
+
]),
|
|
547
|
+
_: 1
|
|
548
|
+
})
|
|
549
|
+
]),
|
|
550
|
+
_: 1
|
|
551
|
+
}),
|
|
552
|
+
e(O, null, {
|
|
553
|
+
default: t(() => [
|
|
554
|
+
e(T, { span: 24 }, {
|
|
555
|
+
default: t(() => [
|
|
556
|
+
e(N, F({
|
|
557
|
+
label: l.$t("user.role")
|
|
558
|
+
}, k, { name: "roleId" }), {
|
|
559
|
+
default: t(() => [
|
|
560
|
+
e(ce, {
|
|
561
|
+
placeholder: l.$t("user.role_placeholder"),
|
|
562
|
+
mode: "default",
|
|
563
|
+
value: a.roleId,
|
|
564
|
+
"onUpdate:value": u[5] || (u[5] = (d) => a.roleId = d),
|
|
565
|
+
onChange: B
|
|
566
|
+
}, null, 8, ["placeholder", "value"])
|
|
567
|
+
]),
|
|
568
|
+
_: 1
|
|
569
|
+
}, 16, ["label"])
|
|
570
|
+
]),
|
|
571
|
+
_: 1
|
|
572
|
+
})
|
|
573
|
+
]),
|
|
574
|
+
_: 1
|
|
575
|
+
}),
|
|
576
|
+
e(O, null, {
|
|
577
|
+
default: t(() => [
|
|
578
|
+
e(T, { span: 24 }, {
|
|
579
|
+
default: t(() => [
|
|
580
|
+
e(N, F({
|
|
581
|
+
label: l.$t("user.role_other")
|
|
582
|
+
}, k, { name: "roleIdOthers" }), {
|
|
583
|
+
default: t(() => [
|
|
584
|
+
e(ce, {
|
|
585
|
+
placeholder: l.$t("user.role_other_placeholder"),
|
|
586
|
+
mode: "multiple",
|
|
587
|
+
roleId: String(I.value),
|
|
588
|
+
value: a.roleIdOthers,
|
|
589
|
+
"onUpdate:value": u[6] || (u[6] = (d) => a.roleIdOthers = d),
|
|
590
|
+
onChangeRoleIdOthers: q
|
|
591
|
+
}, null, 8, ["placeholder", "roleId", "value"])
|
|
592
|
+
]),
|
|
593
|
+
_: 1
|
|
594
|
+
}, 16, ["label"])
|
|
595
|
+
]),
|
|
596
|
+
_: 1
|
|
597
|
+
})
|
|
598
|
+
]),
|
|
599
|
+
_: 1
|
|
600
|
+
}),
|
|
601
|
+
e(O, null, {
|
|
602
|
+
default: t(() => [
|
|
603
|
+
e(T, { span: 24 }, {
|
|
604
|
+
default: t(() => [
|
|
605
|
+
e(N, F({
|
|
606
|
+
label: l.$t("user.mobile")
|
|
607
|
+
}, k, { name: "mobile" }), {
|
|
608
|
+
default: t(() => [
|
|
609
|
+
e(E, {
|
|
610
|
+
type: "number",
|
|
611
|
+
placeholder: l.$t("user.mobile_placeholder"),
|
|
612
|
+
disabled: s.opType == "2",
|
|
613
|
+
value: a.mobile,
|
|
614
|
+
"onUpdate:value": u[7] || (u[7] = (d) => a.mobile = d)
|
|
615
|
+
}, null, 8, ["placeholder", "disabled", "value"])
|
|
616
|
+
]),
|
|
617
|
+
_: 1
|
|
618
|
+
}, 16, ["label"])
|
|
619
|
+
]),
|
|
620
|
+
_: 1
|
|
621
|
+
})
|
|
622
|
+
]),
|
|
623
|
+
_: 1
|
|
624
|
+
}),
|
|
625
|
+
e(O, null, {
|
|
626
|
+
default: t(() => [
|
|
627
|
+
e(T, { span: 24 }, {
|
|
628
|
+
default: t(() => [
|
|
629
|
+
e(N, F({
|
|
630
|
+
label: l.$t("user.email")
|
|
631
|
+
}, k, { name: "email" }), {
|
|
632
|
+
default: t(() => [
|
|
633
|
+
e(E, {
|
|
634
|
+
placeholder: l.$t("user.email_placeholder"),
|
|
635
|
+
disabled: s.opType == "2",
|
|
636
|
+
value: a.email,
|
|
637
|
+
"onUpdate:value": u[8] || (u[8] = (d) => a.email = d)
|
|
638
|
+
}, null, 8, ["placeholder", "disabled", "value"])
|
|
639
|
+
]),
|
|
640
|
+
_: 1
|
|
641
|
+
}, 16, ["label"])
|
|
642
|
+
]),
|
|
643
|
+
_: 1
|
|
644
|
+
})
|
|
645
|
+
]),
|
|
646
|
+
_: 1
|
|
647
|
+
}),
|
|
648
|
+
e(O, null, {
|
|
649
|
+
default: t(() => [
|
|
650
|
+
e(T, { span: 24 }, {
|
|
651
|
+
default: t(() => [
|
|
652
|
+
e(N, F({
|
|
653
|
+
label: l.$t("user.user_desc")
|
|
654
|
+
}, k, { name: "userDesc" }), {
|
|
655
|
+
default: t(() => [
|
|
656
|
+
e(E, {
|
|
657
|
+
placeholder: l.$t("user.user_desc_placeholder"),
|
|
658
|
+
value: a.userDesc,
|
|
659
|
+
"onUpdate:value": u[9] || (u[9] = (d) => a.userDesc = d)
|
|
660
|
+
}, null, 8, ["placeholder", "value"])
|
|
661
|
+
]),
|
|
662
|
+
_: 1
|
|
663
|
+
}, 16, ["label"])
|
|
664
|
+
]),
|
|
665
|
+
_: 1
|
|
666
|
+
})
|
|
667
|
+
]),
|
|
668
|
+
_: 1
|
|
669
|
+
})
|
|
670
|
+
]),
|
|
671
|
+
_: 1
|
|
672
|
+
}, 8, ["model"]),
|
|
673
|
+
H("div", mt, [
|
|
674
|
+
e(Q, {
|
|
675
|
+
onClick: b,
|
|
676
|
+
style: { "margin-right": "20px" }
|
|
677
|
+
}, {
|
|
678
|
+
default: t(() => [
|
|
679
|
+
g(m(l.$t("common.btn_cancel")), 1)
|
|
680
|
+
]),
|
|
681
|
+
_: 1
|
|
682
|
+
}),
|
|
683
|
+
e(Q, {
|
|
684
|
+
onClick: U,
|
|
685
|
+
type: "primary"
|
|
686
|
+
}, {
|
|
687
|
+
default: t(() => [
|
|
688
|
+
g(m(l.$t("common.btn_ok")), 1)
|
|
689
|
+
]),
|
|
690
|
+
_: 1
|
|
691
|
+
})
|
|
692
|
+
])
|
|
693
|
+
]),
|
|
694
|
+
_: 1
|
|
695
|
+
}, 8, ["open", "title"]);
|
|
696
|
+
};
|
|
697
|
+
}
|
|
698
|
+
}), _t = /* @__PURE__ */ Y(ft, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/user/UserEdit.vue"]]), ht = { class: "pay_span1" }, gt = /* @__PURE__ */ G({
|
|
699
|
+
__name: "UserDetail",
|
|
700
|
+
setup(i, { expose: S }) {
|
|
701
|
+
const _ = f(!1), r = V({
|
|
702
|
+
userId: "",
|
|
703
|
+
userCode: "",
|
|
704
|
+
userName: "",
|
|
705
|
+
branchName: "",
|
|
706
|
+
departmentName: "",
|
|
707
|
+
roleId: "",
|
|
708
|
+
roleIdOthers: "",
|
|
709
|
+
mobile: "",
|
|
710
|
+
email: "",
|
|
711
|
+
userDesc: "",
|
|
712
|
+
cdate: "",
|
|
713
|
+
coperator: "",
|
|
714
|
+
udate: "",
|
|
715
|
+
uoperator: ""
|
|
716
|
+
}), v = async () => {
|
|
717
|
+
const { result: c } = await ut({ userId: r.userId });
|
|
718
|
+
Object.assign(r, c);
|
|
719
|
+
}, p = (c) => {
|
|
720
|
+
!c || !c.userId || (r.userId = c.userId, v(), _.value = !0);
|
|
721
|
+
}, y = () => {
|
|
722
|
+
_.value = !1;
|
|
723
|
+
};
|
|
724
|
+
return S({
|
|
725
|
+
showModal: p
|
|
726
|
+
}), (c, a) => {
|
|
727
|
+
const n = ke, s = Se, w = be, I = Me, x = ye;
|
|
728
|
+
return $(), A(x, {
|
|
729
|
+
open: _.value,
|
|
730
|
+
"onUpdate:open": a[0] || (a[0] = (k) => _.value = k),
|
|
731
|
+
onClose: y,
|
|
732
|
+
width: 800,
|
|
733
|
+
title: c.$t("user.title6"),
|
|
734
|
+
destroyOnClose: !0
|
|
735
|
+
}, {
|
|
736
|
+
default: t(() => [
|
|
737
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
738
|
+
default: t(() => [
|
|
739
|
+
e(n, {
|
|
740
|
+
span: 4,
|
|
741
|
+
style: { "text-align": "right", color: "#333" }
|
|
742
|
+
}, {
|
|
743
|
+
default: t(() => [
|
|
744
|
+
g(m(c.$t("user.user_id")) + ": ", 1)
|
|
745
|
+
]),
|
|
746
|
+
_: 1
|
|
747
|
+
}),
|
|
748
|
+
e(n, {
|
|
749
|
+
span: 20,
|
|
750
|
+
style: { "padding-left": "10px" }
|
|
751
|
+
}, {
|
|
752
|
+
default: t(() => [
|
|
753
|
+
g(m(r.userCode), 1)
|
|
754
|
+
]),
|
|
755
|
+
_: 1
|
|
756
|
+
})
|
|
757
|
+
]),
|
|
758
|
+
_: 1
|
|
759
|
+
}),
|
|
760
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
761
|
+
default: t(() => [
|
|
762
|
+
e(n, {
|
|
763
|
+
span: 4,
|
|
764
|
+
style: { "text-align": "right", color: "#333" }
|
|
765
|
+
}, {
|
|
766
|
+
default: t(() => [
|
|
767
|
+
g(m(c.$t("user.user_name")) + ": ", 1)
|
|
768
|
+
]),
|
|
769
|
+
_: 1
|
|
770
|
+
}),
|
|
771
|
+
e(n, {
|
|
772
|
+
span: 20,
|
|
773
|
+
style: { "padding-left": "10px" }
|
|
774
|
+
}, {
|
|
775
|
+
default: t(() => [
|
|
776
|
+
g(m(r.userName), 1)
|
|
777
|
+
]),
|
|
778
|
+
_: 1
|
|
779
|
+
})
|
|
780
|
+
]),
|
|
781
|
+
_: 1
|
|
782
|
+
}),
|
|
783
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
784
|
+
default: t(() => [
|
|
785
|
+
e(n, {
|
|
786
|
+
span: 4,
|
|
787
|
+
style: { "text-align": "right", color: "#333" }
|
|
788
|
+
}, {
|
|
789
|
+
default: t(() => [
|
|
790
|
+
g(m(c.$t("user.dept_id")) + ":", 1)
|
|
791
|
+
]),
|
|
792
|
+
_: 1
|
|
793
|
+
}),
|
|
794
|
+
e(n, {
|
|
795
|
+
span: 20,
|
|
796
|
+
style: { "padding-left": "10px" }
|
|
797
|
+
}, {
|
|
798
|
+
default: t(() => [
|
|
799
|
+
g(m(r.branchName), 1)
|
|
800
|
+
]),
|
|
801
|
+
_: 1
|
|
802
|
+
})
|
|
803
|
+
]),
|
|
804
|
+
_: 1
|
|
805
|
+
}),
|
|
806
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
807
|
+
default: t(() => [
|
|
808
|
+
e(n, {
|
|
809
|
+
span: 4,
|
|
810
|
+
style: { "text-align": "right", color: "#333" }
|
|
811
|
+
}, {
|
|
812
|
+
default: t(() => [
|
|
813
|
+
g(m(c.$t("user.depyId")) + ":", 1)
|
|
814
|
+
]),
|
|
815
|
+
_: 1
|
|
816
|
+
}),
|
|
817
|
+
e(n, {
|
|
818
|
+
span: 20,
|
|
819
|
+
style: { "padding-left": "10px" }
|
|
820
|
+
}, {
|
|
821
|
+
default: t(() => [
|
|
822
|
+
g(m(r.departmentName), 1)
|
|
823
|
+
]),
|
|
824
|
+
_: 1
|
|
825
|
+
})
|
|
826
|
+
]),
|
|
827
|
+
_: 1
|
|
828
|
+
}),
|
|
829
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
830
|
+
default: t(() => [
|
|
831
|
+
e(n, {
|
|
832
|
+
span: 4,
|
|
833
|
+
style: { "text-align": "right", color: "#333" }
|
|
834
|
+
}, {
|
|
835
|
+
default: t(() => [
|
|
836
|
+
g(m(c.$t("user.role")) + ":", 1)
|
|
837
|
+
]),
|
|
838
|
+
_: 1
|
|
839
|
+
}),
|
|
840
|
+
e(n, {
|
|
841
|
+
span: 20,
|
|
842
|
+
style: { "padding-left": "10px" }
|
|
843
|
+
}, {
|
|
844
|
+
default: t(() => [
|
|
845
|
+
g(m(r.roleId), 1)
|
|
846
|
+
]),
|
|
847
|
+
_: 1
|
|
848
|
+
})
|
|
849
|
+
]),
|
|
850
|
+
_: 1
|
|
851
|
+
}),
|
|
852
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
853
|
+
default: t(() => [
|
|
854
|
+
e(n, {
|
|
855
|
+
span: 4,
|
|
856
|
+
style: { "text-align": "right", color: "#333" }
|
|
857
|
+
}, {
|
|
858
|
+
default: t(() => [
|
|
859
|
+
g(m(c.$t("user.role_other")) + ":", 1)
|
|
860
|
+
]),
|
|
861
|
+
_: 1
|
|
862
|
+
}),
|
|
863
|
+
e(n, {
|
|
864
|
+
span: 20,
|
|
865
|
+
style: { "padding-left": "10px" }
|
|
866
|
+
}, {
|
|
867
|
+
default: t(() => [
|
|
868
|
+
g(m(r.roleIdOthers), 1)
|
|
869
|
+
]),
|
|
870
|
+
_: 1
|
|
871
|
+
})
|
|
872
|
+
]),
|
|
873
|
+
_: 1
|
|
874
|
+
}),
|
|
875
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
876
|
+
default: t(() => [
|
|
877
|
+
e(n, {
|
|
878
|
+
span: 4,
|
|
879
|
+
style: { "text-align": "right", color: "#333" }
|
|
880
|
+
}, {
|
|
881
|
+
default: t(() => [
|
|
882
|
+
g(m(c.$t("user.mobile")) + ":", 1)
|
|
883
|
+
]),
|
|
884
|
+
_: 1
|
|
885
|
+
}),
|
|
886
|
+
e(n, {
|
|
887
|
+
span: 20,
|
|
888
|
+
style: { "padding-left": "10px" }
|
|
889
|
+
}, {
|
|
890
|
+
default: t(() => [
|
|
891
|
+
g(m(r.mobile), 1)
|
|
892
|
+
]),
|
|
893
|
+
_: 1
|
|
894
|
+
})
|
|
895
|
+
]),
|
|
896
|
+
_: 1
|
|
897
|
+
}),
|
|
898
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
899
|
+
default: t(() => [
|
|
900
|
+
e(n, {
|
|
901
|
+
span: 4,
|
|
902
|
+
style: { "text-align": "right", color: "#333" }
|
|
903
|
+
}, {
|
|
904
|
+
default: t(() => [
|
|
905
|
+
g(m(c.$t("user.email")) + ":", 1)
|
|
906
|
+
]),
|
|
907
|
+
_: 1
|
|
908
|
+
}),
|
|
909
|
+
e(n, {
|
|
910
|
+
span: 20,
|
|
911
|
+
style: { "padding-left": "10px" }
|
|
912
|
+
}, {
|
|
913
|
+
default: t(() => [
|
|
914
|
+
g(m(r.email), 1)
|
|
915
|
+
]),
|
|
916
|
+
_: 1
|
|
917
|
+
})
|
|
918
|
+
]),
|
|
919
|
+
_: 1
|
|
920
|
+
}),
|
|
921
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
922
|
+
default: t(() => [
|
|
923
|
+
e(n, {
|
|
924
|
+
span: 4,
|
|
925
|
+
style: { "text-align": "right", color: "#333" }
|
|
926
|
+
}, {
|
|
927
|
+
default: t(() => [
|
|
928
|
+
g(m(c.$t("user.userDesc")) + ":", 1)
|
|
929
|
+
]),
|
|
930
|
+
_: 1
|
|
931
|
+
}),
|
|
932
|
+
e(n, {
|
|
933
|
+
span: 20,
|
|
934
|
+
style: { "padding-left": "10px" }
|
|
935
|
+
}, {
|
|
936
|
+
default: t(() => [
|
|
937
|
+
g(m(r.userDesc), 1)
|
|
938
|
+
]),
|
|
939
|
+
_: 1
|
|
940
|
+
})
|
|
941
|
+
]),
|
|
942
|
+
_: 1
|
|
943
|
+
}),
|
|
944
|
+
e(w, { style: { "margin-bottom": "40px", "margin-top": "10px" } }),
|
|
945
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
946
|
+
default: t(() => [
|
|
947
|
+
e(n, {
|
|
948
|
+
span: 4,
|
|
949
|
+
style: { "text-align": "right", color: "#333" }
|
|
950
|
+
}, {
|
|
951
|
+
default: t(() => [
|
|
952
|
+
g(m(c.$t("user.cdate")) + ": ", 1)
|
|
953
|
+
]),
|
|
954
|
+
_: 1
|
|
955
|
+
}),
|
|
956
|
+
e(n, {
|
|
957
|
+
span: 20,
|
|
958
|
+
style: { "padding-left": "10px" }
|
|
959
|
+
}, {
|
|
960
|
+
default: t(() => [
|
|
961
|
+
e(I, {
|
|
962
|
+
class: "pay_span1",
|
|
963
|
+
defaultValue: r.cdate
|
|
964
|
+
}, null, 8, ["defaultValue"])
|
|
965
|
+
]),
|
|
966
|
+
_: 1
|
|
967
|
+
})
|
|
968
|
+
]),
|
|
969
|
+
_: 1
|
|
970
|
+
}),
|
|
971
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
972
|
+
default: t(() => [
|
|
973
|
+
e(n, {
|
|
974
|
+
span: 4,
|
|
975
|
+
style: { "text-align": "right", color: "#333" }
|
|
976
|
+
}, {
|
|
977
|
+
default: t(() => [
|
|
978
|
+
g(m(c.$t("user.coperator")) + ": ", 1)
|
|
979
|
+
]),
|
|
980
|
+
_: 1
|
|
981
|
+
}),
|
|
982
|
+
e(n, {
|
|
983
|
+
span: 20,
|
|
984
|
+
style: { "padding-left": "10px" }
|
|
985
|
+
}, {
|
|
986
|
+
default: t(() => [
|
|
987
|
+
g(m(r.coperator), 1)
|
|
988
|
+
]),
|
|
989
|
+
_: 1
|
|
990
|
+
})
|
|
991
|
+
]),
|
|
992
|
+
_: 1
|
|
993
|
+
}),
|
|
994
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
995
|
+
default: t(() => [
|
|
996
|
+
e(n, {
|
|
997
|
+
span: 4,
|
|
998
|
+
style: { "text-align": "right", color: "#333" }
|
|
999
|
+
}, {
|
|
1000
|
+
default: t(() => [
|
|
1001
|
+
g(m(c.$t("user.udate")) + ": ", 1)
|
|
1002
|
+
]),
|
|
1003
|
+
_: 1
|
|
1004
|
+
}),
|
|
1005
|
+
e(n, {
|
|
1006
|
+
span: 20,
|
|
1007
|
+
style: { "padding-left": "10px" }
|
|
1008
|
+
}, {
|
|
1009
|
+
default: t(() => [
|
|
1010
|
+
W(e(I, {
|
|
1011
|
+
class: "pay_span1",
|
|
1012
|
+
defaultValue: r.udate
|
|
1013
|
+
}, null, 8, ["defaultValue"]), [
|
|
1014
|
+
[X, r.udate]
|
|
1015
|
+
]),
|
|
1016
|
+
W(H("span", ht, m("--"), 512), [
|
|
1017
|
+
[X, !r.udate]
|
|
1018
|
+
])
|
|
1019
|
+
]),
|
|
1020
|
+
_: 1
|
|
1021
|
+
})
|
|
1022
|
+
]),
|
|
1023
|
+
_: 1
|
|
1024
|
+
}),
|
|
1025
|
+
e(s, { style: { "margin-bottom": "30px" } }, {
|
|
1026
|
+
default: t(() => [
|
|
1027
|
+
e(n, {
|
|
1028
|
+
span: 4,
|
|
1029
|
+
style: { "text-align": "right", color: "#333" }
|
|
1030
|
+
}, {
|
|
1031
|
+
default: t(() => [
|
|
1032
|
+
g(m(c.$t("user.uoperator")) + ": ", 1)
|
|
1033
|
+
]),
|
|
1034
|
+
_: 1
|
|
1035
|
+
}),
|
|
1036
|
+
e(n, {
|
|
1037
|
+
span: 20,
|
|
1038
|
+
style: { "padding-left": "10px" }
|
|
1039
|
+
}, {
|
|
1040
|
+
default: t(() => [
|
|
1041
|
+
g(m(r.uoperator ? r.uoperator : "--"), 1)
|
|
1042
|
+
]),
|
|
1043
|
+
_: 1
|
|
1044
|
+
})
|
|
1045
|
+
]),
|
|
1046
|
+
_: 1
|
|
1047
|
+
}),
|
|
1048
|
+
W(e(oe, {
|
|
1049
|
+
ref: "dictUserStatus",
|
|
1050
|
+
type: "CMS_STATUS"
|
|
1051
|
+
}, null, 512), [
|
|
1052
|
+
[X, !1]
|
|
1053
|
+
]),
|
|
1054
|
+
W(e(oe, {
|
|
1055
|
+
ref: "dictUserSex",
|
|
1056
|
+
type: "USER_SEX"
|
|
1057
|
+
}, null, 512), [
|
|
1058
|
+
[X, !1]
|
|
1059
|
+
])
|
|
1060
|
+
]),
|
|
1061
|
+
_: 1
|
|
1062
|
+
}, 8, ["open", "title"]);
|
|
1063
|
+
};
|
|
1064
|
+
}
|
|
1065
|
+
}), vt = /* @__PURE__ */ Y(gt, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/user/UserDetail.vue"]]), yt = /* @__PURE__ */ G({
|
|
1066
|
+
__name: "ResetPwdModal",
|
|
1067
|
+
emits: ["ok"],
|
|
1068
|
+
setup(i, { expose: S, emit: _ }) {
|
|
1069
|
+
const { t: r } = ue(), v = _, p = f(), y = V({
|
|
1070
|
+
userPwd: "",
|
|
1071
|
+
userPwd1: ""
|
|
1072
|
+
}), c = f(!1), a = f(!0), n = {}, s = f({}), w = {
|
|
1073
|
+
userPwd: [
|
|
1074
|
+
{ required: !0, message: r("user.user_pwd1_msg1"), trigger: "blur" }
|
|
1075
|
+
],
|
|
1076
|
+
userPwd1: [
|
|
1077
|
+
{
|
|
1078
|
+
required: !0,
|
|
1079
|
+
message: r("user.user_pwd1_msg1"),
|
|
1080
|
+
trigger: "blur",
|
|
1081
|
+
validator: (C, D) => y.userPwd === D ? Promise.resolve() : Promise.reject(r("user.user_pwd2_msg1"))
|
|
1082
|
+
}
|
|
1083
|
+
]
|
|
1084
|
+
}, I = (C) => {
|
|
1085
|
+
c.value = !0, s.value = C.params;
|
|
1086
|
+
}, x = () => {
|
|
1087
|
+
c.value = !1, Object.assign(y, {
|
|
1088
|
+
userPwd: "",
|
|
1089
|
+
userPwd1: ""
|
|
1090
|
+
});
|
|
1091
|
+
}, k = () => {
|
|
1092
|
+
p.value && p.value.validate().then(async () => {
|
|
1093
|
+
const C = {
|
|
1094
|
+
userId: s.value.userId,
|
|
1095
|
+
userPwd: Ve.sha256().update(y.userPwd).digest("hex")
|
|
1096
|
+
}, { result: D } = await dt(C);
|
|
1097
|
+
D && (c.value = !1, Object.assign(y, {
|
|
1098
|
+
userPwd: "",
|
|
1099
|
+
userPwd1: ""
|
|
1100
|
+
}), v("ok", D), Ae.success({
|
|
1101
|
+
title: r("register.msg5"),
|
|
1102
|
+
content: r("user.tip1")
|
|
1103
|
+
}));
|
|
1104
|
+
});
|
|
1105
|
+
};
|
|
1106
|
+
return S({
|
|
1107
|
+
showModal: I
|
|
1108
|
+
}), (C, D) => {
|
|
1109
|
+
const B = _e, q = he, z = ge, K = Le;
|
|
1110
|
+
return $(), A(K, {
|
|
1111
|
+
onOk: k,
|
|
1112
|
+
onCancel: x,
|
|
1113
|
+
width: 500,
|
|
1114
|
+
open: c.value,
|
|
1115
|
+
"onUpdate:open": D[2] || (D[2] = (R) => c.value = R),
|
|
1116
|
+
style: { top: "280px" },
|
|
1117
|
+
title: C.$t("user.title4"),
|
|
1118
|
+
destroyOnClose: a.value
|
|
1119
|
+
}, {
|
|
1120
|
+
default: t(() => [
|
|
1121
|
+
e(z, {
|
|
1122
|
+
model: y,
|
|
1123
|
+
layout: "vertical",
|
|
1124
|
+
class: "inline-query-form clear-formctrl-lh",
|
|
1125
|
+
ref_key: "formRef",
|
|
1126
|
+
ref: p,
|
|
1127
|
+
rules: w
|
|
1128
|
+
}, {
|
|
1129
|
+
default: t(() => [
|
|
1130
|
+
e(q, F({
|
|
1131
|
+
label: C.$t("user.user_pwd1")
|
|
1132
|
+
}, n, {
|
|
1133
|
+
style: { "margin-bottom": "0" },
|
|
1134
|
+
name: "userPwd"
|
|
1135
|
+
}), {
|
|
1136
|
+
default: t(() => [
|
|
1137
|
+
e(B, {
|
|
1138
|
+
type: "password",
|
|
1139
|
+
style: { width: "100%" },
|
|
1140
|
+
placeholder: C.$t("user.user_pwd1_placeholder"),
|
|
1141
|
+
value: y.userPwd,
|
|
1142
|
+
"onUpdate:value": D[0] || (D[0] = (R) => y.userPwd = R)
|
|
1143
|
+
}, null, 8, ["placeholder", "value"])
|
|
1144
|
+
]),
|
|
1145
|
+
_: 1
|
|
1146
|
+
}, 16, ["label"]),
|
|
1147
|
+
e(q, F({
|
|
1148
|
+
label: C.$t("user.user_pwd2")
|
|
1149
|
+
}, n, { name: "userPwd1" }), {
|
|
1150
|
+
default: t(() => [
|
|
1151
|
+
e(B, {
|
|
1152
|
+
type: "password",
|
|
1153
|
+
style: { width: "100%" },
|
|
1154
|
+
placeholder: C.$t("user.user_pwd2_placeholder"),
|
|
1155
|
+
value: y.userPwd1,
|
|
1156
|
+
"onUpdate:value": D[1] || (D[1] = (R) => y.userPwd1 = R)
|
|
1157
|
+
}, null, 8, ["placeholder", "value"])
|
|
1158
|
+
]),
|
|
1159
|
+
_: 1
|
|
1160
|
+
}, 16, ["label"])
|
|
1161
|
+
]),
|
|
1162
|
+
_: 1
|
|
1163
|
+
}, 8, ["model"])
|
|
1164
|
+
]),
|
|
1165
|
+
_: 1
|
|
1166
|
+
}, 8, ["open", "title", "destroyOnClose"]);
|
|
1167
|
+
};
|
|
1168
|
+
}
|
|
1169
|
+
}), bt = /* @__PURE__ */ Y(yt, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/user/ResetPwdModal.vue"]]), wt = { class: "topInfo" }, It = { class: "topAdd" }, kt = { style: { display: "flex", "justify-content": "space-between", width: "100%", "padding-left": "8px", "padding-right": "8px", "padding-bottom": "8px" } }, St = { key: 0 }, Ct = { key: 1 }, $t = { key: 1 }, xt = { key: 2 }, Dt = /* @__PURE__ */ G({
|
|
1170
|
+
name: "Function97",
|
|
1171
|
+
__name: "index",
|
|
1172
|
+
setup(i) {
|
|
1173
|
+
const { t: S } = ue(), _ = V({
|
|
1174
|
+
branchId: "",
|
|
1175
|
+
queryField: "",
|
|
1176
|
+
mainRoleName: "",
|
|
1177
|
+
userStatus: ""
|
|
1178
|
+
});
|
|
1179
|
+
let r = null;
|
|
1180
|
+
const v = V({}), p = f(), y = f(), c = f(), a = f(), n = f(), s = f(), w = f([]), I = f([]), x = f([]), k = f(!1), C = f(!1), D = async (o) => {
|
|
1181
|
+
const { result: d } = await lt(Object.assign(o, _));
|
|
1182
|
+
return d;
|
|
1183
|
+
}, B = se(() => n.value && n.value.getLabel(0)), q = (o) => n.value.getLabel(o.userStatus == "2" ? "2" : "1"), z = se(() => [
|
|
1184
|
+
{
|
|
1185
|
+
title: S("user.user_id"),
|
|
1186
|
+
dataIndex: "userCode",
|
|
1187
|
+
width: "180px",
|
|
1188
|
+
key: "userCode"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
title: S("user.user_name"),
|
|
1192
|
+
dataIndex: "userName",
|
|
1193
|
+
width: "150px",
|
|
1194
|
+
key: "userName"
|
|
1195
|
+
},
|
|
1196
|
+
{
|
|
1197
|
+
title: S("user.branchId"),
|
|
1198
|
+
dataIndex: "branchId",
|
|
1199
|
+
width: "150px",
|
|
1200
|
+
key: "branchId",
|
|
1201
|
+
filtered: k.value,
|
|
1202
|
+
customRender: ({ record: o }) => o.branchId ? s.value && s.value.getLabel(o.branchId) : "",
|
|
1203
|
+
customFilterDropdown: !0
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
title: S("user.deptName"),
|
|
1207
|
+
dataIndex: "deptName",
|
|
1208
|
+
width: "150px",
|
|
1209
|
+
key: "deptName"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
title: S("user.mainRoleName"),
|
|
1213
|
+
dataIndex: "mainRoleName",
|
|
1214
|
+
width: "150px",
|
|
1215
|
+
key: "mainRoleName",
|
|
1216
|
+
filters: x.value,
|
|
1217
|
+
defaultFilteredValue: [],
|
|
1218
|
+
onFilter: (o, d) => (_.mainRoleName = o.toString(), d.mainRoleName == r[o]),
|
|
1219
|
+
filterResetToDefaultFilteredValue: !0
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
title: S("user.user_status"),
|
|
1223
|
+
dataIndex: "userStatus",
|
|
1224
|
+
width: "150px",
|
|
1225
|
+
key: "userStatus",
|
|
1226
|
+
filters: [
|
|
1227
|
+
{ text: S("dct.USER_STATUS0"), value: "0" },
|
|
1228
|
+
{ text: S("dct.USER_STATUS1"), value: "1" },
|
|
1229
|
+
{ text: S("dct.USER_STATUS2"), value: "2" }
|
|
1230
|
+
],
|
|
1231
|
+
defaultFilteredValue: [],
|
|
1232
|
+
filterMultiple: !1,
|
|
1233
|
+
filterResetToDefaultFilteredValue: !0,
|
|
1234
|
+
onFilter: (o, d) => (_.userStatus = o.toString(), d.userStatus == o)
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
title: S("user.action"),
|
|
1238
|
+
align: "center",
|
|
1239
|
+
key: "action"
|
|
1240
|
+
}
|
|
1241
|
+
]), K = () => {
|
|
1242
|
+
p.value && p.value.refresh();
|
|
1243
|
+
}, R = (o) => {
|
|
1244
|
+
Be.emit("change", {
|
|
1245
|
+
title: "user.title" + o,
|
|
1246
|
+
description: "user.description" + o
|
|
1247
|
+
});
|
|
1248
|
+
}, J = async () => {
|
|
1249
|
+
const { result: o } = await pe();
|
|
1250
|
+
I.value = o;
|
|
1251
|
+
}, h = async () => {
|
|
1252
|
+
const { result: o } = await $e({});
|
|
1253
|
+
r = o;
|
|
1254
|
+
const d = [];
|
|
1255
|
+
Object.keys(o).forEach((ee) => {
|
|
1256
|
+
d.push({
|
|
1257
|
+
text: o[ee],
|
|
1258
|
+
value: ee
|
|
1259
|
+
});
|
|
1260
|
+
}), x.value = d;
|
|
1261
|
+
}, b = () => {
|
|
1262
|
+
p.value && p.value.refresh();
|
|
1263
|
+
}, U = async (o, d) => {
|
|
1264
|
+
const { result: ee } = await at({
|
|
1265
|
+
userId: d.userId,
|
|
1266
|
+
userStatus: o ? "0" : "1"
|
|
1267
|
+
});
|
|
1268
|
+
ee && p.value && p.value.refresh();
|
|
1269
|
+
}, l = async (o) => {
|
|
1270
|
+
const { result: d } = await st({ userId: o.userId });
|
|
1271
|
+
d && p.value && p.value.refresh();
|
|
1272
|
+
}, u = () => {
|
|
1273
|
+
R("1"), C.value = !0, ie(() => {
|
|
1274
|
+
y.value.showModal({ opType: "1" });
|
|
1275
|
+
});
|
|
1276
|
+
}, E = (o) => {
|
|
1277
|
+
R("2"), C.value = !0, ie(() => {
|
|
1278
|
+
y.value.showModal({ opType: "2", userId: o.userId });
|
|
1279
|
+
});
|
|
1280
|
+
}, N = (o) => {
|
|
1281
|
+
R("3"), Object.assign(v, { userId: o.userId }), a.value.showModal({ params: v });
|
|
1282
|
+
}, T = (o) => {
|
|
1283
|
+
c.value.showModal({ userId: o.userId });
|
|
1284
|
+
}, O = () => {
|
|
1285
|
+
R("0"), C.value = !1, p.value && p.value.refresh();
|
|
1286
|
+
}, te = (o) => {
|
|
1287
|
+
_.branchId = "", w.value = [], b(), o(), k.value = !1;
|
|
1288
|
+
}, Q = (o) => {
|
|
1289
|
+
w.value.length > 0 ? _.branchId = w.value[0] : _.branchId = "", b(), k.value = !0, o();
|
|
1290
|
+
};
|
|
1291
|
+
return de(() => {
|
|
1292
|
+
R("0"), J(), h();
|
|
1293
|
+
}), (o, d) => {
|
|
1294
|
+
const ee = qe, xe = ze, De = Ge, ne = be, re = ve, Ue = Ke, Re = Ze, Oe = He, Pe = We, Ne = Qe;
|
|
1295
|
+
return $(), j("div", null, [
|
|
1296
|
+
e(Ne, null, {
|
|
1297
|
+
default: t(() => [
|
|
1298
|
+
H("div", wt, [
|
|
1299
|
+
H("div", It, [
|
|
1300
|
+
e(ee, {
|
|
1301
|
+
placeholder: o.$t("user.search_placeholder"),
|
|
1302
|
+
ref: "inputSearch",
|
|
1303
|
+
allowClear: "",
|
|
1304
|
+
value: _.queryField,
|
|
1305
|
+
"onUpdate:value": d[0] || (d[0] = (P) => _.queryField = P),
|
|
1306
|
+
onSearch: K,
|
|
1307
|
+
style: { width: "350px", "margin-right": "20px" }
|
|
1308
|
+
}, null, 8, ["placeholder", "value"])
|
|
1309
|
+
])
|
|
1310
|
+
]),
|
|
1311
|
+
e(xe, { onClick: u }),
|
|
1312
|
+
e(Ye, {
|
|
1313
|
+
ref_key: "tableRef",
|
|
1314
|
+
ref: p,
|
|
1315
|
+
data: D,
|
|
1316
|
+
columns: z.value,
|
|
1317
|
+
rowKey: "userId",
|
|
1318
|
+
style: { "margin-top": "16px" }
|
|
1319
|
+
}, {
|
|
1320
|
+
customFilterDropdown: t(({ confirm: P, clearFilters: le }) => [
|
|
1321
|
+
H("div", null, [
|
|
1322
|
+
e(De, {
|
|
1323
|
+
"show-line": !0,
|
|
1324
|
+
"show-icon": !0,
|
|
1325
|
+
"default-expanded-keys": [],
|
|
1326
|
+
treeData: I.value,
|
|
1327
|
+
selectedKeys: w.value,
|
|
1328
|
+
"onUpdate:selectedKeys": d[1] || (d[1] = (Z) => w.value = Z),
|
|
1329
|
+
ref: "tree",
|
|
1330
|
+
fieldNames: { title: "label", key: "value" }
|
|
1331
|
+
}, {
|
|
1332
|
+
icon: t(() => [
|
|
1333
|
+
M(` <icon>\r
|
|
1334
|
+
<template #component><CarryOutOutlined /></template>\r
|
|
1335
|
+
</icon> `)
|
|
1336
|
+
]),
|
|
1337
|
+
_: 1
|
|
1338
|
+
}, 8, ["treeData", "selectedKeys"]),
|
|
1339
|
+
e(ne, { style: { "margin-top": "0", "margin-bottom": "10px" } }),
|
|
1340
|
+
H("div", kt, [
|
|
1341
|
+
e(re, {
|
|
1342
|
+
type: "primary",
|
|
1343
|
+
onClick: () => Q(P),
|
|
1344
|
+
size: "small",
|
|
1345
|
+
style: { "margin-right": "8px" }
|
|
1346
|
+
}, {
|
|
1347
|
+
default: t(() => [
|
|
1348
|
+
g(m(o.$t("warehouse.sure")), 1)
|
|
1349
|
+
]),
|
|
1350
|
+
_: 2
|
|
1351
|
+
}, 1032, ["onClick"]),
|
|
1352
|
+
e(re, {
|
|
1353
|
+
onClick: () => te(le),
|
|
1354
|
+
size: "small"
|
|
1355
|
+
}, {
|
|
1356
|
+
default: t(() => [
|
|
1357
|
+
g(m(o.$t("warehouse.reset")), 1)
|
|
1358
|
+
]),
|
|
1359
|
+
_: 2
|
|
1360
|
+
}, 1032, ["onClick"])
|
|
1361
|
+
])
|
|
1362
|
+
])
|
|
1363
|
+
]),
|
|
1364
|
+
bodyCell: t(({ record: P, column: le }) => [
|
|
1365
|
+
le.key === "userCode" ? ($(), j("span", St, [
|
|
1366
|
+
e(re, {
|
|
1367
|
+
type: "link",
|
|
1368
|
+
onClick: (Z) => T(P)
|
|
1369
|
+
}, {
|
|
1370
|
+
default: t(() => [
|
|
1371
|
+
g(m(P.userCode), 1)
|
|
1372
|
+
]),
|
|
1373
|
+
_: 2
|
|
1374
|
+
}, 1032, ["onClick"])
|
|
1375
|
+
])) : M("v-if", !0),
|
|
1376
|
+
le.key === "userStatus" ? ($(), j("span", Ct, [
|
|
1377
|
+
[0, 1].includes(Number(P.userStatus)) ? ($(), A(Ue, {
|
|
1378
|
+
key: 0,
|
|
1379
|
+
defaultChecked: P.userStatus == 0,
|
|
1380
|
+
checkedChildren: B.value,
|
|
1381
|
+
unCheckedChildren: q(P),
|
|
1382
|
+
onChange: (Z) => U(Z, P)
|
|
1383
|
+
}, null, 8, ["defaultChecked", "checkedChildren", "unCheckedChildren", "onChange"])) : Number(P.userStatus) == 2 ? ($(), j("span", $t, m(o.$t("dct.USER_STATUS2")), 1)) : M("v-if", !0)
|
|
1384
|
+
])) : M("v-if", !0),
|
|
1385
|
+
le.key === "action" ? ($(), j("span", xt, [
|
|
1386
|
+
W(H("div", null, [
|
|
1387
|
+
e(Re, {
|
|
1388
|
+
onClick: (Z) => E(P),
|
|
1389
|
+
type: "a"
|
|
1390
|
+
}, null, 8, ["onClick"]),
|
|
1391
|
+
e(ne, { type: "vertical" }),
|
|
1392
|
+
e(Oe, {
|
|
1393
|
+
onClick: (Z) => N(P),
|
|
1394
|
+
type: "a"
|
|
1395
|
+
}, null, 8, ["onClick"]),
|
|
1396
|
+
e(ne, { type: "vertical" }),
|
|
1397
|
+
e(Pe, {
|
|
1398
|
+
onClick: (Z) => l(P),
|
|
1399
|
+
type: "a"
|
|
1400
|
+
}, null, 8, ["onClick"])
|
|
1401
|
+
], 512), [
|
|
1402
|
+
[X, P.userStatus != 2]
|
|
1403
|
+
])
|
|
1404
|
+
])) : M("v-if", !0)
|
|
1405
|
+
]),
|
|
1406
|
+
_: 1
|
|
1407
|
+
}, 8, ["columns"])
|
|
1408
|
+
]),
|
|
1409
|
+
_: 1
|
|
1410
|
+
}),
|
|
1411
|
+
C.value ? ($(), A(_t, {
|
|
1412
|
+
key: 0,
|
|
1413
|
+
ref_key: "userEditRef",
|
|
1414
|
+
ref: y,
|
|
1415
|
+
onOk: O
|
|
1416
|
+
}, null, 512)) : M("v-if", !0),
|
|
1417
|
+
e(vt, {
|
|
1418
|
+
ref_key: "userDetailRef",
|
|
1419
|
+
ref: c
|
|
1420
|
+
}, null, 512),
|
|
1421
|
+
e(bt, {
|
|
1422
|
+
ref_key: "resetPwdModalRef",
|
|
1423
|
+
ref: a
|
|
1424
|
+
}, null, 512),
|
|
1425
|
+
W(e(Ce, {
|
|
1426
|
+
ref_key: "deptRef",
|
|
1427
|
+
ref: s
|
|
1428
|
+
}, null, 512), [
|
|
1429
|
+
[X, !1]
|
|
1430
|
+
]),
|
|
1431
|
+
W(e(oe, {
|
|
1432
|
+
ref_key: "dictUserStatusRef",
|
|
1433
|
+
ref: n,
|
|
1434
|
+
type: "CMS_STATUS"
|
|
1435
|
+
}, null, 512), [
|
|
1436
|
+
[X, !1]
|
|
1437
|
+
])
|
|
1438
|
+
]);
|
|
1439
|
+
};
|
|
1440
|
+
}
|
|
1441
|
+
});
|
|
1442
|
+
const jt = /* @__PURE__ */ Y(Dt, [["__scopeId", "data-v-451ba823"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/user/index.vue"]]);
|
|
1443
|
+
export {
|
|
1444
|
+
jt as default
|
|
1445
|
+
};
|