@pubinfo/module-rbac 2.1.10-beta.2 → 2.1.11

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 (226) hide show
  1. package/dist/ComponentSelect-A7uGTuHW.js +3498 -0
  2. package/dist/{DynamicRoutesForm-DP_sq_Uu.js → DynamicRoutesForm-DSzy_bh5.js} +43 -42
  3. package/dist/HCheckList-ODQHidN8.js +37 -0
  4. package/dist/HoverCard-CmJCoa2b.js +44 -0
  5. package/dist/{IconSelect-CiLpc63Z.js → IconSelect-DouEg3xY.js} +89 -88
  6. package/dist/ImportExport-DisdLoY8.js +342 -0
  7. package/dist/{LayoutForm-Cp4bBrYl.js → LayoutForm-Bdfs5WeK.js} +35 -34
  8. package/dist/{MetaForm-CVSgktB_.js → MetaForm-CcDwS8vh.js} +6128 -6143
  9. package/dist/{OrgAndPosition-ClASobEv.js → OrgAndPosition-jDX7m0HD.js} +61 -60
  10. package/dist/{ResourceEdit-w8qh1MFO.js → ResourceEdit-0BYZRye_.js} +128 -127
  11. package/dist/{ResourceRelation-ChEwIbWM.js → ResourceRelation-CU-QpUhP.js} +25 -25
  12. package/dist/{ResourceRelation-D_j898zp.js → ResourceRelation-roz0a8Td.js} +35 -34
  13. package/dist/{RoleRelation-DzyVn5dk.js → RoleRelation-BQQFaum0.js} +28 -27
  14. package/dist/{RoleSelector-Cd6_RUsc.js → RoleSelector-gkar_UGG.js} +89 -89
  15. package/dist/{TenantEdit-BOvXk7BZ.js → TenantEdit-BsahDUlf.js} +94 -93
  16. package/dist/{UserAuthorization-DLeivbs7.js → UserAuthorization-2Fl4IGw7.js} +81 -80
  17. package/dist/{UserEdit-YKS1FVW_.js → UserEdit-CX3Qau8T.js} +102 -101
  18. package/dist/{animation_item-BU-LInxP.js → animation_item-DBOz2rcX.js} +20 -22
  19. package/dist/{blackWhiteList-CNQltBqC.js → blackWhiteList-DbG7JH8n.js} +69 -69
  20. package/dist/blackWhiteList.css +1 -1
  21. package/dist/breadcrumb_setting-DTR6CPZQ.js +108 -0
  22. package/dist/{browserType-Dn_hQtAN.js → browserType-B8A1Osvk.js} +11 -10
  23. package/dist/chunk-DiMWNkAf.js +18 -0
  24. package/dist/cloneDeep-CSOSavu3.js +6 -0
  25. package/dist/components/GroupSelector/index.vue.d.ts +7 -1
  26. package/dist/components/ResourceIcones/Select.vue.d.ts +2 -1
  27. package/dist/components/ResourceSelector/index.vue.d.ts +7 -1
  28. package/dist/components/RoleSelector/RoleSearch.vue.d.ts +9 -1
  29. package/dist/components/RoleSelector/RoleSelector.vue.d.ts +7 -1
  30. package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js} +49 -48
  31. package/dist/createAndEditDataPermission.css +1 -1
  32. package/dist/{data-permission-ZRQ-Aoib.js → data-permission-LpuDLDm0.js} +41 -41
  33. package/dist/{dayjs.min-sGDSMYRj.js → dayjs.min-Cb7gQFd4.js} +1 -1
  34. package/dist/{dictionary-CtGgtPfc.js → dictionary-CEaxjqZe.js} +46 -46
  35. package/dist/drawerBlackWhiteList-DXLdWurZ.js +120 -0
  36. package/dist/drawerDictionary-DYJTAZr6.js +126 -0
  37. package/dist/drawerDictionaryItem-BChXD2-q.js +138 -0
  38. package/dist/{drawerGroup-DEuiiDPP.js → drawerGroup-CdnZkZxi.js} +67 -66
  39. package/dist/drawerOrganization-CwtSFUj0.js +247 -0
  40. package/dist/drawerPosition-CfyfeQCN.js +166 -0
  41. package/dist/drawerRegion-DAwY_29K.js +183 -0
  42. package/dist/drawerRole-B7uCfHk-.js +154 -0
  43. package/dist/{drawerRole-Dv61PBZR.js → drawerRole-DK6DrinO.js} +77 -76
  44. package/dist/{drawerRole-DNDyOvXw.js → drawerRole-DrzMHL0O.js} +69 -68
  45. package/dist/{group-BbkZjv5e.js → group-CaOhkh72.js} +48 -48
  46. package/dist/group.css +1 -1
  47. package/dist/index.css +1 -1
  48. package/dist/index.js +613 -689
  49. package/dist/isEmpty-BjEzPyCa.js +12 -0
  50. package/dist/{itemlist-By-FV6pN.js → itemlist-CFwRUV2Y.js} +44 -44
  51. package/dist/json-asset-03f0a035.json +1 -0
  52. package/dist/json-asset-0ee63e7f.json +1 -0
  53. package/dist/json-asset-10eef4fe.json +1 -0
  54. package/dist/json-asset-13f452f1.json +1 -0
  55. package/dist/json-asset-14b7b290.json +1 -0
  56. package/dist/json-asset-15b8cef1.json +1 -0
  57. package/dist/json-asset-15f77960.json +1 -0
  58. package/dist/json-asset-1ae9b726.json +1 -0
  59. package/dist/json-asset-1b02359f.json +1 -0
  60. package/dist/json-asset-1ef286cd.json +1 -0
  61. package/dist/json-asset-23cfd18c.json +1 -0
  62. package/dist/json-asset-265a0a5d.json +1 -0
  63. package/dist/json-asset-28d57c49.json +1 -0
  64. package/dist/json-asset-2b54ed10.json +1 -0
  65. package/dist/json-asset-2bb6f642.json +1 -0
  66. package/dist/json-asset-2cdc07bd.json +1 -0
  67. package/dist/json-asset-31c58607.json +1 -0
  68. package/dist/json-asset-32884f23.json +1 -0
  69. package/dist/json-asset-32fca43a.json +1 -0
  70. package/dist/json-asset-3a75445b.json +1 -0
  71. package/dist/json-asset-3f27d67c.json +1 -0
  72. package/dist/json-asset-4189453f.json +1 -0
  73. package/dist/json-asset-4702b37c.json +1 -0
  74. package/dist/json-asset-520a5c68.json +1 -0
  75. package/dist/json-asset-56bea508.json +1 -0
  76. package/dist/json-asset-57c732a3.json +1 -0
  77. package/dist/json-asset-5be4a28f.json +1 -0
  78. package/dist/json-asset-5e6d7cfa.json +1 -0
  79. package/dist/json-asset-64e176c9.json +1 -0
  80. package/dist/json-asset-6583dca6.json +1 -0
  81. package/dist/json-asset-66c640c6.json +1 -0
  82. package/dist/json-asset-68393156.json +1 -0
  83. package/dist/json-asset-688465aa.json +1 -0
  84. package/dist/json-asset-6bf334f4.json +1 -0
  85. package/dist/json-asset-7b4f72ce.json +1 -0
  86. package/dist/json-asset-837ec087.json +1 -0
  87. package/dist/json-asset-838ac1ba.json +1 -0
  88. package/dist/json-asset-8465c2cf.json +1 -0
  89. package/dist/json-asset-9e9f04a4.json +1 -0
  90. package/dist/json-asset-a13964cb.json +1 -0
  91. package/dist/json-asset-ab93a057.json +1 -0
  92. package/dist/json-asset-abe308fc.json +1 -0
  93. package/dist/json-asset-b24f2cd3.json +1 -0
  94. package/dist/json-asset-bf00eaed.json +1 -0
  95. package/dist/json-asset-cb22efd7.json +1 -0
  96. package/dist/json-asset-cb953f20.json +1 -0
  97. package/dist/json-asset-cc209e34.json +1 -0
  98. package/dist/json-asset-cfdffceb.json +1 -0
  99. package/dist/json-asset-d33c0299.json +1 -0
  100. package/dist/json-asset-d430c8ca.json +1 -0
  101. package/dist/json-asset-d8cfa560.json +1 -0
  102. package/dist/json-asset-da91beb6.json +1 -0
  103. package/dist/json-asset-e2bdf85c.json +1 -0
  104. package/dist/json-asset-e34ad826.json +1 -0
  105. package/dist/json-asset-e80720aa.json +1 -0
  106. package/dist/json-asset-e894bc92.json +1 -0
  107. package/dist/json-asset-f28020f2.json +1 -0
  108. package/dist/json-asset-f71ebbf4.json +1 -0
  109. package/dist/json-asset-fb1f4917.json +1 -0
  110. package/dist/json-asset-ff2e97c4.json +1 -0
  111. package/dist/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
  112. package/dist/layout_setting.css +1 -1
  113. package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
  114. package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
  115. package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
  116. package/dist/login_history.css +1 -1
  117. package/dist/menu_setting-C2GciMXz.js +155 -0
  118. package/dist/not-data-Bml86wdH.js +3 -0
  119. package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
  120. package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
  121. package/dist/operate_history.css +1 -1
  122. package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
  123. package/dist/organization.css +1 -1
  124. package/dist/other_setting-oVuhA70c.js +213 -0
  125. package/dist/other_setting.css +1 -1
  126. package/dist/page_animation_setting-D0CtzyOZ.js +108 -0
  127. package/dist/page_animation_setting.css +1 -1
  128. package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
  129. package/dist/page_w_setting.css +1 -1
  130. package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
  131. package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
  132. package/dist/{resource-C7dXB0EE.js → resource-DaQ7CvM_.js} +69 -69
  133. package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
  134. package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
  135. package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
  136. package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
  137. package/dist/setItem.css +1 -1
  138. package/dist/tabbar_setting-DhrW4Jj5.js +139 -0
  139. package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
  140. package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
  141. package/dist/theme_setting.css +1 -1
  142. package/dist/toolbar_setting-znESrYgi.js +140 -0
  143. package/dist/useAppAndResource-B7FmNfKG.js +52 -0
  144. package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
  145. package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
  146. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
  147. package/dist/views/components/setItem.vue.d.ts +5 -1
  148. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
  149. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
  150. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
  151. package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
  152. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
  153. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
  154. package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
  155. package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
  156. package/dist/views/other_setting/interface.d.ts +1 -2
  157. package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
  158. package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
  159. package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
  160. package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
  161. package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
  162. package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
  163. package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
  164. package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
  165. package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
  166. package/dist/watermark_setting-DYirSIAn.js +191 -0
  167. package/dist/watermark_setting.css +1 -1
  168. package/package.json +13 -13
  169. package/src/views/other_setting/index.vue +2 -2
  170. package/src/views/other_setting/interface.ts +1 -1
  171. package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
  172. package/dist/ComponentSelect-WO-3S5rH.js +0 -2
  173. package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
  174. package/dist/HCheckList-B5Qk_HBI.js +0 -2
  175. package/dist/HCheckList-DLBewmPw.js +0 -36
  176. package/dist/HoverCard-69ZIOivd.js +0 -2
  177. package/dist/HoverCard-BDFcxxvk.js +0 -43
  178. package/dist/IconSelect-C_Gj5G4I.js +0 -3
  179. package/dist/ImportExport-CL5uPlby.js +0 -342
  180. package/dist/ImportExport-CPy2rvv7.js +0 -4
  181. package/dist/LayoutForm-QFjwakyQ.js +0 -4
  182. package/dist/MetaForm-Bb-um1Zo.js +0 -4
  183. package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
  184. package/dist/ResourceEdit-BTaNdwC_.js +0 -10
  185. package/dist/ResourceRelation-BIOzTOKA.js +0 -2
  186. package/dist/RoleRelation-CyTcqRfZ.js +0 -2
  187. package/dist/TenantEdit-BlMmL6q5.js +0 -2
  188. package/dist/UserAuthorization-qGr1Sdat.js +0 -3
  189. package/dist/UserEdit-CwfyqNWf.js +0 -3
  190. package/dist/animation_item-GzGItm3s.js +0 -2
  191. package/dist/breadcrumb_setting-Ds-XJRR1.js +0 -108
  192. package/dist/browserType-BXTT4j6i.js +0 -2
  193. package/dist/chunk-Cpsc_9al.js +0 -18
  194. package/dist/cloneDeep-DDAtsK42.js +0 -7
  195. package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
  196. package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
  197. package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
  198. package/dist/drawerDictionary-D911w7pC.js +0 -2
  199. package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
  200. package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
  201. package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
  202. package/dist/drawerGroup-CEEDMBg9.js +0 -3
  203. package/dist/drawerOrganization-CqEMD3gE.js +0 -246
  204. package/dist/drawerOrganization-mks5NMd9.js +0 -2
  205. package/dist/drawerPosition-Bd0s7qze.js +0 -165
  206. package/dist/drawerPosition-DwlTrlGA.js +0 -2
  207. package/dist/drawerRegion-DUbQAZuV.js +0 -182
  208. package/dist/drawerRegion-DwVzsZfT.js +0 -2
  209. package/dist/drawerRole-BNrbcSmr.js +0 -3
  210. package/dist/drawerRole-BxUIekjh.js +0 -3
  211. package/dist/drawerRole-CyA2oFht.js +0 -4
  212. package/dist/drawerRole-D5X7oHB_.js +0 -153
  213. package/dist/isEmpty-BvRqbmpu.js +0 -13
  214. package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
  215. package/dist/menu_setting-5Jet091Q.js +0 -155
  216. package/dist/not-data-Cx--tk_h.js +0 -2
  217. package/dist/not-data-tyTawN37.js +0 -2
  218. package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
  219. package/dist/other_setting-DQ70WnZK.js +0 -213
  220. package/dist/page_animation_setting-Lp6cMuFM.js +0 -108
  221. package/dist/routeSystem-DXMoWhFo.js +0 -2
  222. package/dist/setItem-Qa7UapHO.js +0 -4
  223. package/dist/tabbar_setting-B3kMhRNm.js +0 -139
  224. package/dist/toolbar_setting-DNBdxeGP.js +0 -140
  225. package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
  226. package/dist/watermark_setting-CXp4Og0Y.js +0 -191
