@pubinfo-pr/module-rbac 0.200.1 → 0.203.2

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 (161) 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-1pVgA_5l.js → IconSelect-DouEg3xY.js} +178 -166
  6. package/dist/IconSelect.css +1 -1
  7. package/dist/ImportExport-DisdLoY8.js +342 -0
  8. package/dist/{LayoutForm-Cp4bBrYl.js → LayoutForm-Bdfs5WeK.js} +35 -34
  9. package/dist/{MetaForm-CVSgktB_.js → MetaForm-CcDwS8vh.js} +6128 -6143
  10. package/dist/{OrgAndPosition-ClASobEv.js → OrgAndPosition-jDX7m0HD.js} +61 -60
  11. package/dist/{ResourceEdit-Dwr5KLyS.js → ResourceEdit-0BYZRye_.js} +128 -127
  12. package/dist/{ResourceRelation-ChEwIbWM.js → ResourceRelation-CU-QpUhP.js} +25 -25
  13. package/dist/{ResourceRelation-D_j898zp.js → ResourceRelation-roz0a8Td.js} +35 -34
  14. package/dist/{RoleRelation-DzyVn5dk.js → RoleRelation-BQQFaum0.js} +28 -27
  15. package/dist/{RoleSelector-Cd6_RUsc.js → RoleSelector-gkar_UGG.js} +89 -89
  16. package/dist/{TenantEdit-BOvXk7BZ.js → TenantEdit-BsahDUlf.js} +94 -93
  17. package/dist/{UserAuthorization-DLeivbs7.js → UserAuthorization-2Fl4IGw7.js} +81 -80
  18. package/dist/{UserEdit-YKS1FVW_.js → UserEdit-CX3Qau8T.js} +102 -101
  19. package/dist/{animation_item-BU-LInxP.js → animation_item-DBOz2rcX.js} +20 -22
  20. package/dist/{blackWhiteList-CNQltBqC.js → blackWhiteList-DbG7JH8n.js} +69 -69
  21. package/dist/blackWhiteList.css +1 -1
  22. package/dist/{breadcrumb_setting-Ds-XJRR1.js → breadcrumb_setting-Dx2Li6xt.js} +19 -19
  23. package/dist/{browserType-Dn_hQtAN.js → browserType-B8A1Osvk.js} +11 -10
  24. package/dist/chunk-DiMWNkAf.js +18 -0
  25. package/dist/cloneDeep-CSOSavu3.js +6 -0
  26. package/dist/components/GroupSelector/index.vue.d.ts +7 -1
  27. package/dist/components/ResourceIcones/Select.vue.d.ts +2 -1
  28. package/dist/components/ResourceSelector/index.vue.d.ts +7 -1
  29. package/dist/components/RoleSelector/RoleSearch.vue.d.ts +9 -1
  30. package/dist/components/RoleSelector/RoleSelector.vue.d.ts +7 -1
  31. package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js} +49 -48
  32. package/dist/createAndEditDataPermission.css +1 -1
  33. package/dist/{data-permission-ZRQ-Aoib.js → data-permission-LpuDLDm0.js} +41 -41
  34. package/dist/{dayjs.min-sGDSMYRj.js → dayjs.min-Cb7gQFd4.js} +1 -1
  35. package/dist/{dictionary-CtGgtPfc.js → dictionary-CEaxjqZe.js} +46 -46
  36. package/dist/drawerBlackWhiteList-DXLdWurZ.js +120 -0
  37. package/dist/drawerDictionary-DYJTAZr6.js +126 -0
  38. package/dist/drawerDictionaryItem-BChXD2-q.js +138 -0
  39. package/dist/{drawerGroup-DEuiiDPP.js → drawerGroup-CdnZkZxi.js} +67 -66
  40. package/dist/drawerOrganization-CwtSFUj0.js +247 -0
  41. package/dist/drawerPosition-CfyfeQCN.js +166 -0
  42. package/dist/drawerRegion-DAwY_29K.js +183 -0
  43. package/dist/drawerRole-B7uCfHk-.js +154 -0
  44. package/dist/{drawerRole-Dv61PBZR.js → drawerRole-DK6DrinO.js} +77 -76
  45. package/dist/{drawerRole-DNDyOvXw.js → drawerRole-DrzMHL0O.js} +69 -68
  46. package/dist/{group-BbkZjv5e.js → group-CaOhkh72.js} +48 -48
  47. package/dist/group.css +1 -1
  48. package/dist/index.css +1 -1
  49. package/dist/index.js +613 -689
  50. package/dist/isEmpty-BjEzPyCa.js +12 -0
  51. package/dist/{itemlist-By-FV6pN.js → itemlist-CFwRUV2Y.js} +44 -44
  52. package/dist/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
  53. package/dist/layout_setting.css +1 -1
  54. package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
  55. package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
  56. package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
  57. package/dist/login_history.css +1 -1
  58. package/dist/{menu_setting-5Jet091Q.js → menu_setting-ChueWHs4.js} +42 -42
  59. package/dist/not-data-Bml86wdH.js +3 -0
  60. package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
  61. package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
  62. package/dist/operate_history.css +1 -1
  63. package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
  64. package/dist/organization.css +1 -1
  65. package/dist/{other_setting-DQ70WnZK.js → other_setting-BEV_UK0g.js} +86 -86
  66. package/dist/other_setting.css +1 -1
  67. package/dist/{page_animation_setting-Lp6cMuFM.js → page_animation_setting-Cp5OnFpd.js} +33 -33
  68. package/dist/page_animation_setting.css +1 -1
  69. package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
  70. package/dist/page_w_setting.css +1 -1
  71. package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
  72. package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
  73. package/dist/{resource-B-gkg5Ti.js → resource-DaQ7CvM_.js} +69 -69
  74. package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
  75. package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
  76. package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
  77. package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
  78. package/dist/setItem.css +1 -1
  79. package/dist/{tabbar_setting-B3kMhRNm.js → tabbar_setting-kbuTvrLB.js} +36 -36
  80. package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
  81. package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
  82. package/dist/theme_setting.css +1 -1
  83. package/dist/{toolbar_setting-DNBdxeGP.js → toolbar_setting-BG-k2UFc.js} +32 -32
  84. package/dist/useAppAndResource-B7FmNfKG.js +52 -0
  85. package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
  86. package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
  87. package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
  88. package/dist/views/components/setItem.vue.d.ts +5 -1
  89. package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
  90. package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
  91. package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
  92. package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
  93. package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
  94. package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
  95. package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
  96. package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
  97. package/dist/views/other_setting/interface.d.ts +1 -2
  98. package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
  99. package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
  100. package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
  101. package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
  102. package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
  103. package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
  104. package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
  105. package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
  106. package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
  107. package/dist/{watermark_setting-CXp4Og0Y.js → watermark_setting-Cl2EtPAa.js} +98 -98
  108. package/dist/watermark_setting.css +1 -1
  109. package/package.json +13 -13
  110. package/src/components/ResourceIcones/Select.vue +27 -8
  111. package/src/views/other_setting/index.vue +2 -2
  112. package/src/views/other_setting/interface.ts +1 -1
  113. package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
  114. package/dist/ComponentSelect-WO-3S5rH.js +0 -2
  115. package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
  116. package/dist/HCheckList-B5Qk_HBI.js +0 -2
  117. package/dist/HCheckList-DLBewmPw.js +0 -36
  118. package/dist/HoverCard-69ZIOivd.js +0 -2
  119. package/dist/HoverCard-BDFcxxvk.js +0 -43
  120. package/dist/IconSelect-C5KTdyzv.js +0 -3
  121. package/dist/ImportExport-CL5uPlby.js +0 -342
  122. package/dist/ImportExport-CPy2rvv7.js +0 -4
  123. package/dist/LayoutForm-QFjwakyQ.js +0 -4
  124. package/dist/MetaForm-Bb-um1Zo.js +0 -4
  125. package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
  126. package/dist/ResourceEdit-BX6xdiXV.js +0 -10
  127. package/dist/ResourceRelation-BIOzTOKA.js +0 -2
  128. package/dist/RoleRelation-CyTcqRfZ.js +0 -2
  129. package/dist/TenantEdit-BlMmL6q5.js +0 -2
  130. package/dist/UserAuthorization-qGr1Sdat.js +0 -3
  131. package/dist/UserEdit-CwfyqNWf.js +0 -3
  132. package/dist/animation_item-GzGItm3s.js +0 -2
  133. package/dist/browserType-BXTT4j6i.js +0 -2
  134. package/dist/chunk-Cpsc_9al.js +0 -18
  135. package/dist/cloneDeep-DDAtsK42.js +0 -7
  136. package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
  137. package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
  138. package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
  139. package/dist/drawerDictionary-D911w7pC.js +0 -2
  140. package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
  141. package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
  142. package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
  143. package/dist/drawerGroup-CEEDMBg9.js +0 -3
  144. package/dist/drawerOrganization-CqEMD3gE.js +0 -246
  145. package/dist/drawerOrganization-mks5NMd9.js +0 -2
  146. package/dist/drawerPosition-Bd0s7qze.js +0 -165
  147. package/dist/drawerPosition-DwlTrlGA.js +0 -2
  148. package/dist/drawerRegion-DUbQAZuV.js +0 -182
  149. package/dist/drawerRegion-DwVzsZfT.js +0 -2
  150. package/dist/drawerRole-BNrbcSmr.js +0 -3
  151. package/dist/drawerRole-BxUIekjh.js +0 -3
  152. package/dist/drawerRole-CyA2oFht.js +0 -4
  153. package/dist/drawerRole-D5X7oHB_.js +0 -153
  154. package/dist/isEmpty-BvRqbmpu.js +0 -13
  155. package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
  156. package/dist/not-data-Cx--tk_h.js +0 -2
  157. package/dist/not-data-tyTawN37.js +0 -2
  158. package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
  159. package/dist/routeSystem-DXMoWhFo.js +0 -2
  160. package/dist/setItem-Qa7UapHO.js +0 -4
  161. package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
