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,832 @@
1
+ import { ar as u, d as p, as as W, at as X, a as he, ck as ge, E as k, af as ve, aY as Ue, f as _e, h as Ie, z as Ve } from "./index-B6wY38lY.mjs";
2
+ import { E as ke } from "./el-dialog-CSWvTJrq.mjs";
3
+ import { _ as we } from "./index.vue_vue_type_script_setup_true_lang-DcIQIMBC.mjs";
4
+ import { a as $e, E as Ee } from "./el-form-item-f-baJSfe.mjs";
5
+ import "./el-icon-l0sNRNKZ.mjs";
6
+ import "./el-tag-l0sNRNKZ.mjs";
7
+ import { E as Ne, a as Ce } from "./el-select-ChOy6agQ.mjs";
8
+ import "./el-scrollbar-B8QteGV0.mjs";
9
+ import "./el-popper-C13p_dqu.mjs";
10
+ import { E as De } from "./el-tree-select-CKOwMXR7.mjs";
11
+ import { E as Re } from "./el-checkbox-B44P9jFr.mjs";
12
+ import { E as qe } from "./el-date-picker-CVwJoDEA.mjs";
13
+ import { _ as Ae } from "./index.vue_vue_type_script_setup_true_lang-DidEhco6.mjs";
14
+ import { E as je, a as Je } from "./el-col-BY0nB6k3.mjs";
15
+ import { defineComponent as Pe, ref as h, reactive as q, toRef as Te, resolveComponent as G, resolveDirective as Be, openBlock as y, createBlock as g, withCtx as r, createElementVNode as A, createVNode as l, createTextVNode as w, toDisplayString as $, unref as n, createElementBlock as K, Fragment as H, renderList as Q, createCommentVNode as j, withDirectives as Fe } from "vue";
16
+ import { a as Me } from "./common-DuVBTwAv.mjs";
17
+ import { t as Oe } from "./index-cp7l4CIE.mjs";
18
+ import { t as Ye } from "./index-Czh2Pqwr.mjs";
19
+ import { _ as ze } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
20
+ function Ut(a) {
21
+ return u({
22
+ url: "/v1/rbac/user/page",
23
+ method: "get",
24
+ params: a
25
+ });
26
+ }
27
+ function _t(a) {
28
+ const i = {
29
+ tenant: p().user.tenant,
30
+ userId: a
31
+ };
32
+ return u({
33
+ url: "/v1/rbac/user/id",
34
+ method: "delete",
35
+ params: i
36
+ });
37
+ }
38
+ function It(a) {
39
+ const i = {
40
+ tenant: p().user.tenant,
41
+ userId: a
42
+ };
43
+ return u({
44
+ url: "/v1/rbac/user/batch",
45
+ method: "put",
46
+ data: i
47
+ });
48
+ }
49
+ function Se(a) {
50
+ return u({
51
+ url: "/v1/rbac/user",
52
+ method: "post",
53
+ data: a
54
+ });
55
+ }
56
+ function Le(a) {
57
+ return u({
58
+ url: "/v1/rbac/user",
59
+ method: "patch",
60
+ data: a
61
+ });
62
+ }
63
+ function Vt(a) {
64
+ return u({
65
+ url: "/v1/rbac/user/lock",
66
+ method: "post",
67
+ data: a
68
+ });
69
+ }
70
+ function kt(a) {
71
+ return u({
72
+ url: "/v1/rbac/user/batch_enable",
73
+ method: "put",
74
+ data: a
75
+ });
76
+ }
77
+ function wt(a) {
78
+ return u({
79
+ url: "/v1/rbac/user/enable",
80
+ method: "post",
81
+ params: {
82
+ tenant: p().user.tenant,
83
+ userId: a
84
+ }
85
+ });
86
+ }
87
+ function $t(a) {
88
+ const i = {
89
+ tenant: p().user.tenant,
90
+ userId: a
91
+ };
92
+ return u({
93
+ url: "/v1/rbac/user/id",
94
+ method: "get",
95
+ params: i
96
+ });
97
+ }
98
+ function Et(a) {
99
+ return u({
100
+ url: "/v1/rbac/user/resetpwd",
101
+ method: "put",
102
+ data: a
103
+ });
104
+ }
105
+ function Nt(a) {
106
+ a.tenant = p().user.tenant, a.req.tenant = p().user.tenant, W(a);
107
+ const i = X.stringify(a, {
108
+ arrayFormat: "brackets",
109
+ allowDots: !0
110
+ });
111
+ return u({
112
+ url: "/v1/rbac/user/users.xlsx?" + i,
113
+ method: "get",
114
+ responseType: "blob"
115
+ });
116
+ }
117
+ function Ct(a) {
118
+ a.tenant = p().user.tenant, a.req.tenant = p().user.tenant, W(a);
119
+ const i = X.stringify(a, {
120
+ arrayFormat: "brackets",
121
+ allowDots: !0
122
+ });
123
+ return u({
124
+ url: "/v1/rbac/user/users.pdf?" + i,
125
+ method: "get",
126
+ responseType: "blob"
127
+ });
128
+ }
129
+ function Dt() {
130
+ return u({
131
+ url: "/v1/rbac/user/template.xlsx",
132
+ method: "get",
133
+ responseType: "blob",
134
+ params: {
135
+ tenant: p().user.tenant
136
+ }
137
+ });
138
+ }
139
+ function Rt(a) {
140
+ return u({
141
+ url: "/v1/rbac/user/import",
142
+ method: "patch",
143
+ data: a
144
+ });
145
+ }
146
+ function Ze(a) {
147
+ const i = {
148
+ tenant: p().user.tenant,
149
+ userId: a
150
+ };
151
+ return u({
152
+ url: "/v1/rbac/opens/list",
153
+ method: "get",
154
+ params: i
155
+ });
156
+ }
157
+ function Ge(a) {
158
+ return u({
159
+ url: "/v1/rbac/opens/id",
160
+ method: "delete",
161
+ params: a
162
+ });
163
+ }
164
+ function Ke(a, i) {
165
+ const d = {
166
+ tenant: p().user.tenant,
167
+ userId: a,
168
+ userName: i,
169
+ directoryId: "jmash"
170
+ };
171
+ return u({
172
+ url: "/v1/rbac/user/exist",
173
+ method: "get",
174
+ params: d
175
+ });
176
+ }
177
+ function He() {
178
+ return u({
179
+ url: "/v1/rbac/user/select_directory_id?tenant=" + p().user.tenant,
180
+ method: "get"
181
+ });
182
+ }
183
+ function qt(a) {
184
+ return u({
185
+ url: "/v1/rbac/user/approved",
186
+ method: "post",
187
+ data: a
188
+ });
189
+ }
190
+ const Qe = { class: "positon_name" }, We = { class: "plus-position" }, Xe = { class: "dialog-footer" }, xe = /* @__PURE__ */ Pe({
191
+ __name: "edit",
192
+ props: {
193
+ formData: {
194
+ type: Object,
195
+ default: () => {
196
+ }
197
+ },
198
+ dialog: {
199
+ type: Object,
200
+ default: () => {
201
+ }
202
+ }
203
+ },
204
+ emits: ["dialogEvent", "refresh"],
205
+ setup(a, { emit: i }) {
206
+ var z, S;
207
+ const { t: d } = he(), J = h(), P = h(), T = h(), B = h(), F = h();
208
+ let t = q({
209
+ tenant: p().user.tenant,
210
+ requestId: Math.random() * 10 + "",
211
+ updateMask: "directoryId,loginName,nickName,realName,gender,birthDate,mobilePhone,email,emailApproved,phoneApproved",
212
+ directoryId: "",
213
+ loginName: "",
214
+ nickName: "",
215
+ gender: "",
216
+ mobilePhone: "",
217
+ birthDate: "",
218
+ roleIds: [],
219
+ email: "",
220
+ realName: "",
221
+ status: "enabled",
222
+ userJobs: [
223
+ {
224
+ deptId: "",
225
+ jobId: ""
226
+ }
227
+ ]
228
+ });
229
+ const x = q({
230
+ directoryId: [
231
+ {
232
+ required: !0,
233
+ message: d("sysUser.directoryRequired"),
234
+ trigger: "change"
235
+ }
236
+ ],
237
+ loginName: [
238
+ { required: !0, message: d("sysUser.usernameRequired"), trigger: "blur" }
239
+ ],
240
+ nickName: [
241
+ { required: !0, message: d("sysUser.nicknameRequired"), trigger: "blur" }
242
+ ],
243
+ mobilePhone: [
244
+ {
245
+ pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/,
246
+ message: d("sysUser.correctPhone"),
247
+ trigger: "blur"
248
+ }
249
+ ],
250
+ email: [
251
+ {
252
+ pattern: /^([a-zA-Z0-9_-])+@([a-zA-Z0-9_-])+(.[a-zA-Z0-9_-])+/,
253
+ message: d("sysUser.correctEmail"),
254
+ trigger: "blur"
255
+ }
256
+ ],
257
+ roleIds: [
258
+ { required: !0, message: d("sysUser.roleRequired"), trigger: "change" }
259
+ ]
260
+ }), E = a, N = Te(E, "dialog"), _ = i, C = h(!1), M = h([]), ee = q([
261
+ {
262
+ label: d("sysUser.type"),
263
+ prop: "openType",
264
+ isColumn: !0
265
+ },
266
+ {
267
+ label: d("sysUser.nickname"),
268
+ prop: "nickName",
269
+ isColumn: !0
270
+ },
271
+ {
272
+ label: "OpenId",
273
+ prop: "openId",
274
+ isColumn: !0
275
+ },
276
+ {
277
+ label: "UnionId",
278
+ prop: "unionId",
279
+ isColumn: !0
280
+ },
281
+ {
282
+ label: d("common.operate"),
283
+ slotName: "operation",
284
+ columnType: "slot",
285
+ fixed: "right",
286
+ isColumn: !0
287
+ }
288
+ ]);
289
+ function te() {
290
+ var e;
291
+ t.userJobs && t.userJobs.length < 5 && ((e = t.userJobs) == null || e.push({
292
+ deptId: "",
293
+ jobId: ""
294
+ }));
295
+ }
296
+ function le(e) {
297
+ var o;
298
+ (o = t.userJobs) == null || o.splice(e, 1);
299
+ }
300
+ function re() {
301
+ t.pwd = Me(), t.repeatPwd = t.pwd;
302
+ }
303
+ function ae(e) {
304
+ t.repeatPwd = e;
305
+ }
306
+ (z = E.formData) != null && z.userId && (t = Object.assign(t, E.formData), ((S = t.userJobs) == null ? void 0 : S.length) === 0 && (t.userJobs = [
307
+ {
308
+ deptId: "",
309
+ jobId: ""
310
+ }
311
+ ]), t.gender === "unknown" && (t.gender = ""));
312
+ const oe = async () => {
313
+ var e;
314
+ await ((e = J.value) == null ? void 0 : e.validate((o) => {
315
+ o && (t.userId ? Le(t).then((m) => {
316
+ console.log(m), m.status === 200 && (k({
317
+ message: d("common.submitSuccess"),
318
+ type: "success"
319
+ }), _("dialogEvent", !1), _("refresh", m.status === 200));
320
+ }) : Se(t).then((m) => {
321
+ console.log(m), m.status === 200 && (k({
322
+ message: d("common.submitSuccess"),
323
+ type: "success"
324
+ }), _("dialogEvent", !1), _("refresh", m.status === 200));
325
+ }));
326
+ }));
327
+ };
328
+ function O() {
329
+ _("dialogEvent", !1);
330
+ }
331
+ function D(e, o) {
332
+ Ke(t.userId ? t.userId : "", e).then(({ data: m }) => {
333
+ m === !0 && k({
334
+ message: o + d("sysUser.exists"),
335
+ type: "warning"
336
+ });
337
+ });
338
+ }
339
+ function se(e) {
340
+ ve.confirm(d("common.confirmUnbind"), d("common.unbind"), {
341
+ cancelButtonText: d("common.cancel"),
342
+ confirmButtonText: d("common.confirm"),
343
+ type: "warning"
344
+ }).then(() => {
345
+ const o = {
346
+ tenant: p().user.tenant,
347
+ appId: e.appId,
348
+ userId: e.userId,
349
+ openId: e.openId
350
+ };
351
+ Ge(o).then((m) => {
352
+ console.log(m), m.status === 200 && (k({
353
+ message: d("common.successUnbind"),
354
+ type: "success"
355
+ }), Y());
356
+ });
357
+ }).catch(() => {
358
+ });
359
+ }
360
+ function ne() {
361
+ Ue().then(({ data: e }) => {
362
+ P.value = e.results;
363
+ }), Oe().then(({ data: e }) => {
364
+ T.value = e.results;
365
+ }), Ye().then(({ data: e }) => {
366
+ B.value = e.results;
367
+ }), He().then(({ data: e }) => {
368
+ console.log(e), F.value = e.directoryId;
369
+ });
370
+ }
371
+ function Y() {
372
+ C.value = !0, Ze(t.userId).then(({ data: e }) => {
373
+ M.value = e.results, C.value = !1;
374
+ });
375
+ }
376
+ return ne(), Y(), (e, o) => {
377
+ const m = Ne, de = Ce, b = $e, c = je, v = _e, U = Je, I = Ie, ue = Ae, L = Re, ie = qe, R = De, me = G("Remove"), Z = Ve, pe = G("CirclePlus"), ce = Ee, be = we, fe = ke, ye = Be("hasPerm");
378
+ return y(), g(fe, {
379
+ title: N.value.title,
380
+ modelValue: N.value.visible,
381
+ "onUpdate:modelValue": o[15] || (o[15] = (s) => N.value.visible = s),
382
+ width: "900px",
383
+ onClose: O
384
+ }, {
385
+ footer: r(() => [
386
+ A("div", Xe, [
387
+ l(I, { onClick: O }, {
388
+ default: r(() => [
389
+ w($(e.$t("common.cancel")), 1)
390
+ ]),
391
+ _: 1
392
+ }),
393
+ l(I, {
394
+ type: "primary",
395
+ onClick: oe
396
+ }, {
397
+ default: r(() => [
398
+ w($(e.$t("common.confirm")), 1)
399
+ ]),
400
+ _: 1
401
+ })
402
+ ])
403
+ ]),
404
+ default: r(() => [
405
+ l(ce, {
406
+ ref_key: "userFormRef",
407
+ ref: J,
408
+ model: n(t),
409
+ "label-width": "120px",
410
+ rules: x
411
+ }, {
412
+ default: r(() => [
413
+ l(U, null, {
414
+ default: r(() => [
415
+ l(c, { span: 12 }, {
416
+ default: r(() => [
417
+ l(b, {
418
+ label: e.$t("sysUser.directory"),
419
+ prop: "directoryId"
420
+ }, {
421
+ default: r(() => [
422
+ l(de, {
423
+ modelValue: n(t).directoryId,
424
+ "onUpdate:modelValue": o[0] || (o[0] = (s) => n(t).directoryId = s),
425
+ placeholder: e.$t("sysUser.directoryRequired"),
426
+ clearable: "",
427
+ style: { width: "100%" }
428
+ }, {
429
+ default: r(() => [
430
+ (y(!0), K(H, null, Q(F.value, (s) => (y(), g(m, {
431
+ key: s,
432
+ label: s,
433
+ value: s
434
+ }, null, 8, ["label", "value"]))), 128))
435
+ ]),
436
+ _: 1
437
+ }, 8, ["modelValue", "placeholder"])
438
+ ]),
439
+ _: 1
440
+ }, 8, ["label"])
441
+ ]),
442
+ _: 1
443
+ }),
444
+ l(c, { span: 12 }, {
445
+ default: r(() => [
446
+ l(b, {
447
+ label: e.$t("sysUser.username"),
448
+ prop: "loginName"
449
+ }, {
450
+ default: r(() => [
451
+ l(v, {
452
+ modelValue: n(t).loginName,
453
+ "onUpdate:modelValue": o[1] || (o[1] = (s) => n(t).loginName = s),
454
+ clearable: "",
455
+ placeholder: e.$t("sysUser.usernameRequired"),
456
+ maxlength: "30",
457
+ "show-word-limit": "",
458
+ onChange: o[2] || (o[2] = (s) => D(s, e.$t("sysUser.username")))
459
+ }, null, 8, ["modelValue", "placeholder"])
460
+ ]),
461
+ _: 1
462
+ }, 8, ["label"])
463
+ ]),
464
+ _: 1
465
+ })
466
+ ]),
467
+ _: 1
468
+ }),
469
+ l(U, null, {
470
+ default: r(() => [
471
+ l(c, { span: 12 }, {
472
+ default: r(() => [
473
+ l(b, {
474
+ label: e.$t("sysUser.nickname"),
475
+ prop: "nickName"
476
+ }, {
477
+ default: r(() => [
478
+ l(v, {
479
+ modelValue: n(t).nickName,
480
+ "onUpdate:modelValue": o[3] || (o[3] = (s) => n(t).nickName = s),
481
+ clearable: "",
482
+ maxlength: "30",
483
+ "show-word-limit": "",
484
+ placeholder: e.$t("sysUser.nicknameRequired")
485
+ }, null, 8, ["modelValue", "placeholder"])
486
+ ]),
487
+ _: 1
488
+ }, 8, ["label"])
489
+ ]),
490
+ _: 1
491
+ }),
492
+ l(c, { span: 12 }, {
493
+ default: r(() => [
494
+ n(t).userId ? j("", !0) : (y(), g(b, {
495
+ key: 0,
496
+ label: e.$t("sysUser.password"),
497
+ prop: "pwd"
498
+ }, {
499
+ default: r(() => [
500
+ l(v, {
501
+ modelValue: n(t).pwd,
502
+ "onUpdate:modelValue": o[4] || (o[4] = (s) => n(t).pwd = s),
503
+ clearable: "",
504
+ placeholder: e.$t("sysUser.passwordRequired"),
505
+ onChange: ae
506
+ }, {
507
+ append: r(() => [
508
+ l(I, { onClick: re }, {
509
+ default: r(() => [
510
+ w($(e.$t("sysUser.randomPwd")), 1)
511
+ ]),
512
+ _: 1
513
+ })
514
+ ]),
515
+ _: 1
516
+ }, 8, ["modelValue", "placeholder"])
517
+ ]),
518
+ _: 1
519
+ }, 8, ["label"]))
520
+ ]),
521
+ _: 1
522
+ })
523
+ ]),
524
+ _: 1
525
+ }),
526
+ l(U, null, {
527
+ default: r(() => [
528
+ l(c, { span: 12 }, {
529
+ default: r(() => [
530
+ l(b, {
531
+ label: e.$t("sysUser.fullName"),
532
+ prop: "realName"
533
+ }, {
534
+ default: r(() => [
535
+ l(v, {
536
+ modelValue: n(t).realName,
537
+ "onUpdate:modelValue": o[5] || (o[5] = (s) => n(t).realName = s),
538
+ clearable: "",
539
+ maxlength: "30",
540
+ "show-word-limit": "",
541
+ placeholder: e.$t("sysUser.fullNameRequired")
542
+ }, null, 8, ["modelValue", "placeholder"])
543
+ ]),
544
+ _: 1
545
+ }, 8, ["label"])
546
+ ]),
547
+ _: 1
548
+ }),
549
+ l(c, { span: 12 }, {
550
+ default: r(() => [
551
+ l(b, {
552
+ label: e.$t("sysUser.gender"),
553
+ prop: "gender"
554
+ }, {
555
+ default: r(() => [
556
+ l(ue, {
557
+ modelValue: n(t).gender,
558
+ "onUpdate:modelValue": o[6] || (o[6] = (s) => n(t).gender = s),
559
+ clearable: !0,
560
+ placeholder: e.$t("sysUser.genderRequired"),
561
+ "dict-type": "jmash.protobuf.Gender"
562
+ }, null, 8, ["modelValue", "placeholder"])
563
+ ]),
564
+ _: 1
565
+ }, 8, ["label"])
566
+ ]),
567
+ _: 1
568
+ })
569
+ ]),
570
+ _: 1
571
+ }),
572
+ l(U, null, {
573
+ default: r(() => [
574
+ l(c, { span: 12 }, {
575
+ default: r(() => [
576
+ l(b, {
577
+ label: e.$t("sysUser.phoneNumber"),
578
+ prop: "mobilePhone"
579
+ }, {
580
+ default: r(() => [
581
+ l(v, {
582
+ modelValue: n(t).mobilePhone,
583
+ "onUpdate:modelValue": o[8] || (o[8] = (s) => n(t).mobilePhone = s),
584
+ placeholder: e.$t("sysUser.phoneNumberRequired"),
585
+ clearable: "",
586
+ onChange: o[9] || (o[9] = (s) => D(s, e.$t("sysUser.phoneNumber")))
587
+ }, {
588
+ append: r(() => [
589
+ l(L, {
590
+ modelValue: n(t).phoneApproved,
591
+ "onUpdate:modelValue": o[7] || (o[7] = (s) => n(t).phoneApproved = s),
592
+ disabled: !n(t).userId,
593
+ label: "通过手机号验证"
594
+ }, null, 8, ["modelValue", "disabled"])
595
+ ]),
596
+ _: 1
597
+ }, 8, ["modelValue", "placeholder"])
598
+ ]),
599
+ _: 1
600
+ }, 8, ["label"])
601
+ ]),
602
+ _: 1
603
+ }),
604
+ l(c, { span: 12 }, {
605
+ default: r(() => [
606
+ l(b, {
607
+ label: e.$t("sysUser.email"),
608
+ prop: "email"
609
+ }, {
610
+ default: r(() => [
611
+ l(v, {
612
+ modelValue: n(t).email,
613
+ "onUpdate:modelValue": o[11] || (o[11] = (s) => n(t).email = s),
614
+ placeholder: e.$t("sysUser.emailRequired"),
615
+ clearable: "",
616
+ maxlength: "30",
617
+ "show-word-limit": "",
618
+ onChange: o[12] || (o[12] = (s) => D(s, e.$t("sysUser.email")))
619
+ }, {
620
+ append: r(() => [
621
+ l(L, {
622
+ modelValue: n(t).emailApproved,
623
+ "onUpdate:modelValue": o[10] || (o[10] = (s) => n(t).emailApproved = s),
624
+ disabled: !n(t).userId,
625
+ label: "通过邮件验证"
626
+ }, null, 8, ["modelValue", "disabled"])
627
+ ]),
628
+ _: 1
629
+ }, 8, ["modelValue", "placeholder"])
630
+ ]),
631
+ _: 1
632
+ }, 8, ["label"])
633
+ ]),
634
+ _: 1
635
+ })
636
+ ]),
637
+ _: 1
638
+ }),
639
+ l(U, null, {
640
+ default: r(() => [
641
+ l(c, { span: 12 }, {
642
+ default: r(() => [
643
+ l(b, {
644
+ label: e.$t("sysUser.birthday"),
645
+ prop: "birthDate"
646
+ }, {
647
+ default: r(() => [
648
+ l(ie, {
649
+ modelValue: n(t).birthDate,
650
+ "onUpdate:modelValue": o[13] || (o[13] = (s) => n(t).birthDate = s),
651
+ type: "date",
652
+ placeholder: e.$t("sysUser.birthdayRequired"),
653
+ format: "YYYY-MM-DD",
654
+ "value-format": "YYYY-MM-DD",
655
+ style: { width: "100%" }
656
+ }, null, 8, ["modelValue", "placeholder"])
657
+ ]),
658
+ _: 1
659
+ }, 8, ["label"])
660
+ ]),
661
+ _: 1
662
+ }),
663
+ l(c, { span: 12 }, {
664
+ default: r(() => [
665
+ l(b, {
666
+ label: e.$t("sysUser.role"),
667
+ prop: "roleIds"
668
+ }, {
669
+ default: r(() => [
670
+ l(R, {
671
+ modelValue: n(t).roleIds,
672
+ "onUpdate:modelValue": o[14] || (o[14] = (s) => n(t).roleIds = s),
673
+ data: P.value,
674
+ "render-after-expand": !1,
675
+ "show-checkbox": "",
676
+ "check-strictly": !0,
677
+ multiple: "",
678
+ clearable: "",
679
+ style: { width: "100%" },
680
+ placeholder: e.$t("sysUser.roleRequired")
681
+ }, null, 8, ["modelValue", "data", "placeholder"])
682
+ ]),
683
+ _: 1
684
+ }, 8, ["label"])
685
+ ]),
686
+ _: 1
687
+ })
688
+ ]),
689
+ _: 1
690
+ }),
691
+ A("div", Qe, [
692
+ (y(!0), K(H, null, Q(n(t).userJobs, (s, f) => (y(), g(U, {
693
+ key: f,
694
+ style: { width: "100%" }
695
+ }, {
696
+ default: r(() => [
697
+ l(c, { span: 12 }, {
698
+ default: r(() => [
699
+ l(b, {
700
+ label: e.$t("sysUser.department"),
701
+ prop: `userJobs.${f}.deptId`
702
+ }, {
703
+ default: r(() => [
704
+ l(R, {
705
+ modelValue: n(t).userJobs[f].deptId,
706
+ "onUpdate:modelValue": (V) => n(t).userJobs[f].deptId = V,
707
+ data: T.value,
708
+ "render-after-expand": !1,
709
+ filterable: "",
710
+ clearable: "",
711
+ "check-strictly": "",
712
+ placeholder: e.$t("sysUser.departmentRequired"),
713
+ style: { width: "100%" }
714
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
715
+ ]),
716
+ _: 2
717
+ }, 1032, ["label", "prop"])
718
+ ]),
719
+ _: 2
720
+ }, 1024),
721
+ l(c, { span: 11 }, {
722
+ default: r(() => [
723
+ l(b, {
724
+ label: e.$t("sysUser.position"),
725
+ prop: `userJobs.${f}.jobId`
726
+ }, {
727
+ default: r(() => [
728
+ l(R, {
729
+ modelValue: n(t).userJobs[f].jobId,
730
+ "onUpdate:modelValue": (V) => n(t).userJobs[f].jobId = V,
731
+ data: B.value,
732
+ "render-after-expand": !1,
733
+ filterable: "",
734
+ clearable: "",
735
+ "check-strictly": "",
736
+ placeholder: e.$t("sysUser.positionRequired"),
737
+ style: { width: "100%" }
738
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data", "placeholder"])
739
+ ]),
740
+ _: 2
741
+ }, 1032, ["label", "prop"])
742
+ ]),
743
+ _: 2
744
+ }, 1024),
745
+ f !== 0 ? (y(), g(c, {
746
+ key: 0,
747
+ span: 1,
748
+ class: "position-center"
749
+ }, {
750
+ default: r(() => [
751
+ l(Z, {
752
+ size: "16",
753
+ onClick: (V) => le(f)
754
+ }, {
755
+ default: r(() => [
756
+ l(me)
757
+ ]),
758
+ _: 2
759
+ }, 1032, ["onClick"])
760
+ ]),
761
+ _: 2
762
+ }, 1024)) : j("", !0)
763
+ ]),
764
+ _: 2
765
+ }, 1024))), 128)),
766
+ A("div", We, [
767
+ l(Z, {
768
+ size: "16",
769
+ onClick: te
770
+ }, {
771
+ default: r(() => [
772
+ l(pe)
773
+ ]),
774
+ _: 1
775
+ })
776
+ ])
777
+ ])
778
+ ]),
779
+ _: 1
780
+ }, 8, ["model", "rules"]),
781
+ n(t).userId ? (y(), g(be, {
782
+ key: 0,
783
+ "list-loading": C.value,
784
+ "table-data": M.value,
785
+ "table-label": ee,
786
+ "is-selection": !1
787
+ }, {
788
+ operation: r((s) => [
789
+ Fe((y(), g(I, {
790
+ link: "",
791
+ size: "small",
792
+ type: "primary",
793
+ icon: n(ge),
794
+ onClick: (f) => se(s.data.row)
795
+ }, {
796
+ default: r(() => [
797
+ w($(e.$t("common.unbind")), 1)
798
+ ]),
799
+ _: 2
800
+ }, 1032, ["icon", "onClick"])), [
801
+ [ye, ["rbac:opens:delete"]]
802
+ ])
803
+ ]),
804
+ _: 1
805
+ }, 8, ["list-loading", "table-data", "table-label"])) : j("", !0)
806
+ ]),
807
+ _: 1
808
+ }, 8, ["title", "modelValue"]);
809
+ };
810
+ }
811
+ }), et = /* @__PURE__ */ ze(xe, [["__scopeId", "data-v-639acbc1"]]), At = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
812
+ __proto__: null,
813
+ default: et
814
+ }, Symbol.toStringTag, { value: "Module" }));
815
+ export {
816
+ He as a,
817
+ It as b,
818
+ $t as c,
819
+ _t as d,
820
+ qt as e,
821
+ kt as f,
822
+ Ut as g,
823
+ Vt as h,
824
+ wt as i,
825
+ Nt as j,
826
+ Ct as k,
827
+ Rt as l,
828
+ At as m,
829
+ Et as r,
830
+ Dt as t,
831
+ et as u
832
+ };