jmash-core 0.0.84 → 0.0.86

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-BOgGx9Jd.mjs → 401-DwHfhZm2.mjs} +43 -44
  2. package/dist/{404-BYxlSqoT.mjs → 404-CeKwDY4M.mjs} +1 -1
  3. package/dist/{BarChart-C22Beea1.mjs → BarChart-BOhw_pWJ.mjs} +30 -31
  4. package/dist/{FunnelChart-CcCVox9E.mjs → FunnelChart-DPisFRDu.mjs} +1 -1
  5. package/dist/{PieChart-Dksdgtfs.mjs → PieChart-Ceza7eIr.mjs} +1 -1
  6. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-BAW7aMk4.mjs → PieChart.vue_vue_type_script_setup_true_lang-CjKWzA-2.mjs} +12 -14
  7. package/dist/{RadarChart-DquLnQ6V.mjs → RadarChart-Dvq6tgrV.mjs} +1 -1
  8. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-B9md22Se.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DxP18bev.mjs} +13 -15
  9. package/dist/index-B2hxZbIl.mjs +367 -0
  10. package/dist/{index-BjqMDjBg.mjs → index-D5Fo3f2g.mjs} +7651 -7892
  11. package/dist/index-D6FGEmgO.mjs +20014 -0
  12. package/dist/index-DJbI5eJZ.mjs +1639 -0
  13. package/dist/index-DahMKAi2.mjs +267 -0
  14. package/dist/index.mjs +49 -48
  15. package/dist/picture-CBRsHLZl.mjs +22 -0
  16. package/dist/profile-DxHeZsWs.mjs +263 -0
  17. package/dist/{runAs-aDp4HoyI.mjs → runAs-DZDdNkz3.mjs} +1 -1
  18. package/dist/runAs.vue_vue_type_script_setup_true_lang-D6N1cGUB.mjs +2496 -0
  19. package/dist/style.css +1 -1
  20. package/dist/{types-kVtKPxE9.mjs → types-qe4hLo3U.mjs} +79 -80
  21. package/dist/{updatePwd-D54MmOmU.mjs → updatePwd-6rHSVF-g.mjs} +1 -1
  22. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-DA30m6c3.mjs → updatePwd.vue_vue_type_script_setup_true_lang-BnWzu-me.mjs} +38 -45
  23. package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
  24. package/dts/src/components/JmashPagination/index.vue.d.ts +1 -1
  25. package/dts/src/components/Pagination/index.vue.d.ts +5 -5
  26. package/dts/src/components/SvgIcon/index.vue.d.ts +1 -1
  27. package/dts/src/index.d.ts +1 -0
  28. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +1 -1
  29. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +1 -1
  30. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +1 -1
  31. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +1 -1
  32. package/package.json +2 -3
  33. package/dist/el-card-BW_8jVxk.mjs +0 -61
  34. package/dist/el-col-Dd32wlSH.mjs +0 -135
  35. package/dist/el-form-item-3aV6p-oZ.mjs +0 -1117
  36. package/dist/index-B07mUqAa.mjs +0 -269
  37. package/dist/index-B8sKaF6F.mjs +0 -55
  38. package/dist/index-CgRfmdyq.mjs +0 -33076
  39. package/dist/index-CmaHwUB-.mjs +0 -449
  40. package/dist/index-RUqoTfAx.mjs +0 -3462
  41. package/dist/picture-DVndT_xi.mjs +0 -587
  42. package/dist/position-RPjzcrqL.mjs +0 -23
  43. package/dist/profile-CNIhXiv-.mjs +0 -4924
  44. package/dist/runAs.vue_vue_type_script_setup_true_lang-CZdXga19.mjs +0 -645
