jmash-core 0.0.108 → 0.0.110
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-Cje8e0iQ.mjs → 401-Uu9uc5AZ.mjs} +1 -1
- package/dist/{404-Dcy7ErNt.mjs → 404-Bv4HWETa.mjs} +1 -1
- package/dist/{BarChart-oW-R1RXw.mjs → BarChart-CYiicJy4.mjs} +1 -1
- package/dist/{index-BnPTCkJp.mjs → index-BLFj1FIB.mjs} +6855 -6559
- package/dist/{index-C1KAa9PO.mjs → index-CSpzpS5Q.mjs} +3 -3
- package/dist/index-CyDktxrD.mjs +45 -0
- package/dist/{index-CAh0BAJl.mjs → index-Ywpo9w9-.mjs} +15 -15
- package/dist/index-yDhj6f4D.mjs +227 -0
- package/dist/index.mjs +55 -51
- package/dist/{profile-DSyIwcjT.mjs → profile-DLMrjX4f.mjs} +6 -6
- package/dist/{runAs-ByT2IRUb.mjs → runAs-CLd5eBdV.mjs} +1 -1
- package/dist/runAs.vue_vue_type_script_setup_true_lang-Chc0acxM.mjs +141 -0
- package/dist/style.css +1 -1
- package/dist/{types-DaRQE9AI.mjs → types-BEVVO8kD.mjs} +79 -63
- package/dist/{updatePwd-BW1ZcKeg.mjs → updatePwd-BggDYrPh.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-CASn5sxv.mjs → updatePwd.vue_vue_type_script_setup_true_lang-473g6F8e.mjs} +9 -9
- package/dts/src/api/auth/index.d.ts +5 -1
- package/dts/src/api/auth/types.d.ts +54 -4
- package/dts/src/components/{DictRadio → JmashAMap}/index.vue.d.ts +17 -11
- package/dts/src/components/{Upload → JmashTMaps}/index.vue.d.ts +7 -5
- package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
- package/dts/src/index.d.ts +4 -4
- package/dts/src/lang/package/zh-cn.d.ts +1 -0
- package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +1 -1
- package/dts/src/router/index.d.ts +1 -0
- package/dts/src/types/index.d.ts +12 -0
- package/dts/src/utils/AMap.d.ts +4 -0
- package/dts/src/utils/TMap.d.ts +1 -0
- package/dts/src/utils/common.d.ts +8 -5
- package/dts/src/views/change-organ/index.vue.d.ts +2 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
- package/package.json +85 -85
- package/dist/index-pfRSPpqI.mjs +0 -268
- package/dist/picture-CBRsHLZl.mjs +0 -22
- package/dist/runAs.vue_vue_type_script_setup_true_lang-CKnm9qB3.mjs +0 -140
- package/dts/src/components/DictSelect/index.vue.d.ts +0 -50
- package/dts/src/components/Pagination/index.vue.d.ts +0 -88
- package/dts/src/components/Table/index.vue.d.ts +0 -64
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +0 -65
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +0 -18
- package/dts/src/components/Upload/importUpload.vue.d.ts +0 -31
package/dist/index.mjs
CHANGED
|
@@ -1,59 +1,63 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a3 as t, a4 as r, as as o, a5 as i, aq as u, a8 as n, a6 as p, ao as g, ap as d, ak as c, al as l, am as m, an as P, ar as S, S as E, ad as M, X as f, Q as k, R as y, M as D, $ as b, A as v, a0 as L, O as R, e as A, N as h, a7 as z, f as C, a1 as H, v as U, Z as B, a2 as V, j as x, P as Q, p as T, z as W, L as j, ai as q, r as w, aa as I, I as O, a9 as F, ae as K, U as N, aj as X, Y, V as Z, W as $, u as G, af as J, ab as _, k as aa, ag as ea, c as sa, ac as ta, a as ra, b as oa, ah as ia, x as ua } from "./index-BLFj1FIB.mjs";
|
|
2
2
|
import "element-plus";
|
|
3
3
|
export {
|
|
4
4
|
t as BizDict,
|
|
5
5
|
r as BizLayDict,
|
|
6
|
-
o as
|
|
7
|
-
i as
|
|
8
|
-
u as
|
|
9
|
-
n as
|
|
10
|
-
p as
|
|
6
|
+
o as ChangeOrgan,
|
|
7
|
+
i as CustomBizDict,
|
|
8
|
+
u as DashboardPage,
|
|
9
|
+
n as EnableBizDict,
|
|
10
|
+
p as EnumDict,
|
|
11
|
+
g as Error401Page,
|
|
11
12
|
d as Error404Page,
|
|
12
13
|
c as Layout,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
14
|
+
l as LoginPage,
|
|
15
|
+
m as MultiFactorLoginPage,
|
|
16
|
+
P as ProfilePage,
|
|
17
|
+
S as RedirectPage,
|
|
18
|
+
E as SysApiImpl,
|
|
19
|
+
M as TableHooks,
|
|
20
|
+
f as addDynamicRoute,
|
|
21
|
+
k as addViteMenus,
|
|
22
|
+
y as addWebpackMenus,
|
|
23
|
+
D as axiosConfig,
|
|
23
24
|
b as clearEmpty,
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
R as
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
z as
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
B as
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
F as
|
|
45
|
-
K as
|
|
46
|
-
N as
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
sa as
|
|
57
|
-
|
|
58
|
-
|
|
25
|
+
v as createLoginQrcode,
|
|
26
|
+
L as deepMerge,
|
|
27
|
+
R as default,
|
|
28
|
+
A as defaultSettings,
|
|
29
|
+
h as directive,
|
|
30
|
+
z as enumMapCache,
|
|
31
|
+
C as fileApi,
|
|
32
|
+
H as generateRandomKey,
|
|
33
|
+
U as getCaptchaApi,
|
|
34
|
+
B as getQueryParams,
|
|
35
|
+
V as handlePreview,
|
|
36
|
+
x as i18n,
|
|
37
|
+
Q as menus,
|
|
38
|
+
T as myorganList,
|
|
39
|
+
W as netEncrypt,
|
|
40
|
+
j as request,
|
|
41
|
+
q as resetRouter,
|
|
42
|
+
w as routerRef,
|
|
43
|
+
I as routerUtil,
|
|
44
|
+
O as runAsUser,
|
|
45
|
+
F as selectDsdRoles,
|
|
46
|
+
K as store,
|
|
47
|
+
N as updateMetaEnv,
|
|
48
|
+
X as updateRouter,
|
|
49
|
+
Y as updateSettings,
|
|
50
|
+
Z as updateViteMetaEnv,
|
|
51
|
+
$ as updateWebpackMetaEnv,
|
|
52
|
+
G as useAppStore,
|
|
53
|
+
J as useAppStoreHook,
|
|
54
|
+
_ as useListData,
|
|
55
|
+
aa as usePermissionStore,
|
|
56
|
+
ea as usePermissionStoreHook,
|
|
57
|
+
sa as useSettingsStore,
|
|
58
|
+
ta as useTableHooks,
|
|
59
|
+
ra as useTagsViewStore,
|
|
60
|
+
oa as useUserStore,
|
|
61
|
+
ia as useUserStoreHook,
|
|
62
|
+
ua as vueMetaEnv
|
|
59
63
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as S, ref as
|
|
2
|
-
import {
|
|
1
|
+
import { defineComponent as S, ref as c, reactive as E, resolveComponent as a, openBlock as p, createElementBlock as I, createVNode as t, unref as o, withCtx as s, createElementVNode as f, toDisplayString as b, Fragment as F, renderList as P, createBlock as _, createCommentVNode as v, createTextVNode as z } from "vue";
|
|
2
|
+
import { b as G, B as L, C as O, F as T, G as H, i as K } from "./index-BLFj1FIB.mjs";
|
|
3
3
|
import { ElMessage as Q } from "element-plus";
|
|
4
4
|
const W = { class: "app-container" }, X = { class: "positon_name" }, Z = /* @__PURE__ */ S({
|
|
5
5
|
__name: "profile",
|
|
6
6
|
setup(x) {
|
|
7
|
-
const $ =
|
|
7
|
+
const $ = c(), y = c(), h = c();
|
|
8
8
|
let l = E({
|
|
9
9
|
user: {
|
|
10
10
|
tenant: G().user.tenant,
|
|
@@ -105,7 +105,7 @@ const W = { class: "app-container" }, X = { class: "positon_name" }, Z = /* @__P
|
|
|
105
105
|
default: s(() => [
|
|
106
106
|
t(U, {
|
|
107
107
|
modelValue: o(l).user.userJobs[u].deptId,
|
|
108
|
-
"onUpdate:modelValue": (
|
|
108
|
+
"onUpdate:modelValue": (i) => o(l).user.userJobs[u].deptId = i,
|
|
109
109
|
data: y.value,
|
|
110
110
|
"render-after-expand": !1,
|
|
111
111
|
filterable: "",
|
|
@@ -128,7 +128,7 @@ const W = { class: "app-container" }, X = { class: "positon_name" }, Z = /* @__P
|
|
|
128
128
|
default: s(() => [
|
|
129
129
|
t(U, {
|
|
130
130
|
modelValue: o(l).user.userJobs[u].jobId,
|
|
131
|
-
"onUpdate:modelValue": (
|
|
131
|
+
"onUpdate:modelValue": (i) => o(l).user.userJobs[u].jobId = i,
|
|
132
132
|
data: h.value,
|
|
133
133
|
"render-after-expand": !1,
|
|
134
134
|
filterable: "",
|
|
@@ -168,7 +168,7 @@ const W = { class: "app-container" }, X = { class: "positon_name" }, Z = /* @__P
|
|
|
168
168
|
default: s(() => [
|
|
169
169
|
t(V, {
|
|
170
170
|
size: "16",
|
|
171
|
-
onClick: (
|
|
171
|
+
onClick: (i) => N(u)
|
|
172
172
|
}, {
|
|
173
173
|
default: s(() => [
|
|
174
174
|
t(q)
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
import { b as s, H as x, g as T, I as U, E as V, _ as B, J as P } from "./index-BLFj1FIB.mjs";
|
|
2
|
+
import { defineComponent as M, ref as _, useModel as S, reactive as $, resolveComponent as A, openBlock as m, createBlock as D, withCtx as a, createVNode as d, unref as t, createTextVNode as c, toDisplayString as n, createElementBlock as y, withDirectives as f, vShow as g, createCommentVNode as C } from "vue";
|
|
3
|
+
const J = {
|
|
4
|
+
key: 0,
|
|
5
|
+
class: "distance-left"
|
|
6
|
+
}, L = ["onClick"], W = /* @__PURE__ */ M({
|
|
7
|
+
__name: "runAs",
|
|
8
|
+
props: {
|
|
9
|
+
modelValue: { type: Boolean },
|
|
10
|
+
modelModifiers: {}
|
|
11
|
+
},
|
|
12
|
+
emits: ["update:modelValue"],
|
|
13
|
+
setup(v) {
|
|
14
|
+
const r = _(!1), p = _([]), i = s().user, u = S(v, "modelValue"), k = $([
|
|
15
|
+
{
|
|
16
|
+
label: "login.username",
|
|
17
|
+
prop: "loginName",
|
|
18
|
+
width: "100",
|
|
19
|
+
sortable: !0,
|
|
20
|
+
isColumn: !0
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
label: "sysUser.nickname",
|
|
24
|
+
prop: "nickName",
|
|
25
|
+
minWidth: "100",
|
|
26
|
+
isColumn: !0
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
label: "sysUser.phoneNumber",
|
|
30
|
+
prop: "mobilePhone",
|
|
31
|
+
slotName: "mobilePhone",
|
|
32
|
+
columnType: "slot",
|
|
33
|
+
width: "140",
|
|
34
|
+
isColumn: !0,
|
|
35
|
+
sortable: !0
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "sysUser.email",
|
|
39
|
+
prop: "email",
|
|
40
|
+
width: "180",
|
|
41
|
+
slotName: "email",
|
|
42
|
+
columnType: "slot",
|
|
43
|
+
isColumn: !0,
|
|
44
|
+
sortable: !0
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
label: "common.status",
|
|
48
|
+
width: "100",
|
|
49
|
+
slotName: "status",
|
|
50
|
+
columnType: "slot",
|
|
51
|
+
isColumn: !0
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
label: "common.operate",
|
|
55
|
+
width: "80",
|
|
56
|
+
slotName: "operation",
|
|
57
|
+
columnType: "slot",
|
|
58
|
+
fixed: "right",
|
|
59
|
+
isColumn: !0
|
|
60
|
+
}
|
|
61
|
+
]);
|
|
62
|
+
r.value = !0;
|
|
63
|
+
function w(o) {
|
|
64
|
+
o.showEncrypt = !o.showEncrypt;
|
|
65
|
+
}
|
|
66
|
+
x().then(({ data: o }) => {
|
|
67
|
+
r.value = !1, p.value = o.results;
|
|
68
|
+
});
|
|
69
|
+
function I(o) {
|
|
70
|
+
T.confirm("确定切换用户身份吗?", "提示", {
|
|
71
|
+
confirmButtonText: "确定",
|
|
72
|
+
cancelButtonText: "取消",
|
|
73
|
+
type: "warning"
|
|
74
|
+
}).then(() => {
|
|
75
|
+
console.log(s()), U(o.userId).then(async (l) => {
|
|
76
|
+
l.status === 200 && (s().user.roleCodes = [], s().user.permCodes = [], u.value = !1, location.reload(), V({
|
|
77
|
+
message: "切换成功",
|
|
78
|
+
type: "success"
|
|
79
|
+
}));
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
return (o, l) => {
|
|
84
|
+
const h = B, E = P, N = A("el-dialog");
|
|
85
|
+
return m(), D(N, {
|
|
86
|
+
title: "切换身份",
|
|
87
|
+
modelValue: u.value,
|
|
88
|
+
"onUpdate:modelValue": l[0] || (l[0] = (e) => u.value = e),
|
|
89
|
+
width: "800px"
|
|
90
|
+
}, {
|
|
91
|
+
default: a(() => [
|
|
92
|
+
d(E, {
|
|
93
|
+
class: "table-top",
|
|
94
|
+
ref: "multipleTableRef",
|
|
95
|
+
"row-key": "userId",
|
|
96
|
+
"list-loading": t(r),
|
|
97
|
+
data: t(p),
|
|
98
|
+
"table-label": t(k),
|
|
99
|
+
isSelection: !1
|
|
100
|
+
}, {
|
|
101
|
+
mobilePhone: a((e) => [
|
|
102
|
+
c(n(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns) + " ", 1),
|
|
103
|
+
e.data.row.mobilePhoneIns ? (m(), y("span", J, [
|
|
104
|
+
f(d(h, {
|
|
105
|
+
"icon-class": "close-eye",
|
|
106
|
+
onClick: (b) => w(e.data.row)
|
|
107
|
+
}, null, 8, ["onClick"]), [
|
|
108
|
+
[g, !e.data.row.showEncrypt]
|
|
109
|
+
]),
|
|
110
|
+
f(d(h, {
|
|
111
|
+
"icon-class": "eye-open",
|
|
112
|
+
onClick: (b) => w(e.data.row)
|
|
113
|
+
}, null, 8, ["onClick"]), [
|
|
114
|
+
[g, e.data.row.showEncrypt]
|
|
115
|
+
])
|
|
116
|
+
])) : C("", !0)
|
|
117
|
+
]),
|
|
118
|
+
email: a((e) => [
|
|
119
|
+
c(n(e.data.row.showEncrypt ? e.data.row.email : e.data.row.emailIns), 1)
|
|
120
|
+
]),
|
|
121
|
+
status: a((e) => [
|
|
122
|
+
c(n(e.data.row.userId.replace(/-/g, "") === t(i).primaryUserId ? "原身份" : "") + " " + n(e.data.row.userId == t(i).userId ? "当前身份" : ""), 1)
|
|
123
|
+
]),
|
|
124
|
+
operation: a((e) => [
|
|
125
|
+
e.data.row.userId !== t(i).userId ? (m(), y("span", {
|
|
126
|
+
key: 0,
|
|
127
|
+
class: "el-button-color",
|
|
128
|
+
onClick: (b) => I(e.data.row)
|
|
129
|
+
}, " 切换 ", 8, L)) : C("", !0)
|
|
130
|
+
]),
|
|
131
|
+
_: 1
|
|
132
|
+
}, 8, ["list-loading", "data", "table-label"])
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["modelValue"]);
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
export {
|
|
140
|
+
W as _
|
|
141
|
+
};
|