jmash-core 0.0.12 → 0.0.13
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-LzXAVxnC.mjs} +2 -2
- package/dist/{404-D1L3bBKj.mjs → 404-BaS1xZmV.mjs} +1 -1
- package/dist/{BarChart-CfcVJz3-.mjs → BarChart-ClnlJEhi.mjs} +2 -2
- package/dist/{FileSaver.min-C3PXR_ER.mjs → FileSaver.min-C7ddeQoo.mjs} +1 -1
- package/dist/{PieChart-6YLME4bj.mjs → PieChart-BHM8amLk.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CzuULwXY.mjs → PieChart.vue_vue_type_script_setup_true_lang-BaJNQr7Z.mjs} +2 -2
- package/dist/{RadarChart-DkmgXM6y.mjs → RadarChart-ChaevZtZ.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-NTNi_I9_.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DF4axEB-.mjs} +2 -2
- package/dist/{edit-YJP7pN6W.mjs → edit-5MpAgj0J.mjs} +1 -1
- package/dist/{edit-DjN392jC.mjs → edit-Bz0L-kJZ.mjs} +1 -1
- package/dist/{edit-BUeKYrEZ.mjs → edit-ClmR7gql.mjs} +1 -1
- package/dist/{edit-CkpeOqrr.mjs → edit-D2udSsbu.mjs} +1 -1
- package/dist/edit-DXSp7oE2.mjs +4 -0
- package/dist/{edit-DGe7AWsr.mjs → edit-FahW6Usp.mjs} +34 -34
- package/dist/{edit-CJuMrQ46.mjs → edit-oUUjQ6s5.mjs} +17 -17
- package/dist/edit-zLDTi0zt.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-djIfNPqQ.mjs → edit.vue_vue_type_script_setup_true_lang-BFSwE0WY.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DI-oeRPA.mjs → edit.vue_vue_type_script_setup_true_lang-BRk4mulZ.mjs} +4 -4
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs → edit.vue_vue_type_script_setup_true_lang-BpmgWV6c.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-RBjkUr1y.mjs → edit.vue_vue_type_script_setup_true_lang-C5DH8_ra.mjs} +2 -2
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DEydJiSf.mjs → edit.vue_vue_type_script_setup_true_lang-F-7AWta2.mjs} +48 -48
- package/dist/{edit.vue_vue_type_script_setup_true_lang-BtM452jP.mjs → edit.vue_vue_type_script_setup_true_lang-yaBZyiFi.mjs} +37 -37
- package/dist/{el-card-C861yBJo.mjs → el-card-CjFpAXC4.mjs} +1 -1
- package/dist/{el-col-BBiMr5pm.mjs → el-col-D9kCVYAq.mjs} +1 -1
- package/dist/{el-date-picker-N5aiMKSy.mjs → el-date-picker-_cuHa2hi.mjs} +143 -143
- package/dist/{el-divider-QMj1kMtJ.mjs → el-divider-8Ov9f55F.mjs} +1 -1
- package/dist/{el-dropdown-item-4ws609Gw.mjs → el-dropdown-item-CSpUSfWV.mjs} +22 -22
- package/dist/{el-tree-select-DdZxfrNV.mjs → el-tree-select-BUK1QB3u.mjs} +25 -25
- package/dist/{index-DtR1eBZg.mjs → index-BYYYSOkP.mjs} +1 -1
- package/dist/{index-H7-W4HC2.mjs → index-BeFhB4ZJ.mjs} +1 -1
- package/dist/{index-DOPTH9F2.mjs → index-BkPB5eHC.mjs} +62 -62
- package/dist/{index-AiS44_Xc.mjs → index-C34zVC-7.mjs} +26 -26
- package/dist/{index-BzT4__Is.mjs → index-C68JBxAE.mjs} +20 -20
- package/dist/{index-CkXpK-zH.mjs → index-CPqNZOs9.mjs} +5195 -5186
- package/dist/{index-Dn-psVpr.mjs → index-CXJ-WW3h.mjs} +6 -6
- package/dist/{index-DFVq4R0u.mjs → index-CYAfQz-w.mjs} +1 -1
- package/dist/{index-BZBpY0uA.mjs → index-Cuk7sDz9.mjs} +32 -32
- package/dist/{index-NVKBuLg_.mjs → index-D8zb68MK.mjs} +34 -34
- package/dist/{index-9TwUBNc5.mjs → index-D9itg8P7.mjs} +1 -1
- package/dist/{index-hMoSvG6q.mjs → index-DHQQEEWW.mjs} +25 -25
- package/dist/{index-Be59bIqU.mjs → index-DW1L3U1A.mjs} +21 -21
- package/dist/{index-CrZPfuW6.mjs → index-Dav45Y13.mjs} +42 -42
- package/dist/{index-C__OmU1O.mjs → index-DhjUimfd.mjs} +4 -4
- package/dist/{index-Cmlc_Bb4.mjs → index-GPbjfqQg.mjs} +1 -1
- package/dist/{index-BX1Jx_xA.mjs → index-W4pvCYhJ.mjs} +1 -1
- package/dist/{index-DD1K2w1b.mjs → index-gaeN4E1_.mjs} +43 -43
- package/dist/{index-DnSJxj9r.mjs → index-hZzxBNan.mjs} +1105 -1096
- package/dist/{index-B7u0TetV.mjs → index-l9Oeu9G-.mjs} +14 -14
- package/dist/index.mjs +20 -20
- package/dist/{index.vue_vue_type_script_setup_true_lang-up5cpReQ.mjs → index.vue_vue_type_script_setup_true_lang-DWjQT4jn.mjs} +2 -2
- package/dist/{picture-o8CKMR0j.mjs → picture-DRU19T9b.mjs} +2 -2
- package/dist/{position-BUALjtY9.mjs → position-Ba7wRAlR.mjs} +1 -1
- package/dist/{profile-BLq1IvXt.mjs → profile-3Wsx53aV.mjs} +6 -6
- package/dist/runAs-CE2R49GJ.mjs +4 -0
- package/dist/runAs.vue_vue_type_script_setup_true_lang-i0DdmfK1.mjs +113 -0
- package/dist/style.css +1 -1
- package/dist/{types-JT7Xyhpz.mjs → types-D3sIBzF1.mjs} +2 -2
- package/dist/{updatePwd-DnT8nEtM.mjs → updatePwd-2Dc9-bnF.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Dks8j8my.mjs → updatePwd.vue_vue_type_script_setup_true_lang-3mhiAxD4.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/Pagination/index.vue.d.ts +3 -3
- 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/index.d.ts +10 -3
- package/dts/src/lang/index.d.ts +90 -0
- 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/utils/color.d.ts +69 -0
- 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/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/dist/edit-lwVBGzDE.mjs +0 -4
- package/dist/edit-xlxZjC4R.mjs +0 -4
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { aj as oe, a0 as te,
|
|
2
|
-
import { E as _e, a as fe } from "./el-col-
|
|
1
|
+
import { aj as oe, a0 as te, b1 as le, b2 as ae, aX as ne, aY as se, b3 as re, s as ie, aq as de, t as ce, ai as me, aZ as ue, E as pe, aV as be } from "./index-CPqNZOs9.mjs";
|
|
2
|
+
import { E as _e, a as fe } from "./el-col-D9kCVYAq.mjs";
|
|
3
3
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
4
4
|
import { defineComponent as ye, reactive as p, resolveComponent as I, resolveDirective as Ce, openBlock as c, createElementBlock as k, createVNode as o, withCtx as t, withKeys as T, unref as l, createTextVNode as m, toDisplayString as u, withDirectives as C, createBlock as w, createCommentVNode as he, createElementVNode as ve } from "vue";
|
|
5
|
-
import { g as ke, d as we, b as ge } from "./index-
|
|
6
|
-
import { _ as $e } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { g as ke, d as we, b as ge } from "./index-BeFhB4ZJ.mjs";
|
|
6
|
+
import { _ as $e } from "./edit.vue_vue_type_script_setup_true_lang-BRk4mulZ.mjs";
|
|
7
7
|
const Re = { class: "app-container" }, Ee = /* @__PURE__ */ ve("div", { class: "clear" }, null, -1), Ie = ["onClick"], Te = ["onClick"], qe = /* @__PURE__ */ ye({
|
|
8
8
|
__name: "index",
|
|
9
9
|
setup(Ne) {
|
|
@@ -96,16 +96,16 @@ const Re = { class: "app-container" }, Ee = /* @__PURE__ */ ve("div", { class: "
|
|
|
96
96
|
_ = { ...s }, r.visible = !0;
|
|
97
97
|
});
|
|
98
98
|
}
|
|
99
|
-
function
|
|
99
|
+
function X(e) {
|
|
100
100
|
r.visible = e;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function Y(e) {
|
|
103
103
|
e && d();
|
|
104
104
|
}
|
|
105
105
|
return P(), b = L.value, d(), (e, s) => {
|
|
106
|
-
const $ = ie, h = de, f = ce,
|
|
106
|
+
const $ = ie, h = de, f = ce, Z = me, R = _e, G = ue, H = fe, O = I("Bottom"), E = pe, W = I("Top"), ee = be, y = Ce("hasPerm");
|
|
107
107
|
return c(), k("div", Re, [
|
|
108
|
-
o(
|
|
108
|
+
o(Z, {
|
|
109
109
|
ref_key: "queryFormRef",
|
|
110
110
|
ref: g,
|
|
111
111
|
model: i,
|
|
@@ -164,7 +164,7 @@ const Re = { class: "app-container" }, Ee = /* @__PURE__ */ ve("div", { class: "
|
|
|
164
164
|
_: 1
|
|
165
165
|
}, 8, ["model"]),
|
|
166
166
|
Ee,
|
|
167
|
-
o(
|
|
167
|
+
o(H, { justify: "space-between" }, {
|
|
168
168
|
default: t(() => [
|
|
169
169
|
o(R, { span: 19 }, {
|
|
170
170
|
default: t(() => [
|
|
@@ -198,7 +198,7 @@ const Re = { class: "app-container" }, Ee = /* @__PURE__ */ ve("div", { class: "
|
|
|
198
198
|
class: "container-float"
|
|
199
199
|
}, {
|
|
200
200
|
default: t(() => [
|
|
201
|
-
o(
|
|
201
|
+
o(G, {
|
|
202
202
|
"table-label": l(b),
|
|
203
203
|
"par-index": l(K),
|
|
204
204
|
onFixedChange: l(U),
|
|
@@ -226,7 +226,7 @@ const Re = { class: "app-container" }, Ee = /* @__PURE__ */ ve("div", { class: "
|
|
|
226
226
|
onClick: (v) => l(B)(a.data.row.roleId)
|
|
227
227
|
}, {
|
|
228
228
|
default: t(() => [
|
|
229
|
-
o(
|
|
229
|
+
o(O)
|
|
230
230
|
]),
|
|
231
231
|
_: 2
|
|
232
232
|
}, 1032, ["onClick"]),
|
|
@@ -235,7 +235,7 @@ const Re = { class: "app-container" }, Ee = /* @__PURE__ */ ve("div", { class: "
|
|
|
235
235
|
onClick: (v) => l(q)(a.data.row.roleId)
|
|
236
236
|
}, {
|
|
237
237
|
default: t(() => [
|
|
238
|
-
o(
|
|
238
|
+
o(W)
|
|
239
239
|
]),
|
|
240
240
|
_: 2
|
|
241
241
|
}, 1032, ["onClick"])
|
|
@@ -264,8 +264,8 @@ const Re = { class: "app-container" }, Ee = /* @__PURE__ */ ve("div", { class: "
|
|
|
264
264
|
key: 0,
|
|
265
265
|
dialog: r,
|
|
266
266
|
"form-data": l(_),
|
|
267
|
-
onDialogEvent:
|
|
268
|
-
onRefresh:
|
|
267
|
+
onDialogEvent: X,
|
|
268
|
+
onRefresh: Y
|
|
269
269
|
}, null, 8, ["dialog", "form-data"])) : he("", !0)
|
|
270
270
|
]);
|
|
271
271
|
};
|
package/dist/index.mjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { co as e, cm as r, cn as t, ci as o, cj as u, ck as c, cl as i, cr as n, cs as g, ba as p, cp as d, bk as P, ch as S, cv as l, a7 as m, cq as b, b9 as k, cz as M, a8 as v, cw as y, ct as E, cu as L, X as f, cx as D, aY as H, bj as T, aX as U, a9 as h, aU as j, a1 as q, $ as w, a0 as x, cy as A, as as V } from "./index-CPqNZOs9.mjs";
|
|
2
2
|
export {
|
|
3
3
|
e as DashboardPage,
|
|
4
4
|
r as Error401Page,
|
|
5
5
|
t as Error404Page,
|
|
6
6
|
o as Layout,
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
u as LoginPage,
|
|
8
|
+
c as MultiFactorLoginPage,
|
|
9
9
|
i as ProfilePage,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
n as addViteMenus,
|
|
11
|
+
g as addWebpackMenus,
|
|
12
12
|
p as clearEmpty,
|
|
13
13
|
d as default,
|
|
14
14
|
P as dictMap,
|
|
@@ -16,22 +16,22 @@ export {
|
|
|
16
16
|
l as getQueryParams,
|
|
17
17
|
m as i18n,
|
|
18
18
|
b as menus,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
k as request,
|
|
20
|
+
M as resetRouter,
|
|
21
21
|
v as router,
|
|
22
22
|
y as store,
|
|
23
23
|
E as updateMetaEnv,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
24
|
+
L as updateSettings,
|
|
25
|
+
f as useAppStore,
|
|
26
|
+
D as useAppStoreHook,
|
|
27
|
+
H as useColumnToggleTable,
|
|
28
|
+
T as useDictionary,
|
|
29
|
+
U as useListData,
|
|
30
|
+
h as usePermissionStore,
|
|
31
|
+
j as usePermissionStoreHook,
|
|
32
|
+
q as useSettingsStore,
|
|
33
|
+
w as useTagsViewStore,
|
|
34
|
+
x as useUserStore,
|
|
35
|
+
A as useUserStoreHook,
|
|
36
|
+
V as vueMetaEnv
|
|
37
37
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { X as m, aj as i, Y as s, Z as g } from "./index-
|
|
2
|
-
import { E as f, a as h, b as w } from "./el-dropdown-item-
|
|
1
|
+
import { X as m, aj as i, Y as s, Z as g } from "./index-CPqNZOs9.mjs";
|
|
2
|
+
import { E as f, a as h, b as w } from "./el-dropdown-item-CSpUSfWV.mjs";
|
|
3
3
|
import { defineComponent as E, openBlock as b, createBlock as x, withCtx as e, createVNode as o, unref as t, createTextVNode as d, createElementVNode as C } from "vue";
|
|
4
4
|
const N = /* @__PURE__ */ E({
|
|
5
5
|
__name: "index",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as ne, markRaw as ve, ref as h, effectScope as ke, shallowRef as Ie, computed as y, watch as ue, nextTick as me, onMounted as pe, openBlock as w, createBlock as ce, Teleport as ze, createVNode as f, Transition as Le, withCtx as L, createElementVNode as p, normalizeClass as v, unref as e, normalizeStyle as de, withModifiers as Ce, createCommentVNode as E, createElementBlock as C, Fragment as ae, resolveDynamicComponent as Ee, renderList as Se, withDirectives as xe, vShow as Ne, renderSlot as te, useAttrs as Oe, toDisplayString as Te, mergeProps as $e } from "vue";
|
|
2
|
-
import { av as Ae, q as Re, b as ge, d as P, S as ye, aw as fe, ax as Me, ay as Ve, k as we, u as he, az as Be, E as O, y as Ye, aA as De, O as Xe, aB as Fe, aC as He, aD as Pe, aE as Ke, _ as be, aF as M, A as R, aG as je, w as _e, aH as We, c as H, aI as qe, aJ as Ge, g as Ze, aK as Je } from "./index-
|
|
3
|
-
import { i as Ue } from "./position-
|
|
2
|
+
import { av as Ae, q as Re, b as ge, d as P, S as ye, aw as fe, ax as Me, ay as Ve, k as we, u as he, az as Be, E as O, y as Ye, aA as De, O as Xe, aB as Fe, aC as He, aD as Pe, aE as Ke, _ as be, aF as M, A as R, aG as je, w as _e, aH as We, c as H, aI as qe, aJ as Ge, g as Ze, aK as Je } from "./index-CPqNZOs9.mjs";
|
|
3
|
+
import { i as Ue } from "./position-Ba7wRAlR.mjs";
|
|
4
4
|
var Qe = "Expected a function";
|
|
5
5
|
function ie(u, b, o) {
|
|
6
6
|
var S = !0, s = !0;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { a0 as q, aL as A, aM as B, Y as F, aN as P, aq as z, E as L, s as O, aO as T, t as G, ai as H, a6 as K } from "./index-
|
|
2
|
-
import { E as Q } from "./el-date-picker-
|
|
3
|
-
import { E as W, a as X } from "./el-col-
|
|
4
|
-
import { E as Z } from "./el-tree-select-
|
|
1
|
+
import { a0 as q, aL as A, aM as B, Y as F, aN as P, aq as z, E as L, s as O, aO as T, t as G, ai as H, a6 as K } from "./index-CPqNZOs9.mjs";
|
|
2
|
+
import { E as Q } from "./el-date-picker-_cuHa2hi.mjs";
|
|
3
|
+
import { E as W, a as X } from "./el-col-D9kCVYAq.mjs";
|
|
4
|
+
import { E as Z } from "./el-tree-select-BUK1QB3u.mjs";
|
|
5
5
|
import "./el-form-item-l0sNRNKZ.mjs";
|
|
6
6
|
import { defineComponent as x, ref as c, reactive as ee, resolveComponent as y, openBlock as p, createElementBlock as I, createVNode as t, unref as a, withCtx as l, createElementVNode as m, toDisplayString as k, Fragment as te, renderList as oe, createBlock as v, createCommentVNode as le, createTextVNode as ae } from "vue";
|
|
7
|
-
import { t as se } from "./index-
|
|
8
|
-
import { t as re } from "./index-
|
|
7
|
+
import { t as se } from "./index-D9itg8P7.mjs";
|
|
8
|
+
import { t as re } from "./index-BeFhB4ZJ.mjs";
|
|
9
9
|
const ne = { class: "app-container" }, ue = { class: "positon_name" }, de = { style: { position: "absolute", right: "0", top: "0" } }, pe = /* @__PURE__ */ x({
|
|
10
10
|
__name: "profile",
|
|
11
11
|
setup(me) {
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { aS as _, a5 as g, a0 as t, aT as w, aU as C, Y as v, aV as x, au as V } from "./index-CPqNZOs9.mjs";
|
|
2
|
+
import { defineComponent as k, ref as c, useModel as y, reactive as T, resolveDirective as B, openBlock as m, createBlock as U, withCtx as d, createVNode as N, unref as i, withDirectives as I, createElementBlock as D, createTextVNode as E } from "vue";
|
|
3
|
+
const M = ["onClick"], S = /* @__PURE__ */ k({
|
|
4
|
+
__name: "runAs",
|
|
5
|
+
props: {
|
|
6
|
+
modelValue: { type: Boolean },
|
|
7
|
+
modelModifiers: {}
|
|
8
|
+
},
|
|
9
|
+
emits: ["update:modelValue"],
|
|
10
|
+
setup(p) {
|
|
11
|
+
const l = c(!1), u = c([]), a = y(p, "modelValue"), b = T([
|
|
12
|
+
{
|
|
13
|
+
label: "用户名",
|
|
14
|
+
prop: "loginName",
|
|
15
|
+
width: "100",
|
|
16
|
+
sortable: !0,
|
|
17
|
+
isColumn: !0
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
label: "用户昵称",
|
|
21
|
+
prop: "nickName",
|
|
22
|
+
width: "100",
|
|
23
|
+
isColumn: !0
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: "手机号",
|
|
27
|
+
prop: "mobilePhone",
|
|
28
|
+
width: "180",
|
|
29
|
+
isColumn: !0,
|
|
30
|
+
sortable: !0
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: "邮箱",
|
|
34
|
+
prop: "email",
|
|
35
|
+
width: "180",
|
|
36
|
+
isColumn: !0,
|
|
37
|
+
sortable: !0
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
label: "查看/隐藏",
|
|
41
|
+
width: "100",
|
|
42
|
+
slotName: "encryption",
|
|
43
|
+
columnType: "slot",
|
|
44
|
+
isColumn: !0
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "操作",
|
|
48
|
+
width: "100",
|
|
49
|
+
slotName: "operation",
|
|
50
|
+
columnType: "slot",
|
|
51
|
+
fixed: "right",
|
|
52
|
+
isColumn: !0
|
|
53
|
+
}
|
|
54
|
+
]);
|
|
55
|
+
l.value = !0, _().then(({ data: e }) => {
|
|
56
|
+
console.log(e), l.value = !1, u.value = e.results;
|
|
57
|
+
});
|
|
58
|
+
function f(e) {
|
|
59
|
+
g.confirm("确定切换用户身份吗?", "提示", {
|
|
60
|
+
confirmButtonText: "确定",
|
|
61
|
+
cancelButtonText: "取消",
|
|
62
|
+
type: "warning"
|
|
63
|
+
}).then(() => {
|
|
64
|
+
console.log(t()), w(e.userId).then(async (o) => {
|
|
65
|
+
if (o.status === 200) {
|
|
66
|
+
t().user.roleCodes = [], t().user.permCodes = [];
|
|
67
|
+
const { roleCodes: s } = await t().getRoleInfo(), n = await t().getUserInfo();
|
|
68
|
+
await C().generateRoutes(s, n), v({
|
|
69
|
+
message: "切换成功",
|
|
70
|
+
type: "success"
|
|
71
|
+
}), a.value = !1;
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
return (e, o) => {
|
|
77
|
+
const s = x, n = V, h = B("hasPerm");
|
|
78
|
+
return m(), U(n, {
|
|
79
|
+
title: "切换身份",
|
|
80
|
+
modelValue: a.value,
|
|
81
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => a.value = r),
|
|
82
|
+
width: "700px"
|
|
83
|
+
}, {
|
|
84
|
+
default: d(() => [
|
|
85
|
+
N(s, {
|
|
86
|
+
class: "table-top",
|
|
87
|
+
ref: "multipleTableRef",
|
|
88
|
+
"row-keys": "userId",
|
|
89
|
+
"list-loading": i(l),
|
|
90
|
+
"table-data": i(u),
|
|
91
|
+
"table-label": i(b)
|
|
92
|
+
}, {
|
|
93
|
+
operation: d((r) => [
|
|
94
|
+
I((m(), D("span", {
|
|
95
|
+
class: "el-button-color",
|
|
96
|
+
onClick: (P) => f(r.data.row)
|
|
97
|
+
}, [
|
|
98
|
+
E(" 切换 ")
|
|
99
|
+
], 8, M)), [
|
|
100
|
+
[h, ["rbac:user:switch"]]
|
|
101
|
+
])
|
|
102
|
+
]),
|
|
103
|
+
_: 1
|
|
104
|
+
}, 8, ["list-loading", "table-data", "table-label"])
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
}, 8, ["modelValue"]);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
});
|
|
111
|
+
export {
|
|
112
|
+
S as _
|
|
113
|
+
};
|