@pubinfo-pr/module-rbac 0.189.2 → 0.197.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-oZAtd4wH.js → ComponentSelect-BTaxN2iT.js} +1 -1
- package/dist/{ComponentSelect-CZCdwf92.js → ComponentSelect-Bsyx8WZL.js} +1063 -1140
- package/dist/{DynamicRoutesForm-DsjExKfm.js → DynamicRoutesForm-DEWzomS7.js} +1 -1
- package/dist/{DynamicRoutesForm-CYFZYd3h.js → DynamicRoutesForm-uNihUvAS.js} +2 -2
- package/dist/HCheckList-B5Qk_HBI.js +2 -0
- package/dist/{HCheckList-dHyYM7wQ.js → HCheckList-DLBewmPw.js} +3 -3
- package/dist/HoverCard-69ZIOivd.js +2 -0
- package/dist/{HoverCard-DM23tFv4.js → HoverCard-BDFcxxvk.js} +3 -3
- package/dist/{IconSelect-BMDn5KYI.js → IconSelect-1pVgA_5l.js} +8 -10
- package/dist/{IconSelect-AR3QMGQ1.js → IconSelect-C5KTdyzv.js} +1 -1
- package/dist/{ImportExport-yiI4wd1A.js → ImportExport-CgvABcRb.js} +10 -14
- package/dist/ImportExport-D1e963eV.js +4 -0
- package/dist/{LayoutForm-CYBKLlSy.js → LayoutForm-Cp4bBrYl.js} +9 -14
- package/dist/LayoutForm-QFjwakyQ.js +4 -0
- package/dist/{MetaForm-LDukYEwP.js → MetaForm-DhSo6Ods.js} +40 -48
- package/dist/MetaForm-DmUbrFlb.js +4 -0
- package/dist/{OrgAndPosition-Dp33AYU-.js → OrgAndPosition-ClASobEv.js} +7 -10
- package/dist/OrgAndPosition-DoiGY5xb.js +2 -0
- package/dist/{ResourceEdit-C5Xqu79p.js → ResourceEdit-BHqmmcC7.js} +9 -11
- package/dist/ResourceEdit-Bznnmb9d.js +10 -0
- package/dist/{ResourceRelation-l2XXebMl.js → ResourceRelation-BIOzTOKA.js} +1 -1
- package/dist/{ResourceRelation-DZrmMWPf.js → ResourceRelation-ChEwIbWM.js} +2 -2
- package/dist/{ResourceRelation-DeoM1DDo.js → ResourceRelation-D_j898zp.js} +4 -5
- package/dist/{RoleSelector-ZmjR8m3i.js → RoleSelector-Cd6_RUsc.js} +23 -24
- package/dist/{TenantEdit-BDTS1Fca.js → TenantEdit-BOvXk7BZ.js} +6 -9
- package/dist/TenantEdit-BlMmL6q5.js +2 -0
- package/dist/{UserAuthorization-C1QIiu2F.js → UserAuthorization-DLeivbs7.js} +10 -13
- package/dist/{UserAuthorization-CotnhBvL.js → UserAuthorization-qGr1Sdat.js} +2 -2
- package/dist/UserEdit-CwfyqNWf.js +3 -0
- package/dist/{UserEdit-C3mqGMtl.js → UserEdit-YKS1FVW_.js} +5 -7
- package/dist/animation_item-BAILNZWQ.js +2 -0
- package/dist/{animation_item-DRuXSAya.js → animation_item-DrJJHbmN.js} +1 -1
- package/dist/api/modules/assist/gonggaofuwu.d.ts +7 -7
- package/dist/api/modules/assist/qunzujiekou.d.ts +7 -7
- package/dist/api/modules/assist/quyujiekou.d.ts +6 -6
- package/dist/api/modules/configData/heibaimingdanfuwu.d.ts +6 -6
- package/dist/api/modules/configData/xitongpeizhifuwu.d.ts +15 -15
- package/dist/api/modules/configData/zidifuwu.d.ts +11 -11
- package/dist/api/modules/log/caozuorizhifuwu.d.ts +3 -3
- package/dist/api/modules/log/denglurizhifuwu.d.ts +3 -3
- package/dist/api/modules/rbac/gangweijiekou.d.ts +7 -7
- package/dist/api/modules/rbac/jiaosejiekou.d.ts +8 -8
- package/dist/api/modules/rbac/pubJiaosezukongzhiqi.d.ts +8 -8
- package/dist/api/modules/rbac/shujuquanxianzhubiaokongzhiqi.d.ts +10 -10
- package/dist/api/modules/rbac/yonghujiekou.d.ts +16 -16
- package/dist/api/modules/rbac/yonghushoucangbiaojiekou.d.ts +6 -6
- package/dist/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.d.ts +5 -5
- package/dist/api/modules/rbac/ziyuandaorudaochuxiangguanjiekou.d.ts +7 -7
- package/dist/api/modules/rbac/ziyuanjiekou.d.ts +14 -14
- package/dist/api/modules/rbac/zuhuguanlijiekou.d.ts +6 -6
- package/dist/api/modules/rbac/zuzhijiaosebiaokongzhiqi.d.ts +5 -5
- package/dist/api/modules/rbac/zuzhijiekou.d.ts +10 -10
- package/dist/api/request.d.ts +1 -1
- package/dist/{blackWhiteList-Lyj2w8Xc.js → blackWhiteList-CNQltBqC.js} +59 -58
- package/dist/blackWhiteList.css +1 -1
- package/dist/breadcrumb_setting-DjBboFwU.js +108 -0
- package/dist/{chunk-BgHNfURc.js → chunk-DITB-ELH.js} +3 -5
- package/dist/components/DirectoryIcones/ComponentsIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/FolderIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ModuleIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/PackagesIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/SrcIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/ViewIcones.vue.d.ts +3 -2
- package/dist/components/DirectoryIcones/VueIcones.vue.d.ts +2 -1
- package/dist/components/GroupSelector/index.vue.d.ts +9 -8
- package/dist/components/JsonEditorModal/index.vue.d.ts +20 -0
- package/dist/components/OrgTree/index.vue.d.ts +6 -0
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +15 -18
- package/dist/components/OrgUserSelector/index.d.ts +4 -2
- package/dist/components/OrgUserSelector/provider.d.ts +1 -1
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +4 -6
- package/dist/components/ResourceIcones/Select.vue.d.ts +14 -22
- package/dist/components/ResourceSelector/hooks/useAppAndResource.d.ts +16 -7
- package/dist/components/ResourceSelector/index.vue.d.ts +13 -11
- package/dist/components/RoleSelector/RoleSearch.vue.d.ts +11 -9
- package/dist/components/RoleSelector/RoleSelector.vue.d.ts +11 -9
- package/dist/components/RoleSelector/TooltipLabel.vue.d.ts +3 -2
- package/dist/components/RoleSelector/useRole.d.ts +68 -4
- package/dist/composables/useLottie.d.ts +1 -1
- package/dist/context.d.ts +2 -2
- package/dist/{createAndEditDataPermission-ClTyi4Ri.js → createAndEditDataPermission-CChlLDUm.js} +1 -1
- package/dist/{createAndEditDataPermission-BwUEAkBP.js → createAndEditDataPermission-CaOBJgoV.js} +16 -23
- package/dist/{data-permission-DXJBqtlO.js → data-permission-ZRQ-Aoib.js} +3 -3
- package/dist/{dayjs.min-Bsh92e4H.js → dayjs.min-Dz51Rwu9.js} +1 -1
- package/dist/{dictionary-W_1X6Rbi.js → dictionary-CtGgtPfc.js} +1 -1
- package/dist/{drawerBlackWhiteList-83S8Dj3z.js → drawerBlackWhiteList-BqIDyn2Q.js} +1 -1
- package/dist/{drawerBlackWhiteList-B1oIt5J_.js → drawerBlackWhiteList-CkbZ_9PZ.js} +4 -6
- package/dist/{drawerDictionary-CQhYvl_i.js → drawerDictionary-D911w7pC.js} +1 -1
- package/dist/{drawerDictionary-D3yiuJSQ.js → drawerDictionary-dMHs-6Cw.js} +4 -6
- package/dist/{drawerDictionaryItem-DgMdlr4F.js → drawerDictionaryItem-CbTa_qL-.js} +4 -6
- package/dist/{drawerDictionaryItem-DPNqG0Ow.js → drawerDictionaryItem-DLUI5Yuc.js} +1 -1
- package/dist/{drawerGroup-i0awz56c.js → drawerGroup-CEEDMBg9.js} +1 -1
- package/dist/{drawerGroup-AZQsI1zw.js → drawerGroup-DEuiiDPP.js} +6 -9
- package/dist/{drawerOrganization-oZcaL3zo.js → drawerOrganization-CqEMD3gE.js} +4 -6
- package/dist/{drawerOrganization-BLSFSwWp.js → drawerOrganization-mks5NMd9.js} +1 -1
- package/dist/{drawerPosition-BQDRnJxo.js → drawerPosition-Bd0s7qze.js} +4 -6
- package/dist/drawerPosition-DwlTrlGA.js +2 -0
- package/dist/{drawerRegion-DGs1NFgB.js → drawerRegion-DUbQAZuV.js} +4 -6
- package/dist/drawerRegion-DwVzsZfT.js +2 -0
- package/dist/{drawerRole-IoKzu2MV.js → drawerRole-BNrbcSmr.js} +1 -1
- package/dist/drawerRole-BxUIekjh.js +3 -0
- package/dist/drawerRole-CyA2oFht.js +4 -0
- package/dist/{drawerRole-D74a8YGf.js → drawerRole-D5X7oHB_.js} +7 -10
- package/dist/{drawerRole-CI92ltBG.js → drawerRole-DNDyOvXw.js} +7 -10
- package/dist/{drawerRole-BVGZbMiQ.js → drawerRole-Dv61PBZR.js} +6 -9
- package/dist/{group-CFfGOevD.js → group-BbkZjv5e.js} +3 -3
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1026 -990
- package/dist/interface.d.ts +2 -2
- package/dist/{itemlist-B6JOJttB.js → itemlist-By-FV6pN.js} +1 -1
- package/dist/{layout_setting-B_bXRf0W.js → layout_setting-BUAgQ1Bk.js} +3 -3
- package/dist/{loginHistoryDetail-DRBKf4C8.js → loginHistoryDetail-C7GT2yME.js} +2 -2
- package/dist/{loginHistoryDetail-BvdsnTFV.js → loginHistoryDetail-CkH5UUGU.js} +1 -1
- package/dist/{login_history-glJa2J1x.js → login_history-D08W00Qu.js} +3 -3
- package/dist/menu_setting-BUADDjYJ.js +155 -0
- package/dist/{operateHistoryDetail-B3es707H.js → operateHistoryDetail-BaNJRfwy.js} +2 -2
- package/dist/{operateHistoryDetail-CxD6LUWE.js → operateHistoryDetail-CeVPJzD6.js} +1 -1
- package/dist/{operate_history-YpetdRIT.js → operate_history-kJwIuPg2.js} +3 -3
- package/dist/{organization-B0yFeY4J.js → organization-2bEjUTJD.js} +1631 -1647
- package/dist/other_setting-COpfREkp.js +213 -0
- package/dist/page_animation_setting-BcxbEvNQ.js +108 -0
- package/dist/{page_w_setting-CBvXCWRR.js → page_w_setting-CD_HtSUv.js} +2 -2
- package/dist/{position-Qh2Cl1Hq.js → position-CLpbgKGj.js} +1 -1
- package/dist/{region-r_QWszyO.js → region-Dd9pt_Si.js} +1 -1
- package/dist/{resource-DKpLkyJH.js → resource-DLj7QoGf.js} +9 -9
- package/dist/{role-Pm5bxxjk.js → role-JGtvRObt.js} +2 -2
- package/dist/{role_group-D86PNA85.js → role_group-CKOb_m63.js} +2 -2
- package/dist/routes/index.d.ts +2 -2
- package/dist/routes/modules/authority.manage.menu.d.ts +1 -1
- package/dist/routes/modules/log.manage.menu.d.ts +1 -1
- package/dist/routes/modules/safe.manage.menu.d.ts +1 -1
- package/dist/routes/modules/stylesetting.manage.menu.d.ts +1 -1
- package/dist/routes/modules/system.manage.menu.d.ts +1 -1
- package/dist/{safe_setting-CWQngC4j.js → safe_setting-G_ZP-jWQ.js} +7 -10
- package/dist/setItem-Cke-0D4q.js +4 -0
- package/dist/{setItem-C5euZYfz.js → setItem-kPUYTKCP.js} +13 -13
- package/dist/stores/view.d.ts +127 -22
- package/dist/tabbar_setting-n1Id5cS0.js +139 -0
- package/dist/{tenant-DTjNtlwf.js → tenant-Ol7Zskue.js} +3 -3
- package/dist/{theme_setting-j1mXqCfa.js → theme_setting-vhNDLlkc.js} +4 -4
- package/dist/{toolbar_setting-BbJEvTPu.js → toolbar_setting-Dqrvui07.js} +20 -20
- package/dist/{user-BFOmEjwR.js → user-DvCyUhZW.js} +6 -6
- package/dist/utils/routeSystem.d.ts +133 -28
- package/dist/views/blackWhiteList/components/drawerBlackWhiteList.vue.d.ts +5 -6
- package/dist/views/blackWhiteList/index.vue.d.ts +2 -1534
- package/dist/views/breadcrumb_setting/animationData.d.ts +6 -6
- package/dist/views/breadcrumb_setting/index.vue.d.ts +2 -1
- package/dist/views/components/HCheckList.vue.d.ts +4 -3
- package/dist/views/components/animation_item.vue.d.ts +4 -5
- package/dist/views/components/setItem.vue.d.ts +4 -32
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +5 -167
- package/dist/views/data-permission/index.vue.d.ts +2 -1690
- package/dist/views/dictionary/components/drawerDictionary.vue.d.ts +5 -6
- package/dist/views/dictionary/components/drawerDictionaryItem.vue.d.ts +5 -6
- package/dist/views/dictionary/index.vue.d.ts +2 -1531
- package/dist/views/dictionary/itemlist.vue.d.ts +2 -1531
- package/dist/views/group/components/drawerGroup.vue.d.ts +5 -6
- package/dist/views/group/index.vue.d.ts +2 -1531
- package/dist/views/layout_setting/index.vue.d.ts +2 -1
- package/dist/views/log_center/components/browserType.vue.d.ts +4 -3
- package/dist/views/log_center/components/loginHistoryDetail.vue.d.ts +5 -4
- package/dist/views/log_center/components/operateHistoryDetail.vue.d.ts +5 -4
- package/dist/views/log_center/login_history.vue.d.ts +2 -1510
- package/dist/views/log_center/operate_history.vue.d.ts +2 -1510
- package/dist/views/menu_setting/animationData.d.ts +12 -12
- package/dist/views/menu_setting/index.vue.d.ts +2 -1
- package/dist/views/organization/components/drawerOrganization.vue.d.ts +5 -6
- package/dist/views/organization/components/drawerRole.vue.d.ts +5 -39
- package/dist/views/organization/index.vue.d.ts +2 -80
- package/dist/views/other_setting/animationData.d.ts +6 -6
- package/dist/views/other_setting/index.vue.d.ts +2 -1
- package/dist/views/other_setting/interface.d.ts +1 -1
- package/dist/views/page_animation_setting/animationData.d.ts +10 -10
- package/dist/views/page_animation_setting/index.vue.d.ts +2 -1
- package/dist/views/page_w_setting/index.vue.d.ts +2 -1
- package/dist/views/position/components/drawerPosition.vue.d.ts +5 -6
- package/dist/views/position/index.vue.d.ts +2 -1531
- package/dist/views/region/components/drawerRegion.vue.d.ts +5 -6
- package/dist/views/region/index.vue.d.ts +2 -1532
- package/dist/views/resource/components/ComponentSelect.vue.d.ts +5 -6
- package/dist/views/resource/components/DynamicRoutesForm.vue.d.ts +8 -6
- package/dist/views/resource/components/HoverCard.vue.d.ts +9 -12
- package/dist/views/resource/components/IconSelect.vue.d.ts +6 -5
- package/dist/views/resource/components/ImportExport.vue.d.ts +6 -5
- package/dist/views/resource/components/LayoutForm.vue.d.ts +6 -5
- package/dist/views/resource/components/MetaForm.vue.d.ts +6 -5
- package/dist/views/resource/components/ResourceEdit.vue.d.ts +6 -7
- package/dist/views/resource/components/RoleRelation.vue.d.ts +4 -3
- package/dist/views/resource/hooks/useLayoutForm.d.ts +5 -4
- package/dist/views/resource/hooks/useMetaForm.d.ts +12 -3
- package/dist/views/resource/index.vue.d.ts +2 -1570
- package/dist/views/resource/interface.d.ts +1 -1
- package/dist/views/role/components/ResourceRelation.vue.d.ts +4 -1512
- package/dist/views/role/components/drawerRole.vue.d.ts +5 -43
- package/dist/views/role/index.vue.d.ts +2 -3089
- package/dist/views/role_group/components/drawerRole.vue.d.ts +5 -39
- package/dist/views/role_group/index.vue.d.ts +2 -1564
- package/dist/views/safe_setting/index.vue.d.ts +2 -3
- package/dist/views/tabbar_setting/animationData.d.ts +10 -10
- package/dist/views/tabbar_setting/index.vue.d.ts +2 -1
- package/dist/views/tenant/components/TenantEdit.vue.d.ts +6 -8
- package/dist/views/tenant/index.vue.d.ts +2 -1533
- package/dist/views/theme_setting/index.vue.d.ts +2 -1
- package/dist/views/toolbar_setting/animationData.d.ts +14 -14
- package/dist/views/toolbar_setting/index.vue.d.ts +2 -1
- package/dist/views/user/components/OrgAndPosition.vue.d.ts +8 -7
- package/dist/views/user/components/UserAuthorization.vue.d.ts +5 -39
- package/dist/views/user/components/UserEdit.vue.d.ts +6 -7
- package/dist/views/user/index.vue.d.ts +2 -1593
- package/dist/views/watermark_setting/animationData.d.ts +2 -2
- package/dist/views/watermark_setting/index.vue.d.ts +2 -30
- package/dist/{watermark_setting-B1FGbTop.js → watermark_setting-CvakGNc4.js} +11 -14
- package/package.json +16 -16
- package/src/views/blackWhiteList/index.vue +2 -1
- package/dist/HCheckList-B6K018cG.js +0 -2
- package/dist/HoverCard-CfI-SLTb.js +0 -2
- package/dist/ImportExport-Ch2KgeOH.js +0 -4
- package/dist/LayoutForm-Qwrxmybp.js +0 -4
- package/dist/MetaForm-BswxCCuV.js +0 -4
- package/dist/OrgAndPosition-CyoItQuu.js +0 -2
- package/dist/ResourceEdit-DlnTxHoF.js +0 -10
- package/dist/TenantEdit-BOMpr4z8.js +0 -2
- package/dist/UserEdit-CJYVcFZw.js +0 -3
- package/dist/animation_item-DVbSAJ9x.js +0 -2
- package/dist/breadcrumb_setting-DmZAQdwS.js +0 -108
- package/dist/drawerPosition-Dv6sl-Lf.js +0 -2
- package/dist/drawerRegion-5FtwY5Rd.js +0 -2
- package/dist/drawerRole-B7LqcyGf.js +0 -4
- package/dist/drawerRole-Bq08YzR7.js +0 -3
- package/dist/menu_setting-CuMAvx0k.js +0 -155
- package/dist/other_setting-vOU1Lnfp.js +0 -215
- package/dist/page_animation_setting-DSAKNmb1.js +0 -108
- package/dist/routeSystem-DXMoWhFo.js +0 -2
- package/dist/setItem-BxDHeWlp.js +0 -4
- package/dist/tabbar_setting-D7enWjw4.js +0 -139
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Lt as useToggle, d as getBlackWhiteListDeleteById, h as
|
|
2
|
-
import { t as drawerBlackWhiteList_default } from "./drawerBlackWhiteList-
|
|
1
|
+
import { Lt as useToggle, d as getBlackWhiteListDeleteById, h as _plugin_vue_export_helper_default, m as postBlackWhiteListUpdateBlackWhiteList, p as postBlackWhiteListGetBlackWhiteListPageList } from "./index.js";
|
|
2
|
+
import { t as drawerBlackWhiteList_default } from "./drawerBlackWhiteList-CkbZ_9PZ.js";
|
|
3
3
|
import { PubinfoIcon, useAuth } from "pubinfo-pr";
|
|
4
4
|
import { computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, normalizeClass, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
5
5
|
import { PlusCircleOutlined } from "@ant-design/icons-vue";
|
|
@@ -11,21 +11,13 @@ import './blackWhiteList.css';let ACTION = /* @__PURE__ */ function(e) {
|
|
|
11
11
|
return e.ADD = "新增", e.EDIT = "编辑", e.REMOVE = "删除", e.ENABLE = "启用", e.DISABLE = "停用", e;
|
|
12
12
|
}({});
|
|
13
13
|
var _hoisted_1 = {
|
|
14
|
-
"w-full": "",
|
|
15
|
-
"h-full": "",
|
|
16
|
-
"py-10px": "",
|
|
17
|
-
"px-10px": "",
|
|
18
|
-
flex: "",
|
|
19
|
-
"flex-col": "",
|
|
20
|
-
class: "page-black-white-list"
|
|
21
|
-
}, _hoisted_2 = {
|
|
22
14
|
key: 0,
|
|
23
15
|
class: "flex items-center"
|
|
24
|
-
},
|
|
16
|
+
}, _hoisted_2 = { class: "ml-4px" }, _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, _hoisted_7 = ["onClick"], _hoisted_8 = { class: "ml-4px" }, _hoisted_9 = ["onClick"], _hoisted_10 = { class: "ml-4px" }, blackWhiteList_default = /* @__PURE__ */ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
25
17
|
name: "BlackWhiteList",
|
|
26
18
|
__name: "index",
|
|
27
|
-
setup(
|
|
28
|
-
let F =
|
|
19
|
+
setup(D) {
|
|
20
|
+
let P = useRoute(), F = computed(() => P.path.includes("blacklist")), I = computed(() => F.value ? 0 : 1), L = computed(() => F.value ? "blacklist" : "whitelist"), R = computed(() => `${L.value}_add`), z = computed(() => `${L.value}_edit`), B = computed(() => `${L.value}_delete`), V = computed(() => `${L.value}_enable`), H = computed(() => `${L.value}_disable`), { auth: U } = useAuth(), W = ref(), G = ref(), K = [
|
|
29
21
|
{
|
|
30
22
|
valueType: "a-input",
|
|
31
23
|
minWidth: 60,
|
|
@@ -80,31 +72,31 @@ var _hoisted_1 = {
|
|
|
80
72
|
}
|
|
81
73
|
];
|
|
82
74
|
async function q(e) {
|
|
83
|
-
let { current:
|
|
84
|
-
ip:
|
|
85
|
-
pageSize:
|
|
86
|
-
currentPage:
|
|
75
|
+
let { current: E, pageSize: D, ip: O, enable: A } = e, j = {
|
|
76
|
+
ip: O,
|
|
77
|
+
pageSize: D,
|
|
78
|
+
currentPage: E,
|
|
87
79
|
doSearchTotal: !0,
|
|
88
80
|
type: I.value
|
|
89
81
|
};
|
|
90
|
-
|
|
91
|
-
let
|
|
82
|
+
A !== void 0 && (j.enable = A);
|
|
83
|
+
let M = await postBlackWhiteListGetBlackWhiteListPageList(j);
|
|
92
84
|
return {
|
|
93
|
-
success:
|
|
94
|
-
data:
|
|
95
|
-
total:
|
|
85
|
+
success: M.success,
|
|
86
|
+
data: M.data?.records ?? [],
|
|
87
|
+
total: M.data?.total ?? 0
|
|
96
88
|
};
|
|
97
89
|
}
|
|
98
90
|
function J() {
|
|
99
91
|
W.value.reload();
|
|
100
92
|
}
|
|
101
93
|
let [Y, X] = useToggle(!1);
|
|
102
|
-
function Z(e,
|
|
94
|
+
function Z(e, D) {
|
|
103
95
|
Modal.confirm({
|
|
104
96
|
title: "删除",
|
|
105
97
|
content: `确定要删除该条${e}数据吗?`,
|
|
106
98
|
async onOk() {
|
|
107
|
-
X(!0), getBlackWhiteListDeleteById({ id:
|
|
99
|
+
X(!0), getBlackWhiteListDeleteById({ id: D?.id }).then((e) => {
|
|
108
100
|
e.success && (message.success("删除成功"), J());
|
|
109
101
|
}).finally(() => X(!1));
|
|
110
102
|
}
|
|
@@ -114,35 +106,44 @@ var _hoisted_1 = {
|
|
|
114
106
|
X(!0), postBlackWhiteListUpdateBlackWhiteList({
|
|
115
107
|
id: e?.id,
|
|
116
108
|
enable: !e?.enable
|
|
117
|
-
}).then((
|
|
118
|
-
if (
|
|
119
|
-
let
|
|
120
|
-
|
|
109
|
+
}).then((E) => {
|
|
110
|
+
if (E.success) {
|
|
111
|
+
let E = "";
|
|
112
|
+
E = e?.enable ? "停用成功!" : "启用成功!", message.success(E), J();
|
|
121
113
|
}
|
|
122
114
|
}).finally(() => X(!1));
|
|
123
115
|
}
|
|
124
|
-
function $(e,
|
|
116
|
+
function $(e, E) {
|
|
125
117
|
if (Y.value) return;
|
|
126
|
-
let
|
|
127
|
-
switch (
|
|
118
|
+
let D = "";
|
|
119
|
+
switch (D = F.value ? "黑名单" : "白名单", e) {
|
|
128
120
|
case ACTION.ADD:
|
|
129
|
-
G.value.open(e +
|
|
121
|
+
G.value.open(e + D, !1);
|
|
130
122
|
break;
|
|
131
123
|
case ACTION.EDIT:
|
|
132
|
-
G.value.open(e +
|
|
124
|
+
G.value.open(e + D, !0, E);
|
|
133
125
|
break;
|
|
134
126
|
case ACTION.REMOVE:
|
|
135
|
-
Z(
|
|
127
|
+
Z(D, E);
|
|
136
128
|
break;
|
|
137
129
|
case ACTION.ENABLE:
|
|
138
130
|
case ACTION.DISABLE:
|
|
139
|
-
Q(
|
|
131
|
+
Q(E);
|
|
140
132
|
break;
|
|
141
133
|
}
|
|
142
134
|
}
|
|
143
|
-
return (e,
|
|
144
|
-
let
|
|
145
|
-
return openBlock(), createElementBlock("div",
|
|
135
|
+
return (e, E) => {
|
|
136
|
+
let D = PlusCircleOutlined, O = Button, k = PubinfoIcon, M = Space$1, N = resolveDirective("auth");
|
|
137
|
+
return openBlock(), createElementBlock("div", {
|
|
138
|
+
key: unref(I),
|
|
139
|
+
"w-full": "",
|
|
140
|
+
"h-full": "",
|
|
141
|
+
"py-10px": "",
|
|
142
|
+
"px-10px": "",
|
|
143
|
+
flex: "",
|
|
144
|
+
"flex-col": "",
|
|
145
|
+
class: "page-black-white-list"
|
|
146
|
+
}, [createVNode(unref(ProTable), {
|
|
146
147
|
ref_key: "tableRef",
|
|
147
148
|
ref: W,
|
|
148
149
|
"row-key": "id",
|
|
@@ -151,22 +152,22 @@ var _hoisted_1 = {
|
|
|
151
152
|
"auto-height": "",
|
|
152
153
|
scroll: { x: 1e3 }
|
|
153
154
|
}, {
|
|
154
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
155
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(O, {
|
|
155
156
|
type: "primary",
|
|
156
|
-
onClick:
|
|
157
|
+
onClick: E[0] ||= (e) => $(unref(ACTION).ADD)
|
|
157
158
|
}, {
|
|
158
|
-
default: withCtx(() => [createVNode(
|
|
159
|
+
default: withCtx(() => [createVNode(D), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
159
160
|
_: 1
|
|
160
|
-
})), [[
|
|
161
|
-
bodyCell: withCtx(({ column: e, record:
|
|
161
|
+
})), [[N, unref(R)]])]),
|
|
162
|
+
bodyCell: withCtx(({ column: e, record: E }) => [e.dataIndex === "enable" ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("i", { class: normalizeClass(["status-mark", [{ active: E.enable }]]) }, null, 2), createElementVNode("span", _hoisted_2, toDisplayString(E.enable ? "启用" : "停用"), 1)])) : createCommentVNode("", !0), e.dataIndex === "action" ? (openBlock(), createBlock(M, { key: 1 }, {
|
|
162
163
|
default: withCtx(() => [
|
|
163
164
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
164
165
|
class: "flex items-center hover:opacity-80",
|
|
165
|
-
onClick: (e) => $(unref(ACTION).EDIT,
|
|
166
|
-
}, [createVNode(
|
|
166
|
+
onClick: (e) => $(unref(ACTION).EDIT, E)
|
|
167
|
+
}, [createVNode(k, {
|
|
167
168
|
name: "edit",
|
|
168
169
|
class: "text-base"
|
|
169
|
-
}), createElementVNode("span",
|
|
170
|
+
}), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[N, unref(z)]]),
|
|
170
171
|
withDirectives((openBlock(), createElementBlock("span", {
|
|
171
172
|
flex: "",
|
|
172
173
|
"items-center": "",
|
|
@@ -174,26 +175,26 @@ var _hoisted_1 = {
|
|
|
174
175
|
"hover:cursor-pointer": "",
|
|
175
176
|
"hover:text-red-500": "",
|
|
176
177
|
"hover:opacity-80": "",
|
|
177
|
-
onClick: (e) => $(unref(ACTION).REMOVE,
|
|
178
|
-
}, [createVNode(
|
|
178
|
+
onClick: (e) => $(unref(ACTION).REMOVE, E)
|
|
179
|
+
}, [createVNode(k, {
|
|
179
180
|
name: "remove",
|
|
180
181
|
class: "text-base"
|
|
181
|
-
}), createElementVNode("span",
|
|
182
|
-
|
|
182
|
+
}), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[N, unref(B)]]),
|
|
183
|
+
E.enable ? withDirectives((openBlock(), createElementBlock("a", {
|
|
183
184
|
key: 0,
|
|
184
185
|
class: "flex items-center",
|
|
185
|
-
onClick: (e) => $(unref(ACTION).DISABLE,
|
|
186
|
-
}, [createVNode(
|
|
186
|
+
onClick: (e) => $(unref(ACTION).DISABLE, E)
|
|
187
|
+
}, [createVNode(k, {
|
|
187
188
|
name: "blacklist-disable",
|
|
188
189
|
class: "text-20px"
|
|
189
|
-
}), createElementVNode("span",
|
|
190
|
+
}), createElementVNode("span", _hoisted_8, toDisplayString(unref(ACTION).DISABLE), 1)], 8, _hoisted_7)), [[N, unref(H)]]) : withDirectives((openBlock(), createElementBlock("a", {
|
|
190
191
|
key: 1,
|
|
191
192
|
class: "flex items-center",
|
|
192
|
-
onClick: (e) => $(unref(ACTION).ENABLE,
|
|
193
|
-
}, [createVNode(
|
|
193
|
+
onClick: (e) => $(unref(ACTION).ENABLE, E)
|
|
194
|
+
}, [createVNode(k, {
|
|
194
195
|
name: "blacklist-enable",
|
|
195
196
|
class: "text-20px"
|
|
196
|
-
}), createElementVNode("span",
|
|
197
|
+
}), createElementVNode("span", _hoisted_10, toDisplayString(unref(ACTION).ENABLE), 1)], 8, _hoisted_9)), [[N, unref(V)]])
|
|
197
198
|
]),
|
|
198
199
|
_: 2
|
|
199
200
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
@@ -202,9 +203,9 @@ var _hoisted_1 = {
|
|
|
202
203
|
ref_key: "drawerRef",
|
|
203
204
|
ref: G,
|
|
204
205
|
type: unref(I),
|
|
205
|
-
onSubmit:
|
|
206
|
+
onSubmit: E[1] ||= (e) => J()
|
|
206
207
|
}, null, 8, ["type"])]);
|
|
207
208
|
};
|
|
208
209
|
}
|
|
209
|
-
}), [["__scopeId", "data-v-
|
|
210
|
+
}), [["__scopeId", "data-v-f7d838c2"]]);
|
|
210
211
|
export { blackWhiteList_default as default };
|
package/dist/blackWhiteList.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.page-black-white-list[data-v-
|
|
1
|
+
.page-black-white-list[data-v-f7d838c2] .ant-card.pro-table{border-top-left-radius:0;border-top-right-radius:0}.page-black-white-list .status-mark[data-v-f7d838c2]{--un-bg-opacity:1;background-color:rgb(174 174 174/var(--un-bg-opacity));border-radius:50%;width:.5rem;height:.5rem;margin-right:.25rem;display:inline-block}.page-black-white-list .status-mark.active[data-v-f7d838c2]{background:#01d689}
|