@@ -1,20 +1,21 @@
1
- import { t as cloneDeep_default } from "./cloneDeep-DDAtsK42.js";
2
- import { t as isEmpty_default } from "./isEmpty-BvRqbmpu.js";
1
+ import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
+ import { t as cloneDeep } from "./cloneDeep-CSOSavu3.js";
3
+ import { t as isEmpty } from "./isEmpty-BjEzPyCa.js";
3
4
  import { Lt as useToggle, Q as postRbacUserUserUpdateV2, X as postRbacUserPubUserAdd, q as getRbacUserInfo } from "./index.js";
4
- import { t as OrgAndPosition_default } from "./OrgAndPosition-ClASobEv.js";
5
+ import { t as OrgAndPosition_default } from "./OrgAndPosition-jDX7m0HD.js";
5
6
  import { createBlock, createElementBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
6
7
  import { message } from "ant-design-vue";
7
8
  import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, RadioGroup, Space as Space$1, Switch, Textarea } from "ant-design-vue/es";
8
9
  let ACTION = /* @__PURE__ */ function(e) {
9
10
  return e.ADD = "新建", e.AUTHORIZE = "授权", e.RESET_PASSWORD = "重置密码", e.EDIT = "修改", e.REMOVE = "删除", e;
10
11
  }({});