@@ -0,0 +1,267 @@
1
+ import { _ as oe } from "./picture-CBRsHLZl.mjs";
2
+ import { defineComponent as te, ref as i, watchEffect as se, computed as le, onMounted as ne, resolveComponent as c, openBlock as w, createElementBlock as U, createElementVNode as n, createVNode as s, unref as o, isRef as ae, withCtx as r, toDisplayString as R, createTextVNode as I, createBlock as A, Fragment as re, renderList as ce, createCommentVNode as ie, withKeys as N, withModifiers as de, withDirectives as pe, vShow as ue, pushScopeId as me, popScopeId as _e } from "vue";
3
+ import { useI18n as ge } from "vue-i18n";
4
+ import { c as D, u as T, l as he, b as fe, _ as ve, S as m, w as we, p as ye, x as ke, y as Ce, r as be, g as Ve } from "./index-D6FGEmgO.mjs";
5
+ import { ElForm as B } from "element-plus";
6
+ import { useRoute as Se } from "vue-router";
7
+ const F = (_) => (me("data-v-10b9a69c"), _ = _(), _e(), _), xe = { class: "login-container" }, $e = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Re = { class: "text-center relative" }, Ie = { class: "p-2" }, De = { class: "p-2" }, Ee = { class: "p-2" }, Le = { class: "p-2" }, qe = { class: "captcha" }, Ue = { class: "image-slot" }, Ae = { class: "forgot-pwd" }, Ne = { class: "absolute bottom-1 text-[10px] text-center" }, Te = /* @__PURE__ */ F(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), Be = /* @__PURE__ */ F(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Fe = [
8
+ Te,
9
+ Be
10
+ ], Ke = 992, Xe = /* @__PURE__ */ te({
11
+ __name: "index",
12
+ setup(_) {
13
+ const y = D(), { title: K, version: X } = y, k = i(y.theme === "dark"), z = (e) => {
14
+ we(e), y.changeSetting({
15
+ key: "theme",
16
+ value: e ? "dark" : "light"
17
+ });
18
+ }, C = T(), { width: j } = he();
19
+ se(() => {
20
+ j.value < Ke ? C.toggleDevice("mobile") : C.toggleDevice("desktop");
21
+ });
22
+ const b = i(!1), E = i(!1), g = i(!1), L = i(), q = i(B), V = i([]), a = i({
23
+ scope: "",
24
+ username: "",
25
+ password: ""
26
+ }), { t: S } = ge(), M = le(() => {
27
+ const e = C.language === "en" ? "Please enter " : "请输入";
28
+ return {
29
+ username: [
30
+ {
31
+ required: !0,
32
+ trigger: "blur",
33
+ message: `${e}${S("login.username")}`
34
+ }
35
+ ],
36
+ password: [
37
+ {
38
+ required: !0,
39
+ trigger: "blur",
40
+ validator: (t, p, d) => {
41
+ p.length < 5 ? d(new Error("The password can not be less than 5 digits")) : d();
42
+ },
43
+ message: `${e}${S("login.password")}`
44
+ }
45
+ ],
46
+ captchaCode: [
47
+ {
48
+ required: !0,
49
+ trigger: "blur",
50
+ message: `${e}${S("login.captchaCode")}`
51
+ }
52
+ ]
53
+ };
54
+ });
55
+ function O(e) {
56
+ const { key: t } = e;
57
+ E.value = t && t.length === 1 && t >= "A" && t <= "Z";
58
+ }
59
+ function h() {
60
+ ye().then(({ data: e }) => {
61
+ a.value.captchaKey = e.captchaId, L.value = e.base64Image;
62
+ });
63
+ }
64
+ function P() {
65
+ ke().then(({ data: e }) => {
66
+ V.value = e.roleList;
67
+ });
68
+ }
69
+ const W = Se(), H = fe();
70
+ function x() {
71
+ q.value.validate((e) => {
72
+ e && (b.value = !0, a.value.password = Ce(a.value.password), H.login(a.value).then(() => {
73
+ const t = W.query, p = t.redirect ?? "/", d = Object.keys(t).reduce(
74
+ (f, u) => (u !== "redirect" && (f[u] = t[u]), f),
75
+ {}
76
+ );
77
+ be.value.push({ path: p, query: d }), h();
78
+ }).catch(() => {
79
+ h();
80
+ }).finally(() => {
81
+ b.value = !1;
82
+ }));
83
+ });
84
+ }
85
+ return ne(() => {
86
+ h(), P();
87
+ const e = D().theme;
88
+ D().changeSetting({ key: "theme", value: e }), e == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
89
+ }), (e, t) => {
90
+ const p = c("el-switch"), d = c("el-tag"), f = c("el-option"), u = c("el-select"), v = c("el-form-item"), $ = c("el-input"), Q = c("el-tooltip"), Z = oe, G = c("el-image"), J = c("router-link"), Y = c("el-button"), ee = c("el-card");
91
+ return w(), U("div", xe, [
92
+ n("div", $e, [
93
+ s(p, {
94
+ modelValue: o(k),
95
+ "onUpdate:modelValue": t[0] || (t[0] = (l) => ae(k) ? k.value = l : null),
96
+ "inline-prompt": "",
97
+ "active-color": "var(--el-fill-color-dark)",
98
+ "inactive-color": "var(--el-color-primary)",
99
+ onChange: z
100
+ }, null, 8, ["modelValue"]),
101
+ s(ve, { class: "ml-2 cursor-pointer" })
102
+ ]),
103
+ s(ee, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
104
+ default: r(() => [
105
+ n("div", Re, [
106
+ n("h2", null, R(o(K)), 1),
107
+ s(d, { class: "ml-2 absolute top-0 right-0" }, {
108
+ default: r(() => [
109
+ I(R(o(X)), 1)
110
+ ]),
111
+ _: 1
112
+ })
113
+ ]),
114
+ s(o(B), {
115
+ ref_key: "loginFormRef",
116
+ ref: q,
117
+ model: o(a),
118
+ rules: o(M),
119
+ size: "large",
120
+ class: "login-form"
121
+ }, {
122
+ default: r(() => [
123
+ o(V).length > 0 ? (w(), A(v, {
124
+ key: 0,
125
+ prop: "scope"
126
+ }, {
127
+ default: r(() => [
128
+ n("div", Ie, [
129
+ s(m, { "icon-class": "user" })
130
+ ]),
131
+ s(u, {
132
+ modelValue: o(a).scope,
133
+ "onUpdate:modelValue": t[1] || (t[1] = (l) => o(a).scope = l),
134
+ placeholder: "Select",
135
+ class: "flex-1"
136
+ }, {
137
+ default: r(() => [
138
+ (w(!0), U(re, null, ce(o(V), (l) => (w(), A(f, {
139
+ key: l.roleCode,
140
+ label: l.roleName,
141
+ value: l.roleCode
142
+ }, null, 8, ["label", "value"]))), 128))
143
+ ]),
144
+ _: 1
145
+ }, 8, ["modelValue"])
146
+ ]),
147
+ _: 1
148
+ })) : ie("", !0),
149
+ s(v, { prop: "username" }, {
150
+ default: r(() => [
151
+ n("div", De, [
152
+ s(m, { "icon-class": "user" })
153
+ ]),
154
+ s($, {
155
+ ref: "username",
156
+ modelValue: o(a).username,
157
+ "onUpdate:modelValue": t[2] || (t[2] = (l) => o(a).username = l),
158
+ class: "flex-1",
159
+ placeholder: e.$t("login.username"),
160
+ name: "username"
161
+ }, null, 8, ["modelValue", "placeholder"])
162
+ ]),
163
+ _: 1
164
+ }),
165
+ s(Q, {
166
+ disabled: o(E) === !1,
167
+ content: "Caps lock is On",
168
+ placement: "right"
169
+ }, {
170
+ default: r(() => [
171
+ s(v, { prop: "password" }, {
172
+ default: r(() => [
173
+ n("span", Ee, [
174
+ s(m, { "icon-class": "password" })
175
+ ]),
176
+ s($, {
177
+ modelValue: o(a).password,
178
+ "onUpdate:modelValue": t[3] || (t[3] = (l) => o(a).password = l),
179
+ class: "flex-1",
180
+ placeholder: e.$t("login.password"),
181
+ type: o(g) === !1 ? "password" : "input",
182
+ name: "password",
183
+ onKeyup: [
184
+ O,
185
+ N(x, ["enter"])
186
+ ]
187
+ }, null, 8, ["modelValue", "placeholder", "type"]),
188
+ n("span", {
189
+ class: "mr-2",
190
+ onClick: t[4] || (t[4] = (l) => g.value = !o(g))
191
+ }, [
192
+ s(m, {
193
+ "icon-class": o(g) === !1 ? "eye" : "eye-open",
194
+ class: "cursor-pointer"
195
+ }, null, 8, ["icon-class"])
196
+ ])
197
+ ]),
198
+ _: 1
199
+ })
200
+ ]),
201
+ _: 1
202
+ }, 8, ["disabled"]),
203
+ s(v, { prop: "captchaCode" }, {
204
+ default: r(() => [
205
+ n("span", Le, [
206
+ s(m, { "icon-class": "captcha" })
207
+ ]),
208
+ s($, {
209
+ modelValue: o(a).captchaCode,
210
+ "onUpdate:modelValue": t[5] || (t[5] = (l) => o(a).captchaCode = l),
211
+ "auto-complete": "off",
212
+ placeholder: e.$t("login.captchaCode"),
213
+ class: "w-[60%]",
214
+ onKeyup: N(x, ["enter"])
215
+ }, null, 8, ["modelValue", "placeholder"]),
216
+ n("div", qe, [
217
+ s(G, {
218
+ src: o(L),
219
+ onClick: h,
220
+ class: "w-[130px] h-[50px] cursor-pointer"
221
+ }, {
222
+ error: r(() => [
223
+ n("div", Ue, [
224
+ s(Z)
225
+ ])
226
+ ]),
227
+ _: 1
228
+ }, 8, ["src"])
229
+ ])
230
+ ]),
231
+ _: 1
232
+ }),
233
+ n("div", Ae, [
234
+ s(J, { to: "/secondLogin" }, {
235
+ default: r(() => [
236
+ I("手机号/邮箱登录")
237
+ ]),
238
+ _: 1
239
+ })
240
+ ]),
241
+ s(Y, {
242
+ loading: o(b),
243
+ type: "primary",
244
+ class: "w-full",
245
+ onClick: de(x, ["prevent"])
246
+ }, {
247
+ default: r(() => [
248
+ I(R(e.$t("login.login")), 1)
249
+ ]),
250
+ _: 1
251
+ }, 8, ["loading"])
252
+ ]),
253
+ _: 1
254
+ }, 8, ["model", "rules"])
255
+ ]),
256
+ _: 1
257
+ }),
258
+ pe(n("div", Ne, Fe, 512), [
259
+ [ue, o(T)().device == "desktop"]
260
+ ])
261
+ ]);
262
+ };
263
+ }
264
+ }), He = /* @__PURE__ */ Ve(Xe, [["__scopeId", "data-v-10b9a69c"]]);
265
+ export {
266
+ He as default
267
+ };
package/dist/index.mjs CHANGED
@@ -1,57 +1,58 @@
1
- import { bS as e, bT as t, bU as r, cb as o, bX as i, bV as b, c9 as u, ca as c, c5 as n, c6 as p, c7 as d, c8 as g, cc as l, b$ as P, bM as S, bH as D, bI as E, bD as m, bP as M, bQ as y, bF as f, a7 as k, bE as R, bW as v, a6 as H, as as L, bO as A, aa as C, bG as U, ay as z, bC as B, c3 as T, ab as V, bY as W, br as h, ax as x, c0 as F, bJ as Q, c4 as q, bN as w, bK as G, bL as I, W as J, c1 as K, bR as N, bZ as O, ac as X, bs as Y, a3 as Z, b_ as _, a1 as $, a2 as j, c2 as aa, au as sa } from "./index-CgRfmdyq.mjs";
1
+ import { aU as t, aV as r, aW as o, bd as i, aZ as u, aX as n, bb as b, bc as p, b7 as c, b8 as d, b9 as g, ba as l, be as P, b1 as S, aO as m, aJ as E, aK as D, aF as M, aR as f, aS as y, aH as k, e as v, aG as R, aY as A, f as H, p as L, aQ as B, i as U, aI as h, y as z, aE as C, b5 as T, r as V, a_ as x, aA as W, x as F, b2 as Q, aL as q, b6 as w, aP as G, aM as I, aN as J, u as K, b3 as N, aT as O, a$ as X, h as Y, aB as Z, c as _, b0 as $, a as j, b as aa, b4 as sa, v as ea } from "./index-D6FGEmgO.mjs";
2
+ import "element-plus";
2
3
  export {
3
- e as BizDict,
4
- t as BizLayDict,
5
- r as CustomBizDict,
6
- o as DashboardPage,
7
- i as EnableBizDict,
8
- b as EnumDict,
9
- u as Error401Page,
10
- c as Error404Page,
11
- n as Layout,
12
- p as LoginPage,
13
- d as MultiFactorLoginPage,
14
- g as ProfilePage,
15
- l as RedirectPage,
16
- P as TableHooks,
17
- S as addDynamicRoute,
18
- D as addViteMenus,
19
- E as addWebpackMenus,
20
- m as axiosConfig,
21
- M as clearEmpty,
4
+ t as BizDict,
5
+ r as BizLayDict,
6
+ o as CustomBizDict,
7
+ i as DashboardPage,
8
+ u as EnableBizDict,
9
+ n as EnumDict,
10
+ b as Error401Page,
11
+ p as Error404Page,
12
+ c as Layout,
13
+ d as LoginPage,
14
+ g as MultiFactorLoginPage,
15
+ l as ProfilePage,
16
+ P as RedirectPage,
17
+ S as TableHooks,
18
+ m as addDynamicRoute,
19
+ E as addViteMenus,
20
+ D as addWebpackMenus,
21
+ M as axiosConfig,
22
+ f as clearEmpty,
22
23
  y as deepMerge,
23
- f as default,
24
- k as defaultSettings,
24
+ k as default,
25
+ v as defaultSettings,
25
26
  R as directive,
26
- v as enumMapCache,
27
+ A as enumMapCache,
27
28
  H as fileApi,
28
29
  L as getCaptchaApi,
29
- A as getQueryParams,
30
- C as i18n,
31
- U as menus,
30
+ B as getQueryParams,
31
+ U as i18n,
32
+ h as menus,
32
33
  z as netEncrypt,
33
- B as request,
34
+ C as request,
34
35
  T as resetRouter,
35
36
  V as routerRef,
36
- W as routerUtil,
37
- h as runAsUser,
38
- x as selectDsdRoles,
39
- F as store,
40
- Q as updateMetaEnv,
41
- q as updateRouter,
42
- w as updateSettings,
43
- G as updateViteMetaEnv,
44
- I as updateWebpackMetaEnv,
45
- J as useAppStore,
46
- K as useAppStoreHook,
47
- N as useDictionary,
48
- O as useListData,
49
- X as usePermissionStore,
50
- Y as usePermissionStoreHook,
51
- Z as useSettingsStore,
52
- _ as useTableHooks,
53
- $ as useTagsViewStore,
54
- j as useUserStore,
55
- aa as useUserStoreHook,
56
- sa as vueMetaEnv
37
+ x as routerUtil,
38
+ W as runAsUser,
39
+ F as selectDsdRoles,
40
+ Q as store,
41
+ q as updateMetaEnv,
42
+ w as updateRouter,
43
+ G as updateSettings,
44
+ I as updateViteMetaEnv,
45
+ J as updateWebpackMetaEnv,
46
+ K as useAppStore,
47
+ N as useAppStoreHook,
48
+ O as useDictionary,
49
+ X as useListData,
50
+ Y as usePermissionStore,
51
+ Z as usePermissionStoreHook,
52
+ _ as useSettingsStore,
53
+ $ as useTableHooks,
54
+ j as useTagsViewStore,
55
+ aa as useUserStore,
56
+ sa as useUserStoreHook,
57
+ ea as vueMetaEnv
57
58
  };
