@pubinfo-pr/module-rbac 0.204.4 → 0.220.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.
- 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-Ds-XJRR1.js → breadcrumb_setting-Dx2Li6xt.js} +19 -19
- 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/{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-5Jet091Q.js → menu_setting-ChueWHs4.js} +42 -42
- 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-DQ70WnZK.js → other_setting-BEV_UK0g.js} +86 -86
- package/dist/other_setting.css +1 -1
- package/dist/{page_animation_setting-Lp6cMuFM.js → page_animation_setting-Cp5OnFpd.js} +33 -33
- 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-B3kMhRNm.js → tabbar_setting-kbuTvrLB.js} +36 -36
- 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-DNBdxeGP.js → toolbar_setting-BG-k2UFc.js} +32 -32
- 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-CXp4Og0Y.js → watermark_setting-Cl2EtPAa.js} +98 -98
- 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/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/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/routeSystem-DXMoWhFo.js +0 -2
- package/dist/setItem-Qa7UapHO.js +0 -4
- package/dist/useAppAndResource-CPL2VpOJ.js +0 -52
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { $ as putRbacUserResetPassword, J as getRbacUserUserDelete, Lt as useToggle, Z as postRbacUserUserPage, h as _plugin_vue_export_helper_default, y as getRbacOrgOrgListByParentId } from "./index.js";
|
|
2
|
-
import "./RoleSelector-
|
|
3
|
-
import "./OrgAndPosition-
|
|
4
|
-
import { t as UserAuthorization_default } from "./UserAuthorization-
|
|
5
|
-
import {
|
|
2
|
+
import "./RoleSelector-gkar_UGG.js";
|
|
3
|
+
import "./OrgAndPosition-jDX7m0HD.js";
|
|
4
|
+
import { t as UserAuthorization_default } from "./UserAuthorization-2Fl4IGw7.js";
|
|
5
|
+
import { r as ACTION, t as UserEdit_default } from "./UserEdit-CX3Qau8T.js";
|
|
6
6
|
import { PubinfoIcon, useAuth } from "pubinfo-pr";
|
|
7
7
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isVNode, mergeProps, onMounted, openBlock, ref, resolveComponent, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
8
8
|
import { PlusCircleOutlined } from "@ant-design/icons-vue";
|
|
@@ -14,26 +14,26 @@ import './user.css';var _hoisted_1$1 = { class: "flex w-full items-center overfl
|
|
|
14
14
|
__name: "index",
|
|
15
15
|
props: { auth: {} },
|
|
16
16
|
setup(e) {
|
|
17
|
-
let
|
|
18
|
-
function
|
|
19
|
-
return new Promise((
|
|
17
|
+
let t = e, r = ref([]), [i, o] = useToggle(!1);
|
|
18
|
+
function s(e) {
|
|
19
|
+
return new Promise((n, i) => {
|
|
20
20
|
if (e?.dataRef?.children) {
|
|
21
|
-
|
|
21
|
+
n();
|
|
22
22
|
return;
|
|
23
23
|
}
|
|
24
|
-
|
|
24
|
+
o(!0), getRbacOrgOrgListByParentId({
|
|
25
25
|
parentId: e?.dataRef?.id,
|
|
26
26
|
enable: !0
|
|
27
|
-
}, { headers: { "X-ResourceMark":
|
|
28
|
-
if (
|
|
29
|
-
let
|
|
30
|
-
e?.dataRef ? e.dataRef.children =
|
|
27
|
+
}, { headers: { "X-ResourceMark": t.auth } }).then((t) => {
|
|
28
|
+
if (t.success) {
|
|
29
|
+
let n = t?.data?.map(c) ?? [];
|
|
30
|
+
e?.dataRef ? e.dataRef.children = n : r.value = n;
|
|
31
31
|
}
|
|
32
|
-
|
|
33
|
-
}).catch(
|
|
32
|
+
r.value = [...r.value], n();
|
|
33
|
+
}).catch(i).finally(() => o(!1));
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
|
-
function
|
|
36
|
+
function c(e) {
|
|
37
37
|
return {
|
|
38
38
|
key: e.id,
|
|
39
39
|
isLeaf: e.leaf,
|
|
@@ -41,18 +41,18 @@ import './user.css';var _hoisted_1$1 = { class: "flex w-full items-center overfl
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
return onMounted(() => {
|
|
44
|
-
|
|
45
|
-
}), (e,
|
|
46
|
-
let
|
|
47
|
-
return openBlock(), createBlock(
|
|
44
|
+
s();
|
|
45
|
+
}), (e, t) => {
|
|
46
|
+
let n = Empty$1, a = Tree$1, o = Spin$1, c = Card$1;
|
|
47
|
+
return openBlock(), createBlock(c, {
|
|
48
48
|
"body-style": { padding: "16px" },
|
|
49
49
|
class: "w-full h-full overflow-y-auto overflow-x-hidden"
|
|
50
50
|
}, {
|
|
51
|
-
default: withCtx(() => [createVNode(
|
|
52
|
-
default: withCtx(() => [unref(
|
|
51
|
+
default: withCtx(() => [createVNode(o, { spinning: unref(i) }, {
|
|
52
|
+
default: withCtx(() => [unref(r).length === 0 ? (openBlock(), createBlock(n, { key: 0 })) : (openBlock(), createBlock(a, mergeProps({ key: 1 }, e.$attrs, {
|
|
53
53
|
"block-node": "",
|
|
54
|
-
"load-data":
|
|
55
|
-
"tree-data": unref(
|
|
54
|
+
"load-data": s,
|
|
55
|
+
"tree-data": unref(r),
|
|
56
56
|
"field-names": {
|
|
57
57
|
children: "children",
|
|
58
58
|
title: "name",
|
|
@@ -84,8 +84,8 @@ function _isSlot(e) {
|
|
|
84
84
|
var user_default = /* @__PURE__ */ defineComponent({
|
|
85
85
|
name: "User",
|
|
86
86
|
__name: "index",
|
|
87
|
-
setup(
|
|
88
|
-
let { auth:
|
|
87
|
+
setup(n) {
|
|
88
|
+
let { auth: i } = useAuth(), a = [
|
|
89
89
|
{
|
|
90
90
|
valueType: "a-input",
|
|
91
91
|
bind: "value",
|
|
@@ -126,11 +126,11 @@ var user_default = /* @__PURE__ */ defineComponent({
|
|
|
126
126
|
}, {
|
|
127
127
|
default: () => e?.map((e) => e.orgName).join(","),
|
|
128
128
|
content: () => {
|
|
129
|
-
let
|
|
130
|
-
return createVNode(Space, { direction: "vertical" }, _isSlot(
|
|
129
|
+
let t;
|
|
130
|
+
return createVNode(Space, { direction: "vertical" }, _isSlot(t = e.map((e) => createVNode(Badge, {
|
|
131
131
|
status: e.main ? "processing" : "success",
|
|
132
132
|
text: e.orgName
|
|
133
|
-
}, null))) ?
|
|
133
|
+
}, null))) ? t : { default: () => [t] });
|
|
134
134
|
}
|
|
135
135
|
});
|
|
136
136
|
}
|
|
@@ -163,7 +163,7 @@ var user_default = /* @__PURE__ */ defineComponent({
|
|
|
163
163
|
width: 280,
|
|
164
164
|
hideInSearch: !0,
|
|
165
165
|
hideInTable() {
|
|
166
|
-
return !
|
|
166
|
+
return !i([
|
|
167
167
|
"user_authorize",
|
|
168
168
|
"user_reset_password",
|
|
169
169
|
"user_edit",
|
|
@@ -171,147 +171,147 @@ var user_default = /* @__PURE__ */ defineComponent({
|
|
|
171
171
|
]);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
],
|
|
175
|
-
async function
|
|
176
|
-
let { current:
|
|
177
|
-
currentPage:
|
|
178
|
-
pageSize:
|
|
179
|
-
orgId:
|
|
180
|
-
...
|
|
181
|
-
...
|
|
174
|
+
], u = ref({}), d = ref({}), f = ref({}), p = ref();
|
|
175
|
+
async function h(e) {
|
|
176
|
+
let { current: t, pageSize: n, ...i } = e, a = await postRbacUserUserPage({
|
|
177
|
+
currentPage: t,
|
|
178
|
+
pageSize: n,
|
|
179
|
+
orgId: u.value?.orgId,
|
|
180
|
+
...f.value,
|
|
181
|
+
...i
|
|
182
182
|
});
|
|
183
183
|
return {
|
|
184
|
-
success:
|
|
185
|
-
data:
|
|
186
|
-
total:
|
|
184
|
+
success: a.success,
|
|
185
|
+
data: a.data?.records ?? [],
|
|
186
|
+
total: a.data?.total ?? 0
|
|
187
187
|
};
|
|
188
188
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
189
|
+
function y() {
|
|
190
|
+
p.value.reload();
|
|
191
191
|
}
|
|
192
|
-
function
|
|
193
|
-
|
|
194
|
-
orgId:
|
|
195
|
-
orgName:
|
|
196
|
-
},
|
|
192
|
+
function b(e, { node: t }) {
|
|
193
|
+
t.selected ? u.value = {} : u.value = {
|
|
194
|
+
orgId: t.id,
|
|
195
|
+
orgName: t.name
|
|
196
|
+
}, y();
|
|
197
197
|
}
|
|
198
|
-
let
|
|
199
|
-
function
|
|
200
|
-
switch (
|
|
198
|
+
let x = ref(), S = ref();
|
|
199
|
+
function C(n, r) {
|
|
200
|
+
switch (n) {
|
|
201
201
|
case ACTION.ADD:
|
|
202
|
-
|
|
202
|
+
x.value.open(n);
|
|
203
203
|
break;
|
|
204
204
|
case ACTION.AUTHORIZE:
|
|
205
|
-
|
|
205
|
+
r && (d.value = r), S.value && S.value.open && S.value.open();
|
|
206
206
|
break;
|
|
207
207
|
case ACTION.EDIT:
|
|
208
|
-
|
|
208
|
+
x.value.open(n, r);
|
|
209
209
|
break;
|
|
210
210
|
case ACTION.RESET_PASSWORD:
|
|
211
211
|
Modal.confirm({
|
|
212
212
|
title: "重置密码",
|
|
213
213
|
content: "确定要重置该用户密码吗?",
|
|
214
214
|
async onOk() {
|
|
215
|
-
(await putRbacUserResetPassword({ userId:
|
|
215
|
+
(await putRbacUserResetPassword({ userId: r?.id })).success && message.success("重置密码成功");
|
|
216
216
|
}
|
|
217
217
|
});
|
|
218
218
|
break;
|
|
219
219
|
case ACTION.REMOVE: {
|
|
220
|
-
let e =
|
|
220
|
+
let e = r?.userOrgList && r.userOrgList?.length > 1;
|
|
221
221
|
Modal.confirm({
|
|
222
222
|
title: "删除",
|
|
223
223
|
content: `确定要删除该用户吗?${e ? "该用户存在多个组织下,若只需移除组织,请在编辑中操作。" : ""}`,
|
|
224
224
|
async onOk() {
|
|
225
|
-
(await getRbacUserUserDelete({ userId:
|
|
225
|
+
(await getRbacUserUserDelete({ userId: r?.id })).success && (message.success("删除成功"), y());
|
|
226
226
|
}
|
|
227
227
|
});
|
|
228
228
|
break;
|
|
229
229
|
}
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
|
-
function
|
|
233
|
-
return
|
|
232
|
+
function w(e, t) {
|
|
233
|
+
return t.userType === "2" ? [ACTION.RESET_PASSWORD].includes(e) : [
|
|
234
234
|
ACTION.AUTHORIZE,
|
|
235
235
|
ACTION.RESET_PASSWORD,
|
|
236
236
|
ACTION.EDIT,
|
|
237
237
|
ACTION.REMOVE
|
|
238
238
|
].includes(e);
|
|
239
239
|
}
|
|
240
|
-
return (e,
|
|
241
|
-
let
|
|
240
|
+
return (e, t) => {
|
|
241
|
+
let n = OrgTree_default, r = Col, i = PlusCircleOutlined, l = Button, m = PubinfoIcon, g = Space$1, _ = Row, v = resolveDirective("auth");
|
|
242
242
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
243
|
-
createVNode(
|
|
243
|
+
createVNode(_, {
|
|
244
244
|
gutter: [8, 8],
|
|
245
245
|
wrap: !1,
|
|
246
246
|
class: "h-full"
|
|
247
247
|
}, {
|
|
248
|
-
default: withCtx(() => [createVNode(
|
|
248
|
+
default: withCtx(() => [createVNode(r, {
|
|
249
249
|
flex: "320px",
|
|
250
250
|
class: "h-full overflow-hidden"
|
|
251
251
|
}, {
|
|
252
|
-
default: withCtx(() => [createVNode(
|
|
253
|
-
"select-keys": [unref(
|
|
252
|
+
default: withCtx(() => [createVNode(n, {
|
|
253
|
+
"select-keys": [unref(f).orgId],
|
|
254
254
|
bordered: !1,
|
|
255
255
|
auth: "organization",
|
|
256
|
-
onSelect:
|
|
256
|
+
onSelect: b
|
|
257
257
|
}, null, 8, ["select-keys"])]),
|
|
258
258
|
_: 1
|
|
259
|
-
}), createVNode(
|
|
259
|
+
}), createVNode(r, {
|
|
260
260
|
flex: "auto",
|
|
261
261
|
class: "h-full"
|
|
262
262
|
}, {
|
|
263
263
|
default: withCtx(() => [createVNode(unref(ProTable), {
|
|
264
264
|
ref_key: "tableRef",
|
|
265
|
-
ref:
|
|
265
|
+
ref: p,
|
|
266
266
|
"row-key": (e) => `${e.id}-${e.orgId}`,
|
|
267
|
-
request:
|
|
268
|
-
columns:
|
|
267
|
+
request: h,
|
|
268
|
+
columns: a,
|
|
269
269
|
scroll: { x: 800 },
|
|
270
270
|
"auto-height": ""
|
|
271
271
|
}, {
|
|
272
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
272
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(l, {
|
|
273
273
|
type: "primary",
|
|
274
|
-
onClick:
|
|
274
|
+
onClick: t[0] ||= (e) => C(unref(ACTION).ADD)
|
|
275
275
|
}, {
|
|
276
|
-
default: withCtx(() => [createVNode(
|
|
276
|
+
default: withCtx(() => [createVNode(i), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
277
277
|
_: 1
|
|
278
|
-
})), [[
|
|
279
|
-
bodyCell: withCtx(({ column: e, record:
|
|
278
|
+
})), [[v, "user_add"]])]),
|
|
279
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(g, { key: 0 }, {
|
|
280
280
|
default: withCtx(() => [
|
|
281
|
-
|
|
281
|
+
w(unref(ACTION).AUTHORIZE, t) ? withDirectives((openBlock(), createElementBlock("a", {
|
|
282
282
|
key: 0,
|
|
283
283
|
class: "flex items-center",
|
|
284
|
-
onClick: (e) =>
|
|
285
|
-
}, [createVNode(
|
|
284
|
+
onClick: (e) => C(unref(ACTION).AUTHORIZE, t)
|
|
285
|
+
}, [createVNode(m, {
|
|
286
286
|
name: "authorize",
|
|
287
287
|
"mr-1": "",
|
|
288
288
|
"text-base": ""
|
|
289
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).AUTHORIZE), 1)], 8, _hoisted_2)), [[
|
|
290
|
-
|
|
289
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).AUTHORIZE), 1)], 8, _hoisted_2)), [[v, "user_authorize"]]) : createCommentVNode("", !0),
|
|
290
|
+
w(unref(ACTION).RESET_PASSWORD, t) ? withDirectives((openBlock(), createElementBlock("a", {
|
|
291
291
|
key: 1,
|
|
292
292
|
class: "flex items-center",
|
|
293
|
-
onClick: (e) =>
|
|
294
|
-
}, [createVNode(
|
|
293
|
+
onClick: (e) => C(unref(ACTION).RESET_PASSWORD, t)
|
|
294
|
+
}, [createVNode(m, {
|
|
295
295
|
name: "i-ci-arrows-reload-01",
|
|
296
296
|
"mr-1": "",
|
|
297
297
|
"text-base": ""
|
|
298
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).RESET_PASSWORD), 1)], 8, _hoisted_3)), [[
|
|
299
|
-
|
|
298
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).RESET_PASSWORD), 1)], 8, _hoisted_3)), [[v, "user_reset_password"]]) : createCommentVNode("", !0),
|
|
299
|
+
w(unref(ACTION).EDIT, t) ? withDirectives((openBlock(), createElementBlock("a", {
|
|
300
300
|
key: 2,
|
|
301
301
|
class: "flex items-center",
|
|
302
|
-
onClick: (e) =>
|
|
303
|
-
}, [createVNode(
|
|
302
|
+
onClick: (e) => C(unref(ACTION).EDIT, t)
|
|
303
|
+
}, [createVNode(m, {
|
|
304
304
|
name: "edit",
|
|
305
305
|
class: "mr-1 text-base"
|
|
306
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[
|
|
307
|
-
|
|
306
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[v, "user_edit"]]) : createCommentVNode("", !0),
|
|
307
|
+
w(unref(ACTION).REMOVE, t) ? withDirectives((openBlock(), createElementBlock("span", {
|
|
308
308
|
key: 3,
|
|
309
309
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
310
|
-
onClick: (e) =>
|
|
311
|
-
}, [createVNode(
|
|
310
|
+
onClick: (e) => C(unref(ACTION).REMOVE, t)
|
|
311
|
+
}, [createVNode(m, {
|
|
312
312
|
name: "remove",
|
|
313
313
|
class: "mr-1 text-base"
|
|
314
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[
|
|
314
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[v, "user_remove"]]) : createCommentVNode("", !0)
|
|
315
315
|
]),
|
|
316
316
|
_: 2
|
|
317
317
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
@@ -323,14 +323,14 @@ var user_default = /* @__PURE__ */ defineComponent({
|
|
|
323
323
|
}),
|
|
324
324
|
createVNode(UserEdit_default, {
|
|
325
325
|
ref_key: "editRef",
|
|
326
|
-
ref:
|
|
327
|
-
"current-org": unref(
|
|
328
|
-
onSubmit:
|
|
326
|
+
ref: x,
|
|
327
|
+
"current-org": unref(u),
|
|
328
|
+
onSubmit: y
|
|
329
329
|
}, null, 8, ["current-org"]),
|
|
330
330
|
createVNode(UserAuthorization_default, {
|
|
331
331
|
ref_key: "authorizationRef",
|
|
332
|
-
ref:
|
|
333
|
-
"user-id": unref(
|
|
332
|
+
ref: S,
|
|
333
|
+
"user-id": unref(d).id || ""
|
|
334
334
|
}, null, 8, ["user-id"])
|
|
335
335
|
]);
|
|
336
336
|
};
|