@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,5 +1,5 @@
|
|
|
1
1
|
import { Ct as postRbacPostFindPage, bt as deleteRbacPostDeleteById } from "./index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { r as ACTION, t as drawerPosition_default } from "./drawerPosition-CfyfeQCN.js";
|
|
3
3
|
import { PubinfoIcon, useAuth } from "pubinfo";
|
|
4
4
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
5
5
|
import { PlusCircleOutlined } from "@ant-design/icons-vue";
|
|
@@ -17,24 +17,24 @@ var _hoisted_1 = {
|
|
|
17
17
|
}, _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, position_default = /* @__PURE__ */ defineComponent({
|
|
18
18
|
name: "PositionManage",
|
|
19
19
|
__name: "index",
|
|
20
|
-
setup(
|
|
21
|
-
let { auth:
|
|
22
|
-
function
|
|
23
|
-
|
|
20
|
+
setup(o) {
|
|
21
|
+
let { auth: u } = useAuth(), d = ref(), f = ref();
|
|
22
|
+
function p() {
|
|
23
|
+
d.value?.reload();
|
|
24
24
|
}
|
|
25
|
-
async function
|
|
26
|
-
let { current:
|
|
27
|
-
currentPage:
|
|
28
|
-
pageSize:
|
|
29
|
-
...
|
|
25
|
+
async function m(t) {
|
|
26
|
+
let { current: n, pageSize: r, ...i } = t, a = await postRbacPostFindPage({
|
|
27
|
+
currentPage: n,
|
|
28
|
+
pageSize: r,
|
|
29
|
+
...i
|
|
30
30
|
});
|
|
31
31
|
return {
|
|
32
|
-
success:
|
|
33
|
-
data:
|
|
34
|
-
total:
|
|
32
|
+
success: a.success,
|
|
33
|
+
data: a.data?.records ?? [],
|
|
34
|
+
total: a.data?.total ?? 0
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
let
|
|
37
|
+
let h = [
|
|
38
38
|
{
|
|
39
39
|
valueType: "a-input",
|
|
40
40
|
bind: "value",
|
|
@@ -66,7 +66,7 @@ var _hoisted_1 = {
|
|
|
66
66
|
minWidth: 100,
|
|
67
67
|
title: "是否启用",
|
|
68
68
|
dataIndex: "enable",
|
|
69
|
-
customRender: ({ text:
|
|
69
|
+
customRender: ({ text: e }) => e ? createVNode(Badge, {
|
|
70
70
|
status: "success",
|
|
71
71
|
text: "启用"
|
|
72
72
|
}, null) : createVNode(Badge, {
|
|
@@ -88,7 +88,7 @@ var _hoisted_1 = {
|
|
|
88
88
|
dataIndex: "action",
|
|
89
89
|
fixed: "right",
|
|
90
90
|
hideInTable() {
|
|
91
|
-
return !
|
|
91
|
+
return !u([
|
|
92
92
|
"region_add_child",
|
|
93
93
|
"region_edit",
|
|
94
94
|
"region_remove"
|
|
@@ -96,69 +96,69 @@ var _hoisted_1 = {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
];
|
|
99
|
-
function
|
|
100
|
-
switch (
|
|
99
|
+
function g(e, r) {
|
|
100
|
+
switch (e) {
|
|
101
101
|
case ACTION.EDIT:
|
|
102
|
-
|
|
102
|
+
f.value?.open(e, r);
|
|
103
103
|
break;
|
|
104
104
|
case ACTION.ADD:
|
|
105
|
-
|
|
105
|
+
f.value?.open(e);
|
|
106
106
|
break;
|
|
107
107
|
case ACTION.REMOVE:
|
|
108
108
|
Modal.confirm({
|
|
109
109
|
title: "删除",
|
|
110
110
|
content: "确定要删除该岗位吗?",
|
|
111
111
|
onOk() {
|
|
112
|
-
deleteRbacPostDeleteById({ id:
|
|
113
|
-
|
|
112
|
+
deleteRbacPostDeleteById({ id: r?.id }).then((e) => {
|
|
113
|
+
e.success && (message.success("删除成功"), p());
|
|
114
114
|
});
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
117
|
break;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
return (
|
|
121
|
-
let
|
|
120
|
+
return (e, t) => {
|
|
121
|
+
let a = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
|
|
122
122
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
|
|
123
123
|
ref_key: "tableRef",
|
|
124
|
-
ref:
|
|
124
|
+
ref: d,
|
|
125
125
|
"row-key": "id",
|
|
126
|
-
request:
|
|
127
|
-
columns:
|
|
126
|
+
request: m,
|
|
127
|
+
columns: h,
|
|
128
128
|
"auto-height": "",
|
|
129
129
|
scroll: { x: 1100 }
|
|
130
130
|
}, {
|
|
131
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
131
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
|
|
132
132
|
type: "primary",
|
|
133
|
-
onClick:
|
|
133
|
+
onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
|
|
134
134
|
}, {
|
|
135
|
-
default: withCtx(() => [createVNode(
|
|
135
|
+
default: withCtx(() => [createVNode(a), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
136
136
|
_: 1
|
|
137
|
-
})), [[
|
|
138
|
-
bodyCell: withCtx(({ column:
|
|
137
|
+
})), [[l, "position_add"]])]),
|
|
138
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "type" ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(s, {
|
|
139
139
|
name: "icon_position_type",
|
|
140
140
|
class: "text-20px"
|
|
141
|
-
}), createElementVNode("span", _hoisted_3, toDisplayString(
|
|
141
|
+
}), createElementVNode("span", _hoisted_3, toDisplayString(t.type), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
|
|
142
142
|
default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
|
|
143
143
|
class: "flex items-center",
|
|
144
|
-
onClick: (
|
|
145
|
-
}, [createVNode(
|
|
144
|
+
onClick: (e) => g(unref(ACTION).EDIT, t)
|
|
145
|
+
}, [createVNode(s, {
|
|
146
146
|
name: "edit",
|
|
147
147
|
class: "text-base"
|
|
148
|
-
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[
|
|
148
|
+
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[l, "position_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
|
|
149
149
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
150
|
-
onClick: (
|
|
151
|
-
}, [createVNode(
|
|
150
|
+
onClick: (e) => g(unref(ACTION).REMOVE, t)
|
|
151
|
+
}, [createVNode(s, {
|
|
152
152
|
name: "remove",
|
|
153
153
|
class: "text-base"
|
|
154
|
-
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[
|
|
154
|
+
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[l, "position_remove"]])]),
|
|
155
155
|
_: 2
|
|
156
156
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
157
157
|
_: 1
|
|
158
158
|
}, 512), createVNode(drawerPosition_default, {
|
|
159
159
|
ref_key: "drawerPositionRef",
|
|
160
|
-
ref:
|
|
161
|
-
onSubmit:
|
|
160
|
+
ref: f,
|
|
161
|
+
onSubmit: t[1] ||= (e) => p()
|
|
162
162
|
}, null, 512)]);
|
|
163
163
|
};
|
|
164
164
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as cloneDeep } from "./cloneDeep-CSOSavu3.js";
|
|
2
2
|
import { Et as getRegionGetListByParentId, Tt as getRegionDeleteRegionByCode } from "./index.js";
|
|
3
|
-
import {
|
|
3
|
+
import { r as ACTION, t as drawerRegion_default } from "./drawerRegion-DAwY_29K.js";
|
|
4
4
|
import { PubinfoIcon, useAuth } from "pubinfo";
|
|
5
5
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
6
6
|
import { PlusCircleOutlined } from "@ant-design/icons-vue";
|
|
@@ -15,12 +15,12 @@ var _hoisted_1 = {
|
|
|
15
15
|
}, _hoisted_2 = ["onClick"], _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, region_default = /* @__PURE__ */ defineComponent({
|
|
16
16
|
name: "RegionManage",
|
|
17
17
|
__name: "index",
|
|
18
|
-
setup(
|
|
19
|
-
let { auth:
|
|
20
|
-
function
|
|
21
|
-
|
|
18
|
+
setup(a) {
|
|
19
|
+
let { auth: c } = useAuth(), l = ref({ parentId: "" }), u = ref([]), d = ref({}), f = ref(), p = ref(), m = ref([]);
|
|
20
|
+
function h(e) {
|
|
21
|
+
m.value = e;
|
|
22
22
|
}
|
|
23
|
-
let
|
|
23
|
+
let g = [
|
|
24
24
|
{
|
|
25
25
|
minWidth: 240,
|
|
26
26
|
title: "区域名称",
|
|
@@ -55,7 +55,7 @@ var _hoisted_1 = {
|
|
|
55
55
|
width: 240,
|
|
56
56
|
fixed: "right",
|
|
57
57
|
hideInTable() {
|
|
58
|
-
return !
|
|
58
|
+
return !c([
|
|
59
59
|
"region_add_child",
|
|
60
60
|
"region_edit",
|
|
61
61
|
"region_remove"
|
|
@@ -63,115 +63,115 @@ var _hoisted_1 = {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
];
|
|
66
|
-
function
|
|
67
|
-
switch (
|
|
66
|
+
function _(e, t) {
|
|
67
|
+
switch (e) {
|
|
68
68
|
case ACTION.ADDNEXT:
|
|
69
|
-
|
|
69
|
+
l.value.parentId = t.id, d.value = t, p.value?.open(e, t);
|
|
70
70
|
break;
|
|
71
71
|
case ACTION.ADD:
|
|
72
|
-
|
|
72
|
+
l.value.parentId = "", d.value = {}, p.value?.open(e);
|
|
73
73
|
break;
|
|
74
74
|
case ACTION.EDIT:
|
|
75
|
-
|
|
75
|
+
l.value.parentId = t.parentId, d.value = x(u.value, l.value.parentId), p.value?.open(e, t);
|
|
76
76
|
break;
|
|
77
77
|
case ACTION.REMOVE:
|
|
78
|
-
|
|
78
|
+
l.value.parentId = t.parentId, d.value = x(u.value, l.value.parentId), Modal.confirm({
|
|
79
79
|
title: "删除",
|
|
80
80
|
content: "确定要删除该区域吗?",
|
|
81
81
|
onOk() {
|
|
82
|
-
getRegionDeleteRegionByCode({ code:
|
|
83
|
-
|
|
82
|
+
getRegionDeleteRegionByCode({ code: t.code }).then((e) => {
|
|
83
|
+
e.success && (message.success("删除成功"), b());
|
|
84
84
|
});
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
87
|
break;
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
|
-
async function
|
|
91
|
-
let
|
|
92
|
-
return
|
|
93
|
-
...
|
|
94
|
-
children:
|
|
95
|
-
})) :
|
|
96
|
-
...
|
|
97
|
-
children:
|
|
90
|
+
async function v() {
|
|
91
|
+
let e = await getRegionGetListByParentId({ ...l.value });
|
|
92
|
+
return d.value && Object.keys(d.value).length > 0 ? e.data.length > 0 ? d.value.children = e.data?.map((e) => ({
|
|
93
|
+
...e,
|
|
94
|
+
children: e.isLeaf ? void 0 : []
|
|
95
|
+
})) : d.value.children = void 0 : (m.value = [], u.value = e.data?.map((e) => ({
|
|
96
|
+
...e,
|
|
97
|
+
children: e.isLeaf ? void 0 : []
|
|
98
98
|
}))), {
|
|
99
99
|
success: !0,
|
|
100
|
-
data:
|
|
100
|
+
data: u.value
|
|
101
101
|
};
|
|
102
102
|
}
|
|
103
|
-
function
|
|
104
|
-
let
|
|
105
|
-
|
|
103
|
+
function y(t, n) {
|
|
104
|
+
let r = cloneDeep(n);
|
|
105
|
+
t && r.children?.length === 0 && (l.value.parentId = n.id, d.value = n, f.value?.fetch());
|
|
106
106
|
}
|
|
107
|
-
function
|
|
108
|
-
|
|
107
|
+
function b() {
|
|
108
|
+
f.value?.reload();
|
|
109
109
|
}
|
|
110
|
-
function
|
|
111
|
-
for (let
|
|
112
|
-
if (
|
|
113
|
-
if (
|
|
114
|
-
let
|
|
115
|
-
if (
|
|
110
|
+
function x(e, t) {
|
|
111
|
+
for (let n of e) {
|
|
112
|
+
if (n.id === t) return n;
|
|
113
|
+
if (n.children) {
|
|
114
|
+
let e = x(n.children, t);
|
|
115
|
+
if (e) return e;
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
|
-
return (
|
|
120
|
-
let
|
|
119
|
+
return (e, t) => {
|
|
120
|
+
let n = PlusCircleOutlined, i = Button, a = PubinfoIcon, o = Space$1, s = resolveDirective("auth");
|
|
121
121
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
|
|
122
122
|
ref_key: "tableRef",
|
|
123
|
-
ref:
|
|
123
|
+
ref: f,
|
|
124
124
|
"row-key": "id",
|
|
125
125
|
search: !1,
|
|
126
|
-
request:
|
|
127
|
-
columns:
|
|
128
|
-
"data-source": unref(
|
|
126
|
+
request: v,
|
|
127
|
+
columns: g,
|
|
128
|
+
"data-source": unref(u),
|
|
129
129
|
pagination: !1,
|
|
130
130
|
"auto-height": "",
|
|
131
|
-
"expanded-row-keys": unref(
|
|
131
|
+
"expanded-row-keys": unref(m),
|
|
132
132
|
scroll: { x: 1100 },
|
|
133
|
-
onExpandedRowsChange:
|
|
134
|
-
onExpand:
|
|
133
|
+
onExpandedRowsChange: h,
|
|
134
|
+
onExpand: y
|
|
135
135
|
}, {
|
|
136
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
136
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(i, {
|
|
137
137
|
type: "primary",
|
|
138
|
-
onClick:
|
|
138
|
+
onClick: t[0] ||= (e) => _(unref(ACTION).ADD)
|
|
139
139
|
}, {
|
|
140
|
-
default: withCtx(() => [createVNode(
|
|
140
|
+
default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
141
141
|
_: 1
|
|
142
|
-
})), [[
|
|
143
|
-
bodyCell: withCtx(({ column:
|
|
142
|
+
})), [[s, "region_add"]])]),
|
|
143
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(o, { key: 0 }, {
|
|
144
144
|
default: withCtx(() => [
|
|
145
145
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
146
146
|
class: "flex items-center",
|
|
147
|
-
onClick: (
|
|
148
|
-
}, [createVNode(
|
|
147
|
+
onClick: (e) => _(unref(ACTION).ADDNEXT, t)
|
|
148
|
+
}, [createVNode(a, {
|
|
149
149
|
name: "add-child",
|
|
150
150
|
class: "text-base"
|
|
151
|
-
}), createElementVNode("span", _hoisted_3, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_2)), [[
|
|
151
|
+
}), createElementVNode("span", _hoisted_3, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_2)), [[s, "region_add_child"]]),
|
|
152
152
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
153
153
|
class: "flex items-center",
|
|
154
|
-
onClick: (
|
|
155
|
-
}, [createVNode(
|
|
154
|
+
onClick: (e) => _(unref(ACTION).EDIT, t)
|
|
155
|
+
}, [createVNode(a, {
|
|
156
156
|
name: "edit",
|
|
157
157
|
class: "text-base"
|
|
158
|
-
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[
|
|
158
|
+
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[s, "region_edit"]]),
|
|
159
159
|
withDirectives((openBlock(), createElementBlock("span", {
|
|
160
160
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
161
|
-
onClick: (
|
|
162
|
-
}, [createVNode(
|
|
161
|
+
onClick: (e) => _(unref(ACTION).REMOVE, t)
|
|
162
|
+
}, [createVNode(a, {
|
|
163
163
|
name: "remove",
|
|
164
164
|
class: "text-base"
|
|
165
|
-
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[
|
|
165
|
+
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_6)), [[s, "region_remove"]])
|
|
166
166
|
]),
|
|
167
167
|
_: 2
|
|
168
168
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
169
169
|
_: 1
|
|
170
170
|
}, 8, ["data-source", "expanded-row-keys"]), createVNode(drawerRegion_default, {
|
|
171
171
|
ref_key: "drawerRegionRef",
|
|
172
|
-
ref:
|
|
173
|
-
"tree-data": unref(
|
|
174
|
-
onSubmit:
|
|
172
|
+
ref: p,
|
|
173
|
+
"tree-data": unref(u),
|
|
174
|
+
onSubmit: t[1] ||= (e) => b()
|
|
175
175
|
}, null, 8, ["tree-data"])]);
|
|
176
176
|
};
|
|
177
177
|
}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./MetaForm-
|
|
2
|
-
import { t as
|
|
3
|
-
import "./ComponentSelect-
|
|
1
|
+
import "./MetaForm-CcDwS8vh.js";
|
|
2
|
+
import { t as cloneDeep } from "./cloneDeep-CSOSavu3.js";
|
|
3
|
+
import "./ComponentSelect-A7uGTuHW.js";
|
|
4
4
|
import { I as getRbacResourceResourceDelete, L as getRbacResourceResourceTree } from "./index.js";
|
|
5
5
|
import "./enum-3mYayxff.js";
|
|
6
6
|
import { i as resourceOptions, n as RESOURCE_COLOR, r as RESOURCE_TYPE, t as ACTION } from "./enum-3E_sUqRF.js";
|
|
7
|
-
import "./DynamicRoutesForm-
|
|
8
|
-
import "./HoverCard-
|
|
9
|
-
import "./IconSelect-
|
|
10
|
-
import "./dayjs.min-
|
|
11
|
-
import { t as ImportExport_default } from "./ImportExport-
|
|
12
|
-
import "./LayoutForm-
|
|
13
|
-
import { t as ResourceEdit_default } from "./ResourceEdit-
|
|
14
|
-
import { t as RoleRelation_default } from "./RoleRelation-
|
|
7
|
+
import "./DynamicRoutesForm-DSzy_bh5.js";
|
|
8
|
+
import "./HoverCard-CmJCoa2b.js";
|
|
9
|
+
import "./IconSelect-DouEg3xY.js";
|
|
10
|
+
import "./dayjs.min-Cb7gQFd4.js";
|
|
11
|
+
import { t as ImportExport_default } from "./ImportExport-DisdLoY8.js";
|
|
12
|
+
import "./LayoutForm-Bdfs5WeK.js";
|
|
13
|
+
import { t as ResourceEdit_default } from "./ResourceEdit-0BYZRye_.js";
|
|
14
|
+
import { t as RoleRelation_default } from "./RoleRelation-BQQFaum0.js";
|
|
15
15
|
import { PubinfoIcon, useAuth } from "pubinfo";
|
|
16
16
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
17
17
|
import { PlusCircleOutlined, SwapOutlined } from "@ant-design/icons-vue";
|
|
@@ -26,8 +26,8 @@ var _hoisted_1 = {
|
|
|
26
26
|
}, _hoisted_2 = ["onClick"], _hoisted_3 = ["onClick"], _hoisted_4 = ["onClick"], _hoisted_5 = ["onClick"], resource_default = /* @__PURE__ */ defineComponent({
|
|
27
27
|
name: "Resource",
|
|
28
28
|
__name: "index",
|
|
29
|
-
setup(
|
|
30
|
-
let { auth:
|
|
29
|
+
setup(s) {
|
|
30
|
+
let { auth: c } = useAuth(), l = [
|
|
31
31
|
{
|
|
32
32
|
valueType: "a-input",
|
|
33
33
|
width: 200,
|
|
@@ -48,11 +48,11 @@ var _hoisted_1 = {
|
|
|
48
48
|
allowClear: !0,
|
|
49
49
|
options: resourceOptions
|
|
50
50
|
},
|
|
51
|
-
customRender({ text:
|
|
51
|
+
customRender({ text: e }) {
|
|
52
52
|
return createVNode("div", { class: "flex items-center space-x-1" }, [createVNode(Tag, {
|
|
53
|
-
color: RESOURCE_COLOR[
|
|
53
|
+
color: RESOURCE_COLOR[e],
|
|
54
54
|
bordered: !1
|
|
55
|
-
}, { default: () => [resourceOptions.find((
|
|
55
|
+
}, { default: () => [resourceOptions.find((t) => t.value === e)?.label] })]);
|
|
56
56
|
}
|
|
57
57
|
},
|
|
58
58
|
{
|
|
@@ -70,8 +70,8 @@ var _hoisted_1 = {
|
|
|
70
70
|
dataIndex: "meta",
|
|
71
71
|
ellipsis: !0,
|
|
72
72
|
hideInSearch: !0,
|
|
73
|
-
customRender({ text:
|
|
74
|
-
return
|
|
73
|
+
customRender({ text: e }) {
|
|
74
|
+
return e?.url || "-";
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
{
|
|
@@ -97,8 +97,8 @@ var _hoisted_1 = {
|
|
|
97
97
|
label: "否"
|
|
98
98
|
}]
|
|
99
99
|
},
|
|
100
|
-
customRender({ text:
|
|
101
|
-
return
|
|
100
|
+
customRender({ text: e }) {
|
|
101
|
+
return e ? createVNode(Badge, {
|
|
102
102
|
status: "success",
|
|
103
103
|
text: "是"
|
|
104
104
|
}, null) : createVNode(Badge, {
|
|
@@ -121,7 +121,7 @@ var _hoisted_1 = {
|
|
|
121
121
|
width: 300,
|
|
122
122
|
hideInSearch: !0,
|
|
123
123
|
hideInTable() {
|
|
124
|
-
return !
|
|
124
|
+
return !c([
|
|
125
125
|
"resource_role_relation",
|
|
126
126
|
"resource_add_child",
|
|
127
127
|
"resource_edit",
|
|
@@ -130,45 +130,45 @@ var _hoisted_1 = {
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
];
|
|
133
|
-
function
|
|
134
|
-
return
|
|
133
|
+
function u(e, t) {
|
|
134
|
+
return e?.map((e) => (e.children = e.children && u(e.children, t), t(e))) ?? [];
|
|
135
135
|
}
|
|
136
|
-
let
|
|
137
|
-
function
|
|
138
|
-
|
|
136
|
+
let d = ref(), f = computed(() => d.value?.dataSource ?? []);
|
|
137
|
+
function p() {
|
|
138
|
+
d.value.reload();
|
|
139
139
|
}
|
|
140
|
-
async function
|
|
141
|
-
let { pageSize:
|
|
140
|
+
async function m(t) {
|
|
141
|
+
let { pageSize: r, current: i, ...a } = cloneDeep(t);
|
|
142
142
|
return {
|
|
143
143
|
success: !0,
|
|
144
|
-
data: await getRbacResourceResourceTree({ ...
|
|
145
|
-
return
|
|
146
|
-
...
|
|
144
|
+
data: await getRbacResourceResourceTree({ ...a }, { transform(e) {
|
|
145
|
+
return u(e?.data ?? [], (e) => e.leaf ? {
|
|
146
|
+
...e,
|
|
147
147
|
children: void 0
|
|
148
|
-
} :
|
|
148
|
+
} : e);
|
|
149
149
|
} })
|
|
150
150
|
};
|
|
151
151
|
}
|
|
152
|
-
let
|
|
153
|
-
function
|
|
154
|
-
switch (
|
|
152
|
+
let h = ref(), g = ref(), _ = ref();
|
|
153
|
+
function v(e, n) {
|
|
154
|
+
switch (e) {
|
|
155
155
|
case ACTION.ROLE_RELATION:
|
|
156
|
-
|
|
156
|
+
g.value.open(n);
|
|
157
157
|
break;
|
|
158
158
|
case ACTION.ADD:
|
|
159
|
-
|
|
159
|
+
h.value.open(e);
|
|
160
160
|
break;
|
|
161
161
|
case ACTION.ADD_CHILD:
|
|
162
|
-
|
|
162
|
+
h.value.open(e, n);
|
|
163
163
|
break;
|
|
164
164
|
case ACTION.EDIT:
|
|
165
|
-
|
|
165
|
+
h.value.open(e, n);
|
|
166
166
|
break;
|
|
167
167
|
case ACTION.IMPORT_EXPORT:
|
|
168
|
-
|
|
168
|
+
_.value.open();
|
|
169
169
|
break;
|
|
170
170
|
case ACTION.REMOVE:
|
|
171
|
-
if (!
|
|
171
|
+
if (!n?.leaf) {
|
|
172
172
|
message.info("非叶子节点不能删除");
|
|
173
173
|
return;
|
|
174
174
|
}
|
|
@@ -176,73 +176,73 @@ var _hoisted_1 = {
|
|
|
176
176
|
title: "删除",
|
|
177
177
|
content: "确定要删除该资源吗?",
|
|
178
178
|
async onOk() {
|
|
179
|
-
(await getRbacResourceResourceDelete({ id:
|
|
179
|
+
(await getRbacResourceResourceDelete({ id: n?.id })).success && (message.success("删除成功"), p());
|
|
180
180
|
}
|
|
181
181
|
});
|
|
182
182
|
break;
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
|
-
return (
|
|
186
|
-
let
|
|
185
|
+
return (e, t) => {
|
|
186
|
+
let n = PlusCircleOutlined, r = Button, i = Space$1, o = resolveDirective("auth");
|
|
187
187
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
188
188
|
createVNode(unref(ProTable), {
|
|
189
189
|
ref_key: "tableRef",
|
|
190
|
-
ref:
|
|
190
|
+
ref: d,
|
|
191
191
|
"row-key": "id",
|
|
192
|
-
columns:
|
|
193
|
-
request:
|
|
192
|
+
columns: l,
|
|
193
|
+
request: m,
|
|
194
194
|
pagination: !1,
|
|
195
195
|
scroll: { x: 1280 },
|
|
196
196
|
"auto-height": ""
|
|
197
197
|
}, {
|
|
198
|
-
toolbar: withCtx(() => [createVNode(
|
|
199
|
-
default: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
198
|
+
toolbar: withCtx(() => [createVNode(i, null, {
|
|
199
|
+
default: withCtx(() => [withDirectives((openBlock(), createBlock(r, {
|
|
200
200
|
type: "primary",
|
|
201
|
-
onClick:
|
|
201
|
+
onClick: t[0] ||= (e) => v(unref(ACTION).ADD)
|
|
202
202
|
}, {
|
|
203
|
-
default: withCtx(() => [createVNode(
|
|
203
|
+
default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
204
204
|
_: 1
|
|
205
|
-
})), [[
|
|
205
|
+
})), [[o, "resource_app_add"]]), createVNode(r, { onClick: t[1] ||= (e) => v(unref(ACTION).IMPORT_EXPORT) }, {
|
|
206
206
|
default: withCtx(() => [createVNode(unref(SwapOutlined)), createTextVNode(" " + toDisplayString(unref(ACTION).IMPORT_EXPORT), 1)]),
|
|
207
207
|
_: 1
|
|
208
208
|
})]),
|
|
209
209
|
_: 1
|
|
210
210
|
})]),
|
|
211
|
-
bodyCell: withCtx(({ column:
|
|
211
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(i, { key: 0 }, {
|
|
212
212
|
default: withCtx(() => [
|
|
213
213
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
214
214
|
class: "flex items-center",
|
|
215
|
-
onClick: (
|
|
215
|
+
onClick: (e) => v(unref(ACTION).ROLE_RELATION, t)
|
|
216
216
|
}, [createVNode(unref(PubinfoIcon), {
|
|
217
217
|
name: "view",
|
|
218
218
|
class: "mr-1 text-base"
|
|
219
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).ROLE_RELATION), 1)], 8, _hoisted_2)), [[
|
|
219
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).ROLE_RELATION), 1)], 8, _hoisted_2)), [[o, "resource_role_relation"]]),
|
|
220
220
|
[
|
|
221
221
|
unref(RESOURCE_TYPE).BUTTON,
|
|
222
222
|
unref(RESOURCE_TYPE).IFRAME,
|
|
223
223
|
unref(RESOURCE_TYPE).LINK
|
|
224
|
-
].includes(
|
|
224
|
+
].includes(t.type) ? createCommentVNode("", !0) : withDirectives((openBlock(), createElementBlock("a", {
|
|
225
225
|
key: 0,
|
|
226
226
|
class: "flex items-center",
|
|
227
|
-
onClick: (
|
|
227
|
+
onClick: (e) => v(unref(ACTION).ADD_CHILD, t)
|
|
228
228
|
}, [createVNode(unref(PubinfoIcon), {
|
|
229
229
|
name: "add-child",
|
|
230
230
|
class: "mr-1 text-base"
|
|
231
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).ADD_CHILD), 1)], 8, _hoisted_3)), [[
|
|
231
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).ADD_CHILD), 1)], 8, _hoisted_3)), [[o, "resource_add_child"]]),
|
|
232
232
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
233
233
|
class: "flex items-center",
|
|
234
|
-
onClick: (
|
|
234
|
+
onClick: (e) => v(unref(ACTION).EDIT, t)
|
|
235
235
|
}, [createVNode(unref(PubinfoIcon), {
|
|
236
236
|
name: "edit",
|
|
237
237
|
class: "mr-1 text-base"
|
|
238
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[
|
|
238
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_4)), [[o, "resource_edit"]]),
|
|
239
239
|
withDirectives((openBlock(), createElementBlock("span", {
|
|
240
240
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
241
|
-
onClick: (
|
|
241
|
+
onClick: (e) => v(unref(ACTION).REMOVE, t)
|
|
242
242
|
}, [createVNode(unref(PubinfoIcon), {
|
|
243
243
|
name: "remove",
|
|
244
244
|
class: "mr-1 text-base"
|
|
245
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[
|
|
245
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[o, "resource_remove"]])
|
|
246
246
|
]),
|
|
247
247
|
_: 2
|
|
248
248
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
@@ -250,19 +250,19 @@ var _hoisted_1 = {
|
|
|
250
250
|
}, 512),
|
|
251
251
|
createVNode(ResourceEdit_default, {
|
|
252
252
|
ref_key: "editRef",
|
|
253
|
-
ref:
|
|
254
|
-
"data-source": unref(
|
|
255
|
-
onSubmit:
|
|
253
|
+
ref: h,
|
|
254
|
+
"data-source": unref(f),
|
|
255
|
+
onSubmit: p
|
|
256
256
|
}, null, 8, ["data-source"]),
|
|
257
257
|
createVNode(RoleRelation_default, {
|
|
258
258
|
ref_key: "relationRef",
|
|
259
|
-
ref:
|
|
259
|
+
ref: g
|
|
260
260
|
}, null, 512),
|
|
261
261
|
createVNode(ImportExport_default, {
|
|
262
262
|
ref_key: "importExportRef",
|
|
263
|
-
ref:
|
|
264
|
-
"data-source": unref(
|
|
265
|
-
onSubmit:
|
|
263
|
+
ref: _,
|
|
264
|
+
"data-source": unref(f),
|
|
265
|
+
onSubmit: p
|
|
266
266
|
}, null, 8, ["data-source"])
|
|
267
267
|
]);
|
|
268
268
|
};
|