jmash-core 0.0.97 → 0.0.98
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-gR-a4eWP.mjs → 401-DZyE7zkE.mjs} +1 -1
- package/dist/{404-CvF2Wpf5.mjs → 404-D-pecrPK.mjs} +1 -1
- package/dist/{BarChart--k4pvqvu.mjs → BarChart-Bl3C1G8l.mjs} +8 -8
- package/dist/{index-Bw3IdFvk.mjs → index-B5cWr2iD.mjs} +262 -233
- package/dist/{index-DSalnTBz.mjs → index-C9yqXmWd.mjs} +27 -27
- package/dist/{index-CsnH0_yb.mjs → index-DjJlcy7Y.mjs} +2 -2
- package/dist/{index-ByS03yYq.mjs → index-RyuepZJh.mjs} +454 -456
- package/dist/index.mjs +37 -36
- package/dist/{profile-DB5oJY6F.mjs → profile-CD5r8fxF.mjs} +25 -25
- package/dist/{runAs-BgAqMTuy.mjs → runAs-BZmCojrF.mjs} +1 -1
- package/dist/{runAs.vue_vue_type_script_setup_true_lang-SOwNuXuK.mjs → runAs.vue_vue_type_script_setup_true_lang-CPGfXN02.mjs} +1 -1
- package/dist/style.css +1 -1
- package/dist/{types-4mFLhd4n.mjs → types-XiPq65WD.mjs} +5 -5
- package/dist/{updatePwd-Dr2JoWzO.mjs → updatePwd-Cn-v1tVG.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-sFzRukhN.mjs → updatePwd.vue_vue_type_script_setup_true_lang-BU1ew_Pw.mjs} +17 -17
- package/dts/src/api/sys/index.d.ts +16 -0
- package/dts/src/api/sys/types.d.ts +35 -0
- package/dts/src/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { _ as oe } from "./picture-CBRsHLZl.mjs";
|
|
2
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
3
|
import { useI18n as ge } from "vue-i18n";
|
|
4
|
-
import {
|
|
5
|
-
import { ElForm as
|
|
4
|
+
import { d as D, u as T, n as he, c as fe, _ as ve, S as m, x as we, q as ye, y as ke, z as Ce, r as Ve, h as be } from "./index-B5cWr2iD.mjs";
|
|
5
|
+
import { ElForm as z } from "element-plus";
|
|
6
6
|
import { useRoute as Se } from "vue-router";
|
|
7
|
-
const
|
|
7
|
+
const B = (_) => (me("data-v-6eeae742"), _ = _(), _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" }, qe = { class: "p-2" }, Le = { class: "captcha" }, Ue = { class: "image-slot" }, Ae = { class: "forgot-pwd" }, Ne = { class: "absolute bottom-1 text-[10px] text-center" }, Te = /* @__PURE__ */ B(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), ze = /* @__PURE__ */ B(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Be = [
|
|
8
8
|
Te,
|
|
9
|
-
|
|
10
|
-
],
|
|
9
|
+
ze
|
|
10
|
+
], Fe = 992, Ke = /* @__PURE__ */ te({
|
|
11
11
|
__name: "index",
|
|
12
12
|
setup(_) {
|
|
13
|
-
const y = D(), { title:
|
|
13
|
+
const y = D(), { title: F, version: K } = y, k = i(y.theme === "dark"), X = (e) => {
|
|
14
14
|
we(e), y.changeSetting({
|
|
15
15
|
key: "theme",
|
|
16
16
|
value: e ? "dark" : "light"
|
|
17
17
|
});
|
|
18
18
|
}, C = T(), { width: j } = he();
|
|
19
19
|
se(() => {
|
|
20
|
-
j.value <
|
|
20
|
+
j.value < Fe ? C.toggleDevice("mobile") : C.toggleDevice("desktop");
|
|
21
21
|
});
|
|
22
|
-
const
|
|
22
|
+
const V = i(!1), E = i(!1), g = i(!1), q = i(), L = i(z), b = i([]), a = i({
|
|
23
23
|
scope: "",
|
|
24
24
|
username: "",
|
|
25
25
|
password: ""
|
|
@@ -58,27 +58,27 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
|
|
|
58
58
|
}
|
|
59
59
|
function h() {
|
|
60
60
|
ye().then(({ data: e }) => {
|
|
61
|
-
a.value.captchaKey = e.captchaId,
|
|
61
|
+
a.value.captchaKey = e.captchaId, q.value = e.base64Image;
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
64
|
function P() {
|
|
65
65
|
ke().then(({ data: e }) => {
|
|
66
|
-
|
|
66
|
+
b.value = e.roleList;
|
|
67
67
|
});
|
|
68
68
|
}
|
|
69
69
|
const W = Se(), H = fe();
|
|
70
70
|
function x() {
|
|
71
|
-
|
|
72
|
-
e && (
|
|
71
|
+
L.value.validate((e) => {
|
|
72
|
+
e && (V.value = !0, a.value.password = Ce(a.value.password), H.login(a.value).then(() => {
|
|
73
73
|
const t = W.query, p = t.redirect ?? "/", d = Object.keys(t).reduce(
|
|
74
74
|
(f, u) => (u !== "redirect" && (f[u] = t[u]), f),
|
|
75
75
|
{}
|
|
76
76
|
);
|
|
77
|
-
|
|
77
|
+
Ve.value.push({ path: p, query: d }), h();
|
|
78
78
|
}).catch(() => {
|
|
79
79
|
h();
|
|
80
80
|
}).finally(() => {
|
|
81
|
-
|
|
81
|
+
V.value = !1;
|
|
82
82
|
}));
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -96,31 +96,31 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
|
|
|
96
96
|
"inline-prompt": "",
|
|
97
97
|
"active-color": "var(--el-fill-color-dark)",
|
|
98
98
|
"inactive-color": "var(--el-color-primary)",
|
|
99
|
-
onChange:
|
|
99
|
+
onChange: X
|
|
100
100
|
}, null, 8, ["modelValue"]),
|
|
101
101
|
s(ve, { class: "ml-2 cursor-pointer" })
|
|
102
102
|
]),
|
|
103
103
|
s(ee, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
|
|
104
104
|
default: r(() => [
|
|
105
105
|
n("div", Re, [
|
|
106
|
-
n("h2", null, R(o(
|
|
106
|
+
n("h2", null, R(o(F)), 1),
|
|
107
107
|
s(d, { class: "ml-2 absolute top-0 right-0" }, {
|
|
108
108
|
default: r(() => [
|
|
109
|
-
I(R(o(
|
|
109
|
+
I(R(o(K)), 1)
|
|
110
110
|
]),
|
|
111
111
|
_: 1
|
|
112
112
|
})
|
|
113
113
|
]),
|
|
114
|
-
s(o(
|
|
114
|
+
s(o(z), {
|
|
115
115
|
ref_key: "loginFormRef",
|
|
116
|
-
ref:
|
|
116
|
+
ref: L,
|
|
117
117
|
model: o(a),
|
|
118
118
|
rules: o(M),
|
|
119
119
|
size: "large",
|
|
120
120
|
class: "login-form"
|
|
121
121
|
}, {
|
|
122
122
|
default: r(() => [
|
|
123
|
-
o(
|
|
123
|
+
o(b).length > 0 ? (w(), A(v, {
|
|
124
124
|
key: 0,
|
|
125
125
|
prop: "scope"
|
|
126
126
|
}, {
|
|
@@ -135,7 +135,7 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
|
|
|
135
135
|
class: "flex-1"
|
|
136
136
|
}, {
|
|
137
137
|
default: r(() => [
|
|
138
|
-
(w(!0), U(re, null, ce(o(
|
|
138
|
+
(w(!0), U(re, null, ce(o(b), (l) => (w(), A(f, {
|
|
139
139
|
key: l.roleCode,
|
|
140
140
|
label: l.roleName,
|
|
141
141
|
value: l.roleCode
|
|
@@ -202,7 +202,7 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
|
|
|
202
202
|
}, 8, ["disabled"]),
|
|
203
203
|
s(v, { prop: "captchaCode" }, {
|
|
204
204
|
default: r(() => [
|
|
205
|
-
n("span",
|
|
205
|
+
n("span", qe, [
|
|
206
206
|
s(m, { "icon-class": "captcha" })
|
|
207
207
|
]),
|
|
208
208
|
s($, {
|
|
@@ -213,9 +213,9 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
|
|
|
213
213
|
class: "w-[60%]",
|
|
214
214
|
onKeyup: N(x, ["enter"])
|
|
215
215
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
216
|
-
n("div",
|
|
216
|
+
n("div", Le, [
|
|
217
217
|
s(G, {
|
|
218
|
-
src: o(
|
|
218
|
+
src: o(q),
|
|
219
219
|
onClick: h,
|
|
220
220
|
class: "w-[130px] h-[50px] cursor-pointer"
|
|
221
221
|
}, {
|
|
@@ -239,7 +239,7 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
|
|
|
239
239
|
})
|
|
240
240
|
]),
|
|
241
241
|
s(Y, {
|
|
242
|
-
loading: o(
|
|
242
|
+
loading: o(V),
|
|
243
243
|
type: "primary",
|
|
244
244
|
class: "w-full",
|
|
245
245
|
onClick: de(x, ["prevent"])
|
|
@@ -255,13 +255,13 @@ const F = (_) => (me("data-v-6eeae742"), _ = _(), _e(), _), xe = { class: "login
|
|
|
255
255
|
]),
|
|
256
256
|
_: 1
|
|
257
257
|
}),
|
|
258
|
-
pe(n("div", Ne,
|
|
258
|
+
pe(n("div", Ne, Be, 512), [
|
|
259
259
|
[ue, o(T)().device == "desktop"]
|
|
260
260
|
])
|
|
261
261
|
]);
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
-
}), He = /* @__PURE__ */
|
|
264
|
+
}), He = /* @__PURE__ */ be(Ke, [["__scopeId", "data-v-6eeae742"]]);
|
|
265
265
|
export {
|
|
266
266
|
He as default
|
|
267
267
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { _ as G } from "./RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs";
|
|
2
2
|
import { _ as H } from "./PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs";
|
|
3
|
-
import R from "./BarChart
|
|
4
|
-
import {
|
|
3
|
+
import R from "./BarChart-Bl3C1G8l.mjs";
|
|
4
|
+
import { h as N, f as q, c as J, o as f, p, S as K } from "./index-B5cWr2iD.mjs";
|
|
5
5
|
import { openBlock as C, createElementBlock as y, pushScopeId as P, popScopeId as V, createElementVNode as t, defineComponent as Q, computed as B, ref as x, resolveComponent as d, createVNode as e, withCtx as s, unref as a, toDisplayString as i, createTextVNode as u } from "vue";
|
|
6
6
|
const W = {}, w = (c) => (P("data-v-5088dedb"), c = c(), V(), c), X = {
|
|
7
7
|
href: "https://github.com/haoxianrui",
|