jmash-core 0.0.108 → 0.0.109

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 (157) hide show
  1. package/dist/{401-Cje8e0iQ.mjs → 401-DVRRjCzK.mjs} +58 -58
  2. package/dist/{404-Dcy7ErNt.mjs → 404-yx-Nu_Zp.mjs} +28 -28
  3. package/dist/{BarChart-oW-R1RXw.mjs → BarChart-CJqt4dYD.mjs} +48 -48
  4. package/dist/{FunnelChart-Ci14WUay.mjs → FunnelChart-BzoTNn36.mjs} +1 -1
  5. package/dist/{PieChart-C60V9Kgc.mjs → PieChart-vvePUqxP.mjs} +1 -1
  6. package/dist/{PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs → PieChart.vue_vue_type_script_setup_true_lang-B4J5buH_.mjs} +13 -13
  7. package/dist/{RadarChart-BBq1VxXC.mjs → RadarChart-RsjrWpKm.mjs} +1 -1
  8. package/dist/{RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs → RadarChart.vue_vue_type_script_setup_true_lang-CPbv9lgv.mjs} +14 -14
  9. package/dist/index-9HDHJFGn.mjs +1642 -0
  10. package/dist/index-CBPpD2gf.mjs +367 -0
  11. package/dist/index-CKIToSgt.mjs +218 -0
  12. package/dist/{index-BnPTCkJp.mjs → index-Cq576X5U.mjs} +8423 -8144
  13. package/dist/{index-B3bBQvl1.mjs → index-DA53-ye2.mjs} +6292 -6252
  14. package/dist/index.mjs +41 -40
  15. package/dist/{profile-DSyIwcjT.mjs → profile-CpSksJNp.mjs} +6 -6
  16. package/dist/{runAs-ByT2IRUb.mjs → runAs-CO_lkd66.mjs} +1 -1
  17. package/dist/{runAs.vue_vue_type_script_setup_true_lang-CKnm9qB3.mjs → runAs.vue_vue_type_script_setup_true_lang-CRmeyU1L.mjs} +20 -20
  18. package/dist/style.css +1 -1
  19. package/dist/{types-DaRQE9AI.mjs → types-Cmry2NAX.mjs} +80 -64
  20. package/dist/{updatePwd-BW1ZcKeg.mjs → updatePwd-Cs3lhgQB.mjs} +1 -1
  21. package/dist/{updatePwd.vue_vue_type_script_setup_true_lang-CASn5sxv.mjs → updatePwd.vue_vue_type_script_setup_true_lang-Co9qw1zU.mjs} +11 -11
  22. package/dts/src/App.vue.d.ts +1 -1
  23. package/dts/src/api/auth/index.d.ts +3 -1
  24. package/dts/src/api/auth/types.d.ts +28 -4
  25. package/dts/src/assets/components/icon-a-fixed.vue.d.ts +1 -1
  26. package/dts/src/assets/components/icon-a-list.vue.d.ts +1 -1
  27. package/dts/src/assets/components/icon-anquanrizhi.vue.d.ts +1 -1
  28. package/dts/src/assets/components/icon-api.vue.d.ts +1 -1
  29. package/dts/src/assets/components/icon-bumenguanli.vue.d.ts +1 -1
  30. package/dts/src/assets/components/icon-caozuoguanliyuan.vue.d.ts +1 -1
  31. package/dts/src/assets/components/icon-captcha.vue.d.ts +1 -1
  32. package/dts/src/assets/components/icon-cascader.vue.d.ts +1 -1
  33. package/dts/src/assets/components/icon-client.vue.d.ts +1 -1
  34. package/dts/src/assets/components/icon-close-all.vue.d.ts +1 -1
  35. package/dts/src/assets/components/icon-close-eye.vue.d.ts +1 -1
  36. package/dts/src/assets/components/icon-close-left.vue.d.ts +1 -1
  37. package/dts/src/assets/components/icon-close-other.vue.d.ts +1 -1
  38. package/dts/src/assets/components/icon-close-right.vue.d.ts +1 -1
  39. package/dts/src/assets/components/icon-close.vue.d.ts +1 -1
  40. package/dts/src/assets/components/icon-dept.vue.d.ts +1 -1
  41. package/dts/src/assets/components/icon-dict.vue.d.ts +1 -1
  42. package/dts/src/assets/components/icon-document.vue.d.ts +1 -1
  43. package/dts/src/assets/components/icon-download.vue.d.ts +1 -1
  44. package/dts/src/assets/components/icon-drag.vue.d.ts +1 -1
  45. package/dts/src/assets/components/icon-edit.vue.d.ts +1 -1
  46. package/dts/src/assets/components/icon-email.vue.d.ts +1 -1
  47. package/dts/src/assets/components/icon-exit-fullscreen.vue.d.ts +1 -1
  48. package/dts/src/assets/components/icon-eye-open.vue.d.ts +1 -1
  49. package/dts/src/assets/components/icon-fullscreen-exit.vue.d.ts +1 -1
  50. package/dts/src/assets/components/icon-fullscreen.vue.d.ts +1 -1
  51. package/dts/src/assets/components/icon-gangweiguanli.vue.d.ts +1 -1
  52. package/dts/src/assets/components/icon-github.vue.d.ts +1 -1
  53. package/dts/src/assets/components/icon-homepage.vue.d.ts +1 -1
  54. package/dts/src/assets/components/icon-icon.vue.d.ts +1 -1
  55. package/dts/src/assets/components/icon-indent-decrease.vue.d.ts +1 -1
  56. package/dts/src/assets/components/icon-ip.vue.d.ts +1 -1
  57. package/dts/src/assets/components/icon-jiemianxijietubiao-26.vue.d.ts +1 -1
  58. package/dts/src/assets/components/icon-language.vue.d.ts +1 -1
  59. package/dts/src/assets/components/icon-link.vue.d.ts +1 -1
  60. package/dts/src/assets/components/icon-lock.vue.d.ts +1 -1
  61. package/dts/src/assets/components/icon-log.vue.d.ts +1 -1
  62. package/dts/src/assets/components/icon-menu.vue.d.ts +1 -1
  63. package/dts/src/assets/components/icon-message.vue.d.ts +1 -1
  64. package/dts/src/assets/components/icon-mokuaiguanli.vue.d.ts +1 -1
  65. package/dts/src/assets/components/icon-money.vue.d.ts +1 -1
  66. package/dts/src/assets/components/icon-monitor.vue.d.ts +1 -1
  67. package/dts/src/assets/components/icon-moon.vue.d.ts +1 -1
  68. package/dts/src/assets/components/icon-order.vue.d.ts +1 -1
  69. package/dts/src/assets/components/icon-password.vue.d.ts +1 -1
  70. package/dts/src/assets/components/icon-peoples.vue.d.ts +1 -1
  71. package/dts/src/assets/components/icon-phone.vue.d.ts +1 -1
  72. package/dts/src/assets/components/icon-project.vue.d.ts +1 -1
  73. package/dts/src/assets/components/icon-publish.vue.d.ts +1 -1
  74. package/dts/src/assets/components/icon-quanxianguanli.vue.d.ts +1 -1
  75. package/dts/src/assets/components/icon-redis.vue.d.ts +1 -1
  76. package/dts/src/assets/components/icon-refresh.vue.d.ts +1 -1
  77. package/dts/src/assets/components/icon-role.vue.d.ts +1 -1
  78. package/dts/src/assets/components/icon-security.vue.d.ts +1 -1
  79. package/dts/src/assets/components/icon-setting.vue.d.ts +1 -1
  80. package/dts/src/assets/components/icon-shoujihao.vue.d.ts +1 -1
  81. package/dts/src/assets/components/icon-shrink.vue.d.ts +1 -1
  82. package/dts/src/assets/components/icon-size.vue.d.ts +1 -1
  83. package/dts/src/assets/components/icon-sunny.vue.d.ts +1 -1
  84. package/dts/src/assets/components/icon-system.vue.d.ts +1 -1
  85. package/dts/src/assets/components/icon-table.vue.d.ts +1 -1
  86. package/dts/src/assets/components/icon-team.vue.d.ts +1 -1
  87. package/dts/src/assets/components/icon-todolist.vue.d.ts +1 -1
  88. package/dts/src/assets/components/icon-tree.vue.d.ts +1 -1
  89. package/dts/src/assets/components/icon-user.vue.d.ts +1 -1
  90. package/dts/src/assets/components/icon-visit.vue.d.ts +1 -1
  91. package/dts/src/assets/components/icon-xingming.vue.d.ts +1 -1
  92. package/dts/src/assets/components/icon-yonghuguanli.vue.d.ts +1 -1
  93. package/dts/src/assets/components/icon-youxiang.vue.d.ts +1 -1
  94. package/dts/src/components/AppLink/index.vue.d.ts +3 -3
  95. package/dts/src/components/Breadcrumb/index.vue.d.ts +1 -1
  96. package/dts/src/components/Dictionary/index.vue.d.ts +5 -5
  97. package/dts/src/components/GithubCorner/index.vue.d.ts +1 -1
  98. package/dts/src/components/Hamburger/index.vue.d.ts +4 -4
  99. package/dts/src/components/IconSelect/index.vue.d.ts +5 -5
  100. package/dts/src/components/JmashAMap/index.vue.d.ts +38 -0
  101. package/dts/src/components/JmashColumnSelect/index.vue.d.ts +4 -4
  102. package/dts/src/components/JmashEnumRadio/index.vue.d.ts +4 -4
  103. package/dts/src/components/JmashEnumSelect/index.vue.d.ts +4 -4
  104. package/dts/src/components/JmashImportUpload/index.vue.d.ts +5 -5
  105. package/dts/src/components/JmashMobileInsComponent/index.vue.d.ts +5 -5
  106. package/dts/src/components/JmashMultiImageUpload/index.vue.d.ts +6 -6
  107. package/dts/src/components/JmashMultiUpload/index.vue.d.ts +6 -6
  108. package/dts/src/components/JmashPagination/index.vue.d.ts +5 -5
  109. package/dts/src/components/JmashSingleImageUpload/index.vue.d.ts +5 -5
  110. package/dts/src/components/JmashTMaps/index.vue.d.ts +20 -0
  111. package/dts/src/components/JmashTable/index.vue.d.ts +5 -5
  112. package/dts/src/components/JmashUploadFile/index.vue.d.ts +1 -1
  113. package/dts/src/components/JmashUploadImage/index.vue.d.ts +4 -4
  114. package/dts/src/components/LangSelect/index.vue.d.ts +1 -1
  115. package/dts/src/components/RightPanel/index.vue.d.ts +4 -4
  116. package/dts/src/components/SizeSelect/index.vue.d.ts +1 -1
  117. package/dts/src/components/SvgIcon/index.vue.d.ts +5 -5
  118. package/dts/src/hooks/table.d.ts +7 -7
  119. package/dts/src/index.d.ts +1 -1
  120. package/dts/src/layout/components/AppMain/index.vue.d.ts +1 -1
  121. package/dts/src/layout/components/NavBar/components/NavbarLeft.vue.d.ts +1 -1
  122. package/dts/src/layout/components/NavBar/components/NavbarRight.vue.d.ts +1 -1
  123. package/dts/src/layout/components/NavBar/index.vue.d.ts +1 -1
  124. package/dts/src/layout/components/Settings/components/LayoutSelect.vue.d.ts +4 -4
  125. package/dts/src/layout/components/Settings/components/ThemeColorPicker.vue.d.ts +4 -4
  126. package/dts/src/layout/components/Settings/index.vue.d.ts +1 -1
  127. package/dts/src/layout/components/Sidebar/components/SidebarLogo.vue.d.ts +3 -3
  128. package/dts/src/layout/components/Sidebar/components/SidebarMenu.vue.d.ts +4 -4
  129. package/dts/src/layout/components/Sidebar/components/SidebarMenuItem.vue.d.ts +4 -4
  130. package/dts/src/layout/components/Sidebar/components/SidebarMenuItemTitle.vue.d.ts +5 -5
  131. package/dts/src/layout/components/Sidebar/components/SidebarMixTopMenu.vue.d.ts +1 -1
  132. package/dts/src/layout/components/Sidebar/index.vue.d.ts +1 -1
  133. package/dts/src/layout/components/TagsView/index.vue.d.ts +1 -1
  134. package/dts/src/layout/index.vue.d.ts +1 -1
  135. package/dts/src/stores/modules/tagsView.d.ts +32 -5
  136. package/dts/src/types/index.d.ts +2 -0
  137. package/dts/src/utils/AMap.d.ts +4 -0
  138. package/dts/src/utils/TMap.d.ts +1 -0
  139. package/dts/src/utils/common.d.ts +8 -5
  140. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +4 -4
  141. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +4 -4
  142. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +4 -4
  143. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +4 -4
  144. package/dts/src/views/dashboard/index.vue.d.ts +1 -1
  145. package/dts/src/views/error-page/401.vue.d.ts +1 -1
  146. package/dts/src/views/error-page/404.vue.d.ts +1 -1
  147. package/dts/src/views/login/components/types.vue.d.ts +1 -1
  148. package/dts/src/views/login/index.vue.d.ts +23 -1
  149. package/dts/src/views/my/profile.vue.d.ts +1 -1
  150. package/dts/src/views/my/runAs.vue.d.ts +3 -3
  151. package/dts/src/views/my/updatePwd.vue.d.ts +5 -5
  152. package/dts/src/views/redirect/index.vue.d.ts +1 -1
  153. package/package.json +1 -1
  154. package/dist/index-C1KAa9PO.mjs +0 -1630
  155. package/dist/index-CAh0BAJl.mjs +0 -367
  156. package/dist/index-pfRSPpqI.mjs +0 -268
  157. package/dist/picture-CBRsHLZl.mjs +0 -22