@@ -0,0 +1,22 @@
1
+ import { openBlock as t, createElementBlock as l, createElementVNode as e } from "vue";
2
+ const o = {
3
+ viewBox: "0 0 1024 1024",
4
+ width: "1.2em",
5
+ height: "1.2em"
6
+ }, n = /* @__PURE__ */ e("path", {
7
+ fill: "currentColor",
8
+ d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
9
+ }, null, -1), c = /* @__PURE__ */ e("path", {
10
+ fill: "currentColor",
11
+ d: "M384 288q64 0 64 64t-64 64t-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472l122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888l49.92 39.936l-215.808 269.824l-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072l-.64-.512a32 32 0 0 0-44.8 5.952z"
12
+ }, null, -1), r = [
13
+ n,
14
+ c
15
+ ];
16
+ function a(_, i) {
17
+ return t(), l("svg", o, [...r]);
18
+ }
19
+ const s = { name: "ep-picture", render: a };
20
+ export {
21
+ s as _
22
+ };
@@ -0,0 +1,263 @@
1
+ import { b as S, z, A as E, B as F, C as P, F as G, G as L, g as O } from "./index-D6FGEmgO.mjs";
2
+ import { defineComponent as T, ref as i, reactive as H, resolveComponent as r, openBlock as p, createElementBlock as I, createVNode as t, unref as s, withCtx as o, createElementVNode as _, toDisplayString as v, Fragment as K, renderList as Q, createBlock as f, createCommentVNode as g, createTextVNode as W } from "vue";
3
+ import { ElMessage as X } from "element-plus";
4
+ const Z = { class: "app-container" }, x = { class: "positon_name" }, ee = /* @__PURE__ */ T({
5
+ __name: "profile",
6
+ setup(te) {
7
+ const U = i(), b = i(), h = i();
8
+ let e = H({
9
+ user: {
10
+ tenant: S().user.tenant,
11
+ requestId: Math.random() * 10 + "",
12
+ updateMask: "nickName,gender,birthDate,realName,avatar",
13
+ userJobs: [
14
+ {
15
+ deptId: "",
16
+ jobId: ""
17
+ }
18
+ ]
19
+ }
20
+ });
21
+ function J() {
22
+ z().then(({ data: l }) => {
23
+ var a;
24
+ e.user = Object.assign(e.user, { ...l }), ((a = e.user.userJobs) == null ? void 0 : a.length) === 0 && (e.user.userJobs = [
25
+ {
26
+ deptId: "",
27
+ jobId: ""
28
+ }
29
+ ]);
30
+ }), E().then(({ data: l }) => {
31
+ b.value = l.results;
32
+ }), F().then(({ data: l }) => {
33
+ h.value = l.results;
34
+ });
35
+ }
36
+ function N() {
37
+ var l;
38
+ e.user.userJobs && e.user.userJobs.length < 5 && ((l = e.user.userJobs) == null || l.push({
39
+ deptId: "",
40
+ jobId: ""
41
+ }));
42
+ }
43
+ function C(l) {
44
+ var a;
45
+ (a = e.user.userJobs) == null || a.splice(l, 1);
46
+ }
47
+ function D(l) {
48
+ e.user.avatar = l;
49
+ }
50
+ const j = () => {
51
+ P(e.user).then((l) => {
52
+ e.user.requestId = Math.random() * 10 + "", l.status === 200 && X({
53
+ message: "个人信息修改成功",
54
+ type: "success"
55
+ });
56
+ });
57
+ };
58
+ return J(), (l, a) => {
59
+ const $ = G, n = r("el-form-item"), V = r("el-tree-select"), c = r("el-col"), w = r("CirclePlus"), y = r("el-icon"), M = r("Remove"), Y = r("el-row"), k = r("el-input"), R = L, A = r("el-date-picker"), q = r("el-button"), B = r("el-form");
60
+ return p(), I("div", Z, [
61
+ t(B, {
62
+ ref_key: "userInfoRef",
63
+ ref: U,
64
+ mode: s(e).user,
65
+ "label-width": "80px"
66
+ }, {
67
+ default: o(() => [
68
+ t(n, null, {
69
+ default: o(() => [
70
+ t($, {
71
+ "picture-url": s(e).user.avatar,
72
+ onImageSrc: D
73
+ }, null, 8, ["picture-url"])
74
+ ]),
75
+ _: 1
76
+ }),
77
+ t(n, { label: "手机号" }, {
78
+ default: o(() => [
79
+ _("span", null, v(s(e).user.mobilePhone), 1)
80
+ ]),
81
+ _: 1
82
+ }),
83
+ t(n, { label: "邮箱" }, {
84
+ default: o(() => [
85
+ _("span", null, v(s(e).user.email), 1)
86
+ ]),
87
+ _: 1
88
+ }),
89
+ _("div", x, [
90
+ (p(!0), I(K, null, Q(s(e).user.userJobs, (d, u) => (p(), f(Y, {
91
+ key: u,
92
+ style: { width: "100%" }
93
+ }, {
94
+ default: o(() => [
95
+ t(c, { span: 12 }, {
96
+ default: o(() => [
97
+ t(n, {
98
+ label: l.$t("sysUser.department"),
99
+ prop: `userJobs.${u}.deptId`
100
+ }, {
101
+ default: o(() => [
102
+ t(V, {
103
+ modelValue: s(e).user.userJobs[u].deptId,
104
+ "onUpdate:modelValue": (m) => s(e).user.userJobs[u].deptId = m,
105
+ data: b.value,
106
+ "render-after-expand": !1,
107
+ filterable: "",
108
+ "check-strictly": "",
109
+ placeholder: l.$t("sysUser.departmentRequired"),
110
+ style: { width: "100%" }
111
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
112
+ ]),
113
+ _: 2
114
+ }, 1032, ["label", "prop"])
115
+ ]),
116
+ _: 2
117
+ }, 1024),
118
+ t(c, { span: 11 }, {
119
+ default: o(() => [
120
+ t(n, {
121
+ label: l.$t("sysUser.position"),
122
+ prop: `userJobs.${u}.jobId`
123
+ }, {
124
+ default: o(() => [
125
+ t(V, {
126
+ modelValue: s(e).user.userJobs[u].jobId,
127
+ "onUpdate:modelValue": (m) => s(e).user.userJobs[u].jobId = m,
128
+ data: h.value,
129
+ "render-after-expand": !1,
130
+ filterable: "",
131
+ "check-strictly": "",
132
+ placeholder: l.$t("sysUser.positionRequired"),
133
+ style: { width: "100%" }
134
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
135
+ ]),
136
+ _: 2
137
+ }, 1032, ["label", "prop"])
138
+ ]),
139
+ _: 2
140
+ }, 1024),
141
+ u == 0 ? (p(), f(c, {
142
+ key: 0,
143
+ span: 1,
144
+ class: "position-center"
145
+ }, {
146
+ default: o(() => [
147
+ t(y, {
148
+ size: "16",
149
+ onClick: N
150
+ }, {
151
+ default: o(() => [
152
+ t(w)
153
+ ]),
154
+ _: 1
155
+ })
156
+ ]),
157
+ _: 1
158
+ })) : g("", !0),
159
+ u !== 0 ? (p(), f(c, {
160
+ key: 1,
161
+ span: 1,
162
+ class: "position-center"
163
+ }, {
164
+ default: o(() => [
165
+ t(y, {
166
+ size: "16",
167
+ onClick: (m) => C(u)
168
+ }, {
169
+ default: o(() => [
170
+ t(M)
171
+ ]),
172
+ _: 2
173
+ }, 1032, ["onClick"])
174
+ ]),
175
+ _: 2
176
+ }, 1024)) : g("", !0)
177
+ ]),
178
+ _: 2
179
+ }, 1024))), 128))
180
+ ]),
181
+ t(n, {
182
+ label: "用户昵称",
183
+ prop: "nickName"
184
+ }, {
185
+ default: o(() => [
186
+ t(k, {
187
+ modelValue: s(e).user.nickName,
188
+ "onUpdate:modelValue": a[0] || (a[0] = (d) => s(e).user.nickName = d),
189
+ clearable: "",
190
+ placeholder: "请输入用户昵称"
191
+ }, null, 8, ["modelValue"])
192
+ ]),
193
+ _: 1
194
+ }),
195
+ t(n, {
196
+ label: "姓名",
197
+ prop: "realName"
198
+ }, {
199
+ default: o(() => [
200
+ t(k, {
201
+ modelValue: s(e).user.realName,
202
+ "onUpdate:modelValue": a[1] || (a[1] = (d) => s(e).user.realName = d),
203
+ clearable: "",
204
+ placeholder: "请输入姓名"
205
+ }, null, 8, ["modelValue"])
206
+ ]),
207
+ _: 1
208
+ }),
209
+ t(n, {
210
+ label: "性别",
211
+ prop: "gender"
212
+ }, {
213
+ default: o(() => [
214
+ t(R, {
215
+ modelValue: s(e).user.gender,
216
+ "onUpdate:modelValue": a[2] || (a[2] = (d) => s(e).user.gender = d),
217
+ placeholder: "请选择性别",
218
+ "dict-type": "jmash.protobuf.Gender"
219
+ }, null, 8, ["modelValue"])
220
+ ]),
221
+ _: 1
222
+ }),
223
+ t(n, {
224
+ label: "出生日期",
225
+ prop: "birthDate"
226
+ }, {
227
+ default: o(() => [
228
+ t(A, {
229
+ modelValue: s(e).user.birthDate,
230
+ "onUpdate:modelValue": a[3] || (a[3] = (d) => s(e).user.birthDate = d),
231
+ type: "date",
232
+ placeholder: "请选择出生日期",
233
+ format: "YYYY-MM-DD",
234
+ "value-format": "YYYY-MM-DD",
235
+ style: { width: "100%" }
236
+ }, null, 8, ["modelValue"])
237
+ ]),
238
+ _: 1
239
+ }),
240
+ t(n, null, {
241
+ default: o(() => [
242
+ t(q, {
243
+ type: "primary",
244
+ onClick: j
245
+ }, {
246
+ default: o(() => [
247
+ W("保存")
248
+ ]),
249
+ _: 1
250
+ })
251
+ ]),
252
+ _: 1
253
+ })
254
+ ]),
255
+ _: 1
256
+ }, 8, ["mode"])
257
+ ]);
258
+ };
259
+ }
260
+ }), ae = /* @__PURE__ */ O(ee, [["__scopeId", "data-v-d510744d"]]);
261
+ export {
262
+ ae as default
263
+ };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-CZdXga19.mjs";
1
+ import { _ as f } from "./runAs.vue_vue_type_script_setup_true_lang-D6N1cGUB.mjs";
2
2
  export {
3
3
  f as default
4
4
  };