@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,165 +0,0 @@
1
- import { Lt as useToggle, r as getDictItemList, wt as postRbacPostSave, xt as getRbacPostDetailById } from "./index.js";
2
- import { createBlock, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, 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, Select, Space as Space$1, Switch, Textarea } from "ant-design-vue/es";
5
- let ACTION = /* @__PURE__ */ function(e) {
6
- return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e;
7
- }({});
8
- var drawerPosition_default = /* @__PURE__ */ defineComponent({
9
- name: "DrawerPosition",
10
- __name: "drawerPosition",
11
- emits: ["submit"],
12
- setup(x, { expose: w, emit: E }) {
13
- let D = E, O = {
14
- name: [{
15
- required: !0,
16
- message: "请输入岗位名称",
17
- trigger: "blur"
18
- }, {
19
- max: 64,
20
- message: "长度不能超过64位",
21
- trigger: "change"
22
- }],
23
- code: [{
24
- required: !0,
25
- message: "请输入岗位编码",
26
- trigger: "blur"
27
- }, {
28
- max: 32,
29
- message: "长度不能超过32位",
30
- trigger: "change"
31
- }],
32
- type: [{
33
- required: !0,
34
- message: "请选择岗位类别",
35
- trigger: ["blur", "change"]
36
- }]
37
- }, k = reactive({
38
- title: "",
39
- type: ""
40
- }), [A, j] = useToggle(!1), M = ref([]);
41
- getDictItemList({ dictCode: "positionType" }).then((e) => {
42
- M.value = e.data?.map((e) => ({
43
- label: e.dictLabel,
44
- value: e.dictValue
45
- }));
46
- });
47
- let N = ref(), P = ref({ enable: !0 });
48
- async function F(e, v) {
49
- if (j(!0), k.title = e, e === ACTION.EDIT) {
50
- let e = await getRbacPostDetailById({ id: v?.id });
51
- e.success && (P.value = e.data ?? {});
52
- } else P.value = { enable: !0 };
53
- }
54
- let [I, L] = useToggle(!1);
55
- function R() {
56
- N.value?.validate().then(() => {
57
- L(!0), postRbacPostSave({ ...P.value }).then((e) => {
58
- e.success && (message.success(`${k.title}成功!`), j(!1), D("submit"));
59
- }).finally(() => L(!1));
60
- });
61
- }
62
- function z() {
63
- j(!1), P.value = { enable: !0 };
64
- }
65
- return w({ open: F }), (e, v) => {
66
- let y = Input$1, b = FormItem, x = Select, S = Textarea, C = Switch, w = Form$1, T = Button, E = Space$1, D = Drawer;
67
- return openBlock(), createBlock(D, {
68
- open: unref(A),
69
- "onUpdate:open": v[6] ||= (e) => isRef(A) ? A.value = e : null,
70
- title: `${unref(k).title}岗位`,
71
- placement: "right",
72
- width: 600,
73
- "destroy-on-close": "",
74
- "footer-style": { textAlign: "right" },
75
- onClose: z
76
- }, {
77
- footer: withCtx(() => [createVNode(E, null, {
78
- default: withCtx(() => [createVNode(T, { onClick: z }, {
79
- default: withCtx(() => [...v[7] ||= [createTextVNode(" 取消 ", -1)]]),
80
- _: 1
81
- }), createVNode(T, {
82
- type: "primary",
83
- loading: unref(I),
84
- onClick: v[5] ||= (e) => R()
85
- }, {
86
- default: withCtx(() => [...v[8] ||= [createTextVNode(" 提交 ", -1)]]),
87
- _: 1
88
- }, 8, ["loading"])]),
89
- _: 1
90
- })]),
91
- default: withCtx(() => [createVNode(w, {
92
- ref_key: "formRef",
93
- ref: N,
94
- model: unref(P),
95
- rules: O,
96
- "label-col": { span: 4 },
97
- "label-wrap": !0
98
- }, {
99
- default: withCtx(() => [
100
- createVNode(b, {
101
- label: "岗位名称",
102
- name: "name"
103
- }, {
104
- default: withCtx(() => [createVNode(y, {
105
- value: unref(P).name,
106
- "onUpdate:value": v[0] ||= (e) => unref(P).name = e,
107
- maxlength: 64
108
- }, null, 8, ["value"])]),
109
- _: 1
110
- }),
111
- createVNode(b, {
112
- label: "岗位编码",
113
- name: "code"
114
- }, {
115
- default: withCtx(() => [createVNode(y, {
116
- value: unref(P).code,
117
- "onUpdate:value": v[1] ||= (e) => unref(P).code = e,
118
- disabled: unref(k).title === unref(ACTION).EDIT,
119
- maxlength: 32
120
- }, null, 8, ["value", "disabled"])]),
121
- _: 1
122
- }),
123
- createVNode(b, {
124
- label: "岗位类别",
125
- name: "type"
126
- }, {
127
- default: withCtx(() => [createVNode(x, {
128
- value: unref(P).type,
129
- "onUpdate:value": v[2] ||= (e) => unref(P).type = e,
130
- options: unref(M)
131
- }, null, 8, ["value", "options"])]),
132
- _: 1
133
- }),
134
- createVNode(b, {
135
- label: "描述",
136
- name: "description"
137
- }, {
138
- default: withCtx(() => [createVNode(S, {
139
- value: unref(P).description,
140
- "onUpdate:value": v[3] ||= (e) => unref(P).description = e,
141
- rows: 3,
142
- "show-count": "",
143
- maxlength: 120
144
- }, null, 8, ["value"])]),
145
- _: 1
146
- }),
147
- createVNode(b, {
148
- label: "是否启动",
149
- name: "enable"
150
- }, {
151
- default: withCtx(() => [createVNode(C, {
152
- checked: unref(P).enable,
153
- "onUpdate:checked": v[4] ||= (e) => unref(P).enable = e
154
- }, null, 8, ["checked"])]),
155
- _: 1
156
- })
157
- ]),
158
- _: 1
159
- }, 8, ["model"])]),
160
- _: 1
161
- }, 8, ["open", "title"]);
162
- };
163
- }
164
- });
165
- export { ACTION as n, drawerPosition_default as t };
@@ -1,2 +0,0 @@
1
- import { t as drawerPosition_default } from "./drawerPosition-Bd0s7qze.js";
2
- export { drawerPosition_default as default };
@@ -1,182 +0,0 @@
1
- import { Dt as getRegionGetRegionDetailByCode, Lt as useToggle, Ot as postRegionAddRegion, kt as postRegionUpdateRegion, r as getDictItemList } 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 } from "ant-design-vue/es";
5
- let ACTION = /* @__PURE__ */ function(e) {
6
- return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e.ADDNEXT = "新建下级", e;
7
- }({}), RANGE = /* @__PURE__ */ function(e) {
8
- return e.PROVINCE = "1", e.CITY = "2", e.COUNTY = "3", e;
9
- }({});
10
- RANGE.PROVINCE, RANGE.CITY, RANGE.COUNTY;
11
- var drawerRegion_default = /* @__PURE__ */ defineComponent({
12
- name: "DrawerRegion",
13
- __name: "drawerRegion",
14
- emits: ["submit"],
15
- setup(C, { expose: E, emit: O }) {
16
- let k = O, A = {
17
- name: [{
18
- required: !0,
19
- message: "请输入区域名称",
20
- trigger: "blur"
21
- }, {
22
- max: 128,
23
- message: "长度不能超过128位",
24
- trigger: "change"
25
- }],
26
- type: [{
27
- required: !0,
28
- message: "请选择区域范围",
29
- trigger: "blur"
30
- }],
31
- regionCode: [{
32
- required: !0,
33
- message: "请输入区域编码",
34
- trigger: "blur"
35
- }, {
36
- max: 16,
37
- message: "长度不能超过16位",
38
- trigger: "change"
39
- }],
40
- code: [{
41
- required: !0,
42
- message: "请输入行政区划编码",
43
- trigger: "blur"
44
- }, {
45
- max: 16,
46
- message: "长度不能超过16位",
47
- trigger: "change"
48
- }]
49
- }, j = reactive({
50
- title: "",
51
- type: ""
52
- }), [M, N] = useToggle(!1), P = ref(), F = ref({ parentId: "" }), I = ref([]);
53
- getDictItemList({ dictCode: "regionType" }).then((e) => {
54
- I.value = e.data?.map((e) => ({
55
- label: e.dictLabel,
56
- value: e.dictValue
57
- }));
58
- });
59
- async function L(y, b) {
60
- if (N(!0), j.title = y, y === ACTION.EDIT) {
61
- let y = await getRegionGetRegionDetailByCode({ code: b?.code });
62
- y.success && (F.value = y.data ?? {});
63
- } else y === ACTION.ADDNEXT ? F.value = {
64
- parentName: b?.name,
65
- parentId: b?.id
66
- } : F.value = { parentId: "" };
67
- }
68
- let [R, z] = useToggle(!1);
69
- function B() {
70
- let e = j.title === ACTION.EDIT ? postRegionUpdateRegion : postRegionAddRegion;
71
- P.value?.validate().then(() => {
72
- z(!0), e({ ...F.value }).then((e) => {
73
- e.success && (message.success(`${j.title}成功!`), N(!1), k("submit"));
74
- }).finally(() => z(!1));
75
- });
76
- }
77
- function V() {
78
- F.value = { parentId: "" }, N(!1);
79
- }
80
- return E({ open: L }), (e, y) => {
81
- let b = FormItem, x = Input$1, S = Select, C = InputNumber, w = Form$1, T = Button, E = Space$1, D = Drawer;
82
- return openBlock(), createBlock(D, {
83
- open: unref(M),
84
- "onUpdate:open": y[6] ||= (e) => isRef(M) ? M.value = e : null,
85
- title: `${unref(j).title}区域`,
86
- placement: "right",
87
- width: 600,
88
- "destroy-on-close": "",
89
- "footer-style": { textAlign: "right" },
90
- onClose: V
91
- }, {
92
- footer: withCtx(() => [createVNode(E, null, {
93
- default: withCtx(() => [createVNode(T, { onClick: V }, {
94
- default: withCtx(() => [...y[7] ||= [createTextVNode(" 取消 ", -1)]]),
95
- _: 1
96
- }), createVNode(T, {
97
- type: "primary",
98
- loading: unref(R),
99
- onClick: y[5] ||= (e) => B()
100
- }, {
101
- default: withCtx(() => [...y[8] ||= [createTextVNode(" 提交 ", -1)]]),
102
- _: 1
103
- }, 8, ["loading"])]),
104
- _: 1
105
- })]),
106
- default: withCtx(() => [createVNode(w, {
107
- ref_key: "formRef",
108
- ref: P,
109
- model: unref(F),
110
- rules: A,
111
- "label-col": { span: 5 },
112
- "label-wrap": !0
113
- }, {
114
- default: withCtx(() => [
115
- unref(F).parentId !== "" && unref(F).parentId !== "0" ? (openBlock(), createBlock(b, {
116
- key: 0,
117
- label: "上级区域"
118
- }, {
119
- default: withCtx(() => [createTextVNode(toDisplayString(unref(F).parentName), 1)]),
120
- _: 1
121
- })) : createCommentVNode("", !0),
122
- createVNode(b, {
123
- label: "区域名称",
124
- name: "name"
125
- }, {
126
- default: withCtx(() => [createVNode(x, {
127
- value: unref(F).name,
128
- "onUpdate:value": y[0] ||= (e) => unref(F).name = e,
129
- maxlength: 128
130
- }, null, 8, ["value"])]),
131
- _: 1
132
- }),
133
- createVNode(b, {
134
- label: "区域范围",
135
- name: "type"
136
- }, {
137
- default: withCtx(() => [createVNode(S, {
138
- value: unref(F).type,
139
- "onUpdate:value": y[1] ||= (e) => unref(F).type = e,
140
- options: unref(I)
141
- }, null, 8, ["value", "options"])]),
142
- _: 1
143
- }),
144
- createVNode(b, {
145
- label: "区域编码",
146
- name: "regionCode"
147
- }, {
148
- default: withCtx(() => [createVNode(x, {
149
- value: unref(F).regionCode,
150
- "onUpdate:value": y[2] ||= (e) => unref(F).regionCode = e,
151
- maxlength: 16
152
- }, null, 8, ["value"])]),
153
- _: 1
154
- }),
155
- createVNode(b, {
156
- label: "行政区划编码",
157
- name: "code"
158
- }, {
159
- default: withCtx(() => [createVNode(x, {
160
- value: unref(F).code,
161
- "onUpdate:value": y[3] ||= (e) => unref(F).code = e,
162
- disabled: unref(j).title === unref(ACTION).EDIT,
163
- maxlength: 16
164
- }, null, 8, ["value", "disabled"])]),
165
- _: 1
166
- }),
167
- createVNode(b, { label: "排序" }, {
168
- default: withCtx(() => [createVNode(C, {
169
- value: unref(F).sort,
170
- "onUpdate:value": y[4] ||= (e) => unref(F).sort = e
171
- }, null, 8, ["value"])]),
172
- _: 1
173
- })
174
- ]),
175
- _: 1
176
- }, 8, ["model"])]),
177
- _: 1
178
- }, 8, ["open", "title"]);
179
- };
180
- }
181
- });
182
- export { ACTION as n, drawerRegion_default as t };
@@ -1,2 +0,0 @@
1
- import { t as drawerRegion_default } from "./drawerRegion-DUbQAZuV.js";
2
- export { drawerRegion_default as default };
@@ -1,3 +0,0 @@
1
- import "./useAppAndResource-CPL2VpOJ.js";
2
- import { t as drawerRole_default } from "./drawerRole-Dv61PBZR.js";
3
- export { drawerRole_default as default };
@@ -1,3 +0,0 @@
1
- import "./RoleSelector-Cd6_RUsc.js";
2
- import { t as drawerRole_default } from "./drawerRole-DNDyOvXw.js";
3
- export { drawerRole_default as default };
@@ -1,4 +0,0 @@
1
- import "./useAppAndResource-CPL2VpOJ.js";
2
- import "./RoleSelector-Cd6_RUsc.js";
3
- import { t as drawerRole_default } from "./drawerRole-D5X7oHB_.js";
4
- export { drawerRole_default as default };
@@ -1,153 +0,0 @@
1
- import { E as postRbacOrgRoleSaveOrgRole, Lt as useToggle, w as getRbacOrgRoleGetByOrgId } from "./index.js";
2
- import { t as useAppAndResource } from "./useAppAndResource-CPL2VpOJ.js";
3
- import { t as RoleSelector_default } from "./RoleSelector-Cd6_RUsc.js";
4
- import { Fragment, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, vShow, withCtx, withDirectives } from "vue";
5
- import { message } from "ant-design-vue";
6
- import { Button, Drawer, Form as Form$1, FormItem, Space as Space$1, Switch, Tooltip as Tooltip$1 } from "ant-design-vue/es";
7
- var _hoisted_1 = { class: "mt-2px" }, _hoisted_2 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_3 = {
8
- key: 1,
9
- class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
10
- }, _hoisted_4 = { class: "mt-2px" }, _hoisted_5 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_6 = {
11
- key: 1,
12
- class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
13
- }, drawerRole_default = /* @__PURE__ */ defineComponent({
14
- name: "DrawerRole",
15
- __name: "drawerRole",
16
- emits: ["submit"],
17
- setup(k, { expose: M, emit: P }) {
18
- let F = P, { resourceModelRef: I, selectedResources: L, setSelectedResources: R, openResourceModel: z } = useAppAndResource(), B = { isInherit: [{
19
- required: !0,
20
- message: "请选择是否可继承",
21
- trigger: "change"
22
- }] };
23
- reactive({
24
- title: "",
25
- type: ""
26
- });
27
- let [V, H] = useToggle(!1), U = ref(), W = ref({ isInherit: "0" }), G = ref("");
28
- async function K(i) {
29
- G.value = i?.id || "", W.value = (await getRbacOrgRoleGetByOrgId({ orgId: G.value })).data || {}, H(!0);
30
- }
31
- let [q, J] = useToggle(!1), Y = ref();
32
- function X() {
33
- let i = (W.value.roleList || []).map((i) => ({
34
- value: i.id,
35
- label: i.name
36
- }));
37
- Y.value.open(i);
38
- }
39
- function Z(i) {
40
- W.value.roleList = i.map((i) => ({
41
- id: i.value,
42
- name: i.label
43
- }));
44
- }
45
- function Q() {
46
- U.value?.validate().then(() => {
47
- J(!0);
48
- let E = (W.value.roleList || []).map((i) => typeof i == "object" && i.id ? i.id : "");
49
- postRbacOrgRoleSaveOrgRole({
50
- orgId: G.value,
51
- roleIds: E.join(","),
52
- isInherit: W.value.isInherit || "0"
53
- }).then((i) => {
54
- i.success && (message.success("授权成功!"), H(!1), F("submit"));
55
- }).finally(() => J(!1));
56
- });
57
- }
58
- function $() {
59
- W.value = { isInherit: "0" }, H(!1);
60
- }
61
- return M({ open: K }), (i, E) => {
62
- let D = Switch, O = FormItem, k = Button, A = Tooltip$1, j = Form$1, M = Space$1, N = Drawer;
63
- return openBlock(), createBlock(N, {
64
- open: unref(V),
65
- "onUpdate:open": E[2] ||= (i) => isRef(V) ? V.value = i : null,
66
- title: "组织角色授权",
67
- placement: "right",
68
- width: 600,
69
- "destroy-on-close": "",
70
- "footer-style": { textAlign: "right" },
71
- onClose: $
72
- }, {
73
- footer: withCtx(() => [createVNode(M, null, {
74
- default: withCtx(() => [createVNode(k, { onClick: $ }, {
75
- default: withCtx(() => [...E[4] ||= [createTextVNode(" 取消 ", -1)]]),
76
- _: 1
77
- }), createVNode(k, {
78
- type: "primary",
79
- loading: unref(q),
80
- onClick: E[1] ||= (i) => Q()
81
- }, {
82
- default: withCtx(() => [...E[5] ||= [createTextVNode(" 提交 ", -1)]]),
83
- _: 1
84
- }, 8, ["loading"])]),
85
- _: 1
86
- })]),
87
- default: withCtx(() => [createVNode(j, {
88
- ref_key: "formRef",
89
- ref: U,
90
- model: unref(W),
91
- rules: B,
92
- "label-align": "left",
93
- "label-col": { span: 4 }
94
- }, {
95
- default: withCtx(() => [
96
- createVNode(O, {
97
- label: "是否可继承",
98
- name: "name"
99
- }, {
100
- default: withCtx(() => [createVNode(D, {
101
- checked: unref(W).isInherit,
102
- "onUpdate:checked": E[0] ||= (i) => unref(W).isInherit = i,
103
- "checked-value": "1",
104
- "un-checked-value": "0"
105
- }, null, 8, ["checked"])]),
106
- _: 1
107
- }),
108
- createVNode(O, {
109
- label: "基础角色权限",
110
- name: "roleList"
111
- }, {
112
- default: withCtx(() => [createVNode(k, {
113
- type: "primary",
114
- onClick: X
115
- }, {
116
- default: withCtx(() => [...E[3] ||= [createTextVNode(" 选择角色 ", -1)]]),
117
- _: 1
118
- })]),
119
- _: 1
120
- }),
121
- withDirectives(createVNode(O, { label: "已选角色" }, {
122
- default: withCtx(() => [createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(W).roleList, (i) => (openBlock(), createElementBlock(Fragment, { key: i.id }, [(i?.name || "").length > 20 ? (openBlock(), createBlock(A, {
123
- key: 0,
124
- title: i.name
125
- }, {
126
- default: withCtx(() => [createElementVNode("span", _hoisted_2, toDisplayString(`${i?.name?.slice(0, 20)}...`), 1)]),
127
- _: 2
128
- }, 1032, ["title"])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(i.name), 1))], 64))), 128))])]),
129
- _: 1
130
- }, 512), [[vShow, unref(W).roleList && unref(W).roleList.length > 0]]),
131
- withDirectives(createVNode(O, { label: "继承角色" }, {
132
- default: withCtx(() => [createElementVNode("div", _hoisted_4, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(W).inheritRoleList, (i) => (openBlock(), createElementBlock(Fragment, { key: i.id }, [(i?.name || "").length > 20 ? (openBlock(), createBlock(A, {
133
- key: 0,
134
- title: i.name
135
- }, {
136
- default: withCtx(() => [createElementVNode("span", _hoisted_5, toDisplayString(`${i?.name?.slice(0, 20)}...`), 1)]),
137
- _: 2
138
- }, 1032, ["title"])) : (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(i.name), 1))], 64))), 128))])]),
139
- _: 1
140
- }, 512), [[vShow, unref(W).inheritRoleList && unref(W).inheritRoleList.length > 0]])
141
- ]),
142
- _: 1
143
- }, 8, ["model"]), createVNode(unref(RoleSelector_default), {
144
- ref_key: "roleModelRef",
145
- ref: Y,
146
- onSelect: Z
147
- }, null, 512)]),
148
- _: 1
149
- }, 8, ["open"]);
150
- };
151
- }
152
- });
153
- export { drawerRole_default as t };
@@ -1,13 +0,0 @@
1
- import { $t as isBuffer_default, Wt as _getTag_default, Xt as _baseKeys_default, Zt as isTypedArray_default, en as isArguments_default, in as isArrayLike_default, nn as _isPrototype_default, un as isArray_default } from "./index.js";
2
- var mapTag = "[object Map]", setTag = "[object Set]", hasOwnProperty = Object.prototype.hasOwnProperty;
3
- function isEmpty(d) {
4
- if (d == null) return !0;
5
- if (isArrayLike_default(d) && (isArray_default(d) || typeof d == "string" || typeof d.splice == "function" || isBuffer_default(d) || isTypedArray_default(d) || isArguments_default(d))) return !d.length;
6
- var f = _getTag_default(d);
7
- if (f == mapTag || f == setTag) return !d.size;
8
- if (_isPrototype_default(d)) return !_baseKeys_default(d).length;
9
- for (var p in d) if (hasOwnProperty.call(d, p)) return !1;
10
- return !0;
11
- }
12
- var isEmpty_default = isEmpty;
13
- export { isEmpty_default as t };
@@ -1,3 +0,0 @@
1
- import "./browserType-Dn_hQtAN.js";
2
- import { t as loginHistoryDetail_default } from "./loginHistoryDetail-C7GT2yME.js";
3
- export { loginHistoryDetail_default as default };