@@ -1,367 +0,0 @@
1
- import { _ as F } from "./RadarChart.vue_vue_type_script_setup_true_lang-BNLujpKR.mjs";
2
- import { _ as G } from "./PieChart.vue_vue_type_script_setup_true_lang-D1-1NDvg.mjs";
3
- import H from "./BarChart-oW-R1RXw.mjs";
4
- import { i as N, f as R, c as J, p as f, q as p, S as K } from "./index-BnPTCkJp.mjs";
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
- const W = {}, w = (c) => (P("data-v-5088dedb"), c = c(), V(), c), X = {
7
- href: "https://github.com/haoxianrui",
8
- target: "_blank",
9
- class: "github-corner",
10
- "aria-label": "View source on Github"
11
- }, Y = {
12
- width: "80",
13
- height: "80",
14
- viewBox: "0 0 250 250",
15
- style: { color: "#fff", fill: "#40c9c6" },
16
- "aria-hidden": "true"
17
- }, tt = /* @__PURE__ */ w(() => /* @__PURE__ */ t("path", { d: "M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z" }, null, -1)), et = /* @__PURE__ */ w(() => /* @__PURE__ */ t("path", {
18
- d: "M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2",
19
- fill: "currentColor",
20
- style: { "transform-origin": "130px 106px" },
21
- class: "octo-arm"
22
- }, null, -1)), st = /* @__PURE__ */ w(() => /* @__PURE__ */ t("path", {
23
- d: "M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z",
24
- fill: "currentColor",
25
- class: "octo-body"
26
- }, null, -1)), ot = [
27
- tt,
28
- et,
29
- st
30
- ];
31
- function nt(c, j) {
32
- return C(), y("a", X, [
33
- (C(), y("svg", Y, ot))
34
- ]);
35
- }
36
- const at = /* @__PURE__ */ N(W, [["render", nt], ["__scopeId", "data-v-5088dedb"]]), o = (c) => (P("data-v-496f50be"), c = c(), V(), c), ct = { class: "dashboard-container" }, lt = { class: "flex h-full items-center" }, it = ["src"], rt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("p", { class: "text-sm text-gray" }, "今日天气晴朗,气温在15℃至25℃之间,东南风。", -1)), _t = { class: "flex h-full items-center justify-around" }, dt = { class: "flex items-center" }, ut = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[16px] ml-1" }, "消息", -1)), ht = { class: "flex items-center" }, mt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[16px] ml-1" }, "待办", -1)), ft = { class: "flex items-center" }, pt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[16px] ml-1" }, "项目", -1)), xt = { class: "flex items-center justify-between" }, vt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "访客数", -1)), gt = { class: "flex items-center justify-between mt-5" }, bt = { class: "text-lg text-right" }, Ct = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, yt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总访客数 ", -1)), wt = { class: "flex items-center justify-between" }, jt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "IP数", -1)), Mt = { class: "flex items-center justify-between mt-5" }, $t = { class: "text-lg text-right" }, It = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, St = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总IP数 ", -1)), Ot = { class: "flex items-center justify-between" }, zt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "销售额", -1)), Lt = { class: "flex items-center justify-between mt-5" }, Et = { class: "text-lg text-right" }, kt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, Bt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总销售额 ", -1)), Nt = { class: "flex items-center justify-between" }, Pt = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", { class: "text-[var(--el-text-color-secondary)]" }, "订单量", -1)), Vt = { class: "flex items-center justify-between mt-5" }, Dt = { class: "text-lg text-right" }, Tt = { class: "flex items-center justify-between mt-5 text-sm text-[var(--el-text-color-secondary)]" }, Ut = /* @__PURE__ */ o(() => /* @__PURE__ */ t("span", null, " 总订单量 ", -1)), v = 5e3, At = /* @__PURE__ */ Q({
37
- name: "Dashboard",
38
- inheritAttrs: !1,
39
- __name: "index",
40
- setup(c) {
41
- const j = B(() => R.imageUrl(M.user.avatar, 160, 160)), M = J(), D = /* @__PURE__ */ new Date(), T = B(() => {
42
- const n = D.getHours();
43
- let h = M.user.realName;
44
- if (n >= 6 && n < 8)
45
- return "晨起披衣出草堂,轩窗已自喜微凉🌅!";
46
- if (n >= 8 && n < 12)
47
- return "上午好," + h + "!";
48
- if (n >= 12 && n < 18)
49
- return "下午好," + h + "!";
50
- if (n >= 18 && n < 24)
51
- return "晚上好," + h + "!";
52
- if (n >= 0 && n < 6)
53
- return "偷偷向银河要了一把碎星,只等你闭上眼睛撒入你的梦中,晚安🌛!";
54
- }), $ = x(0), I = f($, {
55
- duration: v,
56
- transition: p.easeOutExpo
57
- });
58
- $.value = 2e3;
59
- const S = x(0), O = f(S, {
60
- duration: v,
61
- transition: p.easeOutExpo
62
- });
63
- S.value = 2e3;
64
- const z = x(0), L = f(z, {
65
- duration: v,
66
- transition: p.easeOutExpo
67
- });
68
- z.value = 2e3;
69
- const E = x(0), k = f(E, {
70
- duration: v,
71
- transition: p.easeOutExpo
72
- });
73
- return E.value = 2e3, (n, h) => {
74
- const U = at, l = d("el-col"), r = K, g = d("el-statistic"), b = d("el-row"), _ = d("el-card"), m = d("el-tag"), A = H, Z = G, q = F;
75
- return C(), y("div", ct, [
76
- e(U, { class: "github-corner" }),
77
- e(_, { shadow: "never" }, {
78
- default: s(() => [
79
- e(b, { justify: "space-between" }, {
80
- default: s(() => [
81
- e(l, {
82
- span: 18,
83
- xs: 24
84
- }, {
85
- default: s(() => [
86
- t("div", lt, [
87
- t("img", {
88
- class: "w-20 h-20 mr-5 rounded-full",
89
- src: a(j)
90
- }, null, 8, it),
91
- t("div", null, [
92
- t("p", null, i(a(T)), 1),
93
- rt
94
- ])
95
- ])
96
- ]),
97
- _: 1
98
- }),
99
- e(l, {
100
- span: 6,
101
- xs: 24
102
- }, {
103
- default: s(() => [
104
- t("div", _t, [
105
- e(g, { value: 99 }, {
106
- title: s(() => [
107
- t("div", dt, [
108
- e(r, {
109
- "icon-class": "message",
110
- size: "20px"
111
- }),
112
- ut
113
- ])
114
- ]),
115
- _: 1
116
- }),
117
- e(g, { value: 50 }, {
118
- title: s(() => [
119
- t("div", ht, [
120
- e(r, {
121
- "icon-class": "todolist",
122
- size: "20px"
123
- }),
124
- mt
125
- ])
126
- ]),
127
- suffix: s(() => [
128
- u("/100")
129
- ]),
130
- _: 1
131
- }),
132
- e(g, { value: 10 }, {
133
- title: s(() => [
134
- t("div", ft, [
135
- e(r, {
136
- "icon-class": "project",
137
- size: "20px"
138
- }),
139
- pt
140
- ])
141
- ]),
142
- _: 1
143
- })
144
- ])
145
- ]),
146
- _: 1
147
- })
148
- ]),
149
- _: 1
150
- })
151
- ]),
152
- _: 1
153
- }),
154
- e(b, {
155
- gutter: 10,
156
- class: "mt-3"
157
- }, {
158
- default: s(() => [
159
- e(l, {
160
- xs: 24,
161
- sm: 12,
162
- lg: 6
163
- }, {
164
- default: s(() => [
165
- e(_, { shadow: "never" }, {
166
- header: s(() => [
167
- t("div", xt, [
168
- vt,
169
- e(m, { type: "success" }, {
170
- default: s(() => [
171
- u("日")
172
- ]),
173
- _: 1
174
- })
175
- ])
176
- ]),
177
- default: s(() => [
178
- t("div", gt, [
179
- t("div", bt, i(Math.round(a(O))), 1),
180
- e(r, {
181
- "icon-class": "visit",
182
- size: "2em"
183
- })
184
- ]),
185
- t("div", Ct, [
186
- yt,
187
- t("span", null, i(Math.round(a(O) * 15)), 1)
188
- ])
189
- ]),
190
- _: 1
191
- })
192
- ]),
193
- _: 1
194
- }),
195
- e(l, {
196
- xs: 24,
197
- sm: 12,
198
- lg: 6
199
- }, {
200
- default: s(() => [
201
- e(_, { shadow: "never" }, {
202
- header: s(() => [
203
- t("div", wt, [
204
- jt,
205
- e(m, { type: "success" }, {
206
- default: s(() => [
207
- u("日")
208
- ]),
209
- _: 1
210
- })
211
- ])
212
- ]),
213
- default: s(() => [
214
- t("div", Mt, [
215
- t("div", $t, i(Math.round(a(L))), 1),
216
- e(r, {
217
- "icon-class": "ip",
218
- size: "2em"
219
- })
220
- ]),
221
- t("div", It, [
222
- St,
223
- t("span", null, i(Math.round(a(L))), 1)
224
- ])
225
- ]),
226
- _: 1
227
- })
228
- ]),
229
- _: 1
230
- }),
231
- e(l, {
232
- xs: 24,
233
- sm: 12,
234
- lg: 6
235
- }, {
236
- default: s(() => [
237
- e(_, { shadow: "never" }, {
238
- header: s(() => [
239
- t("div", Ot, [
240
- zt,
241
- e(m, null, {
242
- default: s(() => [
243
- u("月")
244
- ]),
245
- _: 1
246
- })
247
- ])
248
- ]),
249
- default: s(() => [
250
- t("div", Lt, [
251
- t("div", Et, i(Math.round(a(I))), 1),
252
- e(r, {
253
- "icon-class": "money",
254
- size: "2em"
255
- })
256
- ]),
257
- t("div", kt, [
258
- Bt,
259
- t("span", null, i(Math.round(a(I) * 15)), 1)
260
- ])
261
- ]),
262
- _: 1
263
- })
264
- ]),
265
- _: 1
266
- }),
267
- e(l, {
268
- xs: 24,
269
- sm: 12,
270
- lg: 6
271
- }, {
272
- default: s(() => [
273
- e(_, { shadow: "never" }, {
274
- header: s(() => [
275
- t("div", Nt, [
276
- Pt,
277
- e(m, { type: "danger" }, {
278
- default: s(() => [
279
- u("季")
280
- ]),
281
- _: 1
282
- })
283
- ])
284
- ]),
285
- default: s(() => [
286
- t("div", Vt, [
287
- t("div", Dt, i(Math.round(a(k))), 1),
288
- e(r, {
289
- "icon-class": "order",
290
- size: "2em"
291
- })
292
- ]),
293
- t("div", Tt, [
294
- Ut,
295
- t("span", null, i(Math.round(a(k) * 15)), 1)
296
- ])
297
- ]),
298
- _: 1
299
- })
300
- ]),
301
- _: 1
302
- })
303
- ]),
304
- _: 1
305
- }),
306
- e(b, {
307
- gutter: 10,
308
- class: "mt-3"
309
- }, {
310
- default: s(() => [
311
- e(l, {
312
- sm: 24,
313
- lg: 8,
314
- class: "mb-2"
315
- }, {
316
- default: s(() => [
317
- e(A, {
318
- id: "barChart",
319
- height: "400px",
320
- width: "100%",
321
- class: "bg-[var(--el-bg-color-overlay)]"
322
- })
323
- ]),
324
- _: 1
325
- }),
326
- e(l, {
327
- xs: 24,
328
- sm: 12,
329
- lg: 8,
330
- class: "mb-2"
331
- }, {
332
- default: s(() => [
333
- e(Z, {
334
- id: "pieChart",
335
- height: "400px",
336
- width: "100%",
337
- class: "bg-[var(--el-bg-color-overlay)]"
338
- })
339
- ]),
340
- _: 1
341
- }),
342
- e(l, {
343
- xs: 24,
344
- sm: 12,
345
- lg: 8,
346
- class: "mb-2"
347
- }, {
348
- default: s(() => [
349
- e(q, {
350
- id: "radarChart",
351
- height: "400px",
352
- width: "100%",
353
- class: "bg-[var(--el-bg-color-overlay)]"
354
- })
355
- ]),
356
- _: 1
357
- })
358
- ]),
359
- _: 1
360
- })
361
- ]);
362
- };
363
- }
364
- }), Rt = /* @__PURE__ */ N(At, [["__scopeId", "data-v-496f50be"]]);
365
- export {
366
- Rt as default
367
- };
@@ -1,268 +0,0 @@
1
- import { _ as oe } from "./picture-CBRsHLZl.mjs";
2
- import { defineComponent as te, ref as d, watchEffect as se, computed as le, onMounted as ne, resolveComponent as c, openBlock as v, createElementBlock as A, createElementVNode as n, createVNode as t, unref as o, isRef as ae, withCtx as r, toDisplayString as R, createTextVNode as D, createBlock as U, 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
- import { useI18n as ge } from "vue-i18n";
4
- import { d as I, u as T, o as fe, c as he, _ as ve, S as m, y as we, t as ye, z as ke, A as Ce, r as Ve, i as be } from "./index-BnPTCkJp.mjs";
5
- import { ElForm as z } from "element-plus";
6
- import { useRoute as Se } from "vue-router";
7
- const B = (_) => (me("data-v-5014ef67"), _ = _(), _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" }, De = { class: "p-2" }, Ie = { class: "p-2" }, Ee = { class: "p-2" }, Le = { class: "p-2" }, qe = { class: "captcha" }, Ae = { class: "image-slot" }, Ue = { 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
- Te,
9
- ze
10
- ], Fe = 992, Ke = /* @__PURE__ */ te({
11
- __name: "index",
12
- setup(_) {
13
- const w = I(), { title: F, version: K } = w, y = d(w.theme === "dark"), X = (e) => {
14
- we(e), w.changeSetting({
15
- key: "theme",
16
- value: e ? "dark" : "light"
17
- });
18
- }, k = T(), { width: j } = fe();
19
- se(() => {
20
- j.value < Fe ? k.toggleDevice("mobile") : k.toggleDevice("desktop");
21
- });
22
- const C = d(!1), E = d(!1), g = d(!1), L = d(), q = d(z), V = d([]), a = d({
23
- scope: "",
24
- username: "",
25
- password: ""
26
- }), { t: b } = ge(), M = le(() => {
27
- const e = k.language === "en" ? "Please enter " : "请输入";
28
- return {
29
- username: [
30
- {
31
- required: !0,
32
- trigger: "blur",
33
- message: `${e}${b("login.username")}`
34
- }
35
- ],
36
- password: [
37
- {
38
- required: !0,
39
- trigger: "blur",
40
- validator: (s, p, u) => {
41
- p.length < 5 ? u(new Error("The password can not be less than 5 digits")) : u();
42
- },
43
- message: `${e}${b("login.password")}`
44
- }
45
- ],
46
- captchaCode: [
47
- {
48
- required: !0,
49
- trigger: "blur",
50
- message: `${e}${b("login.captchaCode")}`
51
- }
52
- ]
53
- };
54
- });
55
- function O(e) {
56
- const { key: s } = e;
57
- E.value = s && s.length === 1 && s >= "A" && s <= "Z";
58
- }
59
- function f() {
60
- ye().then(({ data: e }) => {
61
- a.value.captchaKey = e.captchaId, L.value = e.base64Image;
62
- });
63
- }
64
- function P() {
65
- ke().then(({ data: e }) => {
66
- V.value = e.roleList;
67
- });
68
- }
69
- const W = Se(), H = he();
70
- function S() {
71
- q.value.validate((e) => {
72
- if (e) {
73
- C.value = !0;
74
- let s = { ...a.value };
75
- s.password = Ce(a.value.password), a.value.password = "", H.login(s).then(() => {
76
- const p = W.query, u = p.redirect ?? "/", x = Object.keys(p).reduce((h, i) => (i !== "redirect" && (h[i] = p[i]), h), {});
77
- Ve.value.push({ path: u, query: x }), f();
78
- }).catch(() => {
79
- f();
80
- }).finally(() => {
81
- C.value = !1;
82
- });
83
- }
84
- });
85
- }
86
- return ne(() => {
87
- f(), P();
88
- const e = I().theme;
89
- I().changeSetting({ key: "theme", value: e }), e == "dark" ? document.documentElement.classList.add("dark") : document.documentElement.classList.remove("dark");
90
- }), (e, s) => {
91
- const p = c("el-switch"), u = c("el-tag"), x = c("el-option"), h = c("el-select"), i = c("el-form-item"), $ = c("el-input"), Q = c("el-tooltip"), Z = oe, G = c("el-image"), J = c("router-link"), Y = c("el-button"), ee = c("el-card");
92
- return v(), A("div", xe, [
93
- n("div", $e, [
94
- t(p, {
95
- modelValue: o(y),
96
- "onUpdate:modelValue": s[0] || (s[0] = (l) => ae(y) ? y.value = l : null),
97
- "inline-prompt": "",
98
- "active-color": "var(--el-fill-color-dark)",
99
- "inactive-color": "var(--el-color-primary)",
100
- onChange: X
101
- }, null, 8, ["modelValue"]),
102
- t(ve, { class: "ml-2 cursor-pointer" })
103
- ]),
104
- t(ee, { class: "z-1 !border-none w-100 !bg-transparent !rounded-4% <sm:w-83" }, {
105
- default: r(() => [
106
- n("div", Re, [
107
- n("h2", null, R(o(F)), 1),
108
- t(u, { class: "ml-2 absolute top-0 right-0" }, {
109
- default: r(() => [
110
- D(R(o(K)), 1)
111
- ]),
112
- _: 1
113
- })
114
- ]),
115
- t(o(z), {
116
- ref_key: "loginFormRef",
117
- ref: q,
118
- model: o(a),
119
- rules: o(M),
120
- size: "large",
121
- class: "login-form"
122
- }, {
123
- default: r(() => [
124
- o(V).length > 0 ? (v(), U(i, {
125
- key: 0,
126
- prop: "scope"
127
- }, {
128
- default: r(() => [
129
- n("div", De, [
130
- t(m, { "icon-class": "user" })
131
- ]),
132
- t(h, {
133
- modelValue: o(a).scope,
134
- "onUpdate:modelValue": s[1] || (s[1] = (l) => o(a).scope = l),
135
- placeholder: "Select",
136
- class: "flex-1"
137
- }, {
138
- default: r(() => [
139
- (v(!0), A(re, null, ce(o(V), (l) => (v(), U(x, {
140
- key: l.roleCode,
141
- label: l.roleName,
142
- value: l.roleCode
143
- }, null, 8, ["label", "value"]))), 128))
144
- ]),
145
- _: 1
146
- }, 8, ["modelValue"])
147
- ]),
148
- _: 1
149
- })) : ie("", !0),
150
- t(i, { prop: "username" }, {
151
- default: r(() => [
152
- n("div", Ie, [
153
- t(m, { "icon-class": "user" })
154
- ]),
155
- t($, {
156
- ref: "username",
157
- modelValue: o(a).username,
158
- "onUpdate:modelValue": s[2] || (s[2] = (l) => o(a).username = l),
159
- class: "flex-1",
160
- placeholder: e.$t("login.username"),
161
- name: "username"
162
- }, null, 8, ["modelValue", "placeholder"])
163
- ]),
164
- _: 1
165
- }),
166
- t(Q, {
167
- disabled: o(E) === !1,
168
- content: "Caps lock is On",
169
- placement: "right"
170
- }, {
171
- default: r(() => [
172
- t(i, { prop: "password" }, {
173
- default: r(() => [
174
- n("span", Ee, [
175
- t(m, { "icon-class": "password" })
176
- ]),
177
- t($, {
178
- modelValue: o(a).password,
179
- "onUpdate:modelValue": s[3] || (s[3] = (l) => o(a).password = l),
180
- class: "flex-1",
181
- placeholder: e.$t("login.password"),
182
- type: o(g) === !1 ? "password" : "input",
183
- name: "password",
184
- onKeyup: [
185
- O,
186
- N(S, ["enter"])
187
- ]
188
- }, null, 8, ["modelValue", "placeholder", "type"]),
189
- n("span", {
190
- class: "mr-2",
191
- onClick: s[4] || (s[4] = (l) => g.value = !o(g))
192
- }, [
193
- t(m, {
194
- "icon-class": o(g) === !1 ? "eye" : "eye-open",
195
- class: "cursor-pointer"
196
- }, null, 8, ["icon-class"])
197
- ])
198
- ]),
199
- _: 1
200
- })
201
- ]),
202
- _: 1
203
- }, 8, ["disabled"]),
204
- t(i, { prop: "captchaCode" }, {
205
- default: r(() => [
206
- n("span", Le, [
207
- t(m, { "icon-class": "captcha" })
208
- ]),
209
- t($, {
210
- modelValue: o(a).captchaCode,
211
- "onUpdate:modelValue": s[5] || (s[5] = (l) => o(a).captchaCode = l),
212
- "auto-complete": "off",
213
- placeholder: e.$t("login.captchaCode"),
214
- class: "w-[60%]",
215
- onKeyup: N(S, ["enter"])
216
- }, null, 8, ["modelValue", "placeholder"]),
217
- n("div", qe, [
218
- t(G, {
219
- src: o(L),
220
- onClick: f,
221
- class: "w-[130px] h-[50px] cursor-pointer"
222
- }, {
223
- error: r(() => [
224
- n("div", Ae, [
225
- t(Z)
226
- ])
227
- ]),
228
- _: 1
229
- }, 8, ["src"])
230
- ])
231
- ]),
232
- _: 1
233
- }),
234
- n("div", Ue, [
235
- t(J, { to: "/secondLogin" }, {
236
- default: r(() => [
237
- D("手机号/邮箱登录")
238
- ]),
239
- _: 1
240
- })
241
- ]),
242
- t(Y, {
243
- loading: o(C),
244
- type: "primary",
245
- class: "w-full",
246
- onClick: de(S, ["prevent"])
247
- }, {
248
- default: r(() => [
249
- D(R(e.$t("login.login")), 1)
250
- ]),
251
- _: 1
252
- }, 8, ["loading"])
253
- ]),
254
- _: 1
255
- }, 8, ["model", "rules"])
256
- ]),
257
- _: 1
258
- }),
259
- pe(n("div", Ne, Be, 512), [
260
- [ue, o(T)().device == "desktop"]
261
- ])
262
- ]);
263
- };
264
- }
265
- }), He = /* @__PURE__ */ be(Ke, [["__scopeId", "data-v-5014ef67"]]);
266
- export {
267
- He as default
268
- };
@@ -1,22 +0,0 @@
1
- import { openBlock as t, createElementBlock as l, createElementVNode as e } from "vue";
2
- const o = {
3
- viewBox: "0 0 1024 1024",
4
- width: "1.2em",
5
- height: "1.2em"
6
- }, n = /* @__PURE__ */ e("path", {
7
- fill: "currentColor",
8
- d: "M160 160v704h704V160zm-32-64h768a32 32 0 0 1 32 32v768a32 32 0 0 1-32 32H128a32 32 0 0 1-32-32V128a32 32 0 0 1 32-32"
9
- }, null, -1), c = /* @__PURE__ */ e("path", {
10
- fill: "currentColor",
11
- d: "M384 288q64 0 64 64t-64 64t-64-64t64-64M185.408 876.992l-50.816-38.912L350.72 556.032a96 96 0 0 1 134.592-17.856l1.856 1.472l122.88 99.136a32 32 0 0 0 44.992-4.864l216-269.888l49.92 39.936l-215.808 269.824l-.256.32a96 96 0 0 1-135.04 14.464l-122.88-99.072l-.64-.512a32 32 0 0 0-44.8 5.952z"
12
- }, null, -1), r = [
13
- n,
14
- c
15
- ];
16
- function a(_, i) {
17
- return t(), l("svg", o, [...r]);
18
- }
19
- const s = { name: "ep-picture", render: a };
20
- export {
21
- s as _
22
- };