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