@witlink/usercenter 1.0.3 → 1.0.5
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.a6648431.mjs → 404.25fad408.mjs} +1 -1
- package/dist/{Standard.fc95c576.mjs → Standard.61d10b5f.mjs} +13 -13
- package/dist/{WebClient.80331fdc.mjs → WebClient.ef36c3b9.mjs} +18 -18
- package/dist/assets/index.0e2284e6.css +1 -0
- package/dist/{index.cdd11689.mjs → index.278f9839.mjs} +1 -1
- package/dist/index.2ba5f477.mjs +94026 -0
- package/dist/{index.ed4dbd01.mjs → index.6c2bc27b.mjs} +1 -1
- package/dist/{index.2c2473ea.mjs → index.bc2823f3.mjs} +1 -1
- package/dist/{index.69b68e45.mjs → index.e81480ca.mjs} +1 -1
- package/dist/usercenter.es.js +9 -9
- package/dist/usercenter.umd.js +348 -6580
- package/package.json +1 -1
- package/dist/404.8c60a901.c3e76ee8.mjs +0 -10
- package/dist/Standard.f3edef69.f5212048.mjs +0 -110
- package/dist/WebClient.d57f9832.6ba94a3e.mjs +0 -151
- package/dist/assets/Standard.f3edef69.badeec91.css +0 -1
- package/dist/assets/WebClient.d57f9832.2a3e464e.css +0 -1
- package/dist/assets/index.2d0e9dcb.css +0 -1
- package/dist/assets/index.8b3e4f70.fb7724ee.css +0 -1
- package/dist/index.0da1fafa.015bee59.mjs +0 -10
- package/dist/index.1046a424.mjs +0 -175799
- package/dist/index.2242d1a7.66a01ef7.mjs +0 -125
- package/dist/index.2291c8e2.1c1e2758.mjs +0 -125
- package/dist/index.42fbc816.bcd3785a.mjs +0 -10
- package/dist/index.5dce5a61.mjs +0 -777
- package/dist/index.8b3e4f70.550c8920.mjs +0 -385
- package/dist/index.9803c44f.5a0946eb.mjs +0 -125
- package/dist/index.9829f249.dfba489c.mjs +0 -10
package/dist/index.5dce5a61.mjs
DELETED
|
@@ -1,777 +0,0 @@
|
|
|
1
|
-
import { f as V, u as X, I as ue, d as ie, i as _e, F as de, S as he, M as pe, _ as J, C as ee, j as me, k as fe, m as ve, n as te, o as ae, p as ke, q as ge, r as ye, t as be, B as Ce, v as we, w as Ie, x as $e, D as Se, y as Ae, z as De, E as Ne, P as xe, G as Fe, H as Re, K as Le, L as Oe } from "./index.1046a424.mjs";
|
|
2
|
-
import { defineComponent as H, ref as r, openBlock as _, createBlock as M, withCtx as o, createVNode as e, mergeProps as oe, onMounted as le, createElementBlock as N, normalizeClass as Ue, createElementVNode as G, toDisplayString as T, nextTick as Ee, watch as Be, createTextVNode as q, createCommentVNode as L, Fragment as ne, renderList as Te, computed as se, unref as j, reactive as Me, withDirectives as re, vShow as ce } from "vue";
|
|
3
|
-
function Pe(c) {
|
|
4
|
-
return V({
|
|
5
|
-
url: "/api/sys/role/search-list",
|
|
6
|
-
method: "get",
|
|
7
|
-
params: c
|
|
8
|
-
});
|
|
9
|
-
}
|
|
10
|
-
function je(c) {
|
|
11
|
-
return V({
|
|
12
|
-
url: "/api/sys/role/switch",
|
|
13
|
-
method: "post",
|
|
14
|
-
params: c
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
function Ve(c) {
|
|
18
|
-
return V({
|
|
19
|
-
url: "/api/sys/role/detail",
|
|
20
|
-
method: "get",
|
|
21
|
-
params: c
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
function qe(c) {
|
|
25
|
-
return V({
|
|
26
|
-
url: "/api/member/myapp/public-search-list",
|
|
27
|
-
method: "get",
|
|
28
|
-
params: c
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
function ze(c) {
|
|
32
|
-
return V({
|
|
33
|
-
url: "/api/sys/role/detail-role",
|
|
34
|
-
method: "get",
|
|
35
|
-
params: c
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
function Ge(c) {
|
|
39
|
-
return V({
|
|
40
|
-
url: "/api/sys/role/update",
|
|
41
|
-
method: "post",
|
|
42
|
-
data: c
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
function Je(c) {
|
|
46
|
-
return V({
|
|
47
|
-
url: "/api/sys/role/insert",
|
|
48
|
-
method: "post",
|
|
49
|
-
params: c
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
const He = /* @__PURE__ */ H({
|
|
53
|
-
__name: "RoleAddModal",
|
|
54
|
-
emits: ["ok", "cancel"],
|
|
55
|
-
setup(c, { emit: O }) {
|
|
56
|
-
const { t: h } = X(), $ = O, i = r(), d = r(!0), y = r(!0), f = r(!1), v = r({
|
|
57
|
-
roleName: "",
|
|
58
|
-
remark: ""
|
|
59
|
-
}), k = r({
|
|
60
|
-
labelCol: { lg: { span: 7 }, sm: { span: 7 } },
|
|
61
|
-
wrapperCol: { lg: { span: 14 }, sm: { span: 14 } }
|
|
62
|
-
}), p = (t, l) => l == "" ? Promise.reject(h("role.role_name_msg1")) : Promise.resolve();
|
|
63
|
-
function C() {
|
|
64
|
-
$("cancel");
|
|
65
|
-
}
|
|
66
|
-
const a = () => {
|
|
67
|
-
i.value.validate().then(async () => {
|
|
68
|
-
f.value = !0;
|
|
69
|
-
const { result: t } = await Je({
|
|
70
|
-
...v.value
|
|
71
|
-
});
|
|
72
|
-
f.value = !1, t && ($("ok", t), y.value = !1);
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
return (t, l) => {
|
|
76
|
-
const u = ue, m = ie, S = _e, s = de, w = he, b = pe;
|
|
77
|
-
return _(), M(b, {
|
|
78
|
-
open: y.value,
|
|
79
|
-
"onUpdate:open": l[2] || (l[2] = (x) => y.value = x),
|
|
80
|
-
width: 560,
|
|
81
|
-
onOk: a,
|
|
82
|
-
onCancel: C,
|
|
83
|
-
title: t.$t("role.add_msg"),
|
|
84
|
-
style: { top: "250px" },
|
|
85
|
-
destroyOnClose: d.value
|
|
86
|
-
}, {
|
|
87
|
-
default: o(() => [
|
|
88
|
-
e(w, { spinning: f.value }, {
|
|
89
|
-
default: o(() => [
|
|
90
|
-
e(s, {
|
|
91
|
-
model: v.value,
|
|
92
|
-
ref_key: "formRef",
|
|
93
|
-
ref: i
|
|
94
|
-
}, {
|
|
95
|
-
default: o(() => [
|
|
96
|
-
e(m, oe({
|
|
97
|
-
label: t.$t("role.role_name")
|
|
98
|
-
}, k.value, {
|
|
99
|
-
name: "roleName",
|
|
100
|
-
rules: [
|
|
101
|
-
{
|
|
102
|
-
required: !0,
|
|
103
|
-
message: t.$t("role.role_name_msg1"),
|
|
104
|
-
validator: p
|
|
105
|
-
}
|
|
106
|
-
]
|
|
107
|
-
}), {
|
|
108
|
-
default: o(() => [
|
|
109
|
-
e(u, {
|
|
110
|
-
placeholder: t.$t("role.role_name_placeholder"),
|
|
111
|
-
value: v.value.roleName,
|
|
112
|
-
"onUpdate:value": l[0] || (l[0] = (x) => v.value.roleName = x)
|
|
113
|
-
}, null, 8, ["placeholder", "value"])
|
|
114
|
-
]),
|
|
115
|
-
_: 1
|
|
116
|
-
}, 16, ["label", "rules"]),
|
|
117
|
-
e(m, oe({
|
|
118
|
-
label: t.$t("role.remark")
|
|
119
|
-
}, k.value, { name: "remark" }), {
|
|
120
|
-
default: o(() => [
|
|
121
|
-
e(S, {
|
|
122
|
-
placeholder: t.$t("role.remark_placeholder"),
|
|
123
|
-
rows: 4,
|
|
124
|
-
value: v.value.remark,
|
|
125
|
-
"onUpdate:value": l[1] || (l[1] = (x) => v.value.remark = x)
|
|
126
|
-
}, null, 8, ["placeholder", "value"])
|
|
127
|
-
]),
|
|
128
|
-
_: 1
|
|
129
|
-
}, 16, ["label"])
|
|
130
|
-
]),
|
|
131
|
-
_: 1
|
|
132
|
-
}, 8, ["model"])
|
|
133
|
-
]),
|
|
134
|
-
_: 1
|
|
135
|
-
}, 8, ["spinning"])
|
|
136
|
-
]),
|
|
137
|
-
_: 1
|
|
138
|
-
}, 8, ["open", "title", "destroyOnClose"]);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
}), Ke = /* @__PURE__ */ J(He, [["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/RoleAddModal.vue"]]), Qe = { class: "name" }, We = /* @__PURE__ */ H({
|
|
142
|
-
__name: "AuthList",
|
|
143
|
-
props: {
|
|
144
|
-
roleId: {
|
|
145
|
-
type: Number,
|
|
146
|
-
default: null
|
|
147
|
-
},
|
|
148
|
-
selectItem: {
|
|
149
|
-
type: Number,
|
|
150
|
-
default: null
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
emits: ["select", "checkChange"],
|
|
154
|
-
setup(c, { emit: O }) {
|
|
155
|
-
const h = O, $ = c, i = r([]), d = r(!1), y = (k, p) => {
|
|
156
|
-
d.value = !d.value, p.authFlag = k.target.checked ? 0 : 1, h("checkChange", p);
|
|
157
|
-
}, f = (k, p, C) => {
|
|
158
|
-
h("select", k, C, d.value, p);
|
|
159
|
-
}, v = async () => {
|
|
160
|
-
const { result: k } = await qe({
|
|
161
|
-
roleId: $.roleId
|
|
162
|
-
});
|
|
163
|
-
d.value = !1, i.value = k, i.value.length > 0 && Ee(() => {
|
|
164
|
-
f(i.value[0], 0, "init");
|
|
165
|
-
});
|
|
166
|
-
};
|
|
167
|
-
return le(() => {
|
|
168
|
-
v();
|
|
169
|
-
}), (k, p) => {
|
|
170
|
-
const C = ee, a = me, t = fe, l = ve;
|
|
171
|
-
return _(), N("div", null, [
|
|
172
|
-
e(l, {
|
|
173
|
-
size: "small",
|
|
174
|
-
split: !1,
|
|
175
|
-
"data-source": i.value
|
|
176
|
-
}, {
|
|
177
|
-
renderItem: o(({ item: u, index: m }) => [
|
|
178
|
-
e(t, { type: "inner" }, {
|
|
179
|
-
default: o(() => [
|
|
180
|
-
e(C, {
|
|
181
|
-
hoverable: !0,
|
|
182
|
-
bordered: !1,
|
|
183
|
-
class: Ue(["a-card", c.selectItem == m ? "active" : ""]),
|
|
184
|
-
onClick: (S) => f(u, m, "manual")
|
|
185
|
-
}, {
|
|
186
|
-
default: o(() => [
|
|
187
|
-
G("div", Qe, T(u.sysOrgDeploy.deployName), 1)
|
|
188
|
-
]),
|
|
189
|
-
_: 2
|
|
190
|
-
}, 1032, ["onClick", "class"]),
|
|
191
|
-
e(a, {
|
|
192
|
-
style: { "margin-right": "0px" },
|
|
193
|
-
checked: u.authFlag == 0,
|
|
194
|
-
disabled: c.selectItem != m,
|
|
195
|
-
onChange: (S) => y(S, u)
|
|
196
|
-
}, null, 8, ["checked", "disabled", "onChange"])
|
|
197
|
-
]),
|
|
198
|
-
_: 2
|
|
199
|
-
}, 1024)
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
}, 8, ["data-source"])
|
|
203
|
-
]);
|
|
204
|
-
};
|
|
205
|
-
}
|
|
206
|
-
}), Xe = /* @__PURE__ */ J(We, [["__scopeId", "data-v-debbabd6"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/components/AuthList/AuthList.vue"]]), Ye = { key: 0 }, Ze = { key: 1 }, et = /* @__PURE__ */ H({
|
|
207
|
-
__name: "ActDetail",
|
|
208
|
-
props: {
|
|
209
|
-
params: {
|
|
210
|
-
type: Array,
|
|
211
|
-
default: null
|
|
212
|
-
},
|
|
213
|
-
mode: {
|
|
214
|
-
type: String,
|
|
215
|
-
default: ""
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
setup(c, { expose: O }) {
|
|
219
|
-
const { t: h } = X(), $ = c, i = r([]), d = [
|
|
220
|
-
20,
|
|
221
|
-
102
|
|
222
|
-
], y = r(!1), f = (a) => $.mode === "view" ? a.checkedAll || a.indeterminate : !0, v = (a) => {
|
|
223
|
-
a.indeterminate = !!a.selects.length && a.selects.length < a.options.length, a.checkedAll = a.selects.length === a.options.length;
|
|
224
|
-
}, k = (a, t) => {
|
|
225
|
-
Object.assign(t, {
|
|
226
|
-
selects: a.target.checked ? t.options.map((l) => l.value) : [],
|
|
227
|
-
indeterminate: !1,
|
|
228
|
-
checkedAll: a.target.checked
|
|
229
|
-
});
|
|
230
|
-
}, p = (a) => {
|
|
231
|
-
const t = a.target.checked;
|
|
232
|
-
i.value.forEach((l) => {
|
|
233
|
-
l.selects = t ? l.options.map((u) => u.value) : [], l.checkedAll = t, l.indeterminate = l.selects.length > 0;
|
|
234
|
-
}), i.value = i.value.slice(0);
|
|
235
|
-
};
|
|
236
|
-
return O({
|
|
237
|
-
getDetail: () => {
|
|
238
|
-
const a = [];
|
|
239
|
-
return i.value.forEach((t) => {
|
|
240
|
-
t.selects.length > 0 && a.push({
|
|
241
|
-
id: t.id,
|
|
242
|
-
actions: t.selects.join(",")
|
|
243
|
-
});
|
|
244
|
-
}), a;
|
|
245
|
-
}
|
|
246
|
-
}), Be(
|
|
247
|
-
() => $.params,
|
|
248
|
-
(a) => {
|
|
249
|
-
const t = [];
|
|
250
|
-
if (Array.isArray(a) && a.length == 0 || a == null) {
|
|
251
|
-
i.value = t;
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
a.forEach((l) => {
|
|
255
|
-
const u = [];
|
|
256
|
-
let m = [];
|
|
257
|
-
for (let s = 0; s < l.actions.length; s++) {
|
|
258
|
-
const w = l.actions[s], b = h("button._" + w.id);
|
|
259
|
-
u.push({
|
|
260
|
-
value: w.id,
|
|
261
|
-
label: b == "" ? w.id : b
|
|
262
|
-
}), w.checked && m.push(w.id);
|
|
263
|
-
}
|
|
264
|
-
const S = l.name;
|
|
265
|
-
d.includes(Number(l.id)) && l.actions.every((s) => !s.checked) && (m = l.actions.map((s) => s.id)), t.push({
|
|
266
|
-
id: l.id,
|
|
267
|
-
name: S == "" ? l.id : S,
|
|
268
|
-
options: u,
|
|
269
|
-
selects: m,
|
|
270
|
-
checkedAll: u.length === m.length,
|
|
271
|
-
indeterminate: !!m.length && m.length < u.length
|
|
272
|
-
});
|
|
273
|
-
}), i.value = t;
|
|
274
|
-
},
|
|
275
|
-
{
|
|
276
|
-
deep: !0
|
|
277
|
-
}
|
|
278
|
-
), (a, t) => {
|
|
279
|
-
const l = me, u = te, m = ae, S = ke;
|
|
280
|
-
return _(), N("div", null, [
|
|
281
|
-
i.value.length > 0 ? (_(), N("div", Ye, [
|
|
282
|
-
c.mode !== "view" ? (_(), M(m, {
|
|
283
|
-
key: 0,
|
|
284
|
-
gutter: 16
|
|
285
|
-
}, {
|
|
286
|
-
default: o(() => [
|
|
287
|
-
e(u, {
|
|
288
|
-
offset: 4,
|
|
289
|
-
span: 20,
|
|
290
|
-
class: "col"
|
|
291
|
-
}, {
|
|
292
|
-
default: o(() => [
|
|
293
|
-
e(l, {
|
|
294
|
-
checked: y.value,
|
|
295
|
-
"onUpdate:checked": t[0] || (t[0] = (s) => y.value = s),
|
|
296
|
-
onChange: p
|
|
297
|
-
}, {
|
|
298
|
-
default: o(() => [
|
|
299
|
-
q(T(a.$t("role.operation")), 1)
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
}, 8, ["checked"])
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
})
|
|
306
|
-
]),
|
|
307
|
-
_: 1
|
|
308
|
-
})) : L("v-if", !0),
|
|
309
|
-
(_(!0), N(ne, null, Te(i.value, (s, w) => (_(), N(ne, null, [
|
|
310
|
-
f(s) ? (_(), M(m, {
|
|
311
|
-
gutter: 16,
|
|
312
|
-
key: w
|
|
313
|
-
}, {
|
|
314
|
-
default: o(() => [
|
|
315
|
-
e(u, {
|
|
316
|
-
span: 4,
|
|
317
|
-
class: "col"
|
|
318
|
-
}, {
|
|
319
|
-
default: o(() => [
|
|
320
|
-
q(T(s.name) + "\uFF1A ", 1)
|
|
321
|
-
]),
|
|
322
|
-
_: 2
|
|
323
|
-
}, 1024),
|
|
324
|
-
e(u, {
|
|
325
|
-
span: 20,
|
|
326
|
-
class: "col"
|
|
327
|
-
}, {
|
|
328
|
-
default: o(() => [
|
|
329
|
-
s.options.length > 0 ? (_(), M(l, {
|
|
330
|
-
key: 0,
|
|
331
|
-
style: { "margin-right": "18px" },
|
|
332
|
-
indeterminate: s.indeterminate,
|
|
333
|
-
checked: s.checkedAll,
|
|
334
|
-
"onUpdate:checked": (b) => s.checkedAll = b,
|
|
335
|
-
onChange: (b) => k(b, s)
|
|
336
|
-
}, {
|
|
337
|
-
default: o(() => [
|
|
338
|
-
q(T(a.$t("role.operation")), 1)
|
|
339
|
-
]),
|
|
340
|
-
_: 2
|
|
341
|
-
}, 1032, ["indeterminate", "checked", "onUpdate:checked", "onChange"])) : L("v-if", !0),
|
|
342
|
-
e(S, {
|
|
343
|
-
options: s.options,
|
|
344
|
-
value: s.selects,
|
|
345
|
-
"onUpdate:value": (b) => s.selects = b,
|
|
346
|
-
onChange: (b) => v(s)
|
|
347
|
-
}, null, 8, ["options", "value", "onUpdate:value", "onChange"])
|
|
348
|
-
]),
|
|
349
|
-
_: 2
|
|
350
|
-
}, 1024)
|
|
351
|
-
]),
|
|
352
|
-
_: 2
|
|
353
|
-
}, 1024)) : L("v-if", !0)
|
|
354
|
-
], 64))), 256))
|
|
355
|
-
])) : (_(), N("div", Ze, T(a.$t("actDetail.text")), 1))
|
|
356
|
-
]);
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
}), tt = /* @__PURE__ */ J(et, [["__scopeId", "data-v-96c1fdf2"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/ActDetail.vue"]]), at = { class: "role-detail-wrap" }, lt = /* @__PURE__ */ H({
|
|
360
|
-
__name: "RoleDetail",
|
|
361
|
-
props: {
|
|
362
|
-
params: {
|
|
363
|
-
type: Object,
|
|
364
|
-
default: null
|
|
365
|
-
}
|
|
366
|
-
},
|
|
367
|
-
emits: ["cancel", "ok"],
|
|
368
|
-
setup(c, { emit: O }) {
|
|
369
|
-
const { t: h } = X(), $ = ge(), i = O, d = c, y = r(), f = r(), v = r(), k = r({
|
|
370
|
-
roleId: "",
|
|
371
|
-
roleName: "",
|
|
372
|
-
remark: ""
|
|
373
|
-
}), p = r({
|
|
374
|
-
roleName: "",
|
|
375
|
-
remark: ""
|
|
376
|
-
}), C = r({
|
|
377
|
-
authId: "",
|
|
378
|
-
authFlag: ""
|
|
379
|
-
}), a = r([]), t = r("[]"), l = r(0), u = r(!1), m = r("\u6743\u9650\u4FEE\u6539\u672A\u4FDD\u5B58\uFF0C\u8BF7\u5148\u63D0\u4EA4\u4FDD\u5B58\u518D\u5207\u6362\u5E73\u53F0"), S = se(() => $.langId), s = se(() => d.params.opType === "2" ? "edit" : d.params.opType === "3" ? "view" : ""), w = () => {
|
|
380
|
-
const n = f.value.getDetail();
|
|
381
|
-
v.value.validate().then(async () => {
|
|
382
|
-
const g = {
|
|
383
|
-
roleId: k.value.roleId,
|
|
384
|
-
authId: C.value.authId,
|
|
385
|
-
authFlag: C.value.authFlag,
|
|
386
|
-
roleName: p.value.roleName,
|
|
387
|
-
remark: p.value.remark,
|
|
388
|
-
detail: n
|
|
389
|
-
}, { result: R } = await Ge(g);
|
|
390
|
-
R && (t.value = JSON.stringify(n), y.value.platFlag = !1, i("ok"), be.success({
|
|
391
|
-
message: h("common.msg3"),
|
|
392
|
-
description: h("common.msg4")
|
|
393
|
-
}));
|
|
394
|
-
});
|
|
395
|
-
}, b = () => {
|
|
396
|
-
i("cancel");
|
|
397
|
-
}, x = () => {
|
|
398
|
-
u.value = !1;
|
|
399
|
-
}, K = (n) => {
|
|
400
|
-
C.value.authFlag = n.authFlag;
|
|
401
|
-
}, Q = () => {
|
|
402
|
-
u.value = !0;
|
|
403
|
-
}, I = (n) => {
|
|
404
|
-
const g = [];
|
|
405
|
-
n == null || n.forEach((R) => {
|
|
406
|
-
const A = [];
|
|
407
|
-
R.actions.forEach((U) => {
|
|
408
|
-
U.checked && A.push(U.id);
|
|
409
|
-
}), A.length > 0 && g.push({
|
|
410
|
-
id: R.id,
|
|
411
|
-
actions: A.join(",")
|
|
412
|
-
});
|
|
413
|
-
}), t.value = JSON.stringify(g);
|
|
414
|
-
}, F = async (n, g, R, A) => {
|
|
415
|
-
const U = f.value.getDetail();
|
|
416
|
-
g === "init" || d.params.opType === "3" || t.value === JSON.stringify(U) && R == !1 ? (C.value.authId = n.authId, C.value.authFlag = n.authFlag, ze({
|
|
417
|
-
roleId: k.value.roleId,
|
|
418
|
-
authId: n.authId,
|
|
419
|
-
isoCode: S.value
|
|
420
|
-
}).then((D) => {
|
|
421
|
-
a.value = D == null ? void 0 : D.result, I((D == null ? void 0 : D.result) || []), l.value = A;
|
|
422
|
-
})) : Q();
|
|
423
|
-
}, z = async (n) => {
|
|
424
|
-
const { result: g } = await Ve({ roleId: n });
|
|
425
|
-
return g;
|
|
426
|
-
}, Y = async () => {
|
|
427
|
-
if (!d.params || !d.params.roleId)
|
|
428
|
-
return;
|
|
429
|
-
const n = await z(d.params.roleId);
|
|
430
|
-
p.value.roleName = n.roleName, p.value.remark = n.remark, k.value = n;
|
|
431
|
-
};
|
|
432
|
-
return le(() => {
|
|
433
|
-
Y();
|
|
434
|
-
}), (n, g) => {
|
|
435
|
-
const R = pe, A = ee, U = te, D = ue, W = ie, Z = de, E = ae, P = Ce;
|
|
436
|
-
return _(), N("div", at, [
|
|
437
|
-
e(E, {
|
|
438
|
-
gutter: 16,
|
|
439
|
-
class: "role-detail-content"
|
|
440
|
-
}, {
|
|
441
|
-
default: o(() => [
|
|
442
|
-
e(U, {
|
|
443
|
-
span: 4,
|
|
444
|
-
class: "left"
|
|
445
|
-
}, {
|
|
446
|
-
default: o(() => [
|
|
447
|
-
e(A, {
|
|
448
|
-
title: n.$t("role.svr_list"),
|
|
449
|
-
bordered: !1
|
|
450
|
-
}, {
|
|
451
|
-
cover: o(() => [
|
|
452
|
-
e(j(Xe), {
|
|
453
|
-
ref_key: "authListRef",
|
|
454
|
-
ref: y,
|
|
455
|
-
roleId: d.params.roleId,
|
|
456
|
-
selectItem: l.value,
|
|
457
|
-
onCheckChange: K,
|
|
458
|
-
onSelect: F
|
|
459
|
-
}, null, 8, ["roleId", "selectItem"]),
|
|
460
|
-
e(R, {
|
|
461
|
-
title: "\u63D0\u793A",
|
|
462
|
-
open: u.value,
|
|
463
|
-
"onUpdate:open": g[0] || (g[0] = (B) => u.value = B),
|
|
464
|
-
onCancel: x,
|
|
465
|
-
onOk: x
|
|
466
|
-
}, {
|
|
467
|
-
default: o(() => [
|
|
468
|
-
G("p", null, T(m.value), 1)
|
|
469
|
-
]),
|
|
470
|
-
_: 1
|
|
471
|
-
}, 8, ["open"])
|
|
472
|
-
]),
|
|
473
|
-
_: 1
|
|
474
|
-
}, 8, ["title"])
|
|
475
|
-
]),
|
|
476
|
-
_: 1
|
|
477
|
-
}),
|
|
478
|
-
e(U, {
|
|
479
|
-
span: 20,
|
|
480
|
-
class: "right-box"
|
|
481
|
-
}, {
|
|
482
|
-
default: o(() => [
|
|
483
|
-
e(A, {
|
|
484
|
-
bordered: !1,
|
|
485
|
-
title: n.$t("role.role_info")
|
|
486
|
-
}, {
|
|
487
|
-
default: o(() => [
|
|
488
|
-
e(Z, {
|
|
489
|
-
ref_key: "formRef",
|
|
490
|
-
ref: v,
|
|
491
|
-
model: p.value,
|
|
492
|
-
layout: "inline"
|
|
493
|
-
}, {
|
|
494
|
-
default: o(() => [
|
|
495
|
-
e(W, {
|
|
496
|
-
label: n.$t("role.role_name"),
|
|
497
|
-
name: "roleName",
|
|
498
|
-
rules: [{ required: !0, message: n.$t("role.role_name_msg1") }]
|
|
499
|
-
}, {
|
|
500
|
-
default: o(() => [
|
|
501
|
-
e(D, {
|
|
502
|
-
placeholder: n.$t("role.role_name_placeholder"),
|
|
503
|
-
value: p.value.roleName,
|
|
504
|
-
"onUpdate:value": g[1] || (g[1] = (B) => p.value.roleName = B)
|
|
505
|
-
}, null, 8, ["placeholder", "value"])
|
|
506
|
-
]),
|
|
507
|
-
_: 1
|
|
508
|
-
}, 8, ["label", "rules"]),
|
|
509
|
-
e(W, {
|
|
510
|
-
label: n.$t("role.remark"),
|
|
511
|
-
name: "remark",
|
|
512
|
-
rules: [{ message: n.$t("role.remark_msg1") }]
|
|
513
|
-
}, {
|
|
514
|
-
default: o(() => [
|
|
515
|
-
e(D, {
|
|
516
|
-
placeholder: n.$t("role.remark_placeholder"),
|
|
517
|
-
value: p.value.remark,
|
|
518
|
-
"onUpdate:value": g[2] || (g[2] = (B) => p.value.remark = B)
|
|
519
|
-
}, null, 8, ["placeholder", "value"])
|
|
520
|
-
]),
|
|
521
|
-
_: 1
|
|
522
|
-
}, 8, ["label", "rules"])
|
|
523
|
-
]),
|
|
524
|
-
_: 1
|
|
525
|
-
}, 8, ["model"])
|
|
526
|
-
]),
|
|
527
|
-
_: 1
|
|
528
|
-
}, 8, ["title"]),
|
|
529
|
-
e(A, {
|
|
530
|
-
class: "card",
|
|
531
|
-
bordered: !1,
|
|
532
|
-
title: n.$t("role.role_detail"),
|
|
533
|
-
style: { "padding-bottom": "30px" }
|
|
534
|
-
}, {
|
|
535
|
-
default: o(() => [
|
|
536
|
-
e(j(tt), {
|
|
537
|
-
ref_key: "actDetailRef",
|
|
538
|
-
ref: f,
|
|
539
|
-
params: a.value,
|
|
540
|
-
mode: s.value
|
|
541
|
-
}, null, 8, ["params", "mode"])
|
|
542
|
-
]),
|
|
543
|
-
_: 1
|
|
544
|
-
}, 8, ["title"])
|
|
545
|
-
]),
|
|
546
|
-
_: 1
|
|
547
|
-
})
|
|
548
|
-
]),
|
|
549
|
-
_: 1
|
|
550
|
-
}),
|
|
551
|
-
e(j(ye), null, {
|
|
552
|
-
default: o(() => [
|
|
553
|
-
e(P, {
|
|
554
|
-
onClick: b,
|
|
555
|
-
style: { "margin-right": "20px" }
|
|
556
|
-
}, {
|
|
557
|
-
default: o(() => [
|
|
558
|
-
q(T(n.$t("common.btn_cancel")), 1)
|
|
559
|
-
]),
|
|
560
|
-
_: 1
|
|
561
|
-
}),
|
|
562
|
-
c.params.opType == "2" ? (_(), M(P, {
|
|
563
|
-
key: 0,
|
|
564
|
-
onClick: w,
|
|
565
|
-
type: "primary"
|
|
566
|
-
}, {
|
|
567
|
-
default: o(() => [
|
|
568
|
-
q(T(n.$t("common.btn_ok")), 1)
|
|
569
|
-
]),
|
|
570
|
-
_: 1
|
|
571
|
-
})) : L("v-if", !0)
|
|
572
|
-
]),
|
|
573
|
-
_: 1
|
|
574
|
-
})
|
|
575
|
-
]);
|
|
576
|
-
};
|
|
577
|
-
}
|
|
578
|
-
}), ot = /* @__PURE__ */ J(lt, [["__scopeId", "data-v-41930af1"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/RoleDetail.vue"]]), nt = { bordered: !1 }, st = { style: { margin: "10px 0 16px" } }, rt = {
|
|
579
|
-
class: "table-page-search-wrapper",
|
|
580
|
-
style: { "margin-bottom": "16px" }
|
|
581
|
-
}, ct = { key: 1 }, ut = { key: 2 }, it = { key: 3 }, dt = /* @__PURE__ */ H({
|
|
582
|
-
name: "Function6",
|
|
583
|
-
__name: "index",
|
|
584
|
-
setup(c, { expose: O }) {
|
|
585
|
-
var K, Q;
|
|
586
|
-
const { t: h } = X(), $ = r(), i = r(), d = r(!1), y = r(!1), f = r({
|
|
587
|
-
roleName: ""
|
|
588
|
-
}), v = r({}), k = Me([
|
|
589
|
-
{
|
|
590
|
-
title: h("device.index1"),
|
|
591
|
-
width: "50px",
|
|
592
|
-
align: "center",
|
|
593
|
-
key: "index1"
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
title: h("personal_center.role"),
|
|
597
|
-
dataIndex: "roleName",
|
|
598
|
-
width: "150px",
|
|
599
|
-
align: "center",
|
|
600
|
-
key: "roleName"
|
|
601
|
-
},
|
|
602
|
-
{
|
|
603
|
-
title: h("role.remark"),
|
|
604
|
-
dataIndex: "remark",
|
|
605
|
-
width: "150px",
|
|
606
|
-
align: "center",
|
|
607
|
-
key: "remark"
|
|
608
|
-
},
|
|
609
|
-
{
|
|
610
|
-
title: h("role.uoperator"),
|
|
611
|
-
dataIndex: "uoperator",
|
|
612
|
-
width: "150px",
|
|
613
|
-
align: "center",
|
|
614
|
-
key: "uoperator"
|
|
615
|
-
},
|
|
616
|
-
{
|
|
617
|
-
title: h("role.udate"),
|
|
618
|
-
dataIndex: "udate",
|
|
619
|
-
width: "160px",
|
|
620
|
-
align: "center",
|
|
621
|
-
key: "udate"
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
title: h("role.role_status"),
|
|
625
|
-
dataIndex: "roleStatus",
|
|
626
|
-
width: "150px",
|
|
627
|
-
align: "center",
|
|
628
|
-
key: "roleStatus"
|
|
629
|
-
},
|
|
630
|
-
{
|
|
631
|
-
title: h("role.action"),
|
|
632
|
-
align: "center",
|
|
633
|
-
key: "action"
|
|
634
|
-
}
|
|
635
|
-
]), p = (K = i.value) == null ? void 0 : K.getLabel(0), C = (Q = i.value) == null ? void 0 : Q.getLabel(1), a = () => {
|
|
636
|
-
$.value.refresh();
|
|
637
|
-
}, t = (I) => {
|
|
638
|
-
Ae.emit("change", {
|
|
639
|
-
title: "role.title" + I,
|
|
640
|
-
description: "role.description" + I
|
|
641
|
-
});
|
|
642
|
-
}, l = () => {
|
|
643
|
-
t("1"), y.value = !0;
|
|
644
|
-
}, u = async (I, F) => {
|
|
645
|
-
await je({
|
|
646
|
-
roleId: F.roleId,
|
|
647
|
-
roleStatus: I ? "0" : "1"
|
|
648
|
-
}), a();
|
|
649
|
-
}, m = (I) => {
|
|
650
|
-
t("2"), v.value = { opType: "2", roleId: I.roleId }, d.value = !0;
|
|
651
|
-
}, S = (I) => {
|
|
652
|
-
t("3"), v.value = { opType: "3", roleId: I.roleId }, d.value = !0;
|
|
653
|
-
}, s = () => {
|
|
654
|
-
$.value.refresh();
|
|
655
|
-
}, w = () => {
|
|
656
|
-
t("0"), d.value = !1, y.value = !1;
|
|
657
|
-
}, b = () => {
|
|
658
|
-
f.value = {
|
|
659
|
-
roleName: ""
|
|
660
|
-
};
|
|
661
|
-
}, x = async (I) => {
|
|
662
|
-
const F = Object.assign(I, f.value), { result: z } = await Pe(F);
|
|
663
|
-
return z;
|
|
664
|
-
};
|
|
665
|
-
return O({
|
|
666
|
-
onSearch: a,
|
|
667
|
-
onSwitch: u,
|
|
668
|
-
onReset: b
|
|
669
|
-
}), le(() => {
|
|
670
|
-
t("0");
|
|
671
|
-
}), (I, F) => {
|
|
672
|
-
const z = De, Y = Ne, n = te, g = ae, R = xe, A = Fe, U = Re, D = Le, W = Oe, Z = ee;
|
|
673
|
-
return _(), N("div", null, [
|
|
674
|
-
re(e(Z, null, {
|
|
675
|
-
default: o(() => [
|
|
676
|
-
G("div", nt, [
|
|
677
|
-
G("div", st, [
|
|
678
|
-
e(z, {
|
|
679
|
-
placeholder: I.$t("role.nameInput"),
|
|
680
|
-
ref: "inputSearch",
|
|
681
|
-
value: f.value.roleName,
|
|
682
|
-
"onUpdate:value": F[0] || (F[0] = (E) => f.value.roleName = E),
|
|
683
|
-
onSearch: a,
|
|
684
|
-
allowClear: "",
|
|
685
|
-
style: { width: "350px", "margin-right": "16px" }
|
|
686
|
-
}, null, 8, ["placeholder", "value"])
|
|
687
|
-
]),
|
|
688
|
-
G("div", rt, [
|
|
689
|
-
e(g, null, {
|
|
690
|
-
default: o(() => [
|
|
691
|
-
e(n, { md: 18 }, {
|
|
692
|
-
default: o(() => [
|
|
693
|
-
e(Y, { onClick: l }),
|
|
694
|
-
F[1] || (F[1] = q("\xA0 "))
|
|
695
|
-
]),
|
|
696
|
-
_: 1
|
|
697
|
-
})
|
|
698
|
-
]),
|
|
699
|
-
_: 1
|
|
700
|
-
})
|
|
701
|
-
]),
|
|
702
|
-
e(we, {
|
|
703
|
-
ref_key: "tableRef",
|
|
704
|
-
ref: $,
|
|
705
|
-
data: x,
|
|
706
|
-
columns: k,
|
|
707
|
-
rowKey: "roleId"
|
|
708
|
-
}, {
|
|
709
|
-
bodyCell: o(({ record: E, column: P }) => [
|
|
710
|
-
P.key === "index1" ? (_(), M(j(Ie), {
|
|
711
|
-
key: 0,
|
|
712
|
-
class: "icon",
|
|
713
|
-
style: { fontSize: "25px", color: "#1890ff" }
|
|
714
|
-
}, {
|
|
715
|
-
component: o(() => [
|
|
716
|
-
e(j($e))
|
|
717
|
-
]),
|
|
718
|
-
_: 1
|
|
719
|
-
})) : L("v-if", !0),
|
|
720
|
-
P.key === "udate" ? (_(), N("span", ct, [
|
|
721
|
-
e(R, {
|
|
722
|
-
defaultValue: E.udate
|
|
723
|
-
}, null, 8, ["defaultValue"])
|
|
724
|
-
])) : L("v-if", !0),
|
|
725
|
-
P.key === "roleStatus" ? (_(), N("span", ut, [
|
|
726
|
-
e(A, {
|
|
727
|
-
defaultChecked: E.roleStatus == 0,
|
|
728
|
-
checkedChildren: j(p),
|
|
729
|
-
unCheckedChildren: j(C),
|
|
730
|
-
onChange: (B) => u(B, E)
|
|
731
|
-
}, null, 8, ["defaultChecked", "checkedChildren", "unCheckedChildren", "onChange"])
|
|
732
|
-
])) : L("v-if", !0),
|
|
733
|
-
P.key === "action" ? (_(), N("span", it, [
|
|
734
|
-
e(U, {
|
|
735
|
-
onClick: (B) => m(E),
|
|
736
|
-
type: "a"
|
|
737
|
-
}, null, 8, ["onClick"]),
|
|
738
|
-
e(D, { type: "vertical" }),
|
|
739
|
-
e(W, {
|
|
740
|
-
onClick: (B) => S(E),
|
|
741
|
-
type: "a"
|
|
742
|
-
}, null, 8, ["onClick"])
|
|
743
|
-
])) : L("v-if", !0)
|
|
744
|
-
]),
|
|
745
|
-
_: 1
|
|
746
|
-
}, 8, ["columns"])
|
|
747
|
-
])
|
|
748
|
-
]),
|
|
749
|
-
_: 1
|
|
750
|
-
}, 512), [
|
|
751
|
-
[ce, !d.value]
|
|
752
|
-
]),
|
|
753
|
-
y.value ? (_(), M(Ke, {
|
|
754
|
-
key: 0,
|
|
755
|
-
onOk: s,
|
|
756
|
-
onCancel: w
|
|
757
|
-
})) : L("v-if", !0),
|
|
758
|
-
d.value ? (_(), M(ot, {
|
|
759
|
-
key: 1,
|
|
760
|
-
onOk: s,
|
|
761
|
-
onCancel: w,
|
|
762
|
-
params: v.value
|
|
763
|
-
}, null, 8, ["params"])) : L("v-if", !0),
|
|
764
|
-
re(e(Se, {
|
|
765
|
-
type: "CMS_STATUS",
|
|
766
|
-
ref_key: "dictRoleStatusRef",
|
|
767
|
-
ref: i
|
|
768
|
-
}, null, 512), [
|
|
769
|
-
[ce, !1]
|
|
770
|
-
])
|
|
771
|
-
]);
|
|
772
|
-
};
|
|
773
|
-
}
|
|
774
|
-
}), _t = /* @__PURE__ */ J(dt, [["__scopeId", "data-v-79d9b716"], ["__file", "D:/inhe-code/witlink-platform-usercenter-web/witlink-platform-usercenter1/src/views/sys/role/index.vue"]]);
|
|
775
|
-
export {
|
|
776
|
-
_t as default
|
|
777
|
-
};
|