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.
Files changed (44) hide show
  1. package/dist/{401-Cje8e0iQ.mjs → 401-Uu9uc5AZ.mjs} +1 -1
  2. package/dist/{404-Dcy7ErNt.mjs → 404-Bv4HWETa.mjs} +1 -1
  3. package/dist/{BarChart-oW-R1RXw.mjs → BarChart-CYiicJy4.mjs} +1 -1
  4. package/dist/{index-BnPTCkJp.mjs → index-BLFj1FIB.mjs} +6855 -6559
  5. package/dist/{index-C1KAa9PO.mjs → index-CSpzpS5Q.mjs} +3 -3
  6. package/dist/index-CyDktxrD.mjs +45 -0
  7. package/dist/{index-CAh0BAJl.mjs → index-Ywpo9w9-.mjs} +15 -15
  8. package/dist/index-yDhj6f4D.mjs +227 -0
  9. package/dist/index.mjs +55 -51
  10. package/dist/{profile-DSyIwcjT.mjs → profile-DLMrjX4f.mjs} +6 -6
  11. package/dist/{runAs-ByT2IRUb.mjs → runAs-CLd5eBdV.mjs} +1 -1
  12. package/dist/runAs.vue_vue_type_script_setup_true_lang-Chc0acxM.mjs +141 -0
  13. package/dist/style.css +1 -1
  14. package/dist/{types-DaRQE9AI.mjs → types-BEVVO8kD.mjs} +79 -63
  15. package/dist/{updatePwd-BW1ZcKeg.mjs → updatePwd-BggDYrPh.mjs} +1 -1
  16. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-CASn5sxv.mjs → updatePwd.vue_vue_type_script_setup_true_lang-473g6F8e.mjs} +9 -9
  17. package/dts/src/api/auth/index.d.ts +5 -1
  18. package/dts/src/api/auth/types.d.ts +54 -4
  19. package/dts/src/components/{DictRadio → JmashAMap}/index.vue.d.ts +17 -11
  20. package/dts/src/components/{Upload → JmashTMaps}/index.vue.d.ts +7 -5
  21. package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
  22. package/dts/src/index.d.ts +4 -4
  23. package/dts/src/lang/package/zh-cn.d.ts +1 -0
  24. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +1 -1
  25. package/dts/src/router/index.d.ts +1 -0
  26. package/dts/src/types/index.d.ts +12 -0
  27. package/dts/src/utils/AMap.d.ts +4 -0
  28. package/dts/src/utils/TMap.d.ts +1 -0
  29. package/dts/src/utils/common.d.ts +8 -5
  30. package/dts/src/views/change-organ/index.vue.d.ts +2 -0
  31. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
  32. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
  33. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
  34. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
  35. package/package.json +85 -85
  36. package/dist/index-pfRSPpqI.mjs +0 -268
  37. package/dist/picture-CBRsHLZl.mjs +0 -22
  38. package/dist/runAs.vue_vue_type_script_setup_true_lang-CKnm9qB3.mjs +0 -140
  39. package/dts/src/components/DictSelect/index.vue.d.ts +0 -50
  40. package/dts/src/components/Pagination/index.vue.d.ts +0 -88
  41. package/dts/src/components/Table/index.vue.d.ts +0 -64
  42. package/dts/src/components/Upload/MultiUpload.vue.d.ts +0 -65
  43. package/dts/src/components/Upload/SingleUpload.vue.d.ts +0 -18
  44. package/dts/src/components/Upload/importUpload.vue.d.ts +0 -31
package/dist/index.mjs CHANGED
@@ -1,59 +1,63 @@
1
- import { a1 as t, a2 as r, a3 as o, an as i, a6 as u, a4 as n, al as p, am as d, ah as c, ai as g, aj as l, ak as m, ao as P, a as S, aa as D, W as E, P as M, Q as f, L as k, Z as b, $ as y, N as A, g as R, M as v, a5 as L, f as z, t as H, Y as U, j as h, O as B, A as C, K as V, af as T, r as W, a7 as j, I as w, z as x, ab as I, R as Q, ag as q, X as F, U as K, V as N, u as O, ac as X, a0 as Y, a8 as Z, k as $, ad as G, d as J, a9 as _, b as aa, c as sa, ae as ea, w as ta } from "./index-BnPTCkJp.mjs";
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 CustomBizDict,
7
- i as DashboardPage,
8
- u as EnableBizDict,
9
- n as EnumDict,
10
- p as Error401Page,
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
- g as LoginPage,
14
- l as MultiFactorLoginPage,
15
- m as ProfilePage,
16
- P as RedirectPage,
17
- S as SysApiImpl,
18
- D as TableHooks,
19
- E as addDynamicRoute,
20
- M as addViteMenus,
21
- f as addWebpackMenus,
22
- k as axiosConfig,
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
- y as deepMerge,
25
- A as default,
26
- R as defaultSettings,
27
- v as directive,
28
- L as enumMapCache,
29
- z as fileApi,
30
- H as getCaptchaApi,
31
- U as getQueryParams,
32
- h as i18n,
33
- B as menus,
34
- C as netEncrypt,
35
- V as request,
36
- T as resetRouter,
37
- W as routerRef,
38
- j as routerUtil,
39
- w as runAsUser,
40
- x as selectDsdRoles,
41
- I as store,
42
- Q as updateMetaEnv,
43
- q as updateRouter,
44
- F as updateSettings,
45
- K as updateViteMetaEnv,
46
- N as updateWebpackMetaEnv,
47
- O as useAppStore,
48
- X as useAppStoreHook,
49
- Y as useDictionary,
50
- Z as useListData,
51
- $ as usePermissionStore,
52
- G as usePermissionStoreHook,
53
- J as useSettingsStore,
54
- _ as useTableHooks,
55
- aa as useTagsViewStore,
56
- sa as useUserStore,
57
- ea as useUserStoreHook,
58
- ta as vueMetaEnv
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 i, 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 { c as G, B as L, C as O, F as T, G as H, i as K } from "./index-BnPTCkJp.mjs";
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 $ = i(), y = i(), h = i();
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": (c) => o(l).user.userJobs[u].deptId = c,
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": (c) => o(l).user.userJobs[u].jobId = c,
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: (c) => N(u)
171
+ onClick: (i) => N(u)
172
172
  }, {
173
173
  default: s(() => [
174
174
  t(q)
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-CKnm9qB3.mjs";
1
+ import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-Chc0acxM.mjs";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -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
+ };