@ximatai/muyun-web-app 0.26.4 → 0.26.5
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/{EmployeeDetailWorkspaceView-BySbWjCV.js → EmployeeDetailWorkspaceView-rm9ujeiQ.js} +1 -1
- package/dist/{EmployeeManagementView-DvmDPxzN.js → EmployeeManagementView-DyYMWQ64.js} +486 -486
- package/dist/{MetadataOrchestrationView-2JxJkFEC.js → MetadataOrchestrationView-DaPNQML7.js} +203 -203
- package/dist/ModuleActionManagementView-BFoPGqzC.js +597 -0
- package/dist/{RoleAuthorizationView-CK6Vfdup.js → RoleAuthorizationView-qQvn7M75.js} +68 -68
- package/dist/{RoleDetailWorkspaceView-BPZcZy-r.js → RoleDetailWorkspaceView-C-vaKeZM.js} +1 -1
- package/dist/{RoleManagementView-B7TzzVOm.js → RoleManagementView-C3nxfub2.js} +486 -486
- package/dist/{SystemUserDetailWorkspaceView-BtEDyU-k.js → SystemUserDetailWorkspaceView-FIbfff00.js} +1 -1
- package/dist/SystemUserManagementView-m6vwJDxI.js +761 -0
- package/dist/{UserDetailWorkspaceView-B6fGrnQ7.js → UserDetailWorkspaceView-M--ndn6x.js} +1 -1
- package/dist/{UserManagementView-4IJeDSQS.js → UserManagementView-MSXf4fno.js} +302 -302
- package/dist/index.css +1 -1
- package/dist/index.js +2237 -2237
- package/dist/{pageRealtime-CJriNmzP.js → pageRealtime-4LXXvVW7.js} +14 -14
- package/dist/{platform-components-CgMBopmF.js → platform-components-_3KlZZf5.js} +1166 -1168
- package/dist/types/consumer/index.d.ts +1 -2
- package/dist/types/dynamic-page-runtime/dynamicModuleDetailStateModel.d.ts +12 -0
- package/dist/types/platform-components/RecordModeDrawer.vue.d.ts +14 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -1
- package/dist/{useUserSessionRows-DHsyr2Vy.js → useUserSessionRows-iAqK_cUy.js} +2 -2
- package/dist/workspaceViewSessions-DW0wbyQ_.js +1448 -0
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-DRtYMXOK.js +0 -597
- package/dist/SystemUserManagementView-TKqj92zG.js +0 -761
- package/dist/workspaceViewSessions-BMbyO9O4.js +0 -1571
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
import { B as e, D as t, Dt as n, K as r, L as i, N as ee, S as te, St as ne, X as re, _ as ie, ct as a, dt as o, ft as s, gt as c, ht as l, it as ae, lt as u, mt as d, o as oe, st as f, t as se, u as ce, ut as p } from "./platform-components-_3KlZZf5.js";
|
|
2
|
+
import { computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, onMounted as le, openBlock as S, ref as C, toDisplayString as w, unref as T, withCtx as E, withModifiers as D } from "vue";
|
|
3
|
+
//#region src/views/ModuleActionManagementView.vue?vue&type=script&setup=true&lang.ts
|
|
4
|
+
var ue = { class: "action-declaration-section" }, de = { class: "permission-governance-section" }, fe = { class: "governance-grid" }, pe = { class: "governance-item" }, me = {
|
|
5
|
+
type: "button",
|
|
6
|
+
class: "governance-help",
|
|
7
|
+
"aria-label": "访问方式说明"
|
|
8
|
+
}, he = { class: "governance-reset-slot" }, ge = { class: "governance-item" }, _e = {
|
|
9
|
+
type: "button",
|
|
10
|
+
class: "governance-help",
|
|
11
|
+
"aria-label": "默认授予策略说明"
|
|
12
|
+
}, ve = { class: "governance-reset-slot" }, ye = { class: "governance-item" }, O = {
|
|
13
|
+
type: "button",
|
|
14
|
+
class: "governance-help",
|
|
15
|
+
"aria-label": "动作授权说明"
|
|
16
|
+
}, k = { class: "governance-reset-slot" }, A = { class: "governance-switch-control" }, j = { class: "governance-item" }, M = {
|
|
17
|
+
type: "button",
|
|
18
|
+
class: "governance-help",
|
|
19
|
+
"aria-label": "数据授权说明"
|
|
20
|
+
}, N = { class: "governance-reset-slot" }, P = { class: "governance-switch-control" }, be = { class: "checkbox-field" }, xe = { class: "checkbox-field" }, Se = { class: "wide-field" }, Ce = { class: "wide-field" }, F = /*#__PURE__*/ l(/* @__PURE__ */ x({
|
|
21
|
+
name: "ModuleActionManagementView",
|
|
22
|
+
__name: "ModuleActionManagementView",
|
|
23
|
+
props: {
|
|
24
|
+
moduleAlias: {},
|
|
25
|
+
moduleTitle: {},
|
|
26
|
+
moduleKind: {},
|
|
27
|
+
title: {}
|
|
28
|
+
},
|
|
29
|
+
setup(l) {
|
|
30
|
+
let x = l, F = ne({ moduleAlias: "platform.module_action" }), I = oe(F, { client: n(F.http, `/platform.module/${encodeURIComponent(x.moduleAlias)}/actions`) }), L = C(""), R = C([]), z = se({
|
|
31
|
+
context: I,
|
|
32
|
+
confirmAction: re,
|
|
33
|
+
emptyDraft: () => Ve(x.moduleAlias),
|
|
34
|
+
normalizeDraft: (e) => He(e, x.moduleAlias),
|
|
35
|
+
copyRecord: (e) => ({ ...e }),
|
|
36
|
+
titleOf: Q,
|
|
37
|
+
fallbackTitle: "模块动作",
|
|
38
|
+
createTitle: "新建动作",
|
|
39
|
+
requiredMessage: "动作编码不能为空",
|
|
40
|
+
isValid: (e) => !!e.actionCode?.trim(),
|
|
41
|
+
recordName: "动作",
|
|
42
|
+
deleteTitle: "删除动作",
|
|
43
|
+
saveDeniedMessage: "当前用户无权保存模块动作",
|
|
44
|
+
createDeniedMessage: "当前用户无权新建模块动作",
|
|
45
|
+
enableDeniedMessage: "当前用户无权变更模块动作启停状态",
|
|
46
|
+
deleteDeniedMessage: () => "当前用户无权删除模块动作",
|
|
47
|
+
canDeleteRecord: (e) => e.systemManaged !== !0,
|
|
48
|
+
canEnableRecord: (e) => e.systemManaged !== !0
|
|
49
|
+
}), { selected: B, draft: V, mode: H, reloadKey: U, saving: W, cardTitle: we, canCreate: Te, canEnable: Ee } = z, De = m(() => x.moduleKind === "dynamic" && Te.value && R.value.length > 0), Oe = m(() => R.value.map((e) => ({
|
|
50
|
+
value: e.executorKey,
|
|
51
|
+
label: e.description ? `${e.title} · ${e.description}` : e.title
|
|
52
|
+
}))), ke = m(() => (R.value.find((e) => e.executorKey === V.value.executorKey)?.supportedLevels ?? []).map((e) => ({
|
|
53
|
+
value: e,
|
|
54
|
+
label: {
|
|
55
|
+
LIST: "列表",
|
|
56
|
+
RECORD: "单条记录",
|
|
57
|
+
BATCH: "批量",
|
|
58
|
+
ANY: "任意"
|
|
59
|
+
}[e]
|
|
60
|
+
}))), Ae = m(() => [
|
|
61
|
+
"actionCode",
|
|
62
|
+
"title",
|
|
63
|
+
"category",
|
|
64
|
+
"actionLevel",
|
|
65
|
+
"accessMode",
|
|
66
|
+
"executorType",
|
|
67
|
+
...Z(V.value.executorKey) ? ["executorKey"] : [],
|
|
68
|
+
"actionAuth",
|
|
69
|
+
"dataAuth",
|
|
70
|
+
"defaultGrantPolicy",
|
|
71
|
+
...Z(V.value.availableExpression) ? ["availableExpression"] : [],
|
|
72
|
+
...Z(V.value.unavailableMessage) ? ["unavailableMessage"] : [],
|
|
73
|
+
...V.value.sourceType ? ["sourceType"] : [],
|
|
74
|
+
...Z(V.value.bindingAlias) ? ["bindingAlias"] : []
|
|
75
|
+
]), je = m(() => [
|
|
76
|
+
"actionCode",
|
|
77
|
+
"title",
|
|
78
|
+
"category",
|
|
79
|
+
"actionLevel",
|
|
80
|
+
"executorType",
|
|
81
|
+
...Z(V.value.executorKey) ? ["executorKey"] : [],
|
|
82
|
+
...V.value.sourceType ? ["sourceType"] : []
|
|
83
|
+
]);
|
|
84
|
+
le(() => void Re());
|
|
85
|
+
let Me = m(() => z.readonly.value), G = m(() => Me.value || z.saving.value), Ne = m(() => {
|
|
86
|
+
if (z.mode.value !== "view") return [
|
|
87
|
+
...z.mode.value === "edit" && z.selected.value?.systemManaged === !0 && Ie(V.value) ? [{
|
|
88
|
+
key: "reset-permission-governance",
|
|
89
|
+
actionCode: "update",
|
|
90
|
+
title: "全部重置",
|
|
91
|
+
disabled: z.saving.value
|
|
92
|
+
}] : [],
|
|
93
|
+
{
|
|
94
|
+
key: "cancel",
|
|
95
|
+
title: "取消",
|
|
96
|
+
disabled: z.saving.value
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "save",
|
|
100
|
+
actionCode: z.mode.value === "create" ? "create" : "update",
|
|
101
|
+
title: z.saving.value ? "保存中" : "保存",
|
|
102
|
+
primary: !0,
|
|
103
|
+
loading: z.saving.value
|
|
104
|
+
}
|
|
105
|
+
];
|
|
106
|
+
let e = z.selected.value;
|
|
107
|
+
return [{
|
|
108
|
+
key: "edit",
|
|
109
|
+
actionCode: "update",
|
|
110
|
+
title: "编辑",
|
|
111
|
+
disabled: !e || !z.canUpdate.value
|
|
112
|
+
}, {
|
|
113
|
+
key: "delete",
|
|
114
|
+
actionCode: "delete",
|
|
115
|
+
title: "删除",
|
|
116
|
+
danger: !0,
|
|
117
|
+
loading: z.saving.value,
|
|
118
|
+
disabled: !e || e.systemManaged === !0 || !z.canDelete.value
|
|
119
|
+
}];
|
|
120
|
+
});
|
|
121
|
+
function Pe(e) {
|
|
122
|
+
let t = e;
|
|
123
|
+
return {
|
|
124
|
+
title: Q(t),
|
|
125
|
+
secondary: t.actionCode,
|
|
126
|
+
tag: t.systemManaged === !0 ? "平台托管" : t.category,
|
|
127
|
+
muted: t.enabled === !1
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
function Fe(e) {
|
|
131
|
+
e.key === "edit" && z.startEdit(), e.key === "delete" && z.removeSelected(), e.key === "reset-permission-governance" && Le(), e.key === "cancel" && z.cancelEdit(), e.key === "save" && z.save();
|
|
132
|
+
}
|
|
133
|
+
function Ie(e) {
|
|
134
|
+
return [
|
|
135
|
+
e.accessModeOverride,
|
|
136
|
+
e.actionAuthOverride,
|
|
137
|
+
e.dataAuthOverride,
|
|
138
|
+
e.defaultGrantPolicyOverride
|
|
139
|
+
].some((e) => e != null);
|
|
140
|
+
}
|
|
141
|
+
function K(e) {
|
|
142
|
+
return V.value[e] != null;
|
|
143
|
+
}
|
|
144
|
+
function q(e) {
|
|
145
|
+
J(e, void 0);
|
|
146
|
+
}
|
|
147
|
+
function Le() {
|
|
148
|
+
z.draft.value = {
|
|
149
|
+
...z.draft.value,
|
|
150
|
+
accessModeOverride: void 0,
|
|
151
|
+
actionAuthOverride: void 0,
|
|
152
|
+
dataAuthOverride: void 0,
|
|
153
|
+
defaultGrantPolicyOverride: void 0
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
function J(e, t) {
|
|
157
|
+
z.draft.value = {
|
|
158
|
+
...z.draft.value,
|
|
159
|
+
[e]: t ?? void 0
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
async function Re() {
|
|
163
|
+
try {
|
|
164
|
+
R.value = await F.http.request({ path: "/platform.module/action-executors" });
|
|
165
|
+
} catch (e) {
|
|
166
|
+
R.value = [], r(e, {
|
|
167
|
+
source: "module-action-management",
|
|
168
|
+
phase: "load"
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function ze() {
|
|
173
|
+
z.startCreate();
|
|
174
|
+
let e = R.value[0];
|
|
175
|
+
e && (z.draft.value = {
|
|
176
|
+
...z.draft.value,
|
|
177
|
+
executorKey: e.executorKey,
|
|
178
|
+
actionLevel: e.supportedLevels[0] ?? "ANY"
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
function Be(e) {
|
|
182
|
+
let t = typeof e == "string" ? e : void 0, n = R.value.find((e) => e.executorKey === t);
|
|
183
|
+
J("executorKey", t), n?.supportedLevels.length && J("actionLevel", n.supportedLevels[0]);
|
|
184
|
+
}
|
|
185
|
+
function Ve(e) {
|
|
186
|
+
return {
|
|
187
|
+
moduleAlias: e,
|
|
188
|
+
actionCode: "",
|
|
189
|
+
title: "",
|
|
190
|
+
category: "CUSTOM",
|
|
191
|
+
actionLevel: "ANY",
|
|
192
|
+
accessMode: "AUTH_REQUIRED",
|
|
193
|
+
actionAuth: !0,
|
|
194
|
+
dataAuth: !1,
|
|
195
|
+
defaultGrantPolicy: "NONE",
|
|
196
|
+
executorType: "SERVICE",
|
|
197
|
+
enabled: !0,
|
|
198
|
+
systemManaged: !1
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
function He(e, t) {
|
|
202
|
+
return {
|
|
203
|
+
...e,
|
|
204
|
+
moduleAlias: t,
|
|
205
|
+
actionCode: Y(e.actionCode),
|
|
206
|
+
title: X(e.title) ?? Y(e.actionCode),
|
|
207
|
+
entityAlias: X(e.entityAlias),
|
|
208
|
+
permissionActionCode: X(e.permissionActionCode),
|
|
209
|
+
availableExpression: X(e.availableExpression),
|
|
210
|
+
unavailableMessage: X(e.unavailableMessage),
|
|
211
|
+
executorKey: X(e.executorKey)
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
function Y(e) {
|
|
215
|
+
return e?.trim() ?? "";
|
|
216
|
+
}
|
|
217
|
+
function X(e) {
|
|
218
|
+
return e?.trim() || void 0;
|
|
219
|
+
}
|
|
220
|
+
function Z(e) {
|
|
221
|
+
return !!e?.trim();
|
|
222
|
+
}
|
|
223
|
+
function Q(e) {
|
|
224
|
+
return e.title?.trim() || e.actionCode?.trim() || e.id || "未命名动作";
|
|
225
|
+
}
|
|
226
|
+
function $(e, t) {
|
|
227
|
+
return e === "actionAuth" || e === "dataAuth" ? t === !0 ? "启用" : "未启用" : typeof t == "string" ? {
|
|
228
|
+
category: {
|
|
229
|
+
STANDARD: "标准动作",
|
|
230
|
+
CUSTOM: "自定义动作",
|
|
231
|
+
DIALOG: "弹窗动作",
|
|
232
|
+
WORKFLOW: "工作流动作",
|
|
233
|
+
GENERATE: "生成动作"
|
|
234
|
+
},
|
|
235
|
+
actionLevel: {
|
|
236
|
+
LIST: "列表",
|
|
237
|
+
RECORD: "单条记录",
|
|
238
|
+
BATCH: "批量",
|
|
239
|
+
ANY: "任意"
|
|
240
|
+
},
|
|
241
|
+
accessMode: {
|
|
242
|
+
AUTH_REQUIRED: "需要授权",
|
|
243
|
+
LOGIN_REQUIRED: "登录可用",
|
|
244
|
+
ANONYMOUS_ALLOWED: "匿名可用"
|
|
245
|
+
},
|
|
246
|
+
executorType: {
|
|
247
|
+
STANDARD: "平台标准",
|
|
248
|
+
SERVICE: "服务(二开)",
|
|
249
|
+
DIALOG: "弹窗协议",
|
|
250
|
+
WORKFLOW: "工作流",
|
|
251
|
+
GENERATE: "生成器"
|
|
252
|
+
},
|
|
253
|
+
defaultGrantPolicy: {
|
|
254
|
+
NONE: "不默认授予",
|
|
255
|
+
ANY_LOGIN_USER: "所有登录用户",
|
|
256
|
+
OWNER: "记录所有者",
|
|
257
|
+
ASSIGNEE: "办理人",
|
|
258
|
+
MEMBER: "成员"
|
|
259
|
+
},
|
|
260
|
+
sourceType: {
|
|
261
|
+
STATIC_MODULE: "静态模块声明",
|
|
262
|
+
CODE_EXTENSION: "代码扩展",
|
|
263
|
+
DYNAMIC_MODULE: "动态模块配置",
|
|
264
|
+
WORKFLOW_DEFINITION: "工作流定义",
|
|
265
|
+
WORKFLOW_RUNTIME: "工作流运行时",
|
|
266
|
+
RECORD_GENERATION_RULE: "生单规则",
|
|
267
|
+
DOCUMENT_RELATION: "单据关系",
|
|
268
|
+
PRINT_TEMPLATE: "打印模板"
|
|
269
|
+
}
|
|
270
|
+
}[e]?.[t] : void 0;
|
|
271
|
+
}
|
|
272
|
+
return (n, r) => (S(), h(T(ce), {
|
|
273
|
+
"explorer-title": "模块动作",
|
|
274
|
+
"refresh-title": "刷新动作",
|
|
275
|
+
mode: T(H),
|
|
276
|
+
"detail-title": T(we),
|
|
277
|
+
"explorer-search-keyword": L.value,
|
|
278
|
+
"explorer-search-placeholder": "搜索动作名称或编码",
|
|
279
|
+
"onUpdate:explorerSearchKeyword": r[22] ||= (e) => L.value = e,
|
|
280
|
+
onRefresh: r[23] ||= (e) => U.value += 1
|
|
281
|
+
}, {
|
|
282
|
+
"explorer-actions": E(() => [b(T(i), {
|
|
283
|
+
class: "record-panel-create-button",
|
|
284
|
+
context: T(I),
|
|
285
|
+
"action-code": "create",
|
|
286
|
+
title: "新建动作",
|
|
287
|
+
"icon-only": "",
|
|
288
|
+
disabled: !De.value || T(W),
|
|
289
|
+
onClick: ze
|
|
290
|
+
}, null, 8, ["context", "disabled"])]),
|
|
291
|
+
explorer: E(() => [b(T(e), {
|
|
292
|
+
context: T(I),
|
|
293
|
+
"selected-id": T(B)?.id,
|
|
294
|
+
"reload-key": T(U),
|
|
295
|
+
keyword: L.value,
|
|
296
|
+
"empty-description": "当前模块暂无动作",
|
|
297
|
+
"loading-tip": "加载模块动作",
|
|
298
|
+
"fallback-title": "未命名动作",
|
|
299
|
+
"item-of": Pe,
|
|
300
|
+
onLoaded: r[0] ||= (e) => T(z).handleListLoaded(e),
|
|
301
|
+
onSelect: r[1] ||= (e) => T(z).handleSelect(e)
|
|
302
|
+
}, null, 8, [
|
|
303
|
+
"context",
|
|
304
|
+
"selected-id",
|
|
305
|
+
"reload-key",
|
|
306
|
+
"keyword"
|
|
307
|
+
])]),
|
|
308
|
+
"detail-status": E(() => [T(H) === "view" && T(B) ? (S(), h(T(te), {
|
|
309
|
+
key: 0,
|
|
310
|
+
enabled: T(B).enabled,
|
|
311
|
+
disabled: T(W) || T(B).systemManaged === !0 || !T(Ee),
|
|
312
|
+
loading: T(W),
|
|
313
|
+
"show-label": !1,
|
|
314
|
+
onChange: T(z).toggleEnabled
|
|
315
|
+
}, null, 8, [
|
|
316
|
+
"enabled",
|
|
317
|
+
"disabled",
|
|
318
|
+
"loading",
|
|
319
|
+
"onChange"
|
|
320
|
+
])) : g("v-if", !0)]),
|
|
321
|
+
"detail-actions": E(() => [b(T(ee), {
|
|
322
|
+
context: T(I),
|
|
323
|
+
actions: Ne.value,
|
|
324
|
+
onAction: Fe
|
|
325
|
+
}, null, 8, ["context", "actions"])]),
|
|
326
|
+
default: E(() => [!T(B) && T(H) === "view" ? (S(), h(T(ae), {
|
|
327
|
+
key: 0,
|
|
328
|
+
description: l.moduleKind === "static" ? "静态模块动作由 Java 声明自动注册" : "当前模块暂无动作"
|
|
329
|
+
}, null, 8, ["description"])) : T(H) === "view" && T(B) ? (S(), h(T(t), {
|
|
330
|
+
key: 1,
|
|
331
|
+
record: T(V),
|
|
332
|
+
"display-of": $,
|
|
333
|
+
"field-names": Ae.value,
|
|
334
|
+
fallback: {
|
|
335
|
+
actionCode: { label: "动作编码" },
|
|
336
|
+
title: { label: "动作名称" },
|
|
337
|
+
category: { label: "动作类别" },
|
|
338
|
+
actionLevel: { label: "执行层级" },
|
|
339
|
+
accessMode: { label: "访问方式" },
|
|
340
|
+
executorType: { label: "执行方式" },
|
|
341
|
+
executorKey: { label: "执行实现" },
|
|
342
|
+
actionAuth: { label: "动作授权" },
|
|
343
|
+
dataAuth: { label: "数据授权" },
|
|
344
|
+
defaultGrantPolicy: { label: "默认授予策略" },
|
|
345
|
+
availableExpression: { label: "可用条件" },
|
|
346
|
+
unavailableMessage: { label: "不可用提示" },
|
|
347
|
+
sourceType: { label: "注册来源" },
|
|
348
|
+
bindingAlias: { label: "绑定标识" }
|
|
349
|
+
}
|
|
350
|
+
}, null, 8, ["record", "field-names"])) : T(B)?.systemManaged ? (S(), _("form", {
|
|
351
|
+
key: 2,
|
|
352
|
+
class: "managed-action-editor",
|
|
353
|
+
onSubmit: r[10] ||= D((...e) => T(z).save && T(z).save(...e), ["prevent"])
|
|
354
|
+
}, [v("section", ue, [r[24] ||= v("h3", null, "动作声明", -1), b(T(t), {
|
|
355
|
+
record: T(V),
|
|
356
|
+
"display-of": $,
|
|
357
|
+
"field-names": je.value,
|
|
358
|
+
fallback: {
|
|
359
|
+
actionCode: { label: "动作编码" },
|
|
360
|
+
title: { label: "动作名称" },
|
|
361
|
+
category: { label: "动作类别" },
|
|
362
|
+
actionLevel: { label: "执行层级" },
|
|
363
|
+
executorType: { label: "执行方式" },
|
|
364
|
+
executorKey: { label: "执行实现" },
|
|
365
|
+
sourceType: { label: "注册来源" }
|
|
366
|
+
}
|
|
367
|
+
}, null, 8, ["record", "field-names"])]), v("section", de, [r[33] ||= v("h3", null, "权限治理", -1), v("div", fe, [
|
|
368
|
+
v("section", pe, [v("header", null, [v("div", null, [v("h4", null, [r[25] ||= y(" 访问方式 ", -1), b(T(a), { title: "决定调用动作前需要满足的身份条件。" }, {
|
|
369
|
+
default: E(() => [v("button", me, [b(T(c), { name: "help" })])]),
|
|
370
|
+
_: 1
|
|
371
|
+
})])]), v("span", he, [K("accessModeOverride") ? (S(), h(T(d), {
|
|
372
|
+
key: 0,
|
|
373
|
+
type: "text",
|
|
374
|
+
size: "small",
|
|
375
|
+
disabled: G.value,
|
|
376
|
+
onClick: r[2] ||= (e) => q("accessModeOverride")
|
|
377
|
+
}, {
|
|
378
|
+
default: E(() => [...r[26] ||= [y("重置", -1)]]),
|
|
379
|
+
_: 1
|
|
380
|
+
}, 8, ["disabled"])) : g("v-if", !0)])]), b(T(o), {
|
|
381
|
+
value: T(V).accessModeOverride ?? T(V).accessMode,
|
|
382
|
+
disabled: G.value,
|
|
383
|
+
options: [
|
|
384
|
+
{
|
|
385
|
+
label: "需要授权",
|
|
386
|
+
value: "AUTH_REQUIRED"
|
|
387
|
+
},
|
|
388
|
+
{
|
|
389
|
+
label: "登录可用",
|
|
390
|
+
value: "LOGIN_REQUIRED"
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
label: "匿名可用",
|
|
394
|
+
value: "ANONYMOUS_ALLOWED"
|
|
395
|
+
}
|
|
396
|
+
],
|
|
397
|
+
"onUpdate:value": r[3] ||= (e) => J("accessModeOverride", e)
|
|
398
|
+
}, null, 8, ["value", "disabled"])]),
|
|
399
|
+
v("section", ge, [v("header", null, [v("div", null, [v("h4", null, [r[27] ||= y(" 默认授予策略 ", -1), b(T(a), { title: "定义满足条件的用户首次获得动作时的默认规则。" }, {
|
|
400
|
+
default: E(() => [v("button", _e, [b(T(c), { name: "help" })])]),
|
|
401
|
+
_: 1
|
|
402
|
+
})])]), v("span", ve, [K("defaultGrantPolicyOverride") ? (S(), h(T(d), {
|
|
403
|
+
key: 0,
|
|
404
|
+
type: "text",
|
|
405
|
+
size: "small",
|
|
406
|
+
disabled: G.value,
|
|
407
|
+
onClick: r[4] ||= (e) => q("defaultGrantPolicyOverride")
|
|
408
|
+
}, {
|
|
409
|
+
default: E(() => [...r[28] ||= [y("重置", -1)]]),
|
|
410
|
+
_: 1
|
|
411
|
+
}, 8, ["disabled"])) : g("v-if", !0)])]), b(T(o), {
|
|
412
|
+
value: T(V).defaultGrantPolicyOverride ?? T(V).defaultGrantPolicy,
|
|
413
|
+
disabled: G.value,
|
|
414
|
+
options: [
|
|
415
|
+
{
|
|
416
|
+
label: "不默认授予",
|
|
417
|
+
value: "NONE"
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
label: "所有登录用户",
|
|
421
|
+
value: "ANY_LOGIN_USER"
|
|
422
|
+
},
|
|
423
|
+
{
|
|
424
|
+
label: "记录所有者",
|
|
425
|
+
value: "OWNER"
|
|
426
|
+
},
|
|
427
|
+
{
|
|
428
|
+
label: "办理人",
|
|
429
|
+
value: "ASSIGNEE"
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
label: "成员",
|
|
433
|
+
value: "MEMBER"
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
"onUpdate:value": r[5] ||= (e) => J("defaultGrantPolicyOverride", e)
|
|
437
|
+
}, null, 8, ["value", "disabled"])]),
|
|
438
|
+
v("section", ye, [v("header", null, [v("div", null, [v("h4", null, [r[29] ||= y(" 动作授权 ", -1), b(T(a), { title: "控制角色是否需要被显式授予该动作。" }, {
|
|
439
|
+
default: E(() => [v("button", O, [b(T(c), { name: "help" })])]),
|
|
440
|
+
_: 1
|
|
441
|
+
})])]), v("span", k, [K("actionAuthOverride") ? (S(), h(T(d), {
|
|
442
|
+
key: 0,
|
|
443
|
+
type: "text",
|
|
444
|
+
size: "small",
|
|
445
|
+
disabled: G.value,
|
|
446
|
+
onClick: r[6] ||= (e) => q("actionAuthOverride")
|
|
447
|
+
}, {
|
|
448
|
+
default: E(() => [...r[30] ||= [y("重置", -1)]]),
|
|
449
|
+
_: 1
|
|
450
|
+
}, 8, ["disabled"])) : g("v-if", !0)])]), v("div", A, [b(T(f), {
|
|
451
|
+
checked: (T(V).actionAuthOverride ?? T(V).actionAuth) !== !1,
|
|
452
|
+
disabled: G.value,
|
|
453
|
+
"checked-text": "开",
|
|
454
|
+
"unchecked-text": "关",
|
|
455
|
+
"onUpdate:checked": r[7] ||= (e) => J("actionAuthOverride", e)
|
|
456
|
+
}, null, 8, ["checked", "disabled"]), v("strong", null, w((T(V).actionAuthOverride ?? T(V).actionAuth) === !1 ? "未启用" : "已启用"), 1)])]),
|
|
457
|
+
v("section", j, [v("header", null, [v("div", null, [v("h4", null, [r[31] ||= y(" 数据授权 ", -1), b(T(a), { title: "启用后,读取和执行会继续按数据范围校验。" }, {
|
|
458
|
+
default: E(() => [v("button", M, [b(T(c), { name: "help" })])]),
|
|
459
|
+
_: 1
|
|
460
|
+
})])]), v("span", N, [K("dataAuthOverride") ? (S(), h(T(d), {
|
|
461
|
+
key: 0,
|
|
462
|
+
type: "text",
|
|
463
|
+
size: "small",
|
|
464
|
+
disabled: G.value,
|
|
465
|
+
onClick: r[8] ||= (e) => q("dataAuthOverride")
|
|
466
|
+
}, {
|
|
467
|
+
default: E(() => [...r[32] ||= [y("重置", -1)]]),
|
|
468
|
+
_: 1
|
|
469
|
+
}, 8, ["disabled"])) : g("v-if", !0)])]), v("div", P, [b(T(f), {
|
|
470
|
+
checked: (T(V).dataAuthOverride ?? T(V).dataAuth) === !0,
|
|
471
|
+
disabled: G.value,
|
|
472
|
+
"checked-text": "开",
|
|
473
|
+
"unchecked-text": "关",
|
|
474
|
+
"onUpdate:checked": r[9] ||= (e) => J("dataAuthOverride", e)
|
|
475
|
+
}, null, 8, ["checked", "disabled"]), v("strong", null, w((T(V).dataAuthOverride ?? T(V).dataAuth) === !0 ? "已启用" : "未启用"), 1)])])
|
|
476
|
+
])])], 32)) : (S(), _("form", {
|
|
477
|
+
key: 3,
|
|
478
|
+
class: "static-record-form",
|
|
479
|
+
onSubmit: r[21] ||= D((...e) => T(z).save && T(z).save(...e), ["prevent"])
|
|
480
|
+
}, [
|
|
481
|
+
r[44] ||= v("p", { class: "form-hint wide-field" }, " 手工动作只能绑定已部署的二开执行器;平台会通过通用动作接口承接权限、审计和运行态刷新。 ", -1),
|
|
482
|
+
v("label", null, [r[34] ||= v("span", null, "动作编码", -1), b(T(p), {
|
|
483
|
+
value: T(V).actionCode,
|
|
484
|
+
disabled: G.value,
|
|
485
|
+
"onUpdate:value": r[11] ||= (e) => J("actionCode", e)
|
|
486
|
+
}, null, 8, ["value", "disabled"])]),
|
|
487
|
+
v("label", null, [r[35] ||= v("span", null, "动作名称", -1), b(T(p), {
|
|
488
|
+
value: T(V).title,
|
|
489
|
+
disabled: G.value,
|
|
490
|
+
"onUpdate:value": r[12] ||= (e) => J("title", e)
|
|
491
|
+
}, null, 8, ["value", "disabled"])]),
|
|
492
|
+
v("label", null, [r[36] ||= v("span", null, "执行层级", -1), b(T(o), {
|
|
493
|
+
value: T(V).actionLevel,
|
|
494
|
+
disabled: G.value,
|
|
495
|
+
options: ke.value,
|
|
496
|
+
"onUpdate:value": r[13] ||= (e) => J("actionLevel", e)
|
|
497
|
+
}, null, 8, [
|
|
498
|
+
"value",
|
|
499
|
+
"disabled",
|
|
500
|
+
"options"
|
|
501
|
+
])]),
|
|
502
|
+
v("label", null, [r[37] ||= v("span", null, "访问方式", -1), b(T(o), {
|
|
503
|
+
value: T(V).accessMode,
|
|
504
|
+
disabled: G.value,
|
|
505
|
+
options: [
|
|
506
|
+
{
|
|
507
|
+
label: "需要授权",
|
|
508
|
+
value: "AUTH_REQUIRED"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
label: "登录可用",
|
|
512
|
+
value: "LOGIN_REQUIRED"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
label: "匿名可用",
|
|
516
|
+
value: "ANONYMOUS_ALLOWED"
|
|
517
|
+
}
|
|
518
|
+
],
|
|
519
|
+
"onUpdate:value": r[14] ||= (e) => J("accessMode", e)
|
|
520
|
+
}, null, 8, ["value", "disabled"])]),
|
|
521
|
+
v("label", null, [r[38] ||= v("span", null, "二开执行器", -1), b(T(o), {
|
|
522
|
+
value: T(V).executorKey,
|
|
523
|
+
disabled: G.value,
|
|
524
|
+
options: Oe.value,
|
|
525
|
+
"onUpdate:value": r[15] ||= (e) => Be(e)
|
|
526
|
+
}, null, 8, [
|
|
527
|
+
"value",
|
|
528
|
+
"disabled",
|
|
529
|
+
"options"
|
|
530
|
+
])]),
|
|
531
|
+
v("label", be, [b(T(s), {
|
|
532
|
+
checked: T(V).actionAuth !== !1,
|
|
533
|
+
disabled: G.value,
|
|
534
|
+
"onUpdate:checked": r[16] ||= (e) => J("actionAuth", e)
|
|
535
|
+
}, {
|
|
536
|
+
default: E(() => [...r[39] ||= [y("启用动作授权", -1)]]),
|
|
537
|
+
_: 1
|
|
538
|
+
}, 8, ["checked", "disabled"])]),
|
|
539
|
+
v("label", xe, [b(T(s), {
|
|
540
|
+
checked: T(V).dataAuth === !0,
|
|
541
|
+
disabled: G.value,
|
|
542
|
+
"onUpdate:checked": r[17] ||= (e) => J("dataAuth", e)
|
|
543
|
+
}, {
|
|
544
|
+
default: E(() => [...r[40] ||= [y("启用数据授权", -1)]]),
|
|
545
|
+
_: 1
|
|
546
|
+
}, 8, ["checked", "disabled"])]),
|
|
547
|
+
v("label", null, [r[41] ||= v("span", null, "默认授予策略", -1), b(T(o), {
|
|
548
|
+
value: T(V).defaultGrantPolicy,
|
|
549
|
+
disabled: G.value,
|
|
550
|
+
options: [
|
|
551
|
+
{
|
|
552
|
+
label: "不默认授予",
|
|
553
|
+
value: "NONE"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
label: "所有登录用户",
|
|
557
|
+
value: "ANY_LOGIN_USER"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
label: "记录所有者",
|
|
561
|
+
value: "OWNER"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
label: "办理人",
|
|
565
|
+
value: "ASSIGNEE"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
label: "成员",
|
|
569
|
+
value: "MEMBER"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
"onUpdate:value": r[18] ||= (e) => J("defaultGrantPolicy", e)
|
|
573
|
+
}, null, 8, ["value", "disabled"])]),
|
|
574
|
+
v("label", Se, [r[42] ||= v("span", null, "可用条件表达式", -1), b(T(u), {
|
|
575
|
+
value: T(V).availableExpression,
|
|
576
|
+
disabled: G.value,
|
|
577
|
+
"onUpdate:value": r[19] ||= (e) => J("availableExpression", e)
|
|
578
|
+
}, null, 8, ["value", "disabled"])]),
|
|
579
|
+
v("label", Ce, [r[43] ||= v("span", null, "不可用提示", -1), b(T(u), {
|
|
580
|
+
value: T(V).unavailableMessage,
|
|
581
|
+
disabled: G.value,
|
|
582
|
+
"onUpdate:value": r[20] ||= (e) => J("unavailableMessage", e)
|
|
583
|
+
}, null, 8, ["value", "disabled"])])
|
|
584
|
+
], 32)), T(B) || T(H) !== "view" ? (S(), h(T(ie), {
|
|
585
|
+
key: 4,
|
|
586
|
+
record: T(V)
|
|
587
|
+
}, null, 8, ["record"])) : g("v-if", !0)]),
|
|
588
|
+
_: 1
|
|
589
|
+
}, 8, [
|
|
590
|
+
"mode",
|
|
591
|
+
"detail-title",
|
|
592
|
+
"explorer-search-keyword"
|
|
593
|
+
]));
|
|
594
|
+
}
|
|
595
|
+
}), [["__scopeId", "data-v-f74a56ea"]]);
|
|
596
|
+
//#endregion
|
|
597
|
+
export { F as default };
|