@@ -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 };
@@ -1,2 +0,0 @@
1
- var not_data_default = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='24'%20height='24'%20fill='none'%20viewBox='0%200%20190%20170'%20preserveAspectRatio='xMidYMid%20meet'%3e%3cmask%20id='a'%20width='190'%20height='170'%20x='0'%20y='0'%20maskUnits='userSpaceOnUse'%20style='mask-type:alpha'%3e%3cpath%20fill='%23D9D9D9'%20d='M0%200h190v170H0z'/%3e%3c/mask%3e%3cg%20mask='url(%23a)'%3e%3cg%20filter='url(%23b)'%3e%3cellipse%20cx='95'%20cy='84.706'%20fill='url(%23c)'%20fill-opacity='.8'%20rx='65'%20ry='64.706'%20shape-rendering='crispEdges'/%3e%3c/g%3e%3cg%20filter='url(%23d)'%3e%3crect%20width='146'%20height='98'%20x='22'%20y='35'%20fill='%23fff'%20rx='3.065'/%3e%3crect%20width='146'%20height='98'%20x='22'%20y='35'%20fill='url(%23e)'%20rx='3.065'/%3e%3c/g%3e%3crect%20width='101'%20height='6'%20x='58'%20y='78.706'%20fill='%23EEF2F6'%20opacity='.7'%20rx='1.022'/%3e%3crect%20width='101'%20height='6'%20x='58'%20y='90.706'%20fill='%23EEF2F6'%20opacity='.7'%20rx='1.022'/%3e%3crect%20width='101'%20height='6'%20x='58'%20y='102.706'%20fill='%23EEF2F6'%20opacity='.7'%20rx='1.022'/%3e%3crect%20width='101'%20height='6'%20x='58'%20y='114.706'%20fill='%23EEF2F6'%20opacity='.7'%20rx='1.022'/%3e%3crect%20width='101'%20height='6'%20x='58'%20y='54.706'%20fill='%23EEF2F6'%20opacity='.7'%20rx='1.022'/%3e%3crect%20width='101'%20height='6'%20x='58'%20y='66.706'%20fill='%23EEF2F6'%20opacity='.7'%20rx='1.022'/%3e%3crect%20width='9.254'%20height='4.083'%20x='66.193'%20y='39.46'%20fill='%23ADBACC'%20opacity='.499'%20rx='2.042'/%3e%3cpath%20fill='%23F2F4F6'%20d='M22%2044.188h28.789V133h-25.19C23.61%20133%2022%20131.629%2022%20129.938z'/%3e%3crect%20width='26.732'%20height='8.167'%20x='23.028'%20y='54.907'%20fill='%2306F'%20fill-opacity='.16'%20rx='1.022'/%3e%3crect%20width='20.563'%20height='3.063'%20x='26.112'%20y='57.458'%20fill='%23176DE6'%20rx='.511'/%3e%3cpath%20fill='%23176DE6'%20d='M23.028%2057.458h.223c.286%200%20.429%200%20.538.056a.5.5%200%200%201%20.223.223c.056.11.056.252.056.538v1.428c0%20.286%200%20.43-.056.539a.5.5%200%200%201-.223.223c-.11.055-.252.055-.538.055h-.141c-.029%200-.043%200-.054-.005a.05.05%200%200%201-.022-.022c-.006-.011-.006-.026-.006-.054z'/%3e%3crect%20width='14.394'%20height='3.063'%20x='26.112'%20y='49.291'%20fill='%23D8E0EB'%20rx='.511'/%3e%3crect%20width='14.394'%20height='3.063'%20x='26.112'%20y='65.625'%20fill='%23D8E0EB'%20rx='.511'/%3e%3crect%20width='14.394'%20height='3.063'%20x='26.112'%20y='73.792'%20fill='%23D8E0EB'%20rx='.511'/%3e%3crect%20width='14.394'%20height='3.063'%20x='26.112'%20y='81.958'%20fill='%23D8E0EB'%20rx='.511'/%3e%3crect%20width='14.394'%20height='3.063'%20x='26.112'%20y='90.125'%20fill='%23D8E0EB'%20rx='.511'/%3e%3crect%20width='14.394'%20height='3.063'%20x='26.112'%20y='98.292'%20fill='%23D8E0EB'%20rx='.511'/%3e%3crect%20width='12.338'%20height='3.063'%20x='26.112'%20y='126.875'%20fill='%23D8E0EB'%20rx='.511'/%3e%3cellipse%20cx='27.655'%20cy='39.594'%20fill='%23fff'%20opacity='.747'%20rx='1.542'%20ry='1.531'/%3e%3cellipse%20cx='33.824'%20cy='39.594'%20fill='%23fff'%20opacity='.747'%20rx='1.542'%20ry='1.531'/%3e%3cellipse%20cx='39.993'%20cy='39.594'%20fill='%23fff'%20opacity='.747'%20rx='1.542'%20ry='1.531'/%3e%3cg%20filter='url(%23f)'%3e%3cpath%20fill='%23fff'%20d='M22%2038.065A3.064%203.064%200%200%201%2025.064%2035h139.871A3.065%203.065%200%200%201%20168%2038.065v8.164H22z'/%3e%3cpath%20fill='url(%23g)'%20d='M22%2038.065A3.064%203.064%200%200%201%2025.064%2035h139.871A3.065%203.065%200%200%201%20168%2038.065v8.164H22z'/%3e%3c/g%3e%3crect%20width='21.592'%20height='3.063'%20x='30.226'%20y='39.083'%20fill='%23CFD8E5'%20opacity='.7'%20rx='1.022'/%3e%3crect%20width='8.225'%20height='3.063'%20x='151.549'%20y='39.083'%20fill='%23CFD8E5'%20opacity='.7'%20rx='1.022'/%3e%3ccircle%20cx='44.581'%20cy='25.29'%20r='1.935'%20fill='%23D9E8FD'/%3e%3ccircle%20cx='49.097'%20cy='22.064'%20r='1.29'%20fill='%23D9E8FD'/%3e%3ccircle%20cx='178.129'%20cy='96.903'%20r='3.871'%20fill='%23D9E8FD'/%3e%3ccircle%20cx='176.839'%20cy='86.581'%20r='1.29'%20fill='%23D9E8FD'/%3e%3cg%20filter='url(%23h)'%3e%3crect%20width='76'%20height='88'%20x='100'%20y='53'%20fill='%23fff'%20rx='3.065'/%3e%3crect%20width='76'%20height='88'%20x='100'%20y='53'%20fill='url(%23i)'%20rx='3.065'/%3e%3crect%20width='76'%20height='88'%20x='100'%20y='53'%20fill='%23F5F7FA'%20rx='3.065'/%3e%3crect%20width='76'%20height='88'%20x='100'%20y='53'%20stroke='%23E6E9ED'%20rx='3.065'/%3e%3c/g%3e%3crect%20width='64'%20height='21'%20x='106'%20y='60.706'%20fill='%23fff'%20rx='2'/%3e%3crect%20width='9'%20height='9'%20x='110'%20y='64.206'%20fill='%233AC27D'%20opacity='.15'%20rx='2'/%3e%3cpath%20fill='%2330B471'%20fill-rule='evenodd'%20d='M116.96%2066.175h-4.92a.33.33%200%200%200-.255.1.35.35%200%200%200-.097.262v4.338a.35.35%200%200%200%20.097.262c.067.07.16.105.255.1h4.92a.33.33%200%200%200%20.255-.1.35.35%200%200%200%20.097-.262v-4.338a.35.35%200%200%200-.097-.262.33.33%200%200%200-.255-.1m-2.46%203.615h-1.757v-.723h1.757zm-1.757-1.446h3.514v-.723h-3.514z'%20clip-rule='evenodd'/%3e%3crect%20width='3'%20height='3'%20x='109'%20y='75.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='114'%20y='75.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='119'%20y='75.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='124'%20y='75.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='129'%20y='75.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='134'%20y='75.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='164'%20y='75.706'%20fill='%23DADFE6'%20rx='.5'/%3e%3cpath%20fill='%23ADBACC'%20d='M123%2065.706a1%201%200%200%201%201-1h16a1%201%200%200%201%201%201v1a1%201%200%200%201-1%201h-16a1%201%200%200%201-1-1z'%20opacity='.498'/%3e%3cpath%20fill='%23E8EBF1'%20d='M123%2070.706a1%201%200%200%201%201-1h42a1%201%200%200%201%201%201v1a1%201%200%200%201-1%201h-42a1%201%200%200%201-1-1z'/%3e%3crect%20width='64'%20height='21'%20x='106'%20y='86.706'%20fill='%23fff'%20rx='2'/%3e%3crect%20width='9'%20height='9'%20x='110'%20y='90.206'%20fill='%231A78FF'%20opacity='.15'%20rx='2'/%3e%3cpath%20fill='%230070FF'%20d='m117.424%2096.28-.33-.117-2.241.808a1.04%201.04%200%200%201-.703%200l-2.244-.808-.33.118a.26.26%200%200%200-.17.24c0%20.108.068.204.17.24l2.836%201.023a.26.26%200%200%200%20.176%200l2.836-1.022a.26.26%200%200%200%20.17-.24.26.26%200%200%200-.17-.241z'/%3e%3cpath%20fill='%230070FF'%20d='m117.424%2094.747-.33-.118-2.241.807a1.04%201.04%200%200%201-.703%200l-2.244-.807-.33.118a.26.26%200%200%200-.17.24c0%20.108.068.204.17.24l2.836%201.023a.26.26%200%200%200%20.176%200l2.836-1.023a.26.26%200%200%200%20.17-.24.26.26%200%200%200-.17-.24'/%3e%3cpath%20fill='%230070FF'%20d='m117.424%2093.213-2.836-1.023a.26.26%200%200%200-.176%200l-2.836%201.023a.26.26%200%200%200-.17.24c0%20.108.068.204.17.24l2.836%201.023a.26.26%200%200%200%20.176%200l2.836-1.023a.26.26%200%200%200%20.17-.24.26.26%200%200%200-.17-.24'/%3e%3crect%20width='3'%20height='3'%20x='109'%20y='101.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='114'%20y='101.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='119'%20y='101.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='124'%20y='101.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='129'%20y='101.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='134'%20y='101.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='164'%20y='101.706'%20fill='%23DADFE6'%20rx='.5'/%3e%3cpath%20fill='%23ADBACC'%20d='M123%2091.706a1%201%200%200%201%201-1h20a1%201%200%200%201%201%201v1a1%201%200%200%201-1%201h-20a1%201%200%200%201-1-1z'%20opacity='.498'/%3e%3cpath%20fill='%23E8EBF1'%20d='M123%2096.706a1%201%200%200%201%201-1h38a1%201%200%200%201%201%201v1a1%201%200%200%201-1%201h-38a1%201%200%200%201-1-1z'%20opacity='.498'/%3e%3crect%20width='64'%20height='21'%20x='106'%20y='112.706'%20fill='%23fff'%20rx='2'/%3e%3crect%20width='9'%20height='9'%20x='110'%20y='116.206'%20fill='%23904EE2'%20opacity='.15'%20rx='2'/%3e%3cpath%20fill='%239046EB'%20d='M116.708%20120.306a.45.45%200%200%200-.408-.25h-1.585l.653-1.57a.424.424%200%200%200-.188-.532.46.46%200%200%200-.576.095l-2.25%202.596a.42.42%200%200%200-.062.461.46.46%200%200%200%20.408.249h1.585l-.653%201.57a.424.424%200%200%200%20.188.532.46.46%200%200%200%20.576-.094l2.25-2.597a.42.42%200%200%200%20.062-.46'/%3e%3crect%20width='3'%20height='3'%20x='109'%20y='127.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='114'%20y='127.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='119'%20y='127.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='124'%20y='127.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='129'%20y='127.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='134'%20y='127.706'%20fill='%23E6E9ED'%20fill-opacity='.8'%20rx='.5'/%3e%3crect%20width='3'%20height='3'%20x='164'%20y='127.706'%20fill='%23DADFE6'%20rx='.5'/%3e%3cpath%20fill='%23ADBACC'%20d='M123%20117.706a1%201%200%200%201%201-1h20a1%201%200%200%201%201%201v1a1%201%200%200%201-1%201h-20a1%201%200%200%201-1-1z'%20opacity='.498'/%3e%3cpath%20fill='%23E8EBF1'%20d='M123%20122.706a1%201%200%200%201%201-1h38a1%201%200%200%201%201%201v1a1%201%200%200%201-1%201h-38a1%201%200%200%201-1-1z'%20opacity='.498'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='c'%20x1='166.5'%20x2='61.117'%20y1='161.206'%20y2='19.248'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23C4DCFF'/%3e%3cstop%20offset='1'%20stop-color='%23F5F7FA'/%3e%3c/linearGradient%3e%3clinearGradient%20id='e'%20x1='-46.531'%20x2='39.043'%20y1='81.461'%20y2='210.632'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F7F8FA'/%3e%3cstop%20offset='1'%20stop-color='%23fff'/%3e%3c/linearGradient%3e%3clinearGradient%20id='g'%20x1='-46.531'%20x2='-44.923'%20y1='40.324'%20y2='61.498'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F7F8FA'/%3e%3cstop%20offset='1'%20stop-color='%23fff'/%3e%3c/linearGradient%3e%3clinearGradient%20id='i'%20x1='64.326'%20x2='147.037'%20y1='94.72'%20y2='167.095'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23F7F8FA'/%3e%3cstop%20offset='1'%20stop-color='%23fff'/%3e%3c/linearGradient%3e%3cfilter%20id='b'%20width='150'%20height='152.412'%20x='20'%20y='15'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='8'/%3e%3cfeGaussianBlur%20stdDeviation='5'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.570833%200%200%200%200%200.749653%200%200%200%200%201%200%200%200%200.12%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_76_32712'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='1'/%3e%3cfeGaussianBlur%20stdDeviation='3'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%200.25%200'/%3e%3cfeBlend%20in2='effect1_dropShadow_76_32712'%20result='effect2_dropShadow_76_32712'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect2_dropShadow_76_32712'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='d'%20width='156'%20height='108'%20x='17'%20y='32'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='2.5'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.504167%200%200%200%200%200.711918%200%200%200%200%201%200%200%200%200.1%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_76_32712'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_76_32712'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='f'%20width='154.172'%20height='19.401'%20x='17.914'%20y='32.957'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2.043'/%3e%3cfeGaussianBlur%20stdDeviation='2.043'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.819608%200%200%200%200%200.85098%200%200%200%200%200.901961%200%200%200%200.3%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_76_32712'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_76_32712'%20result='shape'/%3e%3c/filter%3e%3cfilter%20id='h'%20width='87'%20height='99'%20x='94.5'%20y='49.5'%20color-interpolation-filters='sRGB'%20filterUnits='userSpaceOnUse'%3e%3cfeFlood%20flood-opacity='0'%20result='BackgroundImageFix'/%3e%3cfeColorMatrix%20in='SourceAlpha'%20result='hardAlpha'%20values='0%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%200%20127%200'/%3e%3cfeOffset%20dy='2'/%3e%3cfeGaussianBlur%20stdDeviation='2.5'/%3e%3cfeComposite%20in2='hardAlpha'%20operator='out'/%3e%3cfeColorMatrix%20values='0%200%200%200%200.504167%200%200%200%200%200.711918%200%200%200%200%201%200%200%200%200.2%200'/%3e%3cfeBlend%20in2='BackgroundImageFix'%20result='effect1_dropShadow_76_32712'/%3e%3cfeBlend%20in='SourceGraphic'%20in2='effect1_dropShadow_76_32712'%20result='shape'/%3e%3c/filter%3e%3c/defs%3e%3c/svg%3e";
2
- export { not_data_default as t };
@@ -1,2 +0,0 @@
1
- import { t as not_data_default } from "./not-data-Cx--tk_h.js";
2
- export { not_data_default as default };
@@ -1,3 +0,0 @@
1
- import "./browserType-Dn_hQtAN.js";
2
- import { t as operateHistoryDetail_default } from "./operateHistoryDetail-BaNJRfwy.js";
3
- export { operateHistoryDetail_default as default };
@@ -1,2 +0,0 @@
1
- import { cleanupRouteSystem, initializeRouteSystem, refreshRouteSystem } from "./index.js";
2
- export { initializeRouteSystem };
@@ -1,4 +0,0 @@
1
- import "./animation_item-BU-LInxP.js";
2
- import "./HCheckList-DLBewmPw.js";
3
- import { t as setItem_default } from "./setItem-yKhjmUh0.js";
4
- export { setItem_default as default };
@@ -1,52 +0,0 @@
1
- import { M as getRbacResourceAppList, P as getRbacResourceGroupResourceTree, g as RESOURCE_MODE } from "./index.js";
2
- import { computed, ref } from "vue";
3
- function useAppAndResource(a) {
4
- let o = ref(), s = ref([]), c = ref([]), l = ref({}), u = ref([]), d = computed(() => a === RESOURCE_MODE.DATA_PERMISSION);
5
- function f() {
6
- getRbacResourceAppList().then((e) => {
7
- e?.success && (s.value = (e.data ?? []).map((e) => ({
8
- label: e.name,
9
- value: e.id
10
- })));
11
- });
12
- }
13
- async function p(e) {
14
- c.value = (await getRbacResourceGroupResourceTree({ appId: e }))?.data ?? [], m(c.value);
15
- }
16
- function m(e) {
17
- e.forEach((e) => {
18
- e.id && (l.value[e.id] = e.name), d.value && e.enableDataPermission === !1 && (e.disabled = !0), e.children && e.children.length && m(e.children);
19
- });
20
- }
21
- function h(e) {
22
- u.value = e;
23
- }
24
- function g(e) {
25
- if (!e.length || !Object.keys(l.value).length) return [];
26
- u.value = e.map((e) => ({
27
- id: e,
28
- name: l.value[e]
29
- })).filter((e) => e.name);
30
- }
31
- function _() {
32
- u.value = [];
33
- }
34
- function v(e) {
35
- o.value && o.value.open && o.value.open(e, c.value, l.value);
36
- }
37
- return {
38
- appList: s,
39
- resourceModelRef: o,
40
- treeData: c,
41
- resourceMap: l,
42
- selectedResources: u,
43
- isDataPermissionMode: d,
44
- getAppList: f,
45
- updateTreeDataAndResourceMap: p,
46
- setSelectedResources: h,
47
- updateSelectedResources: g,
48
- clearSelectedResources: _,
49
- openResourceModel: v
50
- };
51
- }
52
- export { useAppAndResource as t };