jmash-core 0.0.3 → 0.0.5
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-DZeMj80g.mjs +103 -0
- package/dist/404-D1KiG-19.mjs +37 -0
- package/dist/BarChart-BYm859ri.mjs +203 -0
- package/dist/FileSaver.min-DJ2XURfB.mjs +77 -0
- package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
- package/dist/PieChart-BRbbIH3_.mjs +4 -0
- package/dist/PieChart.vue_vue_type_script_setup_true_lang-XjLBqCzM.mjs +90 -0
- package/dist/RadarChart-Bk_uy6Km.mjs +4 -0
- package/dist/RadarChart.vue_vue_type_script_setup_true_lang-COsDkkQU.mjs +109 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
- package/dist/caret-bottom-DGvkHVYd.mjs +59 -0
- package/dist/common-DuVBTwAv.mjs +36 -0
- package/dist/debounce-XYByYe_I.mjs +81 -0
- package/dist/dropdown2-D_RJXnOl.mjs +160 -0
- package/dist/edit-BTjApg1x.mjs +468 -0
- package/dist/edit-BcLHrCSo.mjs +4 -0
- package/dist/edit-DC3SyT6J.mjs +4 -0
- package/dist/edit-DmP9tv3r.mjs +4 -0
- package/dist/edit-Dr-9X4r3.mjs +4 -0
- package/dist/edit-FjRAXd1B.mjs +832 -0
- package/dist/edit-bpHMc65Q.mjs +4 -0
- package/dist/edit-lB54egzx.mjs +4 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BKutjIoX.mjs +621 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-BVXBx_a-.mjs +221 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-Bm1SAtWP.mjs +225 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CYZNHUnm.mjs +156 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-CZmh3q4f.mjs +287 -0
- package/dist/edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs +136 -0
- package/dist/el-card-Da9MvaWO.mjs +61 -0
- package/dist/el-checkbox-B44P9jFr.mjs +548 -0
- package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
- package/dist/el-col-BY0nB6k3.mjs +135 -0
- package/dist/el-date-picker-CVwJoDEA.mjs +3349 -0
- package/dist/el-dialog-CSWvTJrq.mjs +378 -0
- package/dist/el-dropdown-item-CD8hUpml.mjs +675 -0
- package/dist/el-form-item-f-baJSfe.mjs +1489 -0
- package/dist/el-icon-l0sNRNKZ.mjs +1 -0
- package/dist/el-popover-D8RrIMbA.mjs +159 -0
- package/dist/el-popper-C13p_dqu.mjs +1656 -0
- package/dist/el-progress-CHUzIxT1.mjs +898 -0
- package/dist/el-radio-BpdPD-RN.mjs +251 -0
- package/dist/el-scrollbar-B8QteGV0.mjs +607 -0
- package/dist/el-select-ChOy6agQ.mjs +1040 -0
- package/dist/el-switch-cqWxQwcb.mjs +254 -0
- package/dist/el-table-c9Sup56w.mjs +3168 -0
- package/dist/el-tag-l0sNRNKZ.mjs +1 -0
- package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
- package/dist/el-tree-select-CKOwMXR7.mjs +1316 -0
- package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWrcOBGS.mjs +116 -0
- package/dist/index-B6wY38lY.mjs +13173 -0
- package/dist/index-BH-_mfRR.mjs +107 -0
- package/dist/index-BfhiNV8H.mjs +486 -0
- package/dist/index-BjqMDjBg.mjs +43994 -0
- package/dist/index-BuHauank.mjs +13 -0
- package/dist/index-CBJwB8q2.mjs +633 -0
- package/dist/index-CGCQHwLq.mjs +482 -0
- package/dist/index-CU0iVHXP.mjs +281 -0
- package/dist/index-CYxGYOaT.mjs +504 -0
- package/dist/index-Cjii0qCc.mjs +278 -0
- package/dist/index-Czh2Pqwr.mjs +63 -0
- package/dist/index-DJ08yxAP.mjs +11 -0
- package/dist/index-DUKlDGLk.mjs +2589 -0
- package/dist/index-DUVtKaDI.mjs +515 -0
- package/dist/index-Dgd4Zhxz.mjs +93 -0
- package/dist/index-Di5--Hao.mjs +328 -0
- package/dist/index-DjkMA-Wh.mjs +40 -0
- package/dist/index-DrKW_cyG.mjs +247 -0
- package/dist/index-LuiPOgGW.mjs +291 -0
- package/dist/index-VD-Tf32c.mjs +74 -0
- package/dist/index-cRrjzkNb.mjs +452 -0
- package/dist/index-cp7l4CIE.mjs +134 -0
- package/dist/index-dKz1IRM_.mjs +279 -0
- package/dist/index-dLPnFa10.mjs +964 -0
- package/dist/index-uykKwY2Z.mjs +12 -0
- package/dist/index-vp1_Sd0A.mjs +55 -0
- package/dist/index.mjs +22 -273
- package/dist/index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs +286 -0
- package/dist/index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs +58 -0
- package/dist/isUndefined-CUQZk6oB.mjs +6 -0
- package/dist/moment-CMYwqyVT.mjs +2579 -0
- package/dist/picture-kDaEiPHi.mjs +599 -0
- package/dist/profile-Sn98YUfh.mjs +319 -0
- package/dist/refs-COP_DuTD.mjs +9 -0
- package/dist/style.css +1 -1
- package/dist/types-BolK_Oyb.mjs +205 -0
- package/dist/updatePwd-B3rEU05i.mjs +4 -0
- package/dist/updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs +151 -0
- package/dist/useColumnToggleTable-CC9EXcfR.mjs +272 -0
- package/dts/src/App.vue.d.ts +1 -1
- package/dts/src/api/auth/index.d.ts +41 -0
- package/dts/src/api/auth/types.d.ts +180 -0
- package/dts/src/api/file/index.d.ts +14 -0
- package/dts/src/api/file/types.d.ts +7 -0
- package/dts/src/api/system/dept/index.d.ts +91 -0
- package/dts/src/api/system/dept/types.d.ts +63 -0
- package/dts/src/api/system/index.d.ts +7 -0
- package/dts/src/api/system/job/index.d.ts +42 -0
- package/dts/src/api/system/job/types.d.ts +60 -0
- package/dts/src/api/system/log/index.d.ts +29 -0
- package/dts/src/api/system/log/types.d.ts +42 -0
- package/dts/src/api/system/menu/index.d.ts +103 -0
- package/dts/src/api/system/menu/types.d.ts +96 -0
- package/dts/src/api/system/module/index.d.ts +57 -0
- package/dts/src/api/system/module/types.d.ts +13 -0
- package/dts/src/api/system/operation/index.d.ts +51 -0
- package/dts/src/api/system/operation/types.d.ts +12 -0
- package/dts/src/api/system/permission/index.d.ts +50 -0
- package/dts/src/api/system/permission/types.d.ts +12 -0
- package/dts/src/api/system/role/index.d.ts +77 -0
- package/dts/src/api/system/role/types.d.ts +26 -0
- package/dts/src/api/system/user/index.d.ts +133 -0
- package/dts/src/api/system/user/types.d.ts +53 -0
- package/dts/src/api/system/userLog/index.d.ts +29 -0
- package/dts/src/api/system/userLog/types.d.ts +22 -0
- package/dts/src/assets/icons/index.d.ts +0 -0
- package/dts/src/components/{icons/IconDocumentation.vue.d.ts → Breadcrumb/index.vue.d.ts} +1 -1
- package/dts/src/components/DictRadio/index.vue.d.ts +23 -0
- package/dts/src/components/DictSelect/index.vue.d.ts +41 -0
- package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
- package/dts/src/components/{TheWelcome.vue.d.ts → GithubCorner/index.vue.d.ts} +1 -1
- package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
- package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
- package/dts/src/components/IconSelect/requireIcons.d.ts +2 -0
- package/dts/src/components/{icons/IconEcosystem.vue.d.ts → LangSelect/index.vue.d.ts} +1 -1
- package/dts/src/components/Pagination/index.vue.d.ts +88 -0
- package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
- package/dts/src/components/{icons/IconCommunity.vue.d.ts → SizeSelect/index.vue.d.ts} +1 -1
- package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
- package/dts/src/components/Table/index.vue.d.ts +73 -0
- package/dts/src/components/TableSet/index.vue.d.ts +29 -0
- package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
- package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
- package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
- package/dts/src/components/Upload/index.vue.d.ts +18 -0
- package/dts/src/components/WangEditor/index.vue.d.ts +18 -0
- package/dts/src/directive/index.d.ts +5 -0
- package/dts/src/directive/permission/index.d.ts +9 -0
- package/dts/src/enums/MenuTypeEnum.d.ts +18 -0
- package/dts/src/hooks/useColumnToggleTable.d.ts +7 -0
- package/dts/src/index.d.ts +29 -3
- package/dts/src/lang/index.d.ts +534 -0
- package/dts/src/lang/package/en.d.ts +261 -0
- package/dts/src/lang/package/zh-cn.d.ts +275 -0
- package/dts/src/layout/components/AppMain.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +2 -0
- package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/Item.vue.d.ts +23 -0
- package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +24 -0
- package/dts/src/layout/components/Sidebar/Link.vue.d.ts +19 -0
- package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +12 -0
- package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +42 -0
- package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +2 -0
- package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
- package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +16 -0
- package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
- package/dts/src/layout/components/index.d.ts +4 -0
- package/dts/src/layout/index.vue.d.ts +2 -0
- package/dts/src/layout/main.vue.d.ts +2 -0
- package/dts/src/main.d.ts +5 -1
- package/dts/src/permission.d.ts +1 -0
- package/dts/src/router/index.d.ts +10 -0
- package/dts/src/settings.d.ts +13 -0
- package/dts/src/stores/index.d.ts +7 -0
- package/dts/src/stores/modules/tagsView.d.ts +82 -0
- package/dts/src/utils/common.d.ts +6 -0
- package/dts/src/utils/grpc.d.ts +2 -0
- package/dts/src/utils/i18n.d.ts +1 -0
- package/dts/src/utils/index.d.ts +24 -0
- package/dts/src/utils/request.d.ts +2 -0
- package/dts/src/utils/resize.d.ts +1 -0
- package/dts/src/utils/scroll-to.d.ts +6 -0
- package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
- package/dts/src/views/dashboard/index.vue.d.ts +2 -0
- package/dts/src/views/error-page/401.vue.d.ts +2 -0
- package/dts/src/views/error-page/404.vue.d.ts +2 -0
- package/dts/src/views/login/components/types.vue.d.ts +2 -0
- package/dts/src/views/login/index.vue.d.ts +2 -0
- package/dts/src/views/my/profile.vue.d.ts +2 -0
- package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
- package/dts/src/views/redirect/index.vue.d.ts +2 -0
- package/dts/src/views/system/dept/edit.vue.d.ts +31 -0
- package/dts/src/views/system/dept/index.vue.d.ts +2 -0
- package/dts/src/views/system/job/edit.vue.d.ts +30 -0
- package/dts/src/views/system/job/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/oplog/index.vue.d.ts +2 -0
- package/dts/src/views/system/log/userLog/index.vue.d.ts +2 -0
- package/dts/src/views/system/menu/edit.vue.d.ts +31 -0
- package/dts/src/views/system/menu/index.vue.d.ts +2 -0
- package/dts/src/views/system/module/edit.vue.d.ts +31 -0
- package/dts/src/views/system/module/index.vue.d.ts +2 -0
- package/dts/src/views/system/operation/edit.vue.d.ts +31 -0
- package/dts/src/views/system/operation/index.vue.d.ts +2 -0
- package/dts/src/views/system/permission/edit.vue.d.ts +30 -0
- package/dts/src/views/system/permission/index.vue.d.ts +2 -0
- package/dts/src/views/system/role/edit.vue.d.ts +31 -0
- package/dts/src/views/system/role/index.vue.d.ts +2 -0
- package/dts/src/views/system/user/edit.vue.d.ts +31 -0
- package/dts/src/views/system/user/index.vue.d.ts +2 -0
- package/dts/tsconfig.tsbuildinfo +1 -1
- package/package.json +31 -2
- package/dts/src/components/HelloWorld.vue.d.ts +0 -15
- package/dts/src/components/WelcomeItem.vue.d.ts +0 -11
- package/dts/src/components/icons/IconSupport.vue.d.ts +0 -2
- package/dts/src/components/icons/IconTooling.vue.d.ts +0 -2
- package/dts/src/stores/counter.d.ts +0 -13
- package/dts/src/views/AboutView.vue.d.ts +0 -2
- package/dts/src/views/HomeView.vue.d.ts +0 -2
|
@@ -0,0 +1,328 @@
|
|
|
1
|
+
import { u as q, a as X, E as F, b as R, c as se, d as le, e as ne, g as ae, s as re, r as ce, f as ie, h as de } from "./index-B6wY38lY.mjs";
|
|
2
|
+
import { E as pe } from "./el-card-Da9MvaWO.mjs";
|
|
3
|
+
import { _ as ue, E as me } from "./picture-kDaEiPHi.mjs";
|
|
4
|
+
import "./el-tooltip-l0sNRNKZ.mjs";
|
|
5
|
+
import { E as _e } from "./el-popper-C13p_dqu.mjs";
|
|
6
|
+
import { E as N, a as ge } from "./el-form-item-f-baJSfe.mjs";
|
|
7
|
+
import "./el-tag-l0sNRNKZ.mjs";
|
|
8
|
+
import { E as fe, a as he } from "./el-select-ChOy6agQ.mjs";
|
|
9
|
+
import "./el-scrollbar-B8QteGV0.mjs";
|
|
10
|
+
import { E as ve } from "./el-switch-cqWxQwcb.mjs";
|
|
11
|
+
import { defineComponent as O, openBlock as w, createBlock as U, withCtx as l, createVNode as e, unref as o, createTextVNode as E, createElementVNode as n, ref as i, watchEffect as we, computed as Ee, onMounted as be, resolveComponent as ke, createElementBlock as K, isRef as ye, toDisplayString as T, Fragment as Ce, renderList as Se, createCommentVNode as Ve, withKeys as M, withModifiers as xe, withDirectives as Ie, vShow as $e, pushScopeId as De, popScopeId as Le } from "vue";
|
|
12
|
+
import { useRoute as Re } from "vue-router";
|
|
13
|
+
import { E as Te, a as qe, b as Ue } from "./el-dropdown-item-CD8hUpml.mjs";
|
|
14
|
+
import { _ } from "./index-DjkMA-Wh.mjs";
|
|
15
|
+
import { E as ze } from "./index-BH-_mfRR.mjs";
|
|
16
|
+
import { _ as Ae } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
17
|
+
const Be = /* @__PURE__ */ O({
|
|
18
|
+
__name: "index",
|
|
19
|
+
setup(g) {
|
|
20
|
+
const d = q(), { locale: V } = X();
|
|
21
|
+
function x(c) {
|
|
22
|
+
V.value = c, d.changeLanguage(c), c === "en" ? F.success("Switch Language Successful!") : F.success("切换语言成功!");
|
|
23
|
+
}
|
|
24
|
+
return (c, z) => {
|
|
25
|
+
const f = _, b = Te, h = qe, k = Ue;
|
|
26
|
+
return w(), U(k, {
|
|
27
|
+
trigger: "click",
|
|
28
|
+
onCommand: x
|
|
29
|
+
}, {
|
|
30
|
+
dropdown: l(() => [
|
|
31
|
+
e(h, null, {
|
|
32
|
+
default: l(() => [
|
|
33
|
+
e(b, {
|
|
34
|
+
disabled: o(d).language === "zh-cn",
|
|
35
|
+
command: "zh-cn"
|
|
36
|
+
}, {
|
|
37
|
+
default: l(() => [
|
|
38
|
+
E(" 中文 ")
|
|
39
|
+
]),
|
|
40
|
+
_: 1
|
|
41
|
+
}, 8, ["disabled"]),
|
|
42
|
+
e(b, {
|
|
43
|
+
disabled: o(d).language === "en",
|
|
44
|
+
command: "en"
|
|
45
|
+
}, {
|
|
46
|
+
default: l(() => [
|
|
47
|
+
E(" English ")
|
|
48
|
+
]),
|
|
49
|
+
_: 1
|
|
50
|
+
}, 8, ["disabled"])
|
|
51
|
+
]),
|
|
52
|
+
_: 1
|
|
53
|
+
})
|
|
54
|
+
]),
|
|
55
|
+
default: l(() => [
|
|
56
|
+
n("div", null, [
|
|
57
|
+
e(f, { "icon-class": "language" })
|
|
58
|
+
])
|
|
59
|
+
]),
|
|
60
|
+
_: 1
|
|
61
|
+
});
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
}), j = (g) => (De("data-v-8adbbfc2"), g = g(), Le(), g), Fe = { class: "login-container" }, Ne = { class: "absolute top-0 flex items-center justify-end px-5 h-20 w-full" }, Ke = { class: "text-center relative" }, Me = { class: "p-2" }, Xe = { class: "p-2" }, Oe = { class: "p-2" }, je = { class: "p-2" }, Pe = { class: "captcha" }, We = { class: "image-slot" }, He = { class: "forgot-pwd" }, Qe = { class: "absolute bottom-1 text-[10px] text-center" }, Ze = /* @__PURE__ */ j(() => /* @__PURE__ */ n("p", null, " Copyright © 2024 All Rights Reserved. Apache 2.0 协议. ", -1)), Ge = /* @__PURE__ */ j(() => /* @__PURE__ */ n("p", null, "备案号: XXXX .", -1)), Je = [
|
|
65
|
+
Ze,
|
|
66
|
+
Ge
|
|
67
|
+
], Ye = 992, eo = /* @__PURE__ */ O({
|
|
68
|
+
__name: "index",
|
|
69
|
+
setup(g) {
|
|
70
|
+
const d = R(), { title: V, version: x } = d, c = i(d.theme === "dark"), z = (t) => {
|
|
71
|
+
ne(t), d.changeSetting({
|
|
72
|
+
key: "theme",
|
|
73
|
+
value: t ? "dark" : "light"
|
|
74
|
+
});
|
|
75
|
+
}, f = q(), { width: b } = se();
|
|
76
|
+
we(() => {
|
|
77
|
+
b.value < Ye ? f.toggleDevice("mobile") : f.toggleDevice("desktop");
|
|
78
|
+
});
|
|
79
|
+
const h = i(!1), k = i(!1), y = i(!1), A = i(), B = i(N), I = i([]), r = i({
|
|
80
|
+
scope: "",
|
|
81
|
+
username: "",
|
|
82
|
+
password: ""
|
|
83
|
+
}), { t: $ } = X(), P = Ee(() => {
|
|
84
|
+
const t = f.language === "en" ? "Please enter " : "请输入";
|
|
85
|
+
return {
|
|
86
|
+
username: [
|
|
87
|
+
{
|
|
88
|
+
required: !0,
|
|
89
|
+
trigger: "blur",
|
|
90
|
+
message: `${t}${$("login.username")}`
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
password: [
|
|
94
|
+
{
|
|
95
|
+
required: !0,
|
|
96
|
+
trigger: "blur",
|
|
97
|
+
validator: (s, m, p) => {
|
|
98
|
+
m.length < 5 ? p(new Error("The password can not be less than 5 digits")) : p();
|
|
99
|
+
},
|
|
100
|
+
message: `${t}${$("login.password")}`
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
captchaCode: [
|
|
104
|
+
{
|
|
105
|
+
required: !0,
|
|
106
|
+
trigger: "blur",
|
|
107
|
+
message: `${t}${$("login.captchaCode")}`
|
|
108
|
+
}
|
|
109
|
+
]
|
|
110
|
+
};
|
|
111
|
+
});
|
|
112
|
+
function W(t) {
|
|
113
|
+
const { key: s } = t;
|
|
114
|
+
k.value = s && s.length === 1 && s >= "A" && s <= "Z";
|
|
115
|
+
}
|
|
116
|
+
function C() {
|
|
117
|
+
ae().then(({ data: t }) => {
|
|
118
|
+
r.value.captchaKey = t.captchaId, A.value = t.base64Image;
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
function H() {
|
|
122
|
+
re().then(({ data: t }) => {
|
|
123
|
+
console.log(t), I.value = t.roleList;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
const Q = Re(), Z = le();
|
|
127
|
+
function D() {
|
|
128
|
+
B.value.validate((t) => {
|
|
129
|
+
t && (h.value = !0, Z.login(r.value).then(() => {
|
|
130
|
+
const s = Q.query;
|
|
131
|
+
console.log(s);
|
|
132
|
+
const m = s.redirect ?? "/";
|
|
133
|
+
console.log(m);
|
|
134
|
+
const p = Object.keys(s).reduce(
|
|
135
|
+
(v, u) => (console.log(v[u], s[u]), u !== "redirect" && (v[u] = s[u]), v),
|
|
136
|
+
{}
|
|
137
|
+
);
|
|
138
|
+
console.log(p), ce.push({ path: m, query: p }), C();
|
|
139
|
+
}).catch(() => {
|
|
140
|
+
C();
|
|
141
|
+
}).finally(() => {
|
|
142
|
+
h.value = !1;
|
|
143
|
+
}));
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
return be(() => {
|
|
147
|
+
C(), H();
|
|
148
|
+
const t = R().theme;
|
|
149
|
+
R().changeSetting({ key: "theme", value: t }), t == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
|
|
150
|
+
}), (t, s) => {
|
|
151
|
+
const m = ve, p = ze, v = fe, u = he, S = ge, L = ie, G = _e, J = ue, Y = me, ee = ke("router-link"), oe = de, te = pe;
|
|
152
|
+
return w(), K("div", Fe, [
|
|
153
|
+
n("div", Ne, [
|
|
154
|
+
e(m, {
|
|
155
|
+
modelValue: o(c),
|
|
156
|
+
"onUpdate:modelValue": s[0] || (s[0] = (a) => ye(c) ? c.value = a : null),
|
|
157
|
+
"inline-prompt": "",
|
|
158
|
+
"active-color": "var(--el-fill-color-dark)",
|
|
159
|
+
"inactive-color": "var(--el-color-primary)",
|
|
160
|
+
onChange: z
|
|
161
|
+
}, null, 8, ["modelValue"]),
|
|
162
|
+
e(Be, { class: "ml-2 cursor-pointer" })
|
|
163
|
+
]),
|
|
164
|
+
e(te, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
|
|
165
|
+
default: l(() => [
|
|
166
|
+
n("div", Ke, [
|
|
167
|
+
n("h2", null, T(o(V)), 1),
|
|
168
|
+
e(p, { class: "ml-2 absolute top-0 right-0" }, {
|
|
169
|
+
default: l(() => [
|
|
170
|
+
E(T(o(x)), 1)
|
|
171
|
+
]),
|
|
172
|
+
_: 1
|
|
173
|
+
})
|
|
174
|
+
]),
|
|
175
|
+
e(o(N), {
|
|
176
|
+
ref_key: "loginFormRef",
|
|
177
|
+
ref: B,
|
|
178
|
+
model: o(r),
|
|
179
|
+
rules: o(P),
|
|
180
|
+
size: "large",
|
|
181
|
+
class: "login-form"
|
|
182
|
+
}, {
|
|
183
|
+
default: l(() => [
|
|
184
|
+
o(I).length > 0 ? (w(), U(S, {
|
|
185
|
+
key: 0,
|
|
186
|
+
prop: "scope"
|
|
187
|
+
}, {
|
|
188
|
+
default: l(() => [
|
|
189
|
+
n("div", Me, [
|
|
190
|
+
e(_, { "icon-class": "user" })
|
|
191
|
+
]),
|
|
192
|
+
e(u, {
|
|
193
|
+
modelValue: o(r).scope,
|
|
194
|
+
"onUpdate:modelValue": s[1] || (s[1] = (a) => o(r).scope = a),
|
|
195
|
+
placeholder: "Select",
|
|
196
|
+
class: "flex-1"
|
|
197
|
+
}, {
|
|
198
|
+
default: l(() => [
|
|
199
|
+
(w(!0), K(Ce, null, Se(o(I), (a) => (w(), U(v, {
|
|
200
|
+
key: a.roleCode,
|
|
201
|
+
label: a.roleName,
|
|
202
|
+
value: a.roleCode
|
|
203
|
+
}, null, 8, ["label", "value"]))), 128))
|
|
204
|
+
]),
|
|
205
|
+
_: 1
|
|
206
|
+
}, 8, ["modelValue"])
|
|
207
|
+
]),
|
|
208
|
+
_: 1
|
|
209
|
+
})) : Ve("", !0),
|
|
210
|
+
e(S, { prop: "username" }, {
|
|
211
|
+
default: l(() => [
|
|
212
|
+
n("div", Xe, [
|
|
213
|
+
e(_, { "icon-class": "user" })
|
|
214
|
+
]),
|
|
215
|
+
e(L, {
|
|
216
|
+
ref: "username",
|
|
217
|
+
modelValue: o(r).username,
|
|
218
|
+
"onUpdate:modelValue": s[2] || (s[2] = (a) => o(r).username = a),
|
|
219
|
+
class: "flex-1",
|
|
220
|
+
placeholder: t.$t("login.username"),
|
|
221
|
+
name: "username"
|
|
222
|
+
}, null, 8, ["modelValue", "placeholder"])
|
|
223
|
+
]),
|
|
224
|
+
_: 1
|
|
225
|
+
}),
|
|
226
|
+
e(G, {
|
|
227
|
+
disabled: o(k) === !1,
|
|
228
|
+
content: "Caps lock is On",
|
|
229
|
+
placement: "right"
|
|
230
|
+
}, {
|
|
231
|
+
default: l(() => [
|
|
232
|
+
e(S, { prop: "password" }, {
|
|
233
|
+
default: l(() => [
|
|
234
|
+
n("span", Oe, [
|
|
235
|
+
e(_, { "icon-class": "password" })
|
|
236
|
+
]),
|
|
237
|
+
e(L, {
|
|
238
|
+
modelValue: o(r).password,
|
|
239
|
+
"onUpdate:modelValue": s[3] || (s[3] = (a) => o(r).password = a),
|
|
240
|
+
class: "flex-1",
|
|
241
|
+
placeholder: t.$t("login.password"),
|
|
242
|
+
type: o(y) === !1 ? "password" : "input",
|
|
243
|
+
name: "password",
|
|
244
|
+
onKeyup: [
|
|
245
|
+
W,
|
|
246
|
+
M(D, ["enter"])
|
|
247
|
+
]
|
|
248
|
+
}, null, 8, ["modelValue", "placeholder", "type"]),
|
|
249
|
+
n("span", {
|
|
250
|
+
class: "mr-2",
|
|
251
|
+
onClick: s[4] || (s[4] = (a) => y.value = !o(y))
|
|
252
|
+
}, [
|
|
253
|
+
e(_, {
|
|
254
|
+
"icon-class": o(y) === !1 ? "eye" : "eye-open",
|
|
255
|
+
class: "cursor-pointer"
|
|
256
|
+
}, null, 8, ["icon-class"])
|
|
257
|
+
])
|
|
258
|
+
]),
|
|
259
|
+
_: 1
|
|
260
|
+
})
|
|
261
|
+
]),
|
|
262
|
+
_: 1
|
|
263
|
+
}, 8, ["disabled"]),
|
|
264
|
+
e(S, { prop: "captchaCode" }, {
|
|
265
|
+
default: l(() => [
|
|
266
|
+
n("span", je, [
|
|
267
|
+
e(_, { "icon-class": "captcha" })
|
|
268
|
+
]),
|
|
269
|
+
e(L, {
|
|
270
|
+
modelValue: o(r).captchaCode,
|
|
271
|
+
"onUpdate:modelValue": s[5] || (s[5] = (a) => o(r).captchaCode = a),
|
|
272
|
+
"auto-complete": "off",
|
|
273
|
+
placeholder: t.$t("login.captchaCode"),
|
|
274
|
+
class: "w-[60%]",
|
|
275
|
+
onKeyup: M(D, ["enter"])
|
|
276
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
277
|
+
n("div", Pe, [
|
|
278
|
+
e(Y, {
|
|
279
|
+
src: o(A),
|
|
280
|
+
onClick: C,
|
|
281
|
+
class: "w-[130px] h-[50px] cursor-pointer"
|
|
282
|
+
}, {
|
|
283
|
+
error: l(() => [
|
|
284
|
+
n("div", We, [
|
|
285
|
+
e(J)
|
|
286
|
+
])
|
|
287
|
+
]),
|
|
288
|
+
_: 1
|
|
289
|
+
}, 8, ["src"])
|
|
290
|
+
])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
}),
|
|
294
|
+
n("div", He, [
|
|
295
|
+
e(ee, { to: "/secondLogin" }, {
|
|
296
|
+
default: l(() => [
|
|
297
|
+
E("手机号/邮箱登录")
|
|
298
|
+
]),
|
|
299
|
+
_: 1
|
|
300
|
+
})
|
|
301
|
+
]),
|
|
302
|
+
e(oe, {
|
|
303
|
+
loading: o(h),
|
|
304
|
+
type: "primary",
|
|
305
|
+
class: "w-full",
|
|
306
|
+
onClick: xe(D, ["prevent"])
|
|
307
|
+
}, {
|
|
308
|
+
default: l(() => [
|
|
309
|
+
E(T(t.$t("login.login")), 1)
|
|
310
|
+
]),
|
|
311
|
+
_: 1
|
|
312
|
+
}, 8, ["loading"])
|
|
313
|
+
]),
|
|
314
|
+
_: 1
|
|
315
|
+
}, 8, ["model", "rules"])
|
|
316
|
+
]),
|
|
317
|
+
_: 1
|
|
318
|
+
}),
|
|
319
|
+
Ie(n("div", Qe, Je, 512), [
|
|
320
|
+
[$e, o(q)().device == "desktop"]
|
|
321
|
+
])
|
|
322
|
+
]);
|
|
323
|
+
};
|
|
324
|
+
}
|
|
325
|
+
}), vo = /* @__PURE__ */ Ae(eo, [["__scopeId", "data-v-8adbbfc2"]]);
|
|
326
|
+
export {
|
|
327
|
+
vo as default
|
|
328
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { defineComponent as o, computed as i, openBlock as l, createElementBlock as r, normalizeStyle as s, createElementVNode as c, unref as a } from "vue";
|
|
2
|
+
import { _ as f } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
3
|
+
const d = ["xlink:href", "fill"], p = /* @__PURE__ */ o({
|
|
4
|
+
__name: "index",
|
|
5
|
+
props: {
|
|
6
|
+
prefix: {
|
|
7
|
+
type: String,
|
|
8
|
+
default: "icon"
|
|
9
|
+
},
|
|
10
|
+
iconClass: {
|
|
11
|
+
type: String,
|
|
12
|
+
required: !1,
|
|
13
|
+
default: ""
|
|
14
|
+
},
|
|
15
|
+
color: {
|
|
16
|
+
type: String,
|
|
17
|
+
default: ""
|
|
18
|
+
},
|
|
19
|
+
size: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: "1em"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
setup(e) {
|
|
25
|
+
const t = e, n = i(() => `#${t.prefix}-${t.iconClass}`);
|
|
26
|
+
return (u, m) => (l(), r("svg", {
|
|
27
|
+
"aria-hidden": "true",
|
|
28
|
+
class: "svg-icon",
|
|
29
|
+
style: s("width:" + e.size + ";height:" + e.size)
|
|
30
|
+
}, [
|
|
31
|
+
c("use", {
|
|
32
|
+
"xlink:href": a(n),
|
|
33
|
+
fill: e.color
|
|
34
|
+
}, null, 8, d)
|
|
35
|
+
], 4));
|
|
36
|
+
}
|
|
37
|
+
}), h = /* @__PURE__ */ f(p, [["__scopeId", "data-v-4baaf235"]]);
|
|
38
|
+
export {
|
|
39
|
+
h as _
|
|
40
|
+
};
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
import { _ as Z } from "./index-CBJwB8q2.mjs";
|
|
2
|
+
import { _ as ee } from "./index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs";
|
|
3
|
+
import { a as oe, d as te, f as le, h as ae } from "./index-B6wY38lY.mjs";
|
|
4
|
+
import { E as ne, a as re } from "./el-col-BY0nB6k3.mjs";
|
|
5
|
+
import { u as ie, a as se, _ as me } from "./useColumnToggleTable-CC9EXcfR.mjs";
|
|
6
|
+
import { a as de, E as pe } from "./el-form-item-f-baJSfe.mjs";
|
|
7
|
+
import { defineComponent as ue, reactive as u, resolveDirective as ce, openBlock as s, createElementBlock as v, createVNode as l, withCtx as n, withKeys as R, unref as o, createTextVNode as d, toDisplayString as p, withDirectives as C, createBlock as k, isRef as fe, createCommentVNode as S, createElementVNode as _e } from "vue";
|
|
8
|
+
import { _ as be } from "./edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs";
|
|
9
|
+
import { g as ge, d as ye, b as Ce } from "./index-VD-Tf32c.mjs";
|
|
10
|
+
const ke = { class: "app-container" }, he = /* @__PURE__ */ _e("div", { class: "clear" }, null, -1), Pe = ["onClick"], ve = ["onClick"], Fe = /* @__PURE__ */ ue({
|
|
11
|
+
__name: "index",
|
|
12
|
+
setup($e) {
|
|
13
|
+
const { t: m } = oe(), r = u({
|
|
14
|
+
tenant: te().user.tenant,
|
|
15
|
+
curPage: 1,
|
|
16
|
+
pageSize: 10
|
|
17
|
+
});
|
|
18
|
+
let c = u({
|
|
19
|
+
permCode: "",
|
|
20
|
+
permName: ""
|
|
21
|
+
}), f = u([
|
|
22
|
+
{
|
|
23
|
+
label: m("sysPerm.code"),
|
|
24
|
+
prop: "permCode",
|
|
25
|
+
isColumn: !0
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
label: m("sysPerm.name"),
|
|
29
|
+
prop: "permName",
|
|
30
|
+
isColumn: !0
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: m("common.operate"),
|
|
34
|
+
width: "200",
|
|
35
|
+
columnType: "slot",
|
|
36
|
+
slotName: "operation",
|
|
37
|
+
fixed: "right",
|
|
38
|
+
isColumn: !0
|
|
39
|
+
}
|
|
40
|
+
]);
|
|
41
|
+
const i = u({
|
|
42
|
+
visible: !1,
|
|
43
|
+
title: ""
|
|
44
|
+
}), N = u({
|
|
45
|
+
list: ge,
|
|
46
|
+
del: ye,
|
|
47
|
+
dels: Ce
|
|
48
|
+
}), {
|
|
49
|
+
tableData: V,
|
|
50
|
+
total: _,
|
|
51
|
+
listLoading: D,
|
|
52
|
+
selectionRows: I,
|
|
53
|
+
multipleTableRef: T,
|
|
54
|
+
queryFormRef: $,
|
|
55
|
+
getList: h,
|
|
56
|
+
handleQuery: b,
|
|
57
|
+
deleteRecord: F,
|
|
58
|
+
deleteRecords: U
|
|
59
|
+
} = ie(m, N, r), {
|
|
60
|
+
parIndex: q,
|
|
61
|
+
tableArray: K,
|
|
62
|
+
getLocalStorageContent: L,
|
|
63
|
+
fixedChange: B,
|
|
64
|
+
isShowChange: z
|
|
65
|
+
} = se(f, "/system/permission");
|
|
66
|
+
function x() {
|
|
67
|
+
$.value.resetFields(), b();
|
|
68
|
+
}
|
|
69
|
+
function A() {
|
|
70
|
+
for (const e in c)
|
|
71
|
+
c[e] = "";
|
|
72
|
+
i.visible = !0, i.title = m("common.add");
|
|
73
|
+
}
|
|
74
|
+
function Q(e) {
|
|
75
|
+
I.value = e;
|
|
76
|
+
}
|
|
77
|
+
function j(e) {
|
|
78
|
+
i.title = m("common.edit"), i.visible = !0, c = { ...e };
|
|
79
|
+
}
|
|
80
|
+
function G(e) {
|
|
81
|
+
i.visible = e;
|
|
82
|
+
}
|
|
83
|
+
function H(e) {
|
|
84
|
+
e && h();
|
|
85
|
+
}
|
|
86
|
+
return L(), f = K.value, h(), (e, a) => {
|
|
87
|
+
const w = le, P = de, g = ae, J = pe, E = ne, M = me, O = re, W = ee, X = Z, y = ce("hasPerm");
|
|
88
|
+
return s(), v("div", ke, [
|
|
89
|
+
l(J, {
|
|
90
|
+
ref_key: "queryFormRef",
|
|
91
|
+
ref: $,
|
|
92
|
+
model: r,
|
|
93
|
+
inline: !0
|
|
94
|
+
}, {
|
|
95
|
+
default: n(() => [
|
|
96
|
+
l(P, {
|
|
97
|
+
label: e.$t("sysPerm.code"),
|
|
98
|
+
prop: "likePermCode"
|
|
99
|
+
}, {
|
|
100
|
+
default: n(() => [
|
|
101
|
+
l(w, {
|
|
102
|
+
modelValue: r.likePermCode,
|
|
103
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => r.likePermCode = t),
|
|
104
|
+
placeholder: e.$t("sysPerm.codeRequired"),
|
|
105
|
+
onKeyup: R(o(b), ["enter"])
|
|
106
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup"])
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}, 8, ["label"]),
|
|
110
|
+
l(P, {
|
|
111
|
+
label: e.$t("sysPerm.name"),
|
|
112
|
+
prop: "likePermName"
|
|
113
|
+
}, {
|
|
114
|
+
default: n(() => [
|
|
115
|
+
l(w, {
|
|
116
|
+
modelValue: r.likePermName,
|
|
117
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => r.likePermName = t),
|
|
118
|
+
placeholder: e.$t("sysPerm.nameRequired"),
|
|
119
|
+
onKeyup: R(o(b), ["enter"])
|
|
120
|
+
}, null, 8, ["modelValue", "placeholder", "onKeyup"])
|
|
121
|
+
]),
|
|
122
|
+
_: 1
|
|
123
|
+
}, 8, ["label"]),
|
|
124
|
+
l(P, { class: "search-container" }, {
|
|
125
|
+
default: n(() => [
|
|
126
|
+
l(g, {
|
|
127
|
+
type: "primary",
|
|
128
|
+
onClick: o(b)
|
|
129
|
+
}, {
|
|
130
|
+
default: n(() => [
|
|
131
|
+
d(p(e.$t("common.search")), 1)
|
|
132
|
+
]),
|
|
133
|
+
_: 1
|
|
134
|
+
}, 8, ["onClick"]),
|
|
135
|
+
l(g, { onClick: x }, {
|
|
136
|
+
default: n(() => [
|
|
137
|
+
d(p(e.$t("common.reset")), 1)
|
|
138
|
+
]),
|
|
139
|
+
_: 1
|
|
140
|
+
})
|
|
141
|
+
]),
|
|
142
|
+
_: 1
|
|
143
|
+
})
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["model"]),
|
|
147
|
+
he,
|
|
148
|
+
l(O, { justify: "space-between" }, {
|
|
149
|
+
default: n(() => [
|
|
150
|
+
l(E, { span: 19 }, {
|
|
151
|
+
default: n(() => [
|
|
152
|
+
C((s(), k(g, {
|
|
153
|
+
type: "primary",
|
|
154
|
+
onClick: A
|
|
155
|
+
}, {
|
|
156
|
+
default: n(() => [
|
|
157
|
+
d(p(e.$t("common.add")), 1)
|
|
158
|
+
]),
|
|
159
|
+
_: 1
|
|
160
|
+
})), [
|
|
161
|
+
[y, ["rbac:perm:add"]]
|
|
162
|
+
]),
|
|
163
|
+
C((s(), k(g, {
|
|
164
|
+
type: "primary",
|
|
165
|
+
onClick: a[2] || (a[2] = (t) => o(U)("permId"))
|
|
166
|
+
}, {
|
|
167
|
+
default: n(() => [
|
|
168
|
+
d(p(e.$t("common.batchDelete")), 1)
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
})), [
|
|
172
|
+
[y, ["rbac:perm:delete"]]
|
|
173
|
+
])
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}),
|
|
177
|
+
l(E, {
|
|
178
|
+
span: 5,
|
|
179
|
+
class: "container-float"
|
|
180
|
+
}, {
|
|
181
|
+
default: n(() => [
|
|
182
|
+
l(M, {
|
|
183
|
+
"table-label": o(f),
|
|
184
|
+
"par-index": o(q),
|
|
185
|
+
onFixedChange: o(B),
|
|
186
|
+
onIsShowChange: o(z)
|
|
187
|
+
}, null, 8, ["table-label", "par-index", "onFixedChange", "onIsShowChange"])
|
|
188
|
+
]),
|
|
189
|
+
_: 1
|
|
190
|
+
})
|
|
191
|
+
]),
|
|
192
|
+
_: 1
|
|
193
|
+
}),
|
|
194
|
+
l(W, {
|
|
195
|
+
class: "table-top",
|
|
196
|
+
ref_key: "multipleTableRef",
|
|
197
|
+
ref: T,
|
|
198
|
+
"row-key": "permId",
|
|
199
|
+
"table-data": o(V),
|
|
200
|
+
"table-label": o(f),
|
|
201
|
+
"list-loading": o(D),
|
|
202
|
+
onTableSelected: Q
|
|
203
|
+
}, {
|
|
204
|
+
operation: n((t) => [
|
|
205
|
+
C((s(), v("span", {
|
|
206
|
+
class: "el-button-color",
|
|
207
|
+
onClick: (Y) => j(t.data.row)
|
|
208
|
+
}, [
|
|
209
|
+
d(p(e.$t("common.edit")), 1)
|
|
210
|
+
], 8, Pe)), [
|
|
211
|
+
[y, ["rbac:perm:update"]]
|
|
212
|
+
]),
|
|
213
|
+
C((s(), v("span", {
|
|
214
|
+
class: "el-button-color dropdown-left",
|
|
215
|
+
onClick: (Y) => o(F)(t.data.row.permId)
|
|
216
|
+
}, [
|
|
217
|
+
d(p(e.$t("common.delete")), 1)
|
|
218
|
+
], 8, ve)), [
|
|
219
|
+
[y, ["rbac:perm:delete"]]
|
|
220
|
+
])
|
|
221
|
+
]),
|
|
222
|
+
_: 1
|
|
223
|
+
}, 8, ["table-data", "table-label", "list-loading"]),
|
|
224
|
+
o(_) > 0 ? (s(), k(X, {
|
|
225
|
+
key: 0,
|
|
226
|
+
total: o(_),
|
|
227
|
+
"onUpdate:total": a[3] || (a[3] = (t) => fe(_) ? _.value = t : null),
|
|
228
|
+
page: r.curPage,
|
|
229
|
+
"onUpdate:page": a[4] || (a[4] = (t) => r.curPage = t),
|
|
230
|
+
limit: r.pageSize,
|
|
231
|
+
"onUpdate:limit": a[5] || (a[5] = (t) => r.pageSize = t),
|
|
232
|
+
onPagination: o(h)
|
|
233
|
+
}, null, 8, ["total", "page", "limit", "onPagination"])) : S("", !0),
|
|
234
|
+
i.visible ? (s(), k(be, {
|
|
235
|
+
key: 1,
|
|
236
|
+
dialog: i,
|
|
237
|
+
"form-data": o(c),
|
|
238
|
+
onDialogEvent: G,
|
|
239
|
+
onRefresh: H
|
|
240
|
+
}, null, 8, ["dialog", "form-data"])) : S("", !0)
|
|
241
|
+
]);
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
});
|
|
245
|
+
export {
|
|
246
|
+
Fe as default
|
|
247
|
+
};
|