jmash-core 0.0.11 → 0.0.12
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-Do8xnEsN.mjs +101 -0
- package/dist/404-D1L3bBKj.mjs +37 -0
- package/dist/{BarChart-CbBhpMpZ.mjs → BarChart-CfcVJz3-.mjs} +41 -41
- package/dist/{FileSaver.min-CivbhzMe.mjs → FileSaver.min-C3PXR_ER.mjs} +1 -1
- package/dist/{FunnelChart-Czy2TVI1.mjs → FunnelChart-CcCVox9E.mjs} +16 -15
- package/dist/{PieChart-B8Tay-HH.mjs → PieChart-6YLME4bj.mjs} +1 -1
- package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CH5ME8e4.mjs → PieChart.vue_vue_type_script_setup_true_lang-CzuULwXY.mjs} +25 -24
- package/dist/{RadarChart-BzUQwTnX.mjs → RadarChart-DkmgXM6y.mjs} +1 -1
- package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-DC-Ww3Mu.mjs → RadarChart.vue_vue_type_script_setup_true_lang-NTNi_I9_.mjs} +27 -26
- package/dist/{edit-DaxU7bBz.mjs → edit-BUeKYrEZ.mjs} +1 -1
- package/dist/{edit-5ZpeysVY.mjs → edit-CJuMrQ46.mjs} +54 -54
- package/dist/{edit-C0aHXOi3.mjs → edit-CkpeOqrr.mjs} +1 -1
- package/dist/{edit-CR7ZiKuo.mjs → edit-DGe7AWsr.mjs} +53 -53
- package/dist/{edit-B95ajyfH.mjs → edit-DjN392jC.mjs} +1 -1
- package/dist/{edit-BJAAEDVd.mjs → edit-YJP7pN6W.mjs} +1 -1
- package/dist/edit-lwVBGzDE.mjs +4 -0
- package/dist/edit-xlxZjC4R.mjs +4 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-CCq_E2KT.mjs → edit.vue_vue_type_script_setup_true_lang-BWtQvmLi.mjs} +14 -14
- package/dist/{edit.vue_vue_type_script_setup_true_lang-D4w7Aa9M.mjs → edit.vue_vue_type_script_setup_true_lang-BtM452jP.mjs} +46 -46
- package/dist/edit.vue_vue_type_script_setup_true_lang-DEydJiSf.mjs +588 -0
- package/dist/{edit.vue_vue_type_script_setup_true_lang-DqqWi384.mjs → edit.vue_vue_type_script_setup_true_lang-DI-oeRPA.mjs} +22 -22
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C-BRxRH6.mjs → edit.vue_vue_type_script_setup_true_lang-RBjkUr1y.mjs} +30 -30
- package/dist/{edit.vue_vue_type_script_setup_true_lang-0Q5XHHkN.mjs → edit.vue_vue_type_script_setup_true_lang-djIfNPqQ.mjs} +24 -24
- package/dist/{el-card-acRFAeYD.mjs → el-card-C861yBJo.mjs} +1 -1
- package/dist/{el-col-BFrxkvh3.mjs → el-col-BBiMr5pm.mjs} +17 -17
- package/dist/{el-date-picker-CjE5H0IY.mjs → el-date-picker-N5aiMKSy.mjs} +372 -372
- package/dist/el-divider-QMj1kMtJ.mjs +45 -0
- package/dist/{el-dropdown-item-SBcx6_kX.mjs → el-dropdown-item-4ws609Gw.mjs} +76 -76
- package/dist/{el-tree-select-RwYP-GEn.mjs → el-tree-select-DdZxfrNV.mjs} +75 -75
- package/dist/{index-DBmv4w5y.mjs → index-9TwUBNc5.mjs} +1 -1
- package/dist/{index-CcXjdXcD.mjs → index-AiS44_Xc.mjs} +64 -64
- package/dist/{index-4UdK9Nb9.mjs → index-B7u0TetV.mjs} +48 -48
- package/dist/{index-hr-nwn6C.mjs → index-BX1Jx_xA.mjs} +1 -1
- package/dist/index-BZBpY0uA.mjs +277 -0
- package/dist/{index-DQtth-qu.mjs → index-Be59bIqU.mjs} +51 -51
- package/dist/{index-BcstP65E.mjs → index-BzT4__Is.mjs} +101 -101
- package/dist/index-C__OmU1O.mjs +272 -0
- package/dist/{index-ChzNa2kp.mjs → index-CkXpK-zH.mjs} +21620 -21401
- package/dist/{index-DQbHbpgW.mjs → index-Cmlc_Bb4.mjs} +4 -4
- package/dist/{index-B-lo0ywJ.mjs → index-CrZPfuW6.mjs} +60 -60
- package/dist/{index-SUlMvdOg.mjs → index-DD1K2w1b.mjs} +71 -71
- package/dist/{index-DvrFzTq2.mjs → index-DFVq4R0u.mjs} +1 -1
- package/dist/{index-B7zhho5d.mjs → index-DOPTH9F2.mjs} +65 -65
- package/dist/{index-u66O7nvc.mjs → index-Dn-psVpr.mjs} +112 -111
- package/dist/index-DnSJxj9r.mjs +3438 -0
- package/dist/{index-CQlxUoOf.mjs → index-DtR1eBZg.mjs} +1 -1
- package/dist/{index-Bqg1CGw2.mjs → index-H7-W4HC2.mjs} +1 -1
- package/dist/{index-Dyn0k8Ib.mjs → index-NVKBuLg_.mjs} +59 -59
- package/dist/{index-DAIdsjwj.mjs → index-hMoSvG6q.mjs} +58 -58
- package/dist/index.mjs +26 -27
- package/dist/index.vue_vue_type_script_setup_true_lang-up5cpReQ.mjs +54 -0
- package/dist/picture-o8CKMR0j.mjs +587 -0
- package/dist/position-BUALjtY9.mjs +23 -0
- package/dist/{profile-BfDHQ_n5.mjs → profile-BLq1IvXt.mjs} +25 -25
- package/dist/style.css +1 -1
- package/dist/{types-D2vHMNqn.mjs → types-JT7Xyhpz.mjs} +13 -13
- package/dist/{updatePwd-Dc31cBOV.mjs → updatePwd-DnT8nEtM.mjs} +1 -1
- package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Do-jRGf0.mjs → updatePwd.vue_vue_type_script_setup_true_lang-Dks8j8my.mjs} +9 -9
- package/package.json +1 -1
- package/dist/401-BjFOoJaQ.mjs +0 -101
- package/dist/404-CT8Yk873.mjs +0 -37
- package/dist/anquanrizhi-BMAtNRi-.mjs +0 -4
- package/dist/api-DA2t0sYn.mjs +0 -4
- package/dist/bumenguanli-_DtFk-Tc.mjs +0 -4
- package/dist/caozuoguanliyuan-YxDi1qyM.mjs +0 -4
- package/dist/captcha-G9RskXh1.mjs +0 -4
- package/dist/caret-bottom-Lhe9M7aA.mjs +0 -59
- package/dist/cascader-CysbB3DR.mjs +0 -4
- package/dist/client-CmoE5d0v.mjs +0 -4
- package/dist/close-DwiHyvYJ.mjs +0 -4
- package/dist/close_all-ri0Fg4Yg.mjs +0 -4
- package/dist/close_left-DLmFYlJS.mjs +0 -4
- package/dist/close_other-B705ZMV6.mjs +0 -4
- package/dist/close_right-BUdNHbs5.mjs +0 -4
- package/dist/dict-C2cGjFov.mjs +0 -4
- package/dist/document-Bf2gTChB.mjs +0 -4
- package/dist/download-cG3k-vnb.mjs +0 -4
- package/dist/drag-CwjZNuUJ.mjs +0 -4
- package/dist/edit-CIq1RPVx.mjs +0 -4
- package/dist/edit-Di-ksvTh.mjs +0 -4
- package/dist/edit-II1vFfNu.mjs +0 -4
- package/dist/edit.vue_vue_type_script_setup_true_lang-VlMd6HAa.mjs +0 -575
- package/dist/email-B2AUCEGq.mjs +0 -4
- package/dist/exit-fullscreen-BJ7HY1Sq.mjs +0 -4
- package/dist/eye-DeDz_5CQ.mjs +0 -4
- package/dist/eye-open-Cm0N1Rcz.mjs +0 -4
- package/dist/fullscreen-BFXljl9l.mjs +0 -4
- package/dist/gangweiguanli-bkwyhEXB.mjs +0 -4
- package/dist/github-CL2t8fd5.mjs +0 -4
- package/dist/homepage-IeZtzO8Q.mjs +0 -4
- package/dist/icon-DwZ6Hkfk.mjs +0 -4
- package/dist/index-CF6p3ONN.mjs +0 -319
- package/dist/index-CJvo28Bb.mjs +0 -275
- package/dist/index-CS-ceXqM.mjs +0 -2580
- package/dist/ip-DOLbS1rT.mjs +0 -4
- package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +0 -4
- package/dist/language-C1tgLxuP.mjs +0 -4
- package/dist/link-Cjm7RVX7.mjs +0 -4
- package/dist/log-ZFSIG9ZQ.mjs +0 -4
- package/dist/menu-B7SOjMUJ.mjs +0 -4
- package/dist/message-Bws5C_1u.mjs +0 -4
- package/dist/mokuaiguanli-nzRpK-Pe.mjs +0 -4
- package/dist/money-DM0ZKWD3.mjs +0 -4
- package/dist/monitor-CxsUJkcx.mjs +0 -4
- package/dist/order-DZ28J7CD.mjs +0 -4
- package/dist/password-BbtiGVLy.mjs +0 -4
- package/dist/peoples-3fyh79uv.mjs +0 -4
- package/dist/phone-CdpLww4_.mjs +0 -4
- package/dist/picture-877nN1qH.mjs +0 -598
- package/dist/project-DgVsw9u_.mjs +0 -4
- package/dist/publish-BCri5HbT.mjs +0 -4
- package/dist/quanxianguanli-Cpcc8C4D.mjs +0 -4
- package/dist/redis-fjUUmFu3.mjs +0 -4
- package/dist/refresh-BWNjEt3t.mjs +0 -4
- package/dist/role-BYKzPG5H.mjs +0 -4
- package/dist/security-BsMRfWoG.mjs +0 -4
- package/dist/shoujihao-BFt1tDJn.mjs +0 -4
- package/dist/shrink-kEdKK3G7.mjs +0 -4
- package/dist/size-jLonAeyJ.mjs +0 -4
- package/dist/system-BlPhikZo.mjs +0 -4
- package/dist/table-CCqA2qBP.mjs +0 -4
- package/dist/todolist-Ul73X2IJ.mjs +0 -4
- package/dist/tree-DrEt7UUZ.mjs +0 -4
- package/dist/user-B9bSWq2E.mjs +0 -4
- package/dist/visit-w_hKTLb6.mjs +0 -4
- package/dist/xingming-DHM4olm-.mjs +0 -4
- package/dist/yonghuguanli-B3vRkdqw.mjs +0 -4
- package/dist/youxiang-D68Zx-02.mjs +0 -4
- package/dist//345/210/227/350/241/250-nphA7BPW.mjs +0 -4
- package/dist//345/233/272/345/256/232_/345/233/276/351/222/211-CXYo1gbQ.mjs +0 -4
- package/dist//346/250/241/345/235/227-D528qA63.mjs +0 -4
- package/dist//347/234/274/347/235/233-BaPHKGgj.mjs +0 -4
- package/dist//351/227/255/347/234/274/347/235/233-D6BjbTd5.mjs +0 -4
package/dist/icon-DwZ6Hkfk.mjs
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
const c = "data:image/svg+xml,%3csvg%20width='128'%20height='128'%20xmlns='http://www.w3.org/2000/svg'%3e%3cpath%20d='M115.147.062a13%2013%200%200%201%204.94.945c1.55.63%202.907%201.526%204.069%202.688a13.148%2013.148%200%200%201%202.761%204.069c.678%201.55%201.017%203.245%201.017%205.086v102.3c0%203.681-1.187%206.733-3.56%209.155-2.373%202.422-5.352%203.633-8.937%203.633H12.992c-3.875%200-7-1.26-9.373-3.779-2.373-2.518-3.56-5.667-3.56-9.445V12.704c0-3.39%201.163-6.345%203.488-8.863C5.872%201.32%208.972.062%2012.847.062h102.3zM81.434%20109.047c1.744%200%203.003-.412%203.778-1.235.775-.824%201.163-1.914%201.163-3.27%200-1.26-.388-2.325-1.163-3.197-.775-.872-2.034-1.307-3.778-1.307H72.57c.097-.194.145-.485.145-.872V27.09h9.01c1.743%200%202.954-.436%203.633-1.308.678-.872%201.017-1.938%201.017-3.197%200-1.26-.34-2.325-1.017-3.197-.679-.872-1.89-1.308-3.633-1.308H46.268c-1.743%200-2.954.436-3.632%201.308-.678.872-1.018%201.938-1.018%203.197%200%201.26.34%202.325%201.018%203.197.678.872%201.889%201.308%203.632%201.308h8.138v72.075c0%20.193.024.339.073.436.048.096.072.242.072.436H46.56c-1.744%200-3.003.435-3.778%201.307-.775.872-1.163%201.938-1.163%203.197%200%201.356.388%202.446%201.163%203.27.775.823%202.034%201.235%203.778%201.235h34.875z'/%3e%3c/svg%3e";
|
|
2
|
-
export {
|
|
3
|
-
c as default
|
|
4
|
-
};
|
package/dist/index-CF6p3ONN.mjs
DELETED
|
@@ -1,319 +0,0 @@
|
|
|
1
|
-
import { z as U, W as M, A as B, x as _, O as R, U as te, X as F, D as le, Y as ne, Z as ae, $ as ce, N as re, Q as de, a0 as ie, a1 as pe, a2 as ue, a3 as me, a4 as _e, l as ge, a5 as he, y as fe } from "./index-ChzNa2kp.mjs";
|
|
2
|
-
import { E as ve } from "./el-card-acRFAeYD.mjs";
|
|
3
|
-
import { _ as we, E as be } from "./picture-877nN1qH.mjs";
|
|
4
|
-
import "./el-form-item-l0sNRNKZ.mjs";
|
|
5
|
-
import { defineComponent as O, openBlock as w, createBlock as q, withCtx as l, createVNode as e, unref as o, createTextVNode as b, createElementVNode as n, ref as d, watchEffect as ke, computed as ye, onMounted as Ce, resolveComponent as Ee, createElementBlock as X, isRef as Se, toDisplayString as T, Fragment as Ve, renderList as xe, createCommentVNode as $e, withKeys as K, withModifiers as De, withDirectives as Ie, vShow as Le, pushScopeId as Re, popScopeId as Te } from "vue";
|
|
6
|
-
import { useRoute as Ue } from "vue-router";
|
|
7
|
-
import { E as qe, a as ze, b as Ae } from "./el-dropdown-item-SBcx6_kX.mjs";
|
|
8
|
-
const Ne = /* @__PURE__ */ O({
|
|
9
|
-
__name: "index",
|
|
10
|
-
setup(g) {
|
|
11
|
-
const i = U(), { locale: V } = M();
|
|
12
|
-
function x(r) {
|
|
13
|
-
V.value = r, i.changeLanguage(r), r === "en" ? B.success("Switch Language Successful!") : B.success("切换语言成功!");
|
|
14
|
-
}
|
|
15
|
-
return (r, z) => {
|
|
16
|
-
const h = _, k = qe, f = ze, y = Ae;
|
|
17
|
-
return w(), q(y, {
|
|
18
|
-
trigger: "click",
|
|
19
|
-
onCommand: x
|
|
20
|
-
}, {
|
|
21
|
-
dropdown: l(() => [
|
|
22
|
-
e(f, null, {
|
|
23
|
-
default: l(() => [
|
|
24
|
-
e(k, {
|
|
25
|
-
disabled: o(i).language === "zh-cn",
|
|
26
|
-
command: "zh-cn"
|
|
27
|
-
}, {
|
|
28
|
-
default: l(() => [
|
|
29
|
-
b(" 中文 ")
|
|
30
|
-
]),
|
|
31
|
-
_: 1
|
|
32
|
-
}, 8, ["disabled"]),
|
|
33
|
-
e(k, {
|
|
34
|
-
disabled: o(i).language === "en",
|
|
35
|
-
command: "en"
|
|
36
|
-
}, {
|
|
37
|
-
default: l(() => [
|
|
38
|
-
b(" English ")
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}, 8, ["disabled"])
|
|
42
|
-
]),
|
|
43
|
-
_: 1
|
|
44
|
-
})
|
|
45
|
-
]),
|
|
46
|
-
default: l(() => [
|
|
47
|
-
n("div", null, [
|
|
48
|
-
e(h, { "icon-class": "language" })
|
|
49
|
-
])
|
|
50
|
-
]),
|
|
51
|
-
_: 1
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}), W = (g) => (Re("data-v-8adbbfc2"), g = g(), Te(), g), Be = { class: "login-container" }, Fe = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Xe = { class: "text-center relative" }, Ke = { class: "p-2" }, Me = { class: "p-2" }, Oe = { class: "p-2" }, We = { class: "p-2" }, je = { class: "captcha" }, Pe = { class: "image-slot" }, Qe = { class: "forgot-pwd" }, Ze = { class: "absolute bottom-1 text-[10px] text-center" }, He = /* @__PURE__ */ W(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), Ye = /* @__PURE__ */ W(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Ge = [
|
|
56
|
-
He,
|
|
57
|
-
Ye
|
|
58
|
-
], Je = 992, eo = /* @__PURE__ */ O({
|
|
59
|
-
__name: "index",
|
|
60
|
-
setup(g) {
|
|
61
|
-
const i = R(), { title: V, version: x } = i, r = d(i.theme === "dark"), z = (s) => {
|
|
62
|
-
ne(s), i.changeSetting({
|
|
63
|
-
key: "theme",
|
|
64
|
-
value: s ? "dark" : "light"
|
|
65
|
-
});
|
|
66
|
-
}, h = U(), { width: k } = te();
|
|
67
|
-
ke(() => {
|
|
68
|
-
k.value < Je ? h.toggleDevice("mobile") : h.toggleDevice("desktop");
|
|
69
|
-
});
|
|
70
|
-
const f = d(!1), y = d(!1), C = d(!1), A = d(), N = d(F), $ = d([]), c = d({
|
|
71
|
-
scope: "",
|
|
72
|
-
username: "",
|
|
73
|
-
password: ""
|
|
74
|
-
}), { t: D } = M(), j = ye(() => {
|
|
75
|
-
const s = h.language === "en" ? "Please enter " : "请输入";
|
|
76
|
-
return {
|
|
77
|
-
username: [
|
|
78
|
-
{
|
|
79
|
-
required: !0,
|
|
80
|
-
trigger: "blur",
|
|
81
|
-
message: `${s}${D("login.username")}`
|
|
82
|
-
}
|
|
83
|
-
],
|
|
84
|
-
password: [
|
|
85
|
-
{
|
|
86
|
-
required: !0,
|
|
87
|
-
trigger: "blur",
|
|
88
|
-
validator: (t, m, p) => {
|
|
89
|
-
m.length < 5 ? p(new Error("The password can not be less than 5 digits")) : p();
|
|
90
|
-
},
|
|
91
|
-
message: `${s}${D("login.password")}`
|
|
92
|
-
}
|
|
93
|
-
],
|
|
94
|
-
captchaCode: [
|
|
95
|
-
{
|
|
96
|
-
required: !0,
|
|
97
|
-
trigger: "blur",
|
|
98
|
-
message: `${s}${D("login.captchaCode")}`
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
};
|
|
102
|
-
});
|
|
103
|
-
function P(s) {
|
|
104
|
-
const { key: t } = s;
|
|
105
|
-
y.value = t && t.length === 1 && t >= "A" && t <= "Z";
|
|
106
|
-
}
|
|
107
|
-
function E() {
|
|
108
|
-
ae().then(({ data: s }) => {
|
|
109
|
-
c.value.captchaKey = s.captchaId, A.value = s.base64Image;
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
function Q() {
|
|
113
|
-
ce().then(({ data: s }) => {
|
|
114
|
-
console.log(s), $.value = s.roleList;
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
|
-
const Z = Ue(), H = le();
|
|
118
|
-
function I() {
|
|
119
|
-
N.value.validate((s) => {
|
|
120
|
-
s && (f.value = !0, H.login(c.value).then(() => {
|
|
121
|
-
const t = Z.query;
|
|
122
|
-
console.log(t);
|
|
123
|
-
const m = t.redirect ?? "/";
|
|
124
|
-
console.log(m);
|
|
125
|
-
const p = Object.keys(t).reduce(
|
|
126
|
-
(v, u) => (console.log(v[u], t[u]), u !== "redirect" && (v[u] = t[u]), v),
|
|
127
|
-
{}
|
|
128
|
-
);
|
|
129
|
-
console.log(p), re.push({ path: m, query: p }), E();
|
|
130
|
-
}).catch(() => {
|
|
131
|
-
E();
|
|
132
|
-
}).finally(() => {
|
|
133
|
-
f.value = !1;
|
|
134
|
-
}));
|
|
135
|
-
});
|
|
136
|
-
}
|
|
137
|
-
return Ce(() => {
|
|
138
|
-
E(), Q();
|
|
139
|
-
const s = R().theme;
|
|
140
|
-
R().changeSetting({ key: "theme", value: s }), s == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
141
|
-
}), (s, t) => {
|
|
142
|
-
const m = de, p = ie, v = pe, u = ue, S = me, L = _e, Y = ge, G = we, J = be, ee = Ee("router-link"), oe = he, se = ve;
|
|
143
|
-
return w(), X("div", Be, [
|
|
144
|
-
n("div", Fe, [
|
|
145
|
-
e(m, {
|
|
146
|
-
modelValue: o(r),
|
|
147
|
-
"onUpdate:modelValue": t[0] || (t[0] = (a) => Se(r) ? r.value = a : null),
|
|
148
|
-
"inline-prompt": "",
|
|
149
|
-
"active-color": "var(--el-fill-color-dark)",
|
|
150
|
-
"inactive-color": "var(--el-color-primary)",
|
|
151
|
-
onChange: z
|
|
152
|
-
}, null, 8, ["modelValue"]),
|
|
153
|
-
e(Ne, { class: "ml-2 cursor-pointer" })
|
|
154
|
-
]),
|
|
155
|
-
e(se, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
|
|
156
|
-
default: l(() => [
|
|
157
|
-
n("div", Xe, [
|
|
158
|
-
n("h2", null, T(o(V)), 1),
|
|
159
|
-
e(p, { class: "ml-2 absolute top-0 right-0" }, {
|
|
160
|
-
default: l(() => [
|
|
161
|
-
b(T(o(x)), 1)
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
})
|
|
165
|
-
]),
|
|
166
|
-
e(o(F), {
|
|
167
|
-
ref_key: "loginFormRef",
|
|
168
|
-
ref: N,
|
|
169
|
-
model: o(c),
|
|
170
|
-
rules: o(j),
|
|
171
|
-
size: "large",
|
|
172
|
-
class: "login-form"
|
|
173
|
-
}, {
|
|
174
|
-
default: l(() => [
|
|
175
|
-
o($).length > 0 ? (w(), q(S, {
|
|
176
|
-
key: 0,
|
|
177
|
-
prop: "scope"
|
|
178
|
-
}, {
|
|
179
|
-
default: l(() => [
|
|
180
|
-
n("div", Ke, [
|
|
181
|
-
e(_, { "icon-class": "user" })
|
|
182
|
-
]),
|
|
183
|
-
e(u, {
|
|
184
|
-
modelValue: o(c).scope,
|
|
185
|
-
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(c).scope = a),
|
|
186
|
-
placeholder: "Select",
|
|
187
|
-
class: "flex-1"
|
|
188
|
-
}, {
|
|
189
|
-
default: l(() => [
|
|
190
|
-
(w(!0), X(Ve, null, xe(o($), (a) => (w(), q(v, {
|
|
191
|
-
key: a.roleCode,
|
|
192
|
-
label: a.roleName,
|
|
193
|
-
value: a.roleCode
|
|
194
|
-
}, null, 8, ["label", "value"]))), 128))
|
|
195
|
-
]),
|
|
196
|
-
_: 1
|
|
197
|
-
}, 8, ["modelValue"])
|
|
198
|
-
]),
|
|
199
|
-
_: 1
|
|
200
|
-
})) : $e("", !0),
|
|
201
|
-
e(S, { prop: "username" }, {
|
|
202
|
-
default: l(() => [
|
|
203
|
-
n("div", Me, [
|
|
204
|
-
e(_, { "icon-class": "user" })
|
|
205
|
-
]),
|
|
206
|
-
e(L, {
|
|
207
|
-
ref: "username",
|
|
208
|
-
modelValue: o(c).username,
|
|
209
|
-
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(c).username = a),
|
|
210
|
-
class: "flex-1",
|
|
211
|
-
placeholder: s.$t("login.username"),
|
|
212
|
-
name: "username"
|
|
213
|
-
}, null, 8, ["modelValue", "placeholder"])
|
|
214
|
-
]),
|
|
215
|
-
_: 1
|
|
216
|
-
}),
|
|
217
|
-
e(Y, {
|
|
218
|
-
disabled: o(y) === !1,
|
|
219
|
-
content: "Caps lock is On",
|
|
220
|
-
placement: "right"
|
|
221
|
-
}, {
|
|
222
|
-
default: l(() => [
|
|
223
|
-
e(S, { prop: "password" }, {
|
|
224
|
-
default: l(() => [
|
|
225
|
-
n("span", Oe, [
|
|
226
|
-
e(_, { "icon-class": "password" })
|
|
227
|
-
]),
|
|
228
|
-
e(L, {
|
|
229
|
-
modelValue: o(c).password,
|
|
230
|
-
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(c).password = a),
|
|
231
|
-
class: "flex-1",
|
|
232
|
-
placeholder: s.$t("login.password"),
|
|
233
|
-
type: o(C) === !1 ? "password" : "input",
|
|
234
|
-
name: "password",
|
|
235
|
-
onKeyup: [
|
|
236
|
-
P,
|
|
237
|
-
K(I, ["enter"])
|
|
238
|
-
]
|
|
239
|
-
}, null, 8, ["modelValue", "placeholder", "type"]),
|
|
240
|
-
n("span", {
|
|
241
|
-
class: "mr-2",
|
|
242
|
-
onClick: t[4] || (t[4] = (a) => C.value = !o(C))
|
|
243
|
-
}, [
|
|
244
|
-
e(_, {
|
|
245
|
-
"icon-class": o(C) === !1 ? "eye" : "eye-open",
|
|
246
|
-
class: "cursor-pointer"
|
|
247
|
-
}, null, 8, ["icon-class"])
|
|
248
|
-
])
|
|
249
|
-
]),
|
|
250
|
-
_: 1
|
|
251
|
-
})
|
|
252
|
-
]),
|
|
253
|
-
_: 1
|
|
254
|
-
}, 8, ["disabled"]),
|
|
255
|
-
e(S, { prop: "captchaCode" }, {
|
|
256
|
-
default: l(() => [
|
|
257
|
-
n("span", We, [
|
|
258
|
-
e(_, { "icon-class": "captcha" })
|
|
259
|
-
]),
|
|
260
|
-
e(L, {
|
|
261
|
-
modelValue: o(c).captchaCode,
|
|
262
|
-
"onUpdate:modelValue": t[5] || (t[5] = (a) => o(c).captchaCode = a),
|
|
263
|
-
"auto-complete": "off",
|
|
264
|
-
placeholder: s.$t("login.captchaCode"),
|
|
265
|
-
class: "w-[60%]",
|
|
266
|
-
onKeyup: K(I, ["enter"])
|
|
267
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
268
|
-
n("div", je, [
|
|
269
|
-
e(J, {
|
|
270
|
-
src: o(A),
|
|
271
|
-
onClick: E,
|
|
272
|
-
class: "w-[130px] h-[50px] cursor-pointer"
|
|
273
|
-
}, {
|
|
274
|
-
error: l(() => [
|
|
275
|
-
n("div", Pe, [
|
|
276
|
-
e(G)
|
|
277
|
-
])
|
|
278
|
-
]),
|
|
279
|
-
_: 1
|
|
280
|
-
}, 8, ["src"])
|
|
281
|
-
])
|
|
282
|
-
]),
|
|
283
|
-
_: 1
|
|
284
|
-
}),
|
|
285
|
-
n("div", Qe, [
|
|
286
|
-
e(ee, { to: "/secondLogin" }, {
|
|
287
|
-
default: l(() => [
|
|
288
|
-
b("手机号/邮箱登录")
|
|
289
|
-
]),
|
|
290
|
-
_: 1
|
|
291
|
-
})
|
|
292
|
-
]),
|
|
293
|
-
e(oe, {
|
|
294
|
-
loading: o(f),
|
|
295
|
-
type: "primary",
|
|
296
|
-
class: "w-full",
|
|
297
|
-
onClick: De(I, ["prevent"])
|
|
298
|
-
}, {
|
|
299
|
-
default: l(() => [
|
|
300
|
-
b(T(s.$t("login.login")), 1)
|
|
301
|
-
]),
|
|
302
|
-
_: 1
|
|
303
|
-
}, 8, ["loading"])
|
|
304
|
-
]),
|
|
305
|
-
_: 1
|
|
306
|
-
}, 8, ["model", "rules"])
|
|
307
|
-
]),
|
|
308
|
-
_: 1
|
|
309
|
-
}),
|
|
310
|
-
Ie(n("div", Ze, Ge, 512), [
|
|
311
|
-
[Le, o(U)().device == "desktop"]
|
|
312
|
-
])
|
|
313
|
-
]);
|
|
314
|
-
};
|
|
315
|
-
}
|
|
316
|
-
}), ro = /* @__PURE__ */ fe(eo, [["__scopeId", "data-v-8adbbfc2"]]);
|
|
317
|
-
export {
|
|
318
|
-
ro as default
|
|
319
|
-
};
|
package/dist/index-CJvo28Bb.mjs
DELETED
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { W as oe, D as le, bb as te, bc as ae, bd as ne, aH as re, aI as se, aB as ie, aC as de, aJ as ce, a4 as me, a3 as ue, a5 as pe, X as _e, aD as fe, E as be, K as ye } from "./index-ChzNa2kp.mjs";
|
|
2
|
-
import { E as Ce, a as he } from "./el-col-BFrxkvh3.mjs";
|
|
3
|
-
import "./el-form-item-l0sNRNKZ.mjs";
|
|
4
|
-
import { defineComponent as ve, reactive as p, resolveComponent as I, resolveDirective as Re, openBlock as c, createElementBlock as R, createVNode as l, unref as e, withCtx as t, withKeys as D, createTextVNode as m, toDisplayString as u, withDirectives as C, createBlock as k, createCommentVNode as ke, createElementVNode as we } from "vue";
|
|
5
|
-
import ge from "./edit-CR7ZiKuo.mjs";
|
|
6
|
-
const $e = { class: "app-container" }, Ee = /* @__PURE__ */ we("div", { class: "clear" }, null, -1), Ie = ["onClick"], De = ["onClick"], Ke = /* @__PURE__ */ ve({
|
|
7
|
-
__name: "index",
|
|
8
|
-
setup(Te) {
|
|
9
|
-
const { t: n } = oe(), i = p({
|
|
10
|
-
tenant: le().user.tenant,
|
|
11
|
-
roleType: "role"
|
|
12
|
-
});
|
|
13
|
-
let _ = p([
|
|
14
|
-
{
|
|
15
|
-
label: n("sysRole.code"),
|
|
16
|
-
width: "140",
|
|
17
|
-
prop: "roleCode",
|
|
18
|
-
isColumn: !0
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
label: n("sysRole.name"),
|
|
22
|
-
width: "140",
|
|
23
|
-
prop: "roleName",
|
|
24
|
-
isColumn: !0
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
label: n("sysRole.description"),
|
|
28
|
-
prop: "description",
|
|
29
|
-
isColumn: !0
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
label: n("sysRole.sort"),
|
|
33
|
-
width: "100",
|
|
34
|
-
columnType: "slot",
|
|
35
|
-
slotName: "sort",
|
|
36
|
-
isColumn: !0
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
label: n("common.operate"),
|
|
40
|
-
width: "200",
|
|
41
|
-
slotName: "operation",
|
|
42
|
-
columnType: "slot",
|
|
43
|
-
fixed: "right",
|
|
44
|
-
isColumn: !0
|
|
45
|
-
}
|
|
46
|
-
]);
|
|
47
|
-
const s = p({
|
|
48
|
-
visible: !1,
|
|
49
|
-
title: ""
|
|
50
|
-
});
|
|
51
|
-
let f = p({
|
|
52
|
-
roleCode: "",
|
|
53
|
-
roleName: "",
|
|
54
|
-
roleDuty: []
|
|
55
|
-
});
|
|
56
|
-
const T = p({
|
|
57
|
-
list: te,
|
|
58
|
-
del: ae,
|
|
59
|
-
dels: ne,
|
|
60
|
-
up: re,
|
|
61
|
-
down: se
|
|
62
|
-
}), {
|
|
63
|
-
tableData: N,
|
|
64
|
-
listLoading: V,
|
|
65
|
-
selectionRows: S,
|
|
66
|
-
multipleTableRef: B,
|
|
67
|
-
queryFormRef: w,
|
|
68
|
-
handleQuery: d,
|
|
69
|
-
deleteRecord: F,
|
|
70
|
-
deleteRecords: K,
|
|
71
|
-
handleMoveTop: q,
|
|
72
|
-
// 上移
|
|
73
|
-
handleMoveDown: L
|
|
74
|
-
// 下移
|
|
75
|
-
} = ie(n, T, i), {
|
|
76
|
-
parIndex: P,
|
|
77
|
-
tableArray: U,
|
|
78
|
-
getLocalStorageContent: x,
|
|
79
|
-
fixedChange: z,
|
|
80
|
-
isShowChange: A
|
|
81
|
-
} = de(_, "/system/role");
|
|
82
|
-
function M() {
|
|
83
|
-
w.value.resetFields(), d();
|
|
84
|
-
}
|
|
85
|
-
function Q() {
|
|
86
|
-
for (const o in f)
|
|
87
|
-
f[o] = "";
|
|
88
|
-
s.visible = !0, s.title = n("common.add");
|
|
89
|
-
}
|
|
90
|
-
function j(o) {
|
|
91
|
-
s.title = n("common.edit"), ce(o.roleId).then(({ data: r }) => {
|
|
92
|
-
f = { ...r }, s.visible = !0;
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
|
-
function H(o) {
|
|
96
|
-
s.visible = o;
|
|
97
|
-
}
|
|
98
|
-
function J(o) {
|
|
99
|
-
o && d();
|
|
100
|
-
}
|
|
101
|
-
function W(o) {
|
|
102
|
-
S.value = o;
|
|
103
|
-
}
|
|
104
|
-
return x(), _ = U.value, d(), (o, r) => {
|
|
105
|
-
const g = me, h = ue, b = pe, X = _e, $ = Ce, G = fe, O = he, Y = I("Bottom"), E = be, Z = I("Top"), ee = ye, y = Re("hasPerm");
|
|
106
|
-
return c(), R("div", $e, [
|
|
107
|
-
l(X, {
|
|
108
|
-
ref_key: "queryFormRef",
|
|
109
|
-
ref: w,
|
|
110
|
-
inline: !0,
|
|
111
|
-
model: e(i)
|
|
112
|
-
}, {
|
|
113
|
-
default: t(() => [
|
|
114
|
-
l(h, {
|
|
115
|
-
label: o.$t("sysRole.code"),
|
|
116
|
-
prop: "roleCode"
|
|
117
|
-
}, {
|
|
118
|
-
default: t(() => [
|
|
119
|
-
l(g, {
|
|
120
|
-
modelValue: e(i).roleCode,
|
|
121
|
-
"onUpdate:modelValue": r[0] || (r[0] = (a) => e(i).roleCode = a),
|
|
122
|
-
placeholder: o.$t("sysRole.codeRequired"),
|
|
123
|
-
onKeyup: D(e(d), ["enter"])
|
|
124
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup"])
|
|
125
|
-
]),
|
|
126
|
-
_: 1
|
|
127
|
-
}, 8, ["label"]),
|
|
128
|
-
l(h, {
|
|
129
|
-
label: o.$t("sysRole.name"),
|
|
130
|
-
prop: "likeRoleName"
|
|
131
|
-
}, {
|
|
132
|
-
default: t(() => [
|
|
133
|
-
l(g, {
|
|
134
|
-
modelValue: e(i).likeRoleName,
|
|
135
|
-
"onUpdate:modelValue": r[1] || (r[1] = (a) => e(i).likeRoleName = a),
|
|
136
|
-
placeholder: o.$t("sysRole.nameRequired"),
|
|
137
|
-
onKeyup: D(e(d), ["enter"])
|
|
138
|
-
}, null, 8, ["modelValue", "placeholder", "onKeyup"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
}, 8, ["label"]),
|
|
142
|
-
l(h, { class: "search-container" }, {
|
|
143
|
-
default: t(() => [
|
|
144
|
-
l(b, {
|
|
145
|
-
type: "primary",
|
|
146
|
-
onClick: e(d)
|
|
147
|
-
}, {
|
|
148
|
-
default: t(() => [
|
|
149
|
-
m(u(o.$t("common.search")), 1)
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["onClick"]),
|
|
153
|
-
l(b, { onClick: M }, {
|
|
154
|
-
default: t(() => [
|
|
155
|
-
m(u(o.$t("common.reset")), 1)
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
})
|
|
159
|
-
]),
|
|
160
|
-
_: 1
|
|
161
|
-
})
|
|
162
|
-
]),
|
|
163
|
-
_: 1
|
|
164
|
-
}, 8, ["model"]),
|
|
165
|
-
Ee,
|
|
166
|
-
l(O, { justify: "space-between" }, {
|
|
167
|
-
default: t(() => [
|
|
168
|
-
l($, { span: 19 }, {
|
|
169
|
-
default: t(() => [
|
|
170
|
-
C((c(), k(b, {
|
|
171
|
-
type: "primary",
|
|
172
|
-
onClick: Q
|
|
173
|
-
}, {
|
|
174
|
-
default: t(() => [
|
|
175
|
-
m(u(o.$t("common.add")), 1)
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
})), [
|
|
179
|
-
[y, ["rbac:role:add"]]
|
|
180
|
-
]),
|
|
181
|
-
C((c(), k(b, {
|
|
182
|
-
type: "primary",
|
|
183
|
-
onClick: r[2] || (r[2] = (a) => e(K)("roleId"))
|
|
184
|
-
}, {
|
|
185
|
-
default: t(() => [
|
|
186
|
-
m(u(o.$t("common.batchDelete")), 1)
|
|
187
|
-
]),
|
|
188
|
-
_: 1
|
|
189
|
-
})), [
|
|
190
|
-
[y, ["rbac:role:delete"]]
|
|
191
|
-
])
|
|
192
|
-
]),
|
|
193
|
-
_: 1
|
|
194
|
-
}),
|
|
195
|
-
l($, {
|
|
196
|
-
span: 5,
|
|
197
|
-
class: "container-float"
|
|
198
|
-
}, {
|
|
199
|
-
default: t(() => [
|
|
200
|
-
l(G, {
|
|
201
|
-
"table-label": e(_),
|
|
202
|
-
"par-index": e(P),
|
|
203
|
-
onFixedChange: e(z),
|
|
204
|
-
onIsShowChange: e(A)
|
|
205
|
-
}, null, 8, ["table-label", "par-index", "onFixedChange", "onIsShowChange"])
|
|
206
|
-
]),
|
|
207
|
-
_: 1
|
|
208
|
-
})
|
|
209
|
-
]),
|
|
210
|
-
_: 1
|
|
211
|
-
}),
|
|
212
|
-
l(ee, {
|
|
213
|
-
class: "table-top",
|
|
214
|
-
ref_key: "multipleTableRef",
|
|
215
|
-
ref: B,
|
|
216
|
-
"row-keys": "roleId",
|
|
217
|
-
"list-loading": e(V),
|
|
218
|
-
"table-data": e(N),
|
|
219
|
-
"table-label": e(_),
|
|
220
|
-
onTableSelected: W
|
|
221
|
-
}, {
|
|
222
|
-
sort: t((a) => [
|
|
223
|
-
l(E, {
|
|
224
|
-
size: "16",
|
|
225
|
-
onClick: (v) => e(L)(a.data.row.roleId)
|
|
226
|
-
}, {
|
|
227
|
-
default: t(() => [
|
|
228
|
-
l(Y)
|
|
229
|
-
]),
|
|
230
|
-
_: 2
|
|
231
|
-
}, 1032, ["onClick"]),
|
|
232
|
-
l(E, {
|
|
233
|
-
size: "16",
|
|
234
|
-
onClick: (v) => e(q)(a.data.row.roleId)
|
|
235
|
-
}, {
|
|
236
|
-
default: t(() => [
|
|
237
|
-
l(Z)
|
|
238
|
-
]),
|
|
239
|
-
_: 2
|
|
240
|
-
}, 1032, ["onClick"])
|
|
241
|
-
]),
|
|
242
|
-
operation: t((a) => [
|
|
243
|
-
C((c(), R("span", {
|
|
244
|
-
class: "el-button-color",
|
|
245
|
-
onClick: (v) => j(a.data.row)
|
|
246
|
-
}, [
|
|
247
|
-
m(u(o.$t("common.edit")), 1)
|
|
248
|
-
], 8, Ie)), [
|
|
249
|
-
[y, ["rbac:role:update"]]
|
|
250
|
-
]),
|
|
251
|
-
C((c(), R("span", {
|
|
252
|
-
class: "el-button-color dropdown-left",
|
|
253
|
-
onClick: (v) => e(F)(a.data.row.roleId)
|
|
254
|
-
}, [
|
|
255
|
-
m(u(o.$t("common.delete")), 1)
|
|
256
|
-
], 8, De)), [
|
|
257
|
-
[y, ["rbac:role:delete"]]
|
|
258
|
-
])
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
}, 8, ["list-loading", "table-data", "table-label"]),
|
|
262
|
-
e(s).visible ? (c(), k(ge, {
|
|
263
|
-
key: 0,
|
|
264
|
-
dialog: e(s),
|
|
265
|
-
"form-data": e(f),
|
|
266
|
-
onDialogEvent: H,
|
|
267
|
-
onRefresh: J
|
|
268
|
-
}, null, 8, ["dialog", "form-data"])) : ke("", !0)
|
|
269
|
-
]);
|
|
270
|
-
};
|
|
271
|
-
}
|
|
272
|
-
});
|
|
273
|
-
export {
|
|
274
|
-
Ke as default
|
|
275
|
-
};
|