@pubinfo/module-rbac 2.1.11 → 2.1.13-beta.1

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 (246) hide show
  1. package/dist/{ComponentSelect-A7uGTuHW.js → ComponentSelect-CYmAgdm3.js} +998 -963
  2. package/dist/DynamicRoutesForm-CMF3oh8h.js +171 -0
  3. package/dist/HCheckList-CAhQwX7m.js +39 -0
  4. package/dist/HoverCard-B-uU48hF.js +46 -0
  5. package/dist/IconSelect-CvxGRN_O.js +719 -0
  6. package/dist/ImportExport-CzZssb7_.js +345 -0
  7. package/dist/ImportExport-b1SnWRLj.js +6 -0
  8. package/dist/LayoutForm-Bpdyi_2o.js +129 -0
  9. package/dist/MetaForm-ZLzLz68d.js +39037 -0
  10. package/dist/OrgAndPosition-B0RE1Vc_.js +187 -0
  11. package/dist/OrgSelector-C2rPIonI.js +4877 -0
  12. package/dist/OrgSelector.css +1 -0
  13. package/dist/ResourceEdit-9fvxbd0K.js +383 -0
  14. package/dist/ResourceEdit-BMqfJ3aQ.js +13 -0
  15. package/dist/ResourceRelation-BrluMHdX.js +81 -0
  16. package/dist/ResourceRelation-IJvXnlpo.js +95 -0
  17. package/dist/RoleRelation-DuRuQG08.js +82 -0
  18. package/dist/RoleSelector-BTNYbcC6.js +282 -0
  19. package/dist/TenantEdit-Df3gZKLA.js +249 -0
  20. package/dist/UserAuthorization-DX7jNDDe.js +237 -0
  21. package/dist/UserEdit-BLb0n7WM.js +322 -0
  22. package/dist/_baseClone-C7vkGgsW.js +138 -0
  23. package/dist/_initCloneObject-r-eWKqzl.js +531 -0
  24. package/dist/add-child-DPb_m2by.js +4 -0
  25. package/dist/{animation_item-DBOz2rcX.js → animation_item-Coe-B0jQ.js} +24 -19
  26. package/dist/assist-BRMYD-oT.js +89 -0
  27. package/dist/authority-B9wtmsQd.js +4 -0
  28. package/dist/authorize-DxrutyIG.js +4 -0
  29. package/dist/blackWhiteList-d6TVsK48.js +214 -0
  30. package/dist/blacklist-disable-BKSw91qq.js +4 -0
  31. package/dist/blacklist-enable-CIB1fOHT.js +4 -0
  32. package/dist/breadcrumb_setting-DMbvWP5t.js +111 -0
  33. package/dist/browser-chrome-CM60RcrG.js +4 -0
  34. package/dist/browser-edge-4LBRzooM.js +4 -0
  35. package/dist/browser-ie-BF-wqbf6.js +4 -0
  36. package/dist/browser-other-iXJH-9iL.js +4 -0
  37. package/dist/browser-safari-CIpt0yPc.js +4 -0
  38. package/dist/browserType-Bik20-72.js +28 -0
  39. package/dist/chunk-WQLz0Won.js +20 -0
  40. package/dist/cloneDeep-REaxTPsZ.js +8 -0
  41. package/dist/createAndEditDataPermission-OunqmBu_.js +438 -0
  42. package/dist/data-permission-2pzeFLxP.js +159 -0
  43. package/dist/{dayjs.min-Cb7gQFd4.js → dayjs.min-CJunOGCc.js} +5 -3
  44. package/dist/dictionary-DGqlAhRk.js +182 -0
  45. package/dist/dist-DxAYQq3U.js +21 -0
  46. package/dist/drawerBlackWhiteList-VxyjaBkA.js +123 -0
  47. package/dist/drawerDictionary-DhAB-LV9.js +129 -0
  48. package/dist/drawerDictionaryItem-DYsJzZ2f.js +141 -0
  49. package/dist/drawerGroup-CTO8Lmbb.js +189 -0
  50. package/dist/drawerOrganization-DWhTc1fB.js +253 -0
  51. package/dist/drawerPosition-BmM9mLlP.js +169 -0
  52. package/dist/drawerRegion-BD-xc1x2.js +189 -0
  53. package/dist/drawerRole-B348x40k.js +214 -0
  54. package/dist/drawerRole-CgAPM-0g.js +172 -0
  55. package/dist/drawerRole-Cjp9iDsa.js +157 -0
  56. package/dist/edit-Drp8yjRe.js +4 -0
  57. package/dist/enum-CG0P82pn.js +6 -0
  58. package/dist/{enum-3E_sUqRF.js → enum-CR5ztb5v2.js} +15 -14
  59. package/dist/enum-CYCebJeC.js +62 -0
  60. package/dist/enum-DS4SGhiF.js +6 -0
  61. package/dist/enum-zdKA3Jy-.js +23 -0
  62. package/dist/group-C6Rj3K5I.js +178 -0
  63. package/dist/icard-BULUUV5m.js +4 -0
  64. package/dist/icon_animation-DuEY1FMm.js +4 -0
  65. package/dist/icon_breadcrumb-Y788iP_T.js +4 -0
  66. package/dist/icon_copyright-C1BER6kq.js +4 -0
  67. package/dist/icon_jt-ICOdrIF6.js +4 -0
  68. package/dist/icon_layout-D_wV9rX3.js +4 -0
  69. package/dist/icon_mainpage-Cz6_cxpJ.js +4 -0
  70. package/dist/icon_menu-y7SblUoR.js +4 -0
  71. package/dist/icon_page_size-BjwT656E.js +4 -0
  72. package/dist/icon_position_type-CPxcDgmM.js +4 -0
  73. package/dist/icon_safe_manage-CoqVRBLl.js +4 -0
  74. package/dist/icon_screen_scale-DURlkq3C.js +4 -0
  75. package/dist/icon_system_manage-BLXs2CQg.js +4 -0
  76. package/dist/icon_tabbar-_0QWhSBV.js +4 -0
  77. package/dist/icon_toolbar-BXpfu0iq.js +4 -0
  78. package/dist/icon_topbar-DrwvB8Jw.js +4 -0
  79. package/dist/icon_watermark-DwNqjAiA.js +4 -0
  80. package/dist/index.css +1 -1
  81. package/dist/index.js +587 -6775
  82. package/dist/isEmpty-2rx9iUQv.js +14 -0
  83. package/dist/isEqual-CNeQLaCM.js +474 -0
  84. package/dist/itemlist-BGe-z1IR.js +159 -0
  85. package/dist/layout_setting-Cds3TCHc.js +71 -0
  86. package/dist/log-DOMU9MyH.js +18 -0
  87. package/dist/log-center-BrGlNhMd.js +4 -0
  88. package/dist/loginHistoryDetail-Coba_ajy.js +80 -0
  89. package/dist/{login_history-BiwaLpxA.js → login_history-CrXkEsHb.js} +38 -35
  90. package/dist/menu_setting-Br5dOEUk.js +158 -0
  91. package/dist/not-data-C-MacYF3.js +5 -0
  92. package/dist/operateHistoryDetail-DfDQL5BF.js +92 -0
  93. package/dist/{operate_history-sPd9IHMV.js → operate_history-BtHgPhmF.js} +38 -35
  94. package/dist/org-main-BRMBumDm.js +4 -0
  95. package/dist/org-unmain-0BHnrNdD.js +4 -0
  96. package/dist/organization-BbFERZ1l.js +15411 -0
  97. package/dist/other_setting-D92SlFvl.js +216 -0
  98. package/dist/page_animation_setting-Cy2R0vZy.js +111 -0
  99. package/dist/page_w_setting-DryWrqcx.js +66 -0
  100. package/dist/position-B1bqGly6.js +169 -0
  101. package/dist/rbac-B59CVHDt.js +460 -0
  102. package/dist/region-B_n1KXMG.js +182 -0
  103. package/dist/remove-BTME2Fhs.js +4 -0
  104. package/dist/request-7X2hpUru.js +5 -0
  105. package/dist/resource-CPNNd1l0.js +275 -0
  106. package/dist/resource-app-D8to3Lkn.js +4 -0
  107. package/dist/resource-btn-Cz-A_EQF.js +4 -0
  108. package/dist/resource-dynamic-BUqWxUiU.js +4 -0
  109. package/dist/resource-index-D2roT002.js +4 -0
  110. package/dist/resource-menu-BRER68rK.js +4 -0
  111. package/dist/resource-micro-Hyucl9de.js +4 -0
  112. package/dist/resource-nonmenu-7FcPEpHv.js +4 -0
  113. package/dist/role-CMd7WDRC.js +195 -0
  114. package/dist/role_group-DHh2s911.js +174 -0
  115. package/dist/safe_setting-CuTBmUve.js +225 -0
  116. package/dist/setItem-BwXZ5Uqx.js +4 -0
  117. package/dist/setItem-DlhIkIgh.js +78 -0
  118. package/dist/setting-manage-UHelpLrr.js +4 -0
  119. package/dist/stores-C-zbXsms.js +2 -0
  120. package/dist/tabbar_setting-CjW9LGPp.js +142 -0
  121. package/dist/tenant-B_vgufMG.js +180 -0
  122. package/dist/theme-check-mark-DRzx4sTs.js +4 -0
  123. package/dist/theme-title-BRvQ_qPg.js +4 -0
  124. package/dist/theme_setting-DMP0_nZ1.js +114 -0
  125. package/dist/toolbar_setting-ClxxvA7R.js +143 -0
  126. package/dist/useAppAndResource-D6WnpUPR.js +55 -0
  127. package/dist/user-BhytPqnx.js +348 -0
  128. package/dist/{vanilla-picker-Byb6q187.js → vanilla-picker-2HFham9c.js} +61 -59
  129. package/dist/view-Cridj7u2.js +4 -0
  130. package/dist/view-lBxqXfPW.js +114 -0
  131. package/dist/watermark_setting-b3vBYWwY.js +194 -0
  132. package/dist/zddata-CnvPWtIW.js +4 -0
  133. package/dist/zy_checked-C25HQlnr.js +4 -0
  134. package/dist/zy_default-B7RKtyqy.js +4 -0
  135. package/package.json +3 -3
  136. package/dist/DynamicRoutesForm-DSzy_bh5.js +0 -169
  137. package/dist/HCheckList-ODQHidN8.js +0 -37
  138. package/dist/HoverCard-CmJCoa2b.js +0 -44
  139. package/dist/IconSelect-DouEg3xY.js +0 -717
  140. package/dist/ImportExport-DisdLoY8.js +0 -342
  141. package/dist/LayoutForm-Bdfs5WeK.js +0 -125
  142. package/dist/MetaForm-CcDwS8vh.js +0 -38902
  143. package/dist/OrgAndPosition-jDX7m0HD.js +0 -184
  144. package/dist/ResourceEdit-0BYZRye_.js +0 -381
  145. package/dist/ResourceRelation-CU-QpUhP.js +0 -76
  146. package/dist/ResourceRelation-roz0a8Td.js +0 -91
  147. package/dist/RoleRelation-BQQFaum0.js +0 -79
  148. package/dist/RoleSelector-gkar_UGG.js +0 -275
  149. package/dist/TenantEdit-BsahDUlf.js +0 -246
  150. package/dist/UserAuthorization-2Fl4IGw7.js +0 -233
  151. package/dist/UserEdit-CX3Qau8T.js +0 -320
  152. package/dist/add-child-CFHHkjfg.js +0 -2
  153. package/dist/authority-L7SfiMdP.js +0 -2
  154. package/dist/authorize-qMpV_BXT.js +0 -2
  155. package/dist/blackWhiteList-DbG7JH8n.js +0 -211
  156. package/dist/blacklist-disable-BT6Xx-JG.js +0 -2
  157. package/dist/blacklist-enable-CJ6DK_V2.js +0 -2
  158. package/dist/breadcrumb_setting-DTR6CPZQ.js +0 -108
  159. package/dist/browser-chrome-DuAegVCe.js +0 -2
  160. package/dist/browser-edge-DzkWdXRd.js +0 -2
  161. package/dist/browser-ie-DZ9g_MXr.js +0 -2
  162. package/dist/browser-other-BmkifoYq.js +0 -2
  163. package/dist/browser-safari-CXrCuF2a.js +0 -2
  164. package/dist/browserType-B8A1Osvk.js +0 -26
  165. package/dist/chunk-DiMWNkAf.js +0 -18
  166. package/dist/cloneDeep-CSOSavu3.js +0 -6
  167. package/dist/createAndEditDataPermission-8_KNLzJT.js +0 -431
  168. package/dist/data-permission-LpuDLDm0.js +0 -152
  169. package/dist/dictionary-CEaxjqZe.js +0 -179
  170. package/dist/drawerBlackWhiteList-DXLdWurZ.js +0 -120
  171. package/dist/drawerDictionary-DYJTAZr6.js +0 -126
  172. package/dist/drawerDictionaryItem-BChXD2-q.js +0 -138
  173. package/dist/drawerGroup-CdnZkZxi.js +0 -185
  174. package/dist/drawerOrganization-CwtSFUj0.js +0 -247
  175. package/dist/drawerPosition-CfyfeQCN.js +0 -166
  176. package/dist/drawerRegion-DAwY_29K.js +0 -183
  177. package/dist/drawerRole-B7uCfHk-.js +0 -154
  178. package/dist/drawerRole-DK6DrinO.js +0 -209
  179. package/dist/drawerRole-DrzMHL0O.js +0 -167
  180. package/dist/edit-fZ7h_z_Z.js +0 -2
  181. package/dist/enum-3mYayxff.js +0 -61
  182. package/dist/enum-Cr7uWnB2.js +0 -23
  183. package/dist/enum-D2UEJsrC.js +0 -4
  184. package/dist/group-CaOhkh72.js +0 -172
  185. package/dist/icard-H-d9Pip-.js +0 -2
  186. package/dist/icon_animation-BCdRKkE5.js +0 -2
  187. package/dist/icon_breadcrumb-BR6LK8hP.js +0 -2
  188. package/dist/icon_copyright-BfWn1s6t.js +0 -2
  189. package/dist/icon_jt-DOMTq9De.js +0 -2
  190. package/dist/icon_layout-DKqAThpM.js +0 -2
  191. package/dist/icon_mainpage-CXB9JMGv.js +0 -2
  192. package/dist/icon_menu-BYQtWV-Q.js +0 -2
  193. package/dist/icon_page_size-r-z4oHWp.js +0 -2
  194. package/dist/icon_position_type-JDFdklRh.js +0 -2
  195. package/dist/icon_safe_manage-BDTIOduB.js +0 -2
  196. package/dist/icon_screen_scale-vEaAdr9S.js +0 -2
  197. package/dist/icon_system_manage-CkhQtieE.js +0 -2
  198. package/dist/icon_tabbar-DZNj-h-p.js +0 -2
  199. package/dist/icon_toolbar-BBYhGmEf.js +0 -2
  200. package/dist/icon_topbar-Bc379eaS.js +0 -2
  201. package/dist/icon_watermark-CTP8r-e2.js +0 -2
  202. package/dist/isEmpty-BjEzPyCa.js +0 -12
  203. package/dist/itemlist-CFwRUV2Y.js +0 -156
  204. package/dist/layout_setting-79srmFgJ.js +0 -68
  205. package/dist/log-BYris9iT.js +0 -14
  206. package/dist/log-center-CGT-BGAN.js +0 -2
  207. package/dist/loginHistoryDetail-CZnfmbbM.js +0 -78
  208. package/dist/menu_setting-C2GciMXz.js +0 -155
  209. package/dist/not-data-Bml86wdH.js +0 -3
  210. package/dist/operateHistoryDetail-HId-EZzy.js +0 -90
  211. package/dist/org-main-DnftBa38.js +0 -2
  212. package/dist/org-unmain-ByMarqFw.js +0 -2
  213. package/dist/organization-Dv3FbKke.js +0 -15316
  214. package/dist/other_setting-oVuhA70c.js +0 -213
  215. package/dist/page_animation_setting-D0CtzyOZ.js +0 -108
  216. package/dist/page_w_setting-Q--ct16C.js +0 -63
  217. package/dist/position-CCZ2MSMP.js +0 -166
  218. package/dist/region-D3mjqB8H.js +0 -179
  219. package/dist/remove-DfZZBE2T.js +0 -2
  220. package/dist/resource-DaQ7CvM_.js +0 -271
  221. package/dist/resource-app-QSLZ7Hts.js +0 -2
  222. package/dist/resource-btn-BcB4xMgR.js +0 -2
  223. package/dist/resource-dynamic-D69oEbaO.js +0 -2
  224. package/dist/resource-index-BIHr3PZY.js +0 -2
  225. package/dist/resource-menu-0JSNn7S7.js +0 -2
  226. package/dist/resource-micro-CcX_pmaJ.js +0 -2
  227. package/dist/resource-nonmenu-DFItasMT.js +0 -2
  228. package/dist/role-4UgEw3nH.js +0 -192
  229. package/dist/role_group-hkRlCnyl.js +0 -171
  230. package/dist/safe_setting-4fv3qNRZ.js +0 -221
  231. package/dist/setItem-Vkcwkj-O.js +0 -77
  232. package/dist/setting-manage-C9whamLP.js +0 -2
  233. package/dist/stores-DPQF8JRt.js +0 -2
  234. package/dist/tabbar_setting-DhrW4Jj5.js +0 -139
  235. package/dist/tenant-lWfGw2u1.js +0 -177
  236. package/dist/theme-check-mark-DG4oWCQN.js +0 -2
  237. package/dist/theme-title-BCYnl2jK.js +0 -2
  238. package/dist/theme_setting-CEb7UYQO.js +0 -111
  239. package/dist/toolbar_setting-znESrYgi.js +0 -140
  240. package/dist/useAppAndResource-B7FmNfKG.js +0 -52
  241. package/dist/user-BkUpcQC8.js +0 -339
  242. package/dist/view-Bnu34EJT.js +0 -2
  243. package/dist/watermark_setting-DYirSIAn.js +0 -191
  244. package/dist/zddata-Ceyga3_2.js +0 -2
  245. package/dist/zy_checked-DvD7k9F8.js +0 -2
  246. package/dist/zy_default-DJ2tB3Fo.js +0 -2
