@pubinfo/module-rbac 2.0.12 → 2.0.14
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/{DynamicRoutesForm-DzOGoyf3.js → DynamicRoutesForm-BU4EAISs.js} +1 -1
- package/dist/{DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js → DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js} +6 -6
- package/dist/{IconSelect-CkqLR5Dg.js → IconSelect-DtNpk3Rj.js} +1 -1
- package/dist/IconSelect.css +1 -1
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js +757 -0
- package/dist/{ImportExport-BD8o7IvB.js → ImportExport-DAe_Sl13.js} +1 -1
- package/dist/{ImportExport.vue_vue_type_script_setup_true_lang-BzdP0ADd.js → ImportExport.vue_vue_type_script_setup_true_lang-CV0DrMvw.js} +1 -1
- package/dist/LayoutForm-C-vNwp3q.js +173 -0
- package/dist/LayoutForm.css +1 -0
- package/dist/{MetaForm-DtlyvzoM.js → MetaForm-13JASu7v.js} +142 -105
- package/dist/MetaForm.css +1 -1
- package/dist/{ResourceEdit-WpEdbzaw.js → ResourceEdit-D2YFu-Gk.js} +1 -1
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-Cb0mKIlJ.js +429 -0
- package/dist/{ResourceRelation-DGiGYy6V.js → ResourceRelation-CeM9Eq39.js} +10 -11
- package/dist/{ResourceRelation-26FnHEfU.js → ResourceRelation-qhIdXLAy.js} +12 -13
- package/dist/{TenantEdit-B24X5nND.js → TenantEdit-C61O1pSu.js} +1 -1
- package/dist/{TenantEdit.vue_vue_type_script_setup_true_lang-Bu5HcJJv.js → TenantEdit.vue_vue_type_script_setup_true_lang-BwsA9hth.js} +39 -40
- package/dist/{UserAuthorization-Co6JV0py.js → UserAuthorization-rqttVub5.js} +9 -10
- package/dist/components/OrgUserSelector/OrgSelector.vue.d.ts +1 -1
- package/dist/components/OrgUserSelector/UserSelector.vue.d.ts +1 -1
- package/dist/components/ResourceIcones/BoxColorPicker.vue.d.ts +3 -0
- package/dist/components/ResourceIcones/Select.vue.d.ts +3 -0
- package/dist/{createAndEditDataPermission-BhOLGGna.js → createAndEditDataPermission-DPeFulie.js} +1 -1
- package/dist/{createAndEditDataPermission.vue_vue_type_script_setup_true_lang-D5wInKwO.js → createAndEditDataPermission.vue_vue_type_script_setup_true_lang-DlUIYtif.js} +98 -101
- package/dist/{drawerRole-DHLv47_z.js → drawerRole-CXGVqxPX.js} +1 -1
- package/dist/{drawerRole-DUWRM43j.js → drawerRole-CfJjf3v_.js} +1 -1
- package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BET5ukoo.js → drawerRole.vue_vue_type_script_setup_true_lang-B-VZS3gq.js} +42 -43
- package/dist/{drawerRole.vue_vue_type_script_setup_true_lang-BK3zjhop.js → drawerRole.vue_vue_type_script_setup_true_lang-B1eT0e_Q.js} +1 -1
- package/dist/{enum-CjyX3J0o.js → enum-D5iPiZiT.js} +0 -1
- package/dist/{index-Csfu3kAr.js → index-B5aP0re3.js} +6 -7
- package/dist/{index-DwpOyfRe.js → index-BEB4liGe.js} +8 -9
- package/dist/{index-DfuGXjYh.js → index-BNwGLzXe.js} +21 -22
- package/dist/{index-DdoOaWs-.js → index-BPkJOFXE.js} +3 -3
- package/dist/{index-ioZh8Qom.js → index-BXvJhqJD.js} +6 -7
- package/dist/{index-BFx8F5lO.js → index-C2G4xRrJ.js} +8 -9
- package/dist/{index-x9Iim2eD.js → index-C5WD-YUu.js} +7 -8
- package/dist/{index-rNYtJ7Om.js → index-CbVJdR5M.js} +6 -7
- package/dist/{index-DECno0gv.js → index-ChWnVs6j.js} +2 -2
- package/dist/{index-C9hHp4Iw.js → index-CoZM8pyH.js} +1 -1
- package/dist/{index-B2tTTlBE.js → index-Copy5kiW.js} +276 -273
- package/dist/index-D3Xw_aOi.js +144 -0
- package/dist/{index-CCw3ZJgQ.js → index-DHVEXch0.js} +8 -9
- package/dist/{index-COWUocfL.js → index-Dl0hWfIE.js} +7 -8
- package/dist/{index-BIpmC999.js → index-En8oOf9e.js} +8 -9
- package/dist/{index-ZQuRR9fG.js → index-VZuizuKs.js} +1 -1
- package/dist/{index-BwWrE3dY.js → index-XhYtVVT9.js} +6 -7
- package/dist/{index-BUmMaC21.js → index-nAPHtTM7.js} +5 -6
- package/dist/{index-y9CQTo95.js → index-qn7U9T51.js} +9 -10
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2578 -2303
- package/dist/index10.css +1 -1
- package/dist/index11.css +1 -1
- package/dist/index12.css +1 -1
- package/dist/index13.css +1 -1
- package/dist/index14.css +1 -1
- package/dist/index15.css +1 -1
- package/dist/index16.css +1 -1
- package/dist/index17.css +1 -1
- package/dist/index4.css +1 -1
- package/dist/index5.css +1 -1
- package/dist/index6.css +1 -1
- package/dist/index7.css +1 -1
- package/dist/index8.css +1 -1
- package/dist/index9.css +1 -1
- package/dist/{loginHistoryDetail-B6eI-TmJ.js → loginHistoryDetail-BZVwG8m2.js} +1 -1
- package/dist/{login_history-B4Q1NCJn.js → login_history-CMZGS2PN.js} +5 -6
- package/dist/{operateHistoryDetail-CLZ9lyua.js → operateHistoryDetail-Badx3zl-.js} +1 -1
- package/dist/{operate_history-KASZ7_JO.js → operate_history-B42WNY1u.js} +5 -6
- package/dist/{setItem-BwMHXOUm.js → setItem-Blb3dox4.js} +1 -1
- package/dist/{useAppAndResource-38HCqYKa.js → useAppAndResource-DDywX2iz.js} +11 -12
- package/dist/views/data-permission/components/createAndEditDataPermission.vue.d.ts +3 -3
- package/dist/views/data-permission/index.vue.d.ts +3 -3
- package/dist/views/resource/components/LayoutForm.vue.d.ts +10 -0
- package/dist/views/resource/hooks/useLayoutForm.d.ts +12 -0
- package/dist/views/resource/model.d.ts +13 -0
- package/package.json +7 -7
- package/src/components/ResourceIcones/BoxColorPicker.vue +64 -8
- package/src/components/ResourceIcones/Select.vue +13 -5
- package/src/index.ts +1 -0
- package/src/views/organization/index.vue +17 -10
- package/src/views/resource/components/DynamicRoutesForm.vue +1 -1
- package/src/views/resource/components/IconSelect.vue +7 -3
- package/src/views/resource/components/LayoutForm.vue +92 -0
- package/src/views/resource/components/MetaForm.vue +11 -0
- package/src/views/resource/components/ResourceEdit.vue +26 -8
- package/src/views/resource/enum.ts +0 -1
- package/src/views/resource/hooks/useLayoutForm.ts +57 -0
- package/src/views/resource/hooks/useMetaForm.ts +4 -0
- package/src/views/resource/index.vue +0 -3
- package/src/views/resource/model.ts +23 -1
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js +0 -703
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-id6jZAko.js +0 -392
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +0 -9
- package/dist/enum-CTUzwCYG.js +0 -4
- package/dist/index-53oBz1jp.js +0 -299
- package/dist/index-DVt5k9xh.js +0 -145
- package/dist/index18.css +0 -1
package/dist/MetaForm.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.form-item-bottom-0[data-v-
|
|
1
|
+
.form-item-bottom-0[data-v-220e86d6],.ant-form-item[data-v-220e86d6]{margin-bottom:0}
|
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { Drawer as ne, Spin as le, Form as re, Row as se, Col as ue, FormItem as ie, Tag as me, RadioGroup as de, Input as pe, InputNumber as fe, Textarea as ce, Switch as _e, Select as ve, Space as ge, Button as be } from "ant-design-vue/es";
|
|
2
|
+
import { DatabaseOutlined as ye } from "@ant-design/icons-vue";
|
|
3
|
+
import { defineComponent as Ne, ref as L, reactive as De, computed as E, createBlock as p, openBlock as d, unref as t, isRef as v, withCtx as n, createVNode as o, createCommentVNode as g, createTextVNode as b, toDisplayString as x, createElementBlock as Ie } from "vue";
|
|
4
|
+
import { message as Pe } from "ant-design-vue";
|
|
5
|
+
import { RESOURCE_TYPE as s, PartyLoginModal as Re } from "pubinfo";
|
|
6
|
+
import { u as C } from "./index.js";
|
|
7
|
+
import { d as Ue, p as Ee, e as Ce } from "./ziyuanjiekou-BC65-bFK.js";
|
|
8
|
+
import { D as Te, b as Ae } from "./enum-DkSNwGbC.js";
|
|
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-13JASu7v.js";
|
|
11
|
+
import { _ as xe } from "./DynamicRoutesForm.vue_vue_type_script_setup_true_lang-bEqJ03T_.js";
|
|
12
|
+
import { _ as ke } from "./IconSelect.vue_vue_type_script_setup_true_lang-D450SiKg.js";
|
|
13
|
+
import we from "./LayoutForm-C-vNwp3q.js";
|
|
14
|
+
import { c as k } from "./cloneDeep-BOLZdR62.js";
|
|
15
|
+
const Se = {
|
|
16
|
+
key: 0,
|
|
17
|
+
class: "flex items-center space-x-1"
|
|
18
|
+
}, We = /* @__PURE__ */ Ne({
|
|
19
|
+
name: "ResourceEdit",
|
|
20
|
+
__name: "ResourceEdit",
|
|
21
|
+
props: {
|
|
22
|
+
dataSource: {}
|
|
23
|
+
},
|
|
24
|
+
emits: ["submit"],
|
|
25
|
+
setup(w, { expose: S, emit: F }) {
|
|
26
|
+
const B = w, q = F, [P, R] = C(!1), T = L(), e = L({}), f = De({
|
|
27
|
+
title: "",
|
|
28
|
+
record: {},
|
|
29
|
+
initData: {
|
|
30
|
+
type: s.DYNAMIC_APP,
|
|
31
|
+
sort: 0,
|
|
32
|
+
enable: !0,
|
|
33
|
+
enableDataPermission: !1,
|
|
34
|
+
dataPermissionType: Te.ALL,
|
|
35
|
+
meta: {
|
|
36
|
+
url: "",
|
|
37
|
+
component: ""
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}), Y = {
|
|
41
|
+
name: [{ required: !0, message: "请输入资源名称", trigger: "blur" }],
|
|
42
|
+
type: [{ required: !0, message: "请选择资源类型", trigger: "change" }],
|
|
43
|
+
code: [{ required: !0, message: "请输入资源编码", trigger: "blur" }],
|
|
44
|
+
sort: [{ type: "number", required: !0, message: "请输入排序", trigger: "blur" }],
|
|
45
|
+
enable: [{ type: "boolean", required: !0, message: "请选择是否启用", trigger: "change" }]
|
|
46
|
+
}, c = E(() => $(B.dataSource, (r) => r.id === e.value.parentId) ?? {});
|
|
47
|
+
function $(r, a) {
|
|
48
|
+
const m = [...r];
|
|
49
|
+
for (const u of m) {
|
|
50
|
+
if (a(u))
|
|
51
|
+
return u;
|
|
52
|
+
u.children && m.push(...u.children);
|
|
53
|
+
}
|
|
54
|
+
return null;
|
|
55
|
+
}
|
|
56
|
+
const U = E(() => {
|
|
57
|
+
switch (c.value?.type) {
|
|
58
|
+
case s.APP:
|
|
59
|
+
case s.DYNAMIC_APP:
|
|
60
|
+
return D.filter((r) => [s.INDEX, s.MENU, s.IFRAME, s.LINK].includes(r.value));
|
|
61
|
+
case s.INDEX:
|
|
62
|
+
return D.filter((r) => [s.INDEX, s.MENU, s.IFRAME, s.LINK, s.NON_MENU].includes(r.value));
|
|
63
|
+
case s.MENU:
|
|
64
|
+
case s.NON_MENU:
|
|
65
|
+
return D.filter((r) => [s.BUTTON, s.NON_MENU].includes(r.value));
|
|
66
|
+
case s.BUTTON:
|
|
67
|
+
case s.IFRAME:
|
|
68
|
+
case s.LINK:
|
|
69
|
+
return [];
|
|
70
|
+
default:
|
|
71
|
+
return D.filter((r) => [s.APP, s.DYNAMIC_APP].includes(r.value));
|
|
72
|
+
}
|
|
73
|
+
}), { show: y, resetIncompatibleOptions: A } = Oe(e), h = E(() => e.value.meta?.iframe || e.value.meta?.link || ""), [K, M] = C(!1);
|
|
74
|
+
async function X(r, a) {
|
|
75
|
+
f.title = r, e.value = k(f.initData), R(!0);
|
|
76
|
+
try {
|
|
77
|
+
if (M(!0), r === I.ADD_CHILD && (e.value.parentId = a?.id, e.value.type = U.value[0].value, A()), r === I.EDIT) {
|
|
78
|
+
const m = await Ue({ id: a?.id });
|
|
79
|
+
m.success && (e.value = m.data ?? {}, e.value.meta = { ...Le, ...m.data?.meta }, A());
|
|
80
|
+
}
|
|
81
|
+
} finally {
|
|
82
|
+
M(!1);
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
const [z, O] = C(!1);
|
|
86
|
+
function G() {
|
|
87
|
+
T.value?.validate().then(() => {
|
|
88
|
+
const r = k({
|
|
89
|
+
...e.value,
|
|
90
|
+
icon: e.value.icon || void 0
|
|
91
|
+
});
|
|
92
|
+
y.value.dataPermission || (r.enableDataPermission = !1), y.value.devMode && e.value.meta?.isDev && console.warn("开发模式应用的子路由将不会在生产环境中注册到vue-router,请确保这是预期行为。"), r.meta?.cache && r.meta.cacheName && (r.meta.cache = r.meta.cacheName.split(",")), r.meta?.noCache && (r.meta.noCache = r.meta.noCache.split(",")), r.meta?.cache || delete r?.meta?.noCache, delete r?.meta?.cacheName;
|
|
93
|
+
const a = f.title === I.EDIT ? Ee(r) : Ce({ parentId: "", ...r });
|
|
94
|
+
O(!0), a.then((m) => {
|
|
95
|
+
m?.success && (Pe.success(`${f.title}成功!`), R(!1), q("submit"));
|
|
96
|
+
}).finally(() => O(!1));
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
return S({
|
|
100
|
+
open: X
|
|
101
|
+
}), (r, a) => {
|
|
102
|
+
const m = ye, u = ie, i = ue, H = me, j = de, _ = se, N = pe, J = fe, Q = ce, W = _e, Z = ve, ee = re, te = le, V = be, ae = ge, oe = ne;
|
|
103
|
+
return d(), p(oe, {
|
|
104
|
+
open: t(P),
|
|
105
|
+
"onUpdate:open": a[15] || (a[15] = (l) => v(P) ? P.value = l : null),
|
|
106
|
+
title: t(f).title,
|
|
107
|
+
placement: "right",
|
|
108
|
+
width: 800,
|
|
109
|
+
"destroy-on-close": "",
|
|
110
|
+
"footer-style": { textAlign: "right" }
|
|
111
|
+
}, {
|
|
112
|
+
footer: n(() => [
|
|
113
|
+
o(ae, null, {
|
|
114
|
+
default: n(() => [
|
|
115
|
+
o(V, {
|
|
116
|
+
onClick: a[13] || (a[13] = (l) => t(R)(!1))
|
|
117
|
+
}, {
|
|
118
|
+
default: n(() => a[17] || (a[17] = [
|
|
119
|
+
b(" 取消 ")
|
|
120
|
+
])),
|
|
121
|
+
_: 1,
|
|
122
|
+
__: [17]
|
|
123
|
+
}),
|
|
124
|
+
o(V, {
|
|
125
|
+
type: "primary",
|
|
126
|
+
loading: t(z),
|
|
127
|
+
onClick: a[14] || (a[14] = (l) => G())
|
|
128
|
+
}, {
|
|
129
|
+
default: n(() => a[18] || (a[18] = [
|
|
130
|
+
b(" 提交 ")
|
|
131
|
+
])),
|
|
132
|
+
_: 1,
|
|
133
|
+
__: [18]
|
|
134
|
+
}, 8, ["loading"])
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
]),
|
|
139
|
+
default: n(() => [
|
|
140
|
+
o(te, { spinning: t(K) }, {
|
|
141
|
+
default: n(() => [
|
|
142
|
+
o(ee, {
|
|
143
|
+
ref_key: "formRef",
|
|
144
|
+
ref: T,
|
|
145
|
+
model: t(e),
|
|
146
|
+
rules: Y,
|
|
147
|
+
"label-col": { style: { width: "100px" } }
|
|
148
|
+
}, {
|
|
149
|
+
default: n(() => [
|
|
150
|
+
o(_, { gutter: 8 }, {
|
|
151
|
+
default: n(() => [
|
|
152
|
+
t(c)?.name ? (d(), p(i, {
|
|
153
|
+
key: 0,
|
|
154
|
+
span: 24
|
|
155
|
+
}, {
|
|
156
|
+
default: n(() => [
|
|
157
|
+
o(u, { name: "parentId" }, {
|
|
158
|
+
label: n(() => [
|
|
159
|
+
o(m, { class: "mr-1" }),
|
|
160
|
+
a[16] || (a[16] = b(" 父资源 "))
|
|
161
|
+
]),
|
|
162
|
+
default: n(() => [
|
|
163
|
+
b(" " + x(t(c)?.name), 1)
|
|
164
|
+
]),
|
|
165
|
+
_: 1
|
|
166
|
+
})
|
|
167
|
+
]),
|
|
168
|
+
_: 1
|
|
169
|
+
})) : g("", !0),
|
|
170
|
+
o(i, { span: 24 }, {
|
|
171
|
+
default: n(() => [
|
|
172
|
+
o(u, {
|
|
173
|
+
label: "资源类型",
|
|
174
|
+
name: "type",
|
|
175
|
+
tooltip: t(c)?.type ? "" : "动态应用为后端路由,应用为前端路由"
|
|
176
|
+
}, {
|
|
177
|
+
default: n(() => [
|
|
178
|
+
t(f).title === t(I).EDIT ? (d(), Ie("div", Se, [
|
|
179
|
+
t(e).type ? (d(), p(H, {
|
|
180
|
+
key: 0,
|
|
181
|
+
color: t(Me)[Number(t(e).type)],
|
|
182
|
+
bordered: !1
|
|
183
|
+
}, {
|
|
184
|
+
default: n(() => [
|
|
185
|
+
b(x(t(U).find((l) => l.value === t(e).type)?.label), 1)
|
|
186
|
+
]),
|
|
187
|
+
_: 1
|
|
188
|
+
}, 8, ["color"])) : g("", !0)
|
|
189
|
+
])) : (d(), p(j, {
|
|
190
|
+
key: 1,
|
|
191
|
+
value: t(e).type,
|
|
192
|
+
"onUpdate:value": a[0] || (a[0] = (l) => t(e).type = l),
|
|
193
|
+
options: t(U),
|
|
194
|
+
"option-type": "button",
|
|
195
|
+
"button-style": "solid"
|
|
196
|
+
}, null, 8, ["value", "options"]))
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
}, 8, ["tooltip"])
|
|
200
|
+
]),
|
|
201
|
+
_: 1
|
|
202
|
+
}),
|
|
203
|
+
o(i, { span: 24 }, {
|
|
204
|
+
default: n(() => [
|
|
205
|
+
o(ke, {
|
|
206
|
+
modelValue: t(e),
|
|
207
|
+
"onUpdate:modelValue": a[1] || (a[1] = (l) => v(e) ? e.value = l : null)
|
|
208
|
+
}, null, 8, ["modelValue"])
|
|
209
|
+
]),
|
|
210
|
+
_: 1
|
|
211
|
+
})
|
|
212
|
+
]),
|
|
213
|
+
_: 1
|
|
214
|
+
}),
|
|
215
|
+
o(_, { gutter: 8 }, {
|
|
216
|
+
default: n(() => [
|
|
217
|
+
o(i, { span: 12 }, {
|
|
218
|
+
default: n(() => [
|
|
219
|
+
o(u, {
|
|
220
|
+
label: "资源名称",
|
|
221
|
+
name: "name"
|
|
222
|
+
}, {
|
|
223
|
+
default: n(() => [
|
|
224
|
+
o(N, {
|
|
225
|
+
value: t(e).name,
|
|
226
|
+
"onUpdate:value": a[2] || (a[2] = (l) => t(e).name = l),
|
|
227
|
+
placeholder: "请输入资源名称",
|
|
228
|
+
maxlength: 128
|
|
229
|
+
}, null, 8, ["value"])
|
|
230
|
+
]),
|
|
231
|
+
_: 1
|
|
232
|
+
})
|
|
233
|
+
]),
|
|
234
|
+
_: 1
|
|
235
|
+
}),
|
|
236
|
+
o(xe, {
|
|
237
|
+
modelValue: t(e),
|
|
238
|
+
"onUpdate:modelValue": a[3] || (a[3] = (l) => v(e) ? e.value = l : null),
|
|
239
|
+
parent: t(c)
|
|
240
|
+
}, null, 8, ["modelValue", "parent"]),
|
|
241
|
+
o(i, { span: 12 }, {
|
|
242
|
+
default: n(() => [
|
|
243
|
+
o(u, {
|
|
244
|
+
label: "资源编码",
|
|
245
|
+
name: "code"
|
|
246
|
+
}, {
|
|
247
|
+
default: n(() => [
|
|
248
|
+
o(N, {
|
|
249
|
+
value: t(e).code,
|
|
250
|
+
"onUpdate:value": a[4] || (a[4] = (l) => t(e).code = l),
|
|
251
|
+
placeholder: "请输入资源编码(权限码)",
|
|
252
|
+
maxlength: 50
|
|
253
|
+
}, null, 8, ["value"])
|
|
254
|
+
]),
|
|
255
|
+
_: 1
|
|
256
|
+
})
|
|
257
|
+
]),
|
|
258
|
+
_: 1
|
|
259
|
+
}),
|
|
260
|
+
o(i, { span: 12 }, {
|
|
261
|
+
default: n(() => [
|
|
262
|
+
o(u, {
|
|
263
|
+
label: "接口权限",
|
|
264
|
+
name: "permissionCode"
|
|
265
|
+
}, {
|
|
266
|
+
default: n(() => [
|
|
267
|
+
o(N, {
|
|
268
|
+
value: t(e).permissionCode,
|
|
269
|
+
"onUpdate:value": a[5] || (a[5] = (l) => t(e).permissionCode = l),
|
|
270
|
+
placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
|
|
271
|
+
maxlength: 256
|
|
272
|
+
}, null, 8, ["value"])
|
|
273
|
+
]),
|
|
274
|
+
_: 1
|
|
275
|
+
})
|
|
276
|
+
]),
|
|
277
|
+
_: 1
|
|
278
|
+
}),
|
|
279
|
+
o(i, { span: 12 }, {
|
|
280
|
+
default: n(() => [
|
|
281
|
+
o(u, {
|
|
282
|
+
label: "显示顺序",
|
|
283
|
+
name: "sort"
|
|
284
|
+
}, {
|
|
285
|
+
default: n(() => [
|
|
286
|
+
o(J, {
|
|
287
|
+
value: t(e).sort,
|
|
288
|
+
"onUpdate:value": a[6] || (a[6] = (l) => t(e).sort = l),
|
|
289
|
+
max: 999
|
|
290
|
+
}, null, 8, ["value"])
|
|
291
|
+
]),
|
|
292
|
+
_: 1
|
|
293
|
+
})
|
|
294
|
+
]),
|
|
295
|
+
_: 1
|
|
296
|
+
})
|
|
297
|
+
]),
|
|
298
|
+
_: 1
|
|
299
|
+
}),
|
|
300
|
+
t(y).dynamic ? (d(), p(_, {
|
|
301
|
+
key: 0,
|
|
302
|
+
gutter: 8
|
|
303
|
+
}, {
|
|
304
|
+
default: n(() => [
|
|
305
|
+
o(i, { span: 24 }, {
|
|
306
|
+
default: n(() => [
|
|
307
|
+
o(u, {
|
|
308
|
+
label: "对接第三方",
|
|
309
|
+
name: "description",
|
|
310
|
+
"label-col": { span: 3 }
|
|
311
|
+
}, {
|
|
312
|
+
default: n(() => [
|
|
313
|
+
o(t(Re), {
|
|
314
|
+
modelValue: t(e).meta.partyLogin,
|
|
315
|
+
"onUpdate:modelValue": a[7] || (a[7] = (l) => t(e).meta.partyLogin = l),
|
|
316
|
+
"target-url": t(h)
|
|
317
|
+
}, {
|
|
318
|
+
trigger: n(() => [
|
|
319
|
+
o(N, {
|
|
320
|
+
value: t(e).meta.partyLogin && t(e).meta.partyLogin.length > 0 ? "已配置第三方登录流程" : "",
|
|
321
|
+
placeholder: "配置第三方登录流程",
|
|
322
|
+
readonly: ""
|
|
323
|
+
}, null, 8, ["value"])
|
|
324
|
+
]),
|
|
325
|
+
_: 1
|
|
326
|
+
}, 8, ["modelValue", "target-url"])
|
|
327
|
+
]),
|
|
328
|
+
_: 1
|
|
329
|
+
})
|
|
330
|
+
]),
|
|
331
|
+
_: 1
|
|
332
|
+
})
|
|
333
|
+
]),
|
|
334
|
+
_: 1
|
|
335
|
+
})) : g("", !0),
|
|
336
|
+
o(_, { gutter: 8 }, {
|
|
337
|
+
default: n(() => [
|
|
338
|
+
o(i, { span: 24 }, {
|
|
339
|
+
default: n(() => [
|
|
340
|
+
o(u, {
|
|
341
|
+
label: "描述",
|
|
342
|
+
name: "description",
|
|
343
|
+
"label-col": { span: 3 }
|
|
344
|
+
}, {
|
|
345
|
+
default: n(() => [
|
|
346
|
+
o(Q, {
|
|
347
|
+
value: t(e).description,
|
|
348
|
+
"onUpdate:value": a[8] || (a[8] = (l) => t(e).description = l),
|
|
349
|
+
placeholder: "请输入描述",
|
|
350
|
+
maxlength: 255,
|
|
351
|
+
"auto-size": { minRows: 2 },
|
|
352
|
+
"show-count": ""
|
|
353
|
+
}, null, 8, ["value"])
|
|
354
|
+
]),
|
|
355
|
+
_: 1
|
|
356
|
+
})
|
|
357
|
+
]),
|
|
358
|
+
_: 1
|
|
359
|
+
})
|
|
360
|
+
]),
|
|
361
|
+
_: 1
|
|
362
|
+
}),
|
|
363
|
+
t(y).dataPermission ? (d(), p(_, {
|
|
364
|
+
key: 1,
|
|
365
|
+
gutter: 8
|
|
366
|
+
}, {
|
|
367
|
+
default: n(() => [
|
|
368
|
+
o(i, { span: 8 }, {
|
|
369
|
+
default: n(() => [
|
|
370
|
+
o(u, {
|
|
371
|
+
label: "启用数据权限",
|
|
372
|
+
name: "enableDataPermission"
|
|
373
|
+
}, {
|
|
374
|
+
default: n(() => [
|
|
375
|
+
o(W, {
|
|
376
|
+
checked: t(e).enableDataPermission,
|
|
377
|
+
"onUpdate:checked": a[9] || (a[9] = (l) => t(e).enableDataPermission = l)
|
|
378
|
+
}, null, 8, ["checked"])
|
|
379
|
+
]),
|
|
380
|
+
_: 1
|
|
381
|
+
})
|
|
382
|
+
]),
|
|
383
|
+
_: 1
|
|
384
|
+
}),
|
|
385
|
+
o(i, { span: 16 }, {
|
|
386
|
+
default: n(() => [
|
|
387
|
+
t(e).enableDataPermission ? (d(), p(u, {
|
|
388
|
+
key: 0,
|
|
389
|
+
label: "数据权限规则",
|
|
390
|
+
name: "dataPermissionType"
|
|
391
|
+
}, {
|
|
392
|
+
default: n(() => [
|
|
393
|
+
o(Z, {
|
|
394
|
+
value: t(e).dataPermissionType,
|
|
395
|
+
"onUpdate:value": a[10] || (a[10] = (l) => t(e).dataPermissionType = l),
|
|
396
|
+
options: t(Ae)
|
|
397
|
+
}, null, 8, ["value", "options"])
|
|
398
|
+
]),
|
|
399
|
+
_: 1
|
|
400
|
+
})) : g("", !0)
|
|
401
|
+
]),
|
|
402
|
+
_: 1
|
|
403
|
+
})
|
|
404
|
+
]),
|
|
405
|
+
_: 1
|
|
406
|
+
})) : g("", !0),
|
|
407
|
+
o(Ve, {
|
|
408
|
+
modelValue: t(e),
|
|
409
|
+
"onUpdate:modelValue": a[11] || (a[11] = (l) => v(e) ? e.value = l : null)
|
|
410
|
+
}, null, 8, ["modelValue"]),
|
|
411
|
+
o(we, {
|
|
412
|
+
modelValue: t(e),
|
|
413
|
+
"onUpdate:modelValue": a[12] || (a[12] = (l) => v(e) ? e.value = l : null)
|
|
414
|
+
}, null, 8, ["modelValue"])
|
|
415
|
+
]),
|
|
416
|
+
_: 1
|
|
417
|
+
}, 8, ["model"])
|
|
418
|
+
]),
|
|
419
|
+
_: 1
|
|
420
|
+
}, 8, ["spinning"])
|
|
421
|
+
]),
|
|
422
|
+
_: 1
|
|
423
|
+
}, 8, ["open", "title"]);
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
});
|
|
427
|
+
export {
|
|
428
|
+
We as _
|
|
429
|
+
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Drawer as x, Avatar as h } from "ant-design-vue/es";
|
|
2
|
-
import { defineComponent as k, ref as b, createBlock as v, openBlock as d, unref as s, isRef as w, withCtx as l, createVNode as
|
|
2
|
+
import { defineComponent as k, ref as b, createBlock as v, openBlock as d, unref as s, isRef as w, withCtx as l, createVNode as u, createElementBlock as N, createCommentVNode as I, createElementVNode as C, normalizeStyle as z, createTextVNode as P, toDisplayString as p } from "vue";
|
|
3
3
|
import { ProTable as S } from "@pubinfo/pro-components";
|
|
4
4
|
import { theme as T } from "ant-design-vue";
|
|
5
|
-
import { u as V } from "./index.js";
|
|
6
|
-
import { e as
|
|
7
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
import { u as V, _ as B } from "./index.js";
|
|
6
|
+
import { e as A } from "./jiaosejiekou-p42Hm9h3.js";
|
|
8
7
|
import './ResourceRelation2.css';const D = {
|
|
9
8
|
key: 0,
|
|
10
9
|
class: "w-full truncate space-x-2"
|
|
@@ -15,7 +14,7 @@ import './ResourceRelation2.css';const D = {
|
|
|
15
14
|
const { token: f } = T.useToken(), [a, _] = V(!1), c = b("");
|
|
16
15
|
async function g(t) {
|
|
17
16
|
t.pageSize = 15, t.roleId = c.value;
|
|
18
|
-
const { current: o, pageSize: r, ...n } = t, e = await
|
|
17
|
+
const { current: o, pageSize: r, ...n } = t, e = await A({
|
|
19
18
|
currentPage: o,
|
|
20
19
|
pageSize: r,
|
|
21
20
|
...n
|
|
@@ -56,7 +55,7 @@ import './ResourceRelation2.css';const D = {
|
|
|
56
55
|
"body-style": { paddingLeft: 0, paddingRight: 0 }
|
|
57
56
|
}, {
|
|
58
57
|
default: l(() => [
|
|
59
|
-
|
|
58
|
+
u(s(S), {
|
|
60
59
|
"row-key": "id",
|
|
61
60
|
request: g,
|
|
62
61
|
columns: y,
|
|
@@ -66,16 +65,16 @@ import './ResourceRelation2.css';const D = {
|
|
|
66
65
|
}, {
|
|
67
66
|
bodyCell: l(({ column: e, text: i }) => [
|
|
68
67
|
e.dataIndex === "realName" ? (d(), N("div", D, [
|
|
69
|
-
|
|
68
|
+
u(r, {
|
|
70
69
|
size: "small",
|
|
71
70
|
style: z({ backgroundColor: s(f).colorPrimary })
|
|
72
71
|
}, {
|
|
73
72
|
default: l(() => [
|
|
74
|
-
P(
|
|
73
|
+
P(p(i[0]), 1)
|
|
75
74
|
]),
|
|
76
75
|
_: 2
|
|
77
76
|
}, 1032, ["style"]),
|
|
78
|
-
C("span", null,
|
|
77
|
+
C("span", null, p(i), 1)
|
|
79
78
|
])) : I("", !0)
|
|
80
79
|
]),
|
|
81
80
|
_: 1
|
|
@@ -85,7 +84,7 @@ import './ResourceRelation2.css';const D = {
|
|
|
85
84
|
}, 8, ["open"]);
|
|
86
85
|
};
|
|
87
86
|
}
|
|
88
|
-
}),
|
|
87
|
+
}), H = /* @__PURE__ */ B(E, [["__scopeId", "data-v-f5867bc7"]]);
|
|
89
88
|
export {
|
|
90
|
-
|
|
89
|
+
H as default
|
|
91
90
|
};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { Drawer as N, Segmented as O, Tag as P } from "ant-design-vue/es";
|
|
2
|
-
import { defineComponent as S, ref as s, computed as T, createBlock as g, openBlock as c, unref as a, isRef as x, withCtx as
|
|
2
|
+
import { defineComponent as S, ref as s, computed as T, createBlock as g, openBlock as c, unref as a, isRef as x, withCtx as u, createElementVNode as v, createVNode as R, createElementBlock as V, createCommentVNode as y, toDisplayString as q, createTextVNode as B } from "vue";
|
|
3
3
|
import { ProTable as U } from "@pubinfo/pro-components";
|
|
4
|
-
import { u as z } from "./index.js";
|
|
5
|
-
import { e as
|
|
6
|
-
import { a as
|
|
7
|
-
import { _ as A } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
|
+
import { u as z, _ as D } from "./index.js";
|
|
5
|
+
import { e as E } from "./jiaosejiekou-p42Hm9h3.js";
|
|
6
|
+
import { a as A } from "./zuzhijiaosebiaokongzhiqi-Cj4ZjkfZ.js";
|
|
8
7
|
import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
|
|
9
8
|
key: 0,
|
|
10
9
|
class: "flex items-center"
|
|
@@ -12,13 +11,13 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
|
|
|
12
11
|
name: "ResourceRelation",
|
|
13
12
|
__name: "ResourceRelation",
|
|
14
13
|
setup(H, { expose: b }) {
|
|
15
|
-
const
|
|
14
|
+
const p = s(["用户自选角色", "组织基础角色"]), n = s(p.value[0]), [r, h] = z(!1), d = s(""), m = s();
|
|
16
15
|
function k() {
|
|
17
16
|
m.value.fetch();
|
|
18
17
|
}
|
|
19
18
|
async function I(o) {
|
|
20
19
|
o.pageSize = 15, o.roleId = d.value;
|
|
21
|
-
const { current: t, pageSize: l, ...i } = o, e = await (n.value === "用户自选角色" ?
|
|
20
|
+
const { current: t, pageSize: l, ...i } = o, e = await (n.value === "用户自选角色" ? E : A)({
|
|
22
21
|
currentPage: t,
|
|
23
22
|
pageSize: l,
|
|
24
23
|
...i
|
|
@@ -64,13 +63,13 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
|
|
|
64
63
|
"footer-style": { textAlign: "right" },
|
|
65
64
|
"body-style": { paddingLeft: 0, paddingRight: 0 }
|
|
66
65
|
}, {
|
|
67
|
-
default:
|
|
66
|
+
default: u(() => [
|
|
68
67
|
v("div", L, [
|
|
69
68
|
R(l, {
|
|
70
69
|
value: a(n),
|
|
71
70
|
"onUpdate:value": t[0] || (t[0] = (e) => x(n) ? n.value = e : null),
|
|
72
71
|
block: "",
|
|
73
|
-
options: a(
|
|
72
|
+
options: a(p),
|
|
74
73
|
onChange: k
|
|
75
74
|
}, null, 8, ["value", "options"])
|
|
76
75
|
]),
|
|
@@ -84,14 +83,14 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
|
|
|
84
83
|
toolbar: !1,
|
|
85
84
|
"auto-height": { offset: 50 }
|
|
86
85
|
}, {
|
|
87
|
-
bodyCell:
|
|
86
|
+
bodyCell: u(({ column: e, record: _ }) => [
|
|
88
87
|
e.dataIndex === "name" ? (c(), V("div", j, [
|
|
89
88
|
v("span", F, q(_.name), 1),
|
|
90
89
|
_.isInherit === "1" ? (c(), g(i, {
|
|
91
90
|
key: 0,
|
|
92
91
|
color: "processing"
|
|
93
92
|
}, {
|
|
94
|
-
default:
|
|
93
|
+
default: u(() => t[2] || (t[2] = [
|
|
95
94
|
B(" 及子组织 ")
|
|
96
95
|
])),
|
|
97
96
|
_: 1,
|
|
@@ -106,7 +105,7 @@ import './ResourceRelation.css';const L = { class: "mb-20px p-x-15px" }, j = {
|
|
|
106
105
|
}, 8, ["open"]);
|
|
107
106
|
};
|
|
108
107
|
}
|
|
109
|
-
}),
|
|
108
|
+
}), Y = /* @__PURE__ */ D(G, [["__scopeId", "data-v-1167727f"]]);
|
|
110
109
|
export {
|
|
111
|
-
|
|
110
|
+
Y as default
|
|
112
111
|
};
|