jmash-core 0.0.89 → 0.0.90
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-bysnhRtp.mjs → 401-De9mP7Yk.mjs} +1 -1
- package/dist/{404-B6JVGiCR.mjs → 404-CsdxMddD.mjs} +1 -1
- package/dist/{BarChart-DaGVsQ-7.mjs → BarChart-BrlyPjXb.mjs} +1 -1
- package/dist/{index-Ds4laZTY.mjs → index-BxK8KQey.mjs} +2121 -2482
- package/dist/{index-w_NaQ32r.mjs → index-CD43LdYi.mjs} +3 -3
- package/dist/{index-qKkQ6w5L.mjs → index-DnOj3sMS.mjs} +2 -2
- package/dist/{index-DxdLsWYU.mjs → index-nztylvrR.mjs} +1 -1
- package/dist/index.mjs +1 -1
- package/dist/profile-DGSkePdq.mjs +267 -0
- package/dist/{runAs-CYux7-PA.mjs → runAs-DBb4uETd.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-R5e3AM7f.mjs → runAs.vue_vue_type_script_setup_true_lang-D-O5dEPi.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{types-Dtq0zhI7.mjs → types-CwswGwIW.mjs} +1 -1
- package/dist/{updatePwd-ewro8M-u.mjs → updatePwd-DZ2sqiVQ.mjs} +1 -1
- package/dist/updatePwd.vue_vue_type_script_setup_true_lang-CAQikZRT.mjs +146 -0
- package/dts/src/lang/package/en.d.ts +2 -166
- package/dts/src/lang/package/zh-cn.d.ts +2 -182
- package/package.json +1 -1
- package/dist/profile-DJPmWCbo.mjs +0 -263
- package/dist/updatePwd.vue_vue_type_script_setup_true_lang-seFUNDDK.mjs +0 -145
|
@@ -1,263 +0,0 @@
|
|
|
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-Ds4laZTY.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-75d8e25d"]]);
|
|
261
|
-
export {
|
|
262
|
-
ae as default
|
|
263
|
-
};
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { defineComponent as E, ref as h, toRefs as O, reactive as P, resolveComponent as i, openBlock as x, createBlock as A, unref as r, isRef as R, withCtx as n, createElementVNode as U, createVNode as t, createTextVNode as _ } from "vue";
|
|
2
|
-
import { ElMessage as q } from "element-plus";
|
|
3
|
-
import { y as V, aD as B } from "./index-Ds4laZTY.mjs";
|
|
4
|
-
const D = { class: "dialog-footer" }, Z = /* @__PURE__ */ E({
|
|
5
|
-
__name: "updatePwd",
|
|
6
|
-
props: {
|
|
7
|
-
pwdVisible: {
|
|
8
|
-
type: Boolean,
|
|
9
|
-
default: !1
|
|
10
|
-
}
|
|
11
|
-
},
|
|
12
|
-
emits: ["dialogActionChange"],
|
|
13
|
-
setup(g, { emit: y }) {
|
|
14
|
-
const w = h(), N = g, { pwdVisible: u } = O(N), m = y;
|
|
15
|
-
let l = P({
|
|
16
|
-
encodeOldPwd: "",
|
|
17
|
-
encodeNewPwd: "",
|
|
18
|
-
confirmPwd: ""
|
|
19
|
-
});
|
|
20
|
-
const b = P({
|
|
21
|
-
encodeOldPwd: [{ required: !0, validator: (d, e, o) => {
|
|
22
|
-
e === "" ? o(new Error("请输入旧密码")) : o();
|
|
23
|
-
}, trigger: "blur" }],
|
|
24
|
-
encodeNewPwd: [{ required: !0, validator: (d, e, o) => {
|
|
25
|
-
e === "" ? o(new Error("请输入新密码")) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(e) ? o() : o(new Error("请输入8-20位包含数字,大小写字母,特殊符号的密码"));
|
|
26
|
-
}, trigger: "blur" }],
|
|
27
|
-
confirmPwd: [{ required: !0, validator: (d, e, o) => {
|
|
28
|
-
e === "" ? o(new Error("请再一次输入新密码")) : e !== l.encodeNewPwd ? o(new Error("两次密码不一致")) : o();
|
|
29
|
-
}, trigger: "blur" }]
|
|
30
|
-
}), C = async () => {
|
|
31
|
-
var d;
|
|
32
|
-
await ((d = w.value) == null ? void 0 : d.validate((e) => {
|
|
33
|
-
if (e) {
|
|
34
|
-
let o = V(l.encodeOldPwd), s = V(l.encodeNewPwd);
|
|
35
|
-
B(o, s).then((p) => {
|
|
36
|
-
p.status === 200 && (q({
|
|
37
|
-
message: "密码修改成功",
|
|
38
|
-
type: "success"
|
|
39
|
-
}), m("dialogActionChange", !1));
|
|
40
|
-
});
|
|
41
|
-
} else
|
|
42
|
-
return Promise.reject();
|
|
43
|
-
}));
|
|
44
|
-
};
|
|
45
|
-
function c() {
|
|
46
|
-
var d;
|
|
47
|
-
(d = w.value) == null || d.resetFields(), m("dialogActionChange", !1);
|
|
48
|
-
}
|
|
49
|
-
return (d, e) => {
|
|
50
|
-
const o = i("el-input"), s = i("el-form-item"), p = i("el-form"), f = i("el-button"), v = i("el-dialog");
|
|
51
|
-
return x(), A(v, {
|
|
52
|
-
title: "修改密码",
|
|
53
|
-
modelValue: r(u),
|
|
54
|
-
"onUpdate:modelValue": e[3] || (e[3] = (a) => R(u) ? u.value = a : null),
|
|
55
|
-
width: "500px",
|
|
56
|
-
onClose: c
|
|
57
|
-
}, {
|
|
58
|
-
footer: n(() => [
|
|
59
|
-
U("div", D, [
|
|
60
|
-
t(f, { onClick: c }, {
|
|
61
|
-
default: n(() => [
|
|
62
|
-
_("取消")
|
|
63
|
-
]),
|
|
64
|
-
_: 1
|
|
65
|
-
}),
|
|
66
|
-
t(f, {
|
|
67
|
-
type: "primary",
|
|
68
|
-
onClick: C
|
|
69
|
-
}, {
|
|
70
|
-
default: n(() => [
|
|
71
|
-
_("确认")
|
|
72
|
-
]),
|
|
73
|
-
_: 1
|
|
74
|
-
})
|
|
75
|
-
])
|
|
76
|
-
]),
|
|
77
|
-
default: n(() => [
|
|
78
|
-
t(p, {
|
|
79
|
-
ref_key: "pwdRef",
|
|
80
|
-
ref: w,
|
|
81
|
-
model: r(l),
|
|
82
|
-
"label-width": "80px",
|
|
83
|
-
rules: b
|
|
84
|
-
}, {
|
|
85
|
-
default: n(() => [
|
|
86
|
-
t(s, {
|
|
87
|
-
label: "旧密码",
|
|
88
|
-
prop: "encodeOldPwd"
|
|
89
|
-
}, {
|
|
90
|
-
default: n(() => [
|
|
91
|
-
t(o, {
|
|
92
|
-
type: "password",
|
|
93
|
-
modelValue: r(l).encodeOldPwd,
|
|
94
|
-
"onUpdate:modelValue": e[0] || (e[0] = (a) => r(l).encodeOldPwd = a),
|
|
95
|
-
placeholder: "请输入旧密码",
|
|
96
|
-
"show-password": "",
|
|
97
|
-
clearable: ""
|
|
98
|
-
}, null, 8, ["modelValue"])
|
|
99
|
-
]),
|
|
100
|
-
_: 1
|
|
101
|
-
}),
|
|
102
|
-
t(s, {
|
|
103
|
-
label: "新密码",
|
|
104
|
-
prop: "encodeNewPwd"
|
|
105
|
-
}, {
|
|
106
|
-
default: n(() => [
|
|
107
|
-
t(o, {
|
|
108
|
-
type: "password",
|
|
109
|
-
modelValue: r(l).encodeNewPwd,
|
|
110
|
-
"onUpdate:modelValue": e[1] || (e[1] = (a) => r(l).encodeNewPwd = a),
|
|
111
|
-
placeholder: "请输入新密码",
|
|
112
|
-
"show-password": "",
|
|
113
|
-
clearable: ""
|
|
114
|
-
}, null, 8, ["modelValue"])
|
|
115
|
-
]),
|
|
116
|
-
_: 1
|
|
117
|
-
}),
|
|
118
|
-
t(s, {
|
|
119
|
-
label: "确认密码",
|
|
120
|
-
prop: "confirmPwd"
|
|
121
|
-
}, {
|
|
122
|
-
default: n(() => [
|
|
123
|
-
t(o, {
|
|
124
|
-
type: "password",
|
|
125
|
-
modelValue: r(l).confirmPwd,
|
|
126
|
-
"onUpdate:modelValue": e[2] || (e[2] = (a) => r(l).confirmPwd = a),
|
|
127
|
-
placeholder: "请再一次输入新密码",
|
|
128
|
-
"show-password": "",
|
|
129
|
-
clearable: ""
|
|
130
|
-
}, null, 8, ["modelValue"])
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
})
|
|
134
|
-
]),
|
|
135
|
-
_: 1
|
|
136
|
-
}, 8, ["model", "rules"])
|
|
137
|
-
]),
|
|
138
|
-
_: 1
|
|
139
|
-
}, 8, ["modelValue"]);
|
|
140
|
-
};
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
export {
|
|
144
|
-
Z as _
|
|
145
|
-
};
|