jmash-core 0.0.11 → 0.0.13

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.
Files changed (165) hide show
  1. package/dist/401-LzXAVxnC.mjs +101 -0
  2. package/dist/404-BaS1xZmV.mjs +37 -0
  3. package/dist/{BarChart-CbBhpMpZ.mjs → BarChart-ClnlJEhi.mjs} +41 -41
  4. package/dist/{FileSaver.min-CivbhzMe.mjs → FileSaver.min-C7ddeQoo.mjs} +1 -1
  5. package/dist/{FunnelChart-Czy2TVI1.mjs → FunnelChart-CcCVox9E.mjs} +16 -15
  6. package/dist/{PieChart-B8Tay-HH.mjs → PieChart-BHM8amLk.mjs} +1 -1
  7. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-CH5ME8e4.mjs → PieChart.vue_vue_type_script_setup_true_lang-BaJNQr7Z.mjs} +25 -24
  8. package/dist/{RadarChart-BzUQwTnX.mjs → RadarChart-ChaevZtZ.mjs} +1 -1
  9. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-DC-Ww3Mu.mjs → RadarChart.vue_vue_type_script_setup_true_lang-DF4axEB-.mjs} +27 -26
  10. package/dist/{edit-DaxU7bBz.mjs → edit-5MpAgj0J.mjs} +1 -1
  11. package/dist/{edit-C0aHXOi3.mjs → edit-Bz0L-kJZ.mjs} +1 -1
  12. package/dist/{edit-B95ajyfH.mjs → edit-ClmR7gql.mjs} +1 -1
  13. package/dist/{edit-BJAAEDVd.mjs → edit-D2udSsbu.mjs} +1 -1
  14. package/dist/edit-DXSp7oE2.mjs +4 -0
  15. package/dist/{edit-CR7ZiKuo.mjs → edit-FahW6Usp.mjs} +51 -51
  16. package/dist/{edit-5ZpeysVY.mjs → edit-oUUjQ6s5.mjs} +47 -47
  17. package/dist/edit-zLDTi0zt.mjs +4 -0
  18. package/dist/{edit.vue_vue_type_script_setup_true_lang-0Q5XHHkN.mjs → edit.vue_vue_type_script_setup_true_lang-BFSwE0WY.mjs} +24 -24
  19. package/dist/{edit.vue_vue_type_script_setup_true_lang-DqqWi384.mjs → edit.vue_vue_type_script_setup_true_lang-BRk4mulZ.mjs} +22 -22
  20. package/dist/{edit.vue_vue_type_script_setup_true_lang-CCq_E2KT.mjs → edit.vue_vue_type_script_setup_true_lang-BpmgWV6c.mjs} +14 -14
  21. package/dist/{edit.vue_vue_type_script_setup_true_lang-C-BRxRH6.mjs → edit.vue_vue_type_script_setup_true_lang-C5DH8_ra.mjs} +30 -30
  22. package/dist/edit.vue_vue_type_script_setup_true_lang-F-7AWta2.mjs +588 -0
  23. package/dist/{edit.vue_vue_type_script_setup_true_lang-D4w7Aa9M.mjs → edit.vue_vue_type_script_setup_true_lang-yaBZyiFi.mjs} +25 -25
  24. package/dist/{el-card-acRFAeYD.mjs → el-card-CjFpAXC4.mjs} +1 -1
  25. package/dist/{el-col-BFrxkvh3.mjs → el-col-D9kCVYAq.mjs} +17 -17
  26. package/dist/{el-date-picker-CjE5H0IY.mjs → el-date-picker-_cuHa2hi.mjs} +474 -474
  27. package/dist/el-divider-8Ov9f55F.mjs +45 -0
  28. package/dist/{el-dropdown-item-SBcx6_kX.mjs → el-dropdown-item-CSpUSfWV.mjs} +95 -95
  29. package/dist/{el-tree-select-RwYP-GEn.mjs → el-tree-select-BUK1QB3u.mjs} +75 -75
  30. package/dist/{index-CQlxUoOf.mjs → index-BYYYSOkP.mjs} +1 -1
  31. package/dist/{index-Bqg1CGw2.mjs → index-BeFhB4ZJ.mjs} +1 -1
  32. package/dist/{index-B7zhho5d.mjs → index-BkPB5eHC.mjs} +92 -92
  33. package/dist/{index-CcXjdXcD.mjs → index-C34zVC-7.mjs} +67 -67
  34. package/dist/{index-BcstP65E.mjs → index-C68JBxAE.mjs} +100 -100
  35. package/dist/{index-ChzNa2kp.mjs → index-CPqNZOs9.mjs} +21463 -21235
  36. package/dist/{index-u66O7nvc.mjs → index-CXJ-WW3h.mjs} +112 -111
  37. package/dist/{index-DvrFzTq2.mjs → index-CYAfQz-w.mjs} +1 -1
  38. package/dist/index-Cuk7sDz9.mjs +277 -0
  39. package/dist/{index-Dyn0k8Ib.mjs → index-D8zb68MK.mjs} +64 -64
  40. package/dist/{index-DBmv4w5y.mjs → index-D9itg8P7.mjs} +1 -1
  41. package/dist/{index-DAIdsjwj.mjs → index-DHQQEEWW.mjs} +53 -53
  42. package/dist/{index-DQtth-qu.mjs → index-DW1L3U1A.mjs} +53 -53
  43. package/dist/{index-B-lo0ywJ.mjs → index-Dav45Y13.mjs} +72 -72
  44. package/dist/index-DhjUimfd.mjs +272 -0
  45. package/dist/{index-DQbHbpgW.mjs → index-GPbjfqQg.mjs} +4 -4
  46. package/dist/{index-hr-nwn6C.mjs → index-W4pvCYhJ.mjs} +1 -1
  47. package/dist/{index-SUlMvdOg.mjs → index-gaeN4E1_.mjs} +88 -88
  48. package/dist/index-hZzxBNan.mjs +3447 -0
  49. package/dist/{index-4UdK9Nb9.mjs → index-l9Oeu9G-.mjs} +49 -49
  50. package/dist/index.mjs +27 -28
  51. package/dist/index.vue_vue_type_script_setup_true_lang-DWjQT4jn.mjs +54 -0
  52. package/dist/picture-DRU19T9b.mjs +587 -0
  53. package/dist/position-Ba7wRAlR.mjs +23 -0
  54. package/dist/{profile-BfDHQ_n5.mjs → profile-3Wsx53aV.mjs} +25 -25
  55. package/dist/runAs-CE2R49GJ.mjs +4 -0
  56. package/dist/runAs.vue_vue_type_script_setup_true_lang-i0DdmfK1.mjs +113 -0
  57. package/dist/style.css +1 -1
  58. package/dist/{types-D2vHMNqn.mjs → types-D3sIBzF1.mjs} +13 -13
  59. package/dist/{updatePwd-Dc31cBOV.mjs → updatePwd-2Dc9-bnF.mjs} +1 -1
  60. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-Do-jRGf0.mjs → updatePwd.vue_vue_type_script_setup_true_lang-3mhiAxD4.mjs} +9 -9
  61. package/dts/src/components/AppLink/index.vue.d.ts +19 -0
  62. package/dts/src/components/DictSelect/index.vue.d.ts +1 -1
  63. package/dts/src/components/Dictionary/index.vue.d.ts +1 -1
  64. package/dts/src/components/IconSelect/requireIcons.d.ts +1 -1
  65. package/dts/src/components/Pagination/index.vue.d.ts +3 -3
  66. package/dts/src/enums/DeviceEnum.d.ts +13 -0
  67. package/dts/src/enums/LayoutEnum.d.ts +17 -0
  68. package/dts/src/enums/MenuTypeEnum.d.ts +4 -1
  69. package/dts/src/enums/SidebarStatusEnum.d.ts +13 -0
  70. package/dts/src/enums/ThemeEnum.d.ts +17 -0
  71. package/dts/src/index.d.ts +10 -3
  72. package/dts/src/lang/index.d.ts +90 -0
  73. package/dts/src/lang/package/en.d.ts +42 -0
  74. package/dts/src/lang/package/zh-cn.d.ts +48 -0
  75. package/dts/src/layout/components/AppMain/index.vue.d.ts +2 -0
  76. package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +2 -0
  77. package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +2 -0
  78. package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +10 -0
  79. package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +10 -0
  80. package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +12 -0
  81. package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +50 -0
  82. package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +42 -0
  83. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +23 -0
  84. package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +2 -0
  85. package/dts/src/stores/index.d.ts +5 -0
  86. package/dts/src/utils/color.d.ts +69 -0
  87. package/dts/src/utils/index.d.ts +9 -0
  88. package/dts/src/utils/nprogress.d.ts +4 -0
  89. package/dts/src/views/my/runAs.vue.d.ts +6 -0
  90. package/dts/tsconfig.tsbuildinfo +1 -1
  91. package/package.json +2 -2
  92. package/dist/401-BjFOoJaQ.mjs +0 -101
  93. package/dist/404-CT8Yk873.mjs +0 -37
  94. package/dist/anquanrizhi-BMAtNRi-.mjs +0 -4
  95. package/dist/api-DA2t0sYn.mjs +0 -4
  96. package/dist/bumenguanli-_DtFk-Tc.mjs +0 -4
  97. package/dist/caozuoguanliyuan-YxDi1qyM.mjs +0 -4
  98. package/dist/captcha-G9RskXh1.mjs +0 -4
  99. package/dist/caret-bottom-Lhe9M7aA.mjs +0 -59
  100. package/dist/cascader-CysbB3DR.mjs +0 -4
  101. package/dist/client-CmoE5d0v.mjs +0 -4
  102. package/dist/close-DwiHyvYJ.mjs +0 -4
  103. package/dist/close_all-ri0Fg4Yg.mjs +0 -4
  104. package/dist/close_left-DLmFYlJS.mjs +0 -4
  105. package/dist/close_other-B705ZMV6.mjs +0 -4
  106. package/dist/close_right-BUdNHbs5.mjs +0 -4
  107. package/dist/dict-C2cGjFov.mjs +0 -4
  108. package/dist/document-Bf2gTChB.mjs +0 -4
  109. package/dist/download-cG3k-vnb.mjs +0 -4
  110. package/dist/drag-CwjZNuUJ.mjs +0 -4
  111. package/dist/edit-CIq1RPVx.mjs +0 -4
  112. package/dist/edit-Di-ksvTh.mjs +0 -4
  113. package/dist/edit-II1vFfNu.mjs +0 -4
  114. package/dist/edit.vue_vue_type_script_setup_true_lang-VlMd6HAa.mjs +0 -575
  115. package/dist/email-B2AUCEGq.mjs +0 -4
  116. package/dist/exit-fullscreen-BJ7HY1Sq.mjs +0 -4
  117. package/dist/eye-DeDz_5CQ.mjs +0 -4
  118. package/dist/eye-open-Cm0N1Rcz.mjs +0 -4
  119. package/dist/fullscreen-BFXljl9l.mjs +0 -4
  120. package/dist/gangweiguanli-bkwyhEXB.mjs +0 -4
  121. package/dist/github-CL2t8fd5.mjs +0 -4
  122. package/dist/homepage-IeZtzO8Q.mjs +0 -4
  123. package/dist/icon-DwZ6Hkfk.mjs +0 -4
  124. package/dist/index-CF6p3ONN.mjs +0 -319
  125. package/dist/index-CJvo28Bb.mjs +0 -275
  126. package/dist/index-CS-ceXqM.mjs +0 -2580
  127. package/dist/ip-DOLbS1rT.mjs +0 -4
  128. package/dist/jiemianxijietubiao-26-mnbzByc9.mjs +0 -4
  129. package/dist/language-C1tgLxuP.mjs +0 -4
  130. package/dist/link-Cjm7RVX7.mjs +0 -4
  131. package/dist/log-ZFSIG9ZQ.mjs +0 -4
  132. package/dist/menu-B7SOjMUJ.mjs +0 -4
  133. package/dist/message-Bws5C_1u.mjs +0 -4
  134. package/dist/mokuaiguanli-nzRpK-Pe.mjs +0 -4
  135. package/dist/money-DM0ZKWD3.mjs +0 -4
  136. package/dist/monitor-CxsUJkcx.mjs +0 -4
  137. package/dist/order-DZ28J7CD.mjs +0 -4
  138. package/dist/password-BbtiGVLy.mjs +0 -4
  139. package/dist/peoples-3fyh79uv.mjs +0 -4
  140. package/dist/phone-CdpLww4_.mjs +0 -4
  141. package/dist/picture-877nN1qH.mjs +0 -598
  142. package/dist/project-DgVsw9u_.mjs +0 -4
  143. package/dist/publish-BCri5HbT.mjs +0 -4
  144. package/dist/quanxianguanli-Cpcc8C4D.mjs +0 -4
  145. package/dist/redis-fjUUmFu3.mjs +0 -4
  146. package/dist/refresh-BWNjEt3t.mjs +0 -4
  147. package/dist/role-BYKzPG5H.mjs +0 -4
  148. package/dist/security-BsMRfWoG.mjs +0 -4
  149. package/dist/shoujihao-BFt1tDJn.mjs +0 -4
  150. package/dist/shrink-kEdKK3G7.mjs +0 -4
  151. package/dist/size-jLonAeyJ.mjs +0 -4
  152. package/dist/system-BlPhikZo.mjs +0 -4
  153. package/dist/table-CCqA2qBP.mjs +0 -4
  154. package/dist/todolist-Ul73X2IJ.mjs +0 -4
  155. package/dist/tree-DrEt7UUZ.mjs +0 -4
  156. package/dist/user-B9bSWq2E.mjs +0 -4
  157. package/dist/visit-w_hKTLb6.mjs +0 -4
  158. package/dist/xingming-DHM4olm-.mjs +0 -4
  159. package/dist/yonghuguanli-B3vRkdqw.mjs +0 -4
  160. package/dist/youxiang-D68Zx-02.mjs +0 -4
  161. package/dist//345/210/227/350/241/250-nphA7BPW.mjs +0 -4
  162. package/dist//345/233/272/345/256/232_/345/233/276/351/222/211-CXYo1gbQ.mjs +0 -4
  163. package/dist//346/250/241/345/235/227-D528qA63.mjs +0 -4
  164. package/dist//347/234/274/347/235/233-BaPHKGgj.mjs +0 -4
  165. package/dist//351/227/255/347/234/274/347/235/233-D6BjbTd5.mjs +0 -4
@@ -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
- };
@@ -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
- };
@@ -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
- };