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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as I, createElementBlock as y, createElementVNode as p, defineComponent as B, ref as V, reactive as u, resolveComponent as r, Fragment as D, createVNode as e, withCtx as l, createTextVNode as _, toDisplayString as h } from "vue";
|
|
2
|
-
import { v as E, b as w, w as N, x as q, y as R } from "./index-
|
|
2
|
+
import { v as E, b as w, w as N, x as q, y as R } from "./index-DvLk7qST.mjs";
|
|
3
3
|
const S = {
|
|
4
4
|
viewBox: "0 0 1024 1024",
|
|
5
5
|
width: "1.2em",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { defineComponent as q, ref as v, toRefs as E, reactive as V, resolveComponent as i, openBlock as O, createBlock as A, unref as t, isRef as U, withCtx as n, createElementVNode as z, createVNode as r, createTextVNode as g, toDisplayString as _ } from "vue";
|
|
2
2
|
import { ElMessage as B } from "element-plus";
|
|
3
|
-
import { z as b,
|
|
3
|
+
import { z as b, M as D } from "./index-DvLk7qST.mjs";
|
|
4
4
|
import { useI18n as I } from "vue-i18n";
|
|
5
|
-
const S = { class: "dialog-footer" },
|
|
5
|
+
const S = { class: "dialog-footer" }, G = /* @__PURE__ */ q({
|
|
6
6
|
__name: "updatePwd",
|
|
7
7
|
props: {
|
|
8
8
|
pwdVisible: {
|
|
@@ -142,5 +142,5 @@ const S = { class: "dialog-footer" }, k = /* @__PURE__ */ q({
|
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
export {
|
|
145
|
-
|
|
145
|
+
G as _
|
|
146
146
|
};
|
package/package.json
CHANGED
package/dist/index-CTvdAMPx.mjs
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, ref as x, resolveComponent as _, openBlock as i, createElementBlock as l, createElementVNode as a, Fragment as k, renderList as C, unref as u, toDisplayString as S, createVNode as p, withCtx as w, pushScopeId as I, popScopeId as b } from "vue";
|
|
2
|
-
import { b as g, p as B, f as R, i as q } from "./index-B8mVGQXm.mjs";
|
|
3
|
-
import { useRoute as A, useRouter as L } from "vue-router";
|
|
4
|
-
const N = (o) => (I("data-v-ca869b8f"), o = o(), b(), o), O = { class: "organ-container" }, U = /* @__PURE__ */ N(() => /* @__PURE__ */ a("h1", null, "请选择一个组织进入", -1)), E = { class: "organ-content" }, V = ["onClick"], j = ["src"], D = { style: { "margin-right": "auto" } }, F = /* @__PURE__ */ y({
|
|
5
|
-
__name: "index",
|
|
6
|
-
setup(o) {
|
|
7
|
-
const h = A(), m = L(), f = g(), d = x([]);
|
|
8
|
-
B().then((t) => {
|
|
9
|
-
d.value = t.data.results;
|
|
10
|
-
});
|
|
11
|
-
const v = (t) => {
|
|
12
|
-
f.loginOrgan(t.tenant).then(() => {
|
|
13
|
-
g().user.tenant = t.tenant;
|
|
14
|
-
const n = h.query, c = n.redirect ?? "/", r = Object.keys(n).reduce((e, s) => (s !== "redirect" && (e[s] = n[s]), e), {});
|
|
15
|
-
r.tenant = t.tenant, m.push({ path: c, query: r });
|
|
16
|
-
});
|
|
17
|
-
};
|
|
18
|
-
return (t, n) => {
|
|
19
|
-
const c = _("ArrowRightBold"), r = _("el-icon");
|
|
20
|
-
return i(), l("div", O, [
|
|
21
|
-
U,
|
|
22
|
-
a("div", E, [
|
|
23
|
-
(i(!0), l(k, null, C(u(d), (e) => (i(), l("div", {
|
|
24
|
-
class: "organ-content_item",
|
|
25
|
-
key: e.organId,
|
|
26
|
-
onClick: (s) => v(e)
|
|
27
|
-
}, [
|
|
28
|
-
a("img", {
|
|
29
|
-
src: u(R).imageUrl(e.logoUrl || "/wxapp/images/user/avatar.png", 60, 60),
|
|
30
|
-
alt: "logo"
|
|
31
|
-
}, null, 8, j),
|
|
32
|
-
a("div", D, S(e.organName), 1),
|
|
33
|
-
p(r, null, {
|
|
34
|
-
default: w(() => [
|
|
35
|
-
p(c)
|
|
36
|
-
]),
|
|
37
|
-
_: 1
|
|
38
|
-
})
|
|
39
|
-
], 8, V))), 128))
|
|
40
|
-
])
|
|
41
|
-
]);
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
}), z = /* @__PURE__ */ q(F, [["__scopeId", "data-v-ca869b8f"]]);
|
|
45
|
-
export {
|
|
46
|
-
z as default
|
|
47
|
-
};
|
|
@@ -1,267 +0,0 @@
|
|
|
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-B8mVGQXm.mjs";
|
|
3
|
-
import { ElMessage as Q } from "element-plus";
|
|
4
|
-
const W = { class: "app-container" }, X = { class: "positon_name" }, Z = /* @__PURE__ */ S({
|
|
5
|
-
__name: "profile",
|
|
6
|
-
setup(x) {
|
|
7
|
-
const $ = c(), y = c(), h = c();
|
|
8
|
-
let l = E({
|
|
9
|
-
user: {
|
|
10
|
-
tenant: G().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 g() {
|
|
22
|
-
L().then(({ data: e }) => {
|
|
23
|
-
var r;
|
|
24
|
-
l.user = Object.assign(l.user, { ...e }), ((r = l.user.userJobs) == null ? void 0 : r.length) === 0 && (l.user.userJobs = [
|
|
25
|
-
{
|
|
26
|
-
deptId: "",
|
|
27
|
-
jobId: ""
|
|
28
|
-
}
|
|
29
|
-
]);
|
|
30
|
-
}), O().then(({ data: e }) => {
|
|
31
|
-
y.value = e.results;
|
|
32
|
-
}), T().then(({ data: e }) => {
|
|
33
|
-
h.value = e.results;
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
function J() {
|
|
37
|
-
var e;
|
|
38
|
-
l.user.userJobs && l.user.userJobs.length < 5 && ((e = l.user.userJobs) == null || e.push({
|
|
39
|
-
deptId: "",
|
|
40
|
-
jobId: ""
|
|
41
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
function N(e) {
|
|
44
|
-
var r;
|
|
45
|
-
(r = l.user.userJobs) == null || r.splice(e, 1);
|
|
46
|
-
}
|
|
47
|
-
function C(e) {
|
|
48
|
-
l.user.avatar = e;
|
|
49
|
-
}
|
|
50
|
-
const R = () => {
|
|
51
|
-
H(l.user).then((e) => {
|
|
52
|
-
l.user.requestId = Math.random() * 10 + "", e.status === 200 && Q({
|
|
53
|
-
message: "个人信息修改成功",
|
|
54
|
-
type: "success"
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
return g(), (e, r) => {
|
|
59
|
-
const D = a("upload"), n = a("el-form-item"), U = a("el-tree-select"), m = a("el-col"), j = a("CirclePlus"), V = a("el-icon"), q = a("Remove"), w = a("el-row"), k = a("el-input"), M = a("dict-select"), Y = a("el-date-picker"), A = a("el-button"), B = a("el-form");
|
|
60
|
-
return p(), I("div", W, [
|
|
61
|
-
t(B, {
|
|
62
|
-
ref_key: "userInfoRef",
|
|
63
|
-
ref: $,
|
|
64
|
-
mode: o(l).user,
|
|
65
|
-
"label-width": "80px"
|
|
66
|
-
}, {
|
|
67
|
-
default: s(() => [
|
|
68
|
-
t(n, null, {
|
|
69
|
-
default: s(() => [
|
|
70
|
-
t(D, {
|
|
71
|
-
"picture-url": o(l).user.avatar,
|
|
72
|
-
onImageSrc: C
|
|
73
|
-
}, null, 8, ["picture-url"])
|
|
74
|
-
]),
|
|
75
|
-
_: 1
|
|
76
|
-
}),
|
|
77
|
-
t(n, {
|
|
78
|
-
label: e.$t("sysUser.phoneNumber")
|
|
79
|
-
}, {
|
|
80
|
-
default: s(() => [
|
|
81
|
-
f("span", null, b(o(l).user.mobilePhone), 1)
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}, 8, ["label"]),
|
|
85
|
-
t(n, {
|
|
86
|
-
label: e.$t("sysUser.email")
|
|
87
|
-
}, {
|
|
88
|
-
default: s(() => [
|
|
89
|
-
f("span", null, b(o(l).user.email), 1)
|
|
90
|
-
]),
|
|
91
|
-
_: 1
|
|
92
|
-
}, 8, ["label"]),
|
|
93
|
-
f("div", X, [
|
|
94
|
-
(p(!0), I(F, null, P(o(l).user.userJobs, (d, u) => (p(), _(w, {
|
|
95
|
-
key: u,
|
|
96
|
-
style: { width: "100%" }
|
|
97
|
-
}, {
|
|
98
|
-
default: s(() => [
|
|
99
|
-
t(m, { span: 12 }, {
|
|
100
|
-
default: s(() => [
|
|
101
|
-
t(n, {
|
|
102
|
-
label: e.$t("sysUser.department"),
|
|
103
|
-
prop: `userJobs.${u}.deptId`
|
|
104
|
-
}, {
|
|
105
|
-
default: s(() => [
|
|
106
|
-
t(U, {
|
|
107
|
-
modelValue: o(l).user.userJobs[u].deptId,
|
|
108
|
-
"onUpdate:modelValue": (i) => o(l).user.userJobs[u].deptId = i,
|
|
109
|
-
data: y.value,
|
|
110
|
-
"render-after-expand": !1,
|
|
111
|
-
filterable: "",
|
|
112
|
-
"check-strictly": "",
|
|
113
|
-
placeholder: e.$t("sysUser.departmentRequired"),
|
|
114
|
-
style: { width: "100%" }
|
|
115
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
116
|
-
]),
|
|
117
|
-
_: 2
|
|
118
|
-
}, 1032, ["label", "prop"])
|
|
119
|
-
]),
|
|
120
|
-
_: 2
|
|
121
|
-
}, 1024),
|
|
122
|
-
t(m, { span: 11 }, {
|
|
123
|
-
default: s(() => [
|
|
124
|
-
t(n, {
|
|
125
|
-
label: e.$t("sysUser.position"),
|
|
126
|
-
prop: `userJobs.${u}.jobId`
|
|
127
|
-
}, {
|
|
128
|
-
default: s(() => [
|
|
129
|
-
t(U, {
|
|
130
|
-
modelValue: o(l).user.userJobs[u].jobId,
|
|
131
|
-
"onUpdate:modelValue": (i) => o(l).user.userJobs[u].jobId = i,
|
|
132
|
-
data: h.value,
|
|
133
|
-
"render-after-expand": !1,
|
|
134
|
-
filterable: "",
|
|
135
|
-
"check-strictly": "",
|
|
136
|
-
placeholder: e.$t("sysUser.positionRequired"),
|
|
137
|
-
style: { width: "100%" }
|
|
138
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
|
|
139
|
-
]),
|
|
140
|
-
_: 2
|
|
141
|
-
}, 1032, ["label", "prop"])
|
|
142
|
-
]),
|
|
143
|
-
_: 2
|
|
144
|
-
}, 1024),
|
|
145
|
-
u == 0 ? (p(), _(m, {
|
|
146
|
-
key: 0,
|
|
147
|
-
span: 1,
|
|
148
|
-
class: "position-center"
|
|
149
|
-
}, {
|
|
150
|
-
default: s(() => [
|
|
151
|
-
t(V, {
|
|
152
|
-
size: "16",
|
|
153
|
-
onClick: J
|
|
154
|
-
}, {
|
|
155
|
-
default: s(() => [
|
|
156
|
-
t(j)
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
})
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
})) : v("", !0),
|
|
163
|
-
u !== 0 ? (p(), _(m, {
|
|
164
|
-
key: 1,
|
|
165
|
-
span: 1,
|
|
166
|
-
class: "position-center"
|
|
167
|
-
}, {
|
|
168
|
-
default: s(() => [
|
|
169
|
-
t(V, {
|
|
170
|
-
size: "16",
|
|
171
|
-
onClick: (i) => N(u)
|
|
172
|
-
}, {
|
|
173
|
-
default: s(() => [
|
|
174
|
-
t(q)
|
|
175
|
-
]),
|
|
176
|
-
_: 2
|
|
177
|
-
}, 1032, ["onClick"])
|
|
178
|
-
]),
|
|
179
|
-
_: 2
|
|
180
|
-
}, 1024)) : v("", !0)
|
|
181
|
-
]),
|
|
182
|
-
_: 2
|
|
183
|
-
}, 1024))), 128))
|
|
184
|
-
]),
|
|
185
|
-
t(n, {
|
|
186
|
-
label: e.$t("sysUser.nickname"),
|
|
187
|
-
prop: "nickName"
|
|
188
|
-
}, {
|
|
189
|
-
default: s(() => [
|
|
190
|
-
t(k, {
|
|
191
|
-
modelValue: o(l).user.nickName,
|
|
192
|
-
"onUpdate:modelValue": r[0] || (r[0] = (d) => o(l).user.nickName = d),
|
|
193
|
-
clearable: "",
|
|
194
|
-
placeholder: e.$t("sysUser.nicknameRequired")
|
|
195
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}, 8, ["label"]),
|
|
199
|
-
t(n, {
|
|
200
|
-
label: e.$t("sysUser.fullName"),
|
|
201
|
-
prop: "realName"
|
|
202
|
-
}, {
|
|
203
|
-
default: s(() => [
|
|
204
|
-
t(k, {
|
|
205
|
-
modelValue: o(l).user.realName,
|
|
206
|
-
"onUpdate:modelValue": r[1] || (r[1] = (d) => o(l).user.realName = d),
|
|
207
|
-
clearable: "",
|
|
208
|
-
placeholder: e.$t("sysUser.fullNameRequired")
|
|
209
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
210
|
-
]),
|
|
211
|
-
_: 1
|
|
212
|
-
}, 8, ["label"]),
|
|
213
|
-
t(n, {
|
|
214
|
-
label: e.$t("sysUser.gender"),
|
|
215
|
-
prop: "gender"
|
|
216
|
-
}, {
|
|
217
|
-
default: s(() => [
|
|
218
|
-
t(M, {
|
|
219
|
-
modelValue: o(l).user.gender,
|
|
220
|
-
"onUpdate:modelValue": r[2] || (r[2] = (d) => o(l).user.gender = d),
|
|
221
|
-
placeholder: e.$t("sysUser.genderRequired"),
|
|
222
|
-
"dict-type": "jmash.protobuf.Gender"
|
|
223
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
224
|
-
]),
|
|
225
|
-
_: 1
|
|
226
|
-
}, 8, ["label"]),
|
|
227
|
-
t(n, {
|
|
228
|
-
label: e.$t("sysUser.birthday"),
|
|
229
|
-
prop: "birthDate"
|
|
230
|
-
}, {
|
|
231
|
-
default: s(() => [
|
|
232
|
-
t(Y, {
|
|
233
|
-
modelValue: o(l).user.birthDate,
|
|
234
|
-
"onUpdate:modelValue": r[3] || (r[3] = (d) => o(l).user.birthDate = d),
|
|
235
|
-
type: "date",
|
|
236
|
-
placeholder: e.$t("sysUser.birthdayRequired"),
|
|
237
|
-
format: "YYYY-MM-DD",
|
|
238
|
-
"value-format": "YYYY-MM-DD",
|
|
239
|
-
style: { width: "100%" }
|
|
240
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
241
|
-
]),
|
|
242
|
-
_: 1
|
|
243
|
-
}, 8, ["label"]),
|
|
244
|
-
t(n, null, {
|
|
245
|
-
default: s(() => [
|
|
246
|
-
t(A, {
|
|
247
|
-
type: "primary",
|
|
248
|
-
onClick: R
|
|
249
|
-
}, {
|
|
250
|
-
default: s(() => [
|
|
251
|
-
z(b(e.$t("common.save")), 1)
|
|
252
|
-
]),
|
|
253
|
-
_: 1
|
|
254
|
-
})
|
|
255
|
-
]),
|
|
256
|
-
_: 1
|
|
257
|
-
})
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
}, 8, ["mode"])
|
|
261
|
-
]);
|
|
262
|
-
};
|
|
263
|
-
}
|
|
264
|
-
}), se = /* @__PURE__ */ K(Z, [["__scopeId", "data-v-17cc8a64"]]);
|
|
265
|
-
export {
|
|
266
|
-
se as default
|
|
267
|
-
};
|