jmash-core 0.0.33 → 0.0.34
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/{401-BzJ2fSMC.mjs → 401-DXtbe6Yd.mjs} +2 -2
- package/dist/{404-OqyTb481.mjs → 404-DavddNF1.mjs} +1 -1
- package/dist/{BarChart-r7rLOhAh.mjs → BarChart-BGWhC_Jt.mjs} +2 -2
- package/dist/{PieChart-CO_vmXmm.mjs → PieChart-Cj7VH6yz.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-C_O4J-hk.mjs → PieChart.vue_vue_type_script_setup_true_lang-ByX-PTmw.mjs} +2 -2
- package/dist/{RadarChart-BdqBJZbR.mjs → RadarChart-C5dWx5K2.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-B7Wv5zvc.mjs → RadarChart.vue_vue_type_script_setup_true_lang-3ifGwbbe.mjs} +2 -2
- package/dist/{edit-CvoYAQA7.mjs → edit-Bh2cC2k_.mjs} +1 -1
- package/dist/{edit-Qs28x5z3.mjs → edit-BzKHIxCm.mjs} +7 -7
- package/dist/{edit-BDzFtL2R.mjs → edit-C1TBmIcq.mjs} +1 -1
- package/dist/{edit-TPY8sqBx.mjs → edit-CL6YPkG3.mjs} +6 -6
- package/dist/{edit-BK6WtdH7.mjs → edit-Cuq0dgb-.mjs} +1 -1
- package/dist/{edit-DgcXUh9P.mjs → edit-D1N_u7CO.mjs} +1 -1
- package/dist/edit-DVLmndIf.mjs +4 -0
- package/dist/edit-DwrBZ0BH.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BwVnoqRZ.mjs → edit.vue_vue_type_script_setup_true_lang-2itQoitV.mjs} +3 -3
- package/dist/{edit.vue_vue_type_script_setup_true_lang-Cl8pUd9z.mjs → edit.vue_vue_type_script_setup_true_lang-Bktqx5ge.mjs} +6 -6
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C9HP2oBW.mjs → edit.vue_vue_type_script_setup_true_lang-CT3DmWaf.mjs} +3 -3
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CFPDx6b3.mjs → edit.vue_vue_type_script_setup_true_lang-DU-XwKxk.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-B8ELVuWA.mjs → edit.vue_vue_type_script_setup_true_lang-DmbzniEz.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BkuiKgF3.mjs → edit.vue_vue_type_script_setup_true_lang-DrDbx2Li.mjs} +5 -5
- package/dist/{el-card-BtyB7SHO.mjs → el-card-C2Iyk9eD.mjs} +1 -1
- package/dist/{el-col-CBbTQyho.mjs → el-col-BZMZzMgk.mjs} +1 -1
- package/dist/{el-date-picker-5_0EBb2Y.mjs → el-date-picker-BDzQ0XOH.mjs} +1 -1
- package/dist/{el-divider-CHJI0J_1.mjs → el-divider-DYtiMLb_.mjs} +1 -1
- package/dist/{el-dropdown-item-DJ4op1uf.mjs → el-dropdown-item-BwFt6z6h.mjs} +2 -2
- package/dist/{el-form-item-xvoQU0qJ.mjs → el-form-item-C72ztNba.mjs} +1 -1
- package/dist/{el-tree-select-BwHFKWJR.mjs → el-tree-select-C3o2dCoQ.mjs} +2 -2
- package/dist/{index-5e-Kqk_y.mjs → index-B46TUGpi.mjs} +4 -4
- package/dist/{index-DyiARXci.mjs → index-BAhs94It.mjs} +7 -7
- package/dist/{index-DOqNCkoW.mjs → index-BC1cU5-U.mjs} +1 -1
- package/dist/{index-DZRLC90B.mjs → index-BIC_cxiY.mjs} +5 -5
- package/dist/{index-hT4fKq99.mjs → index-BiPoNTj8.mjs} +6 -6
- package/dist/{index-Cgh1Pgof.mjs → index-BmcglOVS.mjs} +9 -9
- package/dist/{index-B7LLPhN2.mjs → index-Brg6tBQY.mjs} +5 -5
- package/dist/{index-DTGGjXNz.mjs → index-BslAoRdb.mjs} +5 -5
- package/dist/{index-DIPdo8jt.mjs → index-Bw2ndBg8.mjs} +4 -4
- package/dist/{index-C0Hg_Iwp.mjs → index-C4SlKL9P.mjs} +1 -1
- package/dist/{index-Cn1XBT6H.mjs → index-C87BDrS5.mjs} +5 -5
- package/dist/{index-p1FvSG5T.mjs → index-Cf6TycIC.mjs} +297 -298
- package/dist/{index-DawnX0bH.mjs → index-ChDQ5e1i.mjs} +5 -5
- package/dist/{index-Buz8upHy.mjs → index-CnyanYko.mjs} +1 -1
- package/dist/{index-DTX_DK6_.mjs → index-D86kx3fp.mjs} +6 -6
- package/dist/{index-DqHdEOQ4.mjs → index-DqCBekzV.mjs} +5 -5
- package/dist/{index-BMAxoG4r.mjs → index-N7jDMBka.mjs} +1 -1
- package/dist/{index-B3Js6x1l.mjs → index-N9NH-PnN.mjs} +1 -1
- package/dist/{index-DeQIPy_U.mjs → index-WVNmKzBv.mjs} +1 -1
- package/dist/{index-CuJi981D.mjs → index-hJWAHhNr.mjs} +2456 -2413
- package/dist/index.mjs +8 -8
- package/dist/{index.vue_vue_type_script_setup_true_lang-DbLy1Rit.mjs → index.vue_vue_type_script_setup_true_lang-BIWr5KW0.mjs} +2 -2
- package/dist/{picture-rRZ6QtAi.mjs → picture-D9DzH98i.mjs} +2 -2
- package/dist/{position-C3S9MAUw.mjs → position-CU97ZYEj.mjs} +1 -1
- package/dist/{profile-BB8V9xN8.mjs → profile-9hf3r_AV.mjs} +7 -7
- package/dist/{runAs-CM5ut__f.mjs → runAs-DKtYzPkc.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-CGRH7cur.mjs → runAs.vue_vue_type_script_setup_true_lang-CMiHOpJm.mjs} +2 -2
- package/dist/style.css +1 -1
- package/dist/{types-ChgJHuaI.mjs → types-Caq8ged2.mjs} +3 -3
- package/dist/{updatePwd-TQz-4dEO.mjs → updatePwd-D7t663wH.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-ODFMxiZI.mjs → updatePwd.vue_vue_type_script_setup_true_lang-nJPvqmg1.mjs} +2 -2
- package/dts/src/components/JmashPagination/index.vue.d.ts +32 -0
- package/dts/src/components/Pagination/index.vue.d.ts +2 -2
- package/package.json +1 -1
- package/dist/edit-DpMpCUQP.mjs +0 -4
- package/dist/edit-ao_NrPs_.mjs +0 -4
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { $ as U, aS as
|
|
2
|
-
import { E as
|
|
3
|
-
import { E as
|
|
4
|
-
import { E as
|
|
5
|
-
import { E as
|
|
6
|
-
import { defineComponent as
|
|
1
|
+
import { $ as U, aS as Oe, aT as We, bp as Je, bo as Qe, aO as Ze, aP as Ge, aU as j, ak as He, al as Ye, s as Xe, aJ as xe, t as et, E as tt, cr as ot, aj as at, Y as lt, ab as st, cs as nt, ct as rt, ap as dt, aW as it } from "./index-hJWAHhNr.mjs";
|
|
2
|
+
import { E as ut, a as mt } from "./el-col-BZMZzMgk.mjs";
|
|
3
|
+
import { E as pt, a as ct, b as ft } from "./el-dropdown-item-BwFt6z6h.mjs";
|
|
4
|
+
import { E as wt } from "./el-tree-select-C3o2dCoQ.mjs";
|
|
5
|
+
import { E as bt, a as yt } from "./el-form-item-C72ztNba.mjs";
|
|
6
|
+
import { defineComponent as _t, ref as D, reactive as C, onBeforeMount as ht, resolveComponent as M, resolveDirective as gt, openBlock as n, createElementBlock as c, createVNode as l, withCtx as a, Fragment as vt, renderList as Ut, createBlock as p, withKeys as kt, unref as m, createTextVNode as d, toDisplayString as s, withDirectives as f, isRef as K, createElementVNode as R, createCommentVNode as b, vShow as ne } from "vue";
|
|
7
7
|
import { ElMessageBox as B, ElMessage as k } from "element-plus";
|
|
8
|
-
import { useI18n as
|
|
9
|
-
import { g as
|
|
10
|
-
import { t as
|
|
11
|
-
const
|
|
8
|
+
import { useI18n as $t } from "vue-i18n";
|
|
9
|
+
import { g as Ct, d as Et, b as It, a as Vt, u as Pt, c as Dt, e as Rt, r as St, f as Nt, h as Tt, i as qt, j as At, k as Bt, t as zt, l as Ft } from "./edit-BzKHIxCm.mjs";
|
|
10
|
+
import { t as Lt } from "./index-C4SlKL9P.mjs";
|
|
11
|
+
const jt = { class: "app-container" }, Mt = /* @__PURE__ */ R("div", { class: "clear" }, null, -1), Kt = { key: 0 }, Ot = { key: 1 }, Wt = { key: 2 }, Jt = {
|
|
12
12
|
key: 3,
|
|
13
13
|
class: "distance-left"
|
|
14
|
-
},
|
|
14
|
+
}, Qt = { key: 0 }, Zt = { key: 1 }, Gt = ["onClick"], Ht = ["onClick"], Yt = { class: "el-dropdown-link" }, Xt = { class: "dialog-footer" }, bo = /* @__PURE__ */ _t({
|
|
15
15
|
__name: "index",
|
|
16
|
-
setup(
|
|
17
|
-
const { t:
|
|
16
|
+
setup(xt) {
|
|
17
|
+
const { t: r } = $t(), O = D(), W = D([]), J = D(), u = C({
|
|
18
18
|
tenant: U().user.tenant,
|
|
19
19
|
curPage: 1,
|
|
20
20
|
pageSize: 10,
|
|
21
21
|
showDeleted: !1
|
|
22
22
|
});
|
|
23
|
-
let E =
|
|
23
|
+
let E = D(!1), z = C({
|
|
24
24
|
loginName: "",
|
|
25
25
|
roleIds: []
|
|
26
|
-
}),
|
|
26
|
+
}), I = C([
|
|
27
27
|
{
|
|
28
|
-
label:
|
|
28
|
+
label: "sysUser.directory",
|
|
29
29
|
prop: "directoryId",
|
|
30
30
|
width: "100",
|
|
31
31
|
sortable: !0,
|
|
32
32
|
isColumn: !0
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
label:
|
|
35
|
+
label: "sysUser.username",
|
|
36
36
|
prop: "loginName",
|
|
37
37
|
width: "180",
|
|
38
38
|
slotName: "userName",
|
|
@@ -41,21 +41,21 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
41
41
|
isColumn: !0
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
label:
|
|
44
|
+
label: "sysUser.nickname",
|
|
45
45
|
prop: "nickName",
|
|
46
46
|
width: "100",
|
|
47
47
|
isColumn: !0,
|
|
48
48
|
sortable: !0
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
label:
|
|
51
|
+
label: "sysUser.fullName",
|
|
52
52
|
prop: "realName",
|
|
53
53
|
width: "100",
|
|
54
54
|
isColumn: !0,
|
|
55
55
|
sortable: !0
|
|
56
56
|
},
|
|
57
57
|
{
|
|
58
|
-
label:
|
|
58
|
+
label: "sysUser.gender",
|
|
59
59
|
prop: "gender",
|
|
60
60
|
width: "80",
|
|
61
61
|
slotName: "sexType",
|
|
@@ -64,14 +64,14 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
64
64
|
sortable: !0
|
|
65
65
|
},
|
|
66
66
|
{
|
|
67
|
-
label:
|
|
67
|
+
label: "sysUser.birthday",
|
|
68
68
|
prop: "birthDate",
|
|
69
69
|
width: "120",
|
|
70
70
|
isColumn: !0,
|
|
71
71
|
sortable: !0
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
label:
|
|
74
|
+
label: "sysUser.phoneNumber",
|
|
75
75
|
prop: "mobilePhoneIns",
|
|
76
76
|
width: "190",
|
|
77
77
|
slotName: "mobileIns",
|
|
@@ -80,7 +80,7 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
80
80
|
sortable: !0
|
|
81
81
|
},
|
|
82
82
|
{
|
|
83
|
-
label:
|
|
83
|
+
label: "sysUser.email",
|
|
84
84
|
prop: "email",
|
|
85
85
|
width: "180",
|
|
86
86
|
slotName: "email",
|
|
@@ -89,7 +89,7 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
89
89
|
sortable: !0
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
|
-
label:
|
|
92
|
+
label: "sysUser.userAuditStatus",
|
|
93
93
|
prop: "approved",
|
|
94
94
|
width: "160",
|
|
95
95
|
slotName: "audit",
|
|
@@ -97,7 +97,7 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
97
97
|
isColumn: !0
|
|
98
98
|
},
|
|
99
99
|
{
|
|
100
|
-
label:
|
|
100
|
+
label: "sysUser.state",
|
|
101
101
|
prop: "status",
|
|
102
102
|
width: "100",
|
|
103
103
|
slotName: "status",
|
|
@@ -105,7 +105,7 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
105
105
|
isColumn: !0
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
|
-
label:
|
|
108
|
+
label: "common.operate",
|
|
109
109
|
width: "200",
|
|
110
110
|
slotName: "operation",
|
|
111
111
|
columnType: "slot",
|
|
@@ -113,61 +113,61 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
113
113
|
isColumn: !0
|
|
114
114
|
}
|
|
115
115
|
]);
|
|
116
|
-
const
|
|
116
|
+
const V = C({
|
|
117
117
|
title: "",
|
|
118
118
|
visible: !1
|
|
119
|
-
}),
|
|
120
|
-
list:
|
|
121
|
-
del:
|
|
122
|
-
dels:
|
|
119
|
+
}), S = D(!1), re = C({
|
|
120
|
+
list: Ct,
|
|
121
|
+
del: Et,
|
|
122
|
+
dels: It
|
|
123
123
|
}), {
|
|
124
124
|
tableData: de,
|
|
125
125
|
total: q,
|
|
126
126
|
listLoading: ie,
|
|
127
|
-
selectionRows:
|
|
128
|
-
multipleTableRef:
|
|
129
|
-
queryFormRef:
|
|
130
|
-
getList:
|
|
127
|
+
selectionRows: N,
|
|
128
|
+
multipleTableRef: Q,
|
|
129
|
+
queryFormRef: Z,
|
|
130
|
+
getList: G,
|
|
131
131
|
handleQuery: g,
|
|
132
132
|
deleteRecord: ue,
|
|
133
133
|
deleteRecords: me
|
|
134
|
-
} =
|
|
135
|
-
parIndex:
|
|
136
|
-
tableArray:
|
|
137
|
-
getLocalStorageContent:
|
|
138
|
-
fixedChange:
|
|
139
|
-
isShowChange:
|
|
140
|
-
} =
|
|
134
|
+
} = Oe(r, re, u), {
|
|
135
|
+
parIndex: eo,
|
|
136
|
+
tableArray: pe,
|
|
137
|
+
getLocalStorageContent: ce,
|
|
138
|
+
fixedChange: to,
|
|
139
|
+
isShowChange: oo
|
|
140
|
+
} = We(I, "/system/user"), F = D();
|
|
141
141
|
let $ = C({
|
|
142
142
|
tenant: U().user.tenant,
|
|
143
143
|
userId: "",
|
|
144
144
|
pwd: "",
|
|
145
145
|
repeatPwd: ""
|
|
146
146
|
});
|
|
147
|
-
const
|
|
147
|
+
const fe = C({
|
|
148
148
|
pwd: [{ required: !0, validator: (e, o, i) => {
|
|
149
|
-
o === "" ? i(new Error(
|
|
149
|
+
o === "" ? i(new Error(r("password.newPwdRequired"))) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(o) ? i() : i(new Error(r("password.pwdRules")));
|
|
150
150
|
}, trigger: "blur" }],
|
|
151
151
|
repeatPwd: [
|
|
152
152
|
{ required: !0, validator: (e, o, i) => {
|
|
153
|
-
o === "" ? i(new Error(
|
|
153
|
+
o === "" ? i(new Error(r("password.confirmPwdRequired"))) : o !== $.pwd ? i(new Error(r("password.comparePwd"))) : i();
|
|
154
154
|
}, trigger: "blur" }
|
|
155
155
|
]
|
|
156
156
|
});
|
|
157
|
-
function
|
|
158
|
-
|
|
157
|
+
function we() {
|
|
158
|
+
Z.value.resetFields(), u.hasUserStatus = !1, g();
|
|
159
159
|
}
|
|
160
|
-
function
|
|
160
|
+
function be(e) {
|
|
161
161
|
B.confirm("确认切换该用户?", "提示", {
|
|
162
|
-
cancelButtonText:
|
|
163
|
-
confirmButtonText:
|
|
162
|
+
cancelButtonText: r("common.cancel"),
|
|
163
|
+
confirmButtonText: r("common.confirm"),
|
|
164
164
|
type: "warning"
|
|
165
165
|
}).then(() => {
|
|
166
|
-
|
|
166
|
+
Ze(e.userId).then(async (o) => {
|
|
167
167
|
if (o.status === 200) {
|
|
168
168
|
U().user.roleCodes = [], U().user.permCodes = [];
|
|
169
169
|
const { roleCodes: i } = await U().getRoleInfo(), v = await U().getUserInfo();
|
|
170
|
-
await
|
|
170
|
+
await Ge().generateRoutes(i, v), k({
|
|
171
171
|
message: "切换成功",
|
|
172
172
|
type: "success"
|
|
173
173
|
}), g();
|
|
@@ -176,48 +176,48 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
176
176
|
}).catch(() => {
|
|
177
177
|
});
|
|
178
178
|
}
|
|
179
|
-
function
|
|
179
|
+
function H(e) {
|
|
180
180
|
e.mobileEncrypt = !e.mobileEncrypt;
|
|
181
181
|
}
|
|
182
|
-
function
|
|
183
|
-
|
|
182
|
+
function ye() {
|
|
183
|
+
z = C({
|
|
184
184
|
loginName: "",
|
|
185
185
|
roleIds: []
|
|
186
|
-
}),
|
|
186
|
+
}), V.visible = !0, V.title = r("common.add");
|
|
187
187
|
}
|
|
188
|
-
function
|
|
189
|
-
|
|
190
|
-
|
|
188
|
+
function _e(e) {
|
|
189
|
+
V.title = r("common.edit"), Dt(e.userId).then(({ data: o }) => {
|
|
190
|
+
z = { ...o }, V.visible = !0;
|
|
191
191
|
});
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
|
|
193
|
+
function he(e) {
|
|
194
|
+
N.value = e;
|
|
195
195
|
}
|
|
196
|
-
function
|
|
196
|
+
function ge(e) {
|
|
197
197
|
E.value = !0, $.userId = e.userId;
|
|
198
198
|
}
|
|
199
|
-
function
|
|
199
|
+
function ve(e, o) {
|
|
200
200
|
const i = {
|
|
201
201
|
tenant: U().user.tenant,
|
|
202
202
|
approved: o,
|
|
203
203
|
userId: [e.userId]
|
|
204
204
|
};
|
|
205
|
-
|
|
205
|
+
Rt(i).then(() => {
|
|
206
206
|
});
|
|
207
207
|
}
|
|
208
|
-
function
|
|
209
|
-
|
|
208
|
+
function Ue(e) {
|
|
209
|
+
V.visible = e;
|
|
210
210
|
}
|
|
211
|
-
function
|
|
211
|
+
function ke(e) {
|
|
212
212
|
e && g();
|
|
213
213
|
}
|
|
214
|
-
const
|
|
214
|
+
const $e = async () => {
|
|
215
215
|
var e;
|
|
216
|
-
await ((e =
|
|
216
|
+
await ((e = F.value) == null ? void 0 : e.validate((o) => {
|
|
217
217
|
if (o)
|
|
218
|
-
|
|
218
|
+
St($).then((i) => {
|
|
219
219
|
i.status === 200 && (k({
|
|
220
|
-
message:
|
|
220
|
+
message: r("password.successResetPwd"),
|
|
221
221
|
type: "success"
|
|
222
222
|
}), E.value = !1, g());
|
|
223
223
|
});
|
|
@@ -225,72 +225,72 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
225
225
|
return !1;
|
|
226
226
|
}));
|
|
227
227
|
};
|
|
228
|
-
function
|
|
228
|
+
function Y() {
|
|
229
229
|
var e;
|
|
230
|
-
(e =
|
|
230
|
+
(e = F.value) == null || e.resetFields(), E.value = !1;
|
|
231
231
|
}
|
|
232
|
-
function
|
|
232
|
+
function Ce(e) {
|
|
233
233
|
if (e === "false") {
|
|
234
|
-
if (
|
|
234
|
+
if (N.value.length === 0) {
|
|
235
235
|
k({
|
|
236
|
-
message:
|
|
236
|
+
message: r("common.chooseDisable"),
|
|
237
237
|
type: "warning"
|
|
238
238
|
});
|
|
239
239
|
return;
|
|
240
240
|
}
|
|
241
|
-
B.confirm(
|
|
242
|
-
cancelButtonText:
|
|
243
|
-
confirmButtonText:
|
|
241
|
+
B.confirm(r("common.confirmDisable"), r("common.disable"), {
|
|
242
|
+
cancelButtonText: r("common.cancel"),
|
|
243
|
+
confirmButtonText: r("common.confirm"),
|
|
244
244
|
type: "warning"
|
|
245
245
|
}).then(() => {
|
|
246
|
-
|
|
246
|
+
X(
|
|
247
247
|
e,
|
|
248
|
-
|
|
248
|
+
N.value.map((o) => o.userId)
|
|
249
249
|
);
|
|
250
250
|
}).catch(() => {
|
|
251
251
|
});
|
|
252
252
|
} else {
|
|
253
|
-
if (
|
|
253
|
+
if (N.value.length === 0) {
|
|
254
254
|
k({
|
|
255
|
-
message:
|
|
255
|
+
message: r("common.chooseEnable"),
|
|
256
256
|
type: "warning"
|
|
257
257
|
});
|
|
258
258
|
return;
|
|
259
259
|
}
|
|
260
|
-
B.confirm(
|
|
261
|
-
cancelButtonText:
|
|
262
|
-
confirmButtonText:
|
|
260
|
+
B.confirm(r("common.confirmEnable"), r("common.enable"), {
|
|
261
|
+
cancelButtonText: r("common.cancel"),
|
|
262
|
+
confirmButtonText: r("common.confirm"),
|
|
263
263
|
type: "warning"
|
|
264
264
|
}).then(() => {
|
|
265
|
-
console.log(e),
|
|
265
|
+
console.log(e), X(
|
|
266
266
|
e,
|
|
267
|
-
|
|
267
|
+
N.value.map((o) => o.userId)
|
|
268
268
|
);
|
|
269
269
|
}).catch(() => {
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
function
|
|
273
|
+
function X(e, o) {
|
|
274
274
|
const i = {
|
|
275
275
|
tenant: U().user.tenant,
|
|
276
276
|
enabled: JSON.parse(e),
|
|
277
277
|
userId: o
|
|
278
278
|
};
|
|
279
|
-
|
|
279
|
+
Nt(i).then((v) => {
|
|
280
280
|
var y;
|
|
281
281
|
v.status === 200 && (e === "true" ? k({
|
|
282
|
-
message:
|
|
282
|
+
message: r("common.successEnable") + v.data + r("common.stripData"),
|
|
283
283
|
type: "success"
|
|
284
284
|
}) : k({
|
|
285
|
-
message:
|
|
285
|
+
message: r("common.successDisable") + v.data + r("common.stripData"),
|
|
286
286
|
type: "success"
|
|
287
|
-
}), g(), (y =
|
|
287
|
+
}), g(), (y = Q.value) == null || y.tableSelection());
|
|
288
288
|
});
|
|
289
289
|
}
|
|
290
|
-
function
|
|
290
|
+
function Ee(e) {
|
|
291
291
|
B.confirm("确认解锁该用户?", "提示", {
|
|
292
|
-
cancelButtonText:
|
|
293
|
-
confirmButtonText:
|
|
292
|
+
cancelButtonText: r("common.cancel"),
|
|
293
|
+
confirmButtonText: r("common.confirm"),
|
|
294
294
|
type: "warning"
|
|
295
295
|
}).then(() => {
|
|
296
296
|
const o = {
|
|
@@ -298,7 +298,7 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
298
298
|
lock: !1,
|
|
299
299
|
userId: [e.userId]
|
|
300
300
|
};
|
|
301
|
-
|
|
301
|
+
Tt(o).then(async (i) => {
|
|
302
302
|
i.status === 200 && (k({
|
|
303
303
|
message: "解锁成功",
|
|
304
304
|
type: "success"
|
|
@@ -307,47 +307,47 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
307
307
|
}).catch(() => {
|
|
308
308
|
});
|
|
309
309
|
}
|
|
310
|
-
function
|
|
311
|
-
|
|
310
|
+
function Ie() {
|
|
311
|
+
u.hasUserStatus = u.userStatus !== void 0;
|
|
312
312
|
}
|
|
313
|
-
function
|
|
314
|
-
console.log("默认加载...", e),
|
|
313
|
+
function Ve(e) {
|
|
314
|
+
console.log("默认加载...", e), qt(e.userId).then(() => {
|
|
315
315
|
});
|
|
316
316
|
}
|
|
317
|
-
function
|
|
317
|
+
function Pe() {
|
|
318
318
|
const e = {
|
|
319
319
|
req: {}
|
|
320
320
|
};
|
|
321
|
-
e.req =
|
|
321
|
+
e.req = u, At(e).then((o) => {
|
|
322
322
|
console.log(o);
|
|
323
323
|
const i = new Blob([o.data], {
|
|
324
324
|
type: "application/octet-stream"
|
|
325
325
|
});
|
|
326
|
-
|
|
326
|
+
j.saveAs(i, r("route.sysUser") + ".xlsx");
|
|
327
327
|
});
|
|
328
328
|
}
|
|
329
|
-
function
|
|
329
|
+
function De() {
|
|
330
330
|
const e = {
|
|
331
331
|
req: {}
|
|
332
332
|
};
|
|
333
|
-
e.req =
|
|
333
|
+
e.req = u, Bt(e).then((o) => {
|
|
334
334
|
console.log(o);
|
|
335
335
|
const i = new Blob([o.data], {
|
|
336
336
|
type: o.headers["content-type"]
|
|
337
337
|
});
|
|
338
|
-
|
|
338
|
+
j.saveAs(i, r("route.sysUser") + ".pdf");
|
|
339
339
|
});
|
|
340
340
|
}
|
|
341
|
-
function
|
|
342
|
-
|
|
341
|
+
function Re() {
|
|
342
|
+
zt().then((e) => {
|
|
343
343
|
console.log(e);
|
|
344
344
|
const o = new Blob([e.data], {
|
|
345
345
|
type: "application/octet-stream"
|
|
346
346
|
});
|
|
347
|
-
|
|
347
|
+
j.saveAs(o, r("sysUser.userTemplate") + ".xlsx");
|
|
348
348
|
});
|
|
349
349
|
}
|
|
350
|
-
function
|
|
350
|
+
function Se(e) {
|
|
351
351
|
if (!e.fileNames) {
|
|
352
352
|
k({
|
|
353
353
|
message: "请上传文件",
|
|
@@ -355,31 +355,31 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
355
355
|
});
|
|
356
356
|
return;
|
|
357
357
|
}
|
|
358
|
-
e.updateMask = "loginName,nickName,realName,gender,birthDate,mobilePhone,email,status",
|
|
358
|
+
e.updateMask = "loginName,nickName,realName,gender,birthDate,mobilePhone,email,status", Ft(e).then((o) => {
|
|
359
359
|
o.status === 200 && (k({
|
|
360
360
|
message: o.data,
|
|
361
361
|
type: "success"
|
|
362
|
-
}),
|
|
362
|
+
}), S.value = !1, g());
|
|
363
363
|
});
|
|
364
364
|
}
|
|
365
|
-
function
|
|
366
|
-
|
|
365
|
+
function Ne() {
|
|
366
|
+
S.value = !1;
|
|
367
367
|
}
|
|
368
|
-
return
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
}),
|
|
372
|
-
|
|
373
|
-
}),
|
|
374
|
-
console.log(e),
|
|
368
|
+
return ce(), I = pe.value, G(), ht(() => {
|
|
369
|
+
Lt().then(({ data: e }) => {
|
|
370
|
+
O.value = e.results;
|
|
371
|
+
}), Je("jmash.protobuf.Gender").then(({ data: e }) => {
|
|
372
|
+
W.value = e.values;
|
|
373
|
+
}), Vt().then(({ data: e }) => {
|
|
374
|
+
console.log(e), J.value = e.directoryId;
|
|
375
375
|
});
|
|
376
376
|
}), (e, o) => {
|
|
377
|
-
const i =
|
|
378
|
-
return
|
|
379
|
-
l(
|
|
377
|
+
const i = He, v = Ye, y = bt, L = Xe, Te = wt, qe = xe, h = et, x = yt, ee = M("arrow-down"), A = tt, Ae = M("Unlock"), T = pt, Be = M("Lock"), te = ct, oe = ft, ae = ut, ze = ot, Fe = mt, P = at, le = lt, se = st, Le = nt, je = rt, Me = dt, Ke = it, _ = gt("hasPerm");
|
|
378
|
+
return n(), c("div", jt, [
|
|
379
|
+
l(x, {
|
|
380
380
|
ref_key: "queryFormRef",
|
|
381
|
-
ref:
|
|
382
|
-
model:
|
|
381
|
+
ref: Z,
|
|
382
|
+
model: u,
|
|
383
383
|
inline: !0
|
|
384
384
|
}, {
|
|
385
385
|
default: a(() => [
|
|
@@ -389,12 +389,12 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
389
389
|
}, {
|
|
390
390
|
default: a(() => [
|
|
391
391
|
l(v, {
|
|
392
|
-
modelValue:
|
|
393
|
-
"onUpdate:modelValue": o[0] || (o[0] = (t) =>
|
|
392
|
+
modelValue: u.directoryId,
|
|
393
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => u.directoryId = t),
|
|
394
394
|
placeholder: e.$t("sysUser.directoryRequired")
|
|
395
395
|
}, {
|
|
396
396
|
default: a(() => [
|
|
397
|
-
(
|
|
397
|
+
(n(!0), c(vt, null, Ut(J.value, (t) => (n(), p(i, {
|
|
398
398
|
key: t,
|
|
399
399
|
label: t,
|
|
400
400
|
value: t
|
|
@@ -411,10 +411,10 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
411
411
|
}, {
|
|
412
412
|
default: a(() => [
|
|
413
413
|
l(L, {
|
|
414
|
-
modelValue:
|
|
415
|
-
"onUpdate:modelValue": o[1] || (o[1] = (t) =>
|
|
414
|
+
modelValue: u.loginName,
|
|
415
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => u.loginName = t),
|
|
416
416
|
placeholder: e.$t("sysUser.usernameRequired"),
|
|
417
|
-
onKeyup:
|
|
417
|
+
onKeyup: kt(m(g), ["enter"])
|
|
418
418
|
}, null, 8, ["modelValue", "placeholder", "onKeyup"])
|
|
419
419
|
]),
|
|
420
420
|
_: 1
|
|
@@ -424,10 +424,10 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
424
424
|
prop: "deptId"
|
|
425
425
|
}, {
|
|
426
426
|
default: a(() => [
|
|
427
|
-
l(
|
|
428
|
-
modelValue:
|
|
429
|
-
"onUpdate:modelValue": o[2] || (o[2] = (t) =>
|
|
430
|
-
data:
|
|
427
|
+
l(Te, {
|
|
428
|
+
modelValue: u.deptId,
|
|
429
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => u.deptId = t),
|
|
430
|
+
data: O.value,
|
|
431
431
|
"render-after-expand": !1,
|
|
432
432
|
filterable: "",
|
|
433
433
|
"check-strictly": "",
|
|
@@ -442,13 +442,13 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
442
442
|
prop: "userStatus"
|
|
443
443
|
}, {
|
|
444
444
|
default: a(() => [
|
|
445
|
-
l(
|
|
446
|
-
modelValue:
|
|
447
|
-
"onUpdate:modelValue": o[3] || (o[3] = (t) =>
|
|
445
|
+
l(qe, {
|
|
446
|
+
modelValue: u.userStatus,
|
|
447
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => u.userStatus = t),
|
|
448
448
|
placeholder: e.$t("sysUser.stateRequired"),
|
|
449
449
|
"dict-type": "jmash.rbac.protobuf.UserStatus",
|
|
450
450
|
clearable: "",
|
|
451
|
-
onChange:
|
|
451
|
+
onChange: Ie
|
|
452
452
|
}, null, 8, ["modelValue", "placeholder"])
|
|
453
453
|
]),
|
|
454
454
|
_: 1
|
|
@@ -459,8 +459,8 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
459
459
|
}, {
|
|
460
460
|
default: a(() => [
|
|
461
461
|
l(v, {
|
|
462
|
-
modelValue:
|
|
463
|
-
"onUpdate:modelValue": o[4] || (o[4] = (t) =>
|
|
462
|
+
modelValue: u.showDeleted,
|
|
463
|
+
"onUpdate:modelValue": o[4] || (o[4] = (t) => u.showDeleted = t),
|
|
464
464
|
placeholder: e.$t("sysUser.isDeletedRequired")
|
|
465
465
|
}, {
|
|
466
466
|
default: a(() => [
|
|
@@ -480,18 +480,18 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
480
480
|
}, 8, ["label"]),
|
|
481
481
|
l(y, { class: "search-container" }, {
|
|
482
482
|
default: a(() => [
|
|
483
|
-
l(
|
|
483
|
+
l(h, {
|
|
484
484
|
type: "primary",
|
|
485
|
-
onClick:
|
|
485
|
+
onClick: m(g)
|
|
486
486
|
}, {
|
|
487
487
|
default: a(() => [
|
|
488
|
-
d(
|
|
488
|
+
d(s(e.$t("common.search")), 1)
|
|
489
489
|
]),
|
|
490
490
|
_: 1
|
|
491
491
|
}, 8, ["onClick"]),
|
|
492
|
-
l(
|
|
492
|
+
l(h, { onClick: we }, {
|
|
493
493
|
default: a(() => [
|
|
494
|
-
d(
|
|
494
|
+
d(s(e.$t("common.reset")), 1)
|
|
495
495
|
]),
|
|
496
496
|
_: 1
|
|
497
497
|
})
|
|
@@ -501,61 +501,61 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
501
501
|
]),
|
|
502
502
|
_: 1
|
|
503
503
|
}, 8, ["model"]),
|
|
504
|
-
|
|
505
|
-
l(
|
|
504
|
+
Mt,
|
|
505
|
+
l(Fe, { justify: "space-between" }, {
|
|
506
506
|
default: a(() => [
|
|
507
|
-
l(
|
|
507
|
+
l(ae, { span: 17 }, {
|
|
508
508
|
default: a(() => [
|
|
509
|
-
f((
|
|
509
|
+
f((n(), p(h, {
|
|
510
510
|
type: "primary",
|
|
511
|
-
onClick:
|
|
511
|
+
onClick: ye
|
|
512
512
|
}, {
|
|
513
513
|
default: a(() => [
|
|
514
|
-
d(
|
|
514
|
+
d(s(e.$t("common.add")), 1)
|
|
515
515
|
]),
|
|
516
516
|
_: 1
|
|
517
517
|
})), [
|
|
518
|
-
[
|
|
518
|
+
[_, ["rbac:user:add"]]
|
|
519
519
|
]),
|
|
520
|
-
f((
|
|
520
|
+
f((n(), p(h, {
|
|
521
521
|
type: "primary",
|
|
522
|
-
onClick: o[5] || (o[5] = (t) =>
|
|
522
|
+
onClick: o[5] || (o[5] = (t) => m(me)("userId"))
|
|
523
523
|
}, {
|
|
524
524
|
default: a(() => [
|
|
525
|
-
d(
|
|
525
|
+
d(s(e.$t("common.batchDelete")), 1)
|
|
526
526
|
]),
|
|
527
527
|
_: 1
|
|
528
528
|
})), [
|
|
529
|
-
[
|
|
529
|
+
[_, ["rbac:user:delete"]]
|
|
530
530
|
]),
|
|
531
|
-
f((
|
|
531
|
+
f((n(), p(oe, {
|
|
532
532
|
class: "dropdown-left",
|
|
533
|
-
onCommand:
|
|
533
|
+
onCommand: Ce
|
|
534
534
|
}, {
|
|
535
535
|
dropdown: a(() => [
|
|
536
|
-
l(
|
|
536
|
+
l(te, null, {
|
|
537
537
|
default: a(() => [
|
|
538
|
-
l(
|
|
538
|
+
l(T, { command: "true" }, {
|
|
539
539
|
default: a(() => [
|
|
540
540
|
l(A, { size: "14" }, {
|
|
541
541
|
default: a(() => [
|
|
542
|
-
l(
|
|
542
|
+
l(Ae)
|
|
543
543
|
]),
|
|
544
544
|
_: 1
|
|
545
545
|
}),
|
|
546
|
-
d(" " +
|
|
546
|
+
d(" " + s(e.$t("common.enable")), 1)
|
|
547
547
|
]),
|
|
548
548
|
_: 1
|
|
549
549
|
}),
|
|
550
|
-
l(
|
|
550
|
+
l(T, { command: "false" }, {
|
|
551
551
|
default: a(() => [
|
|
552
552
|
l(A, { size: "14" }, {
|
|
553
553
|
default: a(() => [
|
|
554
|
-
l(
|
|
554
|
+
l(Be)
|
|
555
555
|
]),
|
|
556
556
|
_: 1
|
|
557
557
|
}),
|
|
558
|
-
d(" " +
|
|
558
|
+
d(" " + s(e.$t("common.disable")), 1)
|
|
559
559
|
]),
|
|
560
560
|
_: 1
|
|
561
561
|
})
|
|
@@ -564,12 +564,12 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
564
564
|
})
|
|
565
565
|
]),
|
|
566
566
|
default: a(() => [
|
|
567
|
-
l(
|
|
567
|
+
l(h, { type: "primary" }, {
|
|
568
568
|
default: a(() => [
|
|
569
|
-
d(
|
|
569
|
+
d(s(e.$t("common.enable")) + "/" + s(e.$t("common.disable")) + " ", 1),
|
|
570
570
|
l(A, { class: "el-icon--right" }, {
|
|
571
571
|
default: a(() => [
|
|
572
|
-
l(
|
|
572
|
+
l(ee)
|
|
573
573
|
]),
|
|
574
574
|
_: 1
|
|
575
575
|
})
|
|
@@ -579,259 +579,258 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
579
579
|
]),
|
|
580
580
|
_: 1
|
|
581
581
|
})), [
|
|
582
|
-
[
|
|
582
|
+
[_, ["rbac:user:enable"]]
|
|
583
583
|
])
|
|
584
584
|
]),
|
|
585
585
|
_: 1
|
|
586
586
|
}),
|
|
587
|
-
l(
|
|
587
|
+
l(ae, {
|
|
588
588
|
span: 7,
|
|
589
589
|
class: "container-float"
|
|
590
590
|
}, {
|
|
591
591
|
default: a(() => [
|
|
592
|
-
f((
|
|
592
|
+
f((n(), p(h, {
|
|
593
593
|
plain: "",
|
|
594
594
|
type: "primary",
|
|
595
|
-
onClick: o[6] || (o[6] = (t) =>
|
|
595
|
+
onClick: o[6] || (o[6] = (t) => S.value = !0)
|
|
596
596
|
}, {
|
|
597
597
|
default: a(() => [
|
|
598
|
-
d(
|
|
598
|
+
d(s(e.$t("common.import")), 1)
|
|
599
599
|
]),
|
|
600
600
|
_: 1
|
|
601
601
|
})), [
|
|
602
|
-
[
|
|
602
|
+
[_, ["rbac:user:import"]]
|
|
603
603
|
]),
|
|
604
|
-
f((
|
|
604
|
+
f((n(), p(h, {
|
|
605
605
|
plain: "",
|
|
606
606
|
type: "primary",
|
|
607
|
-
onClick:
|
|
607
|
+
onClick: Pe
|
|
608
608
|
}, {
|
|
609
609
|
default: a(() => [
|
|
610
|
-
d(
|
|
610
|
+
d(s(e.$t("common.export")), 1)
|
|
611
611
|
]),
|
|
612
612
|
_: 1
|
|
613
613
|
})), [
|
|
614
|
-
[
|
|
614
|
+
[_, ["rbac:user:export"]]
|
|
615
615
|
]),
|
|
616
|
-
f((
|
|
616
|
+
f((n(), p(h, {
|
|
617
617
|
plain: "",
|
|
618
618
|
type: "primary",
|
|
619
|
-
onClick:
|
|
619
|
+
onClick: De
|
|
620
620
|
}, {
|
|
621
621
|
default: a(() => [
|
|
622
|
-
d(
|
|
622
|
+
d(s(e.$t("common.print")), 1)
|
|
623
623
|
]),
|
|
624
624
|
_: 1
|
|
625
625
|
})), [
|
|
626
|
-
[
|
|
626
|
+
[_, ["rbac:user:print"]]
|
|
627
627
|
]),
|
|
628
|
-
l(
|
|
629
|
-
|
|
630
|
-
"
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
}, null, 8, ["table-label", "par-index", "onFixedChange", "onIsShowChange"])
|
|
628
|
+
l(ze, {
|
|
629
|
+
modelValue: m(I),
|
|
630
|
+
"onUpdate:modelValue": o[7] || (o[7] = (t) => K(I) ? I.value = t : I = t),
|
|
631
|
+
"lable-name": "user"
|
|
632
|
+
}, null, 8, ["modelValue"])
|
|
634
633
|
]),
|
|
635
634
|
_: 1
|
|
636
635
|
})
|
|
637
636
|
]),
|
|
638
637
|
_: 1
|
|
639
638
|
}),
|
|
640
|
-
l(
|
|
639
|
+
l(Le, {
|
|
641
640
|
class: "table-top",
|
|
642
641
|
ref_key: "multipleTableRef",
|
|
643
|
-
ref:
|
|
642
|
+
ref: Q,
|
|
644
643
|
"row-keys": "userId",
|
|
645
|
-
"list-loading":
|
|
646
|
-
|
|
647
|
-
"table-label":
|
|
648
|
-
onTableSelected:
|
|
644
|
+
"list-loading": m(ie),
|
|
645
|
+
data: m(de),
|
|
646
|
+
"table-label": m(I),
|
|
647
|
+
onTableSelected: he
|
|
649
648
|
}, {
|
|
650
649
|
userName: a((t) => [
|
|
651
|
-
|
|
652
|
-
d(
|
|
653
|
-
t.data.row.approved === !0 ? (
|
|
650
|
+
R("span", null, [
|
|
651
|
+
d(s(t.data.row.loginName) + " ", 1),
|
|
652
|
+
t.data.row.approved === !0 ? (n(), p(P, {
|
|
654
653
|
key: 0,
|
|
655
654
|
type: "success",
|
|
656
655
|
size: "small"
|
|
657
656
|
}, {
|
|
658
657
|
default: a(() => [
|
|
659
|
-
d(
|
|
658
|
+
d(s(e.$t("sysUser.reviewed")), 1)
|
|
660
659
|
]),
|
|
661
660
|
_: 1
|
|
662
661
|
})) : b("", !0),
|
|
663
|
-
t.data.row.approved === !1 ? (
|
|
662
|
+
t.data.row.approved === !1 ? (n(), p(P, {
|
|
664
663
|
key: 1,
|
|
665
664
|
type: "danger",
|
|
666
665
|
size: "small"
|
|
667
666
|
}, {
|
|
668
667
|
default: a(() => [
|
|
669
|
-
d(
|
|
668
|
+
d(s(e.$t("sysUser.notReviewed")), 1)
|
|
670
669
|
]),
|
|
671
670
|
_: 1
|
|
672
671
|
})) : b("", !0)
|
|
673
672
|
])
|
|
674
673
|
]),
|
|
675
674
|
sexType: a((t) => [
|
|
676
|
-
|
|
675
|
+
R("span", null, s(m(Qe)(W.value, t.data.row.gender)), 1)
|
|
677
676
|
]),
|
|
678
677
|
mobileIns: a((t) => [
|
|
679
|
-
t.data.row.mobileEncrypt ? (
|
|
680
|
-
t.data.row.mobilePhoneIns ? (
|
|
681
|
-
t.data.row.phoneApproved === !0 ? (
|
|
678
|
+
t.data.row.mobileEncrypt ? (n(), c("span", Ot, s(t.data.row.mobilePhone), 1)) : (n(), c("span", Kt, s(t.data.row.mobilePhoneIns), 1)),
|
|
679
|
+
t.data.row.mobilePhoneIns ? (n(), c("span", Wt, [
|
|
680
|
+
t.data.row.phoneApproved === !0 ? (n(), p(P, {
|
|
682
681
|
key: 0,
|
|
683
682
|
size: "small",
|
|
684
683
|
type: "success"
|
|
685
684
|
}, {
|
|
686
685
|
default: a(() => [
|
|
687
|
-
d(
|
|
686
|
+
d(s(e.$t("sysUser.reviewed")), 1)
|
|
688
687
|
]),
|
|
689
688
|
_: 1
|
|
690
689
|
})) : b("", !0),
|
|
691
|
-
t.data.row.phoneApproved === !1 ? (
|
|
690
|
+
t.data.row.phoneApproved === !1 ? (n(), p(P, {
|
|
692
691
|
key: 1,
|
|
693
692
|
size: "small",
|
|
694
693
|
type: "danger"
|
|
695
694
|
}, {
|
|
696
695
|
default: a(() => [
|
|
697
|
-
d(
|
|
696
|
+
d(s(e.$t("sysUser.notReviewed")), 1)
|
|
698
697
|
]),
|
|
699
698
|
_: 1
|
|
700
699
|
})) : b("", !0)
|
|
701
700
|
])) : b("", !0),
|
|
702
|
-
t.data.row.mobilePhoneIns ? (
|
|
703
|
-
f(l(
|
|
701
|
+
t.data.row.mobilePhoneIns ? (n(), c("span", Jt, [
|
|
702
|
+
f(l(le, {
|
|
704
703
|
"icon-class": "close-eye",
|
|
705
|
-
onClick: (w) =>
|
|
704
|
+
onClick: (w) => H(t.data.row)
|
|
706
705
|
}, null, 8, ["onClick"]), [
|
|
707
|
-
[
|
|
706
|
+
[ne, !t.data.row.mobileEncrypt]
|
|
708
707
|
]),
|
|
709
|
-
f(l(
|
|
708
|
+
f(l(le, {
|
|
710
709
|
"icon-class": "open-eye",
|
|
711
|
-
onClick: (w) =>
|
|
710
|
+
onClick: (w) => H(t.data.row)
|
|
712
711
|
}, null, 8, ["onClick"]), [
|
|
713
|
-
[
|
|
712
|
+
[ne, t.data.row.mobileEncrypt]
|
|
714
713
|
])
|
|
715
714
|
])) : b("", !0)
|
|
716
715
|
]),
|
|
717
716
|
email: a((t) => [
|
|
718
|
-
|
|
719
|
-
t.data.row.email ? (
|
|
720
|
-
t.data.row.emailApproved === !0 ? (
|
|
717
|
+
R("span", null, s(t.data.row.email), 1),
|
|
718
|
+
t.data.row.email ? (n(), c("span", Qt, [
|
|
719
|
+
t.data.row.emailApproved === !0 ? (n(), p(P, {
|
|
721
720
|
key: 0,
|
|
722
721
|
type: "success",
|
|
723
722
|
size: "small"
|
|
724
723
|
}, {
|
|
725
724
|
default: a(() => [
|
|
726
|
-
d(
|
|
725
|
+
d(s(e.$t("sysUser.reviewed")), 1)
|
|
727
726
|
]),
|
|
728
727
|
_: 1
|
|
729
728
|
})) : b("", !0),
|
|
730
|
-
t.data.row.emailApproved === !1 ? (
|
|
729
|
+
t.data.row.emailApproved === !1 ? (n(), p(P, {
|
|
731
730
|
key: 1,
|
|
732
731
|
type: "danger",
|
|
733
732
|
size: "small"
|
|
734
733
|
}, {
|
|
735
734
|
default: a(() => [
|
|
736
|
-
d(
|
|
735
|
+
d(s(e.$t("sysUser.notReviewed")), 1)
|
|
737
736
|
]),
|
|
738
737
|
_: 1
|
|
739
738
|
})) : b("", !0)
|
|
740
739
|
])) : b("", !0)
|
|
741
740
|
]),
|
|
742
741
|
audit: a((t) => [
|
|
743
|
-
l(
|
|
742
|
+
l(se, {
|
|
744
743
|
modelValue: t.data.row.approved,
|
|
745
744
|
"onUpdate:modelValue": (w) => t.data.row.approved = w,
|
|
746
|
-
onChange: (w) =>
|
|
745
|
+
onChange: (w) => ve(t.data.row, t.data.row.approved)
|
|
747
746
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
748
747
|
]),
|
|
749
748
|
status: a((t) => [
|
|
750
|
-
t.data.row.status === "locked" ? (
|
|
749
|
+
t.data.row.status === "locked" ? (n(), p(P, {
|
|
751
750
|
key: 0,
|
|
752
751
|
type: "danger"
|
|
753
752
|
}, {
|
|
754
753
|
default: a(() => [
|
|
755
|
-
d(
|
|
754
|
+
d(s(e.$t("common.lock")), 1)
|
|
756
755
|
]),
|
|
757
756
|
_: 1
|
|
758
|
-
})) : (
|
|
759
|
-
l(
|
|
757
|
+
})) : (n(), c("span", Zt, [
|
|
758
|
+
l(se, {
|
|
760
759
|
modelValue: t.data.row.status,
|
|
761
760
|
"onUpdate:modelValue": (w) => t.data.row.status = w,
|
|
762
761
|
"active-value": "enabled",
|
|
763
762
|
"inactive-value": "disabled",
|
|
764
|
-
onClick: (w) =>
|
|
763
|
+
onClick: (w) => Ve(t.data.row)
|
|
765
764
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onClick"])
|
|
766
765
|
]))
|
|
767
766
|
]),
|
|
768
767
|
operation: a((t) => [
|
|
769
|
-
f((
|
|
768
|
+
f((n(), c("span", {
|
|
770
769
|
class: "el-button-color",
|
|
771
|
-
onClick: (w) =>
|
|
770
|
+
onClick: (w) => _e(t.data.row)
|
|
772
771
|
}, [
|
|
773
|
-
d(
|
|
774
|
-
], 8,
|
|
775
|
-
[
|
|
772
|
+
d(s(e.$t("common.edit")), 1)
|
|
773
|
+
], 8, Gt)), [
|
|
774
|
+
[_, ["rbac:user:update"]]
|
|
776
775
|
]),
|
|
777
|
-
f((
|
|
776
|
+
f((n(), c("span", {
|
|
778
777
|
class: "el-button-color dropdown-left",
|
|
779
|
-
onClick: (w) =>
|
|
778
|
+
onClick: (w) => m(ue)(t.data.row.userId)
|
|
780
779
|
}, [
|
|
781
|
-
d(
|
|
782
|
-
], 8,
|
|
783
|
-
[
|
|
780
|
+
d(s(e.$t("common.delete")), 1)
|
|
781
|
+
], 8, Ht)), [
|
|
782
|
+
[_, ["rbac:user:delete"]]
|
|
784
783
|
]),
|
|
785
|
-
l(
|
|
784
|
+
l(oe, { class: "dropdown-left" }, {
|
|
786
785
|
dropdown: a(() => [
|
|
787
|
-
l(
|
|
786
|
+
l(te, null, {
|
|
788
787
|
default: a(() => [
|
|
789
|
-
f((
|
|
790
|
-
l(
|
|
791
|
-
onClick: (w) =>
|
|
788
|
+
f((n(), c("div", null, [
|
|
789
|
+
l(T, {
|
|
790
|
+
onClick: (w) => ge(t.data.row)
|
|
792
791
|
}, {
|
|
793
792
|
default: a(() => [
|
|
794
|
-
d(
|
|
793
|
+
d(s(e.$t("common.resetPwd")), 1)
|
|
795
794
|
]),
|
|
796
795
|
_: 2
|
|
797
796
|
}, 1032, ["onClick"])
|
|
798
797
|
])), [
|
|
799
|
-
[
|
|
798
|
+
[_, ["rbac:user:resetPassword"]]
|
|
800
799
|
]),
|
|
801
|
-
f((
|
|
802
|
-
l(
|
|
803
|
-
onClick: (w) =>
|
|
800
|
+
f((n(), c("div", null, [
|
|
801
|
+
l(T, {
|
|
802
|
+
onClick: (w) => be(t.data.row)
|
|
804
803
|
}, {
|
|
805
804
|
default: a(() => [
|
|
806
|
-
d(
|
|
805
|
+
d(s(e.$t("common.switch")), 1)
|
|
807
806
|
]),
|
|
808
807
|
_: 2
|
|
809
808
|
}, 1032, ["onClick"])
|
|
810
809
|
])), [
|
|
811
|
-
[
|
|
810
|
+
[_, ["rbac:user:switch"]]
|
|
812
811
|
]),
|
|
813
|
-
f((
|
|
814
|
-
l(
|
|
815
|
-
onClick: (w) =>
|
|
812
|
+
f((n(), c("div", null, [
|
|
813
|
+
l(T, {
|
|
814
|
+
onClick: (w) => Ee(t.data.row)
|
|
816
815
|
}, {
|
|
817
816
|
default: a(() => [
|
|
818
|
-
d(
|
|
817
|
+
d(s(e.$t("sysUser.unlock")), 1)
|
|
819
818
|
]),
|
|
820
819
|
_: 2
|
|
821
820
|
}, 1032, ["onClick"])
|
|
822
821
|
])), [
|
|
823
|
-
[
|
|
822
|
+
[_, ["rbac:user:unlock"]]
|
|
824
823
|
])
|
|
825
824
|
]),
|
|
826
825
|
_: 2
|
|
827
826
|
}, 1024)
|
|
828
827
|
]),
|
|
829
828
|
default: a(() => [
|
|
830
|
-
|
|
831
|
-
d(
|
|
829
|
+
R("span", Yt, [
|
|
830
|
+
d(s(e.$t("common.more")) + " ", 1),
|
|
832
831
|
l(A, { class: "el-icon--right" }, {
|
|
833
832
|
default: a(() => [
|
|
834
|
-
l(
|
|
833
|
+
l(ee)
|
|
835
834
|
]),
|
|
836
835
|
_: 1
|
|
837
836
|
})
|
|
@@ -841,56 +840,56 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
841
840
|
}, 1024)
|
|
842
841
|
]),
|
|
843
842
|
_: 1
|
|
844
|
-
}, 8, ["list-loading", "
|
|
845
|
-
|
|
843
|
+
}, 8, ["list-loading", "data", "table-label"]),
|
|
844
|
+
m(q) > 0 ? (n(), p(je, {
|
|
846
845
|
key: 0,
|
|
847
|
-
total:
|
|
848
|
-
"onUpdate:total": o[
|
|
849
|
-
page:
|
|
850
|
-
"onUpdate:
|
|
851
|
-
|
|
852
|
-
"onUpdate:
|
|
853
|
-
onPagination:
|
|
854
|
-
}, null, 8, ["total", "page", "
|
|
855
|
-
|
|
846
|
+
total: m(q),
|
|
847
|
+
"onUpdate:total": o[8] || (o[8] = (t) => K(q) ? q.value = t : null),
|
|
848
|
+
"current-page": u.curPage,
|
|
849
|
+
"onUpdate:currentPage": o[9] || (o[9] = (t) => u.curPage = t),
|
|
850
|
+
"page-size": u.pageSize,
|
|
851
|
+
"onUpdate:pageSize": o[10] || (o[10] = (t) => u.pageSize = t),
|
|
852
|
+
onPagination: m(G)
|
|
853
|
+
}, null, 8, ["total", "current-page", "page-size", "onPagination"])) : b("", !0),
|
|
854
|
+
V.visible ? (n(), p(Pt, {
|
|
856
855
|
key: 1,
|
|
857
|
-
dialog:
|
|
858
|
-
"form-data":
|
|
859
|
-
onDialogEvent:
|
|
860
|
-
onRefresh:
|
|
856
|
+
dialog: V,
|
|
857
|
+
"form-data": m(z),
|
|
858
|
+
onDialogEvent: Ue,
|
|
859
|
+
onRefresh: ke
|
|
861
860
|
}, null, 8, ["dialog", "form-data"])) : b("", !0),
|
|
862
|
-
l(
|
|
861
|
+
l(Me, {
|
|
863
862
|
title: e.$t("common.resetPwd"),
|
|
864
|
-
modelValue:
|
|
865
|
-
"onUpdate:modelValue": o[
|
|
863
|
+
modelValue: m(E),
|
|
864
|
+
"onUpdate:modelValue": o[13] || (o[13] = (t) => K(E) ? E.value = t : E = t),
|
|
866
865
|
width: "550px",
|
|
867
|
-
onClose:
|
|
866
|
+
onClose: Y
|
|
868
867
|
}, {
|
|
869
868
|
footer: a(() => [
|
|
870
|
-
|
|
871
|
-
l(
|
|
869
|
+
R("div", Xt, [
|
|
870
|
+
l(h, { onClick: Y }, {
|
|
872
871
|
default: a(() => [
|
|
873
|
-
d(
|
|
872
|
+
d(s(e.$t("common.cancel")), 1)
|
|
874
873
|
]),
|
|
875
874
|
_: 1
|
|
876
875
|
}),
|
|
877
|
-
l(
|
|
876
|
+
l(h, {
|
|
878
877
|
type: "primary",
|
|
879
|
-
onClick:
|
|
878
|
+
onClick: $e
|
|
880
879
|
}, {
|
|
881
880
|
default: a(() => [
|
|
882
|
-
d(
|
|
881
|
+
d(s(e.$t("common.confirm")), 1)
|
|
883
882
|
]),
|
|
884
883
|
_: 1
|
|
885
884
|
})
|
|
886
885
|
])
|
|
887
886
|
]),
|
|
888
887
|
default: a(() => [
|
|
889
|
-
l(
|
|
888
|
+
l(x, {
|
|
890
889
|
ref_key: "passwordFormRef",
|
|
891
|
-
ref:
|
|
892
|
-
model:
|
|
893
|
-
rules:
|
|
890
|
+
ref: F,
|
|
891
|
+
model: m($),
|
|
892
|
+
rules: fe,
|
|
894
893
|
"label-width": "140px"
|
|
895
894
|
}, {
|
|
896
895
|
default: a(() => [
|
|
@@ -901,8 +900,8 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
901
900
|
default: a(() => [
|
|
902
901
|
l(L, {
|
|
903
902
|
type: "password",
|
|
904
|
-
modelValue:
|
|
905
|
-
"onUpdate:modelValue": o[
|
|
903
|
+
modelValue: m($).pwd,
|
|
904
|
+
"onUpdate:modelValue": o[11] || (o[11] = (t) => m($).pwd = t),
|
|
906
905
|
clearable: "",
|
|
907
906
|
placeholder: e.$t("password.newPwdRequired"),
|
|
908
907
|
"show-password": ""
|
|
@@ -917,8 +916,8 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
917
916
|
default: a(() => [
|
|
918
917
|
l(L, {
|
|
919
918
|
type: "password",
|
|
920
|
-
modelValue:
|
|
921
|
-
"onUpdate:modelValue": o[
|
|
919
|
+
modelValue: m($).repeatPwd,
|
|
920
|
+
"onUpdate:modelValue": o[12] || (o[12] = (t) => m($).repeatPwd = t),
|
|
922
921
|
clearable: "",
|
|
923
922
|
placeholder: e.$t("password.confirmPwdRequired"),
|
|
924
923
|
"show-password": ""
|
|
@@ -932,13 +931,13 @@ const Ot = { class: "app-container" }, Qt = /* @__PURE__ */ D("div", { class: "c
|
|
|
932
931
|
]),
|
|
933
932
|
_: 1
|
|
934
933
|
}, 8, ["title", "modelValue"]),
|
|
935
|
-
|
|
934
|
+
S.value ? (n(), p(Ke, {
|
|
936
935
|
key: 2,
|
|
937
|
-
"upload-visible":
|
|
936
|
+
"upload-visible": S.value,
|
|
938
937
|
"template-title": e.$t("sysUser.templateDownload"),
|
|
939
|
-
onTemplateDown:
|
|
940
|
-
onImportEvents:
|
|
941
|
-
onUploadClosed:
|
|
938
|
+
onTemplateDown: Re,
|
|
939
|
+
onImportEvents: Se,
|
|
940
|
+
onUploadClosed: Ne
|
|
942
941
|
}, null, 8, ["upload-visible", "template-title"])) : b("", !0)
|
|
943
942
|
]);
|
|
944
943
|
};
|