@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,392 +0,0 @@
|
|
|
1
|
-
import { Drawer as oe, Spin as ne, Form as le, Row as se, Col as re, FormItem as ue, Tag as ie, RadioGroup as me, Input as de, InputNumber as pe, Textarea as ce, Switch as fe, Select as _e, Space as ve, Button as ge } from "ant-design-vue/es";
|
|
2
|
-
import { DatabaseOutlined as be } from "@ant-design/icons-vue";
|
|
3
|
-
import { defineComponent as Ne, ref as x, reactive as ye, computed as w, createBlock as c, openBlock as d, unref as a, isRef as g, withCtx as n, createVNode as o, createCommentVNode as b, createTextVNode as f, toDisplayString as k, createElementBlock as Ie } from "vue";
|
|
4
|
-
import { message as De } from "ant-design-vue";
|
|
5
|
-
import { u as C } from "./index.js";
|
|
6
|
-
import { d as Pe, p as Re, e as Ee } from "./ziyuanjiekou-BC65-bFK.js";
|
|
7
|
-
import { D as Ce, b as Ue } from "./enum-DkSNwGbC.js";
|
|
8
|
-
import { r as N, A as y, R as Ae } from "./enum-CjyX3J0o.js";
|
|
9
|
-
import { u as Oe, M as Te, d as Me } from "./MetaForm-DtlyvzoM.js";
|
|
10
|
-
import { _ as xe } from "./DynamicRoutesForm.vue_vue_type_script_setup_true_lang-lpCaLpPL.js";
|
|
11
|
-
import { _ as we } from "./IconSelect.vue_vue_type_script_setup_true_lang-BoGxAoNd.js";
|
|
12
|
-
import { c as S } from "./cloneDeep-BOLZdR62.js";
|
|
13
|
-
import { RESOURCE_TYPE as r } from "pubinfo";
|
|
14
|
-
const ke = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "flex items-center space-x-1"
|
|
17
|
-
}, He = /* @__PURE__ */ Ne({
|
|
18
|
-
name: "ResourceEdit",
|
|
19
|
-
__name: "ResourceEdit",
|
|
20
|
-
props: {
|
|
21
|
-
dataSource: {}
|
|
22
|
-
},
|
|
23
|
-
emits: ["submit"],
|
|
24
|
-
setup(V, { expose: L, emit: F }) {
|
|
25
|
-
const h = V, B = F, [I, D] = C(!1), U = x(), t = x({}), p = ye({
|
|
26
|
-
title: "",
|
|
27
|
-
record: {},
|
|
28
|
-
initData: {
|
|
29
|
-
type: r.DYNAMIC_APP,
|
|
30
|
-
sort: 0,
|
|
31
|
-
enable: !0,
|
|
32
|
-
enableDataPermission: !1,
|
|
33
|
-
dataPermissionType: Ce.ALL,
|
|
34
|
-
meta: {
|
|
35
|
-
url: "",
|
|
36
|
-
component: ""
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}), q = {
|
|
40
|
-
name: [{ required: !0, message: "请输入资源名称", trigger: "blur" }],
|
|
41
|
-
type: [{ required: !0, message: "请选择资源类型", trigger: "change" }],
|
|
42
|
-
code: [{ required: !0, message: "请输入资源编码", trigger: "blur" }],
|
|
43
|
-
sort: [{ type: "number", required: !0, message: "请输入排序", trigger: "blur" }],
|
|
44
|
-
enable: [{ type: "boolean", required: !0, message: "请选择是否启用", trigger: "change" }]
|
|
45
|
-
}, _ = w(() => Y(h.dataSource, (l) => l.id === t.value.parentId) ?? {});
|
|
46
|
-
function Y(l, e) {
|
|
47
|
-
const i = [...l];
|
|
48
|
-
for (const u of i) {
|
|
49
|
-
if (e(u))
|
|
50
|
-
return u;
|
|
51
|
-
u.children && i.push(...u.children);
|
|
52
|
-
}
|
|
53
|
-
return null;
|
|
54
|
-
}
|
|
55
|
-
const P = w(() => {
|
|
56
|
-
switch (_.value?.type) {
|
|
57
|
-
case r.APP:
|
|
58
|
-
case r.MICRO_APP:
|
|
59
|
-
case r.DYNAMIC_APP:
|
|
60
|
-
return N.filter((l) => [r.INDEX, r.MENU, r.IFRAME, r.LINK].includes(l.value));
|
|
61
|
-
case r.INDEX:
|
|
62
|
-
return N.filter((l) => [r.INDEX, r.MENU, r.IFRAME, r.LINK, r.NON_MENU].includes(l.value));
|
|
63
|
-
case r.MENU:
|
|
64
|
-
case r.NON_MENU:
|
|
65
|
-
return N.filter((l) => [r.BUTTON, r.NON_MENU].includes(l.value));
|
|
66
|
-
case r.BUTTON:
|
|
67
|
-
case r.IFRAME:
|
|
68
|
-
case r.LINK:
|
|
69
|
-
return [];
|
|
70
|
-
default:
|
|
71
|
-
return N.filter((l) => [
|
|
72
|
-
r.APP,
|
|
73
|
-
/* RESOURCE_TYPE.MICRO_APP, */
|
|
74
|
-
r.DYNAMIC_APP
|
|
75
|
-
].includes(l.value));
|
|
76
|
-
}
|
|
77
|
-
}), { show: R, resetIncompatibleOptions: A } = Oe(t), [$, O] = C(!1);
|
|
78
|
-
async function K(l, e) {
|
|
79
|
-
p.title = l, t.value = S(p.initData), D(!0);
|
|
80
|
-
try {
|
|
81
|
-
if (O(!0), l === y.ADD_CHILD && (t.value.parentId = e?.id, t.value.type = P.value[0].value, A()), l === y.EDIT) {
|
|
82
|
-
const i = await Pe({ id: e?.id });
|
|
83
|
-
i.success && (t.value = i.data ?? {}, t.value.meta = { ...Me, ...i.data?.meta }, A());
|
|
84
|
-
}
|
|
85
|
-
} finally {
|
|
86
|
-
O(!1);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
const [X, T] = C(!1);
|
|
90
|
-
function z() {
|
|
91
|
-
U.value?.validate().then(() => {
|
|
92
|
-
const l = S({
|
|
93
|
-
...t.value,
|
|
94
|
-
icon: t.value.icon || void 0
|
|
95
|
-
});
|
|
96
|
-
R.value.dataPermission || (l.enableDataPermission = !1), R.value.devMode && t.value.meta?.isDev && console.warn("开发模式应用的子路由将不会在生产环境中注册到vue-router,请确保这是预期行为。"), l.meta?.cache && l.meta.cacheName && (l.meta.cache = l.meta.cacheName.split(",")), l.meta?.noCache && (l.meta.noCache = l.meta.noCache.split(",")), l.meta?.cache || delete l?.meta?.noCache, delete l?.meta?.cacheName;
|
|
97
|
-
const e = p.title === y.EDIT ? Re(l) : Ee({ parentId: "", ...l });
|
|
98
|
-
T(!0), e.then((i) => {
|
|
99
|
-
i?.success && (De.success(`${p.title}成功!`), D(!1), B("submit"));
|
|
100
|
-
}).finally(() => T(!1));
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
return L({
|
|
104
|
-
open: K
|
|
105
|
-
}), (l, e) => {
|
|
106
|
-
const i = be, u = ue, m = re, G = ie, H = me, v = se, E = de, j = pe, J = ce, Q = fe, W = _e, Z = le, ee = ne, M = ge, te = ve, ae = oe;
|
|
107
|
-
return d(), c(ae, {
|
|
108
|
-
open: a(I),
|
|
109
|
-
"onUpdate:open": e[13] || (e[13] = (s) => g(I) ? I.value = s : null),
|
|
110
|
-
title: a(p).title,
|
|
111
|
-
placement: "right",
|
|
112
|
-
width: 800,
|
|
113
|
-
"destroy-on-close": "",
|
|
114
|
-
"footer-style": { textAlign: "right" }
|
|
115
|
-
}, {
|
|
116
|
-
footer: n(() => [
|
|
117
|
-
o(te, null, {
|
|
118
|
-
default: n(() => [
|
|
119
|
-
o(M, {
|
|
120
|
-
onClick: e[11] || (e[11] = (s) => a(D)(!1))
|
|
121
|
-
}, {
|
|
122
|
-
default: n(() => e[15] || (e[15] = [
|
|
123
|
-
f(" 取消 ")
|
|
124
|
-
])),
|
|
125
|
-
_: 1,
|
|
126
|
-
__: [15]
|
|
127
|
-
}),
|
|
128
|
-
o(M, {
|
|
129
|
-
type: "primary",
|
|
130
|
-
loading: a(X),
|
|
131
|
-
onClick: e[12] || (e[12] = (s) => z())
|
|
132
|
-
}, {
|
|
133
|
-
default: n(() => e[16] || (e[16] = [
|
|
134
|
-
f(" 提交 ")
|
|
135
|
-
])),
|
|
136
|
-
_: 1,
|
|
137
|
-
__: [16]
|
|
138
|
-
}, 8, ["loading"])
|
|
139
|
-
]),
|
|
140
|
-
_: 1
|
|
141
|
-
})
|
|
142
|
-
]),
|
|
143
|
-
default: n(() => [
|
|
144
|
-
o(ee, { spinning: a($) }, {
|
|
145
|
-
default: n(() => [
|
|
146
|
-
o(Z, {
|
|
147
|
-
ref_key: "formRef",
|
|
148
|
-
ref: U,
|
|
149
|
-
model: a(t),
|
|
150
|
-
rules: q,
|
|
151
|
-
"label-col": { style: { width: "100px" } }
|
|
152
|
-
}, {
|
|
153
|
-
default: n(() => [
|
|
154
|
-
o(v, { gutter: 8 }, {
|
|
155
|
-
default: n(() => [
|
|
156
|
-
a(_)?.name ? (d(), c(m, {
|
|
157
|
-
key: 0,
|
|
158
|
-
span: 24
|
|
159
|
-
}, {
|
|
160
|
-
default: n(() => [
|
|
161
|
-
o(u, { name: "parentId" }, {
|
|
162
|
-
label: n(() => [
|
|
163
|
-
o(i, { class: "mr-1" }),
|
|
164
|
-
e[14] || (e[14] = f(" 父资源 "))
|
|
165
|
-
]),
|
|
166
|
-
default: n(() => [
|
|
167
|
-
f(" " + k(a(_)?.name), 1)
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
})
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
})) : b("", !0),
|
|
174
|
-
o(m, { span: 24 }, {
|
|
175
|
-
default: n(() => [
|
|
176
|
-
o(u, {
|
|
177
|
-
label: "资源类型",
|
|
178
|
-
name: "type"
|
|
179
|
-
}, {
|
|
180
|
-
default: n(() => [
|
|
181
|
-
a(p).title === a(y).EDIT ? (d(), Ie("div", ke, [
|
|
182
|
-
a(t).type ? (d(), c(G, {
|
|
183
|
-
key: 0,
|
|
184
|
-
color: a(Ae)[Number(a(t).type)],
|
|
185
|
-
bordered: !1
|
|
186
|
-
}, {
|
|
187
|
-
default: n(() => [
|
|
188
|
-
f(k(a(P).find((s) => s.value === a(t).type)?.label), 1)
|
|
189
|
-
]),
|
|
190
|
-
_: 1
|
|
191
|
-
}, 8, ["color"])) : b("", !0)
|
|
192
|
-
])) : (d(), c(H, {
|
|
193
|
-
key: 1,
|
|
194
|
-
value: a(t).type,
|
|
195
|
-
"onUpdate:value": e[0] || (e[0] = (s) => a(t).type = s),
|
|
196
|
-
options: a(P),
|
|
197
|
-
"option-type": "button",
|
|
198
|
-
"button-style": "solid"
|
|
199
|
-
}, null, 8, ["value", "options"]))
|
|
200
|
-
]),
|
|
201
|
-
_: 1
|
|
202
|
-
})
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
}),
|
|
206
|
-
o(m, { span: 24 }, {
|
|
207
|
-
default: n(() => [
|
|
208
|
-
o(we, {
|
|
209
|
-
modelValue: a(t),
|
|
210
|
-
"onUpdate:modelValue": e[1] || (e[1] = (s) => g(t) ? t.value = s : null)
|
|
211
|
-
}, null, 8, ["modelValue"])
|
|
212
|
-
]),
|
|
213
|
-
_: 1
|
|
214
|
-
})
|
|
215
|
-
]),
|
|
216
|
-
_: 1
|
|
217
|
-
}),
|
|
218
|
-
o(v, { gutter: 8 }, {
|
|
219
|
-
default: n(() => [
|
|
220
|
-
o(m, { span: 12 }, {
|
|
221
|
-
default: n(() => [
|
|
222
|
-
o(u, {
|
|
223
|
-
label: "资源名称",
|
|
224
|
-
name: "name"
|
|
225
|
-
}, {
|
|
226
|
-
default: n(() => [
|
|
227
|
-
o(E, {
|
|
228
|
-
value: a(t).name,
|
|
229
|
-
"onUpdate:value": e[2] || (e[2] = (s) => a(t).name = s),
|
|
230
|
-
placeholder: "请输入资源名称",
|
|
231
|
-
maxlength: 128
|
|
232
|
-
}, null, 8, ["value"])
|
|
233
|
-
]),
|
|
234
|
-
_: 1
|
|
235
|
-
})
|
|
236
|
-
]),
|
|
237
|
-
_: 1
|
|
238
|
-
}),
|
|
239
|
-
o(xe, {
|
|
240
|
-
modelValue: a(t),
|
|
241
|
-
"onUpdate:modelValue": e[3] || (e[3] = (s) => g(t) ? t.value = s : null),
|
|
242
|
-
parent: a(_)
|
|
243
|
-
}, null, 8, ["modelValue", "parent"]),
|
|
244
|
-
o(m, { span: 12 }, {
|
|
245
|
-
default: n(() => [
|
|
246
|
-
o(u, {
|
|
247
|
-
label: "资源编码",
|
|
248
|
-
name: "code"
|
|
249
|
-
}, {
|
|
250
|
-
default: n(() => [
|
|
251
|
-
o(E, {
|
|
252
|
-
value: a(t).code,
|
|
253
|
-
"onUpdate:value": e[4] || (e[4] = (s) => a(t).code = s),
|
|
254
|
-
placeholder: "请输入资源编码(权限码)",
|
|
255
|
-
maxlength: 50
|
|
256
|
-
}, null, 8, ["value"])
|
|
257
|
-
]),
|
|
258
|
-
_: 1
|
|
259
|
-
})
|
|
260
|
-
]),
|
|
261
|
-
_: 1
|
|
262
|
-
}),
|
|
263
|
-
o(m, { span: 12 }, {
|
|
264
|
-
default: n(() => [
|
|
265
|
-
o(u, {
|
|
266
|
-
label: "接口权限",
|
|
267
|
-
name: "permissionCode"
|
|
268
|
-
}, {
|
|
269
|
-
default: n(() => [
|
|
270
|
-
o(E, {
|
|
271
|
-
value: a(t).permissionCode,
|
|
272
|
-
"onUpdate:value": e[5] || (e[5] = (s) => a(t).permissionCode = s),
|
|
273
|
-
placeholder: "请输入接口权限(接口地址,多个使用逗号分隔)",
|
|
274
|
-
maxlength: 256
|
|
275
|
-
}, null, 8, ["value"])
|
|
276
|
-
]),
|
|
277
|
-
_: 1
|
|
278
|
-
})
|
|
279
|
-
]),
|
|
280
|
-
_: 1
|
|
281
|
-
}),
|
|
282
|
-
o(m, { span: 12 }, {
|
|
283
|
-
default: n(() => [
|
|
284
|
-
o(u, {
|
|
285
|
-
label: "显示顺序",
|
|
286
|
-
name: "sort"
|
|
287
|
-
}, {
|
|
288
|
-
default: n(() => [
|
|
289
|
-
o(j, {
|
|
290
|
-
value: a(t).sort,
|
|
291
|
-
"onUpdate:value": e[6] || (e[6] = (s) => a(t).sort = s),
|
|
292
|
-
max: 999
|
|
293
|
-
}, null, 8, ["value"])
|
|
294
|
-
]),
|
|
295
|
-
_: 1
|
|
296
|
-
})
|
|
297
|
-
]),
|
|
298
|
-
_: 1
|
|
299
|
-
})
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
}),
|
|
303
|
-
o(v, { gutter: 8 }, {
|
|
304
|
-
default: n(() => [
|
|
305
|
-
o(m, { span: 24 }, {
|
|
306
|
-
default: n(() => [
|
|
307
|
-
o(u, {
|
|
308
|
-
label: "描述",
|
|
309
|
-
name: "description",
|
|
310
|
-
"label-col": { span: 3 }
|
|
311
|
-
}, {
|
|
312
|
-
default: n(() => [
|
|
313
|
-
o(J, {
|
|
314
|
-
value: a(t).description,
|
|
315
|
-
"onUpdate:value": e[7] || (e[7] = (s) => a(t).description = s),
|
|
316
|
-
placeholder: "请输入描述",
|
|
317
|
-
maxlength: 255,
|
|
318
|
-
"auto-size": { minRows: 2 },
|
|
319
|
-
"show-count": ""
|
|
320
|
-
}, null, 8, ["value"])
|
|
321
|
-
]),
|
|
322
|
-
_: 1
|
|
323
|
-
})
|
|
324
|
-
]),
|
|
325
|
-
_: 1
|
|
326
|
-
})
|
|
327
|
-
]),
|
|
328
|
-
_: 1
|
|
329
|
-
}),
|
|
330
|
-
a(R).dataPermission ? (d(), c(v, {
|
|
331
|
-
key: 0,
|
|
332
|
-
gutter: 8
|
|
333
|
-
}, {
|
|
334
|
-
default: n(() => [
|
|
335
|
-
o(m, { span: 8 }, {
|
|
336
|
-
default: n(() => [
|
|
337
|
-
o(u, {
|
|
338
|
-
label: "启用数据权限",
|
|
339
|
-
name: "enableDataPermission"
|
|
340
|
-
}, {
|
|
341
|
-
default: n(() => [
|
|
342
|
-
o(Q, {
|
|
343
|
-
checked: a(t).enableDataPermission,
|
|
344
|
-
"onUpdate:checked": e[8] || (e[8] = (s) => a(t).enableDataPermission = s)
|
|
345
|
-
}, null, 8, ["checked"])
|
|
346
|
-
]),
|
|
347
|
-
_: 1
|
|
348
|
-
})
|
|
349
|
-
]),
|
|
350
|
-
_: 1
|
|
351
|
-
}),
|
|
352
|
-
o(m, { span: 16 }, {
|
|
353
|
-
default: n(() => [
|
|
354
|
-
a(t).enableDataPermission ? (d(), c(u, {
|
|
355
|
-
key: 0,
|
|
356
|
-
label: "数据权限规则",
|
|
357
|
-
name: "dataPermissionType"
|
|
358
|
-
}, {
|
|
359
|
-
default: n(() => [
|
|
360
|
-
o(W, {
|
|
361
|
-
value: a(t).dataPermissionType,
|
|
362
|
-
"onUpdate:value": e[9] || (e[9] = (s) => a(t).dataPermissionType = s),
|
|
363
|
-
options: a(Ue)
|
|
364
|
-
}, null, 8, ["value", "options"])
|
|
365
|
-
]),
|
|
366
|
-
_: 1
|
|
367
|
-
})) : b("", !0)
|
|
368
|
-
]),
|
|
369
|
-
_: 1
|
|
370
|
-
})
|
|
371
|
-
]),
|
|
372
|
-
_: 1
|
|
373
|
-
})) : b("", !0),
|
|
374
|
-
o(Te, {
|
|
375
|
-
modelValue: a(t),
|
|
376
|
-
"onUpdate:modelValue": e[10] || (e[10] = (s) => g(t) ? t.value = s : null)
|
|
377
|
-
}, null, 8, ["modelValue"])
|
|
378
|
-
]),
|
|
379
|
-
_: 1
|
|
380
|
-
}, 8, ["model"])
|
|
381
|
-
]),
|
|
382
|
-
_: 1
|
|
383
|
-
}, 8, ["spinning"])
|
|
384
|
-
]),
|
|
385
|
-
_: 1
|
|
386
|
-
}, 8, ["open", "title"]);
|
|
387
|
-
};
|
|
388
|
-
}
|
|
389
|
-
});
|
|
390
|
-
export {
|
|
391
|
-
He as _
|
|
392
|
-
};
|
package/dist/enum-CTUzwCYG.js
DELETED