@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.
- package/dist/ComponentSelect-A7uGTuHW.js +3498 -0
- package/dist/{DynamicRoutesForm-DP_sq_Uu.js → DynamicRoutesForm-DSzy_bh5.js} +43 -42
- package/dist/HCheckList-ODQHidN8.js +37 -0
- package/dist/HoverCard-CmJCoa2b.js +44 -0
- package/dist/{IconSelect-CiLpc63Z.js → IconSelect-DouEg3xY.js} +89 -88
- package/dist/ImportExport-DisdLoY8.js +342 -0
- package/dist/{LayoutForm-Cp4bBrYl.js → LayoutForm-Bdfs5WeK.js} +35 -34
- package/dist/{MetaForm-CVSgktB_.js → MetaForm-CcDwS8vh.js} +6128 -6143
- package/dist/{OrgAndPosition-ClASobEv.js → OrgAndPosition-jDX7m0HD.js} +61 -60
- package/dist/{ResourceEdit-w8qh1MFO.js → ResourceEdit-0BYZRye_.js} +128 -127
- package/dist/{ResourceRelation-ChEwIbWM.js → ResourceRelation-CU-QpUhP.js} +25 -25
- package/dist/{ResourceRelation-D_j898zp.js → ResourceRelation-roz0a8Td.js} +35 -34
- package/dist/{RoleRelation-DzyVn5dk.js → RoleRelation-BQQFaum0.js} +28 -27
- package/dist/{RoleSelector-Cd6_RUsc.js → RoleSelector-gkar_UGG.js} +89 -89
- package/dist/{TenantEdit-BOvXk7BZ.js → TenantEdit-BsahDUlf.js} +94 -93
- package/dist/{UserAuthorization-DLeivbs7.js → UserAuthorization-2Fl4IGw7.js} +81 -80
- package/dist/{UserEdit-YKS1FVW_.js → UserEdit-CX3Qau8T.js} +102 -101
- package/dist/{animation_item-BU-LInxP.js → animation_item-DBOz2rcX.js} +20 -22
- package/dist/{blackWhiteList-CNQltBqC.js → blackWhiteList-DbG7JH8n.js} +69 -69
- package/dist/blackWhiteList.css +1 -1
- package/dist/breadcrumb_setting-DTR6CPZQ.js +108 -0
- package/dist/{browserType-Dn_hQtAN.js → browserType-B8A1Osvk.js} +11 -10
- package/dist/chunk-DiMWNkAf.js +18 -0
- package/dist/cloneDeep-CSOSavu3.js +6 -0
- package/dist/components/GroupSelector/index.vue.d.ts +7 -1
- package/dist/components/ResourceIcones/Select.vue.d.ts +2 -1
- package/dist/components/ResourceSelector/index.vue.d.ts +7 -1
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +9 -1
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +7 -1
- package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js} +49 -48
- package/dist/createAndEditDataPermission.css +1 -1
- package/dist/{data-permission-ZRQ-Aoib.js → data-permission-LpuDLDm0.js} +41 -41
- package/dist/{dayjs.min-sGDSMYRj.js → dayjs.min-Cb7gQFd4.js} +1 -1
- package/dist/{dictionary-CtGgtPfc.js → dictionary-CEaxjqZe.js} +46 -46
- package/dist/drawerBlackWhiteList-DXLdWurZ.js +120 -0
- package/dist/drawerDictionary-DYJTAZr6.js +126 -0
- package/dist/drawerDictionaryItem-BChXD2-q.js +138 -0
- package/dist/{drawerGroup-DEuiiDPP.js → drawerGroup-CdnZkZxi.js} +67 -66
- package/dist/drawerOrganization-CwtSFUj0.js +247 -0
- package/dist/drawerPosition-CfyfeQCN.js +166 -0
- package/dist/drawerRegion-DAwY_29K.js +183 -0
- package/dist/drawerRole-B7uCfHk-.js +154 -0
- package/dist/{drawerRole-Dv61PBZR.js → drawerRole-DK6DrinO.js} +77 -76
- package/dist/{drawerRole-DNDyOvXw.js → drawerRole-DrzMHL0O.js} +69 -68
- package/dist/{group-BbkZjv5e.js → group-CaOhkh72.js} +48 -48
- package/dist/group.css +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +613 -689
- package/dist/isEmpty-BjEzPyCa.js +12 -0
- package/dist/{itemlist-By-FV6pN.js → itemlist-CFwRUV2Y.js} +44 -44
- package/dist/json-asset-03f0a035.json +1 -0
- package/dist/json-asset-0ee63e7f.json +1 -0
- package/dist/json-asset-10eef4fe.json +1 -0
- package/dist/json-asset-13f452f1.json +1 -0
- package/dist/json-asset-14b7b290.json +1 -0
- package/dist/json-asset-15b8cef1.json +1 -0
- package/dist/json-asset-15f77960.json +1 -0
- package/dist/json-asset-1ae9b726.json +1 -0
- package/dist/json-asset-1b02359f.json +1 -0
- package/dist/json-asset-1ef286cd.json +1 -0
- package/dist/json-asset-23cfd18c.json +1 -0
- package/dist/json-asset-265a0a5d.json +1 -0
- package/dist/json-asset-28d57c49.json +1 -0
- package/dist/json-asset-2b54ed10.json +1 -0
- package/dist/json-asset-2bb6f642.json +1 -0
- package/dist/json-asset-2cdc07bd.json +1 -0
- package/dist/json-asset-31c58607.json +1 -0
- package/dist/json-asset-32884f23.json +1 -0
- package/dist/json-asset-32fca43a.json +1 -0
- package/dist/json-asset-3a75445b.json +1 -0
- package/dist/json-asset-3f27d67c.json +1 -0
- package/dist/json-asset-4189453f.json +1 -0
- package/dist/json-asset-4702b37c.json +1 -0
- package/dist/json-asset-520a5c68.json +1 -0
- package/dist/json-asset-56bea508.json +1 -0
- package/dist/json-asset-57c732a3.json +1 -0
- package/dist/json-asset-5be4a28f.json +1 -0
- package/dist/json-asset-5e6d7cfa.json +1 -0
- package/dist/json-asset-64e176c9.json +1 -0
- package/dist/json-asset-6583dca6.json +1 -0
- package/dist/json-asset-66c640c6.json +1 -0
- package/dist/json-asset-68393156.json +1 -0
- package/dist/json-asset-688465aa.json +1 -0
- package/dist/json-asset-6bf334f4.json +1 -0
- package/dist/json-asset-7b4f72ce.json +1 -0
- package/dist/json-asset-837ec087.json +1 -0
- package/dist/json-asset-838ac1ba.json +1 -0
- package/dist/json-asset-8465c2cf.json +1 -0
- package/dist/json-asset-9e9f04a4.json +1 -0
- package/dist/json-asset-a13964cb.json +1 -0
- package/dist/json-asset-ab93a057.json +1 -0
- package/dist/json-asset-abe308fc.json +1 -0
- package/dist/json-asset-b24f2cd3.json +1 -0
- package/dist/json-asset-bf00eaed.json +1 -0
- package/dist/json-asset-cb22efd7.json +1 -0
- package/dist/json-asset-cb953f20.json +1 -0
- package/dist/json-asset-cc209e34.json +1 -0
- package/dist/json-asset-cfdffceb.json +1 -0
- package/dist/json-asset-d33c0299.json +1 -0
- package/dist/json-asset-d430c8ca.json +1 -0
- package/dist/json-asset-d8cfa560.json +1 -0
- package/dist/json-asset-da91beb6.json +1 -0
- package/dist/json-asset-e2bdf85c.json +1 -0
- package/dist/json-asset-e34ad826.json +1 -0
- package/dist/json-asset-e80720aa.json +1 -0
- package/dist/json-asset-e894bc92.json +1 -0
- package/dist/json-asset-f28020f2.json +1 -0
- package/dist/json-asset-f71ebbf4.json +1 -0
- package/dist/json-asset-fb1f4917.json +1 -0
- package/dist/json-asset-ff2e97c4.json +1 -0
- package/dist/{layout_setting-BUAgQ1Bk.js → layout_setting-79srmFgJ.js} +11 -11
- package/dist/layout_setting.css +1 -1
- package/dist/{log-vjU7aBPR.js → log-BYris9iT.js} +6 -6
- package/dist/{loginHistoryDetail-C7GT2yME.js → loginHistoryDetail-CZnfmbbM.js} +24 -23
- package/dist/{login_history-D08W00Qu.js → login_history-BiwaLpxA.js} +33 -33
- package/dist/login_history.css +1 -1
- package/dist/menu_setting-C2GciMXz.js +155 -0
- package/dist/not-data-Bml86wdH.js +3 -0
- package/dist/{operateHistoryDetail-BaNJRfwy.js → operateHistoryDetail-HId-EZzy.js} +27 -26
- package/dist/{operate_history-kJwIuPg2.js → operate_history-sPd9IHMV.js} +33 -33
- package/dist/operate_history.css +1 -1
- package/dist/{organization-Cmj3DUXl.js → organization-Dv3FbKke.js} +1438 -1444
- package/dist/organization.css +1 -1
- package/dist/other_setting-oVuhA70c.js +213 -0
- package/dist/other_setting.css +1 -1
- package/dist/page_animation_setting-D0CtzyOZ.js +108 -0
- package/dist/page_animation_setting.css +1 -1
- package/dist/{page_w_setting-CD_HtSUv.js → page_w_setting-Q--ct16C.js} +11 -11
- package/dist/page_w_setting.css +1 -1
- package/dist/{position-CLpbgKGj.js → position-CCZ2MSMP.js} +41 -41
- package/dist/{region-Dd9pt_Si.js → region-D3mjqB8H.js} +62 -62
- package/dist/{resource-C7dXB0EE.js → resource-DaQ7CvM_.js} +69 -69
- package/dist/{role-JGtvRObt.js → role-4UgEw3nH.js} +49 -49
- package/dist/{role_group-CKOb_m63.js → role_group-hkRlCnyl.js} +41 -41
- package/dist/{safe_setting-G_ZP-jWQ.js → safe_setting-4fv3qNRZ.js} +85 -85
- package/dist/{setItem-yKhjmUh0.js → setItem-Vkcwkj-O.js} +33 -32
- package/dist/setItem.css +1 -1
- package/dist/tabbar_setting-DhrW4Jj5.js +139 -0
- package/dist/{tenant-BBiCJkU_.js → tenant-lWfGw2u1.js} +48 -48
- package/dist/{theme_setting-vhNDLlkc.js → theme_setting-CEb7UYQO.js} +47 -47
- package/dist/theme_setting.css +1 -1
- package/dist/toolbar_setting-znESrYgi.js +140 -0
- package/dist/useAppAndResource-B7FmNfKG.js +52 -0
- package/dist/{user-DvCyUhZW.js → user-BkUpcQC8.js} +96 -96
- package/dist/{vanilla-picker-DcG96G63.js → vanilla-picker-Byb6q187.js} +239 -239
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -1
- package/dist/views/components/setItem.vue.d.ts +5 -1
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -1
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -1
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -1
- package/dist/views/group/components/drawerGroup.vue.d.ts +5 -1
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +8 -1
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +8 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -1
- package/dist/views/organization/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/other_setting/interface.d.ts +1 -2
- package/dist/views/position/components/drawerPosition.vue.d.ts +5 -1
- package/dist/views/region/components/drawerRegion.vue.d.ts +5 -1
- package/dist/views/resource/components/ImportExport.vue.d.ts +5 -1
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +5 -1
- package/dist/views/role/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +5 -1
- package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -1
- package/dist/views/user/components/UserEdit.vue.d.ts +5 -1
- package/dist/watermark_setting-DYirSIAn.js +191 -0
- package/dist/watermark_setting.css +1 -1
- package/package.json +13 -13
- package/src/views/other_setting/index.vue +2 -2
- package/src/views/other_setting/interface.ts +1 -1
- package/dist/ComponentSelect-D0OCk6H1.js +0 -3572
- package/dist/ComponentSelect-WO-3S5rH.js +0 -2
- package/dist/DynamicRoutesForm-DjZ3eVLW.js +0 -4
- package/dist/HCheckList-B5Qk_HBI.js +0 -2
- package/dist/HCheckList-DLBewmPw.js +0 -36
- package/dist/HoverCard-69ZIOivd.js +0 -2
- package/dist/HoverCard-BDFcxxvk.js +0 -43
- package/dist/IconSelect-C_Gj5G4I.js +0 -3
- package/dist/ImportExport-CL5uPlby.js +0 -342
- package/dist/ImportExport-CPy2rvv7.js +0 -4
- package/dist/LayoutForm-QFjwakyQ.js +0 -4
- package/dist/MetaForm-Bb-um1Zo.js +0 -4
- package/dist/OrgAndPosition-DoiGY5xb.js +0 -2
- package/dist/ResourceEdit-BTaNdwC_.js +0 -10
- package/dist/ResourceRelation-BIOzTOKA.js +0 -2
- package/dist/RoleRelation-CyTcqRfZ.js +0 -2
- package/dist/TenantEdit-BlMmL6q5.js +0 -2
- package/dist/UserAuthorization-qGr1Sdat.js +0 -3
- package/dist/UserEdit-CwfyqNWf.js +0 -3
- package/dist/animation_item-GzGItm3s.js +0 -2
- package/dist/breadcrumb_setting-Ds-XJRR1.js +0 -108
- package/dist/browserType-BXTT4j6i.js +0 -2
- package/dist/chunk-Cpsc_9al.js +0 -18
- package/dist/cloneDeep-DDAtsK42.js +0 -7
- package/dist/createAndEditDataPermission-CChlLDUm.js +0 -5
- package/dist/drawerBlackWhiteList-BqIDyn2Q.js +0 -2
- package/dist/drawerBlackWhiteList-CkbZ_9PZ.js +0 -119
- package/dist/drawerDictionary-D911w7pC.js +0 -2
- package/dist/drawerDictionary-dMHs-6Cw.js +0 -125
- package/dist/drawerDictionaryItem-CbTa_qL-.js +0 -137
- package/dist/drawerDictionaryItem-DLUI5Yuc.js +0 -2
- package/dist/drawerGroup-CEEDMBg9.js +0 -3
- package/dist/drawerOrganization-CqEMD3gE.js +0 -246
- package/dist/drawerOrganization-mks5NMd9.js +0 -2
- package/dist/drawerPosition-Bd0s7qze.js +0 -165
- package/dist/drawerPosition-DwlTrlGA.js +0 -2
- package/dist/drawerRegion-DUbQAZuV.js +0 -182
- package/dist/drawerRegion-DwVzsZfT.js +0 -2
- package/dist/drawerRole-BNrbcSmr.js +0 -3
- package/dist/drawerRole-BxUIekjh.js +0 -3
- package/dist/drawerRole-CyA2oFht.js +0 -4
- package/dist/drawerRole-D5X7oHB_.js +0 -153
- package/dist/isEmpty-BvRqbmpu.js +0 -13
- package/dist/loginHistoryDetail-CkH5UUGU.js +0 -3
- package/dist/menu_setting-5Jet091Q.js +0 -155
- package/dist/not-data-Cx--tk_h.js +0 -2
- package/dist/not-data-tyTawN37.js +0 -2
- package/dist/operateHistoryDetail-CeVPJzD6.js +0 -3
- package/dist/other_setting-DQ70WnZK.js +0 -213
- package/dist/page_animation_setting-Lp6cMuFM.js +0 -108
- package/dist/routeSystem-DXMoWhFo.js +0 -2
- package/dist/setItem-Qa7UapHO.js +0 -4
- package/dist/tabbar_setting-B3kMhRNm.js +0 -139
- package/dist/toolbar_setting-DNBdxeGP.js +0 -140
- package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
- package/dist/watermark_setting-CXp4Og0Y.js +0 -191
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
2
|
+
import { t as cloneDeep } from "./cloneDeep-CSOSavu3.js";
|
|
2
3
|
import { Lt as useToggle, O as getRbacTenantPubTenantInfo, R as getRbacResourceTenantAddResourceTree, ResourceSelector as ResourceSelector_default, j as postRbacTenantPubTenantUpdate, k as postRbacTenantPubTenantAdd } from "./index.js";
|
|
3
4
|
import { Fragment, computed, createBlock, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, onMounted, openBlock, reactive, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
4
5
|
import { message } from "ant-design-vue";
|
|
@@ -9,12 +10,12 @@ let ACTION = /* @__PURE__ */ function(e) {
|
|
|
9
10
|
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 = {
|
|
10
11
|
key: 1,
|
|
11
12
|
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
12
|
-
},
|
|
13
|
+
}, TenantEdit_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
13
14
|
name: "TenantEdit",
|
|
14
15
|
__name: "TenantEdit",
|
|
15
16
|
emits: ["submit"],
|
|
16
|
-
setup(
|
|
17
|
-
let
|
|
17
|
+
setup(e, { expose: c, emit: f }) {
|
|
18
|
+
let p = f, m = {
|
|
18
19
|
name: [{
|
|
19
20
|
required: !0,
|
|
20
21
|
message: "请输入名称",
|
|
@@ -51,180 +52,180 @@ var _hoisted_1 = { class: "pt-10px" }, _hoisted_2 = { class: "inline-block mb-6p
|
|
|
51
52
|
message: "请选择所属资源",
|
|
52
53
|
trigger: "change"
|
|
53
54
|
}]
|
|
54
|
-
},
|
|
55
|
+
}, h = reactive({
|
|
55
56
|
title: "",
|
|
56
57
|
record: {},
|
|
57
58
|
initData: { enable: !0 }
|
|
58
|
-
}), [
|
|
59
|
-
async function
|
|
60
|
-
if (
|
|
61
|
-
let e = await getRbacTenantPubTenantInfo({ id:
|
|
59
|
+
}), [g, _] = useToggle(!1), v = ref(), y = ref({ enable: !0 });
|
|
60
|
+
async function b(e, n) {
|
|
61
|
+
if (h.title = e, y.value = cloneDeep(h.initData), e === ACTION.EDIT) {
|
|
62
|
+
let e = await getRbacTenantPubTenantInfo({ id: n.id });
|
|
62
63
|
if (e.success) {
|
|
63
|
-
let { tenantStartTime:
|
|
64
|
-
|
|
65
|
-
...
|
|
66
|
-
tenantTime: [
|
|
64
|
+
let { tenantStartTime: t, tenantEndTime: n, ...r } = e?.data ?? {};
|
|
65
|
+
y.value = {
|
|
66
|
+
...r,
|
|
67
|
+
tenantTime: [t, n]
|
|
67
68
|
};
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
|
-
|
|
71
|
+
_(!0);
|
|
71
72
|
}
|
|
72
|
-
let [
|
|
73
|
-
function
|
|
74
|
-
let e =
|
|
75
|
-
|
|
76
|
-
let { tenantTime:
|
|
77
|
-
...
|
|
78
|
-
tenantStartTime:
|
|
79
|
-
tenantEndTime:
|
|
80
|
-
pubTenantResourcelist:
|
|
73
|
+
let [x, S] = useToggle(!1);
|
|
74
|
+
function C() {
|
|
75
|
+
let e = h.title === ACTION.EDIT ? postRbacTenantPubTenantUpdate : postRbacTenantPubTenantAdd;
|
|
76
|
+
v.value?.validate().then(() => {
|
|
77
|
+
let { tenantTime: t, resourceIds: n = [], ...r } = y.value, i = {
|
|
78
|
+
...r,
|
|
79
|
+
tenantStartTime: t?.[0],
|
|
80
|
+
tenantEndTime: t?.[1],
|
|
81
|
+
pubTenantResourcelist: n.map((e) => ({ resourceId: e }))
|
|
81
82
|
};
|
|
82
|
-
|
|
83
|
-
e.success && (message.success(`${
|
|
84
|
-
}).finally(() =>
|
|
83
|
+
S(!0), e(i).then((e) => {
|
|
84
|
+
e.success && (message.success(`${h.title}成功!`), _(!1), p("submit"));
|
|
85
|
+
}).finally(() => S(!1));
|
|
85
86
|
});
|
|
86
87
|
}
|
|
87
|
-
let
|
|
88
|
-
function
|
|
89
|
-
let e =
|
|
90
|
-
|
|
88
|
+
let w = ref(), T = ref([]), E = computed(() => y.value.resourceIds?.map((e) => ({ name: A(T.value).find((t) => t.id === e)?.name ?? "" })) ?? []);
|
|
89
|
+
function D() {
|
|
90
|
+
let e = y.value.resourceIds ?? [], t = T.value, n = A(t).reduce((e, t) => (e[t.id] = t.name, e), {});
|
|
91
|
+
w.value.open(e, t, n);
|
|
91
92
|
}
|
|
92
|
-
function
|
|
93
|
-
|
|
93
|
+
function O(e = []) {
|
|
94
|
+
y.value.resourceIds = e.map((e) => e.id);
|
|
94
95
|
}
|
|
95
|
-
function
|
|
96
|
+
function k() {
|
|
96
97
|
getRbacResourceTenantAddResourceTree().then((e) => {
|
|
97
|
-
e.success && (
|
|
98
|
+
e.success && (T.value = e.data ?? []);
|
|
98
99
|
});
|
|
99
100
|
}
|
|
100
|
-
function
|
|
101
|
-
let
|
|
102
|
-
for (let e = 0; e <
|
|
103
|
-
return
|
|
101
|
+
function A(e) {
|
|
102
|
+
let n = cloneDeep(e);
|
|
103
|
+
for (let e = 0; e < n.length; e++) n[e].children && (n.splice(e + 1, 0, ...n[e].children), n[e].children = void 0);
|
|
104
|
+
return n;
|
|
104
105
|
}
|
|
105
106
|
return onMounted(() => {
|
|
106
|
-
|
|
107
|
-
}),
|
|
108
|
-
let
|
|
109
|
-
return openBlock(), createBlock(
|
|
110
|
-
open: unref(
|
|
111
|
-
"onUpdate:open":
|
|
112
|
-
title: `${unref(
|
|
107
|
+
k();
|
|
108
|
+
}), c({ open: b }), (e, t) => {
|
|
109
|
+
let n = Input$1, r = FormItem, i = RangePicker, a = Switch, o = Button, s = ResourceSelector_default, c = Tooltip$1, l = Form$1, u = Space$1, d = Drawer;
|
|
110
|
+
return openBlock(), createBlock(d, {
|
|
111
|
+
open: unref(g),
|
|
112
|
+
"onUpdate:open": t[9] ||= (e) => isRef(g) ? g.value = e : null,
|
|
113
|
+
title: `${unref(h).title}租户`,
|
|
113
114
|
placement: "right",
|
|
114
115
|
width: 600,
|
|
115
116
|
"destroy-on-close": "",
|
|
116
117
|
"footer-style": { textAlign: "right" }
|
|
117
118
|
}, {
|
|
118
|
-
footer: withCtx(() => [createVNode(
|
|
119
|
-
default: withCtx(() => [createVNode(
|
|
120
|
-
default: withCtx(() => [...
|
|
119
|
+
footer: withCtx(() => [createVNode(u, null, {
|
|
120
|
+
default: withCtx(() => [createVNode(o, { onClick: t[7] ||= (e) => unref(_)(!1) }, {
|
|
121
|
+
default: withCtx(() => [...t[11] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
121
122
|
_: 1
|
|
122
|
-
}), createVNode(
|
|
123
|
+
}), createVNode(o, {
|
|
123
124
|
type: "primary",
|
|
124
|
-
loading: unref(
|
|
125
|
-
onClick:
|
|
125
|
+
loading: unref(x),
|
|
126
|
+
onClick: t[8] ||= (e) => C()
|
|
126
127
|
}, {
|
|
127
|
-
default: withCtx(() => [...
|
|
128
|
+
default: withCtx(() => [...t[12] ||= [createTextVNode(" 提交 ", -1)]]),
|
|
128
129
|
_: 1
|
|
129
130
|
}, 8, ["loading"])]),
|
|
130
131
|
_: 1
|
|
131
132
|
})]),
|
|
132
|
-
default: withCtx(() => [createVNode(
|
|
133
|
+
default: withCtx(() => [createVNode(l, {
|
|
133
134
|
ref_key: "formRef",
|
|
134
|
-
ref:
|
|
135
|
-
model: unref(
|
|
136
|
-
rules:
|
|
135
|
+
ref: v,
|
|
136
|
+
model: unref(y),
|
|
137
|
+
rules: m,
|
|
137
138
|
"label-col": { span: 6 }
|
|
138
139
|
}, {
|
|
139
140
|
default: withCtx(() => [
|
|
140
|
-
createVNode(
|
|
141
|
+
createVNode(r, {
|
|
141
142
|
label: "租户名称",
|
|
142
143
|
name: "name"
|
|
143
144
|
}, {
|
|
144
|
-
default: withCtx(() => [createVNode(
|
|
145
|
-
value: unref(
|
|
146
|
-
"onUpdate:value":
|
|
145
|
+
default: withCtx(() => [createVNode(n, {
|
|
146
|
+
value: unref(y).name,
|
|
147
|
+
"onUpdate:value": t[0] ||= (e) => unref(y).name = e,
|
|
147
148
|
maxlength: 32,
|
|
148
149
|
placeholder: "请输入租户名称"
|
|
149
150
|
}, null, 8, ["value"])]),
|
|
150
151
|
_: 1
|
|
151
152
|
}),
|
|
152
|
-
createVNode(
|
|
153
|
+
createVNode(r, {
|
|
153
154
|
label: "租户编码",
|
|
154
155
|
name: "tenantCode"
|
|
155
156
|
}, {
|
|
156
|
-
default: withCtx(() => [createVNode(
|
|
157
|
-
value: unref(
|
|
158
|
-
"onUpdate:value":
|
|
159
|
-
disabled: unref(
|
|
157
|
+
default: withCtx(() => [createVNode(n, {
|
|
158
|
+
value: unref(y).tenantCode,
|
|
159
|
+
"onUpdate:value": t[1] ||= (e) => unref(y).tenantCode = e,
|
|
160
|
+
disabled: unref(h).title === unref(ACTION).EDIT,
|
|
160
161
|
maxlength: 64,
|
|
161
162
|
placeholder: "请输入租户编码"
|
|
162
163
|
}, null, 8, ["value", "disabled"])]),
|
|
163
164
|
_: 1
|
|
164
165
|
}),
|
|
165
|
-
createVNode(
|
|
166
|
+
createVNode(r, {
|
|
166
167
|
label: "开始至到期时间",
|
|
167
168
|
name: "tenantTime"
|
|
168
169
|
}, {
|
|
169
|
-
default: withCtx(() => [createVNode(
|
|
170
|
-
value: unref(
|
|
171
|
-
"onUpdate:value":
|
|
170
|
+
default: withCtx(() => [createVNode(i, {
|
|
171
|
+
value: unref(y).tenantTime,
|
|
172
|
+
"onUpdate:value": t[2] ||= (e) => unref(y).tenantTime = e,
|
|
172
173
|
format: "YYYY-MM-DD",
|
|
173
174
|
"value-format": "YYYY-MM-DD"
|
|
174
175
|
}, null, 8, ["value"])]),
|
|
175
176
|
_: 1
|
|
176
177
|
}),
|
|
177
|
-
createVNode(
|
|
178
|
+
createVNode(r, {
|
|
178
179
|
label: "二级域名",
|
|
179
180
|
name: "subDomain"
|
|
180
181
|
}, {
|
|
181
|
-
default: withCtx(() => [createVNode(
|
|
182
|
-
value: unref(
|
|
183
|
-
"onUpdate:value":
|
|
182
|
+
default: withCtx(() => [createVNode(n, {
|
|
183
|
+
value: unref(y).subDomain,
|
|
184
|
+
"onUpdate:value": t[3] ||= (e) => unref(y).subDomain = e,
|
|
184
185
|
maxlength: 64,
|
|
185
186
|
placeholder: "请输入二级域名"
|
|
186
187
|
}, null, 8, ["value"])]),
|
|
187
188
|
_: 1
|
|
188
189
|
}),
|
|
189
|
-
createVNode(
|
|
190
|
+
createVNode(r, {
|
|
190
191
|
label: "租户管理员",
|
|
191
192
|
name: "pubUserAdmin"
|
|
192
193
|
}, {
|
|
193
|
-
default: withCtx(() => [createVNode(
|
|
194
|
-
value: unref(
|
|
195
|
-
"onUpdate:value":
|
|
196
|
-
disabled: unref(
|
|
194
|
+
default: withCtx(() => [createVNode(n, {
|
|
195
|
+
value: unref(y).pubUserAdmin,
|
|
196
|
+
"onUpdate:value": t[4] ||= (e) => unref(y).pubUserAdmin = e,
|
|
197
|
+
disabled: unref(h).title === unref(ACTION).EDIT,
|
|
197
198
|
maxlength: 32,
|
|
198
199
|
placeholder: "请输入租户管理员"
|
|
199
200
|
}, null, 8, ["value", "disabled"])]),
|
|
200
201
|
_: 1
|
|
201
202
|
}),
|
|
202
|
-
createVNode(
|
|
203
|
-
default: withCtx(() => [createVNode(
|
|
204
|
-
checked: unref(
|
|
205
|
-
"onUpdate:checked":
|
|
203
|
+
createVNode(r, { label: "是否启用" }, {
|
|
204
|
+
default: withCtx(() => [createVNode(a, {
|
|
205
|
+
checked: unref(y).enable,
|
|
206
|
+
"onUpdate:checked": t[5] ||= (e) => unref(y).enable = e
|
|
206
207
|
}, null, 8, ["checked"])]),
|
|
207
208
|
_: 1
|
|
208
209
|
}),
|
|
209
|
-
createVNode(
|
|
210
|
+
createVNode(r, {
|
|
210
211
|
label: "所属资源",
|
|
211
212
|
name: "resourceIds"
|
|
212
213
|
}, {
|
|
213
214
|
default: withCtx(() => [
|
|
214
|
-
createVNode(
|
|
215
|
+
createVNode(o, {
|
|
215
216
|
type: "primary",
|
|
216
|
-
onClick:
|
|
217
|
+
onClick: t[6] ||= (e) => D()
|
|
217
218
|
}, {
|
|
218
|
-
default: withCtx(() => [...
|
|
219
|
+
default: withCtx(() => [...t[10] ||= [createTextVNode(" 选择资源 ", -1)]]),
|
|
219
220
|
_: 1
|
|
220
221
|
}),
|
|
221
|
-
createTextVNode(" (已选" + toDisplayString(unref(
|
|
222
|
-
createVNode(
|
|
222
|
+
createTextVNode(" (已选" + toDisplayString(unref(y).resourceIds?.length ?? 0) + "条数据) ", 1),
|
|
223
|
+
createVNode(s, {
|
|
223
224
|
ref_key: "resourceRef",
|
|
224
|
-
ref:
|
|
225
|
-
onSelect:
|
|
225
|
+
ref: w,
|
|
226
|
+
onSelect: O
|
|
226
227
|
}, null, 512),
|
|
227
|
-
createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
228
|
+
createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(E), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [e.name?.length > 20 ? (openBlock(), createBlock(c, {
|
|
228
229
|
key: 0,
|
|
229
230
|
title: e.name
|
|
230
231
|
}, {
|
|
@@ -241,5 +242,5 @@ var _hoisted_1 = { class: "pt-10px" }, _hoisted_2 = { class: "inline-block mb-6p
|
|
|
241
242
|
}, 8, ["open", "title"]);
|
|
242
243
|
};
|
|
243
244
|
}
|
|
244
|
-
});
|
|
245
|
-
export {
|
|
245
|
+
}), TenantEdit_exports = /* @__PURE__ */ __exportAll({ default: () => TenantEdit_default }), TenantEdit_default = TenantEdit_vue_vue_type_script_setup_true_lang_default;
|
|
246
|
+
export { TenantEdit_exports as n, ACTION as r, TenantEdit_default as t };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
1
2
|
import { Lt as useToggle, Y as postRbacUserGrantUserRoleAndDatPermission, ct as getRbacPubRoleGroupGetAll, h as _plugin_vue_export_helper_default, rt as postRbacPubDataPermissionsGetUserOrgDataPermissionList, tt as getRbacPubDataPermissionsDataPermissionList } from "./index.js";
|
|
2
|
-
import { t as RoleSelector_default } from "./RoleSelector-
|
|
3
|
+
import { t as RoleSelector_default } from "./RoleSelector-gkar_UGG.js";
|
|
3
4
|
import { PubinfoIcon } from "pubinfo";
|
|
4
5
|
import { Fragment, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, nextTick, normalizeStyle, onMounted, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, withCtx } from "vue";
|
|
5
6
|
import { message, theme } from "ant-design-vue";
|
|
@@ -13,163 +14,163 @@ import './UserAuthorization.css';var _hoisted_1 = { class: "flex items-center ju
|
|
|
13
14
|
}, _hoisted_6 = { class: "max-h-150px overflow-auto" }, _hoisted_7 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_8 = {
|
|
14
15
|
key: 1,
|
|
15
16
|
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
16
|
-
},
|
|
17
|
+
}, UserAuthorization_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
17
18
|
name: "UserAuthorization",
|
|
18
19
|
__name: "UserAuthorization",
|
|
19
20
|
props: { userId: {} },
|
|
20
21
|
emits: ["submit"],
|
|
21
|
-
setup(
|
|
22
|
-
let
|
|
23
|
-
function
|
|
22
|
+
setup(e, { expose: i, emit: c }) {
|
|
23
|
+
let f = e, p = c, { token: m } = theme.useToken(), [h, g] = useToggle(!1), [_, v] = useToggle(!1), y = ref(), b = ref({ authList: [] }), x = ref([]), S = ref([]);
|
|
24
|
+
function C() {
|
|
24
25
|
getRbacPubDataPermissionsDataPermissionList().then((e) => {
|
|
25
|
-
e.data && e.data.length && (
|
|
26
|
+
e.data && e.data.length && (S.value = e.data);
|
|
26
27
|
}), getRbacPubRoleGroupGetAll({ name: "" }).then((e) => {
|
|
27
|
-
e.data && e.data.length && (
|
|
28
|
+
e.data && e.data.length && (x.value = e.data);
|
|
28
29
|
});
|
|
29
30
|
}
|
|
30
|
-
function
|
|
31
|
-
|
|
32
|
-
e.data && e.data.userOrgPermissionBos && e.data.userOrgPermissionBos.length && (
|
|
33
|
-
let { orgId:
|
|
34
|
-
userId:
|
|
35
|
-
orgId:
|
|
36
|
-
orgName:
|
|
37
|
-
main:
|
|
38
|
-
roleList:
|
|
39
|
-
orgRoleList:
|
|
31
|
+
function w() {
|
|
32
|
+
f.userId && (b.value.authList = [], postRbacPubDataPermissionsGetUserOrgDataPermissionList({ userId: f.userId }).then((e) => {
|
|
33
|
+
e.data && e.data.userOrgPermissionBos && e.data.userOrgPermissionBos.length && (b.value.authList = e.data.userOrgPermissionBos.map((e) => {
|
|
34
|
+
let { orgId: t = "", orgName: n = "", main: r = !1, dataPermissionsList: i, roleList: a, orgRoleList: o } = e, s = {
|
|
35
|
+
userId: f.userId,
|
|
36
|
+
orgId: t,
|
|
37
|
+
orgName: n,
|
|
38
|
+
main: r,
|
|
39
|
+
roleList: a,
|
|
40
|
+
orgRoleList: o
|
|
40
41
|
};
|
|
41
|
-
return
|
|
42
|
+
return i && i.length && (s.dataPermissionIds = i.map((e) => ({
|
|
42
43
|
value: e.dataPermissionId,
|
|
43
44
|
label: e.dataPermissionName
|
|
44
|
-
}))),
|
|
45
|
+
}))), s;
|
|
45
46
|
}));
|
|
46
47
|
}));
|
|
47
48
|
}
|
|
48
|
-
async function
|
|
49
|
-
await nextTick(),
|
|
49
|
+
async function T() {
|
|
50
|
+
await nextTick(), g(!0), w();
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
-
|
|
52
|
+
function E() {
|
|
53
|
+
g(!1);
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
-
|
|
56
|
-
postRbacUserGrantUserRoleAndDatPermission(
|
|
57
|
-
let { dataPermissionIds:
|
|
55
|
+
function D() {
|
|
56
|
+
_ && (v(!0), y.value?.validate().then(() => {
|
|
57
|
+
postRbacUserGrantUserRoleAndDatPermission(b.value.authList.map((e) => {
|
|
58
|
+
let { dataPermissionIds: t = [], roleList: n = [], orgId: r, userId: i } = e;
|
|
58
59
|
return {
|
|
59
|
-
orgId:
|
|
60
|
-
userId:
|
|
61
|
-
roleIds: (
|
|
62
|
-
dataPermissionIds:
|
|
60
|
+
orgId: r,
|
|
61
|
+
userId: i,
|
|
62
|
+
roleIds: (n || []).map((e) => typeof e == "object" && e.id ? e.id : e),
|
|
63
|
+
dataPermissionIds: t.map((e) => e.value)
|
|
63
64
|
};
|
|
64
65
|
})).then((e) => {
|
|
65
|
-
e.success && (message.success("授权成功"),
|
|
66
|
+
e.success && (message.success("授权成功"), p("submit"), E());
|
|
66
67
|
}).finally(() => {
|
|
67
|
-
|
|
68
|
+
v(!1);
|
|
68
69
|
});
|
|
69
70
|
}));
|
|
70
71
|
}
|
|
71
72
|
onMounted(() => {
|
|
72
|
-
|
|
73
|
+
C();
|
|
73
74
|
});
|
|
74
|
-
let
|
|
75
|
-
function
|
|
76
|
-
|
|
77
|
-
let
|
|
75
|
+
let O = ref(), k = ref(0);
|
|
76
|
+
function A(e) {
|
|
77
|
+
k.value = e;
|
|
78
|
+
let t = (b.value.authList[k.value].roleList || []).map((e) => ({
|
|
78
79
|
value: e.id,
|
|
79
80
|
label: e.name
|
|
80
81
|
}));
|
|
81
|
-
|
|
82
|
+
O.value.open(t);
|
|
82
83
|
}
|
|
83
|
-
function
|
|
84
|
-
|
|
84
|
+
function j(e) {
|
|
85
|
+
b.value.authList[k.value].roleList = e.map((e) => ({
|
|
85
86
|
id: e.value,
|
|
86
87
|
name: e.label
|
|
87
88
|
}));
|
|
88
89
|
}
|
|
89
|
-
return
|
|
90
|
-
let
|
|
91
|
-
return openBlock(), createBlock(
|
|
92
|
-
open: unref(
|
|
93
|
-
"onUpdate:open":
|
|
90
|
+
return i({ open: T }), (e, t) => {
|
|
91
|
+
let n = PubinfoIcon, r = FormItem, i = Select, a = Button, o = Tooltip$1, c = Card$1, l = Form$1, u = Space$1, d = Drawer;
|
|
92
|
+
return openBlock(), createBlock(d, {
|
|
93
|
+
open: unref(h),
|
|
94
|
+
"onUpdate:open": t[2] ||= (e) => isRef(h) ? h.value = e : null,
|
|
94
95
|
title: "授权",
|
|
95
96
|
placement: "right",
|
|
96
97
|
width: 520,
|
|
97
98
|
"destroy-on-close": "",
|
|
98
99
|
"footer-style": { textAlign: "right" }
|
|
99
100
|
}, {
|
|
100
|
-
footer: withCtx(() => [createVNode(
|
|
101
|
-
default: withCtx(() => [createVNode(
|
|
102
|
-
default: withCtx(() => [...
|
|
101
|
+
footer: withCtx(() => [createVNode(u, null, {
|
|
102
|
+
default: withCtx(() => [createVNode(a, { onClick: t[0] ||= (e) => unref(g)(!1) }, {
|
|
103
|
+
default: withCtx(() => [...t[4] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
103
104
|
_: 1
|
|
104
|
-
}), createVNode(
|
|
105
|
+
}), createVNode(a, {
|
|
105
106
|
type: "primary",
|
|
106
|
-
loading: unref(
|
|
107
|
-
onClick:
|
|
107
|
+
loading: unref(_),
|
|
108
|
+
onClick: t[1] ||= (e) => D()
|
|
108
109
|
}, {
|
|
109
|
-
default: withCtx(() => [...
|
|
110
|
+
default: withCtx(() => [...t[5] ||= [createTextVNode(" 提交 ", -1)]]),
|
|
110
111
|
_: 1
|
|
111
112
|
}, 8, ["loading"])]),
|
|
112
113
|
_: 1
|
|
113
114
|
})]),
|
|
114
|
-
default: withCtx(() => [createVNode(
|
|
115
|
+
default: withCtx(() => [createVNode(l, {
|
|
115
116
|
ref_key: "formRef",
|
|
116
|
-
ref:
|
|
117
|
-
model: unref(
|
|
117
|
+
ref: y,
|
|
118
|
+
model: unref(b),
|
|
118
119
|
"label-col": { span: 5 }
|
|
119
120
|
}, {
|
|
120
|
-
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
121
|
-
key:
|
|
121
|
+
default: withCtx(() => [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(b).authList, (e, s) => (openBlock(), createBlock(c, {
|
|
122
|
+
key: s,
|
|
122
123
|
size: "small",
|
|
123
124
|
"body-style": { padding: "16px" },
|
|
124
125
|
class: "auth-card"
|
|
125
126
|
}, {
|
|
126
|
-
title: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [e.main ? (openBlock(), createBlock(
|
|
127
|
+
title: withCtx(() => [createElementVNode("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [e.main ? (openBlock(), createBlock(n, {
|
|
127
128
|
key: 0,
|
|
128
129
|
name: "org-main",
|
|
129
130
|
class: "text-2xl"
|
|
130
|
-
})) : (openBlock(), createBlock(
|
|
131
|
+
})) : (openBlock(), createBlock(n, {
|
|
131
132
|
key: 1,
|
|
132
133
|
name: "org-unmain",
|
|
133
134
|
class: "text-2xl"
|
|
134
135
|
})), createElementVNode("div", {
|
|
135
136
|
style: normalizeStyle(e.main ? {
|
|
136
|
-
color: unref(
|
|
137
|
+
color: unref(m).colorPrimary,
|
|
137
138
|
fontWeight: "bold"
|
|
138
139
|
} : {}),
|
|
139
140
|
class: "font-normal"
|
|
140
|
-
}, toDisplayString(`组织${
|
|
141
|
+
}, toDisplayString(`组织${s + 1}`), 5)]), e.main ? (openBlock(), createElementBlock("div", {
|
|
141
142
|
key: 0,
|
|
142
143
|
style: normalizeStyle({
|
|
143
|
-
color: unref(
|
|
144
|
+
color: unref(m).colorPrimary,
|
|
144
145
|
fontWeight: "bold"
|
|
145
146
|
})
|
|
146
147
|
}, " 主组织 ", 4)) : createCommentVNode("", !0)])]),
|
|
147
148
|
default: withCtx(() => [
|
|
148
|
-
createVNode(
|
|
149
|
+
createVNode(r, {
|
|
149
150
|
label: "组织名称",
|
|
150
151
|
"label-col": { span: 5 }
|
|
151
152
|
}, {
|
|
152
153
|
default: withCtx(() => [createElementVNode("span", null, toDisplayString(e.orgName), 1)]),
|
|
153
154
|
_: 2
|
|
154
155
|
}, 1024),
|
|
155
|
-
createVNode(
|
|
156
|
+
createVNode(r, {
|
|
156
157
|
label: "数据权限",
|
|
157
158
|
name: [
|
|
158
159
|
"authList",
|
|
159
|
-
|
|
160
|
+
s,
|
|
160
161
|
"dataPermissionIds"
|
|
161
162
|
],
|
|
162
163
|
"label-col": { span: 5 }
|
|
163
164
|
}, {
|
|
164
|
-
default: withCtx(() => [createVNode(
|
|
165
|
+
default: withCtx(() => [createVNode(i, {
|
|
165
166
|
value: e.dataPermissionIds,
|
|
166
|
-
"onUpdate:value": (
|
|
167
|
+
"onUpdate:value": (t) => e.dataPermissionIds = t,
|
|
167
168
|
"label-in-value": "",
|
|
168
169
|
"field-names": {
|
|
169
170
|
label: "name",
|
|
170
171
|
value: "id"
|
|
171
172
|
},
|
|
172
|
-
options: unref(
|
|
173
|
+
options: unref(S),
|
|
173
174
|
"allow-clear": "",
|
|
174
175
|
mode: "multiple",
|
|
175
176
|
placeholder: "请选择"
|
|
@@ -180,18 +181,18 @@ import './UserAuthorization.css';var _hoisted_1 = { class: "flex items-center ju
|
|
|
180
181
|
])]),
|
|
181
182
|
_: 2
|
|
182
183
|
}, 1032, ["name"]),
|
|
183
|
-
createVNode(
|
|
184
|
+
createVNode(r, {
|
|
184
185
|
label: "用户自选角色",
|
|
185
186
|
"label-col": { span: 5 },
|
|
186
187
|
name: "roleList"
|
|
187
188
|
}, {
|
|
188
|
-
default: withCtx(() => [createVNode(
|
|
189
|
+
default: withCtx(() => [createVNode(a, {
|
|
189
190
|
type: "primary",
|
|
190
|
-
onClick: (e) =>
|
|
191
|
+
onClick: (e) => A(s)
|
|
191
192
|
}, {
|
|
192
|
-
default: withCtx(() => [...
|
|
193
|
+
default: withCtx(() => [...t[3] ||= [createTextVNode(" 编辑角色 ", -1)]]),
|
|
193
194
|
_: 1
|
|
194
|
-
}, 8, ["onClick"]), createElementVNode("div", _hoisted_3, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.roleList, (e) => (openBlock(), createElementBlock(Fragment, { key: e.id }, [(e?.name || "").length > 20 ? (openBlock(), createBlock(
|
|
195
|
+
}, 8, ["onClick"]), createElementVNode("div", _hoisted_3, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.roleList, (e) => (openBlock(), createElementBlock(Fragment, { key: e.id }, [(e?.name || "").length > 20 ? (openBlock(), createBlock(o, {
|
|
195
196
|
key: 0,
|
|
196
197
|
title: e.name
|
|
197
198
|
}, {
|
|
@@ -200,12 +201,12 @@ import './UserAuthorization.css';var _hoisted_1 = { class: "flex items-center ju
|
|
|
200
201
|
}, 1032, ["title"])) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(e.name), 1))], 64))), 128))])]),
|
|
201
202
|
_: 2
|
|
202
203
|
}, 1024),
|
|
203
|
-
createVNode(
|
|
204
|
+
createVNode(r, {
|
|
204
205
|
label: "组织基础角色",
|
|
205
206
|
"label-col": { span: 5 },
|
|
206
207
|
name: "roleList"
|
|
207
208
|
}, {
|
|
208
|
-
default: withCtx(() => [createElementVNode("div", _hoisted_6, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.orgRoleList, (e) => (openBlock(), createElementBlock(Fragment, { key: e.id }, [(e?.name || "").length > 20 ? (openBlock(), createBlock(
|
|
209
|
+
default: withCtx(() => [createElementVNode("div", _hoisted_6, [(openBlock(!0), createElementBlock(Fragment, null, renderList(e.orgRoleList, (e) => (openBlock(), createElementBlock(Fragment, { key: e.id }, [(e?.name || "").length > 20 ? (openBlock(), createBlock(o, {
|
|
209
210
|
key: 0,
|
|
210
211
|
title: e.name
|
|
211
212
|
}, {
|
|
@@ -220,13 +221,13 @@ import './UserAuthorization.css';var _hoisted_1 = { class: "flex items-center ju
|
|
|
220
221
|
_: 1
|
|
221
222
|
}, 8, ["model"]), createVNode(unref(RoleSelector_default), {
|
|
222
223
|
ref_key: "roleModelRef",
|
|
223
|
-
ref:
|
|
224
|
+
ref: O,
|
|
224
225
|
group: "",
|
|
225
|
-
onSelect:
|
|
226
|
+
onSelect: j
|
|
226
227
|
}, null, 512)]),
|
|
227
228
|
_: 1
|
|
228
229
|
}, 8, ["open"]);
|
|
229
230
|
};
|
|
230
231
|
}
|
|
231
|
-
}), [["__scopeId", "data-v-3c791c32"]]);
|
|
232
|
-
export { UserAuthorization_default as t };
|
|
232
|
+
}), UserAuthorization_exports = /* @__PURE__ */ __exportAll({ default: () => UserAuthorization_default }), UserAuthorization_default = /* @__PURE__ */ _plugin_vue_export_helper_default(UserAuthorization_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3c791c32"]]);
|
|
233
|
+
export { UserAuthorization_exports as n, UserAuthorization_default as t };
|