jmash-core 0.0.114 → 0.0.115
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-BfxcI08c.mjs → 401-v1FQgQZN.mjs} +1 -1
- package/dist/{404-D-7ROO0t.mjs → 404-CAYaKRlw.mjs} +1 -1
- package/dist/{BarChart-BdAi6E6M.mjs → BarChart-CzfHucMo.mjs} +1 -1
- package/dist/{index-D-uncwGv.mjs → index-BF3pF4qO.mjs} +3 -3
- package/dist/{index-BGzZmDw9.mjs → index-BFQsO4ZE.mjs} +1 -1
- package/dist/index-Bgvx61Bm.mjs +47 -0
- package/dist/{index-CUzhdXPd.mjs → index-Bo0uI87n.mjs} +2 -2
- package/dist/{index-B8mVGQXm.mjs → index-DvLk7qST.mjs} +55 -54
- package/dist/index.mjs +15 -15
- package/dist/profile-DpQUDPwd.mjs +295 -0
- package/dist/{runAs-B8-utIhj.mjs → runAs-C70aiB_B.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-C9-RlvZ3.mjs → runAs.vue_vue_type_script_setup_true_lang-C6VLwFOp.mjs} +5 -5
- package/dist/style.css +1 -1
- package/dist/{types-DpY2PIWd.mjs → types-DrC3QXWm.mjs} +1 -1
- package/dist/{updatePwd-E47Yqsm5.mjs → updatePwd-brF1u3HA.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Dy2GVCiM.mjs → updatePwd.vue_vue_type_script_setup_true_lang-zEV4vdSy.mjs} +3 -3
- package/dts/src/api/dict.d.ts +4 -0
- package/dts/src/constant.d.ts +4 -0
- package/package.json +1 -1
- package/dist/index-CTvdAMPx.mjs +0 -47
- package/dist/profile-CnVGi5r5.mjs +0 -267
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
var F = Object.defineProperty;
|
|
2
|
+
var L = (m, p, i) => p in m ? F(m, p, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[p] = i;
|
|
3
|
+
var y = (m, p, i) => L(m, typeof p != "symbol" ? p + "" : p, i);
|
|
4
|
+
import { B as z, b as H, C as T, F as K, G as Q, H as W, I as X, i as Z } from "./index-DvLk7qST.mjs";
|
|
5
|
+
import { defineComponent as x, ref as V, reactive as ee, resolveComponent as n, openBlock as c, createElementBlock as k, createVNode as t, unref as s, withCtx as o, createElementVNode as le, Fragment as N, renderList as $, createBlock as h, createCommentVNode as J, createTextVNode as te, toDisplayString as se } from "vue";
|
|
6
|
+
import { ElMessage as oe } from "element-plus";
|
|
7
|
+
class U {
|
|
8
|
+
}
|
|
9
|
+
//模块
|
|
10
|
+
y(U, "MODULE_ORGAN", "rbac"), // 性别
|
|
11
|
+
y(U, "GENDER", "jmash.protobuf.Gender");
|
|
12
|
+
class D {
|
|
13
|
+
}
|
|
14
|
+
y(D, "genderEnum", new z(U.MODULE_ORGAN, U.GENDER));
|
|
15
|
+
const ae = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @__PURE__ */ x({
|
|
16
|
+
__name: "profile",
|
|
17
|
+
setup(m) {
|
|
18
|
+
const p = V(), i = V(), v = V();
|
|
19
|
+
let e = ee({
|
|
20
|
+
user: {
|
|
21
|
+
tenant: H().user.tenant,
|
|
22
|
+
requestId: Math.random() * 10 + "",
|
|
23
|
+
updateMask: "nickName,gender,birthDate,realName,avatar",
|
|
24
|
+
userJobs: [
|
|
25
|
+
{
|
|
26
|
+
deptId: "",
|
|
27
|
+
jobId: ""
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
function R() {
|
|
33
|
+
T().then(({ data: l }) => {
|
|
34
|
+
var a;
|
|
35
|
+
e.user = Object.assign(e.user, { ...l }), ((a = e.user.userJobs) == null ? void 0 : a.length) === 0 && (e.user.userJobs = [
|
|
36
|
+
{
|
|
37
|
+
deptId: "",
|
|
38
|
+
jobId: ""
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
41
|
+
}), K().then(({ data: l }) => {
|
|
42
|
+
i.value = l.results;
|
|
43
|
+
}), Q().then(({ data: l }) => {
|
|
44
|
+
v.value = l.results;
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function E() {
|
|
48
|
+
var l;
|
|
49
|
+
e.user.userJobs && e.user.userJobs.length < 5 && ((l = e.user.userJobs) == null || l.push({
|
|
50
|
+
deptId: "",
|
|
51
|
+
jobId: ""
|
|
52
|
+
}));
|
|
53
|
+
}
|
|
54
|
+
function C(l) {
|
|
55
|
+
var a;
|
|
56
|
+
(a = e.user.userJobs) == null || a.splice(l, 1);
|
|
57
|
+
}
|
|
58
|
+
function M(l) {
|
|
59
|
+
e.user.avatar = l;
|
|
60
|
+
}
|
|
61
|
+
const j = () => {
|
|
62
|
+
W(e.user).then((l) => {
|
|
63
|
+
e.user.requestId = Math.random() * 10 + "", l.status === 200 && oe({
|
|
64
|
+
message: "个人信息修改成功",
|
|
65
|
+
type: "success"
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
};
|
|
69
|
+
return R(), (l, a) => {
|
|
70
|
+
const w = X, u = n("el-form-item"), b = n("el-input"), g = n("el-tree-select"), f = n("el-col"), q = n("CirclePlus"), I = n("el-icon"), Y = n("Remove"), A = n("el-row"), G = n("el-option"), O = n("el-select"), S = n("el-date-picker"), B = n("el-button"), P = n("el-form");
|
|
71
|
+
return c(), k("div", ae, [
|
|
72
|
+
t(P, {
|
|
73
|
+
ref_key: "userInfoRef",
|
|
74
|
+
ref: p,
|
|
75
|
+
mode: s(e).user,
|
|
76
|
+
"label-width": "80px"
|
|
77
|
+
}, {
|
|
78
|
+
default: o(() => [
|
|
79
|
+
t(u, null, {
|
|
80
|
+
default: o(() => [
|
|
81
|
+
t(w, {
|
|
82
|
+
"picture-url": s(e).user.avatar,
|
|
83
|
+
onImageSrc: M
|
|
84
|
+
}, null, 8, ["picture-url"])
|
|
85
|
+
]),
|
|
86
|
+
_: 1
|
|
87
|
+
}),
|
|
88
|
+
t(u, {
|
|
89
|
+
label: l.$t("sysUser.phoneNumber")
|
|
90
|
+
}, {
|
|
91
|
+
default: o(() => [
|
|
92
|
+
t(b, {
|
|
93
|
+
modelValue: s(e).user.mobilePhone,
|
|
94
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => s(e).user.mobilePhone = r),
|
|
95
|
+
readonly: ""
|
|
96
|
+
}, null, 8, ["modelValue"])
|
|
97
|
+
]),
|
|
98
|
+
_: 1
|
|
99
|
+
}, 8, ["label"]),
|
|
100
|
+
t(u, {
|
|
101
|
+
label: l.$t("sysUser.email")
|
|
102
|
+
}, {
|
|
103
|
+
default: o(() => [
|
|
104
|
+
t(b, {
|
|
105
|
+
modelValue: s(e).user.email,
|
|
106
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => s(e).user.email = r),
|
|
107
|
+
readonly: ""
|
|
108
|
+
}, null, 8, ["modelValue"])
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}, 8, ["label"]),
|
|
112
|
+
le("div", re, [
|
|
113
|
+
(c(!0), k(N, null, $(s(e).user.userJobs, (r, d) => (c(), h(A, {
|
|
114
|
+
key: d,
|
|
115
|
+
style: { width: "100%" }
|
|
116
|
+
}, {
|
|
117
|
+
default: o(() => [
|
|
118
|
+
t(f, { span: 12 }, {
|
|
119
|
+
default: o(() => [
|
|
120
|
+
t(u, {
|
|
121
|
+
label: l.$t("sysUser.department"),
|
|
122
|
+
prop: `userJobs.${d}.deptId`
|
|
123
|
+
}, {
|
|
124
|
+
default: o(() => [
|
|
125
|
+
t(g, {
|
|
126
|
+
modelValue: s(e).user.userJobs[d].deptId,
|
|
127
|
+
"onUpdate:modelValue": (_) => s(e).user.userJobs[d].deptId = _,
|
|
128
|
+
data: i.value,
|
|
129
|
+
"render-after-expand": !1,
|
|
130
|
+
filterable: "",
|
|
131
|
+
"check-strictly": "",
|
|
132
|
+
placeholder: l.$t("sysUser.departmentRequired"),
|
|
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
|
+
t(f, { span: 11 }, {
|
|
142
|
+
default: o(() => [
|
|
143
|
+
t(u, {
|
|
144
|
+
label: l.$t("sysUser.position"),
|
|
145
|
+
prop: `userJobs.${d}.jobId`
|
|
146
|
+
}, {
|
|
147
|
+
default: o(() => [
|
|
148
|
+
t(g, {
|
|
149
|
+
modelValue: s(e).user.userJobs[d].jobId,
|
|
150
|
+
"onUpdate:modelValue": (_) => s(e).user.userJobs[d].jobId = _,
|
|
151
|
+
data: v.value,
|
|
152
|
+
"render-after-expand": !1,
|
|
153
|
+
filterable: "",
|
|
154
|
+
"check-strictly": "",
|
|
155
|
+
placeholder: l.$t("sysUser.positionRequired"),
|
|
156
|
+
style: { width: "100%" }
|
|
157
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
158
|
+
]),
|
|
159
|
+
_: 2
|
|
160
|
+
}, 1032, ["label", "prop"])
|
|
161
|
+
]),
|
|
162
|
+
_: 2
|
|
163
|
+
}, 1024),
|
|
164
|
+
d == 0 ? (c(), h(f, {
|
|
165
|
+
key: 0,
|
|
166
|
+
span: 1,
|
|
167
|
+
class: "position-center"
|
|
168
|
+
}, {
|
|
169
|
+
default: o(() => [
|
|
170
|
+
t(I, {
|
|
171
|
+
size: "16",
|
|
172
|
+
onClick: E
|
|
173
|
+
}, {
|
|
174
|
+
default: o(() => [
|
|
175
|
+
t(q)
|
|
176
|
+
]),
|
|
177
|
+
_: 1
|
|
178
|
+
})
|
|
179
|
+
]),
|
|
180
|
+
_: 1
|
|
181
|
+
})) : J("", !0),
|
|
182
|
+
d !== 0 ? (c(), h(f, {
|
|
183
|
+
key: 1,
|
|
184
|
+
span: 1,
|
|
185
|
+
class: "position-center"
|
|
186
|
+
}, {
|
|
187
|
+
default: o(() => [
|
|
188
|
+
t(I, {
|
|
189
|
+
size: "16",
|
|
190
|
+
onClick: (_) => C(d)
|
|
191
|
+
}, {
|
|
192
|
+
default: o(() => [
|
|
193
|
+
t(Y)
|
|
194
|
+
]),
|
|
195
|
+
_: 2
|
|
196
|
+
}, 1032, ["onClick"])
|
|
197
|
+
]),
|
|
198
|
+
_: 2
|
|
199
|
+
}, 1024)) : J("", !0)
|
|
200
|
+
]),
|
|
201
|
+
_: 2
|
|
202
|
+
}, 1024))), 128))
|
|
203
|
+
]),
|
|
204
|
+
t(u, {
|
|
205
|
+
label: l.$t("sysUser.nickname"),
|
|
206
|
+
prop: "nickName"
|
|
207
|
+
}, {
|
|
208
|
+
default: o(() => [
|
|
209
|
+
t(b, {
|
|
210
|
+
modelValue: s(e).user.nickName,
|
|
211
|
+
"onUpdate:modelValue": a[2] || (a[2] = (r) => s(e).user.nickName = r),
|
|
212
|
+
clearable: "",
|
|
213
|
+
placeholder: l.$t("sysUser.nicknameRequired")
|
|
214
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
215
|
+
]),
|
|
216
|
+
_: 1
|
|
217
|
+
}, 8, ["label"]),
|
|
218
|
+
t(u, {
|
|
219
|
+
label: l.$t("sysUser.fullName"),
|
|
220
|
+
prop: "realName"
|
|
221
|
+
}, {
|
|
222
|
+
default: o(() => [
|
|
223
|
+
t(b, {
|
|
224
|
+
modelValue: s(e).user.realName,
|
|
225
|
+
"onUpdate:modelValue": a[3] || (a[3] = (r) => s(e).user.realName = r),
|
|
226
|
+
clearable: "",
|
|
227
|
+
placeholder: l.$t("sysUser.fullNameRequired")
|
|
228
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
229
|
+
]),
|
|
230
|
+
_: 1
|
|
231
|
+
}, 8, ["label"]),
|
|
232
|
+
t(u, {
|
|
233
|
+
label: l.$t("sysUser.gender"),
|
|
234
|
+
prop: "gender"
|
|
235
|
+
}, {
|
|
236
|
+
default: o(() => [
|
|
237
|
+
t(O, {
|
|
238
|
+
modelValue: s(e).user.gender,
|
|
239
|
+
"onUpdate:modelValue": a[4] || (a[4] = (r) => s(e).user.gender = r),
|
|
240
|
+
placeholder: l.$t("sysUser.genderRequired"),
|
|
241
|
+
clearable: ""
|
|
242
|
+
}, {
|
|
243
|
+
default: o(() => [
|
|
244
|
+
(c(!0), k(N, null, $(s(D).genderEnum.values, (r) => (c(), h(G, {
|
|
245
|
+
key: r.key,
|
|
246
|
+
label: r.value,
|
|
247
|
+
value: r.key
|
|
248
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}, 8, ["modelValue", "placeholder"])
|
|
252
|
+
]),
|
|
253
|
+
_: 1
|
|
254
|
+
}, 8, ["label"]),
|
|
255
|
+
t(u, {
|
|
256
|
+
label: l.$t("sysUser.birthday"),
|
|
257
|
+
prop: "birthDate"
|
|
258
|
+
}, {
|
|
259
|
+
default: o(() => [
|
|
260
|
+
t(S, {
|
|
261
|
+
modelValue: s(e).user.birthDate,
|
|
262
|
+
"onUpdate:modelValue": a[5] || (a[5] = (r) => s(e).user.birthDate = r),
|
|
263
|
+
type: "date",
|
|
264
|
+
placeholder: l.$t("sysUser.birthdayRequired"),
|
|
265
|
+
format: "YYYY-MM-DD",
|
|
266
|
+
"value-format": "YYYY-MM-DD",
|
|
267
|
+
style: { width: "100%" }
|
|
268
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
269
|
+
]),
|
|
270
|
+
_: 1
|
|
271
|
+
}, 8, ["label"]),
|
|
272
|
+
t(u, null, {
|
|
273
|
+
default: o(() => [
|
|
274
|
+
t(B, {
|
|
275
|
+
type: "primary",
|
|
276
|
+
onClick: j
|
|
277
|
+
}, {
|
|
278
|
+
default: o(() => [
|
|
279
|
+
te(se(l.$t("common.save")), 1)
|
|
280
|
+
]),
|
|
281
|
+
_: 1
|
|
282
|
+
})
|
|
283
|
+
]),
|
|
284
|
+
_: 1
|
|
285
|
+
})
|
|
286
|
+
]),
|
|
287
|
+
_: 1
|
|
288
|
+
}, 8, ["mode"])
|
|
289
|
+
]);
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
}), ie = /* @__PURE__ */ Z(ne, [["__scopeId", "data-v-13a8a785"]]);
|
|
293
|
+
export {
|
|
294
|
+
ie as default
|
|
295
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { b as s,
|
|
1
|
+
import { b as s, J as x, g as T, K as U, E as V, _ as B, L as P } from "./index-DvLk7qST.mjs";
|
|
2
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
|
|
3
|
+
const L = {
|
|
4
4
|
key: 0,
|
|
5
5
|
class: "distance-left"
|
|
6
|
-
},
|
|
6
|
+
}, J = ["onClick"], W = /* @__PURE__ */ M({
|
|
7
7
|
__name: "runAs",
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: { type: Boolean },
|
|
@@ -100,7 +100,7 @@ const J = {
|
|
|
100
100
|
}, {
|
|
101
101
|
mobilePhone: a((e) => [
|
|
102
102
|
c(n(e.data.row.showEncrypt ? e.data.row.mobilePhone : e.data.row.mobilePhoneIns) + " ", 1),
|
|
103
|
-
e.data.row.mobilePhoneIns ? (m(), y("span",
|
|
103
|
+
e.data.row.mobilePhoneIns ? (m(), y("span", L, [
|
|
104
104
|
f(d(h, {
|
|
105
105
|
"icon-class": "close-eye",
|
|
106
106
|
onClick: (b) => w(e.data.row)
|
|
@@ -126,7 +126,7 @@ const J = {
|
|
|
126
126
|
key: 0,
|
|
127
127
|
class: "el-button-color",
|
|
128
128
|
onClick: (b) => I(e.data.row)
|
|
129
|
-
}, " 切换 ", 8,
|
|
129
|
+
}, " 切换 ", 8, J)) : C("", !0)
|
|
130
130
|
]),
|
|
131
131
|
_: 1
|
|
132
132
|
}, 8, ["list-loading", "data", "table-label"])
|