@@ -1,185 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, Pt as postGroupSaveOrUpdate, jt as getGroupDetailById, selectOrg, selectUser } from "./index.js";
3
- import { n as GROUP_TYPE, r as useOptions, t as ACTION } from "./enum-Cr7uWnB2.js";
4
- import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
5
- import { message } from "ant-design-vue";
6
- import { Button, Drawer, Form as Form$1, FormItem, Input as Input$1, Select, Space as Space$1, Textarea, Tooltip as Tooltip$1 } from "ant-design-vue/es";
7
- var _hoisted_1 = { class: "pt-10px" }, _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
- }, drawerGroup_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
11
- name: "DrawerGroup",
12
- __name: "drawerGroup",
13
- emits: ["submit"],
14
- setup(e, { expose: c, emit: d }) {
15
- let f = d, p = reactive({
16
- title: "",
17
- type: ""
18
- }), m = {
19
- name: [{
20
- required: !0,
21
- message: "请输入群组名称",
22
- trigger: "blur"
23
- }, {
24
- max: 128,
25
- message: "长度不能超过128位",
26
- trigger: "change"
27
- }],
28
- remark: [{
29
- max: 250,
30
- message: "长度不能超过250位",
31
- trigger: ["blur", "change"]
32
- }],
33
- viewScope: [{
34
- required: !0,
35
- message: "请选择使用范围",
36
- trigger: ["blur", "change"]
37
- }],
38
- pubGroupMemberList: [{
39
- required: !0,
40
- message: "请选择群组成员",
41
- trigger: ["blur", "change"]
42
- }]
43
- }, [h, g] = useToggle(!1), _ = ref(), v = ref({}), y = computed(() => v.value?.pubGroupMemberList?.map((e) => ({
44
- ...e,
45
- name: p.type === GROUP_TYPE.ORG ? e.orgName : e.userName
46
- })));
47
- async function b(e, t, n) {
48
- if (g(!0), p.title = e, p.type = t, v.value = {}, e === ACTION.EDIT) {
49
- let e = await getGroupDetailById({ id: n?.id });
50
- e.success && (v.value = e?.data ?? {});
51
- }
52
- }
53
- function x() {
54
- p.type === GROUP_TYPE.ORG && selectOrg({
55
- modelValue: v.value.pubGroupMemberList ?? [],
56
- multiple: !0,
57
- onSubmit(e = []) {
58
- v.value.pubGroupMemberList = e;
59
- }
60
- }), p.type === GROUP_TYPE.PER && selectUser({
61
- modelValue: v.value.pubGroupMemberList ?? [],
62
- multiple: !0,
63
- onSubmit(e = []) {
64
- v.value.pubGroupMemberList = e;
65
- }
66
- });
67
- }
68
- let [S, C] = useToggle(!1);
69
- function w() {
70
- _.value?.validate().then(() => {
71
- C(!0);
72
- let { pubGroupMemberList: e = [], ...t } = v.value, r = {
73
- ...t,
74
- type: p.type,
75
- pubGroupMemberList: e?.map((e) => ({
76
- orgId: e?.orgId,
77
- userId: e?.userId
78
- }))
79
- };
80
- delete r.createTime, delete r.updateTime, postGroupSaveOrUpdate(r).then((e) => {
81
- e.success && (message.success(`${p.title}成功!`), g(!1), f("submit"));
82
- }).finally(() => C(!1));
83
- });
84
- }
85
- function T() {
86
- g(!1);
87
- }
88
- return c({ open: b }), (e, t) => {
89
- let n = Input$1, r = FormItem, i = Textarea, a = Select, o = Button, s = Tooltip$1, c = Form$1, l = Space$1, u = Drawer;
90
- return openBlock(), createBlock(u, {
91
- open: unref(h),
92
- "onUpdate:open": t[4] ||= (e) => isRef(h) ? h.value = e : null,
93
- title: `${unref(p).title}${unref(p).type === unref(GROUP_TYPE).ORG ? "组织" : "人员"}群组`,
94
- placement: "right",
95
- width: 600,
96
- "destroy-on-close": "",
97
- "footer-style": { textAlign: "right" },
98
- onClose: T
99
- }, {
100
- footer: withCtx(() => [createVNode(l, null, {
101
- default: withCtx(() => [createVNode(o, { onClick: T }, {
102
- default: withCtx(() => [...t[6] ||= [createTextVNode(" 取消 ", -1)]]),
103
- _: 1
104
- }), createVNode(o, {
105
- type: "primary",
106
- loading: unref(S),
107
- onClick: t[3] ||= (e) => w()
108
- }, {
109
- default: withCtx(() => [...t[7] ||= [createTextVNode(" 提交 ", -1)]]),
110
- _: 1
111
- }, 8, ["loading"])]),
112
- _: 1
113
- })]),
114
- default: withCtx(() => [createVNode(c, {
115
- ref_key: "formRef",
116
- ref: _,
117
- model: unref(v),
118
- rules: m,
119
- "label-col": { span: 5 },
120
- "label-wrap": !0
121
- }, {
122
- default: withCtx(() => [
123
- createVNode(r, {
124
- label: "群组名称",
125
- name: "name"
126
- }, {
127
- default: withCtx(() => [createVNode(n, {
128
- value: unref(v).name,
129
- "onUpdate:value": t[0] ||= (e) => unref(v).name = e,
130
- maxlength: 128
131
- }, null, 8, ["value"])]),
132
- _: 1
133
- }),
134
- createVNode(r, {
135
- label: "群组描述",
136
- name: "remark"
137
- }, {
138
- default: withCtx(() => [createVNode(i, {
139
- value: unref(v).remark,
140
- "onUpdate:value": t[1] ||= (e) => unref(v).remark = e,
141
- maxlength: 250,
142
- "show-count": ""
143
- }, null, 8, ["value"])]),
144
- _: 1
145
- }),
146
- createVNode(r, {
147
- label: "群组使用范围",
148
- name: "viewScope"
149
- }, {
150
- default: withCtx(() => [createVNode(a, {
151
- value: unref(v).viewScope,
152
- "onUpdate:value": t[2] ||= (e) => unref(v).viewScope = e,
153
- options: unref(useOptions),
154
- placeholder: "本部门/本部门及子部门/全部"
155
- }, null, 8, ["value", "options"])]),
156
- _: 1
157
- }),
158
- createVNode(r, {
159
- label: "群组成员",
160
- name: "pubGroupMemberList"
161
- }, {
162
- default: withCtx(() => [createVNode(o, {
163
- type: "primary",
164
- onClick: x
165
- }, {
166
- default: withCtx(() => [...t[5] ||= [createTextVNode(" 编辑成员 ", -1)]]),
167
- _: 1
168
- }), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(y), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [e.name && e.name?.length > 20 ? (openBlock(), createBlock(s, {
169
- key: 0,
170
- title: e.name
171
- }, {
172
- default: withCtx(() => [createElementVNode("span", _hoisted_2, toDisplayString(`${e.name?.slice(0, 20)}...`), 1)]),
173
- _: 2
174
- }, 1032, ["title"])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(e.name), 1))], 64))), 128))])]),
175
- _: 1
176
- })
177
- ]),
178
- _: 1
179
- }, 8, ["model"])]),
180
- _: 1
181
- }, 8, ["open", "title"]);
182
- };
183
- }
184
- }), drawerGroup_exports = /* @__PURE__ */ __exportAll({ default: () => drawerGroup_default }), drawerGroup_default = drawerGroup_vue_vue_type_script_setup_true_lang_default;
185
- export { drawerGroup_exports as n, drawerGroup_default as t };
@@ -1,247 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { C as postRbacOrgUpdateOrg, Lt as useToggle, r as getDictItemList, v as getRbacOrgInfo, x as postRbacOrgAddOrg } from "./index.js";
3
- import { createBlock, createCommentVNode, createTextVNode, createVNode, defineComponent, isRef, openBlock, reactive, ref, resolveComponent, toDisplayString, 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, Select, Space as Space$1, Switch } from "ant-design-vue/es";
6
- let ACTION = /* @__PURE__ */ function(e) {
7
- return e.AUTHORIZE = "授权", e.ADD = "新增", e.ADDNEXT = "新增下级", e.EDIT = "编辑", e.REMOVE = "删除", e;
8
- }({}), RESOURCE_TYPE = /* @__PURE__ */ function(e) {
9
- return e.OWNER = "1", e.ALL = "2", e;
10
- }({}), ENABLE_TYPE = /* @__PURE__ */ function(e) {
11
- return e[e.ON = 1] = "ON", e[e.OFF = 0] = "OFF", e;
12
- }({});
13
- RESOURCE_TYPE.OWNER, RESOURCE_TYPE.ALL, ENABLE_TYPE.ON, ENABLE_TYPE.OFF;
14
- var drawerOrganization_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
15
- name: "OrganizationEdit",
16
- __name: "drawerOrganization",
17
- emits: ["submit"],
18
- setup(e, { expose: o, emit: l }) {
19
- let d = l, f = {
20
- name: [{
21
- required: !0,
22
- message: "请输入组织名称",
23
- trigger: "blur"
24
- }, {
25
- max: 128,
26
- message: "长度不能超过128位",
27
- trigger: "change"
28
- }],
29
- code: [{
30
- required: !0,
31
- message: "请输入组织编码",
32
- trigger: "blur"
33
- }, {
34
- max: 50,
35
- message: "长度不能超过50位",
36
- trigger: "change"
37
- }],
38
- type: [{
39
- required: !0,
40
- message: "请输入组织类型",
41
- trigger: "blur"
42
- }],
43
- areaCode: [{
44
- max: 16,
45
- message: "长度不能超过16位",
46
- trigger: "change"
47
- }],
48
- creditCode: [{
49
- max: 50,
50
- message: "长度不能超过50位",
51
- trigger: "change"
52
- }],
53
- contactPerson: [{
54
- max: 50,
55
- message: "长度不能超过50位",
56
- trigger: "change"
57
- }],
58
- contactMobile: [{
59
- max: 20,
60
- message: "长度不能超过20位",
61
- trigger: "change"
62
- }]
63
- }, p = reactive({
64
- title: "",
65
- type: ""
66
- }), [m, h] = useToggle(!1), g = ref(), _ = ref([]);
67
- getDictItemList({ dictCode: "orgType" }).then((e) => {
68
- _.value = e.data?.map((e) => ({
69
- label: e.dictLabel,
70
- value: e.dictValue
71
- }));
72
- });
73
- let v = ref({
74
- parentId: "",
75
- enable: !0
76
- });
77
- async function y(e, t) {
78
- if (h(!0), p.title = e, e === ACTION.EDIT) {
79
- let e = await getRbacOrgInfo({ id: t?.id });
80
- e.success && (v.value = e.data ?? {});
81
- } else e === ACTION.ADDNEXT ? v.value = {
82
- parentName: t?.name,
83
- parentId: t?.id,
84
- enable: !0,
85
- district: !1
86
- } : v.value = {
87
- parentId: "",
88
- enable: !0,
89
- district: !1
90
- };
91
- }
92
- let [b, x] = useToggle(!1);
93
- function S() {
94
- let e = p.title === ACTION.EDIT ? postRbacOrgUpdateOrg : postRbacOrgAddOrg;
95
- g.value?.validate().then(() => {
96
- x(!0), e({ ...v.value }).then((e) => {
97
- e.success && (message.success(`${p.title}成功!`), h(!1), d("submit", { ...v.value }));
98
- }).finally(() => x(!1));
99
- });
100
- }
101
- function C() {
102
- v.value = { enable: !1 }, h(!1);
103
- }
104
- return o({ open: y }), (e, t) => {
105
- let n = FormItem, r = Input$1, i = Select, a = Switch, o = InputNumber, s = Form$1, c = Button, l = Space$1, u = Drawer;
106
- return openBlock(), createBlock(u, {
107
- open: unref(m),
108
- "onUpdate:open": t[11] ||= (e) => isRef(m) ? m.value = e : null,
109
- title: `${unref(p).title}组织`,
110
- placement: "right",
111
- width: 600,
112
- "destroy-on-close": "",
113
- "footer-style": { textAlign: "right" },
114
- onClose: C
115
- }, {
116
- footer: withCtx(() => [createVNode(l, null, {
117
- default: withCtx(() => [createVNode(c, { onClick: C }, {
118
- default: withCtx(() => [...t[12] ||= [createTextVNode(" 取消 ", -1)]]),
119
- _: 1
120
- }), createVNode(c, {
121
- type: "primary",
122
- loading: unref(b),
123
- onClick: t[10] ||= (e) => S()
124
- }, {
125
- default: withCtx(() => [...t[13] ||= [createTextVNode(" 提交 ", -1)]]),
126
- _: 1
127
- }, 8, ["loading"])]),
128
- _: 1
129
- })]),
130
- default: withCtx(() => [createVNode(s, {
131
- ref_key: "formRef",
132
- ref: g,
133
- model: unref(v),
134
- rules: f,
135
- "label-col": { span: 6 },
136
- "label-wrap": !0
137
- }, {
138
- default: withCtx(() => [
139
- unref(v).parentId !== "" && unref(v).parentId !== "0" ? (openBlock(), createBlock(n, {
140
- key: 0,
141
- label: "所属上级"
142
- }, {
143
- default: withCtx(() => [createTextVNode(toDisplayString(unref(v).parentName), 1)]),
144
- _: 1
145
- })) : createCommentVNode("", !0),
146
- createVNode(n, {
147
- label: "组织名称",
148
- name: "name"
149
- }, {
150
- default: withCtx(() => [createVNode(r, {
151
- value: unref(v).name,
152
- "onUpdate:value": t[0] ||= (e) => unref(v).name = e
153
- }, null, 8, ["value"])]),
154
- _: 1
155
- }),
156
- createVNode(n, {
157
- label: "组织编码",
158
- name: "code"
159
- }, {
160
- default: withCtx(() => [createVNode(r, {
161
- value: unref(v).code,
162
- "onUpdate:value": t[1] ||= (e) => unref(v).code = e
163
- }, null, 8, ["value"])]),
164
- _: 1
165
- }),
166
- createVNode(n, {
167
- label: "组织类型",
168
- name: "type"
169
- }, {
170
- default: withCtx(() => [createVNode(i, {
171
- value: unref(v).type,
172
- "onUpdate:value": t[2] ||= (e) => unref(v).type = e,
173
- options: unref(_)
174
- }, null, 8, ["value", "options"])]),
175
- _: 1
176
- }),
177
- createVNode(n, { label: "是否行政区划" }, {
178
- default: withCtx(() => [createVNode(a, {
179
- checked: unref(v).district,
180
- "onUpdate:checked": t[3] ||= (e) => unref(v).district = e
181
- }, null, 8, ["checked"])]),
182
- _: 1
183
- }),
184
- unref(v).district ? (openBlock(), createBlock(n, {
185
- key: 1,
186
- label: "行政区划编码",
187
- name: "areaCode"
188
- }, {
189
- default: withCtx(() => [createVNode(r, {
190
- value: unref(v).areaCode,
191
- "onUpdate:value": t[4] ||= (e) => unref(v).areaCode = e
192
- }, null, 8, ["value"])]),
193
- _: 1
194
- })) : createCommentVNode("", !0),
195
- createVNode(n, { label: "是否启用" }, {
196
- default: withCtx(() => [createVNode(a, {
197
- checked: unref(v).enable,
198
- "onUpdate:checked": t[5] ||= (e) => unref(v).enable = e
199
- }, null, 8, ["checked"])]),
200
- _: 1
201
- }),
202
- createVNode(n, { label: "排序" }, {
203
- default: withCtx(() => [createVNode(o, {
204
- value: unref(v).sort,
205
- "onUpdate:value": t[6] ||= (e) => unref(v).sort = e
206
- }, null, 8, ["value"])]),
207
- _: 1
208
- }),
209
- createVNode(n, {
210
- label: "统一社会信用代码",
211
- name: "creditCode"
212
- }, {
213
- default: withCtx(() => [createVNode(r, {
214
- value: unref(v).creditCode,
215
- "onUpdate:value": t[7] ||= (e) => unref(v).creditCode = e
216
- }, null, 8, ["value"])]),
217
- _: 1
218
- }),
219
- createVNode(n, {
220
- label: "联系人",
221
- name: "contactPerson"
222
- }, {
223
- default: withCtx(() => [createVNode(r, {
224
- value: unref(v).contactPerson,
225
- "onUpdate:value": t[8] ||= (e) => unref(v).contactPerson = e
226
- }, null, 8, ["value"])]),
227
- _: 1
228
- }),
229
- createVNode(n, {
230
- label: "联系方式",
231
- name: "contactMobile"
232
- }, {
233
- default: withCtx(() => [createVNode(r, {
234
- value: unref(v).contactMobile,
235
- "onUpdate:value": t[9] ||= (e) => unref(v).contactMobile = e
236
- }, null, 8, ["value"])]),
237
- _: 1
238
- })
239
- ]),
240
- _: 1
241
- }, 8, ["model"])]),
242
- _: 1
243
- }, 8, ["open", "title"]);
244
- };
245
- }
246
- }), drawerOrganization_exports = /* @__PURE__ */ __exportAll({ default: () => drawerOrganization_default }), drawerOrganization_default = drawerOrganization_vue_vue_type_script_setup_true_lang_default;
247
- export { drawerOrganization_exports as n, ACTION as r, drawerOrganization_default as t };
@@ -1,166 +0,0 @@
1
- import { r as __exportAll } from "./chunk-DiMWNkAf.js";
2
- import { Lt as useToggle, r as getDictItemList, wt as postRbacPostSave, xt as getRbacPostDetailById } from "./index.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, Select, Space as Space$1, Switch, Textarea } from "ant-design-vue/es";
6
- let ACTION = /* @__PURE__ */ function(e) {
7
- return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e;
8
- }({});
9
- var drawerPosition_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
10
- name: "DrawerPosition",
11
- __name: "drawerPosition",
12
- emits: ["submit"],
13
- setup(e, { expose: a, emit: c }) {
14
- let u = c, d = {
15
- name: [{
16
- required: !0,
17
- message: "请输入岗位名称",
18
- trigger: "blur"
19
- }, {
20
- max: 64,
21
- message: "长度不能超过64位",
22
- trigger: "change"
23
- }],
24
- code: [{
25
- required: !0,
26
- message: "请输入岗位编码",
27
- trigger: "blur"
28
- }, {
29
- max: 32,
30
- message: "长度不能超过32位",
31
- trigger: "change"
32
- }],
33
- type: [{
34
- required: !0,
35
- message: "请选择岗位类别",
36
- trigger: ["blur", "change"]
37
- }]
38
- }, f = reactive({
39
- title: "",
40
- type: ""
41
- }), [p, m] = useToggle(!1), h = ref([]);
42
- getDictItemList({ dictCode: "positionType" }).then((e) => {
43
- h.value = e.data?.map((e) => ({
44
- label: e.dictLabel,
45
- value: e.dictValue
46
- }));
47
- });
48
- let g = ref(), _ = ref({ enable: !0 });
49
- async function v(e, t) {
50
- if (m(!0), f.title = e, e === ACTION.EDIT) {
51
- let e = await getRbacPostDetailById({ id: t?.id });
52
- e.success && (_.value = e.data ?? {});
53
- } else _.value = { enable: !0 };
54
- }
55
- let [y, b] = useToggle(!1);
56
- function x() {
57
- g.value?.validate().then(() => {
58
- b(!0), postRbacPostSave({ ..._.value }).then((e) => {
59
- e.success && (message.success(`${f.title}成功!`), m(!1), u("submit"));
60
- }).finally(() => b(!1));
61
- });
62
- }
63
- function S() {
64
- m(!1), _.value = { enable: !0 };
65
- }
66
- return a({ open: v }), (e, t) => {
67
- let n = Input$1, r = FormItem, i = Select, a = Textarea, o = Switch, s = Form$1, c = Button, l = Space$1, u = Drawer;
68
- return openBlock(), createBlock(u, {
69
- open: unref(p),
70
- "onUpdate:open": t[6] ||= (e) => isRef(p) ? p.value = e : null,
71
- title: `${unref(f).title}岗位`,
72
- placement: "right",
73
- width: 600,
74
- "destroy-on-close": "",
75
- "footer-style": { textAlign: "right" },
76
- onClose: S
77
- }, {
78
- footer: withCtx(() => [createVNode(l, null, {
79
- default: withCtx(() => [createVNode(c, { onClick: S }, {
80
- default: withCtx(() => [...t[7] ||= [createTextVNode(" 取消 ", -1)]]),
81
- _: 1
82
- }), createVNode(c, {
83
- type: "primary",
84
- loading: unref(y),
85
- onClick: t[5] ||= (e) => x()
86
- }, {
87
- default: withCtx(() => [...t[8] ||= [createTextVNode(" 提交 ", -1)]]),
88
- _: 1
89
- }, 8, ["loading"])]),
90
- _: 1
91
- })]),
92
- default: withCtx(() => [createVNode(s, {
93
- ref_key: "formRef",
94
- ref: g,
95
- model: unref(_),
96
- rules: d,
97
- "label-col": { span: 4 },
98
- "label-wrap": !0
99
- }, {
100
- default: withCtx(() => [
101
- createVNode(r, {
102
- label: "岗位名称",
103
- name: "name"
104
- }, {
105
- default: withCtx(() => [createVNode(n, {
106
- value: unref(_).name,
107
- "onUpdate:value": t[0] ||= (e) => unref(_).name = e,
108
- maxlength: 64
109
- }, null, 8, ["value"])]),
110
- _: 1
111
- }),
112
- createVNode(r, {
113
- label: "岗位编码",
114
- name: "code"
115
- }, {
116
- default: withCtx(() => [createVNode(n, {
117
- value: unref(_).code,
118
- "onUpdate:value": t[1] ||= (e) => unref(_).code = e,
119
- disabled: unref(f).title === unref(ACTION).EDIT,
120
- maxlength: 32
121
- }, null, 8, ["value", "disabled"])]),
122
- _: 1
123
- }),
124
- createVNode(r, {
125
- label: "岗位类别",
126
- name: "type"
127
- }, {
128
- default: withCtx(() => [createVNode(i, {
129
- value: unref(_).type,
130
- "onUpdate:value": t[2] ||= (e) => unref(_).type = e,
131
- options: unref(h)
132
- }, null, 8, ["value", "options"])]),
133
- _: 1
134
- }),
135
- createVNode(r, {
136
- label: "描述",
137
- name: "description"
138
- }, {
139
- default: withCtx(() => [createVNode(a, {
140
- value: unref(_).description,
141
- "onUpdate:value": t[3] ||= (e) => unref(_).description = e,
142
- rows: 3,
143
- "show-count": "",
144
- maxlength: 120
145
- }, null, 8, ["value"])]),
146
- _: 1
147
- }),
148
- createVNode(r, {
149
- label: "是否启动",
150
- name: "enable"
151
- }, {
152
- default: withCtx(() => [createVNode(o, {
153
- checked: unref(_).enable,
154
- "onUpdate:checked": t[4] ||= (e) => unref(_).enable = e
155
- }, null, 8, ["checked"])]),
156
- _: 1
157
- })
158
- ]),
159
- _: 1
160
- }, 8, ["model"])]),
161
- _: 1
162
- }, 8, ["open", "title"]);
163
- };
164
- }
165
- }), drawerPosition_exports = /* @__PURE__ */ __exportAll({ default: () => drawerPosition_default }), drawerPosition_default = drawerPosition_vue_vue_type_script_setup_true_lang_default;
166
- export { drawerPosition_exports as n, ACTION as r, drawerPosition_default as t };