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.
Files changed (212) hide show
  1. package/dist/401-DZeMj80g.mjs +103 -0
  2. package/dist/404-D1KiG-19.mjs +37 -0
  3. package/dist/BarChart-BYm859ri.mjs +203 -0
  4. package/dist/FileSaver.min-DJ2XURfB.mjs +77 -0
  5. package/dist/FunnelChart-Czy2TVI1.mjs +106 -0
  6. package/dist/PieChart-BRbbIH3_.mjs +4 -0
  7. package/dist/PieChart.vue_vue_type_script_setup_true_lang-XjLBqCzM.mjs +90 -0
  8. package/dist/RadarChart-Bk_uy6Km.mjs +4 -0
  9. package/dist/RadarChart.vue_vue_type_script_setup_true_lang-COsDkkQU.mjs +109 -0
  10. package/dist/_plugin-vue_export-helper-CHgC5LLL.mjs +9 -0
  11. package/dist/caret-bottom-DGvkHVYd.mjs +59 -0
  12. package/dist/common-DuVBTwAv.mjs +36 -0
  13. package/dist/debounce-XYByYe_I.mjs +81 -0
  14. package/dist/dropdown2-D_RJXnOl.mjs +160 -0
  15. package/dist/edit-BTjApg1x.mjs +468 -0
  16. package/dist/edit-BcLHrCSo.mjs +4 -0
  17. package/dist/edit-DC3SyT6J.mjs +4 -0
  18. package/dist/edit-DmP9tv3r.mjs +4 -0
  19. package/dist/edit-Dr-9X4r3.mjs +4 -0
  20. package/dist/edit-FjRAXd1B.mjs +832 -0
  21. package/dist/edit-bpHMc65Q.mjs +4 -0
  22. package/dist/edit-lB54egzx.mjs +4 -0
  23. package/dist/edit.vue_vue_type_script_setup_true_lang-BKutjIoX.mjs +621 -0
  24. package/dist/edit.vue_vue_type_script_setup_true_lang-BVXBx_a-.mjs +221 -0
  25. package/dist/edit.vue_vue_type_script_setup_true_lang-Bm1SAtWP.mjs +225 -0
  26. package/dist/edit.vue_vue_type_script_setup_true_lang-CYZNHUnm.mjs +156 -0
  27. package/dist/edit.vue_vue_type_script_setup_true_lang-CZmh3q4f.mjs +287 -0
  28. package/dist/edit.vue_vue_type_script_setup_true_lang-DqZ2GCoE.mjs +136 -0
  29. package/dist/el-card-Da9MvaWO.mjs +61 -0
  30. package/dist/el-checkbox-B44P9jFr.mjs +548 -0
  31. package/dist/el-checkbox-group-l0sNRNKZ.mjs +1 -0
  32. package/dist/el-col-BY0nB6k3.mjs +135 -0
  33. package/dist/el-date-picker-CVwJoDEA.mjs +3349 -0
  34. package/dist/el-dialog-CSWvTJrq.mjs +378 -0
  35. package/dist/el-dropdown-item-CD8hUpml.mjs +675 -0
  36. package/dist/el-form-item-f-baJSfe.mjs +1489 -0
  37. package/dist/el-icon-l0sNRNKZ.mjs +1 -0
  38. package/dist/el-popover-D8RrIMbA.mjs +159 -0
  39. package/dist/el-popper-C13p_dqu.mjs +1656 -0
  40. package/dist/el-progress-CHUzIxT1.mjs +898 -0
  41. package/dist/el-radio-BpdPD-RN.mjs +251 -0
  42. package/dist/el-scrollbar-B8QteGV0.mjs +607 -0
  43. package/dist/el-select-ChOy6agQ.mjs +1040 -0
  44. package/dist/el-switch-cqWxQwcb.mjs +254 -0
  45. package/dist/el-table-c9Sup56w.mjs +3168 -0
  46. package/dist/el-tag-l0sNRNKZ.mjs +1 -0
  47. package/dist/el-tooltip-l0sNRNKZ.mjs +1 -0
  48. package/dist/el-tree-select-CKOwMXR7.mjs +1316 -0
  49. package/dist/importUpload.vue_vue_type_script_setup_true_lang-DWrcOBGS.mjs +116 -0
  50. package/dist/index-B6wY38lY.mjs +13173 -0
  51. package/dist/index-BH-_mfRR.mjs +107 -0
  52. package/dist/index-BfhiNV8H.mjs +486 -0
  53. package/dist/index-BjqMDjBg.mjs +43994 -0
  54. package/dist/index-BuHauank.mjs +13 -0
  55. package/dist/index-CBJwB8q2.mjs +633 -0
  56. package/dist/index-CGCQHwLq.mjs +482 -0
  57. package/dist/index-CU0iVHXP.mjs +281 -0
  58. package/dist/index-CYxGYOaT.mjs +504 -0
  59. package/dist/index-Cjii0qCc.mjs +278 -0
  60. package/dist/index-Czh2Pqwr.mjs +63 -0
  61. package/dist/index-DJ08yxAP.mjs +11 -0
  62. package/dist/index-DUKlDGLk.mjs +2589 -0
  63. package/dist/index-DUVtKaDI.mjs +515 -0
  64. package/dist/index-Dgd4Zhxz.mjs +93 -0
  65. package/dist/index-Di5--Hao.mjs +328 -0
  66. package/dist/index-DjkMA-Wh.mjs +40 -0
  67. package/dist/index-DrKW_cyG.mjs +247 -0
  68. package/dist/index-LuiPOgGW.mjs +291 -0
  69. package/dist/index-VD-Tf32c.mjs +74 -0
  70. package/dist/index-cRrjzkNb.mjs +452 -0
  71. package/dist/index-cp7l4CIE.mjs +134 -0
  72. package/dist/index-dKz1IRM_.mjs +279 -0
  73. package/dist/index-dLPnFa10.mjs +964 -0
  74. package/dist/index-uykKwY2Z.mjs +12 -0
  75. package/dist/index-vp1_Sd0A.mjs +55 -0
  76. package/dist/index.mjs +22 -273
  77. package/dist/index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs +286 -0
  78. package/dist/index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs +58 -0
  79. package/dist/isUndefined-CUQZk6oB.mjs +6 -0
  80. package/dist/moment-CMYwqyVT.mjs +2579 -0
  81. package/dist/picture-kDaEiPHi.mjs +599 -0
  82. package/dist/profile-Sn98YUfh.mjs +319 -0
  83. package/dist/refs-COP_DuTD.mjs +9 -0
  84. package/dist/style.css +1 -1
  85. package/dist/types-BolK_Oyb.mjs +205 -0
  86. package/dist/updatePwd-B3rEU05i.mjs +4 -0
  87. package/dist/updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs +151 -0
  88. package/dist/useColumnToggleTable-CC9EXcfR.mjs +272 -0
  89. package/dts/src/App.vue.d.ts +1 -1
  90. package/dts/src/api/auth/index.d.ts +41 -0
  91. package/dts/src/api/auth/types.d.ts +180 -0
  92. package/dts/src/api/file/index.d.ts +14 -0
  93. package/dts/src/api/file/types.d.ts +7 -0
  94. package/dts/src/api/system/dept/index.d.ts +91 -0
  95. package/dts/src/api/system/dept/types.d.ts +63 -0
  96. package/dts/src/api/system/index.d.ts +7 -0
  97. package/dts/src/api/system/job/index.d.ts +42 -0
  98. package/dts/src/api/system/job/types.d.ts +60 -0
  99. package/dts/src/api/system/log/index.d.ts +29 -0
  100. package/dts/src/api/system/log/types.d.ts +42 -0
  101. package/dts/src/api/system/menu/index.d.ts +103 -0
  102. package/dts/src/api/system/menu/types.d.ts +96 -0
  103. package/dts/src/api/system/module/index.d.ts +57 -0
  104. package/dts/src/api/system/module/types.d.ts +13 -0
  105. package/dts/src/api/system/operation/index.d.ts +51 -0
  106. package/dts/src/api/system/operation/types.d.ts +12 -0
  107. package/dts/src/api/system/permission/index.d.ts +50 -0
  108. package/dts/src/api/system/permission/types.d.ts +12 -0
  109. package/dts/src/api/system/role/index.d.ts +77 -0
  110. package/dts/src/api/system/role/types.d.ts +26 -0
  111. package/dts/src/api/system/user/index.d.ts +133 -0
  112. package/dts/src/api/system/user/types.d.ts +53 -0
  113. package/dts/src/api/system/userLog/index.d.ts +29 -0
  114. package/dts/src/api/system/userLog/types.d.ts +22 -0
  115. package/dts/src/assets/icons/index.d.ts +0 -0
  116. package/dts/src/components/{icons/IconDocumentation.vue.d.ts → Breadcrumb/index.vue.d.ts} +1 -1
  117. package/dts/src/components/DictRadio/index.vue.d.ts +23 -0
  118. package/dts/src/components/DictSelect/index.vue.d.ts +41 -0
  119. package/dts/src/components/Dictionary/index.vue.d.ts +47 -0
  120. package/dts/src/components/{TheWelcome.vue.d.ts → GithubCorner/index.vue.d.ts} +1 -1
  121. package/dts/src/components/Hamburger/index.vue.d.ts +18 -0
  122. package/dts/src/components/IconSelect/index.vue.d.ts +20 -0
  123. package/dts/src/components/IconSelect/requireIcons.d.ts +2 -0
  124. package/dts/src/components/{icons/IconEcosystem.vue.d.ts → LangSelect/index.vue.d.ts} +1 -1
  125. package/dts/src/components/Pagination/index.vue.d.ts +88 -0
  126. package/dts/src/components/RightPanel/index.vue.d.ts +21 -0
  127. package/dts/src/components/{icons/IconCommunity.vue.d.ts → SizeSelect/index.vue.d.ts} +1 -1
  128. package/dts/src/components/SvgIcon/index.vue.d.ts +43 -0
  129. package/dts/src/components/Table/index.vue.d.ts +73 -0
  130. package/dts/src/components/TableSet/index.vue.d.ts +29 -0
  131. package/dts/src/components/Upload/MultiUpload.vue.d.ts +65 -0
  132. package/dts/src/components/Upload/SingleUpload.vue.d.ts +18 -0
  133. package/dts/src/components/Upload/importUpload.vue.d.ts +31 -0
  134. package/dts/src/components/Upload/index.vue.d.ts +18 -0
  135. package/dts/src/components/WangEditor/index.vue.d.ts +18 -0
  136. package/dts/src/directive/index.d.ts +5 -0
  137. package/dts/src/directive/permission/index.d.ts +9 -0
  138. package/dts/src/enums/MenuTypeEnum.d.ts +18 -0
  139. package/dts/src/hooks/useColumnToggleTable.d.ts +7 -0
  140. package/dts/src/index.d.ts +29 -3
  141. package/dts/src/lang/index.d.ts +534 -0
  142. package/dts/src/lang/package/en.d.ts +261 -0
  143. package/dts/src/lang/package/zh-cn.d.ts +275 -0
  144. package/dts/src/layout/components/AppMain.vue.d.ts +2 -0
  145. package/dts/src/layout/components/NavBar/NavRight.vue.d.ts +2 -0
  146. package/dts/src/layout/components/NavBar/index.vue.d.ts +2 -0
  147. package/dts/src/layout/components/Settings/index.vue.d.ts +2 -0
  148. package/dts/src/layout/components/Sidebar/Item.vue.d.ts +23 -0
  149. package/dts/src/layout/components/Sidebar/LeftMenu.vue.d.ts +24 -0
  150. package/dts/src/layout/components/Sidebar/Link.vue.d.ts +19 -0
  151. package/dts/src/layout/components/Sidebar/Logo.vue.d.ts +12 -0
  152. package/dts/src/layout/components/Sidebar/SidebarItem.vue.d.ts +42 -0
  153. package/dts/src/layout/components/Sidebar/TopMenu.vue.d.ts +2 -0
  154. package/dts/src/layout/components/Sidebar/index.vue.d.ts +2 -0
  155. package/dts/src/layout/components/TagsView/ScrollPane.vue.d.ts +16 -0
  156. package/dts/src/layout/components/TagsView/index.vue.d.ts +2 -0
  157. package/dts/src/layout/components/index.d.ts +4 -0
  158. package/dts/src/layout/index.vue.d.ts +2 -0
  159. package/dts/src/layout/main.vue.d.ts +2 -0
  160. package/dts/src/main.d.ts +5 -1
  161. package/dts/src/permission.d.ts +1 -0
  162. package/dts/src/router/index.d.ts +10 -0
  163. package/dts/src/settings.d.ts +13 -0
  164. package/dts/src/stores/index.d.ts +7 -0
  165. package/dts/src/stores/modules/tagsView.d.ts +82 -0
  166. package/dts/src/utils/common.d.ts +6 -0
  167. package/dts/src/utils/grpc.d.ts +2 -0
  168. package/dts/src/utils/i18n.d.ts +1 -0
  169. package/dts/src/utils/index.d.ts +24 -0
  170. package/dts/src/utils/request.d.ts +2 -0
  171. package/dts/src/utils/resize.d.ts +1 -0
  172. package/dts/src/utils/scroll-to.d.ts +6 -0
  173. package/dts/src/views/dashboard/components/BarChart.vue.d.ts +45 -0
  174. package/dts/src/views/dashboard/components/FunnelChart.vue.d.ts +45 -0
  175. package/dts/src/views/dashboard/components/PieChart.vue.d.ts +45 -0
  176. package/dts/src/views/dashboard/components/RadarChart.vue.d.ts +45 -0
  177. package/dts/src/views/dashboard/index.vue.d.ts +2 -0
  178. package/dts/src/views/error-page/401.vue.d.ts +2 -0
  179. package/dts/src/views/error-page/404.vue.d.ts +2 -0
  180. package/dts/src/views/login/components/types.vue.d.ts +2 -0
  181. package/dts/src/views/login/index.vue.d.ts +2 -0
  182. package/dts/src/views/my/profile.vue.d.ts +2 -0
  183. package/dts/src/views/my/updatePwd.vue.d.ts +18 -0
  184. package/dts/src/views/redirect/index.vue.d.ts +2 -0
  185. package/dts/src/views/system/dept/edit.vue.d.ts +31 -0
  186. package/dts/src/views/system/dept/index.vue.d.ts +2 -0
  187. package/dts/src/views/system/job/edit.vue.d.ts +30 -0
  188. package/dts/src/views/system/job/index.vue.d.ts +2 -0
  189. package/dts/src/views/system/log/index.vue.d.ts +2 -0
  190. package/dts/src/views/system/log/oplog/index.vue.d.ts +2 -0
  191. package/dts/src/views/system/log/userLog/index.vue.d.ts +2 -0
  192. package/dts/src/views/system/menu/edit.vue.d.ts +31 -0
  193. package/dts/src/views/system/menu/index.vue.d.ts +2 -0
  194. package/dts/src/views/system/module/edit.vue.d.ts +31 -0
  195. package/dts/src/views/system/module/index.vue.d.ts +2 -0
  196. package/dts/src/views/system/operation/edit.vue.d.ts +31 -0
  197. package/dts/src/views/system/operation/index.vue.d.ts +2 -0
  198. package/dts/src/views/system/permission/edit.vue.d.ts +30 -0
  199. package/dts/src/views/system/permission/index.vue.d.ts +2 -0
  200. package/dts/src/views/system/role/edit.vue.d.ts +31 -0
  201. package/dts/src/views/system/role/index.vue.d.ts +2 -0
  202. package/dts/src/views/system/user/edit.vue.d.ts +31 -0
  203. package/dts/src/views/system/user/index.vue.d.ts +2 -0
  204. package/dts/tsconfig.tsbuildinfo +1 -1
  205. package/package.json +31 -2
  206. package/dts/src/components/HelloWorld.vue.d.ts +0 -15
  207. package/dts/src/components/WelcomeItem.vue.d.ts +0 -11
  208. package/dts/src/components/icons/IconSupport.vue.d.ts +0 -2
  209. package/dts/src/components/icons/IconTooling.vue.d.ts +0 -2
  210. package/dts/src/stores/counter.d.ts +0 -13
  211. package/dts/src/views/AboutView.vue.d.ts +0 -2
  212. package/dts/src/views/HomeView.vue.d.ts +0 -2
