jmash-core 0.1.17 → 0.1.18
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-B-xPz9LF.mjs → 401-D6Q94FzV.mjs} +9 -9
- package/dist/{404-D6qLFrds.mjs → 404-DhAbpKMM.mjs} +1 -1
- package/dist/{BarChart-DUGSmZyQ.mjs → BarChart-CRekzHxP.mjs} +1 -1
- package/dist/{index-CZJ3UhUM.mjs → index-1lsWqWL5.mjs} +4 -4
- package/dist/{index-CIsDsOWA.mjs → index-BrR5K1DU.mjs} +2455 -2412
- package/dist/{index-AwPbizZV.mjs → index-CnulSJWc.mjs} +12 -12
- package/dist/{index-DCziYkYK.mjs → index-DP79aUrH.mjs} +10 -10
- package/dist/index-DgZeveji.mjs +2164 -0
- package/dist/index-xCPCjZu8.mjs +463 -0
- package/dist/index.mjs +48 -47
- package/dist/index.vue_vue_type_script_setup_true_lang-Dj7pKP1u.mjs +130 -0
- package/dist/{profile-GQvC9C8o.mjs → profile-rd1rLI2V.mjs} +17 -17
- package/dist/{runAs-Dwg7Iuqd.mjs → runAs-DaaarFVR.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-BtQpSMZg.mjs → runAs.vue_vue_type_script_setup_true_lang-C-1uRJoS.mjs} +138 -138
- package/dist/style.css +1 -1
- package/dist/{types-BuuQJDxb.mjs → types-hlyKOzFS.mjs} +10 -10
- package/dist/{updatePwd-5svDyP7G.mjs → updatePwd-CYG_P7Xc.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-C8rArYsn.mjs → updatePwd.vue_vue_type_script_setup_true_lang-B1eIL13s.mjs} +12 -12
- package/dts/src/api/auth/index.d.ts +2 -1
- package/dts/src/api/auth/types.d.ts +12 -0
- package/dts/src/api/change/index.d.ts +5 -0
- package/dts/src/api/change/types.d.ts +11 -5
- package/dts/src/components/ForgetPwd/index.vue.d.ts +6 -0
- package/dts/src/components/GraphicValidate/index.vue.d.ts +8 -0
- package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +1 -1
- package/dts/src/components/NameValidate/index.vue.d.ts +63 -0
- package/dts/src/index.d.ts +2 -2
- package/dts/src/lang/package/zh-cn.d.ts +36 -1
- package/dts/src/layout/components/NavBar/components/ChangeWechatBind.vue.d.ts +6 -2
- package/dts/src/layout/components/NavBar/components/QrCode.vue.d.ts +18 -0
- package/package.json +1 -1
- package/dist/index-CNS2LvqZ.mjs +0 -244
- package/dist/index-Cb2jBye0.mjs +0 -1817
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { defineComponent as y, ref as i, useModel as u, resolveComponent as p, createElementBlock as g, openBlock as r, createVNode as I, createElementVNode as x, mergeModels as w, createBlock as f, withCtx as h, createTextVNode as v, toDisplayString as _ } from "vue";
|
|
2
|
+
import { z as b, e as k, v as C, a as M, A as E, E as S } from "./index-BrR5K1DU.mjs";
|
|
3
|
+
const A = { class: "flex justify-between items-center w-full" }, P = ["src"], R = /* @__PURE__ */ y({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
captchaId: {},
|
|
7
|
+
captchaIdModifiers: {},
|
|
8
|
+
captchaCode: {},
|
|
9
|
+
captchaCodeModifiers: {}
|
|
10
|
+
},
|
|
11
|
+
emits: ["update:captchaId", "update:captchaCode"],
|
|
12
|
+
setup(l) {
|
|
13
|
+
const n = i(""), a = u(l, "captchaId"), e = u(l, "captchaCode"), o = () => {
|
|
14
|
+
b().then(({ data: c }) => {
|
|
15
|
+
a.value = c.captchaId, n.value = c.base64Image;
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
return o(), (c, t) => {
|
|
19
|
+
const d = p("el-input");
|
|
20
|
+
return r(), g("div", A, [
|
|
21
|
+
I(d, {
|
|
22
|
+
style: { width: "65%" },
|
|
23
|
+
modelValue: e.value,
|
|
24
|
+
"onUpdate:modelValue": t[0] || (t[0] = (s) => e.value = s),
|
|
25
|
+
placeholder: c.$t("register.captchaCode")
|
|
26
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
27
|
+
x("img", {
|
|
28
|
+
class: "flex-1 h-[40px] cursor-pointer ml-2",
|
|
29
|
+
src: n.value,
|
|
30
|
+
onClick: o,
|
|
31
|
+
alt: "验证码"
|
|
32
|
+
}, null, 8, P)
|
|
33
|
+
]);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}), F = /* @__PURE__ */ k(R, [["__scopeId", "data-v-266fcb9d"]]), $ = { class: "flex justify-between items-center w-full" }, T = /* @__PURE__ */ y({
|
|
37
|
+
__name: "index",
|
|
38
|
+
props: /* @__PURE__ */ w({
|
|
39
|
+
name: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
captchaId: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ""
|
|
46
|
+
},
|
|
47
|
+
captchaCode: {
|
|
48
|
+
type: String,
|
|
49
|
+
default: ""
|
|
50
|
+
},
|
|
51
|
+
formRef: {
|
|
52
|
+
type: Object,
|
|
53
|
+
default: null
|
|
54
|
+
},
|
|
55
|
+
placeholder: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: ""
|
|
58
|
+
},
|
|
59
|
+
validateField: {
|
|
60
|
+
type: Array,
|
|
61
|
+
default: []
|
|
62
|
+
}
|
|
63
|
+
}, {
|
|
64
|
+
modelValue: {},
|
|
65
|
+
modelModifiers: {}
|
|
66
|
+
}),
|
|
67
|
+
emits: ["update:modelValue"],
|
|
68
|
+
setup(l) {
|
|
69
|
+
const n = u(l, "modelValue"), a = l, e = i(59), o = i(null), c = () => {
|
|
70
|
+
var t;
|
|
71
|
+
e.value === 59 && ((t = a.formRef) == null || t.validateField(a.validateField, async (d) => {
|
|
72
|
+
if (!d) return;
|
|
73
|
+
const s = {
|
|
74
|
+
name: a.name,
|
|
75
|
+
captchaId: a.captchaId,
|
|
76
|
+
captchaCode: a.captchaCode,
|
|
77
|
+
tenant: M().user.tenant,
|
|
78
|
+
sendValidCode: !0,
|
|
79
|
+
directoryId: C.APP_DIRECTORY_ID,
|
|
80
|
+
product: C.APP_PRODUCT
|
|
81
|
+
};
|
|
82
|
+
await E(s), S.success("验证码发送成功,请注意查收!"), o.value = setInterval(() => {
|
|
83
|
+
if (e.value <= 0 && o.value) {
|
|
84
|
+
clearInterval(o.value), e.value = 59;
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
e.value--;
|
|
88
|
+
}, 1e3);
|
|
89
|
+
}));
|
|
90
|
+
};
|
|
91
|
+
return (t, d) => {
|
|
92
|
+
const s = p("el-input"), m = p("el-button");
|
|
93
|
+
return r(), g("div", $, [
|
|
94
|
+
I(s, {
|
|
95
|
+
style: { width: "65%" },
|
|
96
|
+
modelValue: n.value,
|
|
97
|
+
"onUpdate:modelValue": d[0] || (d[0] = (V) => n.value = V),
|
|
98
|
+
placeholder: l.placeholder,
|
|
99
|
+
"show-word-limit": "",
|
|
100
|
+
clearable: ""
|
|
101
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
102
|
+
e.value !== 59 ? (r(), f(m, {
|
|
103
|
+
key: 0,
|
|
104
|
+
class: "flex-1 h-[40px] cursor-pointer",
|
|
105
|
+
type: "info",
|
|
106
|
+
disabled: ""
|
|
107
|
+
}, {
|
|
108
|
+
default: h(() => [
|
|
109
|
+
v(_(t.$t("register.validCodeTime", { time: e.value })), 1)
|
|
110
|
+
]),
|
|
111
|
+
_: 1
|
|
112
|
+
})) : (r(), f(m, {
|
|
113
|
+
key: 1,
|
|
114
|
+
class: "flex-1 h-[40px] cursor-pointer ml-2",
|
|
115
|
+
type: "primary",
|
|
116
|
+
onClick: c
|
|
117
|
+
}, {
|
|
118
|
+
default: h(() => [
|
|
119
|
+
v(_(t.$t("register.getValidCode")), 1)
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
}))
|
|
123
|
+
]);
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
});
|
|
127
|
+
export {
|
|
128
|
+
F as _,
|
|
129
|
+
T as a
|
|
130
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var y = (m, p, i) =>
|
|
4
|
-
import {
|
|
1
|
+
var B = Object.defineProperty;
|
|
2
|
+
var z = (m, p, i) => p in m ? B(m, p, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[p] = i;
|
|
3
|
+
var y = (m, p, i) => z(m, typeof p != "symbol" ? p + "" : p, i);
|
|
4
|
+
import { G as F, a as H, H as K, I as T, J as Q, K as W, L as X, e as Z } from "./index-BrR5K1DU.mjs";
|
|
5
5
|
import { defineComponent as x, ref as V, reactive as ee, resolveComponent as n, createElementBlock as k, openBlock as c, createVNode as t, unref as s, withCtx as a, createElementVNode as le, Fragment as $, renderList as N, createBlock as h, createCommentVNode as J, createTextVNode as te, toDisplayString as se } from "vue";
|
|
6
6
|
import { ElMessage as ae } from "element-plus";
|
|
7
7
|
class U {
|
|
@@ -11,7 +11,7 @@ y(U, "MODULE_ORGAN", "rbac"), // 性别
|
|
|
11
11
|
y(U, "GENDER", "jmash.protobuf.Gender");
|
|
12
12
|
class D {
|
|
13
13
|
}
|
|
14
|
-
y(D, "genderEnum", new
|
|
14
|
+
y(D, "genderEnum", new F(U.MODULE_ORGAN, U.GENDER));
|
|
15
15
|
const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @__PURE__ */ x({
|
|
16
16
|
name: "ProfilePage",
|
|
17
17
|
inheritAttrs: !1,
|
|
@@ -32,7 +32,7 @@ const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @
|
|
|
32
32
|
}
|
|
33
33
|
});
|
|
34
34
|
function R() {
|
|
35
|
-
|
|
35
|
+
T().then(({ data: e }) => {
|
|
36
36
|
var o;
|
|
37
37
|
l.user = Object.assign(l.user, { ...e }), ((o = l.user.userJobs) == null ? void 0 : o.length) === 0 && (l.user.userJobs = [
|
|
38
38
|
{
|
|
@@ -53,14 +53,14 @@ const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @
|
|
|
53
53
|
jobId: ""
|
|
54
54
|
}));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function M(e) {
|
|
57
57
|
var o;
|
|
58
58
|
(o = l.user.userJobs) == null || o.splice(e, 1);
|
|
59
59
|
}
|
|
60
|
-
function
|
|
60
|
+
function j(e) {
|
|
61
61
|
l.user.avatar = e;
|
|
62
62
|
}
|
|
63
|
-
const
|
|
63
|
+
const w = () => {
|
|
64
64
|
X(l.user).then((e) => {
|
|
65
65
|
l.user.requestId = Math.random() * 10 + "", e.status === 200 && ae({
|
|
66
66
|
message: "个人信息修改成功",
|
|
@@ -69,9 +69,9 @@ const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @
|
|
|
69
69
|
});
|
|
70
70
|
};
|
|
71
71
|
return R(), (e, o) => {
|
|
72
|
-
const
|
|
72
|
+
const C = K, 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"), P = n("el-select"), O = n("el-date-picker"), S = n("el-button"), L = n("el-form");
|
|
73
73
|
return c(), k("div", oe, [
|
|
74
|
-
t(
|
|
74
|
+
t(L, {
|
|
75
75
|
ref_key: "userInfoRef",
|
|
76
76
|
ref: p,
|
|
77
77
|
mode: s(l).user,
|
|
@@ -82,9 +82,9 @@ const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @
|
|
|
82
82
|
label: e.$t("sysUser.avatar")
|
|
83
83
|
}, {
|
|
84
84
|
default: a(() => [
|
|
85
|
-
t(
|
|
85
|
+
t(C, {
|
|
86
86
|
"picture-url": s(l).user.avatar,
|
|
87
|
-
onImageSrc:
|
|
87
|
+
onImageSrc: j
|
|
88
88
|
}, null, 8, ["picture-url"])
|
|
89
89
|
]),
|
|
90
90
|
_: 1
|
|
@@ -114,7 +114,7 @@ const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @
|
|
|
114
114
|
_: 1
|
|
115
115
|
}, 8, ["label"]),
|
|
116
116
|
le("div", re, [
|
|
117
|
-
(c(!0), k($, null, N(s(l).user.userJobs, (r, d) => (c(), h(
|
|
117
|
+
(c(!0), k($, null, N(s(l).user.userJobs, (r, d) => (c(), h(A, {
|
|
118
118
|
key: d,
|
|
119
119
|
style: { width: "100%" }
|
|
120
120
|
}, {
|
|
@@ -191,10 +191,10 @@ const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @
|
|
|
191
191
|
default: a(() => [
|
|
192
192
|
t(I, {
|
|
193
193
|
size: "16",
|
|
194
|
-
onClick: (_) =>
|
|
194
|
+
onClick: (_) => M(d)
|
|
195
195
|
}, {
|
|
196
196
|
default: a(() => [
|
|
197
|
-
t(
|
|
197
|
+
t(Y)
|
|
198
198
|
]),
|
|
199
199
|
_: 2
|
|
200
200
|
}, 1032, ["onClick"])
|
|
@@ -277,7 +277,7 @@ const oe = { class: "app-container" }, re = { class: "positon_name" }, ne = /* @
|
|
|
277
277
|
default: a(() => [
|
|
278
278
|
t(S, {
|
|
279
279
|
type: "primary",
|
|
280
|
-
onClick:
|
|
280
|
+
onClick: w
|
|
281
281
|
}, {
|
|
282
282
|
default: a(() => [
|
|
283
283
|
te(se(e.$t("common.save")), 1)
|