@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,2 +0,0 @@
1
- import { t as browserType_default } from "./browserType-Dn_hQtAN.js";
2
- export { browserType_default as default };
@@ -1,18 +0,0 @@
1
- var __create = Object.create, __defProp = Object.defineProperty, __getOwnPropDesc = Object.getOwnPropertyDescriptor, __getOwnPropNames = Object.getOwnPropertyNames, __getProtoOf = Object.getPrototypeOf, __hasOwnProp = Object.prototype.hasOwnProperty, __esmMin = (e, n) => () => (e && (n = e(e = 0)), n), __commonJSMin = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports), __export = (e, r) => {
2
- let i = {};
3
- for (var a in e) __defProp(i, a, {
4
- get: e[a],
5
- enumerable: !0
6
- });
7
- return r && __defProp(i, Symbol.toStringTag, { value: "Module" }), i;
8
- }, __copyProps = (e, a, s, c) => {
9
- if (a && typeof a == "object" || typeof a == "function") for (var l = __getOwnPropNames(a), u = 0, d = l.length, f; u < d; u++) f = l[u], !__hasOwnProp.call(e, f) && f !== s && __defProp(e, f, {
10
- get: ((e) => a[e]).bind(null, f),
11
- enumerable: !(c = __getOwnPropDesc(a, f)) || c.enumerable
12
- });
13
- return e;
14
- }, __reExport = (e, n, r) => (__copyProps(e, n, "default"), r && __copyProps(r, n, "default")), __toESM = (r, i, o) => (o = r == null ? {} : __create(__getProtoOf(r)), __copyProps(i || !r || !r.__esModule ? __defProp(o, "default", {
15
- value: r,
16
- enumerable: !0
17
- }) : o, r)), __toCommonJS = (e) => __hasOwnProp.call(e, "module.exports") ? e["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: !0 }), e);
18
- export { __toCommonJS as a, __reExport as i, __esmMin as n, __toESM as o, __export as r, __commonJSMin as t };
@@ -1,7 +0,0 @@
1
- import { Ut as _baseClone_default } from "./index.js";
2
- var CLONE_DEEP_FLAG = 1, CLONE_SYMBOLS_FLAG = 4;
3
- function cloneDeep(i) {
4
- return _baseClone_default(i, CLONE_DEEP_FLAG | CLONE_SYMBOLS_FLAG);
5
- }
6
- var cloneDeep_default = cloneDeep;
7
- export { cloneDeep_default as t };
@@ -1,5 +0,0 @@
1
- import "./enum-Cr7uWnB2.js";
2
- import { t as createAndEditDataPermission_default } from "./createAndEditDataPermission-CaOBJgoV.js";
3
- import "./useAppAndResource-CPL2VpOJ.js";
4
- import "./enum-3mYayxff.js";
5
- export { createAndEditDataPermission_default as default };
@@ -1,2 +0,0 @@
1
- import { t as drawerBlackWhiteList_default } from "./drawerBlackWhiteList-CkbZ_9PZ.js";
2
- export { drawerBlackWhiteList_default as default };
@@ -1,119 +0,0 @@
1
- import { Lt as useToggle, f as postBlackWhiteListAddBlackWhiteList, m as postBlackWhiteListUpdateBlackWhiteList } from "./index.js";
2
- import { createBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, ref, resolveComponent, unref, withCtx } from "vue";
3
- import { message } from "ant-design-vue";
4
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, Space as Space$1, Switch, Textarea } from "ant-design-vue/es";
5
- var drawerBlackWhiteList_default = /* @__PURE__ */ defineComponent({
6
- name: "DrawerBlackWhiteList",
7
- __name: "drawerBlackWhiteList",
8
- props: { type: {} },
9
- emits: ["submit"],
10
- setup(v, { expose: b, emit: S }) {
11
- let C = v, w = S, T = {
12
- ip: [{
13
- required: !0,
14
- validator: N,
15
- trigger: ["blur", "change"]
16
- }],
17
- enable: [{
18
- required: !0,
19
- message: "请选择是否开启",
20
- trigger: ["blur", "change"]
21
- }]
22
- }, E = ref(""), [D, O] = useToggle(!1), k = ref(), A = { enable: !0 }, j = ref({}), M = ref(!1);
23
- function N(t, g, _) {
24
- g ? /^(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})$/.test(g) ? _() : _(/* @__PURE__ */ Error("ip地址格式不正确")) : _(/* @__PURE__ */ Error("请输入ip地址"));
25
- }
26
- async function P(t, g, _) {
27
- E.value = t, O(!0), g ? (M.value = !0, j.value = { ..._ ?? {} }) : (M.value = !1, j.value = { ...A });
28
- }
29
- let [F, I] = useToggle(!1);
30
- function L() {
31
- k.value?.validate().then(() => {
32
- I(!0), (M.value ? postBlackWhiteListUpdateBlackWhiteList : postBlackWhiteListAddBlackWhiteList)({
33
- ...j.value,
34
- type: C.type
35
- }).then((t) => {
36
- t.success && (message.success(`${E.value}成功!`), O(!1), w("submit"));
37
- }).finally(() => I(!1));
38
- });
39
- }
40
- function R() {
41
- O(!1);
42
- }
43
- return b({ open: P }), (t, g) => {
44
- let _ = Input$1, v = FormItem, y = Switch, b = Textarea, x = Form$1, S = Button, C = Space$1, w = Drawer;
45
- return openBlock(), createBlock(w, {
46
- open: unref(D),
47
- "onUpdate:open": g[4] ||= (t) => isRef(D) ? D.value = t : null,
48
- title: `${unref(E)}信息`,
49
- placement: "right",
50
- width: 600,
51
- "destroy-on-close": "",
52
- "footer-style": { textAlign: "right" },
53
- onClose: R
54
- }, {
55
- footer: withCtx(() => [createVNode(C, null, {
56
- default: withCtx(() => [createVNode(S, { onClick: R }, {
57
- default: withCtx(() => [...g[5] ||= [createTextVNode(" 取消 ", -1)]]),
58
- _: 1
59
- }), createVNode(S, {
60
- type: "primary",
61
- loading: unref(F),
62
- onClick: g[3] ||= (t) => L()
63
- }, {
64
- default: withCtx(() => [...g[6] ||= [createTextVNode(" 提交 ", -1)]]),
65
- _: 1
66
- }, 8, ["loading"])]),
67
- _: 1
68
- })]),
69
- default: withCtx(() => [createVNode(x, {
70
- ref_key: "formRef",
71
- ref: k,
72
- model: unref(j),
73
- rules: T,
74
- "label-col": { span: 4 }
75
- }, {
76
- default: withCtx(() => [
77
- createVNode(v, {
78
- label: "来源ip地址",
79
- name: "ip"
80
- }, {
81
- default: withCtx(() => [createVNode(_, {
82
- value: unref(j).ip,
83
- "onUpdate:value": g[0] ||= (t) => unref(j).ip = t,
84
- maxlength: 20
85
- }, null, 8, ["value"])]),
86
- _: 1
87
- }),
88
- createVNode(v, {
89
- label: "状态",
90
- name: "enable"
91
- }, {
92
- default: withCtx(() => [createVNode(y, {
93
- checked: unref(j).enable,
94
- "onUpdate:checked": g[1] ||= (t) => unref(j).enable = t
95
- }, null, 8, ["checked"])]),
96
- _: 1
97
- }),
98
- createVNode(v, {
99
- label: "描述",
100
- name: "description"
101
- }, {
102
- default: withCtx(() => [createVNode(b, {
103
- value: unref(j).description,
104
- "onUpdate:value": g[2] ||= (t) => unref(j).description = t,
105
- rows: 3,
106
- "show-count": "",
107
- maxlength: 200
108
- }, null, 8, ["value"])]),
109
- _: 1
110
- })
111
- ]),
112
- _: 1
113
- }, 8, ["model"])]),
114
- _: 1
115
- }, 8, ["open", "title"]);
116
- };
117
- }
118
- });
119
- export { drawerBlackWhiteList_default as t };
@@ -1,2 +0,0 @@
1
- import { t as drawerDictionary_default } from "./drawerDictionary-dMHs-6Cw.js";
2
- export { drawerDictionary_default as default };
@@ -1,125 +0,0 @@
1
- import { Lt as useToggle, s as postDictTypeSave } from "./index.js";
2
- import { t as ACTION } from "./enum-D2UEJsrC.js";
3
- import { createBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, unref, withCtx } from "vue";
4
- import { message } from "ant-design-vue";
5
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, Space as Space$1, Textarea } from "ant-design-vue/es";
6
- var drawerDictionary_default = /* @__PURE__ */ defineComponent({
7
- name: "DrawerDictionary",
8
- __name: "drawerDictionary",
9
- emits: ["submit"],
10
- setup(v, { expose: x, emit: C }) {
11
- let w = C, T = {
12
- name: [{
13
- required: !0,
14
- message: "请输入类型名称",
15
- trigger: "blur"
16
- }],
17
- code: [{
18
- required: !0,
19
- message: "请输入类型编码",
20
- trigger: "blur"
21
- }]
22
- }, E = reactive({ title: "" }), [D, O] = useToggle(!1), k = ref(), A = ref({});
23
- async function j(e, _) {
24
- O(!0), E.title = e, e === ACTION.EDIT ? A.value = { ..._ ?? {} } : A.value = {};
25
- }
26
- let [M, N] = useToggle(!1);
27
- function P() {
28
- k.value?.validate().then(() => {
29
- N(!0), postDictTypeSave({ ...A.value }).then((e) => {
30
- e.success && (message.success(`${E.title}成功!`), O(!1), w("submit"));
31
- }).finally(() => N(!1));
32
- });
33
- }
34
- function F() {
35
- O(!1);
36
- }
37
- return x({ open: j }), (e, _) => {
38
- let v = Input$1, y = FormItem, b = Textarea, x = InputNumber, S = Form$1, C = Button, w = Space$1, O = Drawer;
39
- return openBlock(), createBlock(O, {
40
- open: unref(D),
41
- "onUpdate:open": _[5] ||= (e) => isRef(D) ? D.value = e : null,
42
- title: `${unref(E).title}类型`,
43
- placement: "right",
44
- width: 520,
45
- "destroy-on-close": "",
46
- "footer-style": { textAlign: "right" },
47
- onClose: F
48
- }, {
49
- footer: withCtx(() => [createVNode(w, null, {
50
- default: withCtx(() => [createVNode(C, { onClick: F }, {
51
- default: withCtx(() => [..._[6] ||= [createTextVNode(" 取消 ", -1)]]),
52
- _: 1
53
- }), createVNode(C, {
54
- type: "primary",
55
- loading: unref(M),
56
- onClick: _[4] ||= (e) => P()
57
- }, {
58
- default: withCtx(() => [..._[7] ||= [createTextVNode(" 提交 ", -1)]]),
59
- _: 1
60
- }, 8, ["loading"])]),
61
- _: 1
62
- })]),
63
- default: withCtx(() => [createVNode(S, {
64
- ref_key: "formRef",
65
- ref: k,
66
- model: unref(A),
67
- rules: T,
68
- "label-col": { span: 4 }
69
- }, {
70
- default: withCtx(() => [
71
- createVNode(y, {
72
- label: "类型名称",
73
- name: "name"
74
- }, {
75
- default: withCtx(() => [createVNode(v, {
76
- value: unref(A).name,
77
- "onUpdate:value": _[0] ||= (e) => unref(A).name = e,
78
- maxlength: 30
79
- }, null, 8, ["value"])]),
80
- _: 1
81
- }),
82
- createVNode(y, {
83
- label: "类型编码",
84
- name: "code"
85
- }, {
86
- default: withCtx(() => [createVNode(v, {
87
- value: unref(A).code,
88
- "onUpdate:value": _[1] ||= (e) => unref(A).code = e,
89
- maxlength: 30,
90
- disabled: unref(E).title === unref(ACTION).EDIT
91
- }, null, 8, ["value", "disabled"])]),
92
- _: 1
93
- }),
94
- createVNode(y, {
95
- label: "描述",
96
- name: "description"
97
- }, {
98
- default: withCtx(() => [createVNode(b, {
99
- value: unref(A).description,
100
- "onUpdate:value": _[2] ||= (e) => unref(A).description = e,
101
- rows: 3,
102
- "show-count": "",
103
- maxlength: 200
104
- }, null, 8, ["value"])]),
105
- _: 1
106
- }),
107
- createVNode(y, {
108
- label: "排序",
109
- name: "sort"
110
- }, {
111
- default: withCtx(() => [createVNode(x, {
112
- value: unref(A).sort,
113
- "onUpdate:value": _[3] ||= (e) => unref(A).sort = e
114
- }, null, 8, ["value"])]),
115
- _: 1
116
- })
117
- ]),
118
- _: 1
119
- }, 8, ["model"])]),
120
- _: 1
121
- }, 8, ["open", "title"]);
122
- };
123
- }
124
- });
125
- export { drawerDictionary_default as t };
@@ -1,137 +0,0 @@
1
- import { Lt as useToggle, a as postDictItemSave } from "./index.js";
2
- import { t as ACTION } from "./enum-D2UEJsrC.js";
3
- import { createBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, unref, withCtx } from "vue";
4
- import { message } from "ant-design-vue";
5
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, Space as Space$1, Switch, Textarea } from "ant-design-vue/es";
6
- var drawerDictionaryItem_default = /* @__PURE__ */ defineComponent({
7
- name: "DrawerDictionaryItem",
8
- __name: "drawerDictionaryItem",
9
- emits: ["submit"],
10
- setup(y, { expose: S, emit: w }) {
11
- let T = w, E = {
12
- dictLabel: [{
13
- required: !0,
14
- message: "请输入字典项名称",
15
- trigger: "blur"
16
- }],
17
- dictValue: [{
18
- required: !0,
19
- message: "请输入字典项值",
20
- trigger: "blur"
21
- }]
22
- }, D = reactive({
23
- title: "",
24
- code: ""
25
- }), [O, k] = useToggle(!1), A = ref(), j = ref({});
26
- async function M(t, g, v) {
27
- k(!0), D.title = t, D.code = g, t === ACTION.EDIT ? j.value = v ?? {} : (j.value = {}, j.value.enable = !0, j.value.code = g);
28
- }
29
- let [N, P] = useToggle(!1);
30
- function F() {
31
- A.value?.validate().then(() => {
32
- P(!0), postDictItemSave({ ...j.value }).then((t) => {
33
- t.success && (message.success(`${D.title}成功!`), k(!1), T("submit"));
34
- }).finally(() => P(!1));
35
- });
36
- }
37
- function I() {
38
- k(!1);
39
- }
40
- return S({ open: M }), (t, g) => {
41
- let _ = Input$1, y = FormItem, b = Textarea, x = InputNumber, S = Switch, C = Form$1, w = Button, T = Space$1, k = Drawer;
42
- return openBlock(), createBlock(k, {
43
- open: unref(O),
44
- "onUpdate:open": g[6] ||= (t) => isRef(O) ? O.value = t : null,
45
- title: `${unref(D).title}字典数据`,
46
- placement: "right",
47
- width: 520,
48
- "destroy-on-close": "",
49
- "footer-style": { textAlign: "right" },
50
- onClose: I
51
- }, {
52
- footer: withCtx(() => [createVNode(T, null, {
53
- default: withCtx(() => [createVNode(w, { onClick: I }, {
54
- default: withCtx(() => [...g[7] ||= [createTextVNode(" 取消 ", -1)]]),
55
- _: 1
56
- }), createVNode(w, {
57
- type: "primary",
58
- loading: unref(N),
59
- onClick: g[5] ||= (t) => F()
60
- }, {
61
- default: withCtx(() => [...g[8] ||= [createTextVNode(" 提交 ", -1)]]),
62
- _: 1
63
- }, 8, ["loading"])]),
64
- _: 1
65
- })]),
66
- default: withCtx(() => [createVNode(C, {
67
- ref_key: "formRef",
68
- ref: A,
69
- model: unref(j),
70
- rules: E,
71
- "label-col": { span: 5 }
72
- }, {
73
- default: withCtx(() => [
74
- createVNode(y, {
75
- label: "字典项名称",
76
- name: "dictLabel"
77
- }, {
78
- default: withCtx(() => [createVNode(_, {
79
- value: unref(j).dictLabel,
80
- "onUpdate:value": g[0] ||= (t) => unref(j).dictLabel = t,
81
- maxlength: 100
82
- }, null, 8, ["value"])]),
83
- _: 1
84
- }),
85
- createVNode(y, {
86
- label: "字典项值",
87
- name: "dictValue"
88
- }, {
89
- default: withCtx(() => [createVNode(_, {
90
- value: unref(j).dictValue,
91
- "onUpdate:value": g[1] ||= (t) => unref(j).dictValue = t,
92
- maxlength: 100
93
- }, null, 8, ["value"])]),
94
- _: 1
95
- }),
96
- createVNode(y, {
97
- label: "描述",
98
- name: "description"
99
- }, {
100
- default: withCtx(() => [createVNode(b, {
101
- value: unref(j).description,
102
- "onUpdate:value": g[2] ||= (t) => unref(j).description = t,
103
- rows: 3,
104
- "show-count": "",
105
- maxlength: 200
106
- }, null, 8, ["value"])]),
107
- _: 1
108
- }),
109
- createVNode(y, {
110
- label: "排序",
111
- name: "sort"
112
- }, {
113
- default: withCtx(() => [createVNode(x, {
114
- value: unref(j).sort,
115
- "onUpdate:value": g[3] ||= (t) => unref(j).sort = t
116
- }, null, 8, ["value"])]),
117
- _: 1
118
- }),
119
- createVNode(y, {
120
- label: "是否启动",
121
- name: "enable"
122
- }, {
123
- default: withCtx(() => [createVNode(S, {
124
- checked: unref(j).enable,
125
- "onUpdate:checked": g[4] ||= (t) => unref(j).enable = t
126
- }, null, 8, ["checked"])]),
127
- _: 1
128
- })
129
- ]),
130
- _: 1
131
- }, 8, ["model"])]),
132
- _: 1
133
- }, 8, ["open", "title"]);
134
- };
135
- }
136
- });
137
- export { drawerDictionaryItem_default as t };
@@ -1,2 +0,0 @@
1
- import { t as drawerDictionaryItem_default } from "./drawerDictionaryItem-CbTa_qL-.js";
2
- export { drawerDictionaryItem_default as default };
@@ -1,3 +0,0 @@
1
- import "./enum-Cr7uWnB2.js";
2
- import { t as drawerGroup_default } from "./drawerGroup-DEuiiDPP.js";
3
- export { drawerGroup_default as default };
@@ -1,246 +0,0 @@
1
- import { C as postRbacOrgUpdateOrg, Lt as useToggle, r as getDictItemList, v as getRbacOrgInfo, x as postRbacOrgAddOrg } from "./index.js";
2
- import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, toDisplayString, unref, withCtx } from "vue";
3
- import { message } from "ant-design-vue";
4
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, InputNumber, Select, Space as Space$1, Switch } from "ant-design-vue/es";
5
- let ACTION = /* @__PURE__ */ function(e) {
6
- return e.AUTHORIZE = "授权", e.ADD = "新增", e.ADDNEXT = "新增下级", e.EDIT = "编辑", e.REMOVE = "删除", e;
7
- }({}), RESOURCE_TYPE = /* @__PURE__ */ function(e) {
8
- return e.OWNER = "1", e.ALL = "2", e;
9
- }({}), ENABLE_TYPE = /* @__PURE__ */ function(e) {
10
- return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
11
- }({});
12
- RESOURCE_TYPE.OWNER, RESOURCE_TYPE.ALL, ENABLE_TYPE.ON, ENABLE_TYPE.OFF;
13
- var drawerOrganization_default = /* @__PURE__ */ defineComponent({
14
- name: "OrganizationEdit",
15
- __name: "drawerOrganization",
16
- emits: ["submit"],
17
- setup(C, { expose: E, emit: k }) {
18
- let A = k, j = {
19
- name: [{
20
- required: !0,
21
- message: "请输入组织名称",
22
- trigger: "blur"
23
- }, {
24
- max: 128,
25
- message: "长度不能超过128位",
26
- trigger: "change"
27
- }],
28
- code: [{
29
- required: !0,
30
- message: "请输入组织编码",
31
- trigger: "blur"
32
- }, {
33
- max: 50,
34
- message: "长度不能超过50位",
35
- trigger: "change"
36
- }],
37
- type: [{
38
- required: !0,
39
- message: "请输入组织类型",
40
- trigger: "blur"
41
- }],
42
- areaCode: [{
43
- max: 16,
44
- message: "长度不能超过16位",
45
- trigger: "change"
46
- }],
47
- creditCode: [{
48
- max: 50,
49
- message: "长度不能超过50位",
50
- trigger: "change"
51
- }],
52
- contactPerson: [{
53
- max: 50,
54
- message: "长度不能超过50位",
55
- trigger: "change"
56
- }],
57
- contactMobile: [{
58
- max: 20,
59
- message: "长度不能超过20位",
60
- trigger: "change"
61
- }]
62
- }, M = reactive({
63
- title: "",
64
- type: ""
65
- }), [N, P] = useToggle(!1), F = ref(), I = ref([]);
66
- getDictItemList({ dictCode: "orgType" }).then((e) => {
67
- I.value = e.data?.map((e) => ({
68
- label: e.dictLabel,
69
- value: e.dictValue
70
- }));
71
- });
72
- let L = ref({
73
- parentId: "",
74
- enable: !0
75
- });
76
- async function R(e, y) {
77
- if (P(!0), M.title = e, e === ACTION.EDIT) {
78
- let e = await getRbacOrgInfo({ id: y?.id });
79
- e.success && (L.value = e.data ?? {});
80
- } else e === ACTION.ADDNEXT ? L.value = {
81
- parentName: y?.name,
82
- parentId: y?.id,
83
- enable: !0,
84
- district: !1
85
- } : L.value = {
86
- parentId: "",
87
- enable: !0,
88
- district: !1
89
- };
90
- }
91
- let [z, B] = useToggle(!1);
92
- function V() {
93
- let y = M.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
94
- F.value?.validate().then(() => {
95
- B(!0), y({ ...L.value }).then((e) => {
96
- e.success && (message.success(`${M.title}成功!`), P(!1), A("submit", { ...L.value }));
97
- }).finally(() => B(!1));
98
- });
99
- }
100
- function H() {
101
- L.value = { enable: !1 }, P(!1);
102
- }
103
- return E({ open: R }), (e, y) => {
104
- let b = FormItem, x = Input$1, S = Select, C = Switch, w = InputNumber, T = Form$1, E = Button, D = Space$1, O = Drawer;
105
- return openBlock(), createBlock(O, {
106
- open: unref(N),
107
- "onUpdate:open": y[11] ||= (e) => isRef(N) ? N.value = e : null,
108
- title: `${unref(M).title}组织`,
109
- placement: "right",
110
- width: 600,
111
- "destroy-on-close": "",
112
- "footer-style": { textAlign: "right" },
113
- onClose: H
114
- }, {
115
- footer: withCtx(() => [createVNode(D, null, {
116
- default: withCtx(() => [createVNode(E, { onClick: H }, {
117
- default: withCtx(() => [...y[12] ||= [createTextVNode(" 取消 ", -1)]]),
118
- _: 1
119
- }), createVNode(E, {
120
- type: "primary",
121
- loading: unref(z),
122
- onClick: y[10] ||= (e) => V()
123
- }, {
124
- default: withCtx(() => [...y[13] ||= [createTextVNode(" 提交 ", -1)]]),
125
- _: 1
126
- }, 8, ["loading"])]),
127
- _: 1
128
- })]),
129
- default: withCtx(() => [createVNode(T, {
130
- ref_key: "formRef",
131
- ref: F,
132
- model: unref(L),
133
- rules: j,
134
- "label-col": { span: 6 },
135
- "label-wrap": !0
136
- }, {
137
- default: withCtx(() => [
138
- unref(L).parentId !== "" && unref(L).parentId !== "0" ? (openBlock(), createBlock(b, {
139
- key: 0,
140
- label: "所属上级"
141
- }, {
142
- default: withCtx(() => [createTextVNode(toDisplayString(unref(L).parentName), 1)]),
143
- _: 1
144
- })) : createCommentVNode("", !0),
145
- createVNode(b, {
146
- label: "组织名称",
147
- name: "name"
148
- }, {
149
- default: withCtx(() => [createVNode(x, {
150
- value: unref(L).name,
151
- "onUpdate:value": y[0] ||= (e) => unref(L).name = e
152
- }, null, 8, ["value"])]),
153
- _: 1
154
- }),
155
- createVNode(b, {
156
- label: "组织编码",
157
- name: "code"
158
- }, {
159
- default: withCtx(() => [createVNode(x, {
160
- value: unref(L).code,
161
- "onUpdate:value": y[1] ||= (e) => unref(L).code = e
162
- }, null, 8, ["value"])]),
163
- _: 1
164
- }),
165
- createVNode(b, {
166
- label: "组织类型",
167
- name: "type"
168
- }, {
169
- default: withCtx(() => [createVNode(S, {
170
- value: unref(L).type,
171
- "onUpdate:value": y[2] ||= (e) => unref(L).type = e,
172
- options: unref(I)
173
- }, null, 8, ["value", "options"])]),
174
- _: 1
175
- }),
176
- createVNode(b, { label: "是否行政区划" }, {
177
- default: withCtx(() => [createVNode(C, {
178
- checked: unref(L).district,
179
- "onUpdate:checked": y[3] ||= (e) => unref(L).district = e
180
- }, null, 8, ["checked"])]),
181
- _: 1
182
- }),
183
- unref(L).district ? (openBlock(), createBlock(b, {
184
- key: 1,
185
- label: "行政区划编码",
186
- name: "areaCode"
187
- }, {
188
- default: withCtx(() => [createVNode(x, {
189
- value: unref(L).areaCode,
190
- "onUpdate:value": y[4] ||= (e) => unref(L).areaCode = e
191
- }, null, 8, ["value"])]),
192
- _: 1
193
- })) : createCommentVNode("", !0),
194
- createVNode(b, { label: "是否启用" }, {
195
- default: withCtx(() => [createVNode(C, {
196
- checked: unref(L).enable,
197
- "onUpdate:checked": y[5] ||= (e) => unref(L).enable = e
198
- }, null, 8, ["checked"])]),
199
- _: 1
200
- }),
201
- createVNode(b, { label: "排序" }, {
202
- default: withCtx(() => [createVNode(w, {
203
- value: unref(L).sort,
204
- "onUpdate:value": y[6] ||= (e) => unref(L).sort = e
205
- }, null, 8, ["value"])]),
206
- _: 1
207
- }),
208
- createVNode(b, {
209
- label: "统一社会信用代码",
210
- name: "creditCode"
211
- }, {
212
- default: withCtx(() => [createVNode(x, {
213
- value: unref(L).creditCode,
214
- "onUpdate:value": y[7] ||= (e) => unref(L).creditCode = e
215
- }, null, 8, ["value"])]),
216
- _: 1
217
- }),
218
- createVNode(b, {
219
- label: "联系人",
220
- name: "contactPerson"
221
- }, {
222
- default: withCtx(() => [createVNode(x, {
223
- value: unref(L).contactPerson,
224
- "onUpdate:value": y[8] ||= (e) => unref(L).contactPerson = e
225
- }, null, 8, ["value"])]),
226
- _: 1
227
- }),
228
- createVNode(b, {
229
- label: "联系方式",
230
- name: "contactMobile"
231
- }, {
232
- default: withCtx(() => [createVNode(x, {
233
- value: unref(L).contactMobile,
234
- "onUpdate:value": y[9] ||= (e) => unref(L).contactMobile = e
235
- }, null, 8, ["value"])]),
236
- _: 1
237
- })
238
- ]),
239
- _: 1
240
- }, 8, ["model"])]),
241
- _: 1
242
- }, 8, ["open", "title"]);
243
- };
244
- }
245
- });
246
- export { ACTION as n, drawerOrganization_default as t };
@@ -1,2 +0,0 @@
1
- import { t as drawerOrganization_default } from "./drawerOrganization-CqEMD3gE.js";
2
- export { drawerOrganization_default as default };