@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
package/dist/{createAndEditDataPermission-CaOBJgoV.js → createAndEditDataPermission-8_KNLzJT.js}
RENAMED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { r as __exportAll } from "./chunk-DiMWNkAf.js";
|
|
1
2
|
import { Lt as useToggle, Nt as postGroupList, OrgSelector as OrgSelector_default, ResourceSelector as ResourceSelector_default, at as postRbacPubDataPermissionsSave, g as RESOURCE_MODE, h as _plugin_vue_export_helper_default, nt as getRbacPubDataPermissionsGetById, ot as postRbacPubDataPermissionsUpdate } from "./index.js";
|
|
2
3
|
import { n as GROUP_TYPE } from "./enum-Cr7uWnB2.js";
|
|
3
|
-
import { t as useAppAndResource } from "./useAppAndResource-
|
|
4
|
+
import { t as useAppAndResource } from "./useAppAndResource-B7FmNfKG.js";
|
|
4
5
|
import { i as dataPermissionOptionsAll, n as DATA_PERMISSION_TYPE } from "./enum-3mYayxff.js";
|
|
5
6
|
import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, mergeModels, openBlock, ref, renderList, resolveComponent, toDisplayString, unref, useModel, withCtx } from "vue";
|
|
6
7
|
import { message } from "ant-design-vue";
|
|
@@ -13,16 +14,16 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
13
14
|
openModifiers: {}
|
|
14
15
|
},
|
|
15
16
|
emits: /* @__PURE__ */ mergeModels(["select"], ["update:open"]),
|
|
16
|
-
setup(
|
|
17
|
-
let a = i, o = ref("OrgGroup"), s = computed(() => o.value === "OrgGroup"), c = ref([]),
|
|
18
|
-
let e = s.value ? c :
|
|
17
|
+
setup(e, { expose: r, emit: i }) {
|
|
18
|
+
let a = i, o = ref("OrgGroup"), s = computed(() => o.value === "OrgGroup"), c = ref([]), l = ref([]), d = ref([]), f = ref([]), p = computed(() => {
|
|
19
|
+
let e = s.value ? c : l, t = s.value ? d : f;
|
|
19
20
|
return e.value.filter((e) => t.value.includes(e.value));
|
|
20
|
-
}), h = useModel(
|
|
21
|
+
}), h = useModel(e, "open"), g = useToggle(h);
|
|
21
22
|
_();
|
|
22
23
|
function _() {
|
|
23
|
-
|
|
24
|
+
v(GROUP_TYPE.ORG), v(GROUP_TYPE.PER);
|
|
24
25
|
}
|
|
25
|
-
function
|
|
26
|
+
function v(e) {
|
|
26
27
|
postGroupList({ type: e }).then((t) => {
|
|
27
28
|
if (t && t.data && t.data.length) {
|
|
28
29
|
let n = t.data.map((e) => {
|
|
@@ -34,36 +35,36 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
34
35
|
id: n
|
|
35
36
|
};
|
|
36
37
|
});
|
|
37
|
-
e === GROUP_TYPE.ORG ? c.value = n :
|
|
38
|
+
e === GROUP_TYPE.ORG ? c.value = n : l.value = n;
|
|
38
39
|
}
|
|
39
40
|
});
|
|
40
41
|
}
|
|
41
|
-
function
|
|
42
|
+
function b(e) {
|
|
42
43
|
if (e && e.length) {
|
|
43
44
|
let t = e.map((e) => e.value);
|
|
44
45
|
s.value ? d.value = t : f.value = t;
|
|
45
46
|
} else d.value = [], f.value = [];
|
|
46
47
|
g(!0);
|
|
47
48
|
}
|
|
48
|
-
function
|
|
49
|
-
s.value ?
|
|
49
|
+
function S() {
|
|
50
|
+
s.value ? C() : ee();
|
|
50
51
|
}
|
|
51
|
-
function
|
|
52
|
+
function C() {
|
|
52
53
|
d.value = [];
|
|
53
54
|
}
|
|
54
|
-
function
|
|
55
|
+
function ee() {
|
|
55
56
|
f.value = [];
|
|
56
57
|
}
|
|
57
58
|
function w(e) {
|
|
58
59
|
let t = s.value ? d : f, n = t.value.findIndex((t) => t === e);
|
|
59
60
|
n !== -1 && t.value.splice(n, 1);
|
|
60
61
|
}
|
|
61
|
-
function
|
|
62
|
-
a("select",
|
|
62
|
+
function E() {
|
|
63
|
+
a("select", p.value), g(!1);
|
|
63
64
|
}
|
|
64
|
-
return r({ open:
|
|
65
|
-
let n = CheckboxGroup$1, r = TabPane, i = Tabs, a = Tag$1, s = Tooltip$1,
|
|
66
|
-
return openBlock(), createBlock(
|
|
65
|
+
return r({ open: b }), (e, t) => {
|
|
66
|
+
let n = CheckboxGroup$1, r = TabPane, i = Tabs, a = Tag$1, s = Tooltip$1, u = Button, m = Modal$1;
|
|
67
|
+
return openBlock(), createBlock(m, {
|
|
67
68
|
open: h.value,
|
|
68
69
|
"onUpdate:open": t[4] ||= (e) => h.value = e,
|
|
69
70
|
class: "group-modal",
|
|
@@ -71,12 +72,12 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
71
72
|
"mask-closable": !1,
|
|
72
73
|
width: 750
|
|
73
74
|
}, {
|
|
74
|
-
footer: withCtx(() => [createVNode(
|
|
75
|
+
footer: withCtx(() => [createVNode(u, { onClick: t[3] ||= (e) => unref(g)(!1) }, {
|
|
75
76
|
default: withCtx(() => [...t[6] ||= [createTextVNode(" 取消 ", -1)]]),
|
|
76
77
|
_: 1
|
|
77
|
-
}), createVNode(
|
|
78
|
+
}), createVNode(u, {
|
|
78
79
|
type: "primary",
|
|
79
|
-
onClick:
|
|
80
|
+
onClick: E
|
|
80
81
|
}, {
|
|
81
82
|
default: withCtx(() => [...t[7] ||= [createTextVNode(" 确定 ", -1)]]),
|
|
82
83
|
_: 1
|
|
@@ -104,15 +105,15 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
104
105
|
default: withCtx(() => [createVNode(n, {
|
|
105
106
|
value: unref(f),
|
|
106
107
|
"onUpdate:value": t[1] ||= (e) => isRef(f) ? f.value = e : null,
|
|
107
|
-
options: unref(
|
|
108
|
+
options: unref(l)
|
|
108
109
|
}, null, 8, ["value", "options"])]),
|
|
109
110
|
_: 1
|
|
110
111
|
})]),
|
|
111
112
|
_: 1
|
|
112
113
|
}, 8, ["active-key"])]), createElementVNode("div", _hoisted_3$1, [createElementVNode("div", { class: "w-full h-38px bg-[rgb(245,245,245)] flex px-15px items-center justify-between text-[#1D2129] dark:bg-[#000] dark:text-[#F2F3F5]" }, [t[5] ||= createElementVNode("div", { class: "" }, " 已选群组 ", -1), createElementVNode("div", {
|
|
113
114
|
class: "cursor-pointer text-[#165DFF]",
|
|
114
|
-
onClick:
|
|
115
|
-
}, " 清空 ")]), createElementVNode("div", _hoisted_4$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
115
|
+
onClick: S
|
|
116
|
+
}, " 清空 ")]), createElementVNode("div", _hoisted_4$1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(p), (e) => (openBlock(), createElementBlock("div", {
|
|
116
117
|
key: e.value,
|
|
117
118
|
class: "inline-block mb-6px max-w-300px"
|
|
118
119
|
}, [e.name && e.name.length > 20 ? (openBlock(), createBlock(s, {
|
|
@@ -150,18 +151,18 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
150
151
|
}, _hoisted_7 = { class: "pt-10px" }, _hoisted_8 = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, _hoisted_9 = {
|
|
151
152
|
key: 1,
|
|
152
153
|
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
153
|
-
},
|
|
154
|
+
}, createAndEditDataPermission_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
154
155
|
name: "CreateAndEditDataPermission",
|
|
155
156
|
__name: "createAndEditDataPermission",
|
|
156
157
|
emits: ["submit"],
|
|
157
|
-
setup(
|
|
158
|
-
let
|
|
158
|
+
setup(e, { expose: n, emit: s }) {
|
|
159
|
+
let u = s, g = RESOURCE_MODE.DATA_PERMISSION, { appList: _, resourceModelRef: v, selectedResources: y, getAppList: x, updateTreeDataAndResourceMap: T, setSelectedResources: D, updateSelectedResources: O, clearSelectedResources: k, openResourceModel: A } = useAppAndResource(g), j = ref(""), M = {
|
|
159
160
|
name: "",
|
|
160
161
|
type: "",
|
|
161
162
|
appId: "",
|
|
162
163
|
orgIds: [],
|
|
163
164
|
resourceIds: []
|
|
164
|
-
}, N = ref(),
|
|
165
|
+
}, N = ref(), te = {
|
|
165
166
|
name: [{
|
|
166
167
|
required: !0,
|
|
167
168
|
message: "请输入数据权限名称",
|
|
@@ -196,7 +197,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
196
197
|
trigger: ["blur", "change"]
|
|
197
198
|
}]
|
|
198
199
|
}, P = ref({ ...M }), F = computed(() => P.value.type === DATA_PERMISSION_TYPE.CUSTOM_DEPT_AND_SUB || P.value.type === DATA_PERMISSION_TYPE.CUSTOM_DEPT_ONLY), I = computed(() => P.value.type === DATA_PERMISSION_TYPE.CUSTOM_GROUP), L = ref(!1), [R, z] = useToggle(!1), B = ref(), V = ref([]), H = ref(), U = ref([]);
|
|
199
|
-
|
|
200
|
+
x();
|
|
200
201
|
async function W(e, t) {
|
|
201
202
|
if (j.value = e, L.value = !1, P.value = { ...M }, k(), X(), Z(), t) {
|
|
202
203
|
L.value = !0;
|
|
@@ -219,13 +220,13 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
219
220
|
name: e.name,
|
|
220
221
|
value: e.id,
|
|
221
222
|
label: e.name && e.name.length > 20 ? e.name.slice(0, 20) : e.name
|
|
222
|
-
}))), await
|
|
223
|
+
}))), await T(P.value.appId), P.value.resourceIds && O(P.value.resourceIds);
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
z(!0);
|
|
226
227
|
}
|
|
227
228
|
function G(e) {
|
|
228
|
-
P.value.resourceIds = [],
|
|
229
|
+
P.value.resourceIds = [], y.value = [], e && T(e);
|
|
229
230
|
}
|
|
230
231
|
function K() {
|
|
231
232
|
N.value?.validateFields(["appId"]).then(() => {
|
|
@@ -247,28 +248,28 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
247
248
|
function Z() {
|
|
248
249
|
U.value = [];
|
|
249
250
|
}
|
|
250
|
-
function
|
|
251
|
+
function ne(e) {
|
|
251
252
|
V.value = e, e.length ? (P.value.orgIds = e.map((e) => e.orgId || ""), N.value?.clearValidate(["orgIds"])) : P.value.orgIds = [];
|
|
252
253
|
}
|
|
253
|
-
function
|
|
254
|
+
function re(e) {
|
|
254
255
|
U.value = e, e.length ? (P.value.groupIds = e.map((e) => e.id || ""), N.value?.clearValidate(["groupIds"])) : P.value.groupIds = [];
|
|
255
256
|
}
|
|
256
|
-
let [
|
|
257
|
-
function
|
|
257
|
+
let [ie, Q] = useToggle(!1);
|
|
258
|
+
function ae() {
|
|
258
259
|
N.value?.validate().then(() => {
|
|
259
260
|
Q(!0);
|
|
260
261
|
let e = L.value ? postRbacPubDataPermissionsUpdate : postRbacPubDataPermissionsSave, t = { ...P.value };
|
|
261
262
|
F.value || delete t.orgIds, I.value || delete t.groupIds, e(t).then((e) => {
|
|
262
|
-
e.success && (message.success(`${j.value}成功!`), z(!1),
|
|
263
|
+
e.success && (message.success(`${j.value}成功!`), z(!1), u("submit"));
|
|
263
264
|
}).finally(() => Q(!1));
|
|
264
265
|
});
|
|
265
266
|
}
|
|
266
267
|
function $() {
|
|
267
268
|
z(!1);
|
|
268
269
|
}
|
|
269
|
-
return
|
|
270
|
-
let
|
|
271
|
-
return openBlock(), createBlock(
|
|
270
|
+
return n({ open: W }), (e, t) => {
|
|
271
|
+
let n = Input$1, a = FormItem, o = Select, s = Button, c = Tooltip$1, l = Form$1, u = Space$1, d = Drawer;
|
|
272
|
+
return openBlock(), createBlock(d, {
|
|
272
273
|
open: unref(R),
|
|
273
274
|
"onUpdate:open": t[4] ||= (e) => isRef(R) ? R.value = e : null,
|
|
274
275
|
title: `${unref(j)}数据权限`,
|
|
@@ -284,8 +285,8 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
284
285
|
_: 1
|
|
285
286
|
}), createVNode(s, {
|
|
286
287
|
type: "primary",
|
|
287
|
-
loading: unref(
|
|
288
|
-
onClick: t[3] ||= (e) =>
|
|
288
|
+
loading: unref(ie),
|
|
289
|
+
onClick: t[3] ||= (e) => ae()
|
|
289
290
|
}, {
|
|
290
291
|
default: withCtx(() => [...t[9] ||= [createTextVNode(" 提交 ", -1)]]),
|
|
291
292
|
_: 1
|
|
@@ -297,7 +298,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
297
298
|
ref_key: "formRef",
|
|
298
299
|
ref: N,
|
|
299
300
|
model: unref(P),
|
|
300
|
-
rules:
|
|
301
|
+
rules: te,
|
|
301
302
|
"label-col": { span: 6 }
|
|
302
303
|
}, {
|
|
303
304
|
default: withCtx(() => [
|
|
@@ -305,7 +306,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
305
306
|
label: "数据权限名称",
|
|
306
307
|
name: "name"
|
|
307
308
|
}, {
|
|
308
|
-
default: withCtx(() => [createVNode(
|
|
309
|
+
default: withCtx(() => [createVNode(n, {
|
|
309
310
|
value: unref(P).name,
|
|
310
311
|
"onUpdate:value": t[0] ||= (e) => unref(P).name = e,
|
|
311
312
|
maxlength: 20
|
|
@@ -351,7 +352,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
351
352
|
}, {
|
|
352
353
|
default: withCtx(() => [...t[5] ||= [createTextVNode(" 编辑资源 ", -1)]]),
|
|
353
354
|
_: 1
|
|
354
|
-
}), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(
|
|
355
|
+
}), createElementVNode("div", _hoisted_1, [(openBlock(!0), createElementBlock(Fragment, null, renderList(unref(y), (e) => (openBlock(), createElementBlock(Fragment, { key: e }, [e.name.length > 20 ? (openBlock(), createBlock(c, {
|
|
355
356
|
key: 0,
|
|
356
357
|
title: e.name
|
|
357
358
|
}, {
|
|
@@ -408,7 +409,7 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
408
409
|
ref: B,
|
|
409
410
|
"model-value": unref(V),
|
|
410
411
|
multiple: "",
|
|
411
|
-
onSubmit:
|
|
412
|
+
onSubmit: ne
|
|
412
413
|
}, null, 8, ["model-value"]),
|
|
413
414
|
createVNode(ResourceSelector_default, {
|
|
414
415
|
ref_key: "resourceModelRef",
|
|
@@ -419,12 +420,12 @@ import './createAndEditDataPermission.css';var _hoisted_1$1 = { class: "h-340px
|
|
|
419
420
|
createVNode(GroupSelector_default, {
|
|
420
421
|
ref_key: "groupRef",
|
|
421
422
|
ref: H,
|
|
422
|
-
onSelect:
|
|
423
|
+
onSelect: re
|
|
423
424
|
}, null, 512)
|
|
424
425
|
]),
|
|
425
426
|
_: 1
|
|
426
427
|
}, 8, ["open", "title"]);
|
|
427
428
|
};
|
|
428
429
|
}
|
|
429
|
-
});
|
|
430
|
-
export { createAndEditDataPermission_default as t };
|
|
430
|
+
}), createAndEditDataPermission_exports = /* @__PURE__ */ __exportAll({ default: () => createAndEditDataPermission_default }), createAndEditDataPermission_default = createAndEditDataPermission_vue_vue_type_script_setup_true_lang_default;
|
|
431
|
+
export { createAndEditDataPermission_exports as n, createAndEditDataPermission_default as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.group-modal .ant-tabs-content-holder{padding:0 1rem .5rem;overflow:auto}.group-modal .ant-tabs-nav:before{display:none}.group-modal .ant-tabs-nav-wrap{background:#f5f5f5;height:38px}.group-modal .ant-tabs-tab{margin:0;padding:0 .75rem}.group-modal .ant-tabs-tab+.ant-tabs-tab{margin-left:0!important}.group-modal .ant-tabs-tab-active{background:#fff}.group-modal .ant-checkbox-group{display:block}.group-modal .ant-checkbox-wrapper{margin-bottom:.5rem;display:flex}.group-modal .ant-tabs-ink-bar{display:none}.dark .group-modal .ant-tabs-nav-wrap{--un-text-opacity:1;color:rgb(242 243 245/var(--un-text-opacity));background:#000}.dark .group-modal .ant-tabs-tab-active{background:#141414}.group-modal[data-v-2ec81ba8] .ant-modal-content{border-radius:0;padding:0}.group-modal[data-v-2ec81ba8] .ant-modal-header{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-width:1px;border-bottom-color:rgb(229 230 235/var(--un-border-bottom-opacity));border-style:solid;margin-bottom:0;padding:.75rem 1rem}.group-modal[data-v-2ec81ba8] .ant-modal-title{--un-text-opacity:1;color:rgb(29 33 41/var(--un-text-opacity));font-size:1rem;font-weight:500;line-height:1}.group-modal[data-v-2ec81ba8] .ant-modal-body{padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-width:1px;border-top-color:rgb(229 230 235/var(--un-border-top-opacity));border-style:solid;padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer .ant-btn{border-radius:.125rem}[data-v-2ec81ba8] .ant-tree-checkbox{margin-block-start:0;margin-inline-end:2px}[data-v-2ec81ba8] .ant-tree-checkbox+span .ant-tree-iconEle{margin-right:.25rem}.custom_tag[data-v-2ec81ba8]{border-width:0;border-radius:.125rem;padding:3px .5rem}.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon{--un-text-opacity:.6;color:rgb(22 93 255/var(--un-text-opacity))}.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon:hover{--un-text-opacity:1;color:rgb(22 93 255/var(--un-text-opacity))}.border_color[data-v-2ec81ba8]{--un-border-opacity:1;border-color:rgb(229 230 235/var(--un-border-opacity))}[data-theme=dark] .border_color[data-v-2ec81ba8]{--un-border-opacity:.12;border-color:rgb(253 253 253/var(--un-border-opacity))}.border_c[data-v-2ec81ba8]{--un-border-opacity:1;border-width:1px;border-color:rgb(204 204 204/var(--un-border-opacity));border-style:dashed;border-radius:10px}[data-v-2ec81ba8] .ant-dropdown-link{--un-scale-x:.7;--un-scale-y:.7;transform:translateX(var(--un-translate-x))translateY(var(--un-translate-y))translateZ(var(--un-translate-z))rotate(var(--un-rotate))rotateX(var(--un-rotate-x))rotateY(var(--un-rotate-y))rotateZ(var(--un-rotate-z))skewX(var(--un-skew-x))skewY(var(--un-skew-y))scaleX(var(--un-scale-x))scaleY(var(--un-scale-y))scaleZ(var(--un-scale-z));border-radius:.125rem;padding:.25rem .375rem;font-size:.75rem;line-height:1rem}
|
|
1
|
+
.group-modal .ant-tabs-content-holder{padding:0 1rem .5rem;overflow:auto}.group-modal .ant-tabs-nav:before{display:none}.group-modal .ant-tabs-nav-wrap{background:#f5f5f5;height:38px}.group-modal .ant-tabs-tab{margin:0;padding:0 .75rem}.group-modal .ant-tabs-tab+.ant-tabs-tab{margin-left:0!important}.group-modal .ant-tabs-tab-active{background:#fff}.group-modal .ant-checkbox-group{display:block}.group-modal .ant-checkbox-wrapper{margin-bottom:.5rem;display:flex}.group-modal .ant-tabs-ink-bar{display:none}.dark .group-modal .ant-tabs-nav-wrap{--un-text-opacity:1;color:rgb(242 243 245/var(--un-text-opacity)) ;background:#000}.dark .group-modal .ant-tabs-tab-active{background:#141414}.group-modal[data-v-2ec81ba8] .ant-modal-content{border-radius:0;padding:0}.group-modal[data-v-2ec81ba8] .ant-modal-header{--un-border-opacity:1;--un-border-bottom-opacity:var(--un-border-opacity);border-bottom-width:1px;border-bottom-color:rgb(229 230 235/var(--un-border-bottom-opacity));border-style:solid;margin-bottom:0;padding:.75rem 1rem}.group-modal[data-v-2ec81ba8] .ant-modal-title{--un-text-opacity:1;color:rgb(29 33 41/var(--un-text-opacity)) ;font-size:1rem;font-weight:500;line-height:1}.group-modal[data-v-2ec81ba8] .ant-modal-body{padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer{--un-border-opacity:1;--un-border-top-opacity:var(--un-border-opacity);border-top-width:1px;border-top-color:rgb(229 230 235/var(--un-border-top-opacity));border-style:solid;padding:1rem}.group-modal[data-v-2ec81ba8] .ant-modal-footer .ant-btn{border-radius:.125rem}[data-v-2ec81ba8] .ant-tree-checkbox{margin-block-start:0;margin-inline-end:2px}[data-v-2ec81ba8] .ant-tree-checkbox+span .ant-tree-iconEle{margin-right:.25rem}.custom_tag[data-v-2ec81ba8]{border-width:0;border-radius:.125rem;padding:3px .5rem}.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon{--un-text-opacity:.6;color:rgb(22 93 255/var(--un-text-opacity)) }.custom_tag[data-v-2ec81ba8] .ant-tag-close-icon:hover{--un-text-opacity:1;color:rgb(22 93 255/var(--un-text-opacity)) }.border_color[data-v-2ec81ba8]{--un-border-opacity:1;border-color:rgb(229 230 235/var(--un-border-opacity))}[data-theme=dark] .border_color[data-v-2ec81ba8]{--un-border-opacity:.12;border-color:rgb(253 253 253/var(--un-border-opacity))}.border_c[data-v-2ec81ba8]{--un-border-opacity:1;border-width:1px;border-color:rgb(204 204 204/var(--un-border-opacity));border-style:dashed;border-radius:10px}[data-v-2ec81ba8] .ant-dropdown-link{--un-scale-x:.7;--un-scale-y:.7;transform:translateX(var(--un-translate-x)) translateY(var(--un-translate-y)) translateZ(var(--un-translate-z)) rotate(var(--un-rotate)) rotateX(var(--un-rotate-x)) rotateY(var(--un-rotate-y)) rotateZ(var(--un-rotate-z)) skewX(var(--un-skew-x)) skewY(var(--un-skew-y)) scaleX(var(--un-scale-x)) scaleY(var(--un-scale-y)) scaleZ(var(--un-scale-z));border-radius:.125rem;padding:.25rem .375rem;font-size:.75rem;line-height:1rem}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Lt as useToggle, et as deleteRbacPubDataPermissionsDelete, h as _plugin_vue_export_helper_default, it as postRbacPubDataPermissionsPageQuery } from "./index.js";
|
|
2
2
|
import "./enum-Cr7uWnB2.js";
|
|
3
|
-
import { t as createAndEditDataPermission_default } from "./createAndEditDataPermission-
|
|
4
|
-
import "./useAppAndResource-
|
|
3
|
+
import { t as createAndEditDataPermission_default } from "./createAndEditDataPermission-8_KNLzJT.js";
|
|
4
|
+
import "./useAppAndResource-B7FmNfKG.js";
|
|
5
5
|
import { a as dataPermissionTypeLabel, i as dataPermissionOptionsAll, t as ACTION } from "./enum-3mYayxff.js";
|
|
6
6
|
import { PubinfoIcon } from "pubinfo";
|
|
7
7
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
@@ -20,8 +20,8 @@ import './data-permission.css';var _hoisted_1 = {
|
|
|
20
20
|
}, _hoisted_2 = { key: 0 }, _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, data_permission_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
21
21
|
name: "DataPermission",
|
|
22
22
|
__name: "index",
|
|
23
|
-
setup(
|
|
24
|
-
let
|
|
23
|
+
setup(n) {
|
|
24
|
+
let s = ref(), u = ref(), d = [
|
|
25
25
|
{
|
|
26
26
|
valueType: "a-input",
|
|
27
27
|
title: "数据权限名称",
|
|
@@ -62,89 +62,89 @@ import './data-permission.css';var _hoisted_1 = {
|
|
|
62
62
|
fixed: "right"
|
|
63
63
|
}
|
|
64
64
|
];
|
|
65
|
-
async function
|
|
66
|
-
let { current:
|
|
67
|
-
pageSize:
|
|
68
|
-
currentPage:
|
|
65
|
+
async function f(e) {
|
|
66
|
+
let { current: t, pageSize: n, type: i, name: a } = e, o = await postRbacPubDataPermissionsPageQuery({
|
|
67
|
+
pageSize: n,
|
|
68
|
+
currentPage: t,
|
|
69
69
|
doSearchTotal: !0,
|
|
70
|
-
type:
|
|
71
|
-
name:
|
|
70
|
+
type: i,
|
|
71
|
+
name: a
|
|
72
72
|
});
|
|
73
73
|
return {
|
|
74
|
-
success:
|
|
75
|
-
data:
|
|
76
|
-
total:
|
|
74
|
+
success: o.success,
|
|
75
|
+
data: o.data?.records ?? [],
|
|
76
|
+
total: o.data?.total ?? 0
|
|
77
77
|
};
|
|
78
78
|
}
|
|
79
|
-
function
|
|
80
|
-
|
|
79
|
+
function p() {
|
|
80
|
+
s.value.reload();
|
|
81
81
|
}
|
|
82
|
-
let [
|
|
83
|
-
function
|
|
84
|
-
if (!
|
|
82
|
+
let [m, h] = useToggle(!1);
|
|
83
|
+
function g(e, n) {
|
|
84
|
+
if (!m.value) switch (e) {
|
|
85
85
|
case ACTION.ADD:
|
|
86
|
-
|
|
86
|
+
u.value.open(e);
|
|
87
87
|
break;
|
|
88
88
|
case ACTION.EDIT:
|
|
89
|
-
|
|
89
|
+
u.value.open(e, n);
|
|
90
90
|
break;
|
|
91
91
|
case ACTION.REMOVE:
|
|
92
92
|
Modal.confirm({
|
|
93
93
|
title: "删除",
|
|
94
94
|
content: "确定要删除该权限吗?",
|
|
95
95
|
async onOk() {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}).finally(() =>
|
|
96
|
+
h(!0), deleteRbacPubDataPermissionsDelete({ id: n?.id }).then((e) => {
|
|
97
|
+
e.success && (message.success("删除成功"), p());
|
|
98
|
+
}).finally(() => h(!1));
|
|
99
99
|
}
|
|
100
100
|
});
|
|
101
101
|
break;
|
|
102
102
|
}
|
|
103
103
|
}
|
|
104
|
-
return (
|
|
105
|
-
let
|
|
104
|
+
return (e, t) => {
|
|
105
|
+
let n = PlusCircleOutlined, r = Button, o = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
|
|
106
106
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
|
|
107
107
|
ref_key: "tableRef",
|
|
108
|
-
ref:
|
|
108
|
+
ref: s,
|
|
109
109
|
"row-key": "id",
|
|
110
|
-
request:
|
|
111
|
-
columns:
|
|
110
|
+
request: f,
|
|
111
|
+
columns: d,
|
|
112
112
|
"auto-height": "",
|
|
113
113
|
scroll: { x: 1e3 }
|
|
114
114
|
}, {
|
|
115
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
115
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(r, {
|
|
116
116
|
type: "primary",
|
|
117
|
-
onClick:
|
|
117
|
+
onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
|
|
118
118
|
}, {
|
|
119
|
-
default: withCtx(() => [createVNode(
|
|
119
|
+
default: withCtx(() => [createVNode(n), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
120
120
|
_: 1
|
|
121
|
-
})), [[
|
|
122
|
-
bodyCell: withCtx(({ column:
|
|
121
|
+
})), [[l, "data_permission_create"]])]),
|
|
122
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "type" ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(unref(dataPermissionTypeLabel)[t.type]), 1)) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
|
|
123
123
|
default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
|
|
124
124
|
class: "flex items-center hover:opacity-80",
|
|
125
|
-
onClick: (
|
|
126
|
-
}, [createVNode(
|
|
125
|
+
onClick: (e) => g(unref(ACTION).EDIT, t)
|
|
126
|
+
}, [createVNode(o, {
|
|
127
127
|
name: "edit",
|
|
128
128
|
class: "text-base"
|
|
129
|
-
}), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[
|
|
129
|
+
}), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[l, "data_permission_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
|
|
130
130
|
flex: "",
|
|
131
131
|
"items-center": "",
|
|
132
132
|
"text-red-500": "",
|
|
133
133
|
"hover:cursor-pointer": "",
|
|
134
134
|
"hover:text-red-500": "",
|
|
135
135
|
"hover:opacity-80": "",
|
|
136
|
-
onClick: (
|
|
137
|
-
}, [createVNode(
|
|
136
|
+
onClick: (e) => g(unref(ACTION).REMOVE, t)
|
|
137
|
+
}, [createVNode(o, {
|
|
138
138
|
name: "remove",
|
|
139
139
|
class: "text-base"
|
|
140
|
-
}), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[
|
|
140
|
+
}), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[l, "data_permission_delete"]])]),
|
|
141
141
|
_: 2
|
|
142
142
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
143
143
|
_: 1
|
|
144
144
|
}, 512), createVNode(createAndEditDataPermission_default, {
|
|
145
145
|
ref_key: "drawerRef",
|
|
146
|
-
ref:
|
|
147
|
-
onSubmit:
|
|
146
|
+
ref: u,
|
|
147
|
+
onSubmit: p
|
|
148
148
|
}, null, 512)]);
|
|
149
149
|
};
|
|
150
150
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as __commonJSMin } from "./chunk-
|
|
1
|
+
import { t as __commonJSMin } from "./chunk-DiMWNkAf.js";
|
|
2
2
|
var require_dayjs_min = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
3
3
|
(function(n, r) {
|
|
4
4
|
typeof e == "object" && t !== void 0 ? t.exports = r() : typeof define == "function" && define.amd ? define(r) : (n = typeof globalThis < "u" ? globalThis : n || self).dayjs = r();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { n as deleteDictTypeDeleteById, o as postDictTypePage } from "./index.js";
|
|
2
2
|
import { t as ACTION } from "./enum-D2UEJsrC.js";
|
|
3
|
-
import { t as drawerDictionary_default } from "./drawerDictionary-
|
|
3
|
+
import { t as drawerDictionary_default } from "./drawerDictionary-DYJTAZr6.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";
|
|
@@ -19,8 +19,8 @@ var _hoisted_1 = {
|
|
|
19
19
|
}, _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, _hoisted_6 = ["onClick"], _hoisted_7 = { class: "ml-4px" }, _hoisted_8 = ["onClick"], _hoisted_9 = { class: "ml-4px" }, dictionary_default = /* @__PURE__ */ defineComponent({
|
|
20
20
|
name: "Dictionary",
|
|
21
21
|
__name: "index",
|
|
22
|
-
setup(
|
|
23
|
-
let { auth:
|
|
22
|
+
setup(o) {
|
|
23
|
+
let { auth: u } = useAuth(), d = ref(), f = ref(), p = [
|
|
24
24
|
{
|
|
25
25
|
valueType: "a-input",
|
|
26
26
|
width: 50,
|
|
@@ -67,7 +67,7 @@ var _hoisted_1 = {
|
|
|
67
67
|
width: 240,
|
|
68
68
|
fixed: "right",
|
|
69
69
|
hideInTable() {
|
|
70
|
-
return !
|
|
70
|
+
return !u([
|
|
71
71
|
"dictionary_data",
|
|
72
72
|
"dictionary_edit",
|
|
73
73
|
"dictionary_remove"
|
|
@@ -75,103 +75,103 @@ var _hoisted_1 = {
|
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
];
|
|
78
|
-
async function
|
|
79
|
-
let { current:
|
|
80
|
-
currentPage:
|
|
81
|
-
pageSize:
|
|
82
|
-
name:
|
|
78
|
+
async function m(e) {
|
|
79
|
+
let { current: n, pageSize: r, searchName: i } = e, a = await postDictTypePage({
|
|
80
|
+
currentPage: n,
|
|
81
|
+
pageSize: r,
|
|
82
|
+
name: i,
|
|
83
83
|
doSearchTotal: !0
|
|
84
84
|
});
|
|
85
85
|
return {
|
|
86
|
-
success:
|
|
87
|
-
data:
|
|
88
|
-
total:
|
|
86
|
+
success: a.success,
|
|
87
|
+
data: a.data?.records ?? [],
|
|
88
|
+
total: a.data?.total ?? 0
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
|
-
let
|
|
92
|
-
function
|
|
93
|
-
switch (
|
|
91
|
+
let h = useRouter();
|
|
92
|
+
function g(t, r) {
|
|
93
|
+
switch (t) {
|
|
94
94
|
case ACTION.ADD:
|
|
95
|
-
|
|
95
|
+
f.value.open(t);
|
|
96
96
|
break;
|
|
97
97
|
case ACTION.EDIT:
|
|
98
|
-
|
|
98
|
+
f.value.open(t, r);
|
|
99
99
|
break;
|
|
100
100
|
case ACTION.REMOVE:
|
|
101
101
|
Modal.confirm({
|
|
102
102
|
title: "删除",
|
|
103
103
|
content: "确定要删除该类型吗?",
|
|
104
104
|
onOk() {
|
|
105
|
-
deleteDictTypeDeleteById({ id:
|
|
106
|
-
|
|
105
|
+
deleteDictTypeDeleteById({ id: r?.id }).then((e) => {
|
|
106
|
+
e.success && (message.success("删除成功"), _());
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
});
|
|
110
110
|
break;
|
|
111
111
|
case ACTION.ADDNEXT:
|
|
112
|
-
|
|
112
|
+
h.push({
|
|
113
113
|
name: "DictionaryItem",
|
|
114
|
-
params: { id: `${
|
|
115
|
-
query: { code: `${
|
|
114
|
+
params: { id: `${r?.id}` },
|
|
115
|
+
query: { code: `${r?.code}` }
|
|
116
116
|
});
|
|
117
117
|
break;
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
function
|
|
121
|
-
|
|
120
|
+
function _() {
|
|
121
|
+
d.value.reload();
|
|
122
122
|
}
|
|
123
|
-
return (
|
|
124
|
-
let
|
|
123
|
+
return (e, t) => {
|
|
124
|
+
let a = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
|
|
125
125
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
|
|
126
126
|
ref_key: "tableRef",
|
|
127
|
-
ref:
|
|
127
|
+
ref: d,
|
|
128
128
|
"row-key": "id",
|
|
129
|
-
request:
|
|
130
|
-
columns:
|
|
129
|
+
request: m,
|
|
130
|
+
columns: p,
|
|
131
131
|
"auto-height": "",
|
|
132
132
|
scroll: { x: 1040 }
|
|
133
133
|
}, {
|
|
134
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
134
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
|
|
135
135
|
type: "primary",
|
|
136
|
-
onClick:
|
|
136
|
+
onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
|
|
137
137
|
}, {
|
|
138
|
-
default: withCtx(() => [createVNode(
|
|
138
|
+
default: withCtx(() => [createVNode(a), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
139
139
|
_: 1
|
|
140
|
-
})), [[
|
|
141
|
-
bodyCell: withCtx(({ column:
|
|
140
|
+
})), [[l, "dictionary_add"]])]),
|
|
141
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "code" ? (openBlock(), createElementBlock("div", _hoisted_2, [createVNode(s, {
|
|
142
142
|
name: "icard",
|
|
143
143
|
class: "text-20px"
|
|
144
|
-
}), createElementVNode("span", _hoisted_3, toDisplayString(
|
|
144
|
+
}), createElementVNode("span", _hoisted_3, toDisplayString(t.code), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 1 }, {
|
|
145
145
|
default: withCtx(() => [
|
|
146
146
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
147
147
|
class: "flex items-center",
|
|
148
|
-
onClick: (
|
|
149
|
-
}, [createVNode(
|
|
148
|
+
onClick: (e) => g(unref(ACTION).ADDNEXT, t)
|
|
149
|
+
}, [createVNode(s, {
|
|
150
150
|
name: "zddata",
|
|
151
151
|
class: "text-20px"
|
|
152
|
-
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_4)), [[
|
|
152
|
+
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).ADDNEXT), 1)], 8, _hoisted_4)), [[l, "dictionary_data"]]),
|
|
153
153
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
154
154
|
class: "flex items-center",
|
|
155
|
-
onClick: (
|
|
156
|
-
}, [createVNode(
|
|
155
|
+
onClick: (e) => g(unref(ACTION).EDIT, t)
|
|
156
|
+
}, [createVNode(s, {
|
|
157
157
|
name: "edit",
|
|
158
158
|
class: "text-base"
|
|
159
|
-
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_6)), [[
|
|
159
|
+
}), createElementVNode("span", _hoisted_7, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_6)), [[l, "dictionary_edit"]]),
|
|
160
160
|
withDirectives((openBlock(), createElementBlock("span", {
|
|
161
161
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
162
|
-
onClick: (
|
|
163
|
-
}, [createVNode(
|
|
162
|
+
onClick: (e) => g(unref(ACTION).REMOVE, t)
|
|
163
|
+
}, [createVNode(s, {
|
|
164
164
|
name: "remove",
|
|
165
165
|
class: "text-base"
|
|
166
|
-
}), createElementVNode("span", _hoisted_9, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_8)), [[
|
|
166
|
+
}), createElementVNode("span", _hoisted_9, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_8)), [[l, "dictionary_remove"]])
|
|
167
167
|
]),
|
|
168
168
|
_: 2
|
|
169
169
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
170
170
|
_: 1
|
|
171
171
|
}, 512), createVNode(drawerDictionary_default, {
|
|
172
172
|
ref_key: "drawerDictionaryRef",
|
|
173
|
-
ref:
|
|
174
|
-
onSubmit:
|
|
173
|
+
ref: f,
|
|
174
|
+
onSubmit: t[1] ||= (e) => _()
|
|
175
175
|
}, null, 512)]);
|
|
176
176
|
};
|
|
177
177
|
}
|