@pubinfo/module-rbac 2.0.15 → 2.1.0
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/{HoverCard-DASfDgI1.js → HoverCard-7agF2aDO.js} +1 -1
- package/dist/{HoverCard.vue_vue_type_script_setup_true_lang-BqEarhzP.js → HoverCard.vue_vue_type_script_setup_true_lang-DEScDCo1.js} +1 -1
- package/dist/{LayoutForm-C-vNwp3q.js → LayoutForm-Pv6UyKl3.js} +1 -1
- package/dist/MetaForm-CdjGvTzO.js +42387 -0
- package/dist/MetaForm.css +1 -1
- package/dist/{OrgAndPosition-DjF_gcp6.js → OrgAndPosition-R-YixdXG.js} +1 -1
- package/dist/{OrgAndPosition.vue_vue_type_script_setup_true_lang-CFSDHn40.js → OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js} +1 -1
- package/dist/{ResourceEdit-D2YFu-Gk.js → ResourceEdit-DmhCeCzZ.js} +1 -1
- package/dist/{ResourceEdit.vue_vue_type_script_setup_true_lang-Cb0mKIlJ.js → ResourceEdit.vue_vue_type_script_setup_true_lang-Bf5bFQcG.js} +2 -2
- package/dist/{UserAuthorization-rqttVub5.js → UserAuthorization-Ch_iKzms.js} +1 -1
- package/dist/{UserEdit-DkNVPVA4.js → UserEdit-B1fnFcSC.js} +1 -1
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-SIR1ZO_N.js +315 -0
- package/dist/{drawerBlackWhiteList-Cr16yNs8.js → drawerBlackWhiteList-eWyKScZN.js} +1 -1
- package/dist/{drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-BR6Yeiie.js → drawerBlackWhiteList.vue_vue_type_script_setup_true_lang-CNBKo3Jg.js} +17 -16
- package/dist/{drawerPosition-BYypSGoF.js → drawerPosition-BA_gLotd.js} +1 -1
- package/dist/{drawerPosition.vue_vue_type_script_setup_true_lang-DcZ48XJV.js → drawerPosition.vue_vue_type_script_setup_true_lang-ZqfbI05C.js} +1 -1
- package/dist/{drawerRegion-BiIlYQ0Z.js → drawerRegion-CauOP4lh.js} +1 -1
- package/dist/{drawerRegion.vue_vue_type_script_setup_true_lang-BwAj_RKw.js → drawerRegion.vue_vue_type_script_setup_true_lang-DeL9jV-P.js} +50 -48
- package/dist/gangweijiekou-CUGlx4Ni.js +48 -0
- package/dist/{index-qn7U9T51.js → index-B0zXLUdu.js} +25 -25
- package/dist/{index-Cqkr8Rvk.js → index-BhZNbJp6.js} +1 -1
- package/dist/{index-nAPHtTM7.js → index-Bm3WQuJD.js} +1 -1
- package/dist/{index-BPkJOFXE.js → index-CW5BpDeG.js} +1 -1
- package/dist/{index-DoFuRlsc.js → index-iBmBJd50.js} +2 -2
- package/dist/index.js +65 -40
- package/dist/index17.css +1 -1
- package/dist/isEmpty-BgDIb4aS.js +20 -0
- package/dist/vanilla-picker-BAEwS4Fy.js +536 -0
- package/dist/views/resource/model.d.ts +1 -0
- package/package.json +4 -3
- package/src/api/modules/assist/qunzujiekou.ts +3 -0
- package/src/api/modules/assist/quyujiekou.ts +2 -0
- package/src/api/modules/configData/heibaimingdanfuwu.ts +2 -0
- package/src/api/modules/configData/zidifuwu.ts +4 -0
- package/src/api/modules/rbac/gangweijiekou.ts +3 -0
- package/src/api/modules/rbac/yonghushoucangbiaojiekou.ts +2 -0
- package/src/api/modules/rbac/yonghuzuijinchangyongbiaojiekou.ts +1 -0
- package/src/components/JsonEditorModal/index.vue +54 -0
- package/src/views/resource/components/HoverCard.vue +1 -1
- package/src/views/resource/components/MetaForm.vue +24 -0
- package/src/views/resource/model.ts +2 -0
- package/dist/MetaForm-13JASu7v.js +0 -401
- package/dist/UserEdit.vue_vue_type_script_setup_true_lang-CFs0SxVJ.js +0 -330
- package/dist/gangweijiekou-Cs016LjQ.js +0 -46
package/dist/MetaForm.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-item-bottom-0[data-v-
|
|
1
|
+
.form-item-bottom-0[data-v-1c0663e5],.ant-form-item[data-v-1c0663e5]{margin-bottom:0}
|
|
@@ -4,7 +4,7 @@ import { PubinfoIcon as M } from "pubinfo";
|
|
|
4
4
|
import { defineComponent as R, useModel as T, watch as j, createElementBlock as p, openBlock as i, createVNode as a, Fragment as D, renderList as G, createBlock as u, withCtx as t, createElementVNode as _, createCommentVNode as v, toDisplayString as b, createTextVNode as g, unref as k, normalizeStyle as H } from "vue";
|
|
5
5
|
import { useRequest as J } from "alova/client";
|
|
6
6
|
import { theme as K, Form as Q, Modal as W } from "ant-design-vue";
|
|
7
|
-
import { b as X } from "./gangweijiekou-
|
|
7
|
+
import { b as X } from "./gangweijiekou-CUGlx4Ni.js";
|
|
8
8
|
const Y = { class: "space-y-2" }, Z = { class: "flex items-center space-x-1" }, ee = { class: "flex items-center overflow-hidden" }, oe = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "mr-2 truncate"
|
|
@@ -7,10 +7,10 @@ import { u as C } from "./index.js";
|
|
|
7
7
|
import { d as Ue, p as Ee, e as Ce } from "./ziyuanjiekou-BC65-bFK.js";
|
|
8
8
|
import { D as Te, b as Ae } from "./enum-DkSNwGbC.js";
|
|
9
9
|
import { r as D, A as I, R as Me } from "./enum-D5iPiZiT.js";
|
|
10
|
-
import { u as Oe, M as Ve, d as Le } from "./MetaForm-
|
|
10
|
+
import { u as Oe, M as Ve, d as Le } from "./MetaForm-CdjGvTzO.js";
|
|
11
11
|
import { _ as xe } from "./DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js";
|
|
12
12
|
import { _ as ke } from "./IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js";
|
|
13
|
-
import we from "./LayoutForm-
|
|
13
|
+
import we from "./LayoutForm-Pv6UyKl3.js";
|
|
14
14
|
import { c as k } from "./cloneDeep-BOLZdR62.js";
|
|
15
15
|
const Se = {
|
|
16
16
|
key: 0,
|
|
@@ -2,7 +2,7 @@ import { Drawer as X, Form as Y, Card as Z, FormItem as ee, Select as te, Button
|
|
|
2
2
|
import { PubinfoIcon as se } from "pubinfo";
|
|
3
3
|
import { defineComponent as le, ref as b, onMounted as re, createBlock as g, openBlock as n, unref as d, isRef as ie, withCtx as o, createVNode as r, createElementBlock as m, Fragment as y, renderList as R, createElementVNode as c, toDisplayString as x, createTextVNode as C, createCommentVNode as ue, normalizeStyle as S, nextTick as de } from "vue";
|
|
4
4
|
import { theme as pe, message as me } from "ant-design-vue";
|
|
5
|
-
import { u as $,
|
|
5
|
+
import { u as $, a3 as ce, _ as fe } from "./index.js";
|
|
6
6
|
import { _ as _e, c as be } from "./RoleSelector.vue_vue_type_script_setup_true_lang-ZwsINUBu.js";
|
|
7
7
|
import { c as ge, e as xe } from "./shujuquanxianzhubiaokongzhiqi-SpN37fyO.js";
|
|
8
8
|
import './UserAuthorization.css';const he = { class: "flex items-center justify-between" }, ve = {
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
import { Drawer as q, Form as F, FormItem as Z, Input as G, RadioGroup as H, Switch as M, Textarea as W, Space as X, Button as J } from "ant-design-vue/es";
|
|
2
|
+
import { defineComponent as K, ref as O, reactive as Q, createBlock as R, openBlock as b, unref as t, isRef as Y, withCtx as o, createVNode as l, createElementBlock as ee, toDisplayString as te, createTextVNode as D } from "vue";
|
|
3
|
+
import { message as ae } from "ant-design-vue";
|
|
4
|
+
import { u as y, a4 as re, a5 as le, a6 as oe } from "./index.js";
|
|
5
|
+
import { _ as ne } from "./OrgAndPosition.vue_vue_type_script_setup_true_lang-jEjTok4n.js";
|
|
6
|
+
import { i as w } from "./isEmpty-BgDIb4aS.js";
|
|
7
|
+
import { c as se } from "./cloneDeep-BOLZdR62.js";
|
|
8
|
+
var c = /* @__PURE__ */ ((p) => (p.ADD = "新建", p.AUTHORIZE = "授权", p.RESET_PASSWORD = "重置密码", p.EDIT = "修改", p.REMOVE = "删除", p))(c || {});
|
|
9
|
+
const ie = { key: 0 }, ve = /* @__PURE__ */ K({
|
|
10
|
+
name: "UserEdit",
|
|
11
|
+
__name: "UserEdit",
|
|
12
|
+
props: {
|
|
13
|
+
currentOrg: {}
|
|
14
|
+
},
|
|
15
|
+
emits: ["submit"],
|
|
16
|
+
setup(p, { expose: N, emit: $ }) {
|
|
17
|
+
const x = p, V = $, [f, v] = y(!1), U = O(), a = O({}), g = Q({
|
|
18
|
+
title: "",
|
|
19
|
+
record: {},
|
|
20
|
+
initData: {
|
|
21
|
+
sex: "0",
|
|
22
|
+
enable: !0,
|
|
23
|
+
userOrgList: [{ main: !0, positionList: [] }]
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
function k(u, e) {
|
|
27
|
+
return !e || /^[A-Z!@#$%^&*0-9]+$/i.test(e) ? Promise.resolve() : Promise.reject(new Error("只能包含字母、数字和特殊字符!@#$%^&*"));
|
|
28
|
+
}
|
|
29
|
+
function I(u, e) {
|
|
30
|
+
return /^1(3\d|4[014-9]|5[0-35-9]|6[2567]|7[0-8]|8\d|9[0-35-9])\d{8}$/.test(e) || w(e) ? Promise.resolve() : Promise.reject(new Error("请输入正确的手机号"));
|
|
31
|
+
}
|
|
32
|
+
function P(u, e) {
|
|
33
|
+
return /^([a-z0-9])(\w|-)+@[a-z0-9]+\.([a-z]{2,4})$/i.test(e) || w(e) ? Promise.resolve() : Promise.reject(new Error("请输入正确的邮箱地址"));
|
|
34
|
+
}
|
|
35
|
+
function h(u, e) {
|
|
36
|
+
return /(^\d{15}$)|(^\d{18}$)|(^\d{17}([\dX])$)/i.test(e) || w(e) ? Promise.resolve() : Promise.reject(new Error("请输入正确的身份证号码"));
|
|
37
|
+
}
|
|
38
|
+
const S = {
|
|
39
|
+
loginName: [
|
|
40
|
+
{ required: !0, message: "请输入登录账号", trigger: ["blur", "change"] },
|
|
41
|
+
{ min: 4, max: 64, message: "登录账号需要在4位到64位之间", trigger: "change" },
|
|
42
|
+
{ validator: k, trigger: "change" }
|
|
43
|
+
],
|
|
44
|
+
realName: [
|
|
45
|
+
{ required: !0, message: "请输入真实姓名", trigger: "blur" },
|
|
46
|
+
{ min: 2, max: 128, message: "真实姓名需要在2位到128位之间", trigger: "change" }
|
|
47
|
+
],
|
|
48
|
+
userOrgList: [
|
|
49
|
+
{ type: "array", required: !0, message: "请选择所属组织" }
|
|
50
|
+
],
|
|
51
|
+
mobile: [
|
|
52
|
+
{ validator: I, trigger: "change" }
|
|
53
|
+
],
|
|
54
|
+
email: [
|
|
55
|
+
{ validator: P, trigger: "change" },
|
|
56
|
+
{ max: 32, message: "邮箱不能超过32位", trigger: "change" }
|
|
57
|
+
],
|
|
58
|
+
idCard: [
|
|
59
|
+
{ validator: h, trigger: "change" }
|
|
60
|
+
]
|
|
61
|
+
};
|
|
62
|
+
async function z(u, e) {
|
|
63
|
+
if (g.title = u, a.value = se(g.initData), a.value.userOrgList[0].orgId = x.currentOrg?.orgId, a.value.userOrgList[0].orgName = x.currentOrg?.orgName, v(!0), u === c.EDIT) {
|
|
64
|
+
const n = await re({ id: e?.id });
|
|
65
|
+
if (n.success) {
|
|
66
|
+
const { userOrgList: s = [], ...m } = n?.data ?? {};
|
|
67
|
+
a.value = {
|
|
68
|
+
...m,
|
|
69
|
+
userOrgList: s?.map((d) => ({
|
|
70
|
+
...d,
|
|
71
|
+
roleList: d.roles?.map((i) => ({ value: i.roleId, label: i.roleName })) ?? [],
|
|
72
|
+
positionList: d.posts?.map((i) => ({ value: i.postId, label: i.postName })) ?? []
|
|
73
|
+
}))
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
const C = [
|
|
79
|
+
{ label: "未知", value: "0" },
|
|
80
|
+
{ label: "男", value: "1" },
|
|
81
|
+
{ label: "女", value: "2" }
|
|
82
|
+
], [j, E] = y(!1);
|
|
83
|
+
function A() {
|
|
84
|
+
U.value?.validate().then(() => {
|
|
85
|
+
const { userOrgList: u = [], ...e } = a.value, n = {
|
|
86
|
+
...e,
|
|
87
|
+
orgRoles: u.map((m) => {
|
|
88
|
+
const { orgId: d, main: i } = m;
|
|
89
|
+
return {
|
|
90
|
+
orgId: d,
|
|
91
|
+
main: i
|
|
92
|
+
};
|
|
93
|
+
}),
|
|
94
|
+
posts: u.map((m) => {
|
|
95
|
+
const { orgId: d, positionList: i = [] } = m;
|
|
96
|
+
return {
|
|
97
|
+
orgId: d,
|
|
98
|
+
postIds: i.map((_) => _.value)
|
|
99
|
+
};
|
|
100
|
+
})
|
|
101
|
+
}, s = g.title === c.ADD ? le(n) : oe(n);
|
|
102
|
+
E(!0), s.then((m) => {
|
|
103
|
+
m?.success && (ae.success(`${g.title}成功!`), v(!1), V("submit"));
|
|
104
|
+
}).finally(() => E(!1));
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
return N({
|
|
108
|
+
open: z
|
|
109
|
+
}), (u, e) => {
|
|
110
|
+
const n = G, s = Z, m = H, d = M, i = W, _ = F, L = J, B = X, T = q;
|
|
111
|
+
return b(), R(T, {
|
|
112
|
+
open: t(f),
|
|
113
|
+
"onUpdate:open": e[12] || (e[12] = (r) => Y(f) ? f.value = r : null),
|
|
114
|
+
title: t(g).title,
|
|
115
|
+
placement: "right",
|
|
116
|
+
width: 520,
|
|
117
|
+
"destroy-on-close": "",
|
|
118
|
+
"footer-style": { textAlign: "right" }
|
|
119
|
+
}, {
|
|
120
|
+
footer: o(() => [
|
|
121
|
+
l(B, null, {
|
|
122
|
+
default: o(() => [
|
|
123
|
+
l(L, {
|
|
124
|
+
onClick: e[10] || (e[10] = (r) => t(v)(!1))
|
|
125
|
+
}, {
|
|
126
|
+
default: o(() => e[13] || (e[13] = [
|
|
127
|
+
D(" 取消 ")
|
|
128
|
+
])),
|
|
129
|
+
_: 1,
|
|
130
|
+
__: [13]
|
|
131
|
+
}),
|
|
132
|
+
l(L, {
|
|
133
|
+
type: "primary",
|
|
134
|
+
loading: t(j),
|
|
135
|
+
onClick: e[11] || (e[11] = (r) => A())
|
|
136
|
+
}, {
|
|
137
|
+
default: o(() => e[14] || (e[14] = [
|
|
138
|
+
D(" 提交 ")
|
|
139
|
+
])),
|
|
140
|
+
_: 1,
|
|
141
|
+
__: [14]
|
|
142
|
+
}, 8, ["loading"])
|
|
143
|
+
]),
|
|
144
|
+
_: 1
|
|
145
|
+
})
|
|
146
|
+
]),
|
|
147
|
+
default: o(() => [
|
|
148
|
+
l(_, {
|
|
149
|
+
ref_key: "formRef",
|
|
150
|
+
ref: U,
|
|
151
|
+
model: t(a),
|
|
152
|
+
rules: S,
|
|
153
|
+
"label-col": { span: 4 }
|
|
154
|
+
}, {
|
|
155
|
+
default: o(() => [
|
|
156
|
+
l(s, {
|
|
157
|
+
label: "登录账号",
|
|
158
|
+
name: "loginName"
|
|
159
|
+
}, {
|
|
160
|
+
default: o(() => [
|
|
161
|
+
t(g).title === t(c).EDIT ? (b(), ee("div", ie, te(t(a).loginName), 1)) : (b(), R(n, {
|
|
162
|
+
key: 1,
|
|
163
|
+
value: t(a).loginName,
|
|
164
|
+
"onUpdate:value": e[0] || (e[0] = (r) => t(a).loginName = r),
|
|
165
|
+
maxlength: 64,
|
|
166
|
+
placeholder: "请输入登录账号",
|
|
167
|
+
"allow-clear": ""
|
|
168
|
+
}, null, 8, ["value"]))
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}),
|
|
172
|
+
l(s, {
|
|
173
|
+
label: "真实姓名",
|
|
174
|
+
name: "realName"
|
|
175
|
+
}, {
|
|
176
|
+
default: o(() => [
|
|
177
|
+
l(n, {
|
|
178
|
+
value: t(a).realName,
|
|
179
|
+
"onUpdate:value": e[1] || (e[1] = (r) => t(a).realName = r),
|
|
180
|
+
maxlength: 128,
|
|
181
|
+
placeholder: "请输入真实姓名",
|
|
182
|
+
"allow-clear": ""
|
|
183
|
+
}, null, 8, ["value"])
|
|
184
|
+
]),
|
|
185
|
+
_: 1
|
|
186
|
+
}),
|
|
187
|
+
l(s, {
|
|
188
|
+
label: "手机号",
|
|
189
|
+
name: "mobile"
|
|
190
|
+
}, {
|
|
191
|
+
default: o(() => [
|
|
192
|
+
l(n, {
|
|
193
|
+
value: t(a).mobile,
|
|
194
|
+
"onUpdate:value": e[2] || (e[2] = (r) => t(a).mobile = r),
|
|
195
|
+
maxlength: 14,
|
|
196
|
+
placeholder: "请输入手机号",
|
|
197
|
+
"allow-clear": ""
|
|
198
|
+
}, null, 8, ["value"])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
}),
|
|
202
|
+
l(s, {
|
|
203
|
+
label: "性别",
|
|
204
|
+
name: "sex"
|
|
205
|
+
}, {
|
|
206
|
+
default: o(() => [
|
|
207
|
+
l(m, {
|
|
208
|
+
value: t(a).sex,
|
|
209
|
+
"onUpdate:value": e[3] || (e[3] = (r) => t(a).sex = r),
|
|
210
|
+
options: C
|
|
211
|
+
}, null, 8, ["value"])
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}),
|
|
215
|
+
l(s, {
|
|
216
|
+
label: "邮箱",
|
|
217
|
+
name: "email"
|
|
218
|
+
}, {
|
|
219
|
+
default: o(() => [
|
|
220
|
+
l(n, {
|
|
221
|
+
value: t(a).email,
|
|
222
|
+
"onUpdate:value": e[4] || (e[4] = (r) => t(a).email = r),
|
|
223
|
+
maxlength: 32,
|
|
224
|
+
placeholder: "请输入邮箱",
|
|
225
|
+
"allow-clear": ""
|
|
226
|
+
}, null, 8, ["value"])
|
|
227
|
+
]),
|
|
228
|
+
_: 1
|
|
229
|
+
}),
|
|
230
|
+
l(s, {
|
|
231
|
+
label: "身份证",
|
|
232
|
+
name: "idCard"
|
|
233
|
+
}, {
|
|
234
|
+
default: o(() => [
|
|
235
|
+
l(n, {
|
|
236
|
+
value: t(a).idCard,
|
|
237
|
+
"onUpdate:value": e[5] || (e[5] = (r) => t(a).idCard = r),
|
|
238
|
+
maxlength: 18,
|
|
239
|
+
placeholder: "请输入身份证",
|
|
240
|
+
"allow-clear": ""
|
|
241
|
+
}, null, 8, ["value"])
|
|
242
|
+
]),
|
|
243
|
+
_: 1
|
|
244
|
+
}),
|
|
245
|
+
l(s, {
|
|
246
|
+
label: "是否启用",
|
|
247
|
+
name: "enable"
|
|
248
|
+
}, {
|
|
249
|
+
default: o(() => [
|
|
250
|
+
l(d, {
|
|
251
|
+
checked: t(a).enable,
|
|
252
|
+
"onUpdate:checked": e[6] || (e[6] = (r) => t(a).enable = r)
|
|
253
|
+
}, null, 8, ["checked"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
}),
|
|
257
|
+
l(s, {
|
|
258
|
+
label: "地址",
|
|
259
|
+
name: "address"
|
|
260
|
+
}, {
|
|
261
|
+
default: o(() => [
|
|
262
|
+
l(i, {
|
|
263
|
+
value: t(a).address,
|
|
264
|
+
"onUpdate:value": e[7] || (e[7] = (r) => t(a).address = r),
|
|
265
|
+
maxlength: 200,
|
|
266
|
+
"auto-size": { minRows: 2 },
|
|
267
|
+
placeholder: "请输入地址",
|
|
268
|
+
"allow-clear": "",
|
|
269
|
+
"show-count": ""
|
|
270
|
+
}, null, 8, ["value"])
|
|
271
|
+
]),
|
|
272
|
+
_: 1
|
|
273
|
+
}),
|
|
274
|
+
l(s, {
|
|
275
|
+
label: "描述",
|
|
276
|
+
name: "description"
|
|
277
|
+
}, {
|
|
278
|
+
default: o(() => [
|
|
279
|
+
l(i, {
|
|
280
|
+
value: t(a).description,
|
|
281
|
+
"onUpdate:value": e[8] || (e[8] = (r) => t(a).description = r),
|
|
282
|
+
maxlength: 255,
|
|
283
|
+
"auto-size": { minRows: 2 },
|
|
284
|
+
placeholder: "请输入描述",
|
|
285
|
+
"allow-clear": "",
|
|
286
|
+
"show-count": ""
|
|
287
|
+
}, null, 8, ["value"])
|
|
288
|
+
]),
|
|
289
|
+
_: 1
|
|
290
|
+
}),
|
|
291
|
+
l(s, {
|
|
292
|
+
label: "所属组织",
|
|
293
|
+
name: "userOrgList"
|
|
294
|
+
}, {
|
|
295
|
+
default: o(() => [
|
|
296
|
+
l(ne, {
|
|
297
|
+
modelValue: t(a).userOrgList,
|
|
298
|
+
"onUpdate:modelValue": e[9] || (e[9] = (r) => t(a).userOrgList = r)
|
|
299
|
+
}, null, 8, ["modelValue"])
|
|
300
|
+
]),
|
|
301
|
+
_: 1
|
|
302
|
+
})
|
|
303
|
+
]),
|
|
304
|
+
_: 1
|
|
305
|
+
}, 8, ["model"])
|
|
306
|
+
]),
|
|
307
|
+
_: 1
|
|
308
|
+
}, 8, ["open", "title"]);
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
});
|
|
312
|
+
export {
|
|
313
|
+
c as A,
|
|
314
|
+
ve as _
|
|
315
|
+
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Drawer as q, Form as E, FormItem as S, Input as A, Switch as G, Textarea as N, Space as O, Button as V } from "ant-design-vue/es";
|
|
2
|
-
import { defineComponent as z, ref as
|
|
2
|
+
import { defineComponent as z, ref as d, createBlock as H, openBlock as J, unref as n, isRef as K, withCtx as i, createVNode as o, createTextVNode as W } from "vue";
|
|
3
3
|
import { message as M } from "ant-design-vue";
|
|
4
|
-
import { b as
|
|
4
|
+
import { b as m, u as y } from "./index.js";
|
|
5
5
|
function Q(a, r) {
|
|
6
|
-
return
|
|
6
|
+
return m.Post("/blackWhiteList/addBlackWhiteList", a, {
|
|
7
7
|
headers: {
|
|
8
8
|
"Content-Type": "application/json"
|
|
9
9
|
},
|
|
@@ -11,20 +11,21 @@ function Q(a, r) {
|
|
|
11
11
|
});
|
|
12
12
|
}
|
|
13
13
|
function ne(a, r) {
|
|
14
|
-
const { id:
|
|
15
|
-
return
|
|
16
|
-
params: { ...f }
|
|
14
|
+
const { id: u, ...f } = a;
|
|
15
|
+
return m.Get(`/blackWhiteList/delete/${u}`, {
|
|
16
|
+
params: { ...f },
|
|
17
|
+
meta: { pathParams: [u] }
|
|
17
18
|
});
|
|
18
19
|
}
|
|
19
20
|
function oe(a, r) {
|
|
20
|
-
return
|
|
21
|
+
return m.Post("/blackWhiteList/getBlackWhiteListPageList", a, {
|
|
21
22
|
headers: {
|
|
22
23
|
"Content-Type": "application/json"
|
|
23
24
|
}
|
|
24
25
|
});
|
|
25
26
|
}
|
|
26
27
|
function X(a, r) {
|
|
27
|
-
return
|
|
28
|
+
return m.Post("/blackWhiteList/updateBlackWhiteList", a, {
|
|
28
29
|
headers: {
|
|
29
30
|
"Content-Type": "application/json"
|
|
30
31
|
},
|
|
@@ -38,13 +39,13 @@ const ae = /* @__PURE__ */ z({
|
|
|
38
39
|
type: {}
|
|
39
40
|
},
|
|
40
41
|
emits: ["submit"],
|
|
41
|
-
setup(a, { expose: r, emit:
|
|
42
|
-
const f = a, w =
|
|
42
|
+
setup(a, { expose: r, emit: u }) {
|
|
43
|
+
const f = a, w = u, x = {
|
|
43
44
|
ip: [{ required: !0, validator: P, trigger: ["blur", "change"] }],
|
|
44
45
|
enable: [{ required: !0, message: "请选择是否开启", trigger: ["blur", "change"] }]
|
|
45
|
-
}, _ =
|
|
46
|
+
}, _ = d(""), [g, h] = y(!1), b = d(), C = {
|
|
46
47
|
enable: !0
|
|
47
|
-
}, t =
|
|
48
|
+
}, t = d({}), k = d(!1);
|
|
48
49
|
function P(p, e, s) {
|
|
49
50
|
e ? /^(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})\.(25[0-5]|2[0-4]\d|[01]?\d{1,2})$/.test(e) ? s() : s(new Error("ip地址格式不正确")) : s(new Error("请输入ip地址"));
|
|
50
51
|
}
|
|
@@ -70,7 +71,7 @@ const ae = /* @__PURE__ */ z({
|
|
|
70
71
|
return r({
|
|
71
72
|
open: T
|
|
72
73
|
}), (p, e) => {
|
|
73
|
-
const s = A,
|
|
74
|
+
const s = A, c = S, $ = G, D = N, F = E, B = V, I = O, j = q;
|
|
74
75
|
return J(), H(j, {
|
|
75
76
|
open: n(g),
|
|
76
77
|
"onUpdate:open": e[4] || (e[4] = (l) => K(g) ? g.value = l : null),
|
|
@@ -115,7 +116,7 @@ const ae = /* @__PURE__ */ z({
|
|
|
115
116
|
"label-col": { span: 4 }
|
|
116
117
|
}, {
|
|
117
118
|
default: i(() => [
|
|
118
|
-
o(
|
|
119
|
+
o(c, {
|
|
119
120
|
label: "来源ip地址",
|
|
120
121
|
name: "ip"
|
|
121
122
|
}, {
|
|
@@ -128,7 +129,7 @@ const ae = /* @__PURE__ */ z({
|
|
|
128
129
|
]),
|
|
129
130
|
_: 1
|
|
130
131
|
}),
|
|
131
|
-
o(
|
|
132
|
+
o(c, {
|
|
132
133
|
label: "状态",
|
|
133
134
|
name: "enable"
|
|
134
135
|
}, {
|
|
@@ -140,7 +141,7 @@ const ae = /* @__PURE__ */ z({
|
|
|
140
141
|
]),
|
|
141
142
|
_: 1
|
|
142
143
|
}),
|
|
143
|
-
o(
|
|
144
|
+
o(c, {
|
|
144
145
|
label: "描述",
|
|
145
146
|
name: "description"
|
|
146
147
|
}, {
|
|
@@ -2,7 +2,7 @@ import { Drawer as L, Form as $, FormItem as h, Input as F, Select as O, Textare
|
|
|
2
2
|
import { defineComponent as G, reactive as H, ref as c, createBlock as J, openBlock as K, unref as t, isRef as N, withCtx as l, createVNode as o, createTextVNode as x } from "vue";
|
|
3
3
|
import { message as Q } from "ant-design-vue";
|
|
4
4
|
import { u as w, q as W } from "./index.js";
|
|
5
|
-
import { g as X, a as Y } from "./gangweijiekou-
|
|
5
|
+
import { g as X, a as Y } from "./gangweijiekou-CUGlx4Ni.js";
|
|
6
6
|
var f = /* @__PURE__ */ ((r) => (r.ADD = "新增", r.EDIT = "编辑", r.REMOVE = "删除", r))(f || {});
|
|
7
7
|
const ae = /* @__PURE__ */ G({
|
|
8
8
|
name: "DrawerPosition",
|