@pubinfo/module-rbac 2.0.11 → 2.0.13
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/{IconSelect-CkqLR5Dg.js → IconSelect-Cco4lJFZ.js} +1 -1
- package/dist/IconSelect.css +1 -1
- package/dist/IconSelect.vue_vue_type_script_setup_true_lang-C9GJFjrV.js +757 -0
- package/dist/LayoutForm-DqDnsQcr.js +173 -0
- package/dist/LayoutForm.css +1 -0
- package/dist/{MetaForm-DtlyvzoM.js → MetaForm-s74FbAc9.js} +51 -43
- package/dist/{ResourceEdit-WpEdbzaw.js → ResourceEdit-CNYAteRE.js} +1 -1
- package/dist/ResourceEdit.vue_vue_type_script_setup_true_lang-BLqs77A8.js +433 -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/{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-ioZh8Qom.js → index-BXvJhqJD.js} +6 -7
- package/dist/{index-DdoOaWs-.js → index-BsZjgoZQ.js} +1 -1
- 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 +2588 -2289
- 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 +12 -0
- package/package.json +3 -3
- 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/IconSelect.vue +6 -2
- package/src/views/resource/components/LayoutForm.vue +92 -0
- package/src/views/resource/components/ResourceEdit.vue +24 -0
- package/src/views/resource/hooks/useLayoutForm.ts +57 -0
- package/src/views/resource/hooks/useMetaForm.ts +2 -0
- package/src/views/resource/model.ts +21 -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
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import { Modal as ye, Tabs as ke, TabPane as Ie, CheckboxGroup as Re, Tooltip as pe, Tag as
|
|
2
|
-
import { defineComponent as ie, mergeModels as De, ref as c, computed as z, useModel as Ee, createBlock as y, openBlock as u, withCtx as
|
|
1
|
+
import { Modal as ye, Tabs as ke, TabPane as Ie, CheckboxGroup as Re, Tooltip as pe, Tag as Se, Button as de, Drawer as he, Form as Fe, FormItem as Oe, Input as we, Select as Ge, Space as Ce } from "ant-design-vue/es";
|
|
2
|
+
import { defineComponent as ie, mergeModels as De, ref as c, computed as z, useModel as Ee, createBlock as y, openBlock as u, withCtx as l, createElementVNode as m, createVNode as s, unref as n, isRef as Y, createElementBlock as g, Fragment as C, renderList as j, createTextVNode as k, toDisplayString as h, createCommentVNode as ue } from "vue";
|
|
3
3
|
import { message as Pe } from "ant-design-vue";
|
|
4
|
-
import { p as Ue, u as
|
|
5
|
-
import { g as
|
|
4
|
+
import { p as Ue, u as le, _ as Te, R as Me, OrgSelector as Ne, ResourceSelector as $e } from "./index.js";
|
|
5
|
+
import { g as Ae, a as Le, b as Be } from "./shujuquanxianzhubiaokongzhiqi-SpN37fyO.js";
|
|
6
6
|
import { G as te } from "./enum-DDKThkSw.js";
|
|
7
|
-
import {
|
|
8
|
-
import { R as Le } from "./enum-CTUzwCYG.js";
|
|
9
|
-
import { u as Be } from "./useAppAndResource-38HCqYKa.js";
|
|
10
|
-
import { _ as Ve } from "./index-53oBz1jp.js";
|
|
7
|
+
import { u as Ve } from "./useAppAndResource-DDywX2iz.js";
|
|
11
8
|
import { D as ae, d as qe } from "./enum-DkSNwGbC.js";
|
|
12
9
|
import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1px border-solid flex flex-row border_color" }, Ye = { class: "w-360px" }, je = { class: "flex-1 flex flex-col border-solid border-0px border-l-1px border_color" }, ze = { class: "flex-1 p-10px overflow-auto" }, He = /* @__PURE__ */ ie({
|
|
13
10
|
name: "GroupSelector",
|
|
@@ -17,11 +14,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
17
14
|
openModifiers: {}
|
|
18
15
|
},
|
|
19
16
|
emits: /* @__PURE__ */ De(["select"], ["update:open"]),
|
|
20
|
-
setup(
|
|
21
|
-
const Q = J,
|
|
22
|
-
const d =
|
|
17
|
+
setup(ne, { expose: H, emit: J }) {
|
|
18
|
+
const Q = J, F = c("OrgGroup"), O = z(() => F.value === "OrgGroup"), T = c([]), D = c([]), v = c([]), _ = c([]), L = z(() => {
|
|
19
|
+
const d = O.value ? T : D, o = O.value ? v : _;
|
|
23
20
|
return d.value.filter((i) => o.value.includes(i.value));
|
|
24
|
-
}), M = Ee(
|
|
21
|
+
}), M = Ee(ne, "open"), N = le(M);
|
|
25
22
|
W();
|
|
26
23
|
function W() {
|
|
27
24
|
E(te.ORG), E(te.PER);
|
|
@@ -45,13 +42,13 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
45
42
|
function B(d) {
|
|
46
43
|
if (d && d.length) {
|
|
47
44
|
const o = d.map((i) => i.value);
|
|
48
|
-
|
|
45
|
+
O.value ? v.value = o : _.value = o;
|
|
49
46
|
} else
|
|
50
47
|
v.value = [], _.value = [];
|
|
51
48
|
N(!0);
|
|
52
49
|
}
|
|
53
50
|
function I() {
|
|
54
|
-
|
|
51
|
+
O.value ? X() : a();
|
|
55
52
|
}
|
|
56
53
|
function X() {
|
|
57
54
|
v.value = [];
|
|
@@ -60,7 +57,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
60
57
|
_.value = [];
|
|
61
58
|
}
|
|
62
59
|
function $(d) {
|
|
63
|
-
const o =
|
|
60
|
+
const o = O.value ? v : _, i = o.value.findIndex((b) => b === d);
|
|
64
61
|
i !== -1 && o.value.splice(i, 1);
|
|
65
62
|
}
|
|
66
63
|
function V() {
|
|
@@ -69,7 +66,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
69
66
|
return H({
|
|
70
67
|
open: B
|
|
71
68
|
}), (d, o) => {
|
|
72
|
-
const i = Re, b = Ie, f = ke, x =
|
|
69
|
+
const i = Re, b = Ie, f = ke, x = Se, R = pe, q = de, Z = ye;
|
|
73
70
|
return u(), y(Z, {
|
|
74
71
|
open: M.value,
|
|
75
72
|
"onUpdate:open": o[4] || (o[4] = (p) => M.value = p),
|
|
@@ -78,11 +75,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
78
75
|
"mask-closable": !1,
|
|
79
76
|
width: 750
|
|
80
77
|
}, {
|
|
81
|
-
footer:
|
|
78
|
+
footer: l(() => [
|
|
82
79
|
s(q, {
|
|
83
|
-
onClick: o[3] || (o[3] = (p) =>
|
|
80
|
+
onClick: o[3] || (o[3] = (p) => n(N)(!1))
|
|
84
81
|
}, {
|
|
85
|
-
default:
|
|
82
|
+
default: l(() => o[6] || (o[6] = [
|
|
86
83
|
k(" 取消 ")
|
|
87
84
|
])),
|
|
88
85
|
_: 1,
|
|
@@ -92,31 +89,31 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
92
89
|
type: "primary",
|
|
93
90
|
onClick: V
|
|
94
91
|
}, {
|
|
95
|
-
default:
|
|
92
|
+
default: l(() => o[7] || (o[7] = [
|
|
96
93
|
k(" 确定 ")
|
|
97
94
|
])),
|
|
98
95
|
_: 1,
|
|
99
96
|
__: [7]
|
|
100
97
|
})
|
|
101
98
|
]),
|
|
102
|
-
default:
|
|
99
|
+
default: l(() => [
|
|
103
100
|
m("div", Ke, [
|
|
104
101
|
m("div", Ye, [
|
|
105
102
|
s(f, {
|
|
106
|
-
"active-key":
|
|
107
|
-
"onUpdate:activeKey": o[2] || (o[2] = (p) => Y(
|
|
103
|
+
"active-key": n(F),
|
|
104
|
+
"onUpdate:activeKey": o[2] || (o[2] = (p) => Y(F) ? F.value = p : null),
|
|
108
105
|
class: "h-full overflow-hidden"
|
|
109
106
|
}, {
|
|
110
|
-
default:
|
|
107
|
+
default: l(() => [
|
|
111
108
|
s(b, {
|
|
112
109
|
key: "OrgGroup",
|
|
113
110
|
tab: "组织群组"
|
|
114
111
|
}, {
|
|
115
|
-
default:
|
|
112
|
+
default: l(() => [
|
|
116
113
|
s(i, {
|
|
117
|
-
value:
|
|
114
|
+
value: n(v),
|
|
118
115
|
"onUpdate:value": o[0] || (o[0] = (p) => Y(v) ? v.value = p : null),
|
|
119
|
-
options:
|
|
116
|
+
options: n(T)
|
|
120
117
|
}, null, 8, ["value", "options"])
|
|
121
118
|
]),
|
|
122
119
|
_: 1
|
|
@@ -126,11 +123,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
126
123
|
tab: "用户群组",
|
|
127
124
|
"force-render": ""
|
|
128
125
|
}, {
|
|
129
|
-
default:
|
|
126
|
+
default: l(() => [
|
|
130
127
|
s(i, {
|
|
131
|
-
value:
|
|
128
|
+
value: n(_),
|
|
132
129
|
"onUpdate:value": o[1] || (o[1] = (p) => Y(_) ? _.value = p : null),
|
|
133
|
-
options:
|
|
130
|
+
options: n(D)
|
|
134
131
|
}, null, 8, ["value", "options"])
|
|
135
132
|
]),
|
|
136
133
|
_: 1
|
|
@@ -148,7 +145,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
148
145
|
}, " 清空 ")
|
|
149
146
|
]),
|
|
150
147
|
m("div", ze, [
|
|
151
|
-
(u(!0), g(C, null, j(
|
|
148
|
+
(u(!0), g(C, null, j(n(L), (p) => (u(), g("div", {
|
|
152
149
|
key: p.value,
|
|
153
150
|
class: "inline-block mb-6px max-w-300px"
|
|
154
151
|
}, [
|
|
@@ -156,14 +153,14 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
156
153
|
key: 0,
|
|
157
154
|
title: p.name
|
|
158
155
|
}, {
|
|
159
|
-
default:
|
|
156
|
+
default: l(() => [
|
|
160
157
|
s(x, {
|
|
161
158
|
class: "custom_tag bg-[#e8f3ff] dark:bg-[#141414]",
|
|
162
159
|
closable: "",
|
|
163
160
|
onClose: (ee) => $(p.value)
|
|
164
161
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
k(
|
|
162
|
+
default: l(() => [
|
|
163
|
+
k(h(p.label), 1)
|
|
167
164
|
]),
|
|
168
165
|
_: 2
|
|
169
166
|
}, 1032, ["onClose"])
|
|
@@ -175,8 +172,8 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
175
172
|
closable: "",
|
|
176
173
|
onClose: (ee) => $(p.value)
|
|
177
174
|
}, {
|
|
178
|
-
default:
|
|
179
|
-
k(
|
|
175
|
+
default: l(() => [
|
|
176
|
+
k(h(p.label), 1)
|
|
180
177
|
]),
|
|
181
178
|
_: 2
|
|
182
179
|
}, 1032, ["onClose"]))
|
|
@@ -189,22 +186,22 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
189
186
|
}, 8, ["open"]);
|
|
190
187
|
};
|
|
191
188
|
}
|
|
192
|
-
}), Je = /* @__PURE__ */
|
|
189
|
+
}), Je = /* @__PURE__ */ Te(He, [["__scopeId", "data-v-2ec81ba8"]]), Qe = { class: "pt-10px" }, We = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, Xe = {
|
|
193
190
|
key: 1,
|
|
194
191
|
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
195
192
|
}, Ze = { class: "pt-10px" }, eo = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, oo = {
|
|
196
193
|
key: 1,
|
|
197
194
|
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
198
|
-
}, to = { class: "pt-10px" }, ao = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" },
|
|
195
|
+
}, to = { class: "pt-10px" }, ao = { class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]" }, lo = {
|
|
199
196
|
key: 1,
|
|
200
197
|
class: "inline-block mb-6px mr-6px bg-[#E8F3FF] rounded-2px px-8px py-3px whitespace-nowrap dark:bg-[#141414]"
|
|
201
|
-
},
|
|
198
|
+
}, fo = /* @__PURE__ */ ie({
|
|
202
199
|
name: "CreateAndEditDataPermission",
|
|
203
200
|
__name: "createAndEditDataPermission",
|
|
204
201
|
emits: ["submit"],
|
|
205
|
-
setup(
|
|
206
|
-
const Q = J,
|
|
207
|
-
appList:
|
|
202
|
+
setup(ne, { expose: H, emit: J }) {
|
|
203
|
+
const Q = J, F = Me.DATA_PERMISSION, {
|
|
204
|
+
appList: O,
|
|
208
205
|
resourceModelRef: T,
|
|
209
206
|
selectedResources: D,
|
|
210
207
|
getAppList: v,
|
|
@@ -213,7 +210,7 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
213
210
|
updateSelectedResources: M,
|
|
214
211
|
clearSelectedResources: N,
|
|
215
212
|
openResourceModel: W
|
|
216
|
-
} =
|
|
213
|
+
} = Ve(F), E = c(""), B = {
|
|
217
214
|
name: "",
|
|
218
215
|
type: "",
|
|
219
216
|
appId: "",
|
|
@@ -240,16 +237,16 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
240
237
|
groupIds: [{ type: "array", required: !0, message: "请选择群组", trigger: ["blur", "change"] }]
|
|
241
238
|
}, a = c({
|
|
242
239
|
...B
|
|
243
|
-
}), $ = z(() => a.value.type === ae.CUSTOM_DEPT_AND_SUB || a.value.type === ae.CUSTOM_DEPT_ONLY), V = z(() => a.value.type === ae.CUSTOM_GROUP), d = c(!1), [o, i] =
|
|
240
|
+
}), $ = z(() => a.value.type === ae.CUSTOM_DEPT_AND_SUB || a.value.type === ae.CUSTOM_DEPT_ONLY), V = z(() => a.value.type === ae.CUSTOM_GROUP), d = c(!1), [o, i] = le(!1), b = c(), f = c([]), x = c(), R = c([]);
|
|
244
241
|
v();
|
|
245
242
|
async function q(r, t) {
|
|
246
243
|
if (E.value = r, d.value = !1, a.value = { ...B }, N(), fe(), _e(), t) {
|
|
247
244
|
d.value = !0;
|
|
248
|
-
const w = await
|
|
245
|
+
const w = await Ae({ id: t?.id });
|
|
249
246
|
if (w.success && w.data) {
|
|
250
|
-
const { id:
|
|
247
|
+
const { id: S, type: K, name: G, appId: A, orgs: P, resources: oe, groups: U } = w.data;
|
|
251
248
|
a.value = {
|
|
252
|
-
id:
|
|
249
|
+
id: S,
|
|
253
250
|
type: K,
|
|
254
251
|
appId: A,
|
|
255
252
|
name: G || "",
|
|
@@ -299,11 +296,11 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
299
296
|
function ve(r) {
|
|
300
297
|
R.value = r, r.length ? (a.value.groupIds = r.map((t) => t.id || ""), I.value?.clearValidate(["groupIds"])) : a.value.groupIds = [];
|
|
301
298
|
}
|
|
302
|
-
const [be, se] =
|
|
299
|
+
const [be, se] = le(!1);
|
|
303
300
|
function xe() {
|
|
304
301
|
I.value?.validate().then(() => {
|
|
305
302
|
se(!0);
|
|
306
|
-
const r = d.value ?
|
|
303
|
+
const r = d.value ? Le : Be, t = {
|
|
307
304
|
...a.value
|
|
308
305
|
};
|
|
309
306
|
$.value || delete t.orgIds, V.value || delete t.groupIds, r(t).then((w) => {
|
|
@@ -317,22 +314,22 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
317
314
|
return H({
|
|
318
315
|
open: q
|
|
319
316
|
}), (r, t) => {
|
|
320
|
-
const w = we,
|
|
317
|
+
const w = we, S = Oe, K = Ge, G = de, A = pe, P = Fe, oe = Ce, U = he;
|
|
321
318
|
return u(), y(U, {
|
|
322
|
-
open:
|
|
319
|
+
open: n(o),
|
|
323
320
|
"onUpdate:open": t[4] || (t[4] = (e) => Y(o) ? o.value = e : null),
|
|
324
|
-
title: `${
|
|
321
|
+
title: `${n(E)}数据权限`,
|
|
325
322
|
placement: "right",
|
|
326
323
|
width: 600,
|
|
327
324
|
"destroy-on-close": "",
|
|
328
325
|
"footer-style": { textAlign: "right" },
|
|
329
326
|
onClose: re
|
|
330
327
|
}, {
|
|
331
|
-
footer:
|
|
328
|
+
footer: l(() => [
|
|
332
329
|
s(oe, null, {
|
|
333
|
-
default:
|
|
330
|
+
default: l(() => [
|
|
334
331
|
s(G, { onClick: re }, {
|
|
335
|
-
default:
|
|
332
|
+
default: l(() => t[8] || (t[8] = [
|
|
336
333
|
k(" 取消 ")
|
|
337
334
|
])),
|
|
338
335
|
_: 1,
|
|
@@ -340,10 +337,10 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
340
337
|
}),
|
|
341
338
|
s(G, {
|
|
342
339
|
type: "primary",
|
|
343
|
-
loading:
|
|
340
|
+
loading: n(be),
|
|
344
341
|
onClick: t[3] || (t[3] = (e) => xe())
|
|
345
342
|
}, {
|
|
346
|
-
default:
|
|
343
|
+
default: l(() => t[9] || (t[9] = [
|
|
347
344
|
k(" 提交 ")
|
|
348
345
|
])),
|
|
349
346
|
_: 1,
|
|
@@ -353,147 +350,147 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
353
350
|
_: 1
|
|
354
351
|
})
|
|
355
352
|
]),
|
|
356
|
-
default:
|
|
353
|
+
default: l(() => [
|
|
357
354
|
s(P, {
|
|
358
355
|
ref_key: "formRef",
|
|
359
356
|
ref: I,
|
|
360
|
-
model:
|
|
357
|
+
model: n(a),
|
|
361
358
|
rules: X,
|
|
362
359
|
"label-col": { span: 6 }
|
|
363
360
|
}, {
|
|
364
|
-
default:
|
|
365
|
-
s(
|
|
361
|
+
default: l(() => [
|
|
362
|
+
s(S, {
|
|
366
363
|
label: "数据权限名称",
|
|
367
364
|
name: "name"
|
|
368
365
|
}, {
|
|
369
|
-
default:
|
|
366
|
+
default: l(() => [
|
|
370
367
|
s(w, {
|
|
371
|
-
value:
|
|
372
|
-
"onUpdate:value": t[0] || (t[0] = (e) =>
|
|
368
|
+
value: n(a).name,
|
|
369
|
+
"onUpdate:value": t[0] || (t[0] = (e) => n(a).name = e),
|
|
373
370
|
maxlength: 20
|
|
374
371
|
}, null, 8, ["value"])
|
|
375
372
|
]),
|
|
376
373
|
_: 1
|
|
377
374
|
}),
|
|
378
|
-
s(
|
|
375
|
+
s(S, {
|
|
379
376
|
label: "数据权限规则",
|
|
380
377
|
name: "type"
|
|
381
378
|
}, {
|
|
382
|
-
default:
|
|
379
|
+
default: l(() => [
|
|
383
380
|
s(K, {
|
|
384
|
-
value:
|
|
385
|
-
"onUpdate:value": t[1] || (t[1] = (e) =>
|
|
386
|
-
options:
|
|
381
|
+
value: n(a).type,
|
|
382
|
+
"onUpdate:value": t[1] || (t[1] = (e) => n(a).type = e),
|
|
383
|
+
options: n(qe),
|
|
387
384
|
placeholder: "请选择"
|
|
388
385
|
}, null, 8, ["value", "options"])
|
|
389
386
|
]),
|
|
390
387
|
_: 1
|
|
391
388
|
}),
|
|
392
|
-
s(
|
|
389
|
+
s(S, {
|
|
393
390
|
label: "所属应用",
|
|
394
391
|
name: "appId"
|
|
395
392
|
}, {
|
|
396
|
-
default:
|
|
393
|
+
default: l(() => [
|
|
397
394
|
s(K, {
|
|
398
|
-
value:
|
|
399
|
-
"onUpdate:value": t[2] || (t[2] = (e) =>
|
|
400
|
-
disabled:
|
|
401
|
-
options:
|
|
395
|
+
value: n(a).appId,
|
|
396
|
+
"onUpdate:value": t[2] || (t[2] = (e) => n(a).appId = e),
|
|
397
|
+
disabled: n(d),
|
|
398
|
+
options: n(O),
|
|
402
399
|
onChange: Z
|
|
403
400
|
}, null, 8, ["value", "disabled", "options"])
|
|
404
401
|
]),
|
|
405
402
|
_: 1
|
|
406
403
|
}),
|
|
407
|
-
s(
|
|
404
|
+
s(S, {
|
|
408
405
|
label: "所属资源",
|
|
409
406
|
name: "resourceIds"
|
|
410
407
|
}, {
|
|
411
|
-
default:
|
|
408
|
+
default: l(() => [
|
|
412
409
|
s(G, {
|
|
413
410
|
type: "primary",
|
|
414
411
|
onClick: p
|
|
415
412
|
}, {
|
|
416
|
-
default:
|
|
413
|
+
default: l(() => t[5] || (t[5] = [
|
|
417
414
|
k(" 编辑资源 ")
|
|
418
415
|
])),
|
|
419
416
|
_: 1,
|
|
420
417
|
__: [5]
|
|
421
418
|
}),
|
|
422
419
|
m("div", Qe, [
|
|
423
|
-
(u(!0), g(C, null, j(
|
|
420
|
+
(u(!0), g(C, null, j(n(D), (e) => (u(), g(C, { key: e }, [
|
|
424
421
|
e.name.length > 20 ? (u(), y(A, {
|
|
425
422
|
key: 0,
|
|
426
423
|
title: e.name
|
|
427
424
|
}, {
|
|
428
|
-
default:
|
|
429
|
-
m("span", We,
|
|
425
|
+
default: l(() => [
|
|
426
|
+
m("span", We, h(`${e.name.slice(0, 20)}...`), 1)
|
|
430
427
|
]),
|
|
431
428
|
_: 2
|
|
432
|
-
}, 1032, ["title"])) : (u(), g("span", Xe,
|
|
429
|
+
}, 1032, ["title"])) : (u(), g("span", Xe, h(e.name), 1))
|
|
433
430
|
], 64))), 128))
|
|
434
431
|
])
|
|
435
432
|
]),
|
|
436
433
|
_: 1
|
|
437
434
|
}),
|
|
438
|
-
|
|
435
|
+
n($) ? (u(), y(S, {
|
|
439
436
|
key: 0,
|
|
440
437
|
label: "所属部门",
|
|
441
438
|
name: "orgIds"
|
|
442
439
|
}, {
|
|
443
|
-
default:
|
|
440
|
+
default: l(() => [
|
|
444
441
|
s(G, {
|
|
445
442
|
type: "primary",
|
|
446
443
|
onClick: ce
|
|
447
444
|
}, {
|
|
448
|
-
default:
|
|
445
|
+
default: l(() => t[6] || (t[6] = [
|
|
449
446
|
k(" 编辑部门 ")
|
|
450
447
|
])),
|
|
451
448
|
_: 1,
|
|
452
449
|
__: [6]
|
|
453
450
|
}),
|
|
454
451
|
m("div", Ze, [
|
|
455
|
-
(u(!0), g(C, null, j(
|
|
452
|
+
(u(!0), g(C, null, j(n(f), (e) => (u(), g(C, { key: e }, [
|
|
456
453
|
e.orgName && e.orgName.length > 20 ? (u(), y(A, {
|
|
457
454
|
key: 0,
|
|
458
455
|
title: e.orgName
|
|
459
456
|
}, {
|
|
460
|
-
default:
|
|
461
|
-
m("span", eo,
|
|
457
|
+
default: l(() => [
|
|
458
|
+
m("span", eo, h(`${e.orgName?.slice(0, 20)}...`), 1)
|
|
462
459
|
]),
|
|
463
460
|
_: 2
|
|
464
|
-
}, 1032, ["title"])) : (u(), g("span", oo,
|
|
461
|
+
}, 1032, ["title"])) : (u(), g("span", oo, h(e.orgName), 1))
|
|
465
462
|
], 64))), 128))
|
|
466
463
|
])
|
|
467
464
|
]),
|
|
468
465
|
_: 1
|
|
469
466
|
})) : ue("", !0),
|
|
470
|
-
|
|
467
|
+
n(V) ? (u(), y(S, {
|
|
471
468
|
key: 1,
|
|
472
469
|
label: "所属群组",
|
|
473
470
|
name: "groupIds"
|
|
474
471
|
}, {
|
|
475
|
-
default:
|
|
472
|
+
default: l(() => [
|
|
476
473
|
s(G, {
|
|
477
474
|
type: "primary",
|
|
478
475
|
onClick: me
|
|
479
476
|
}, {
|
|
480
|
-
default:
|
|
477
|
+
default: l(() => t[7] || (t[7] = [
|
|
481
478
|
k(" 编辑群组 ")
|
|
482
479
|
])),
|
|
483
480
|
_: 1,
|
|
484
481
|
__: [7]
|
|
485
482
|
}),
|
|
486
483
|
m("div", to, [
|
|
487
|
-
(u(!0), g(C, null, j(
|
|
484
|
+
(u(!0), g(C, null, j(n(R), (e) => (u(), g(C, { key: e }, [
|
|
488
485
|
e.name && e.name.length > 20 ? (u(), y(A, {
|
|
489
486
|
key: 0,
|
|
490
487
|
title: e.name
|
|
491
488
|
}, {
|
|
492
|
-
default:
|
|
493
|
-
m("span", ao,
|
|
489
|
+
default: l(() => [
|
|
490
|
+
m("span", ao, h(`${e.name?.slice(0, 20)}...`), 1)
|
|
494
491
|
]),
|
|
495
492
|
_: 2
|
|
496
|
-
}, 1032, ["title"])) : (u(), g("span",
|
|
493
|
+
}, 1032, ["title"])) : (u(), g("span", lo, h(e.name), 1))
|
|
497
494
|
], 64))), 128))
|
|
498
495
|
])
|
|
499
496
|
]),
|
|
@@ -502,17 +499,17 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
502
499
|
]),
|
|
503
500
|
_: 1
|
|
504
501
|
}, 8, ["model"]),
|
|
505
|
-
s(
|
|
502
|
+
s(Ne, {
|
|
506
503
|
ref_key: "orgRef",
|
|
507
504
|
ref: b,
|
|
508
|
-
"model-value":
|
|
505
|
+
"model-value": n(f),
|
|
509
506
|
multiple: "",
|
|
510
507
|
onSubmit: ge
|
|
511
508
|
}, null, 8, ["model-value"]),
|
|
512
|
-
s(
|
|
509
|
+
s($e, {
|
|
513
510
|
ref_key: "resourceModelRef",
|
|
514
511
|
ref: T,
|
|
515
|
-
mode:
|
|
512
|
+
mode: n(F),
|
|
516
513
|
onSelect: ee
|
|
517
514
|
}, null, 8, ["mode"]),
|
|
518
515
|
s(Je, {
|
|
@@ -527,5 +524,5 @@ import './createAndEditDataPermission.css';const Ke = { class: "h-340px border-1
|
|
|
527
524
|
}
|
|
528
525
|
});
|
|
529
526
|
export {
|
|
530
|
-
|
|
527
|
+
fo as _
|
|
531
528
|
};
|