@@ -0,0 +1,205 @@
1
+ import { g as x, d as b, i as D, v as U, l as B, f as N, h as $ } from "./index-B6wY38lY.mjs";
2
+ import { E as R } from "./el-dialog-CSWvTJrq.mjs";
3
+ import { _ as S, E as q } from "./picture-kDaEiPHi.mjs";
4
+ import { a as z, E as A } from "./el-form-item-f-baJSfe.mjs";
5
+ import { defineComponent as M, ref as I, reactive as m, openBlock as P, createElementBlock as T, Fragment as j, createVNode as e, withCtx as a, createTextVNode as p, toDisplayString as u, createElementVNode as f } from "vue";
6
+ const L = { class: "h-[40px]" }, G = { class: "image-slot" }, H = { class: "dialog-footer" }, Y = /* @__PURE__ */ M({
7
+ __name: "types",
8
+ setup(J) {
9
+ const _ = I(), c = m({
10
+ visible: !1
11
+ }), n = m({
12
+ content: "获取验证码",
13
+ timers: 60,
14
+ disabled: !1
15
+ }), o = m({
16
+ name: "",
17
+ captchaId: "",
18
+ captchaCode: "",
19
+ validCode: ""
20
+ }), g = I(), v = m({
21
+ captchaCode: [{ required: !0, message: "请输入验证码", trigger: "blur" }],
22
+ name: [{ required: !0, message: "请输入邮箱或手机号", trigger: "blur" }]
23
+ // validCode: [
24
+ // { required: true, message: "请输入6位数字的验证码", trigger: "blur" },
25
+ // ],
26
+ });
27
+ function C() {
28
+ x().then(({ data: l }) => {
29
+ o.captchaId = l.captchaId, _.value = l.base64Image, c.visible = !0, o.captchaCode = "";
30
+ });
31
+ }
32
+ function V() {
33
+ C();
34
+ }
35
+ const E = async () => {
36
+ var l;
37
+ await ((l = g.value) == null ? void 0 : l.validate((t) => {
38
+ if (t) {
39
+ c.visible = !1;
40
+ const i = {
41
+ tenant: b().user.tenant,
42
+ name: o.name,
43
+ captchaId: o.captchaId,
44
+ captchaCode: o.captchaCode
45
+ };
46
+ D(i).then(({ data: s }) => {
47
+ console.log(s);
48
+ const r = window.setInterval(() => {
49
+ n.content = n.timers + "s后重新发送", n.timers--, n.disabled = !0, n.timers < 0 && (n.timers = 60, n.disabled = !1, n.content = "重新发送验证码", window.clearInterval(r));
50
+ }, 1e3);
51
+ });
52
+ }
53
+ }));
54
+ };
55
+ function w() {
56
+ const l = {
57
+ tenant: b().user.tenant,
58
+ directoryId: "jmash",
59
+ name: o.name,
60
+ validCode: o.validCode,
61
+ clientId: U.APP_CLIENT_ID,
62
+ scope: ""
63
+ };
64
+ B(l).then((t) => {
65
+ console.log(t);
66
+ });
67
+ }
68
+ return (l, t) => {
69
+ const i = N, s = z, r = $, h = A, y = S, k = q, F = R;
70
+ return P(), T(j, null, [
71
+ e(h, {
72
+ ref_key: "ruleFormRef",
73
+ ref: g,
74
+ size: "large",
75
+ model: o,
76
+ rules: v
77
+ }, {
78
+ default: a(() => [
79
+ e(s, { prop: "name" }, {
80
+ default: a(() => [
81
+ e(i, {
82
+ modelValue: o.name,
83
+ "onUpdate:modelValue": t[0] || (t[0] = (d) => o.name = d),
84
+ clearable: "",
85
+ placeholder: "请输入邮箱/已验证手机号"
86
+ }, null, 8, ["modelValue"])
87
+ ]),
88
+ _: 1
89
+ }),
90
+ e(s, { prop: "validCode" }, {
91
+ default: a(() => [
92
+ e(i, {
93
+ modelValue: o.validCode,
94
+ "onUpdate:modelValue": t[1] || (t[1] = (d) => o.validCode = d),
95
+ placeholder: "请输入验证码",
96
+ clearable: ""
97
+ }, {
98
+ append: a(() => [
99
+ e(r, {
100
+ disabled: n.disabled,
101
+ onClick: V
102
+ }, {
103
+ default: a(() => [
104
+ p(u(n.content), 1)
105
+ ]),
106
+ _: 1
107
+ }, 8, ["disabled"])
108
+ ]),
109
+ _: 1
110
+ }, 8, ["modelValue"])
111
+ ]),
112
+ _: 1
113
+ }),
114
+ e(s, null, {
115
+ default: a(() => [
116
+ e(r, {
117
+ type: "primary",
118
+ class: "w-full",
119
+ onClick: w
120
+ }, {
121
+ default: a(() => [
122
+ p(" 登录 ")
123
+ ]),
124
+ _: 1
125
+ })
126
+ ]),
127
+ _: 1
128
+ })
129
+ ]),
130
+ _: 1
131
+ }, 8, ["model", "rules"]),
132
+ e(F, {
133
+ title: "提示",
134
+ modelValue: c.visible,
135
+ "onUpdate:modelValue": t[4] || (t[4] = (d) => c.visible = d),
136
+ width: "500px"
137
+ }, {
138
+ footer: a(() => [
139
+ f("div", H, [
140
+ e(r, {
141
+ onClick: t[3] || (t[3] = (d) => c.visible = !1)
142
+ }, {
143
+ default: a(() => [
144
+ p(u(l.$t("common.cancel")), 1)
145
+ ]),
146
+ _: 1
147
+ }),
148
+ e(r, {
149
+ type: "primary",
150
+ onClick: E
151
+ }, {
152
+ default: a(() => [
153
+ p(u(l.$t("common.confirm")), 1)
154
+ ]),
155
+ _: 1
156
+ })
157
+ ])
158
+ ]),
159
+ default: a(() => [
160
+ e(h, {
161
+ ref: "pwdFormRef",
162
+ size: "large",
163
+ model: o,
164
+ rules: v
165
+ }, {
166
+ default: a(() => [
167
+ e(s, { prop: "captchaCode" }, {
168
+ default: a(() => [
169
+ e(i, {
170
+ modelValue: o.captchaCode,
171
+ "onUpdate:modelValue": t[2] || (t[2] = (d) => o.captchaCode = d),
172
+ "auto-complete": "off",
173
+ placeholder: l.$t("login.captchaCode"),
174
+ class: "w-[60%]"
175
+ }, null, 8, ["modelValue", "placeholder"]),
176
+ f("div", L, [
177
+ e(k, {
178
+ src: _.value,
179
+ onClick: C,
180
+ class: "w-[130px] h-[40px] cursor-pointer"
181
+ }, {
182
+ error: a(() => [
183
+ f("div", G, [
184
+ e(y)
185
+ ])
186
+ ]),
187
+ _: 1
188
+ }, 8, ["src"])
189
+ ])
190
+ ]),
191
+ _: 1
192
+ })
193
+ ]),
194
+ _: 1
195
+ }, 8, ["model", "rules"])
196
+ ]),
197
+ _: 1
198
+ }, 8, ["modelValue"])
199
+ ], 64);
200
+ };
201
+ }
202
+ });
203
+ export {
204
+ Y as default
205
+ };
@@ -0,0 +1,4 @@
1
+ import { _ as f } from "./updatePwd.vue_vue_type_script_setup_true_lang-1LEdjkQ3.mjs";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,151 @@
1
+ import { am as y, E as C, f as h, h as v } from "./index-B6wY38lY.mjs";
2
+ import { E as x } from "./el-dialog-CSWvTJrq.mjs";
3
+ import { a as O, E as A } from "./el-form-item-f-baJSfe.mjs";
4
+ import { defineComponent as B, ref as F, toRefs as I, reactive as f, openBlock as R, createBlock as U, unref as r, isRef as q, withCtx as a, createElementVNode as D, createVNode as t, createTextVNode as c } from "vue";
5
+ const $ = { class: "dialog-footer" }, k = /* @__PURE__ */ B({
6
+ __name: "updatePwd",
7
+ props: {
8
+ pwdVisible: {
9
+ type: Boolean,
10
+ default: !1
11
+ }
12
+ },
13
+ emits: ["dialogActionChange"],
14
+ setup(P, { emit: _ }) {
15
+ const i = F(), V = P, { pwdVisible: w } = I(V), u = _;
16
+ let l = f({
17
+ encodeOldPwd: "",
18
+ encodeNewPwd: "",
19
+ confirmPwd: ""
20
+ });
21
+ const g = f({
22
+ encodeOldPwd: [
23
+ { required: !0, validator: (d, e, o) => {
24
+ e === "" ? o(new Error("请输入旧密码")) : o();
25
+ }, trigger: "blur" }
26
+ ],
27
+ encodeNewPwd: [
28
+ { required: !0, validator: (d, e, o) => {
29
+ e === "" ? o(new Error("请输入新密码")) : /^(?=.*[0-9])(?=.*[A-Z])(?=.*[a-z])(?=.*[!@#$%?^&*,\._\+(){}])[0-9a-zA-Z!@#$%?^&*,\\._\+(){}]{8,20}$/.test(e) ? o() : o(new Error("请输入8-20位包含数字,大小写字母,特殊符号的密码"));
30
+ }, trigger: "blur" }
31
+ ],
32
+ confirmPwd: [
33
+ { required: !0, validator: (d, e, o) => {
34
+ e === "" ? o(new Error("请再一次输入新密码")) : e !== l.encodeNewPwd ? o(new Error("两次密码不一致")) : o();
35
+ }, trigger: "blur" }
36
+ ]
37
+ }), E = async () => {
38
+ var d;
39
+ await ((d = i.value) == null ? void 0 : d.validate((e) => {
40
+ if (e)
41
+ y(l.encodeOldPwd, l.encodeNewPwd).then((o) => {
42
+ o.status === 200 && (C({
43
+ message: "密码修改成功",
44
+ type: "success"
45
+ }), u("dialogActionChange", !1));
46
+ });
47
+ else
48
+ return !1;
49
+ }));
50
+ };
51
+ function p() {
52
+ var d;
53
+ (d = i.value) == null || d.resetFields(), u("dialogActionChange", !1);
54
+ }
55
+ return (d, e) => {
56
+ const o = h, s = O, N = A, m = v, b = x;
57
+ return R(), U(b, {
58
+ title: "修改密码",
59
+ modelValue: r(w),
60
+ "onUpdate:modelValue": e[3] || (e[3] = (n) => q(w) ? w.value = n : null),
61
+ width: "500px",
62
+ onClose: p
63
+ }, {
64
+ footer: a(() => [
65
+ D("div", $, [
66
+ t(m, { onClick: p }, {
67
+ default: a(() => [
68
+ c("取消")
69
+ ]),
70
+ _: 1
71
+ }),
72
+ t(m, {
73
+ type: "primary",
74
+ onClick: E
75
+ }, {
76
+ default: a(() => [
77
+ c("确认")
78
+ ]),
79
+ _: 1
80
+ })
81
+ ])
82
+ ]),
83
+ default: a(() => [
84
+ t(N, {
85
+ ref_key: "pwdRef",
86
+ ref: i,
87
+ model: r(l),
88
+ "label-width": "80px",
89
+ rules: g
90
+ }, {
91
+ default: a(() => [
92
+ t(s, {
93
+ label: "旧密码",
94
+ prop: "encodeOldPwd"
95
+ }, {
96
+ default: a(() => [
97
+ t(o, {
98
+ type: "password",
99
+ modelValue: r(l).encodeOldPwd,
100
+ "onUpdate:modelValue": e[0] || (e[0] = (n) => r(l).encodeOldPwd = n),
101
+ placeholder: "请输入旧密码",
102
+ "show-password": "",
103
+ clearable: ""
104
+ }, null, 8, ["modelValue"])
105
+ ]),
106
+ _: 1
107
+ }),
108
+ t(s, {
109
+ label: "新密码",
110
+ prop: "encodeNewPwd"
111
+ }, {
112
+ default: a(() => [
113
+ t(o, {
114
+ type: "password",
115
+ modelValue: r(l).encodeNewPwd,
116
+ "onUpdate:modelValue": e[1] || (e[1] = (n) => r(l).encodeNewPwd = n),
117
+ placeholder: "请输入新密码",
118
+ "show-password": "",
119
+ clearable: ""
120
+ }, null, 8, ["modelValue"])
121
+ ]),
122
+ _: 1
123
+ }),
124
+ t(s, {
125
+ label: "确认密码",
126
+ prop: "confirmPwd"
127
+ }, {
128
+ default: a(() => [
129
+ t(o, {
130
+ type: "password",
131
+ modelValue: r(l).confirmPwd,
132
+ "onUpdate:modelValue": e[2] || (e[2] = (n) => r(l).confirmPwd = n),
133
+ placeholder: "请再一次输入新密码",
134
+ "show-password": "",
135
+ clearable: ""
136
+ }, null, 8, ["modelValue"])
137
+ ]),
138
+ _: 1
139
+ })
140
+ ]),
141
+ _: 1
142
+ }, 8, ["model", "rules"])
143
+ ]),
144
+ _: 1
145
+ }, 8, ["modelValue"]);
146
+ };
147
+ }
148
+ });
149
+ export {
150
+ k as _
151
+ };
@@ -0,0 +1,272 @@
1
+ import { f as R, h as $, af as I, E as D, b as A } from "./index-B6wY38lY.mjs";
2
+ import "./el-popper-C13p_dqu.mjs";
3
+ import { E as M } from "./el-popover-D8RrIMbA.mjs";
4
+ import { E as P } from "./el-switch-cqWxQwcb.mjs";
5
+ import { openBlock as x, createElementBlock as L, createElementVNode as b, defineComponent as z, ref as u, toRefs as F, watchEffect as N, createBlock as j, withCtx as C, createVNode as _, createTextVNode as k, toDisplayString as T, unref as B, isRef as U, Fragment as q, renderList as O, normalizeClass as Q, withModifiers as G, reactive as H } from "vue";
6
+ import { _ as J } from "./index-DjkMA-Wh.mjs";
7
+ import { E as K } from "./el-form-item-f-baJSfe.mjs";
8
+ const W = {
9
+ viewBox: "0 0 1024 1024",
10
+ width: "1.2em",
11
+ height: "1.2em"
12
+ }, X = /* @__PURE__ */ b("path", {
13
+ fill: "currentColor",
14
+ d: "m795.904 750.72l124.992 124.928a32 32 0 0 1-45.248 45.248L750.656 795.904a416 416 0 1 1 45.248-45.248zM480 832a352 352 0 1 0 0-704a352 352 0 0 0 0 704"
15
+ }, null, -1), Y = [
16
+ X
17
+ ];
18
+ function Z(n, a) {
19
+ return x(), L("svg", W, [...Y]);
20
+ }
21
+ const ee = { name: "ep-search", render: Z }, oe = { class: "table-list" }, ne = ["onClick"], te = { class: "table-footer" }, fe = /* @__PURE__ */ z({
22
+ __name: "index",
23
+ props: {
24
+ tableLabel: {
25
+ type: Array,
26
+ default: () => []
27
+ },
28
+ parIndex: {
29
+ type: Number,
30
+ default: () => -1
31
+ }
32
+ },
33
+ emits: ["fixedChange", "isShowChange"],
34
+ setup(n, { emit: a }) {
35
+ const i = u(), t = u();
36
+ let f = u([]);
37
+ const c = n, { parIndex: o } = F(c);
38
+ t.value = o.value, console.log(o.value);
39
+ const m = a;
40
+ function y() {
41
+ m("isShowChange");
42
+ }
43
+ function v(e) {
44
+ t.value = e, m("fixedChange", t.value);
45
+ }
46
+ function g() {
47
+ i.value = "", t.value = void 0, m("fixedChange", t.value);
48
+ }
49
+ return N(() => (i.value ? f.value = c.tableLabel.filter((e) => e.label.indexOf(i.value) !== -1) : f.value = c.tableLabel.slice(
50
+ 0,
51
+ c.tableLabel.length - 1
52
+ ), f)), (e, s) => {
53
+ const d = J, w = ee, S = R, l = P, r = $, p = M;
54
+ return x(), j(p, {
55
+ placement: "bottom-end",
56
+ width: 250,
57
+ trigger: "click"
58
+ }, {
59
+ reference: C(() => [
60
+ _(d, {
61
+ "icon-class": "列表",
62
+ class: "dropdown-left"
63
+ }),
64
+ k(" " + T(e.$t("common.tableSet")), 1)
65
+ ]),
66
+ default: C(() => [
67
+ _(S, {
68
+ modelValue: B(i),
69
+ "onUpdate:modelValue": s[0] || (s[0] = (h) => U(i) ? i.value = h : null),
70
+ placeholder: e.$t("common.searchField"),
71
+ clearable: ""
72
+ }, {
73
+ prefix: C(() => [
74
+ _(w)
75
+ ]),
76
+ _: 1
77
+ }, 8, ["modelValue", "placeholder"]),
78
+ b("ul", oe, [
79
+ (x(!0), L(q, null, O(B(f), (h, E) => (x(), L("li", {
80
+ key: E,
81
+ class: Q({ "fixed-active": E <= B(t) }),
82
+ onClick: (V) => v(E)
83
+ }, [
84
+ b("span", {
85
+ onClick: s[1] || (s[1] = G(() => {
86
+ }, ["stop", "prevent"]))
87
+ }, [
88
+ _(l, {
89
+ modelValue: h.isColumn,
90
+ "onUpdate:modelValue": (V) => h.isColumn = V,
91
+ onChange: y
92
+ }, null, 8, ["modelValue", "onUpdate:modelValue"])
93
+ ]),
94
+ b("span", null, T(h.label), 1),
95
+ b("span", null, [
96
+ _(d, { "icon-class": "固定,图钉" })
97
+ ])
98
+ ], 10, ne))), 128))
99
+ ]),
100
+ b("div", te, [
101
+ _(r, {
102
+ size: "small",
103
+ plain: "",
104
+ onClick: g
105
+ }, {
106
+ default: C(() => [
107
+ k(T(e.$t("common.reset")), 1)
108
+ ]),
109
+ _: 1
110
+ })
111
+ ])
112
+ ]),
113
+ _: 1
114
+ });
115
+ };
116
+ }
117
+ });
118
+ function me(n, a, i) {
119
+ const t = u(!1), f = u([]), c = u(0), o = H(i), m = u(), y = u(K), v = u([]);
120
+ function g() {
121
+ if (typeof t > "u" || typeof a > "u" || typeof o > "u" || typeof f > "u" || typeof c > "u") {
122
+ console.error("One or more variables are undefined.");
123
+ return;
124
+ }
125
+ t.value = !0, a.list(o).then(({ data: l }) => {
126
+ if (!l || typeof l != "object") {
127
+ console.error("Invalid data received."), t.value = !1;
128
+ return;
129
+ }
130
+ f.value = l.results, t.value = !1, c.value = l.totalSize;
131
+ }).catch((l) => {
132
+ console.error("An error occurred:", l), t.value = !1;
133
+ });
134
+ }
135
+ function e() {
136
+ o.curPage && (o.curPage = 1), g();
137
+ }
138
+ function s(l) {
139
+ I.confirm(n("common.confirmDelete"), n("common.delete"), {
140
+ // 取消按钮的文本
141
+ cancelButtonText: n("common.cancel"),
142
+ // 确认按钮的文本
143
+ confirmButtonText: n("common.confirm"),
144
+ // 确认框的类型为警告
145
+ type: "warning"
146
+ // 当用户点击确认按钮时,执行删除操作
147
+ }).then(() => {
148
+ a.del(l).then((r) => {
149
+ r.status === 200 && (D({
150
+ message: n("common.deleteSuccess"),
151
+ type: "success"
152
+ }), e());
153
+ });
154
+ }).catch((r) => {
155
+ console.error("Deletion failed:", r);
156
+ });
157
+ }
158
+ function d(l) {
159
+ if (v.value.length === 0) {
160
+ D({
161
+ message: n("common.chooseDelete"),
162
+ type: "warning"
163
+ });
164
+ return;
165
+ }
166
+ const r = v.value.map((p) => p[l]);
167
+ I.confirm(n("common.confirmBatchDelete"), n("common.delete"), {
168
+ cancelButtonText: n("common.cancel"),
169
+ confirmButtonText: n("common.confirm"),
170
+ type: "warning"
171
+ }).then(() => {
172
+ a.dels(r).then((p) => {
173
+ var h;
174
+ p.status === 200 && (D({
175
+ message: n("common.successDelete") + p.data + n("common.stripData"),
176
+ type: "success"
177
+ }), e(), (h = m.value) == null || h.tableSelection());
178
+ });
179
+ }).catch((p) => {
180
+ console.error("Deletion failed:", p);
181
+ });
182
+ }
183
+ function w(l) {
184
+ if (!a) {
185
+ console.error("API is not defined!");
186
+ return;
187
+ }
188
+ a.up(l).then((r) => {
189
+ if (!r || typeof r != "object") {
190
+ console.error("Invalid response from api.down()");
191
+ return;
192
+ }
193
+ r.status === 200 && e();
194
+ });
195
+ }
196
+ function S(l) {
197
+ if (!a) {
198
+ console.error("API is not defined!");
199
+ return;
200
+ }
201
+ a.down(l).then((r) => {
202
+ if (!r || typeof r != "object") {
203
+ console.error("Invalid response from api.down()");
204
+ return;
205
+ }
206
+ r.status === 200 && e();
207
+ });
208
+ }
209
+ return {
210
+ tableData: f,
211
+ total: c,
212
+ listLoading: t,
213
+ selectionRows: v,
214
+ getList: g,
215
+ handleQuery: e,
216
+ multipleTableRef: m,
217
+ queryFormRef: y,
218
+ deleteRecord: s,
219
+ // 删除函数
220
+ deleteRecords: d,
221
+ // 批量删除
222
+ handleMoveTop: w,
223
+ // 上移
224
+ handleMoveDown: S
225
+ // 下移
226
+ };
227
+ }
228
+ function de(n, a) {
229
+ const i = u(), t = u(n), c = A().menuTableSet;
230
+ let o = [...n];
231
+ function m() {
232
+ c.length > 0 && c.forEach((e) => {
233
+ if (e.path === a && (o = e.value, Array.isArray(o))) {
234
+ const s = o.filter((d) => d.fixed === !0).length;
235
+ i.value = s > 0 ? s - 1 : 0, console.log(i.value);
236
+ }
237
+ }), o !== void 0 && (t.value = o);
238
+ }
239
+ function y(e) {
240
+ if (!o) {
241
+ console.error("tableLabel is not defined or null!");
242
+ return;
243
+ }
244
+ e >= 0 ? o.slice(0, e + 1).forEach((d) => {
245
+ d.fixed = !0;
246
+ }) : o.slice(0, o.length - 1).forEach((s) => {
247
+ s.fixed = !1, s.isColumn = !0;
248
+ }), g();
249
+ }
250
+ function v() {
251
+ g();
252
+ }
253
+ function g() {
254
+ const e = c.find((s) => s.path === a);
255
+ e ? e.value = o : c.push({
256
+ path: a,
257
+ value: o
258
+ });
259
+ }
260
+ return {
261
+ parIndex: i,
262
+ tableArray: t,
263
+ getLocalStorageContent: m,
264
+ fixedChange: y,
265
+ isShowChange: v
266
+ };
267
+ }
268
+ export {
269
+ fe as _,
270
+ de as a,
271
+ me as u
272
+ };
@@ -1,2 +1,2 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{}>>, {}, {}>;
2
2
  export default _default;
@@ -0,0 +1,41 @@
1
+ import type { AxiosPromise } from "axios";
2
+ import type { CaptchaResult, LoginData, LoginResult, userInfo } from "./types";
3
+ /**
4
+ * 登录API
5
+ *
6
+ * @param data {LoginData}
7
+ * @returns
8
+ */
9
+ export declare function loginApi(data: LoginData): AxiosPromise<LoginResult>;
10
+ /**
11
+ * 刷新Token
12
+ */
13
+ export declare function refreshTokenApi(token: string): AxiosPromise<LoginResult>;
14
+ /**
15
+ * 注销API
16
+ */
17
+ export declare function logoutApi(accessToken: string): Promise<import("axios").AxiosResponse<any, any>>;
18
+ /**
19
+ * 获取验证码
20
+ */
21
+ export declare function getCaptchaApi(): AxiosPromise<CaptchaResult>;
22
+ /**
23
+ * 获取手机号验证码
24
+ */
25
+ export declare function sendcode(data: any): AxiosPromise<CaptchaResult>;
26
+ /**
27
+ * 通过验证码登录
28
+ */
29
+ export declare function logincode(data: any): AxiosPromise<CaptchaResult>;
30
+ /**
31
+ * 用户信息
32
+ */
33
+ export declare function getUserInfoApi(): AxiosPromise<userInfo>;
34
+ export declare function updateUser(data: any): Promise<import("axios").AxiosResponse<any, any>>;
35
+ export declare function updatePwd(encodeOldPwd: string, encodeNewPwd: string): Promise<import("axios").AxiosResponse<any, any>>;
36
+ export declare function allowRunAsUser(): Promise<import("axios").AxiosResponse<any, any>>;
37
+ /**
38
+ * 切换用户身份
39
+ */
40
+ export declare function runAsUser(userId: string): Promise<import("axios").AxiosResponse<any, any>>;
41
+ export declare function selectDsdRoles(): Promise<import("axios").AxiosResponse<any, any>>;