jmash-core 0.0.12 → 0.0.14
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-Do8xnEsN.mjs → 401-BkJPlIzp.mjs} +2 -2
- package/dist/{404-D1L3bBKj.mjs → 404-BBmYfUdE.mjs} +1 -1
- package/dist/{BarChart-CfcVJz3-.mjs → BarChart-B6A8iUXj.mjs} +2 -2
- package/dist/{FileSaver.min-C3PXR_ER.mjs → FileSaver.min-CgOjN3Qg.mjs} +1 -1
- package/dist/{PieChart-6YLME4bj.mjs → PieChart-DX64TYZz.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CzuULwXY.mjs → PieChart.vue_vue_type_script_setup_true_lang-DtGRvxtk.mjs} +2 -2
- package/dist/{RadarChart-DkmgXM6y.mjs → RadarChart-bUPojoRx.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-NTNi_I9_.mjs → RadarChart.vue_vue_type_script_setup_true_lang-BmDtds_e.mjs} +2 -2
- package/dist/{edit-YJP7pN6W.mjs → edit-BSOs3vN5.mjs} +1 -1
- package/dist/{edit-DjN392jC.mjs → edit-B_7Qd0xx.mjs} +1 -1
- package/dist/{edit-DGe7AWsr.mjs → edit-Cm32AuKE.mjs} +37 -37
- package/dist/{edit-BUeKYrEZ.mjs → edit-DI9xVL3f.mjs} +1 -1
- package/dist/{edit-CkpeOqrr.mjs → edit-HfjGZfbA.mjs} +1 -1
- package/dist/edit-K-SeNsHi.mjs +4 -0
- package/dist/{edit-CJuMrQ46.mjs → edit-SaGTHCRi.mjs} +52 -51
- package/dist/edit-syovGHsx.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-RBjkUr1y.mjs → edit.vue_vue_type_script_setup_true_lang-BY6U7HyH.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DEydJiSf.mjs → edit.vue_vue_type_script_setup_true_lang-BZIGUF15.mjs} +19 -19
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BtM452jP.mjs → edit.vue_vue_type_script_setup_true_lang-CXKNjagX.mjs} +12 -12
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs → edit.vue_vue_type_script_setup_true_lang-CvQyDvvs.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DI-oeRPA.mjs → edit.vue_vue_type_script_setup_true_lang-DOBRRSJo.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-djIfNPqQ.mjs → edit.vue_vue_type_script_setup_true_lang-DdpRY-Il.mjs} +1 -1
- package/dist/{el-card-C861yBJo.mjs → el-card-DO00Wvz9.mjs} +1 -1
- package/dist/{el-col-BBiMr5pm.mjs → el-col-DFdwiQq6.mjs} +1 -1
- package/dist/{el-date-picker-N5aiMKSy.mjs → el-date-picker-BiAhUGOG.mjs} +143 -143
- package/dist/{el-divider-QMj1kMtJ.mjs → el-divider-c2CLca4o.mjs} +1 -1
- package/dist/{el-dropdown-item-4ws609Gw.mjs → el-dropdown-item-9E9GqcUL.mjs} +22 -22
- package/dist/{el-tree-select-DdZxfrNV.mjs → el-tree-select-CC0XwXVL.mjs} +25 -25
- package/dist/{index-C__OmU1O.mjs → index-B2TvQOt9.mjs} +4 -4
- package/dist/{index-DnSJxj9r.mjs → index-BBMnmuNy.mjs} +1105 -1096
- package/dist/{index-Dn-psVpr.mjs → index-BLIll5te.mjs} +6 -6
- package/dist/{index-CrZPfuW6.mjs → index-Bozt9oGT.mjs} +73 -71
- package/dist/{index-H7-W4HC2.mjs → index-ByZF--LW.mjs} +1 -1
- package/dist/{index-BzT4__Is.mjs → index-CMrLCILj.mjs} +105 -104
- package/dist/{index-B7u0TetV.mjs → index-CRuu1sq3.mjs} +63 -60
- package/dist/{index-DFVq4R0u.mjs → index-CgTJTyzP.mjs} +1 -1
- package/dist/{index-hMoSvG6q.mjs → index-CiTJNDrg.mjs} +76 -73
- package/dist/{index-DD1K2w1b.mjs → index-CovctCXh.mjs} +80 -71
- package/dist/{index-NVKBuLg_.mjs → index-DDZExl-h.mjs} +77 -73
- package/dist/{index-BZBpY0uA.mjs → index-DQe98_8-.mjs} +65 -62
- package/dist/{index-Cmlc_Bb4.mjs → index-DSMgAe9r.mjs} +1 -1
- package/dist/{index-DtR1eBZg.mjs → index-DfG2Ushb.mjs} +1 -1
- package/dist/{index-CkXpK-zH.mjs → index-Dy5Mc1xa.mjs} +6911 -7001
- package/dist/{index-AiS44_Xc.mjs → index-Dzz_DJ2A.mjs} +25 -24
- package/dist/{index-BX1Jx_xA.mjs → index-QGbAm-j4.mjs} +1 -1
- package/dist/{index-9TwUBNc5.mjs → index-UYeY7Byx.mjs} +1 -1
- package/dist/{index-DOPTH9F2.mjs → index-WXrB1MMY.mjs} +112 -110
- package/dist/{index-Be59bIqU.mjs → index-qw7NC8eE.mjs} +67 -65
- package/dist/index.mjs +16 -16
- package/dist/{index.vue_vue_type_script_setup_true_lang-up5cpReQ.mjs → index.vue_vue_type_script_setup_true_lang-DNUiKzAB.mjs} +2 -2
- package/dist/index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs +280 -0
- package/dist/{picture-o8CKMR0j.mjs → picture-B-Z93WvM.mjs} +2 -2
- package/dist/{position-BUALjtY9.mjs → position-vpBZqxst.mjs} +1 -1
- package/dist/{profile-BLq1IvXt.mjs → profile-yHqe9ckz.mjs} +6 -6
- package/dist/runAs-30DZ0fw7.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-Df5JuFXX.mjs +114 -0
- package/dist/style.css +1 -1
- package/dist/{types-JT7Xyhpz.mjs → types-B-kpFO60.mjs} +2 -2
- package/dist/{updatePwd-DnT8nEtM.mjs → updatePwd-B0jx4S2G.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Dks8j8my.mjs → updatePwd.vue_vue_type_script_setup_true_lang-DqPa62Sx.mjs} +3 -3
- package/dts/src/components/AppLink/index.vue.d.ts +19 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
- package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
- package/dts/src/components/IconSelect/requireIcons.d.ts +1 -1
- package/dts/src/components/JmashColumnSelect/index.vue.d.ts +16 -0
- package/dts/src/components/JmashTable/index.vue.d.ts +31 -0
- package/dts/src/components/Pagination/index.vue.d.ts +3 -3
- package/dts/src/components/Table/index.vue.d.ts +2 -2
- package/dts/src/components/TableSet/index.vue.d.ts +5 -5
- package/dts/src/enums/DeviceEnum.d.ts +13 -0
- package/dts/src/enums/LayoutEnum.d.ts +17 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +4 -1
- package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
- package/dts/src/enums/ThemeEnum.d.ts +17 -0
- package/dts/src/hooks/useList.d.ts +1 -0
- package/dts/src/index.d.ts +10 -3
- package/dts/src/lang/index.d.ts +91 -1
- package/dts/src/lang/package/en.d.ts +42 -0
- package/dts/src/lang/package/zh-cn.d.ts +48 -0
- package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
- package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
- package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
- package/dts/src/stores/index.d.ts +5 -0
- package/dts/src/stores/modules/app.d.ts +2 -0
- package/dts/src/stores/modules/permission.d.ts +2 -0
- package/dts/src/stores/modules/settings.d.ts +1 -0
- package/dts/src/stores/modules/user.d.ts +2 -0
- package/dts/src/utils/color.d.ts +69 -0
- package/dts/src/utils/common.d.ts +1 -1
- package/dts/src/utils/index.d.ts +9 -0
- package/dts/src/utils/nprogress.d.ts +4 -0
- package/dts/src/views/my/runAs.vue.d.ts +6 -0
- package/dts/src/views/system/dept/edit.vue.d.ts +3 -3
- package/dts/src/views/system/job/edit.vue.d.ts +3 -3
- package/dts/src/views/system/menu/edit.vue.d.ts +3 -3
- package/dts/src/views/system/module/edit.vue.d.ts +3 -3
- package/dts/src/views/system/operation/edit.vue.d.ts +3 -3
- package/dts/src/views/system/permission/edit.vue.d.ts +3 -3
- package/dts/src/views/system/role/edit.vue.d.ts +3 -3
- package/dts/src/views/system/user/edit.vue.d.ts +3 -3
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -4
- package/dist/edit-lwVBGzDE.mjs +0 -4
- package/dist/edit-xlxZjC4R.mjs +0 -4
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import { aj as Qe, a0 as U,
|
|
2
|
-
import {
|
|
3
|
-
import { E as
|
|
4
|
-
import { E as
|
|
1
|
+
import { aj as Qe, a0 as U, aW as Ye, aX as Ge, bj as He, bi as Je, a5 as B, aT as Xe, aU as xe, Y as k, ao as et, ap as tt, aq as at, s as ot, aO as lt, t as st, ai as nt, E as rt, aY as dt, an as it, Z as ut, ad as mt, bc as pt, au as ct, aZ as ft } from "./index-Dy5Mc1xa.mjs";
|
|
2
|
+
import { _ as wt } from "./index.vue_vue_type_script_setup_true_lang-KEqvSfud.mjs";
|
|
3
|
+
import { E as bt, a as yt } from "./el-col-DFdwiQq6.mjs";
|
|
4
|
+
import { E as ht, a as _t, b as gt } from "./el-dropdown-item-9E9GqcUL.mjs";
|
|
5
|
+
import { E as vt } from "./el-tree-select-CC0XwXVL.mjs";
|
|
5
6
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
6
|
-
import { defineComponent as Ut, ref as P, reactive as
|
|
7
|
-
import { F as
|
|
8
|
-
import { g as Vt, d as Pt, b as Dt, a as Rt, u as St, c as
|
|
9
|
-
import { t as
|
|
10
|
-
const
|
|
7
|
+
import { defineComponent as Ut, ref as P, reactive as $, onBeforeMount as kt, resolveComponent as j, resolveDirective as Ct, openBlock as r, createElementBlock as c, createVNode as l, withCtx as o, Fragment as $t, renderList as Et, createBlock as p, withKeys as It, 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";
|
|
8
|
+
import { F as M } from "./FileSaver.min-CgOjN3Qg.mjs";
|
|
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 jt, l as Mt } from "./edit-SaGTHCRi.mjs";
|
|
10
|
+
import { t as Zt } from "./index-UYeY7Byx.mjs";
|
|
11
|
+
const Kt = { class: "app-container" }, Ot = /* @__PURE__ */ D("div", { class: "clear" }, null, -1), Wt = { key: 0 }, Qt = { key: 1 }, Yt = { key: 2 }, Gt = {
|
|
11
12
|
key: 3,
|
|
12
13
|
class: "distance-left"
|
|
13
|
-
},
|
|
14
|
+
}, Ht = { key: 0 }, Jt = { key: 1 }, Xt = ["onClick"], xt = ["onClick"], ea = { class: "el-dropdown-link" }, ta = { class: "dialog-footer" }, wa = /* @__PURE__ */ Ut({
|
|
14
15
|
__name: "index",
|
|
15
16
|
setup(aa) {
|
|
16
|
-
const { t: s } = Qe(),
|
|
17
|
+
const { t: s } = Qe(), Z = P(), K = P([]), O = P(), m = $({
|
|
17
18
|
tenant: U().user.tenant,
|
|
18
19
|
curPage: 1,
|
|
19
20
|
pageSize: 10,
|
|
20
21
|
showDeleted: !1
|
|
21
22
|
});
|
|
22
|
-
let
|
|
23
|
+
let E = P(!1), F = $({
|
|
23
24
|
loginName: "",
|
|
24
25
|
roleIds: []
|
|
25
|
-
}),
|
|
26
|
+
}), T = $([
|
|
26
27
|
{
|
|
27
28
|
label: s("sysUser.directory"),
|
|
28
29
|
prop: "directoryId",
|
|
@@ -112,38 +113,38 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
112
113
|
isColumn: !0
|
|
113
114
|
}
|
|
114
115
|
]);
|
|
115
|
-
const
|
|
116
|
+
const I = $({
|
|
116
117
|
title: "",
|
|
117
118
|
visible: !1
|
|
118
|
-
}), R = P(!1), re =
|
|
119
|
+
}), R = P(!1), re = $({
|
|
119
120
|
list: Vt,
|
|
120
121
|
del: Pt,
|
|
121
122
|
dels: Dt
|
|
122
123
|
}), {
|
|
123
124
|
tableData: de,
|
|
124
|
-
total:
|
|
125
|
+
total: q,
|
|
125
126
|
listLoading: ie,
|
|
126
127
|
selectionRows: S,
|
|
127
|
-
multipleTableRef:
|
|
128
|
+
multipleTableRef: W,
|
|
128
129
|
queryFormRef: Q,
|
|
129
|
-
getList:
|
|
130
|
+
getList: Y,
|
|
130
131
|
handleQuery: g,
|
|
131
132
|
deleteRecord: ue,
|
|
132
133
|
deleteRecords: me
|
|
133
|
-
} =
|
|
134
|
+
} = Ye(s, re, m), {
|
|
134
135
|
parIndex: pe,
|
|
135
136
|
tableArray: ce,
|
|
136
137
|
getLocalStorageContent: fe,
|
|
137
138
|
fixedChange: we,
|
|
138
139
|
isShowChange: be
|
|
139
|
-
} =
|
|
140
|
-
let C =
|
|
140
|
+
} = Ge(T, "/system/user"), z = P();
|
|
141
|
+
let C = $({
|
|
141
142
|
tenant: U().user.tenant,
|
|
142
143
|
userId: "",
|
|
143
144
|
pwd: "",
|
|
144
145
|
repeatPwd: ""
|
|
145
146
|
});
|
|
146
|
-
const ye =
|
|
147
|
+
const ye = $({
|
|
147
148
|
pwd: [{ required: !0, validator: (e, a, i) => {
|
|
148
149
|
a === "" ? i(new Error(s("password.newPwdRequired"))) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(a) ? i() : i(new Error(s("password.pwdRules")));
|
|
149
150
|
}, trigger: "blur" }],
|
|
@@ -157,12 +158,12 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
157
158
|
Q.value.resetFields(), m.hasUserStatus = !1, g();
|
|
158
159
|
}
|
|
159
160
|
function _e(e) {
|
|
160
|
-
|
|
161
|
+
B.confirm("确认切换该用户?", "提示", {
|
|
161
162
|
cancelButtonText: s("common.cancel"),
|
|
162
163
|
confirmButtonText: s("common.confirm"),
|
|
163
164
|
type: "warning"
|
|
164
165
|
}).then(() => {
|
|
165
|
-
|
|
166
|
+
Xe(e.userId).then(async (a) => {
|
|
166
167
|
if (a.status === 200) {
|
|
167
168
|
U().user.roleCodes = [], U().user.permCodes = [];
|
|
168
169
|
const { roleCodes: i } = await U().getRoleInfo(), v = await U().getUserInfo();
|
|
@@ -175,24 +176,25 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
175
176
|
}).catch(() => {
|
|
176
177
|
});
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
+
function G(e) {
|
|
179
180
|
e.mobileEncrypt = !e.mobileEncrypt;
|
|
180
181
|
}
|
|
181
182
|
function ge() {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
F = $({
|
|
184
|
+
loginName: "",
|
|
185
|
+
roleIds: []
|
|
186
|
+
}), I.visible = !0, I.title = s("common.add");
|
|
185
187
|
}
|
|
186
188
|
function ve(e) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
+
I.title = s("common.edit"), Nt(e.userId).then(({ data: a }) => {
|
|
190
|
+
F = { ...a }, I.visible = !0;
|
|
189
191
|
});
|
|
190
192
|
}
|
|
191
193
|
function Ue(e) {
|
|
192
194
|
S.value = e;
|
|
193
195
|
}
|
|
194
196
|
function ke(e) {
|
|
195
|
-
|
|
197
|
+
E.value = !0, C.userId = e.userId;
|
|
196
198
|
}
|
|
197
199
|
function Ce(e, a) {
|
|
198
200
|
const i = {
|
|
@@ -200,11 +202,11 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
200
202
|
approved: a,
|
|
201
203
|
userId: [e.userId]
|
|
202
204
|
};
|
|
203
|
-
|
|
205
|
+
Tt(i).then(() => {
|
|
204
206
|
});
|
|
205
207
|
}
|
|
206
208
|
function $e(e) {
|
|
207
|
-
|
|
209
|
+
I.visible = e;
|
|
208
210
|
}
|
|
209
211
|
function Ee(e) {
|
|
210
212
|
e && g();
|
|
@@ -217,15 +219,15 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
217
219
|
i.status === 200 && (k({
|
|
218
220
|
message: s("password.successResetPwd"),
|
|
219
221
|
type: "success"
|
|
220
|
-
}),
|
|
222
|
+
}), E.value = !1, g());
|
|
221
223
|
});
|
|
222
224
|
else
|
|
223
225
|
return !1;
|
|
224
226
|
}));
|
|
225
227
|
};
|
|
226
|
-
function
|
|
228
|
+
function H() {
|
|
227
229
|
var e;
|
|
228
|
-
(e = z.value) == null || e.resetFields(),
|
|
230
|
+
(e = z.value) == null || e.resetFields(), E.value = !1;
|
|
229
231
|
}
|
|
230
232
|
function Ve(e) {
|
|
231
233
|
if (e === "false") {
|
|
@@ -236,12 +238,12 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
236
238
|
});
|
|
237
239
|
return;
|
|
238
240
|
}
|
|
239
|
-
|
|
241
|
+
B.confirm(s("common.confirmDisable"), s("common.disable"), {
|
|
240
242
|
cancelButtonText: s("common.cancel"),
|
|
241
243
|
confirmButtonText: s("common.confirm"),
|
|
242
244
|
type: "warning"
|
|
243
245
|
}).then(() => {
|
|
244
|
-
|
|
246
|
+
J(
|
|
245
247
|
e,
|
|
246
248
|
S.value.map((a) => a.userId)
|
|
247
249
|
);
|
|
@@ -255,12 +257,12 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
255
257
|
});
|
|
256
258
|
return;
|
|
257
259
|
}
|
|
258
|
-
|
|
260
|
+
B.confirm(s("common.confirmEnable"), s("common.enable"), {
|
|
259
261
|
cancelButtonText: s("common.cancel"),
|
|
260
262
|
confirmButtonText: s("common.confirm"),
|
|
261
263
|
type: "warning"
|
|
262
264
|
}).then(() => {
|
|
263
|
-
console.log(e),
|
|
265
|
+
console.log(e), J(
|
|
264
266
|
e,
|
|
265
267
|
S.value.map((a) => a.userId)
|
|
266
268
|
);
|
|
@@ -268,7 +270,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
268
270
|
});
|
|
269
271
|
}
|
|
270
272
|
}
|
|
271
|
-
function
|
|
273
|
+
function J(e, a) {
|
|
272
274
|
const i = {
|
|
273
275
|
tenant: U().user.tenant,
|
|
274
276
|
enabled: JSON.parse(e),
|
|
@@ -282,11 +284,11 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
282
284
|
}) : k({
|
|
283
285
|
message: s("common.successDisable") + v.data + s("common.stripData"),
|
|
284
286
|
type: "success"
|
|
285
|
-
}), g(), (y =
|
|
287
|
+
}), g(), (y = W.value) == null || y.tableSelection());
|
|
286
288
|
});
|
|
287
289
|
}
|
|
288
290
|
function Pe(e) {
|
|
289
|
-
|
|
291
|
+
B.confirm("确认解锁该用户?", "提示", {
|
|
290
292
|
cancelButtonText: s("common.cancel"),
|
|
291
293
|
confirmButtonText: s("common.confirm"),
|
|
292
294
|
type: "warning"
|
|
@@ -321,10 +323,10 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
321
323
|
const i = new Blob([a.data], {
|
|
322
324
|
type: "application/octet-stream"
|
|
323
325
|
});
|
|
324
|
-
|
|
326
|
+
M.saveAs(i, s("route.sysUser") + ".xlsx");
|
|
325
327
|
});
|
|
326
328
|
}
|
|
327
|
-
function
|
|
329
|
+
function Ne() {
|
|
328
330
|
const e = {
|
|
329
331
|
req: {}
|
|
330
332
|
};
|
|
@@ -333,16 +335,16 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
333
335
|
const i = new Blob([a.data], {
|
|
334
336
|
type: a.headers["content-type"]
|
|
335
337
|
});
|
|
336
|
-
|
|
338
|
+
M.saveAs(i, s("route.sysUser") + ".pdf");
|
|
337
339
|
});
|
|
338
340
|
}
|
|
339
|
-
function
|
|
340
|
-
|
|
341
|
+
function Te() {
|
|
342
|
+
jt().then((e) => {
|
|
341
343
|
console.log(e);
|
|
342
344
|
const a = new Blob([e.data], {
|
|
343
345
|
type: "application/octet-stream"
|
|
344
346
|
});
|
|
345
|
-
|
|
347
|
+
M.saveAs(a, s("sysUser.userTemplate") + ".xlsx");
|
|
346
348
|
});
|
|
347
349
|
}
|
|
348
350
|
function qe(e) {
|
|
@@ -353,7 +355,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
353
355
|
});
|
|
354
356
|
return;
|
|
355
357
|
}
|
|
356
|
-
e.updateMask = "loginName,nickName,realName,gender,birthDate,mobilePhone,email,status",
|
|
358
|
+
e.updateMask = "loginName,nickName,realName,gender,birthDate,mobilePhone,email,status", Mt(e).then((a) => {
|
|
357
359
|
a.status === 200 && (k({
|
|
358
360
|
message: a.data,
|
|
359
361
|
type: "success"
|
|
@@ -363,18 +365,18 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
363
365
|
function Ae() {
|
|
364
366
|
R.value = !1;
|
|
365
367
|
}
|
|
366
|
-
return fe(),
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
}),
|
|
370
|
-
|
|
368
|
+
return fe(), T = ce.value, Y(), kt(() => {
|
|
369
|
+
Zt().then(({ data: e }) => {
|
|
370
|
+
Z.value = e.results;
|
|
371
|
+
}), He("jmash.protobuf.Gender").then(({ data: e }) => {
|
|
372
|
+
K.value = e.values;
|
|
371
373
|
}), Rt().then(({ data: e }) => {
|
|
372
|
-
console.log(e),
|
|
374
|
+
console.log(e), O.value = e.directoryId;
|
|
373
375
|
});
|
|
374
376
|
}), (e, a) => {
|
|
375
|
-
const i = et, v = tt, y = at, L = ot, Be = vt, Fe = lt, _ = st,
|
|
376
|
-
return r(), c("div",
|
|
377
|
-
l(
|
|
377
|
+
const i = et, v = tt, y = at, L = ot, Be = vt, Fe = lt, _ = st, X = nt, x = j("arrow-down"), A = rt, ze = j("Unlock"), N = ht, Le = j("Lock"), ee = _t, te = gt, ae = bt, je = dt, Me = yt, V = it, oe = ut, le = mt, Ze = wt, Ke = pt, Oe = ct, We = ft, h = Ct("hasPerm");
|
|
378
|
+
return r(), c("div", Kt, [
|
|
379
|
+
l(X, {
|
|
378
380
|
ref_key: "queryFormRef",
|
|
379
381
|
ref: Q,
|
|
380
382
|
model: m,
|
|
@@ -392,7 +394,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
392
394
|
placeholder: e.$t("sysUser.directoryRequired")
|
|
393
395
|
}, {
|
|
394
396
|
default: o(() => [
|
|
395
|
-
(r(!0), c($t, null, Et(
|
|
397
|
+
(r(!0), c($t, null, Et(O.value, (t) => (r(), p(i, {
|
|
396
398
|
key: t,
|
|
397
399
|
label: t,
|
|
398
400
|
value: t
|
|
@@ -425,7 +427,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
425
427
|
l(Be, {
|
|
426
428
|
modelValue: m.deptId,
|
|
427
429
|
"onUpdate:modelValue": a[2] || (a[2] = (t) => m.deptId = t),
|
|
428
|
-
data:
|
|
430
|
+
data: Z.value,
|
|
429
431
|
"render-after-expand": !1,
|
|
430
432
|
filterable: "",
|
|
431
433
|
"check-strictly": "",
|
|
@@ -499,8 +501,8 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
499
501
|
]),
|
|
500
502
|
_: 1
|
|
501
503
|
}, 8, ["model"]),
|
|
502
|
-
|
|
503
|
-
l(
|
|
504
|
+
Ot,
|
|
505
|
+
l(Me, { justify: "space-between" }, {
|
|
504
506
|
default: o(() => [
|
|
505
507
|
l(ae, { span: 17 }, {
|
|
506
508
|
default: o(() => [
|
|
@@ -533,9 +535,9 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
533
535
|
dropdown: o(() => [
|
|
534
536
|
l(ee, null, {
|
|
535
537
|
default: o(() => [
|
|
536
|
-
l(
|
|
538
|
+
l(N, { command: "true" }, {
|
|
537
539
|
default: o(() => [
|
|
538
|
-
l(
|
|
540
|
+
l(A, { size: "14" }, {
|
|
539
541
|
default: o(() => [
|
|
540
542
|
l(ze)
|
|
541
543
|
]),
|
|
@@ -545,9 +547,9 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
545
547
|
]),
|
|
546
548
|
_: 1
|
|
547
549
|
}),
|
|
548
|
-
l(
|
|
550
|
+
l(N, { command: "false" }, {
|
|
549
551
|
default: o(() => [
|
|
550
|
-
l(
|
|
552
|
+
l(A, { size: "14" }, {
|
|
551
553
|
default: o(() => [
|
|
552
554
|
l(Le)
|
|
553
555
|
]),
|
|
@@ -565,7 +567,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
565
567
|
l(_, { type: "primary" }, {
|
|
566
568
|
default: o(() => [
|
|
567
569
|
d(n(e.$t("common.enable")) + "/" + n(e.$t("common.disable")) + " ", 1),
|
|
568
|
-
l(
|
|
570
|
+
l(A, { class: "el-icon--right" }, {
|
|
569
571
|
default: o(() => [
|
|
570
572
|
l(x)
|
|
571
573
|
]),
|
|
@@ -614,7 +616,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
614
616
|
f((r(), p(_, {
|
|
615
617
|
plain: "",
|
|
616
618
|
type: "primary",
|
|
617
|
-
onClick:
|
|
619
|
+
onClick: Ne
|
|
618
620
|
}, {
|
|
619
621
|
default: o(() => [
|
|
620
622
|
d(n(e.$t("common.print")), 1)
|
|
@@ -623,8 +625,8 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
623
625
|
})), [
|
|
624
626
|
[h, ["rbac:user:print"]]
|
|
625
627
|
]),
|
|
626
|
-
l(
|
|
627
|
-
"table-label": u(
|
|
628
|
+
l(je, {
|
|
629
|
+
"table-label": u(T),
|
|
628
630
|
"par-index": u(pe),
|
|
629
631
|
onFixedChange: u(we),
|
|
630
632
|
onIsShowChange: u(be)
|
|
@@ -635,20 +637,20 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
635
637
|
]),
|
|
636
638
|
_: 1
|
|
637
639
|
}),
|
|
638
|
-
l(
|
|
640
|
+
l(Ze, {
|
|
639
641
|
class: "table-top",
|
|
640
642
|
ref_key: "multipleTableRef",
|
|
641
|
-
ref:
|
|
643
|
+
ref: W,
|
|
642
644
|
"row-keys": "userId",
|
|
643
645
|
"list-loading": u(ie),
|
|
644
646
|
"table-data": u(de),
|
|
645
|
-
"table-label": u(
|
|
647
|
+
"table-label": u(T),
|
|
646
648
|
onTableSelected: Ue
|
|
647
649
|
}, {
|
|
648
650
|
userName: o((t) => [
|
|
649
651
|
D("span", null, [
|
|
650
652
|
d(n(t.data.row.loginName) + " ", 1),
|
|
651
|
-
t.data.row.approved === !0 ? (r(), p(
|
|
653
|
+
t.data.row.approved === !0 ? (r(), p(V, {
|
|
652
654
|
key: 0,
|
|
653
655
|
type: "success",
|
|
654
656
|
size: "small"
|
|
@@ -658,7 +660,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
658
660
|
]),
|
|
659
661
|
_: 1
|
|
660
662
|
})) : b("", !0),
|
|
661
|
-
t.data.row.approved === !1 ? (r(), p(
|
|
663
|
+
t.data.row.approved === !1 ? (r(), p(V, {
|
|
662
664
|
key: 1,
|
|
663
665
|
type: "danger",
|
|
664
666
|
size: "small"
|
|
@@ -671,12 +673,12 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
671
673
|
])
|
|
672
674
|
]),
|
|
673
675
|
sexType: o((t) => [
|
|
674
|
-
D("span", null, n(u(
|
|
676
|
+
D("span", null, n(u(Je)(K.value, t.data.row.gender)), 1)
|
|
675
677
|
]),
|
|
676
678
|
mobileIns: o((t) => [
|
|
677
|
-
t.data.row.mobileEncrypt ? (r(), c("span", Qt, n(t.data.row.mobilePhone), 1)) : (r(), c("span",
|
|
678
|
-
t.data.row.mobilePhoneIns ? (r(), c("span",
|
|
679
|
-
t.data.row.phoneApproved === !0 ? (r(), p(
|
|
679
|
+
t.data.row.mobileEncrypt ? (r(), c("span", Qt, n(t.data.row.mobilePhone), 1)) : (r(), c("span", Wt, n(t.data.row.mobilePhoneIns), 1)),
|
|
680
|
+
t.data.row.mobilePhoneIns ? (r(), c("span", Yt, [
|
|
681
|
+
t.data.row.phoneApproved === !0 ? (r(), p(V, {
|
|
680
682
|
key: 0,
|
|
681
683
|
size: "small",
|
|
682
684
|
type: "success"
|
|
@@ -686,7 +688,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
686
688
|
]),
|
|
687
689
|
_: 1
|
|
688
690
|
})) : b("", !0),
|
|
689
|
-
t.data.row.phoneApproved === !1 ? (r(), p(
|
|
691
|
+
t.data.row.phoneApproved === !1 ? (r(), p(V, {
|
|
690
692
|
key: 1,
|
|
691
693
|
size: "small",
|
|
692
694
|
type: "danger"
|
|
@@ -697,16 +699,16 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
697
699
|
_: 1
|
|
698
700
|
})) : b("", !0)
|
|
699
701
|
])) : b("", !0),
|
|
700
|
-
t.data.row.mobilePhoneIns ? (r(), c("span",
|
|
702
|
+
t.data.row.mobilePhoneIns ? (r(), c("span", Gt, [
|
|
701
703
|
f(l(oe, {
|
|
702
704
|
"icon-class": "闭眼睛",
|
|
703
|
-
onClick: (w) =>
|
|
705
|
+
onClick: (w) => G(t.data.row)
|
|
704
706
|
}, null, 8, ["onClick"]), [
|
|
705
707
|
[se, !t.data.row.mobileEncrypt]
|
|
706
708
|
]),
|
|
707
709
|
f(l(oe, {
|
|
708
710
|
"icon-class": "眼睛",
|
|
709
|
-
onClick: (w) =>
|
|
711
|
+
onClick: (w) => G(t.data.row)
|
|
710
712
|
}, null, 8, ["onClick"]), [
|
|
711
713
|
[se, t.data.row.mobileEncrypt]
|
|
712
714
|
])
|
|
@@ -714,8 +716,8 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
714
716
|
]),
|
|
715
717
|
email: o((t) => [
|
|
716
718
|
D("span", null, n(t.data.row.email), 1),
|
|
717
|
-
t.data.row.email ? (r(), c("span",
|
|
718
|
-
t.data.row.emailApproved === !0 ? (r(), p(
|
|
719
|
+
t.data.row.email ? (r(), c("span", Ht, [
|
|
720
|
+
t.data.row.emailApproved === !0 ? (r(), p(V, {
|
|
719
721
|
key: 0,
|
|
720
722
|
type: "success",
|
|
721
723
|
size: "small"
|
|
@@ -725,7 +727,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
725
727
|
]),
|
|
726
728
|
_: 1
|
|
727
729
|
})) : b("", !0),
|
|
728
|
-
t.data.row.emailApproved === !1 ? (r(), p(
|
|
730
|
+
t.data.row.emailApproved === !1 ? (r(), p(V, {
|
|
729
731
|
key: 1,
|
|
730
732
|
type: "danger",
|
|
731
733
|
size: "small"
|
|
@@ -745,7 +747,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
745
747
|
}, null, 8, ["modelValue", "onUpdate:modelValue", "onChange"])
|
|
746
748
|
]),
|
|
747
749
|
status: o((t) => [
|
|
748
|
-
t.data.row.status === "locked" ? (r(), p(
|
|
750
|
+
t.data.row.status === "locked" ? (r(), p(V, {
|
|
749
751
|
key: 0,
|
|
750
752
|
type: "danger"
|
|
751
753
|
}, {
|
|
@@ -753,7 +755,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
753
755
|
d(n(e.$t("common.lock")), 1)
|
|
754
756
|
]),
|
|
755
757
|
_: 1
|
|
756
|
-
})) : (r(), c("span",
|
|
758
|
+
})) : (r(), c("span", Jt, [
|
|
757
759
|
l(le, {
|
|
758
760
|
modelValue: t.data.row.status,
|
|
759
761
|
"onUpdate:modelValue": (w) => t.data.row.status = w,
|
|
@@ -769,7 +771,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
769
771
|
onClick: (w) => ve(t.data.row)
|
|
770
772
|
}, [
|
|
771
773
|
d(n(e.$t("common.edit")), 1)
|
|
772
|
-
], 8,
|
|
774
|
+
], 8, Xt)), [
|
|
773
775
|
[h, ["rbac:user:update"]]
|
|
774
776
|
]),
|
|
775
777
|
f((r(), c("span", {
|
|
@@ -785,7 +787,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
785
787
|
l(ee, null, {
|
|
786
788
|
default: o(() => [
|
|
787
789
|
f((r(), c("div", null, [
|
|
788
|
-
l(
|
|
790
|
+
l(N, {
|
|
789
791
|
onClick: (w) => ke(t.data.row)
|
|
790
792
|
}, {
|
|
791
793
|
default: o(() => [
|
|
@@ -797,7 +799,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
797
799
|
[h, ["rbac:user:resetPassword"]]
|
|
798
800
|
]),
|
|
799
801
|
f((r(), c("div", null, [
|
|
800
|
-
l(
|
|
802
|
+
l(N, {
|
|
801
803
|
onClick: (w) => _e(t.data.row)
|
|
802
804
|
}, {
|
|
803
805
|
default: o(() => [
|
|
@@ -809,7 +811,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
809
811
|
[h, ["rbac:user:switch"]]
|
|
810
812
|
]),
|
|
811
813
|
f((r(), c("div", null, [
|
|
812
|
-
l(
|
|
814
|
+
l(N, {
|
|
813
815
|
onClick: (w) => Pe(t.data.row)
|
|
814
816
|
}, {
|
|
815
817
|
default: o(() => [
|
|
@@ -827,7 +829,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
827
829
|
default: o(() => [
|
|
828
830
|
D("span", ea, [
|
|
829
831
|
d(n(e.$t("common.more")) + " ", 1),
|
|
830
|
-
l(
|
|
832
|
+
l(A, { class: "el-icon--right" }, {
|
|
831
833
|
default: o(() => [
|
|
832
834
|
l(x)
|
|
833
835
|
]),
|
|
@@ -840,33 +842,33 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
840
842
|
]),
|
|
841
843
|
_: 1
|
|
842
844
|
}, 8, ["list-loading", "table-data", "table-label"]),
|
|
843
|
-
u(
|
|
845
|
+
u(q) > 0 ? (r(), p(Ke, {
|
|
844
846
|
key: 0,
|
|
845
|
-
total: u(
|
|
846
|
-
"onUpdate:total": a[7] || (a[7] = (t) => ne(
|
|
847
|
+
total: u(q),
|
|
848
|
+
"onUpdate:total": a[7] || (a[7] = (t) => ne(q) ? q.value = t : null),
|
|
847
849
|
page: m.curPage,
|
|
848
850
|
"onUpdate:page": a[8] || (a[8] = (t) => m.curPage = t),
|
|
849
851
|
limit: m.pageSize,
|
|
850
852
|
"onUpdate:limit": a[9] || (a[9] = (t) => m.pageSize = t),
|
|
851
|
-
onPagination: u(
|
|
853
|
+
onPagination: u(Y)
|
|
852
854
|
}, null, 8, ["total", "page", "limit", "onPagination"])) : b("", !0),
|
|
853
|
-
|
|
855
|
+
I.visible ? (r(), p(St, {
|
|
854
856
|
key: 1,
|
|
855
|
-
dialog:
|
|
856
|
-
"form-data": u(
|
|
857
|
+
dialog: I,
|
|
858
|
+
"form-data": u(F),
|
|
857
859
|
onDialogEvent: $e,
|
|
858
860
|
onRefresh: Ee
|
|
859
861
|
}, null, 8, ["dialog", "form-data"])) : b("", !0),
|
|
860
|
-
l(
|
|
862
|
+
l(Oe, {
|
|
861
863
|
title: e.$t("common.resetPwd"),
|
|
862
|
-
modelValue: u(
|
|
863
|
-
"onUpdate:modelValue": a[12] || (a[12] = (t) => ne(
|
|
864
|
+
modelValue: u(E),
|
|
865
|
+
"onUpdate:modelValue": a[12] || (a[12] = (t) => ne(E) ? E.value = t : E = t),
|
|
864
866
|
width: "550px",
|
|
865
|
-
onClose:
|
|
867
|
+
onClose: H
|
|
866
868
|
}, {
|
|
867
869
|
footer: o(() => [
|
|
868
870
|
D("div", ta, [
|
|
869
|
-
l(_, { onClick:
|
|
871
|
+
l(_, { onClick: H }, {
|
|
870
872
|
default: o(() => [
|
|
871
873
|
d(n(e.$t("common.cancel")), 1)
|
|
872
874
|
]),
|
|
@@ -884,7 +886,7 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
884
886
|
])
|
|
885
887
|
]),
|
|
886
888
|
default: o(() => [
|
|
887
|
-
l(
|
|
889
|
+
l(X, {
|
|
888
890
|
ref_key: "passwordFormRef",
|
|
889
891
|
ref: z,
|
|
890
892
|
model: u(C),
|
|
@@ -930,11 +932,11 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
930
932
|
]),
|
|
931
933
|
_: 1
|
|
932
934
|
}, 8, ["title", "modelValue"]),
|
|
933
|
-
R.value ? (r(), p(
|
|
935
|
+
R.value ? (r(), p(We, {
|
|
934
936
|
key: 2,
|
|
935
937
|
"upload-visible": R.value,
|
|
936
938
|
"template-title": e.$t("sysUser.templateDownload"),
|
|
937
|
-
onTemplateDown:
|
|
939
|
+
onTemplateDown: Te,
|
|
938
940
|
onImportEvents: qe,
|
|
939
941
|
onUploadClosed: Ae
|
|
940
942
|
}, null, 8, ["upload-visible", "template-title"])) : b("", !0)
|
|
@@ -943,5 +945,5 @@ const Ot = { class: "app-container" }, Wt = /* @__PURE__ */ D("div", { class: "c
|
|
|
943
945
|
}
|
|
944
946
|
});
|
|
945
947
|
export {
|
|
946
|
-
|
|
948
|
+
wa as default
|
|
947
949
|
};
|