@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,7 +1,7 @@
|
|
|
1
1
|
import { _t as postRbacRoleRolePage, mt as getRbacRoleRoleDelete } from "./index.js";
|
|
2
|
-
import "./useAppAndResource-
|
|
3
|
-
import { t as ResourceRelation_default } from "./ResourceRelation-
|
|
4
|
-
import {
|
|
2
|
+
import "./useAppAndResource-B7FmNfKG.js";
|
|
3
|
+
import { t as ResourceRelation_default } from "./ResourceRelation-roz0a8Td.js";
|
|
4
|
+
import { i as kjOptions, r as ACTION, t as drawerRole_default } from "./drawerRole-DK6DrinO.js";
|
|
5
5
|
import { PubinfoIcon, useAuth } from "pubinfo";
|
|
6
6
|
import { createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, openBlock, ref, resolveDirective, toDisplayString, unref, withCtx, withDirectives } from "vue";
|
|
7
7
|
import { PlusCircleOutlined } from "@ant-design/icons-vue";
|
|
@@ -16,24 +16,24 @@ var _hoisted_1 = {
|
|
|
16
16
|
}, _hoisted_2 = ["onClick"], _hoisted_3 = ["onClick"], _hoisted_4 = { class: "ml-4px" }, _hoisted_5 = ["onClick"], _hoisted_6 = { class: "ml-4px" }, role_default = /* @__PURE__ */ defineComponent({
|
|
17
17
|
name: "Role",
|
|
18
18
|
__name: "index",
|
|
19
|
-
setup(
|
|
20
|
-
let { auth:
|
|
21
|
-
function
|
|
22
|
-
|
|
19
|
+
setup(s) {
|
|
20
|
+
let { auth: u } = useAuth(), d = ref(), f = ref();
|
|
21
|
+
function p() {
|
|
22
|
+
d.value.reload();
|
|
23
23
|
}
|
|
24
|
-
async function
|
|
25
|
-
let { current:
|
|
26
|
-
currentPage:
|
|
27
|
-
pageSize:
|
|
28
|
-
...
|
|
24
|
+
async function m(t) {
|
|
25
|
+
let { current: n, pageSize: r, ...i } = t, a = await postRbacRoleRolePage({
|
|
26
|
+
currentPage: n,
|
|
27
|
+
pageSize: r,
|
|
28
|
+
...i
|
|
29
29
|
});
|
|
30
30
|
return {
|
|
31
|
-
success:
|
|
32
|
-
data:
|
|
33
|
-
total:
|
|
31
|
+
success: a.success,
|
|
32
|
+
data: a.data?.records ?? [],
|
|
33
|
+
total: a.data?.total ?? 0
|
|
34
34
|
};
|
|
35
35
|
}
|
|
36
|
-
let
|
|
36
|
+
let h = [
|
|
37
37
|
{
|
|
38
38
|
valueType: "a-input",
|
|
39
39
|
bind: "value",
|
|
@@ -51,7 +51,7 @@ var _hoisted_1 = {
|
|
|
51
51
|
minWidth: 80,
|
|
52
52
|
title: "可见范围",
|
|
53
53
|
dataIndex: "viewScope",
|
|
54
|
-
customRender: ({ text:
|
|
54
|
+
customRender: ({ text: e }) => kjOptions.find((t) => t.value === e)?.label
|
|
55
55
|
},
|
|
56
56
|
{
|
|
57
57
|
hideInSearch: !0,
|
|
@@ -82,7 +82,7 @@ var _hoisted_1 = {
|
|
|
82
82
|
minWidth: 80,
|
|
83
83
|
title: "角色状态",
|
|
84
84
|
dataIndex: "enable",
|
|
85
|
-
customRender: ({ text:
|
|
85
|
+
customRender: ({ text: e }) => e ? createVNode(Badge, {
|
|
86
86
|
status: "success",
|
|
87
87
|
text: "正常"
|
|
88
88
|
}, null) : createVNode(Badge, {
|
|
@@ -97,80 +97,80 @@ var _hoisted_1 = {
|
|
|
97
97
|
dataIndex: "action",
|
|
98
98
|
fixed: "right",
|
|
99
99
|
hideInTable() {
|
|
100
|
-
return !
|
|
100
|
+
return !u([
|
|
101
101
|
"role_resource_relation",
|
|
102
102
|
"role_edit",
|
|
103
103
|
"role_remove"
|
|
104
104
|
]);
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
|
-
],
|
|
108
|
-
function
|
|
109
|
-
switch (
|
|
107
|
+
], g = ref();
|
|
108
|
+
function _(e, n) {
|
|
109
|
+
switch (e) {
|
|
110
110
|
case ACTION.RESOURCE_RELATION:
|
|
111
|
-
|
|
111
|
+
g.value.open(n);
|
|
112
112
|
break;
|
|
113
113
|
case ACTION.EDIT:
|
|
114
|
-
|
|
114
|
+
f.value.open(e, n);
|
|
115
115
|
break;
|
|
116
116
|
case ACTION.ADD:
|
|
117
|
-
|
|
117
|
+
f.value.open(e);
|
|
118
118
|
break;
|
|
119
119
|
case ACTION.REMOVE:
|
|
120
120
|
Modal.confirm({
|
|
121
121
|
title: "删除",
|
|
122
122
|
content: "确定要删除该角色吗?",
|
|
123
123
|
onOk() {
|
|
124
|
-
getRbacRoleRoleDelete({ id:
|
|
125
|
-
|
|
124
|
+
getRbacRoleRoleDelete({ id: n?.id }).then((e) => {
|
|
125
|
+
e.success && (message.success("删除成功"), p());
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
128
|
});
|
|
129
129
|
break;
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
|
-
return (
|
|
133
|
-
let
|
|
132
|
+
return (e, t) => {
|
|
133
|
+
let r = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
|
|
134
134
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
135
135
|
createVNode(unref(ProTable), {
|
|
136
136
|
ref_key: "tableRef",
|
|
137
|
-
ref:
|
|
137
|
+
ref: d,
|
|
138
138
|
"row-key": "id",
|
|
139
|
-
request:
|
|
140
|
-
columns:
|
|
139
|
+
request: m,
|
|
140
|
+
columns: h,
|
|
141
141
|
"auto-height": "",
|
|
142
142
|
scroll: { x: 1100 }
|
|
143
143
|
}, {
|
|
144
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
144
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
|
|
145
145
|
type: "primary",
|
|
146
|
-
onClick:
|
|
146
|
+
onClick: t[0] ||= (e) => _(unref(ACTION).ADD)
|
|
147
147
|
}, {
|
|
148
|
-
default: withCtx(() => [createVNode(
|
|
148
|
+
default: withCtx(() => [createVNode(r), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
149
149
|
_: 1
|
|
150
|
-
})), [[
|
|
151
|
-
bodyCell: withCtx(({ column:
|
|
150
|
+
})), [[l, "role_add"]])]),
|
|
151
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 0 }, {
|
|
152
152
|
default: withCtx(() => [
|
|
153
153
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
154
154
|
class: "flex items-center",
|
|
155
|
-
onClick: (
|
|
156
|
-
}, [createVNode(
|
|
155
|
+
onClick: (e) => _(unref(ACTION).RESOURCE_RELATION, t)
|
|
156
|
+
}, [createVNode(s, {
|
|
157
157
|
name: "view",
|
|
158
158
|
class: "mr-1 text-base"
|
|
159
|
-
}), createElementVNode("span", null, toDisplayString(unref(ACTION).RESOURCE_RELATION), 1)], 8, _hoisted_2)), [[
|
|
159
|
+
}), createElementVNode("span", null, toDisplayString(unref(ACTION).RESOURCE_RELATION), 1)], 8, _hoisted_2)), [[l, "resource_role_relation"]]),
|
|
160
160
|
withDirectives((openBlock(), createElementBlock("a", {
|
|
161
161
|
class: "flex items-center",
|
|
162
|
-
onClick: (
|
|
163
|
-
}, [createVNode(
|
|
162
|
+
onClick: (e) => _(unref(ACTION).EDIT, t)
|
|
163
|
+
}, [createVNode(s, {
|
|
164
164
|
name: "edit",
|
|
165
165
|
class: "text-base"
|
|
166
|
-
}), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[
|
|
166
|
+
}), createElementVNode("span", _hoisted_4, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_3)), [[l, "role_edit"]]),
|
|
167
167
|
withDirectives((openBlock(), createElementBlock("span", {
|
|
168
168
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
169
|
-
onClick: (
|
|
170
|
-
}, [createVNode(
|
|
169
|
+
onClick: (e) => _(unref(ACTION).REMOVE, t)
|
|
170
|
+
}, [createVNode(s, {
|
|
171
171
|
name: "remove",
|
|
172
172
|
class: "text-base"
|
|
173
|
-
}), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[
|
|
173
|
+
}), createElementVNode("span", _hoisted_6, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_5)), [[l, "role_remove"]])
|
|
174
174
|
]),
|
|
175
175
|
_: 2
|
|
176
176
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
@@ -178,12 +178,12 @@ var _hoisted_1 = {
|
|
|
178
178
|
}, 512),
|
|
179
179
|
createVNode(drawerRole_default, {
|
|
180
180
|
ref_key: "drawerRoleRef",
|
|
181
|
-
ref:
|
|
182
|
-
onSubmit:
|
|
181
|
+
ref: f,
|
|
182
|
+
onSubmit: t[1] ||= (e) => p()
|
|
183
183
|
}, null, 512),
|
|
184
184
|
createVNode(ResourceRelation_default, {
|
|
185
185
|
ref_key: "relationRef",
|
|
186
|
-
ref:
|
|
186
|
+
ref: g
|
|
187
187
|
}, null, 512)
|
|
188
188
|
]);
|
|
189
189
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { st as deleteRbacPubRoleGroupDelete, ut as postRbacPubRoleGroupPageQuery } from "./index.js";
|
|
2
|
-
import "./RoleSelector-
|
|
3
|
-
import {
|
|
2
|
+
import "./RoleSelector-gkar_UGG.js";
|
|
3
|
+
import { r as ACTION, t as drawerRole_default } from "./drawerRole-DrzMHL0O.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,24 +15,24 @@ var _hoisted_1 = {
|
|
|
15
15
|
}, _hoisted_2 = ["onClick"], _hoisted_3 = { class: "ml-4px" }, _hoisted_4 = ["onClick"], _hoisted_5 = { class: "ml-4px" }, role_group_default = /* @__PURE__ */ defineComponent({
|
|
16
16
|
name: "Role",
|
|
17
17
|
__name: "index",
|
|
18
|
-
setup(
|
|
19
|
-
let { auth:
|
|
20
|
-
function
|
|
21
|
-
|
|
18
|
+
setup(o) {
|
|
19
|
+
let { auth: u } = useAuth(), d = ref(), f = ref();
|
|
20
|
+
function p() {
|
|
21
|
+
d.value.reload();
|
|
22
22
|
}
|
|
23
|
-
async function
|
|
24
|
-
let { current:
|
|
25
|
-
currentPage:
|
|
26
|
-
pageSize:
|
|
27
|
-
...
|
|
23
|
+
async function m(e) {
|
|
24
|
+
let { current: n, pageSize: r, ...i } = e, a = await postRbacPubRoleGroupPageQuery({
|
|
25
|
+
currentPage: n,
|
|
26
|
+
pageSize: r,
|
|
27
|
+
...i
|
|
28
28
|
});
|
|
29
29
|
return {
|
|
30
|
-
success:
|
|
31
|
-
data:
|
|
32
|
-
total:
|
|
30
|
+
success: a.success,
|
|
31
|
+
data: a.data?.records ?? [],
|
|
32
|
+
total: a.data?.total ?? 0
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
|
-
let
|
|
35
|
+
let h = [
|
|
36
36
|
{
|
|
37
37
|
valueType: "a-input",
|
|
38
38
|
bind: "value",
|
|
@@ -74,7 +74,7 @@ var _hoisted_1 = {
|
|
|
74
74
|
minWidth: 80,
|
|
75
75
|
title: "角色组状态",
|
|
76
76
|
dataIndex: "enable",
|
|
77
|
-
customRender: ({ text:
|
|
77
|
+
customRender: ({ text: e }) => e ? createVNode(Badge, {
|
|
78
78
|
status: "success",
|
|
79
79
|
text: "正常"
|
|
80
80
|
}, null) : createVNode(Badge, {
|
|
@@ -100,70 +100,70 @@ var _hoisted_1 = {
|
|
|
100
100
|
dataIndex: "action",
|
|
101
101
|
fixed: "right",
|
|
102
102
|
hideInTable() {
|
|
103
|
-
return !
|
|
103
|
+
return !u(["role_group_edit", "role_group_remove"]);
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
];
|
|
107
|
-
function
|
|
108
|
-
switch (
|
|
107
|
+
function g(t, r) {
|
|
108
|
+
switch (t) {
|
|
109
109
|
case ACTION.EDIT:
|
|
110
|
-
|
|
110
|
+
f.value.open(t, r);
|
|
111
111
|
break;
|
|
112
112
|
case ACTION.ADD:
|
|
113
|
-
|
|
113
|
+
f.value.open(t);
|
|
114
114
|
break;
|
|
115
115
|
case ACTION.REMOVE:
|
|
116
116
|
Modal.confirm({
|
|
117
117
|
title: "删除",
|
|
118
118
|
content: "确定要删除该角色组吗?",
|
|
119
119
|
onOk() {
|
|
120
|
-
deleteRbacPubRoleGroupDelete({ id:
|
|
121
|
-
|
|
120
|
+
deleteRbacPubRoleGroupDelete({ id: r?.id }).then((e) => {
|
|
121
|
+
e.success && (message.success("删除成功"), p());
|
|
122
122
|
});
|
|
123
123
|
}
|
|
124
124
|
});
|
|
125
125
|
break;
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
|
-
return (
|
|
129
|
-
let
|
|
128
|
+
return (e, t) => {
|
|
129
|
+
let a = PlusCircleOutlined, o = Button, s = PubinfoIcon, c = Space$1, l = resolveDirective("auth");
|
|
130
130
|
return openBlock(), createElementBlock("div", _hoisted_1, [createVNode(unref(ProTable), {
|
|
131
131
|
ref_key: "tableRef",
|
|
132
|
-
ref:
|
|
132
|
+
ref: d,
|
|
133
133
|
"row-key": "id",
|
|
134
|
-
request:
|
|
135
|
-
columns:
|
|
134
|
+
request: m,
|
|
135
|
+
columns: h,
|
|
136
136
|
"auto-height": "",
|
|
137
137
|
scroll: { x: 1100 }
|
|
138
138
|
}, {
|
|
139
|
-
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(
|
|
139
|
+
toolbar: withCtx(() => [withDirectives((openBlock(), createBlock(o, {
|
|
140
140
|
type: "primary",
|
|
141
|
-
onClick:
|
|
141
|
+
onClick: t[0] ||= (e) => g(unref(ACTION).ADD)
|
|
142
142
|
}, {
|
|
143
|
-
default: withCtx(() => [createVNode(
|
|
143
|
+
default: withCtx(() => [createVNode(a), createTextVNode(" " + toDisplayString(unref(ACTION).ADD), 1)]),
|
|
144
144
|
_: 1
|
|
145
|
-
})), [[
|
|
146
|
-
bodyCell: withCtx(({ column:
|
|
145
|
+
})), [[l, "role_group_add"]])]),
|
|
146
|
+
bodyCell: withCtx(({ column: e, record: t }) => [e.dataIndex === "action" ? (openBlock(), createBlock(c, { key: 0 }, {
|
|
147
147
|
default: withCtx(() => [withDirectives((openBlock(), createElementBlock("a", {
|
|
148
148
|
class: "flex items-center",
|
|
149
|
-
onClick: (
|
|
150
|
-
}, [createVNode(
|
|
149
|
+
onClick: (e) => g(unref(ACTION).EDIT, t)
|
|
150
|
+
}, [createVNode(s, {
|
|
151
151
|
name: "edit",
|
|
152
152
|
class: "text-base"
|
|
153
|
-
}), createElementVNode("span", _hoisted_3, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_2)), [[
|
|
153
|
+
}), createElementVNode("span", _hoisted_3, toDisplayString(unref(ACTION).EDIT), 1)], 8, _hoisted_2)), [[l, "role_edit"]]), withDirectives((openBlock(), createElementBlock("span", {
|
|
154
154
|
class: "flex items-center text-red-500 hover:cursor-pointer hover:opacity-80",
|
|
155
|
-
onClick: (
|
|
156
|
-
}, [createVNode(
|
|
155
|
+
onClick: (e) => g(unref(ACTION).REMOVE, t)
|
|
156
|
+
}, [createVNode(s, {
|
|
157
157
|
name: "remove",
|
|
158
158
|
class: "text-base"
|
|
159
|
-
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_4)), [[
|
|
159
|
+
}), createElementVNode("span", _hoisted_5, toDisplayString(unref(ACTION).REMOVE), 1)], 8, _hoisted_4)), [[l, "role_remove"]])]),
|
|
160
160
|
_: 2
|
|
161
161
|
}, 1024)) : createCommentVNode("", !0)]),
|
|
162
162
|
_: 1
|
|
163
163
|
}, 512), createVNode(drawerRole_default, {
|
|
164
164
|
ref_key: "drawerRoleRef",
|
|
165
|
-
ref:
|
|
166
|
-
onSubmit:
|
|
165
|
+
ref: f,
|
|
166
|
+
onSubmit: t[1] ||= (e) => p()
|
|
167
167
|
}, null, 512)]);
|
|
168
168
|
};
|
|
169
169
|
}
|
|
@@ -14,8 +14,8 @@ import './safe_setting.css';var _hoisted_1 = {
|
|
|
14
14
|
"min-w-1130px": ""
|
|
15
15
|
}, _hoisted_3 = { class: "pt-20px flex flex-col box-border bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]" }, _hoisted_4 = { class: "p-16px text-right b-t-1 b-t-style-solid b-t-color-[#e5e6eb] dark:b-t-color-[#424242]" }, _hoisted_5 = { class: "mt-10px bg-white dark:bg-[#141414] text-[#4e5969] dark:text-[#C9CDD4]" }, safe_setting_default = /* @__PURE__ */ defineComponent({
|
|
16
16
|
__name: "index",
|
|
17
|
-
setup(
|
|
18
|
-
let
|
|
17
|
+
setup(l) {
|
|
18
|
+
let p = {
|
|
19
19
|
blackWhiteListMode: [{
|
|
20
20
|
required: !0,
|
|
21
21
|
message: "请选择黑白名单模式",
|
|
@@ -28,22 +28,22 @@ import './safe_setting.css';var _hoisted_1 = {
|
|
|
28
28
|
}],
|
|
29
29
|
lockMinutes: [{
|
|
30
30
|
required: !0,
|
|
31
|
-
validator:
|
|
31
|
+
validator: x,
|
|
32
32
|
trigger: "change"
|
|
33
33
|
}],
|
|
34
34
|
allowFailCounts: [{
|
|
35
35
|
required: !0,
|
|
36
|
-
validator:
|
|
36
|
+
validator: S,
|
|
37
37
|
trigger: "change"
|
|
38
38
|
}],
|
|
39
39
|
defaultPassword: [{
|
|
40
40
|
required: !0,
|
|
41
|
-
validator:
|
|
41
|
+
validator: w,
|
|
42
42
|
trigger: "change"
|
|
43
43
|
}],
|
|
44
44
|
expireDays: [{
|
|
45
45
|
required: !0,
|
|
46
|
-
validator:
|
|
46
|
+
validator: C,
|
|
47
47
|
trigger: "change"
|
|
48
48
|
}],
|
|
49
49
|
forceChangeInitPwd: [{
|
|
@@ -51,7 +51,7 @@ import './safe_setting.css';var _hoisted_1 = {
|
|
|
51
51
|
message: "请选择是否开启强制修改初始化密码",
|
|
52
52
|
trigger: "change"
|
|
53
53
|
}]
|
|
54
|
-
},
|
|
54
|
+
}, h = ref(), g = { style: { width: "240px" } }, _ = { span: 9 }, v = [
|
|
55
55
|
{
|
|
56
56
|
label: "无模式",
|
|
57
57
|
value: "0"
|
|
@@ -64,7 +64,7 @@ import './safe_setting.css';var _hoisted_1 = {
|
|
|
64
64
|
label: "白名单模式",
|
|
65
65
|
value: "2"
|
|
66
66
|
}
|
|
67
|
-
],
|
|
67
|
+
], y = reactive({
|
|
68
68
|
blackWhiteListMode: "0",
|
|
69
69
|
lockEnable: !0,
|
|
70
70
|
allowFailCounts: 5,
|
|
@@ -72,147 +72,147 @@ import './safe_setting.css';var _hoisted_1 = {
|
|
|
72
72
|
defaultPassword: "",
|
|
73
73
|
expireDays: 30,
|
|
74
74
|
forceChangeInitPwd: !0
|
|
75
|
-
}),
|
|
76
|
-
onMounted(
|
|
77
|
-
async function
|
|
78
|
-
return
|
|
75
|
+
}), b = ref(!1);
|
|
76
|
+
onMounted(T);
|
|
77
|
+
async function x(e, t) {
|
|
78
|
+
return y.lockEnable && !t ? Promise.reject(/* @__PURE__ */ Error("请输入锁定分钟数")) : Number.isNaN(+t) || +t < 1 || +t > 360 ? Promise.reject(/* @__PURE__ */ Error("锁定分钟数应为[1~360]之间的正整数")) : Promise.resolve();
|
|
79
79
|
}
|
|
80
|
-
async function
|
|
81
|
-
return
|
|
80
|
+
async function S(e, t) {
|
|
81
|
+
return y.lockEnable && !t ? Promise.reject(/* @__PURE__ */ Error("请输入允许密码连续错误次数")) : Number.isNaN(+t) || +t < 1 || +t > 20 ? Promise.reject(/* @__PURE__ */ Error("允许密码连续错误次数应为[1~20]之间的正整数")) : Promise.resolve();
|
|
82
82
|
}
|
|
83
|
-
async function
|
|
84
|
-
return
|
|
83
|
+
async function C(e, t) {
|
|
84
|
+
return y.lockEnable && !t ? Promise.reject(/* @__PURE__ */ Error("请输入密码过期天数")) : Number.isNaN(+t) || +t < 30 || +t > 360 ? Promise.reject(/* @__PURE__ */ Error("密码过期天数应为[30~360]之间的正整数")) : Promise.resolve();
|
|
85
85
|
}
|
|
86
|
-
async function
|
|
87
|
-
return
|
|
86
|
+
async function w(e, t) {
|
|
87
|
+
return t ? b.value ? Promise.resolve() : Promise.reject(/* @__PURE__ */ Error("密码规则校验不通过")) : Promise.reject(/* @__PURE__ */ Error("请输入默认密码"));
|
|
88
88
|
}
|
|
89
|
-
function
|
|
90
|
-
getSysconfigGetSysSecurityConfig().then((
|
|
91
|
-
|
|
89
|
+
function T() {
|
|
90
|
+
getSysconfigGetSysSecurityConfig().then((e) => {
|
|
91
|
+
e && e.data && e.data.content && e.success && Object.assign(y, JSON.parse(e.data.content));
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
let [
|
|
95
|
-
async function
|
|
96
|
-
if (!
|
|
97
|
-
|
|
94
|
+
let [E, D] = useToggle(!1);
|
|
95
|
+
async function O() {
|
|
96
|
+
if (!E.value) {
|
|
97
|
+
D(!0);
|
|
98
98
|
try {
|
|
99
|
-
await
|
|
100
|
-
let { blackWhiteListMode:
|
|
101
|
-
blackWhiteListMode:
|
|
102
|
-
lockEnable:
|
|
103
|
-
defaultPassword:
|
|
104
|
-
expireDays:
|
|
105
|
-
forceChangeInitPwd:
|
|
99
|
+
await h.value?.validate();
|
|
100
|
+
let { blackWhiteListMode: e, lockEnable: t, allowFailCounts: r, lockMinutes: i, defaultPassword: a, expireDays: o, forceChangeInitPwd: s } = y, c = {
|
|
101
|
+
blackWhiteListMode: e,
|
|
102
|
+
lockEnable: t,
|
|
103
|
+
defaultPassword: a,
|
|
104
|
+
expireDays: o,
|
|
105
|
+
forceChangeInitPwd: s
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
allowFailCounts:
|
|
109
|
-
lockMinutes:
|
|
110
|
-
}), await postSysconfigEditSysSecurityConfig({ content: JSON.stringify(
|
|
107
|
+
t && Object.assign(c, {
|
|
108
|
+
allowFailCounts: r,
|
|
109
|
+
lockMinutes: i
|
|
110
|
+
}), await postSysconfigEditSysSecurityConfig({ content: JSON.stringify(c) }), D(!1), message.success("配置更改成功");
|
|
111
111
|
} catch {
|
|
112
|
-
|
|
112
|
+
D(!1);
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
return (
|
|
117
|
-
let
|
|
118
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(
|
|
116
|
+
return (e, t) => {
|
|
117
|
+
let n = Select, l = FormItem, u = Switch, d = Input$1, f = Button, m = Form$1, x = resolveDirective("auth");
|
|
118
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [createElementVNode("div", _hoisted_3, [createVNode(m, {
|
|
119
119
|
ref_key: "formRef",
|
|
120
|
-
ref:
|
|
121
|
-
model:
|
|
122
|
-
rules:
|
|
123
|
-
"label-col":
|
|
124
|
-
"wrapper-col":
|
|
120
|
+
ref: h,
|
|
121
|
+
model: y,
|
|
122
|
+
rules: p,
|
|
123
|
+
"label-col": g,
|
|
124
|
+
"wrapper-col": _,
|
|
125
125
|
class: "safe-rule-form"
|
|
126
126
|
}, {
|
|
127
127
|
default: withCtx(() => [
|
|
128
|
-
createVNode(
|
|
128
|
+
createVNode(l, {
|
|
129
129
|
label: "黑白名单模式",
|
|
130
130
|
name: "blackWhiteListMode"
|
|
131
131
|
}, {
|
|
132
|
-
default: withCtx(() => [createVNode(
|
|
133
|
-
value:
|
|
134
|
-
"onUpdate:value":
|
|
132
|
+
default: withCtx(() => [createVNode(n, {
|
|
133
|
+
value: y.blackWhiteListMode,
|
|
134
|
+
"onUpdate:value": t[0] ||= (e) => y.blackWhiteListMode = e,
|
|
135
135
|
placeholder: "请选择",
|
|
136
|
-
options:
|
|
136
|
+
options: v
|
|
137
137
|
}, null, 8, ["value"])]),
|
|
138
138
|
_: 1
|
|
139
139
|
}),
|
|
140
|
-
createVNode(
|
|
140
|
+
createVNode(l, {
|
|
141
141
|
label: "是否开启密码错误后锁定账号",
|
|
142
142
|
name: "lockEnable"
|
|
143
143
|
}, {
|
|
144
|
-
default: withCtx(() => [createVNode(
|
|
145
|
-
checked:
|
|
146
|
-
"onUpdate:checked":
|
|
144
|
+
default: withCtx(() => [createVNode(u, {
|
|
145
|
+
checked: y.lockEnable,
|
|
146
|
+
"onUpdate:checked": t[1] ||= (e) => y.lockEnable = e
|
|
147
147
|
}, null, 8, ["checked"])]),
|
|
148
148
|
_: 1
|
|
149
149
|
}),
|
|
150
|
-
|
|
150
|
+
y.lockEnable ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createVNode(l, {
|
|
151
151
|
label: "允许密码连续错误次数",
|
|
152
152
|
name: "allowFailCounts"
|
|
153
153
|
}, {
|
|
154
|
-
default: withCtx(() => [createVNode(
|
|
155
|
-
value:
|
|
156
|
-
"onUpdate:value":
|
|
154
|
+
default: withCtx(() => [createVNode(d, {
|
|
155
|
+
value: y.allowFailCounts,
|
|
156
|
+
"onUpdate:value": t[2] ||= (e) => y.allowFailCounts = e,
|
|
157
157
|
"mr-12px": ""
|
|
158
|
-
}, null, 8, ["value"]),
|
|
158
|
+
}, null, 8, ["value"]), t[9] ||= createTextVNode("次 ", -1)]),
|
|
159
159
|
_: 1
|
|
160
|
-
}), createVNode(
|
|
160
|
+
}), createVNode(l, {
|
|
161
161
|
label: "锁定多少分钟",
|
|
162
162
|
name: "lockMinutes"
|
|
163
163
|
}, {
|
|
164
|
-
default: withCtx(() => [createElementVNode("span", null, [createVNode(
|
|
165
|
-
value:
|
|
166
|
-
"onUpdate:value":
|
|
164
|
+
default: withCtx(() => [createElementVNode("span", null, [createVNode(d, {
|
|
165
|
+
value: y.lockMinutes,
|
|
166
|
+
"onUpdate:value": t[3] ||= (e) => y.lockMinutes = e,
|
|
167
167
|
"mr-12px": ""
|
|
168
|
-
}, null, 8, ["value"]),
|
|
168
|
+
}, null, 8, ["value"]), t[10] ||= createTextVNode("分钟", -1)])]),
|
|
169
169
|
_: 1
|
|
170
170
|
})], 64)) : createCommentVNode("", !0),
|
|
171
|
-
createVNode(
|
|
171
|
+
createVNode(l, {
|
|
172
172
|
label: "默认密码设置",
|
|
173
173
|
name: "defaultPassword"
|
|
174
174
|
}, {
|
|
175
|
-
default: withCtx(() => [createVNode(
|
|
176
|
-
value:
|
|
177
|
-
"onUpdate:value":
|
|
175
|
+
default: withCtx(() => [createVNode(d, {
|
|
176
|
+
value: y.defaultPassword,
|
|
177
|
+
"onUpdate:value": t[4] ||= (e) => y.defaultPassword = e
|
|
178
178
|
}, null, 8, ["value"])]),
|
|
179
179
|
_: 1
|
|
180
180
|
}),
|
|
181
|
-
createVNode(
|
|
181
|
+
createVNode(l, {
|
|
182
182
|
label: "密码过期天数",
|
|
183
183
|
name: "expireDays"
|
|
184
184
|
}, {
|
|
185
|
-
default: withCtx(() => [createVNode(
|
|
186
|
-
value:
|
|
187
|
-
"onUpdate:value":
|
|
185
|
+
default: withCtx(() => [createVNode(d, {
|
|
186
|
+
value: y.expireDays,
|
|
187
|
+
"onUpdate:value": t[5] ||= (e) => y.expireDays = e,
|
|
188
188
|
"mr-12px": ""
|
|
189
|
-
}, null, 8, ["value"]),
|
|
189
|
+
}, null, 8, ["value"]), t[11] ||= createTextVNode("天 ", -1)]),
|
|
190
190
|
_: 1
|
|
191
191
|
}),
|
|
192
|
-
createVNode(
|
|
192
|
+
createVNode(l, {
|
|
193
193
|
label: "是否开启强制修改初始化密码",
|
|
194
194
|
name: "forceChangeInitPwd"
|
|
195
195
|
}, {
|
|
196
|
-
default: withCtx(() => [createVNode(
|
|
197
|
-
checked:
|
|
198
|
-
"onUpdate:checked":
|
|
196
|
+
default: withCtx(() => [createVNode(u, {
|
|
197
|
+
checked: y.forceChangeInitPwd,
|
|
198
|
+
"onUpdate:checked": t[6] ||= (e) => y.forceChangeInitPwd = e
|
|
199
199
|
}, null, 8, ["checked"])]),
|
|
200
200
|
_: 1
|
|
201
201
|
}),
|
|
202
|
-
withDirectives((openBlock(), createElementBlock("div", _hoisted_4, [createVNode(
|
|
202
|
+
withDirectives((openBlock(), createElementBlock("div", _hoisted_4, [createVNode(f, {
|
|
203
203
|
type: "primary",
|
|
204
|
-
onClick:
|
|
204
|
+
onClick: O
|
|
205
205
|
}, {
|
|
206
|
-
default: withCtx(() => [...
|
|
206
|
+
default: withCtx(() => [...t[12] ||= [createTextVNode(" 更改配置 ", -1)]]),
|
|
207
207
|
_: 1
|
|
208
|
-
})])), [[
|
|
208
|
+
})])), [[x, "change_safe_setting"]])
|
|
209
209
|
]),
|
|
210
210
|
_: 1
|
|
211
211
|
}, 8, ["model"])]), createElementVNode("div", _hoisted_5, [createVNode(unref(PassStrengthValidator), {
|
|
212
|
-
modelValue:
|
|
213
|
-
"onUpdate:modelValue":
|
|
214
|
-
validate:
|
|
215
|
-
"onUpdate:validate":
|
|
212
|
+
modelValue: y.defaultPassword,
|
|
213
|
+
"onUpdate:modelValue": t[7] ||= (e) => y.defaultPassword = e,
|
|
214
|
+
validate: b.value,
|
|
215
|
+
"onUpdate:validate": t[8] ||= (e) => b.value = e,
|
|
216
216
|
vertical: ""
|
|
217
217
|
}, null, 8, ["modelValue", "validate"])])])]);
|
|
218
218
|
};
|