11
- var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent({
12
+ var _hoisted_1 = { key: 0 }, UserEdit_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
12
13
  name: "UserEdit",
13
14
  __name: "UserEdit",
14
15
  props: { currentOrg: {} },
15
16
  emits: ["submit"],
16
- setup(D, { expose: A, emit: M }) {
17
- let N = D, P = M, [F, I] = useToggle(!1), L = ref(), R = ref({}), z = reactive({
17
+ setup(e, { expose: s, emit: u }) {
18
+ let d = e, f = u, [p, m] = useToggle(!1), h = ref(), g = ref({}), _ = reactive({
18
19
  title: "",
19
20
  record: {},
20
21
  initData: {
@@ -26,19 +27,19 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
26
27
  }]
27
28
  }
28
29
  });
29
- function B(e, S) {
30
- return !S || /^[A-Z!@#$%^&*0-9]+$/i.test(S) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("只能包含字母、数字和特殊字符!@#$%^&*"));
30
+ function v(e, t) {
31
+ return !t || /^[A-Z!@#$%^&*0-9]+$/i.test(t) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("只能包含字母、数字和特殊字符!@#$%^&*"));
31
32
  }
32
- function V(e, C) {
33
- return /^1(3\d|4[014-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$/.test(C) || isEmpty_default(C) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请输入正确的手机号"));
33
+ function y(e, t) {
34
+ return /^1(3\d|4[014-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$/.test(t) || isEmpty(t) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请输入正确的手机号"));
34
35
  }
35
- function H(e, C) {
36
- return /^([a-z0-9])(\w|-)+@[a-z0-9]+\.([a-z]{2,4})$/i.test(C) || isEmpty_default(C) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请输入正确的邮箱地址"));
36
+ function b(e, t) {
37
+ return /^([a-z0-9])(\w|-)+@[a-z0-9]+\.([a-z]{2,4})$/i.test(t) || isEmpty(t) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请输入正确的邮箱地址"));
37
38
  }
38
- function U(e, C) {
39
- return /(^\d{15}$)|(^\d{18}$)|(^\d{17}([\dX])$)/i.test(C) || isEmpty_default(C) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请输入正确的身份证号码"));
39
+ function x(e, t) {
40
+ return /(^\d{15}$)|(^\d{18}$)|(^\d{17}([\dX])$)/i.test(t) || isEmpty(t) ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("请输入正确的身份证号码"));
40
41
  }
41
- let W = {
42
+ let S = {
42
43
  loginName: [
43
44
  {
44
45
  required: !0,
@@ -52,7 +53,7 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
52
53
  trigger: "change"
53
54
  },
54
55
  {
55
- validator: B,
56
+ validator: v,
56
57
  trigger: "change"
57
58
  }
58
59
  ],
@@ -72,11 +73,11 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
72
73
  message: "请选择所属组织"
73
74
  }],
74
75
  mobile: [{
75
- validator: V,
76
+ validator: y,
76
77
  trigger: "change"
77
78
  }],
78
79
  email: [{
79
- validator: H,
80
+ validator: b,
80
81
  trigger: "change"
81
82
  }, {
82
83
  max: 32,
@@ -84,18 +85,18 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
84
85
  trigger: "change"
85
86
  }],
86
87
  idCard: [{
87
- validator: U,
88
+ validator: x,
88
89
  trigger: "change"
89
90
  }]
90
91
  };
91
- async function G(S, C) {
92
- if (z.title = S, R.value = cloneDeep_default(z.initData), R.value.userOrgList[0].orgId = N.currentOrg?.orgId, R.value.userOrgList[0].orgName = N.currentOrg?.orgName, I(!0), S === ACTION.EDIT) {
93
- let e = await getRbacUserInfo({ id: C?.id });
92
+ async function C(e, n) {
93
+ if (_.title = e, g.value = cloneDeep(_.initData), g.value.userOrgList[0].orgId = d.currentOrg?.orgId, g.value.userOrgList[0].orgName = d.currentOrg?.orgName, m(!0), e === ACTION.EDIT) {
94
+ let e = await getRbacUserInfo({ id: n?.id });
94
95
  if (e.success) {
95
- let { userOrgList: S = [], ...C } = e?.data ?? {};
96
- R.value = {
97
- ...C,
98
- userOrgList: S?.map((e) => ({
96
+ let { userOrgList: t = [], ...n } = e?.data ?? {};
97
+ g.value = {
98
+ ...n,
99
+ userOrgList: t?.map((e) => ({
99
100
  ...e,
100
101
  roleList: e.roles?.map((e) => ({
101
102
  value: e.roleId,
@@ -110,7 +111,7 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
110
111
  }
111
112
  }
112
113
  }
113
- let K = [
114
+ let w = [
114
115
  {
115
116
  label: "未知",
116
117
  value: "0"
@@ -123,158 +124,158 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
123
124
  label: "女",
124
125
  value: "2"
125
126
  }
126
- ], [q, J] = useToggle(!1);
127
- function Y() {
128
- L.value?.validate().then(() => {
129
- let { userOrgList: e = [], ...S } = R.value, C = {
130
- ...S,
127
+ ], [T, E] = useToggle(!1);
128
+ function D() {
129
+ h.value?.validate().then(() => {
130
+ let { userOrgList: e = [], ...t } = g.value, n = {
131
+ ...t,
131
132
  orgRoles: e.map((e) => {
132
- let { orgId: S, main: C } = e;
133
+ let { orgId: t, main: n } = e;
133
134
  return {
134
- orgId: S,
135
- main: C
135
+ orgId: t,
136
+ main: n
136
137
  };
137
138
  }),
138
139
  posts: e.map((e) => {
139
- let { orgId: S, positionList: C = [] } = e;
140
+ let { orgId: t, positionList: n = [] } = e;
140
141
  return {
141
- orgId: S,
142
- postIds: C.map((e) => e.value)
142
+ orgId: t,
143
+ postIds: n.map((e) => e.value)
143
144
  };
144
145
  })
145
- }, E = z.title === ACTION.ADD ? postRbacUserPubUserAdd(C) : postRbacUserUserUpdateV2(C);
146
- J(!0), E.then((e) => {
147
- e?.success && (message.success(`${z.title}成功!`), I(!1), P("submit"));
148
- }).finally(() => J(!1));
146
+ }, r = _.title === ACTION.ADD ? postRbacUserPubUserAdd(n) : postRbacUserUserUpdateV2(n);
147
+ E(!0), r.then((e) => {
148
+ e?.success && (message.success(`${_.title}成功!`), m(!1), f("submit"));
149
+ }).finally(() => E(!1));
149
150
  });
150
151
  }
151
- return A({ open: G }), (e, S) => {
152
- let C = Input$1, w = FormItem, T = RadioGroup, E = Switch, D = Textarea, O = Form$1, k = Button, A = Space$1, j = Drawer;
153
- return openBlock(), createBlock(j, {
154
- open: unref(F),
155
- "onUpdate:open": S[12] ||= (e) => isRef(F) ? F.value = e : null,
156
- title: unref(z).title,
152
+ return s({ open: C }), (e, t) => {
153
+ let n = Input$1, r = FormItem, i = RadioGroup, a = Switch, o = Textarea, s = Form$1, c = Button, l = Space$1, u = Drawer;
154
+ return openBlock(), createBlock(u, {
155
+ open: unref(p),
156
+ "onUpdate:open": t[12] ||= (e) => isRef(p) ? p.value = e : null,
157
+ title: unref(_).title,
157
158
  placement: "right",
158
159
  width: 520,
159
160
  "destroy-on-close": "",
160
161
  "footer-style": { textAlign: "right" }
161
162
  }, {
162
- footer: withCtx(() => [createVNode(A, null, {
163
- default: withCtx(() => [createVNode(k, { onClick: S[10] ||= (e) => unref(I)(!1) }, {
164
- default: withCtx(() => [...S[13] ||= [createTextVNode(" 取消 ", -1)]]),
163
+ footer: withCtx(() => [createVNode(l, null, {
164
+ default: withCtx(() => [createVNode(c, { onClick: t[10] ||= (e) => unref(m)(!1) }, {
165
+ default: withCtx(() => [...t[13] ||= [createTextVNode(" 取消 ", -1)]]),
165
166
  _: 1
166
- }), createVNode(k, {
167
+ }), createVNode(c, {
167
168
  type: "primary",
168
- loading: unref(q),
169
- onClick: S[11] ||= (e) => Y()
169
+ loading: unref(T),
170
+ onClick: t[11] ||= (e) => D()
170
171
  }, {
171
- default: withCtx(() => [...S[14] ||= [createTextVNode(" 提交 ", -1)]]),
172
+ default: withCtx(() => [...t[14] ||= [createTextVNode(" 提交 ", -1)]]),
172
173
  _: 1
173
174
  }, 8, ["loading"])]),
174
175
  _: 1
175
176
  })]),
176
- default: withCtx(() => [createVNode(O, {
177
+ default: withCtx(() => [createVNode(s, {
177
178
  ref_key: "formRef",
178
- ref: L,
179
- model: unref(R),
180
- rules: W,
179
+ ref: h,
180
+ model: unref(g),
181
+ rules: S,
181
182
  "label-col": { span: 4 }
182
183
  }, {
183
184
  default: withCtx(() => [
184
- createVNode(w, {
185
+ createVNode(r, {
185
186
  label: "登录账号",
186
187
  name: "loginName"
187
188
  }, {
188
- default: withCtx(() => [unref(z).title === unref(ACTION).EDIT ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(unref(R).loginName), 1)) : (openBlock(), createBlock(C, {
189
+ default: withCtx(() => [unref(_).title === unref(ACTION).EDIT ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(unref(g).loginName), 1)) : (openBlock(), createBlock(n, {
189
190
  key: 1,
190
- value: unref(R).loginName,
191
- "onUpdate:value": S[0] ||= (e) => unref(R).loginName = e,
191
+ value: unref(g).loginName,
192
+ "onUpdate:value": t[0] ||= (e) => unref(g).loginName = e,
192
193
  maxlength: 64,
193
194
  placeholder: "请输入登录账号",
194
195
  "allow-clear": ""
195
196
  }, null, 8, ["value"]))]),
196
197
  _: 1
197
198
  }),
198
- createVNode(w, {
199
+ createVNode(r, {
199
200
  label: "真实姓名",
200
201
  name: "realName"
201
202
  }, {
202
- default: withCtx(() => [createVNode(C, {
203
- value: unref(R).realName,
204
- "onUpdate:value": S[1] ||= (e) => unref(R).realName = e,
203
+ default: withCtx(() => [createVNode(n, {
204
+ value: unref(g).realName,
205
+ "onUpdate:value": t[1] ||= (e) => unref(g).realName = e,
205
206
  maxlength: 128,
206
207
  placeholder: "请输入真实姓名",
207
208
  "allow-clear": ""
208
209
  }, null, 8, ["value"])]),
209
210
  _: 1
210
211
  }),
211
- createVNode(w, {
212
+ createVNode(r, {
212
213
  label: "手机号",
213
214
  name: "mobile"
214
215
  }, {
215
- default: withCtx(() => [createVNode(C, {
216
- value: unref(R).mobile,
217
- "onUpdate:value": S[2] ||= (e) => unref(R).mobile = e,
216
+ default: withCtx(() => [createVNode(n, {
217
+ value: unref(g).mobile,
218
+ "onUpdate:value": t[2] ||= (e) => unref(g).mobile = e,
218
219
  maxlength: 14,
219
220
  placeholder: "请输入手机号",
220
221
  "allow-clear": ""
221
222
  }, null, 8, ["value"])]),
222
223
  _: 1
223
224
  }),
224
- createVNode(w, {
225
+ createVNode(r, {
225
226
  label: "性别",
226
227
  name: "sex"
227
228
  }, {
228
- default: withCtx(() => [createVNode(T, {
229
- value: unref(R).sex,
230
- "onUpdate:value": S[3] ||= (e) => unref(R).sex = e,
231
- options: K
229
+ default: withCtx(() => [createVNode(i, {
230
+ value: unref(g).sex,
231
+ "onUpdate:value": t[3] ||= (e) => unref(g).sex = e,
232
+ options: w
232
233
  }, null, 8, ["value"])]),
233
234
  _: 1
234
235
  }),
235
- createVNode(w, {
236
+ createVNode(r, {
236
237
  label: "邮箱",
237
238
  name: "email"
238
239
  }, {
239
- default: withCtx(() => [createVNode(C, {
240
- value: unref(R).email,
241
- "onUpdate:value": S[4] ||= (e) => unref(R).email = e,
240
+ default: withCtx(() => [createVNode(n, {
241
+ value: unref(g).email,
242
+ "onUpdate:value": t[4] ||= (e) => unref(g).email = e,
242
243
  maxlength: 32,
243
244
  placeholder: "请输入邮箱",
244
245
  "allow-clear": ""
245
246
  }, null, 8, ["value"])]),
246
247
  _: 1
247
248
  }),
248
- createVNode(w, {
249
+ createVNode(r, {
249
250
  label: "身份证",
250
251
  name: "idCard"
251
252
  }, {
252
- default: withCtx(() => [createVNode(C, {
253
- value: unref(R).idCard,
254
- "onUpdate:value": S[5] ||= (e) => unref(R).idCard = e,
253
+ default: withCtx(() => [createVNode(n, {
254
+ value: unref(g).idCard,
255
+ "onUpdate:value": t[5] ||= (e) => unref(g).idCard = e,
255
256
  maxlength: 18,
256
257
  placeholder: "请输入身份证",
257
258
  "allow-clear": ""
258
259
  }, null, 8, ["value"])]),
259
260
  _: 1
260
261
  }),
261
- createVNode(w, {
262
+ createVNode(r, {
262
263
  label: "是否启用",
263
264
  name: "enable"
264
265
  }, {
265
- default: withCtx(() => [createVNode(E, {
266
- checked: unref(R).enable,
267
- "onUpdate:checked": S[6] ||= (e) => unref(R).enable = e
266
+ default: withCtx(() => [createVNode(a, {
267
+ checked: unref(g).enable,
268
+ "onUpdate:checked": t[6] ||= (e) => unref(g).enable = e
268
269
  }, null, 8, ["checked"])]),
269
270
  _: 1
270
271
  }),
271
- createVNode(w, {
272
+ createVNode(r, {
272
273
  label: "地址",
273
274
  name: "address"
274
275
  }, {
275
- default: withCtx(() => [createVNode(D, {
276
- value: unref(R).address,
277
- "onUpdate:value": S[7] ||= (e) => unref(R).address = e,
276
+ default: withCtx(() => [createVNode(o, {
277
+ value: unref(g).address,
278
+ "onUpdate:value": t[7] ||= (e) => unref(g).address = e,
278
279
  maxlength: 200,
279
280
  "auto-size": { minRows: 2 },
280
281
  placeholder: "请输入地址",
@@ -283,13 +284,13 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
283
284
  }, null, 8, ["value"])]),
284
285
  _: 1
285
286
  }),
286
- createVNode(w, {
287
+ createVNode(r, {
287
288
  label: "描述",
288
289
  name: "description"
289
290
  }, {
290
- default: withCtx(() => [createVNode(D, {
291
- value: unref(R).description,
292
- "onUpdate:value": S[8] ||= (e) => unref(R).description = e,
291
+ default: withCtx(() => [createVNode(o, {
292
+ value: unref(g).description,
293
+ "onUpdate:value": t[8] ||= (e) => unref(g).description = e,
293
294
  maxlength: 255,
294
295
  "auto-size": { minRows: 2 },
295
296
  placeholder: "请输入描述",
@@ -298,13 +299,13 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
298
299
  }, null, 8, ["value"])]),
299
300
  _: 1
300
301
  }),
301
- createVNode(w, {
302
+ createVNode(r, {
302
303
  label: "所属组织",
303
304
  name: "userOrgList"
304
305
  }, {
305
306
  default: withCtx(() => [createVNode(OrgAndPosition_default, {
306
- modelValue: unref(R).userOrgList,
307
- "onUpdate:modelValue": S[9] ||= (e) => unref(R).userOrgList = e
307
+ modelValue: unref(g).userOrgList,
308
+ "onUpdate:modelValue": t[9] ||= (e) => unref(g).userOrgList = e
308
309
  }, null, 8, ["modelValue"])]),
309
310
  _: 1
310
311
  })
@@ -315,5 +316,5 @@ var _hoisted_1 = { key: 0 }, UserEdit_default = /* @__PURE__ */ defineComponent(
315
316
  }, 8, ["open", "title"]);
316
317
  };
317
318
  }
318
- });
319
- export { ACTION as n, UserEdit_default as t };
319
+ }), UserEdit_exports = /* @__PURE__ */ __exportAll({ default: () => UserEdit_default }), UserEdit_default = UserEdit_vue_vue_type_script_setup_true_lang_default;
320
+ export { UserEdit_exports as n, ACTION as r, UserEdit_default as t };
@@ -1,4 +1,4 @@
1
- import { o as __toESM, t as __commonJSMin } from "./chunk-Cpsc_9al.js";
1
+ import { o as __toESM, r as __exportAll, t as __commonJSMin } from "./chunk-DiMWNkAf.js";
2
2
  import { It as tryOnMounted } from "./index.js";
3
3
  import { useTheme } from "pubinfo";
4
4
  import { computed, createElementBlock, defineComponent, onMounted, onUnmounted, openBlock, ref, unref, watch } from "vue";
@@ -1970,9 +1970,7 @@ var import_lottie_light = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
1970
1970
  } else t = this.sValue, n = this.eValue;
1971
1971
  var a, o, s = this.shapes.length, c, l, u, d, f, p = 0;
1972
1972
  if (n === t) for (o = 0; o < s; o += 1) this.shapes[o].localShapeCollection.releaseShapes(), this.shapes[o].shape._mdf = !0, this.shapes[o].shape.paths = this.shapes[o].localShapeCollection, this._mdf && (this.shapes[o].pathsData.length = 0);
1973
- else if (n === 1 && t === 0 || n === 0 && t === 1) {
1974
- if (this._mdf) for (o = 0; o < s; o += 1) this.shapes[o].pathsData.length = 0, this.shapes[o].shape._mdf = !0;
1975
- } else {
1973
+ else if (!(n === 1 && t === 0 || n === 0 && t === 1)) {
1976
1974
  var m = [], h, g;
1977
1975
  for (o = 0; o < s; o += 1) if (h = this.shapes[o], !h.shape._mdf && !this._mdf && !e && this.m !== 2) h.shape.paths = h.localShapeCollection;
1978
1976
  else {
@@ -2010,7 +2008,7 @@ var import_lottie_light = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
2010
2008
  }
2011
2009
  h.shape.paths = g;
2012
2010
  }
2013
- }
2011
+ } else if (this._mdf) for (o = 0; o < s; o += 1) this.shapes[o].pathsData.length = 0, this.shapes[o].shape._mdf = !0;
2014
2012
  }, ht.prototype.addPaths = function(e, t) {
2015
2013
  var n, r = e.length;
2016
2014
  for (n = 0; n < r; n += 1) t.addShape(e[n]);
@@ -4422,20 +4420,20 @@ var import_lottie_light = /* @__PURE__ */ __toESM((/* @__PURE__ */ __commonJSMin
4422
4420
  }));
4423
4421
  })))(), 1);
4424
4422
  function useLottie(e, t) {
4425
- let a;
4423
+ let n;
4426
4424
  function o() {
4427
4425
  let { isDark: e } = useTheme(), n = computed(() => e.value ? t.darkAnimationData : t.lightAnimationData);
4428
4426
  onMounted(() => {
4429
- l(n.value), watch(e, () => {
4430
- h(), l(n.value);
4427
+ s(n.value), watch(e, () => {
4428
+ h(), s(n.value);
4431
4429
  });
4432
4430
  }), onUnmounted(h);
4433
4431
  }
4434
- function l(t) {
4435
- let n = unref(e);
4436
- a = import_lottie_light.default.loadAnimation({
4432
+ function s(t) {
4433
+ let r = unref(e);
4434
+ n = import_lottie_light.default.loadAnimation({
4437
4435
  path: t,
4438
- container: n,
4436
+ container: r,
4439
4437
  renderer: "svg",
4440
4438
  loop: !0,
4441
4439
  autoplay: !1
@@ -4443,24 +4441,24 @@ function useLottie(e, t) {
4443
4441
  }
4444
4442
  function u() {
4445
4443
  tryOnMounted(() => {
4446
- a?.play();
4444
+ n?.play();
4447
4445
  });
4448
4446
  }
4449
- function m() {
4447
+ function d() {
4450
4448
  tryOnMounted(() => {
4451
- a?.stop();
4449
+ n?.stop();
4452
4450
  });
4453
4451
  }
4454
4452
  function h() {
4455
- a &&= (a.destroy(), null);
4453
+ n &&= (n.destroy(), null);
4456
4454
  }
4457
4455
  return o(), {
4458
4456
  play: u,
4459
- stop: m,
4457
+ stop: d,
4460
4458
  destroy: h
4461
4459
  };
4462
4460
  }
4463
- var animation_item_default = /* @__PURE__ */ defineComponent({
4461
+ var animation_item_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
4464
4462
  name: "AnimationItem",
4465
4463
  __name: "animation_item",
4466
4464
  props: {
@@ -4468,18 +4466,18 @@ var animation_item_default = /* @__PURE__ */ defineComponent({
4468
4466
  darkAnimationData: { default: () => "" }
4469
4467
  },
4470
4468
  setup(e, { expose: t }) {
4471
- let n = e, r = ref(null), { play: i, stop: o } = useLottie(r, {
4469
+ let n = e, r = ref(null), { play: i, stop: a } = useLottie(r, {
4472
4470
  lightAnimationData: n.lightAnimationData,
4473
4471
  darkAnimationData: n.darkAnimationData
4474
4472
  });
4475
4473
  return t({
4476
4474
  play: i,
4477
- stop: o
4475
+ stop: a
4478
4476
  }), (e, t) => (openBlock(), createElementBlock("div", {
4479
4477
  ref_key: "AnimationRef",
4480
4478
  ref: r,
4481
4479
  class: "w-[70%]"
4482
4480
  }, null, 512));
4483
4481
  }
4484
- });
4485
- export { animation_item_default as t };
4482
+ }), animation_item_exports = /* @__PURE__ */ __exportAll({ default: () => animation_item_default }), animation_item_default = animation_item_vue_vue_type_script_setup_true_lang_default;
4483
+ export { animation_item_exports as n, animation_item_default as t };