@ximatai/muyun-web-app 0.26.17 → 0.26.18
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/{BusinessActivityLogView-9RrW-RKb.js → BusinessActivityLogView-CNW817Sf.js} +2 -2
- package/dist/BusinessLogListDrawer-YiJxOlnD.js +864 -0
- package/dist/CodeConfigurationView-DU8tjPMt.js +1667 -0
- package/dist/{ConfigurationTranslationView-Bh_ekuMP.js → ConfigurationTranslationView-CbBt5s1q.js} +22 -22
- package/dist/{LoginAuditLogView-DG6iBXEn.js → LoginAuditLogView-CZF1Jfq_.js} +2 -2
- package/dist/ModuleActionManagementView-CaiXH1l_.js +755 -0
- package/dist/{ModuleGovernanceView-C53RnUzc.js → ModuleGovernanceView-CcwGyO3x.js} +3856 -4000
- package/dist/{RequestErrorLogView-Ba5p0hLE.js → RequestErrorLogView-DpudZrC2.js} +2 -2
- package/dist/RoleDetailWorkspaceView-DNMGsAJC.js +1435 -0
- package/dist/{RuntimeLogView-BFEABm8G.js → RuntimeLogView-444BL_xs.js} +60 -60
- package/dist/WorkflowAdministrationView-C-VIjvwB.js +650 -0
- package/dist/{WorkflowConfigurationView-A0m5tBX9.js → WorkflowConfigurationView-DLFY2x7V.js} +302 -289
- package/dist/WorkflowWorkbenchView-Gr02dbBc.js +759 -0
- package/dist/codeConfiguration-ChJ6ktRR.js +208 -0
- package/dist/index.css +1 -1
- package/dist/index.js +473 -463
- package/dist/{moduleGovernanceWorkspaceView-DNKzYX0x.js → moduleMenuWorkspace-B8DKwC3L.js} +224 -265
- package/dist/{platform-components-BBfyINHa.js → platform-components-5AE0j2_3.js} +4597 -4630
- package/dist/{platform-workbench-C1hmkOUD.js → platform-workbench-BhZPARiH.js} +4887 -4929
- package/dist/types/app/DevelopmentTopbarActions.vue.d.ts +9 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +5 -1
- package/dist/types/consumer/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +6 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +2 -2
- package/dist/types/platform-admin-runtime/ModuleCodeConfigurationStatus.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/moduleCodeConfiguration.d.ts +15 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +4 -2
- package/dist/types/platform-components/RecordRelationActionButton.vue.d.ts +16 -0
- package/dist/types/{dynamic-page-runtime → platform-components}/TenantScopeExplorer.vue.d.ts +1 -1
- package/dist/types/platform-components/index.d.ts +2 -0
- package/dist/types/platform-components/managementWorkspaceLayout.d.ts +10 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +4 -0
- package/dist/types/platform-components/useBusinessCodeForm.d.ts +36 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +6 -2
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +13 -1
- package/dist/types/views/CodeConfigurationView.vue.d.ts +8 -0
- package/dist/types/views/CodeRuleFormatEditor.vue.d.ts +17 -0
- package/dist/types/views/codeConfiguration.d.ts +127 -0
- package/dist/types/views/codeConfigurationWorkspaceView.d.ts +5 -0
- package/dist/types/views/moduleGovernanceWorkspaceView.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiDatePicker.vue.d.ts +33 -0
- package/dist/types/vue-ui-antdv/components/UiHelp.vue.d.ts +16 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiPopover.vue.d.ts +12 -4
- package/dist/types/vue-ui-antdv/datePickerCalendar.d.ts +472 -0
- package/dist/types/vue-ui-antdv/datePickerValue.d.ts +6 -0
- package/dist/types/vue-ui-antdv/index.d.ts +3 -0
- package/dist/types/vue-ui-antdv/languageLocales.d.ts +2 -0
- package/dist/types/web-contracts/index.d.ts +14 -0
- package/dist/{workspaceViews-BpH71LKQ.js → workspaceViews-DeBqozVb.js} +1046 -902
- package/package.json +4 -1
- package/dist/BusinessLogListDrawer-DYVx9tiQ.js +0 -864
- package/dist/ModuleActionManagementView-DgHqhoMN.js +0 -755
- package/dist/RoleDetailWorkspaceView-C3TBqksY.js +0 -1435
- package/dist/WorkflowAdministrationView-BOHG2e-I.js +0 -650
- package/dist/WorkflowWorkbenchView-DGpNDt5V.js +0 -759
|
@@ -0,0 +1,755 @@
|
|
|
1
|
+
import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
|
|
2
|
+
import "./platform-workbench-BhZPARiH.js";
|
|
3
|
+
import { $n as t, Bn as n, Fr as ee, H as te, I as ne, Ia as r, Jt as re, Kn as i, N as ie, Nn as a, On as ae, Qi as o, Rt as oe, Un as s, Xn as c, Yn as l, _ as se, an as ce, bn as le, dt as u, er as d, qr as ue, sn as de, tr as f, w as fe, yr as pe } from "./platform-components-5AE0j2_3.js";
|
|
4
|
+
import { computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createTextVNode as v, createVNode as y, defineComponent as b, onMounted as me, openBlock as x, ref as S, toDisplayString as C, unref as w, withCtx as T, withModifiers as E } from "vue";
|
|
5
|
+
//#region src/platform-components/staticTreeResourceModuleContext.ts
|
|
6
|
+
function he(e, t = {}) {
|
|
7
|
+
let n = t.client ?? D(t.emptyQueryScopeName);
|
|
8
|
+
return {
|
|
9
|
+
...e,
|
|
10
|
+
crud: n,
|
|
11
|
+
abilities: {
|
|
12
|
+
...e.abilities,
|
|
13
|
+
crud: () => n,
|
|
14
|
+
tree: () => n,
|
|
15
|
+
enable: () => n,
|
|
16
|
+
tryCrud: () => n,
|
|
17
|
+
tryTree: () => e.abilities.hasTree() === !1 ? void 0 : n,
|
|
18
|
+
tryEnable: () => n
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function D(e = "static.empty") {
|
|
23
|
+
return {
|
|
24
|
+
querySchema: async () => O(e),
|
|
25
|
+
query: async () => k(),
|
|
26
|
+
view: async () => ({}),
|
|
27
|
+
insert: async (e) => ({ record: e }),
|
|
28
|
+
update: async (e, t) => ({ record: t }),
|
|
29
|
+
delete: async () => 0,
|
|
30
|
+
enable: async () => 0,
|
|
31
|
+
disable: async () => 0,
|
|
32
|
+
tree: async () => A(),
|
|
33
|
+
treeFlat: async () => j(),
|
|
34
|
+
subtree: async () => A(),
|
|
35
|
+
sort: async () => 0
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function O(e) {
|
|
39
|
+
return {
|
|
40
|
+
scopeName: e,
|
|
41
|
+
quickSearch: {
|
|
42
|
+
enabled: !1,
|
|
43
|
+
fields: [],
|
|
44
|
+
fieldSchemas: []
|
|
45
|
+
},
|
|
46
|
+
fields: [],
|
|
47
|
+
externalCriteria: [],
|
|
48
|
+
defaultSorts: []
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function k() {
|
|
52
|
+
return {
|
|
53
|
+
records: [],
|
|
54
|
+
total: 0,
|
|
55
|
+
pageNum: 1,
|
|
56
|
+
pageSize: 20,
|
|
57
|
+
pages: 0,
|
|
58
|
+
totalKnown: !0
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function A() {
|
|
62
|
+
return { records: [] };
|
|
63
|
+
}
|
|
64
|
+
function j() {
|
|
65
|
+
return { records: [] };
|
|
66
|
+
}
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/views/ModuleActionManagementView.vue?vue&type=script&setup=true&lang.ts
|
|
69
|
+
var ge = { class: "action-declaration-section" }, _e = { class: "permission-governance-section" }, ve = { class: "governance-grid" }, ye = { class: "governance-item" }, be = ["aria-label"], M = { class: "governance-reset-slot" }, N = { class: "governance-item" }, xe = ["aria-label"], P = { class: "governance-reset-slot" }, Se = { class: "governance-item" }, Ce = ["aria-label"], we = { class: "governance-reset-slot" }, Te = { class: "governance-switch-control" }, Ee = { class: "governance-item" }, De = ["aria-label"], Oe = { class: "governance-reset-slot" }, ke = { class: "governance-switch-control" }, Ae = { class: "form-hint wide-field" }, je = { key: 0 }, Me = {
|
|
70
|
+
key: 1,
|
|
71
|
+
class: "form-hint wide-field"
|
|
72
|
+
}, Ne = { class: "checkbox-field" }, Pe = { class: "checkbox-field" }, Fe = { class: "wide-field" }, Ie = { class: "wide-field" }, F = /*@__PURE__*/ b({
|
|
73
|
+
name: "ModuleActionManagementView",
|
|
74
|
+
__name: "ModuleActionManagementView",
|
|
75
|
+
props: {
|
|
76
|
+
moduleAlias: {},
|
|
77
|
+
moduleTitle: {},
|
|
78
|
+
moduleKind: {},
|
|
79
|
+
title: {}
|
|
80
|
+
},
|
|
81
|
+
setup(e) {
|
|
82
|
+
let f = r(), b = e, D = ee({ moduleAlias: "platform.module_action" }), O = he(D, { client: ue(D.http, `/platform.module/${encodeURIComponent(b.moduleAlias)}/actions`) }), k = S(""), A = S(!1), j = S([]), F = se({
|
|
83
|
+
language: f,
|
|
84
|
+
context: O,
|
|
85
|
+
confirmAction: (e) => le(e, f),
|
|
86
|
+
emptyDraft: () => q(b.moduleAlias),
|
|
87
|
+
normalizeDraft: (e) => J(e, b.moduleAlias),
|
|
88
|
+
copyRecord: (e) => ({ ...e }),
|
|
89
|
+
titleOf: Q,
|
|
90
|
+
get fallbackTitle() {
|
|
91
|
+
return f.t("platform.unsaved-source.ModuleActionManagementView", "模块动作");
|
|
92
|
+
},
|
|
93
|
+
get createTitle() {
|
|
94
|
+
return f.t("platform.screen.ModuleActionManagementView.new-action", "新建动作");
|
|
95
|
+
},
|
|
96
|
+
get requiredMessage() {
|
|
97
|
+
return o(f, "platform.screen.ModuleActionManagementView.the-action-code-is-required", "动作编码不能为空");
|
|
98
|
+
},
|
|
99
|
+
isValid: (e) => !!e.actionCode?.trim(),
|
|
100
|
+
get recordName() {
|
|
101
|
+
return f.t("platform.governance.tab.actions", "动作");
|
|
102
|
+
},
|
|
103
|
+
get deleteTitle() {
|
|
104
|
+
return f.t("platform.screen.ModuleActionManagementView.delete-action", "删除动作");
|
|
105
|
+
},
|
|
106
|
+
get saveDeniedMessage() {
|
|
107
|
+
return o(f, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-save-module-actions", "当前用户无权保存模块动作");
|
|
108
|
+
},
|
|
109
|
+
get createDeniedMessage() {
|
|
110
|
+
return o(f, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-create-module-actions", "当前用户无权新建模块动作");
|
|
111
|
+
},
|
|
112
|
+
get enableDeniedMessage() {
|
|
113
|
+
return o(f, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-enable-or-disable-module", "当前用户无权变更模块动作启停状态");
|
|
114
|
+
},
|
|
115
|
+
deleteDeniedMessage: () => o(f, "platform.screen.ModuleActionManagementView.you-do-not-have-permission-to-delete-module-actions", "当前用户无权删除模块动作"),
|
|
116
|
+
canDeleteRecord: (e) => e.systemManaged !== !0,
|
|
117
|
+
canEnableRecord: (e) => e.systemManaged !== !0
|
|
118
|
+
}), { selected: I, draft: L, mode: R, reloadKey: z, saving: B, cardTitle: Le, canCreate: Re, canEnable: ze } = F, Be = p(() => {
|
|
119
|
+
if (R.value === "view") return !1;
|
|
120
|
+
let e = I.value ? J(I.value, b.moduleAlias) : q(b.moduleAlias);
|
|
121
|
+
return JSON.stringify(L.value) !== JSON.stringify(e);
|
|
122
|
+
});
|
|
123
|
+
pe(() => f.t("platform.unsaved-source.ModuleActionManagementView", "模块动作"), () => Be.value);
|
|
124
|
+
let V = p(() => O.can("sort") === !0), H = p(() => R.value !== "view" || B.value || !!k.value.trim()), Ve = p(() => Re.value), He = p(() => j.value.map((e) => ({
|
|
125
|
+
value: e.executorKey,
|
|
126
|
+
label: e.description ? `${e.title} · ${e.description}` : e.title
|
|
127
|
+
}))), Ue = p(() => (j.value.find((e) => e.executorKey === L.value.executorKey)?.supportedLevels ?? [
|
|
128
|
+
"LIST",
|
|
129
|
+
"RECORD",
|
|
130
|
+
"BATCH",
|
|
131
|
+
"ANY"
|
|
132
|
+
]).map((e) => ({
|
|
133
|
+
value: e,
|
|
134
|
+
label: {
|
|
135
|
+
LIST: f.t("platform.page.composition.list", "列表"),
|
|
136
|
+
RECORD: f.t("platform.screen.ModuleActionManagementView.single-record", "单条记录"),
|
|
137
|
+
BATCH: f.t("platform.screen.ModuleActionManagementView.batch", "批量"),
|
|
138
|
+
ANY: f.t("platform.screen.ModuleActionManagementView.any", "任意")
|
|
139
|
+
}[e]
|
|
140
|
+
}))), We = p(() => [
|
|
141
|
+
"actionCode",
|
|
142
|
+
"title",
|
|
143
|
+
"category",
|
|
144
|
+
"actionLevel",
|
|
145
|
+
"accessMode",
|
|
146
|
+
"executorType",
|
|
147
|
+
...Z(L.value.executorKey) ? ["executorKey"] : [],
|
|
148
|
+
"actionAuth",
|
|
149
|
+
"dataAuth",
|
|
150
|
+
"defaultGrantPolicy",
|
|
151
|
+
...Z(L.value.availableExpression) ? ["availableExpression"] : [],
|
|
152
|
+
...Z(L.value.unavailableMessage) ? ["unavailableMessage"] : [],
|
|
153
|
+
...L.value.sourceType ? ["sourceType"] : [],
|
|
154
|
+
...Z(L.value.bindingAlias) ? ["bindingAlias"] : []
|
|
155
|
+
]), Ge = p(() => [
|
|
156
|
+
"actionCode",
|
|
157
|
+
"title",
|
|
158
|
+
"category",
|
|
159
|
+
"actionLevel",
|
|
160
|
+
"executorType",
|
|
161
|
+
...Z(L.value.executorKey) ? ["executorKey"] : [],
|
|
162
|
+
...L.value.sourceType ? ["sourceType"] : []
|
|
163
|
+
]);
|
|
164
|
+
me(() => void Qe());
|
|
165
|
+
let Ke = p(() => F.readonly.value), U = p(() => Ke.value || F.saving.value), qe = p(() => {
|
|
166
|
+
if (F.mode.value !== "view") return [
|
|
167
|
+
...F.mode.value === "edit" && F.selected.value?.systemManaged === !0 && Xe(L.value) ? [{
|
|
168
|
+
key: "reset-permission-governance",
|
|
169
|
+
actionCode: "update",
|
|
170
|
+
title: f.t("platform.screen.ModuleActionManagementView.reset-all", "全部重置"),
|
|
171
|
+
disabled: F.saving.value
|
|
172
|
+
}] : [],
|
|
173
|
+
{
|
|
174
|
+
key: "cancel",
|
|
175
|
+
title: f.t("platform.action.cancel", "取消"),
|
|
176
|
+
disabled: F.saving.value
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
key: "save",
|
|
180
|
+
actionCode: F.mode.value === "create" ? "create" : "update",
|
|
181
|
+
title: F.saving.value ? f.t("platform.action.saving", "保存中") : f.t("platform.action.save", "保存"),
|
|
182
|
+
primary: !0,
|
|
183
|
+
loading: F.saving.value
|
|
184
|
+
}
|
|
185
|
+
];
|
|
186
|
+
let e = F.selected.value;
|
|
187
|
+
return [{
|
|
188
|
+
key: "edit",
|
|
189
|
+
actionCode: "update",
|
|
190
|
+
title: f.t("platform.action.edit", "编辑"),
|
|
191
|
+
disabled: !e || !F.canUpdate.value
|
|
192
|
+
}, {
|
|
193
|
+
key: "delete",
|
|
194
|
+
actionCode: "delete",
|
|
195
|
+
title: f.t("platform.action.delete", "删除"),
|
|
196
|
+
danger: !0,
|
|
197
|
+
loading: F.saving.value,
|
|
198
|
+
disabled: !e || e.systemManaged === !0 || !F.canDelete.value
|
|
199
|
+
}];
|
|
200
|
+
});
|
|
201
|
+
function Je(e) {
|
|
202
|
+
let t = e;
|
|
203
|
+
return {
|
|
204
|
+
title: Q(t),
|
|
205
|
+
secondary: t.actionCode,
|
|
206
|
+
tag: t.systemManaged === !0 ? f.t("platform.screen.pageCompositionSession.platform-managed", "平台托管") : t.executorKey ? f.t("platform.screen.RoleAccountGrantDrawer.assigned", "已绑定") : f.t("platform.screen.PageCompositionTree.binding-pending", "待绑定"),
|
|
207
|
+
muted: t.enabled === !1
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
function Ye(e) {
|
|
211
|
+
e.key === "edit" && F.startEdit(), e.key === "delete" && F.removeSelected(), e.key === "reset-permission-governance" && Ze(), e.key === "cancel" && F.cancelEdit(), e.key === "save" && F.save();
|
|
212
|
+
}
|
|
213
|
+
function Xe(e) {
|
|
214
|
+
return [
|
|
215
|
+
e.accessModeOverride,
|
|
216
|
+
e.actionAuthOverride,
|
|
217
|
+
e.dataAuthOverride,
|
|
218
|
+
e.defaultGrantPolicyOverride
|
|
219
|
+
].some((e) => e != null);
|
|
220
|
+
}
|
|
221
|
+
function W(e) {
|
|
222
|
+
return L.value[e] != null;
|
|
223
|
+
}
|
|
224
|
+
function G(e) {
|
|
225
|
+
K(e, void 0);
|
|
226
|
+
}
|
|
227
|
+
function Ze() {
|
|
228
|
+
F.draft.value = {
|
|
229
|
+
...F.draft.value,
|
|
230
|
+
accessModeOverride: void 0,
|
|
231
|
+
actionAuthOverride: void 0,
|
|
232
|
+
dataAuthOverride: void 0,
|
|
233
|
+
defaultGrantPolicyOverride: void 0
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
function K(e, t) {
|
|
237
|
+
F.draft.value = {
|
|
238
|
+
...F.draft.value,
|
|
239
|
+
[e]: t ?? void 0
|
|
240
|
+
};
|
|
241
|
+
}
|
|
242
|
+
async function Qe() {
|
|
243
|
+
try {
|
|
244
|
+
j.value = await D.http.request({ path: "/platform.module/action-executors" });
|
|
245
|
+
} catch (e) {
|
|
246
|
+
j.value = [], de(e, {
|
|
247
|
+
language: f,
|
|
248
|
+
source: "module-action-management",
|
|
249
|
+
phase: "load"
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
function $e() {
|
|
254
|
+
F.startCreate();
|
|
255
|
+
}
|
|
256
|
+
function et(e) {
|
|
257
|
+
let t = typeof e == "string" ? e : void 0, n = j.value.find((e) => e.executorKey === t);
|
|
258
|
+
K("executorKey", t), n?.supportedLevels.length && K("actionLevel", n.supportedLevels[0]);
|
|
259
|
+
}
|
|
260
|
+
function q(e) {
|
|
261
|
+
return {
|
|
262
|
+
moduleAlias: e,
|
|
263
|
+
actionCode: "",
|
|
264
|
+
title: "",
|
|
265
|
+
category: "CUSTOM",
|
|
266
|
+
actionLevel: "ANY",
|
|
267
|
+
accessMode: "AUTH_REQUIRED",
|
|
268
|
+
actionAuth: !0,
|
|
269
|
+
dataAuth: !1,
|
|
270
|
+
defaultGrantPolicy: "NONE",
|
|
271
|
+
executorType: "SERVICE",
|
|
272
|
+
enabled: !0,
|
|
273
|
+
systemManaged: !1
|
|
274
|
+
};
|
|
275
|
+
}
|
|
276
|
+
function J(e, t) {
|
|
277
|
+
return {
|
|
278
|
+
...e,
|
|
279
|
+
moduleAlias: t,
|
|
280
|
+
actionCode: Y(e.actionCode),
|
|
281
|
+
title: X(e.title) ?? Y(e.actionCode),
|
|
282
|
+
entityAlias: X(e.entityAlias),
|
|
283
|
+
permissionActionCode: X(e.permissionActionCode),
|
|
284
|
+
availableExpression: X(e.availableExpression),
|
|
285
|
+
unavailableMessage: X(e.unavailableMessage),
|
|
286
|
+
executorKey: X(e.executorKey)
|
|
287
|
+
};
|
|
288
|
+
}
|
|
289
|
+
function Y(e) {
|
|
290
|
+
return e?.trim() ?? "";
|
|
291
|
+
}
|
|
292
|
+
function X(e) {
|
|
293
|
+
return e?.trim() || void 0;
|
|
294
|
+
}
|
|
295
|
+
function Z(e) {
|
|
296
|
+
return !!e?.trim();
|
|
297
|
+
}
|
|
298
|
+
function Q(e) {
|
|
299
|
+
return e.title?.trim() || e.actionCode?.trim() || e.id || f.t("platform.screen.ModuleActionManagementView.untitled-action", "未命名动作");
|
|
300
|
+
}
|
|
301
|
+
function $(e, t) {
|
|
302
|
+
let n = {
|
|
303
|
+
category: {
|
|
304
|
+
STANDARD: f.t("platform.screen.RoleAuthorizationView.standard-action", "标准动作"),
|
|
305
|
+
CUSTOM: f.t("platform.screen.ModuleActionManagementView.custom-action", "自定义动作"),
|
|
306
|
+
DIALOG: f.t("platform.screen.ModuleActionManagementView.dialog-action", "弹窗动作"),
|
|
307
|
+
WORKFLOW: f.t("platform.screen.ModuleActionManagementView.workflow-action", "工作流动作"),
|
|
308
|
+
GENERATE: f.t("platform.screen.ModuleActionManagementView.generation-action", "生成动作")
|
|
309
|
+
},
|
|
310
|
+
actionLevel: {
|
|
311
|
+
LIST: f.t("platform.page.composition.list", "列表"),
|
|
312
|
+
RECORD: f.t("platform.screen.ModuleActionManagementView.single-record", "单条记录"),
|
|
313
|
+
BATCH: f.t("platform.screen.ModuleActionManagementView.batch", "批量"),
|
|
314
|
+
ANY: f.t("platform.screen.ModuleActionManagementView.any", "任意")
|
|
315
|
+
},
|
|
316
|
+
accessMode: {
|
|
317
|
+
AUTH_REQUIRED: f.t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
|
|
318
|
+
LOGIN_REQUIRED: f.t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
|
|
319
|
+
ANONYMOUS_ALLOWED: f.t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用")
|
|
320
|
+
},
|
|
321
|
+
executorType: {
|
|
322
|
+
STANDARD: f.t("platform.screen.ModuleActionManagementView.platform-standard", "平台标准"),
|
|
323
|
+
SERVICE: f.t("platform.screen.ModuleActionManagementView.custom-service", "服务(二开)"),
|
|
324
|
+
DIALOG: f.t("platform.screen.ModuleActionManagementView.dialog-protocol", "弹窗协议"),
|
|
325
|
+
WORKFLOW: f.t("platform.screen.ModuleActionManagementView.workflow", "工作流"),
|
|
326
|
+
GENERATE: f.t("platform.screen.ModuleActionManagementView.generator", "生成器")
|
|
327
|
+
},
|
|
328
|
+
defaultGrantPolicy: {
|
|
329
|
+
NONE: f.t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
|
|
330
|
+
ANY_LOGIN_USER: f.t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
|
|
331
|
+
OWNER: f.t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
|
|
332
|
+
ASSIGNEE: f.t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
|
|
333
|
+
MEMBER: f.t("platform.screen.ModuleActionManagementView.member", "成员")
|
|
334
|
+
},
|
|
335
|
+
sourceType: {
|
|
336
|
+
STATIC_MODULE: f.t("platform.screen.ModuleActionManagementView.static-module-declaration", "静态模块声明"),
|
|
337
|
+
CODE_EXTENSION: f.t("platform.screen.ModuleActionManagementView.code-extension", "代码扩展"),
|
|
338
|
+
DYNAMIC_MODULE: f.t("platform.screen.ModuleActionManagementView.dynamic-module-configuration", "动态模块配置"),
|
|
339
|
+
WORKFLOW_DEFINITION: f.t("platform.screen.ModuleActionManagementView.workflow-definition", "工作流定义"),
|
|
340
|
+
WORKFLOW_RUNTIME: f.t("platform.screen.ModuleActionManagementView.workflow-runtime", "工作流运行时"),
|
|
341
|
+
RECORD_GENERATION_RULE: f.t("platform.screen.ModuleActionManagementView.document-generation-rule", "生单规则"),
|
|
342
|
+
DOCUMENT_RELATION: f.t("platform.screen.ModuleActionManagementView.document-relation", "单据关系"),
|
|
343
|
+
PRINT_TEMPLATE: f.t("platform.screen.ModuleActionManagementView.print-template", "打印模板")
|
|
344
|
+
}
|
|
345
|
+
};
|
|
346
|
+
return e === "actionAuth" || e === "dataAuth" ? t === !0 ? f.t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : f.t("platform.screen.ModuleActionManagementView.not-enabled", "未启用") : typeof t == "string" ? n[e]?.[t] : void 0;
|
|
347
|
+
}
|
|
348
|
+
return (ee, r) => (x(), m(w(fe), {
|
|
349
|
+
"explorer-title": w(f).t("platform.unsaved-source.ModuleActionManagementView", "模块动作"),
|
|
350
|
+
"refresh-title": w(f).t("platform.screen.ModuleActionManagementView.refresh-actions", "刷新动作"),
|
|
351
|
+
mode: w(R),
|
|
352
|
+
"detail-title": w(Le),
|
|
353
|
+
"explorer-search-keyword": k.value,
|
|
354
|
+
"explorer-search-placeholder": w(f).t("platform.screen.ModuleActionManagementView.search-action-name-or-code", "搜索动作名称或编码"),
|
|
355
|
+
"onUpdate:explorerSearchKeyword": r[23] ||= (e) => k.value = e,
|
|
356
|
+
onRefresh: r[24] ||= (e) => z.value += 1
|
|
357
|
+
}, {
|
|
358
|
+
"explorer-actions": T(() => [V.value ? (x(), m(w(te), {
|
|
359
|
+
key: 0,
|
|
360
|
+
"icon-name": "swap-vertical",
|
|
361
|
+
"icon-only": "",
|
|
362
|
+
size: "small",
|
|
363
|
+
type: "text",
|
|
364
|
+
selected: A.value,
|
|
365
|
+
disabled: H.value,
|
|
366
|
+
title: k.value.trim() ? w(f).t("platform.screen.ModulePageHostRuntime.clear-the-search-to-reorder-records", "清空搜索后可调整排序") : w(R) === "view" ? A.value ? w(f).t("platform.screen.ModulePageHostRuntime.finish-reordering", "结束排序") : w(f).t("platform.screen.ModulePageHostRuntime.reorder", "调整排序") : w(f).t("platform.screen.ModuleActionManagementView.finish-editing-before-reordering", "结束编辑后可调整排序"),
|
|
367
|
+
"aria-label": A.value ? w(f).t("platform.screen.ModulePageHostRuntime.finish-reordering", "结束排序") : w(f).t("platform.screen.ModulePageHostRuntime.reorder", "调整排序"),
|
|
368
|
+
onClick: r[0] ||= (e) => A.value = !A.value
|
|
369
|
+
}, null, 8, [
|
|
370
|
+
"selected",
|
|
371
|
+
"disabled",
|
|
372
|
+
"title",
|
|
373
|
+
"aria-label"
|
|
374
|
+
])) : h("v-if", !0), y(w(re), {
|
|
375
|
+
class: "record-panel-create-button",
|
|
376
|
+
context: w(O),
|
|
377
|
+
"action-code": "create",
|
|
378
|
+
title: w(f).t("platform.screen.ModuleActionManagementView.new-action", "新建动作"),
|
|
379
|
+
"icon-only": "",
|
|
380
|
+
disabled: !Ve.value || w(B),
|
|
381
|
+
onClick: $e
|
|
382
|
+
}, null, 8, [
|
|
383
|
+
"context",
|
|
384
|
+
"title",
|
|
385
|
+
"disabled"
|
|
386
|
+
])]),
|
|
387
|
+
explorer: T(() => [y(w(ce), {
|
|
388
|
+
context: w(O),
|
|
389
|
+
"selected-id": w(I)?.id,
|
|
390
|
+
"reload-key": w(z),
|
|
391
|
+
keyword: k.value,
|
|
392
|
+
sorting: A.value && V.value && !H.value,
|
|
393
|
+
"empty-description": w(f).t("platform.screen.ModuleActionManagementView.no-actions-are-available-for-this-module", "当前模块暂无动作"),
|
|
394
|
+
"loading-tip": w(f).t("platform.screen.RoleAuthorizationView.loading-module-actions", "加载模块动作"),
|
|
395
|
+
"fallback-title": w(f).t("platform.screen.ModuleActionManagementView.untitled-action", "未命名动作"),
|
|
396
|
+
"item-of": Je,
|
|
397
|
+
onLoaded: r[1] ||= (e) => w(F).handleListLoaded(e),
|
|
398
|
+
onSelect: r[2] ||= (e) => w(F).handleSelect(e)
|
|
399
|
+
}, null, 8, [
|
|
400
|
+
"context",
|
|
401
|
+
"selected-id",
|
|
402
|
+
"reload-key",
|
|
403
|
+
"keyword",
|
|
404
|
+
"sorting",
|
|
405
|
+
"empty-description",
|
|
406
|
+
"loading-tip",
|
|
407
|
+
"fallback-title"
|
|
408
|
+
])]),
|
|
409
|
+
"detail-status": T(() => [w(R) === "view" && w(I) ? (x(), m(w(ne), {
|
|
410
|
+
key: 0,
|
|
411
|
+
enabled: w(I).enabled,
|
|
412
|
+
disabled: w(B) || w(I).systemManaged === !0 || !w(ze),
|
|
413
|
+
loading: w(B),
|
|
414
|
+
"show-label": !1,
|
|
415
|
+
onChange: w(F).toggleEnabled
|
|
416
|
+
}, null, 8, [
|
|
417
|
+
"enabled",
|
|
418
|
+
"disabled",
|
|
419
|
+
"loading",
|
|
420
|
+
"onChange"
|
|
421
|
+
])) : h("v-if", !0)]),
|
|
422
|
+
"detail-actions": T(() => [y(w(oe), {
|
|
423
|
+
context: w(O),
|
|
424
|
+
actions: qe.value,
|
|
425
|
+
onAction: Ye
|
|
426
|
+
}, null, 8, ["context", "actions"])]),
|
|
427
|
+
default: T(() => [!w(I) && w(R) === "view" ? (x(), m(w(ae), {
|
|
428
|
+
key: 0,
|
|
429
|
+
description: e.moduleKind === "static" ? w(f).t("platform.screen.ModuleActionManagementView.static-module-actions-are-registered-automatically-from-java-declarations", "静态模块动作由 Java 声明自动注册") : w(f).t("platform.screen.ModuleActionManagementView.no-actions-are-available-for-this-module", "当前模块暂无动作")
|
|
430
|
+
}, null, 8, ["description"])) : w(R) === "view" && w(I) ? (x(), m(w(u), {
|
|
431
|
+
key: 1,
|
|
432
|
+
record: w(L),
|
|
433
|
+
"display-of": $,
|
|
434
|
+
"field-names": We.value,
|
|
435
|
+
fallback: {
|
|
436
|
+
actionCode: { label: w(f).t("platform.screen.ModuleActionManagementView.action-code", "动作编码") },
|
|
437
|
+
title: { label: w(f).t("platform.screen.ModuleActionManagementView.action-name", "动作名称") },
|
|
438
|
+
category: { label: w(f).t("platform.screen.ModuleActionManagementView.action-category", "动作类别") },
|
|
439
|
+
actionLevel: { label: w(f).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级") },
|
|
440
|
+
accessMode: { label: w(f).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式") },
|
|
441
|
+
executorType: { label: w(f).t("platform.screen.ModuleActionManagementView.execution-method", "执行方式") },
|
|
442
|
+
executorKey: { label: w(f).t("platform.screen.ModuleActionManagementView.executor-implementation", "执行实现") },
|
|
443
|
+
actionAuth: { label: w(f).t("platform.screen.ModuleActionManagementView.action-authorization", "动作授权") },
|
|
444
|
+
dataAuth: { label: w(f).t("platform.screen.ModuleActionManagementView.data-authorization", "数据授权") },
|
|
445
|
+
defaultGrantPolicy: { label: w(f).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略") },
|
|
446
|
+
availableExpression: { label: w(f).t("platform.screen.ModuleActionManagementView.availability-condition", "可用条件") },
|
|
447
|
+
unavailableMessage: { label: w(f).t("platform.screen.ModuleActionManagementView.unavailable-message", "不可用提示") },
|
|
448
|
+
sourceType: { label: w(f).t("platform.screen.ModuleActionManagementView.registration-source", "注册来源") },
|
|
449
|
+
bindingAlias: { label: w(f).t("platform.screen.ModuleActionManagementView.binding-id", "绑定标识") }
|
|
450
|
+
}
|
|
451
|
+
}, null, 8, [
|
|
452
|
+
"record",
|
|
453
|
+
"field-names",
|
|
454
|
+
"fallback"
|
|
455
|
+
])) : w(R) !== "create" && w(I)?.systemManaged ? (x(), g("form", {
|
|
456
|
+
key: 2,
|
|
457
|
+
class: "managed-action-editor",
|
|
458
|
+
onSubmit: r[11] ||= E((...e) => w(F).save && w(F).save(...e), ["prevent"])
|
|
459
|
+
}, [_("section", ge, [_("h3", null, C(w(f).t("platform.screen.ModuleActionManagementView.action-declaration", "动作声明")), 1), y(w(u), {
|
|
460
|
+
record: w(L),
|
|
461
|
+
"display-of": $,
|
|
462
|
+
"field-names": Ge.value,
|
|
463
|
+
fallback: {
|
|
464
|
+
actionCode: { label: w(f).t("platform.screen.ModuleActionManagementView.action-code", "动作编码") },
|
|
465
|
+
title: { label: w(f).t("platform.screen.ModuleActionManagementView.action-name", "动作名称") },
|
|
466
|
+
category: { label: w(f).t("platform.screen.ModuleActionManagementView.action-category", "动作类别") },
|
|
467
|
+
actionLevel: { label: w(f).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级") },
|
|
468
|
+
executorType: { label: w(f).t("platform.screen.ModuleActionManagementView.execution-method", "执行方式") },
|
|
469
|
+
executorKey: { label: w(f).t("platform.screen.ModuleActionManagementView.executor-implementation", "执行实现") },
|
|
470
|
+
sourceType: { label: w(f).t("platform.screen.ModuleActionManagementView.registration-source", "注册来源") }
|
|
471
|
+
}
|
|
472
|
+
}, null, 8, [
|
|
473
|
+
"record",
|
|
474
|
+
"field-names",
|
|
475
|
+
"fallback"
|
|
476
|
+
])]), _("section", _e, [_("h3", null, C(w(f).t("platform.screen.ModuleActionManagementView.permission-governance", "权限治理")), 1), _("div", ve, [
|
|
477
|
+
_("section", ye, [_("header", null, [_("div", null, [_("h4", null, [v(C(w(f).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式")) + " ", 1), y(w(n), { title: w(f).t("platform.screen.ModuleActionManagementView.define-the-identity-requirements-for-invoking-this-action", "决定调用动作前需要满足的身份条件。") }, {
|
|
478
|
+
default: T(() => [_("button", {
|
|
479
|
+
type: "button",
|
|
480
|
+
class: "governance-help",
|
|
481
|
+
"aria-label": w(f).t("platform.screen.ModuleActionManagementView.access-method-description", "访问方式说明")
|
|
482
|
+
}, [y(w(d), { name: "help" })], 8, be)]),
|
|
483
|
+
_: 1
|
|
484
|
+
}, 8, ["title"])])]), _("span", M, [W("accessModeOverride") ? (x(), m(w(t), {
|
|
485
|
+
key: 0,
|
|
486
|
+
type: "text",
|
|
487
|
+
size: "small",
|
|
488
|
+
disabled: U.value,
|
|
489
|
+
onClick: r[3] ||= (e) => G("accessModeOverride")
|
|
490
|
+
}, {
|
|
491
|
+
default: T(() => [v(C(w(f).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
|
|
492
|
+
_: 1
|
|
493
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), y(w(l), {
|
|
494
|
+
value: w(L).accessModeOverride ?? w(L).accessMode,
|
|
495
|
+
disabled: U.value,
|
|
496
|
+
options: [
|
|
497
|
+
{
|
|
498
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
|
|
499
|
+
value: "AUTH_REQUIRED"
|
|
500
|
+
},
|
|
501
|
+
{
|
|
502
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
|
|
503
|
+
value: "LOGIN_REQUIRED"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用"),
|
|
507
|
+
value: "ANONYMOUS_ALLOWED"
|
|
508
|
+
}
|
|
509
|
+
],
|
|
510
|
+
"onUpdate:value": r[4] ||= (e) => K("accessModeOverride", e)
|
|
511
|
+
}, null, 8, [
|
|
512
|
+
"value",
|
|
513
|
+
"disabled",
|
|
514
|
+
"options"
|
|
515
|
+
])]),
|
|
516
|
+
_("section", N, [_("header", null, [_("div", null, [_("h4", null, [v(C(w(f).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略")) + " ", 1), y(w(n), { title: w(f).t("platform.screen.ModuleActionManagementView.define-the-default-grant-rules-when-eligible-users-first-receive", "定义满足条件的用户首次获得动作时的默认规则。") }, {
|
|
517
|
+
default: T(() => [_("button", {
|
|
518
|
+
type: "button",
|
|
519
|
+
class: "governance-help",
|
|
520
|
+
"aria-label": w(f).t("platform.screen.ModuleActionManagementView.default-grant-policy-description", "默认授予策略说明")
|
|
521
|
+
}, [y(w(d), { name: "help" })], 8, xe)]),
|
|
522
|
+
_: 1
|
|
523
|
+
}, 8, ["title"])])]), _("span", P, [W("defaultGrantPolicyOverride") ? (x(), m(w(t), {
|
|
524
|
+
key: 0,
|
|
525
|
+
type: "text",
|
|
526
|
+
size: "small",
|
|
527
|
+
disabled: U.value,
|
|
528
|
+
onClick: r[5] ||= (e) => G("defaultGrantPolicyOverride")
|
|
529
|
+
}, {
|
|
530
|
+
default: T(() => [v(C(w(f).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
|
|
531
|
+
_: 1
|
|
532
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), y(w(l), {
|
|
533
|
+
value: w(L).defaultGrantPolicyOverride ?? w(L).defaultGrantPolicy,
|
|
534
|
+
disabled: U.value,
|
|
535
|
+
options: [
|
|
536
|
+
{
|
|
537
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
|
|
538
|
+
value: "NONE"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
|
|
542
|
+
value: "ANY_LOGIN_USER"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
|
|
546
|
+
value: "OWNER"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
label: w(f).t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
|
|
550
|
+
value: "ASSIGNEE"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.member", "成员"),
|
|
554
|
+
value: "MEMBER"
|
|
555
|
+
}
|
|
556
|
+
],
|
|
557
|
+
"onUpdate:value": r[6] ||= (e) => K("defaultGrantPolicyOverride", e)
|
|
558
|
+
}, null, 8, [
|
|
559
|
+
"value",
|
|
560
|
+
"disabled",
|
|
561
|
+
"options"
|
|
562
|
+
])]),
|
|
563
|
+
_("section", Se, [_("header", null, [_("div", null, [_("h4", null, [v(C(w(f).t("platform.screen.ModuleActionManagementView.action-authorization", "动作授权")) + " ", 1), y(w(n), { title: w(f).t("platform.screen.ModuleActionManagementView.control-whether-roles-require-an-explicit-grant-for-this-action", "控制角色是否需要被显式授予该动作。") }, {
|
|
564
|
+
default: T(() => [_("button", {
|
|
565
|
+
type: "button",
|
|
566
|
+
class: "governance-help",
|
|
567
|
+
"aria-label": w(f).t("platform.screen.ModuleActionManagementView.action-permission-description", "动作授权说明")
|
|
568
|
+
}, [y(w(d), { name: "help" })], 8, Ce)]),
|
|
569
|
+
_: 1
|
|
570
|
+
}, 8, ["title"])])]), _("span", we, [W("actionAuthOverride") ? (x(), m(w(t), {
|
|
571
|
+
key: 0,
|
|
572
|
+
type: "text",
|
|
573
|
+
size: "small",
|
|
574
|
+
disabled: U.value,
|
|
575
|
+
onClick: r[7] ||= (e) => G("actionAuthOverride")
|
|
576
|
+
}, {
|
|
577
|
+
default: T(() => [v(C(w(f).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
|
|
578
|
+
_: 1
|
|
579
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), _("div", Te, [y(w(a), {
|
|
580
|
+
checked: (w(L).actionAuthOverride ?? w(L).actionAuth) !== !1,
|
|
581
|
+
disabled: U.value,
|
|
582
|
+
"checked-text": w(f).t("platform.screen.ModuleActionManagementView.on", "开"),
|
|
583
|
+
"unchecked-text": w(f).t("platform.screen.ModuleActionManagementView.off", "关"),
|
|
584
|
+
"onUpdate:checked": r[8] ||= (e) => K("actionAuthOverride", e)
|
|
585
|
+
}, null, 8, [
|
|
586
|
+
"checked",
|
|
587
|
+
"disabled",
|
|
588
|
+
"checked-text",
|
|
589
|
+
"unchecked-text"
|
|
590
|
+
]), _("strong", null, C((w(L).actionAuthOverride ?? w(L).actionAuth) === !1 ? w(f).t("platform.screen.ModuleActionManagementView.not-enabled", "未启用") : w(f).t("platform.screen.DynamicModuleWorkspaceDetailView.enabled", "已启用")), 1)])]),
|
|
591
|
+
_("section", Ee, [_("header", null, [_("div", null, [_("h4", null, [v(C(w(f).t("platform.screen.ModuleActionManagementView.data-authorization", "数据授权")) + " ", 1), y(w(n), { title: w(f).t("platform.screen.ModuleActionManagementView.when-enabled-reads-and-execution-are-checked-against-the-data", "启用后,读取和执行会继续按数据范围校验。") }, {
|
|
592
|
+
default: T(() => [_("button", {
|
|
593
|
+
type: "button",
|
|
594
|
+
class: "governance-help",
|
|
595
|
+
"aria-label": w(f).t("platform.screen.ModuleActionManagementView.data-permission-description", "数据授权说明")
|
|
596
|
+
}, [y(w(d), { name: "help" })], 8, De)]),
|
|
597
|
+
_: 1
|
|
598
|
+
}, 8, ["title"])])]), _("span", Oe, [W("dataAuthOverride") ? (x(), m(w(t), {
|
|
599
|
+
key: 0,
|
|
600
|
+
type: "text",
|
|
601
|
+
size: "small",
|
|
602
|
+
disabled: U.value,
|
|
603
|
+
onClick: r[9] ||= (e) => G("dataAuthOverride")
|
|
604
|
+
}, {
|
|
605
|
+
default: T(() => [v(C(w(f).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
|
|
606
|
+
_: 1
|
|
607
|
+
}, 8, ["disabled"])) : h("v-if", !0)])]), _("div", ke, [y(w(a), {
|
|
608
|
+
checked: (w(L).dataAuthOverride ?? w(L).dataAuth) === !0,
|
|
609
|
+
disabled: U.value,
|
|
610
|
+
"checked-text": w(f).t("platform.screen.ModuleActionManagementView.on", "开"),
|
|
611
|
+
"unchecked-text": w(f).t("platform.screen.ModuleActionManagementView.off", "关"),
|
|
612
|
+
"onUpdate:checked": r[10] ||= (e) => K("dataAuthOverride", e)
|
|
613
|
+
}, null, 8, [
|
|
614
|
+
"checked",
|
|
615
|
+
"disabled",
|
|
616
|
+
"checked-text",
|
|
617
|
+
"unchecked-text"
|
|
618
|
+
]), _("strong", null, C((w(L).dataAuthOverride ?? w(L).dataAuth) === !0 ? w(f).t("platform.screen.DynamicModuleWorkspaceDetailView.enabled", "已启用") : w(f).t("platform.screen.ModuleActionManagementView.not-enabled", "未启用")), 1)])])
|
|
619
|
+
])])], 32)) : (x(), g("form", {
|
|
620
|
+
key: 3,
|
|
621
|
+
class: "static-record-form",
|
|
622
|
+
onSubmit: r[22] ||= E((...e) => w(F).save && w(F).save(...e), ["prevent"])
|
|
623
|
+
}, [
|
|
624
|
+
_("p", Ae, C(w(f).t("platform.screen.ModuleActionManagementView.you-can-save-an-action-before-binding-its-executor-unbound", "可以先保存动作,再绑定执行能力。待绑定动作不可执行,页面引用后需完成绑定才能发布。")), 1),
|
|
625
|
+
_("label", null, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.action-code", "动作编码")), 1), y(w(i), {
|
|
626
|
+
value: w(L).actionCode,
|
|
627
|
+
disabled: U.value,
|
|
628
|
+
"onUpdate:value": r[12] ||= (e) => K("actionCode", e)
|
|
629
|
+
}, null, 8, ["value", "disabled"])]),
|
|
630
|
+
_("label", null, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.action-name", "动作名称")), 1), y(w(i), {
|
|
631
|
+
value: w(L).title,
|
|
632
|
+
disabled: U.value,
|
|
633
|
+
"onUpdate:value": r[13] ||= (e) => K("title", e)
|
|
634
|
+
}, null, 8, ["value", "disabled"])]),
|
|
635
|
+
_("label", null, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.execution-level", "执行层级")), 1), y(w(l), {
|
|
636
|
+
value: w(L).actionLevel,
|
|
637
|
+
disabled: U.value,
|
|
638
|
+
options: Ue.value,
|
|
639
|
+
"onUpdate:value": r[14] ||= (e) => K("actionLevel", e)
|
|
640
|
+
}, null, 8, [
|
|
641
|
+
"value",
|
|
642
|
+
"disabled",
|
|
643
|
+
"options"
|
|
644
|
+
])]),
|
|
645
|
+
_("label", null, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.access-mode", "访问方式")), 1), y(w(l), {
|
|
646
|
+
value: w(L).accessMode,
|
|
647
|
+
disabled: U.value,
|
|
648
|
+
options: [
|
|
649
|
+
{
|
|
650
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.authorization-required", "需要授权"),
|
|
651
|
+
value: "AUTH_REQUIRED"
|
|
652
|
+
},
|
|
653
|
+
{
|
|
654
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.signed-in-access", "登录可用"),
|
|
655
|
+
value: "LOGIN_REQUIRED"
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.anonymous-access", "匿名可用"),
|
|
659
|
+
value: "ANONYMOUS_ALLOWED"
|
|
660
|
+
}
|
|
661
|
+
],
|
|
662
|
+
"onUpdate:value": r[15] ||= (e) => K("accessMode", e)
|
|
663
|
+
}, null, 8, [
|
|
664
|
+
"value",
|
|
665
|
+
"disabled",
|
|
666
|
+
"options"
|
|
667
|
+
])]),
|
|
668
|
+
e.moduleKind === "dynamic" ? (x(), g("label", je, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.executor-can-be-bound-later", "执行能力(可稍后绑定)")), 1), y(w(l), {
|
|
669
|
+
value: w(L).executorKey,
|
|
670
|
+
"allow-clear": "",
|
|
671
|
+
placeholder: w(f).t("platform.screen.PageCompositionTree.binding-pending", "待绑定"),
|
|
672
|
+
disabled: U.value,
|
|
673
|
+
options: He.value,
|
|
674
|
+
"onUpdate:value": r[16] ||= (e) => et(e)
|
|
675
|
+
}, null, 8, [
|
|
676
|
+
"value",
|
|
677
|
+
"placeholder",
|
|
678
|
+
"disabled",
|
|
679
|
+
"options"
|
|
680
|
+
])])) : h("v-if", !0),
|
|
681
|
+
e.moduleKind === "dynamic" ? h("v-if", !0) : (x(), g("p", Me, C(w(f).t("platform.screen.ModuleActionManagementView.static-modules-bind-an-executor-through-a-code-action-declaration", "静态模块通过同编码的代码动作声明绑定执行能力。")), 1)),
|
|
682
|
+
_("label", Ne, [y(w(c), {
|
|
683
|
+
checked: w(L).actionAuth !== !1,
|
|
684
|
+
disabled: U.value,
|
|
685
|
+
"onUpdate:checked": r[17] ||= (e) => K("actionAuth", e)
|
|
686
|
+
}, {
|
|
687
|
+
default: T(() => [v(C(w(f).t("platform.screen.ModuleActionManagementView.enable-action-permissions", "启用动作授权")), 1)]),
|
|
688
|
+
_: 1
|
|
689
|
+
}, 8, ["checked", "disabled"])]),
|
|
690
|
+
_("label", Pe, [y(w(c), {
|
|
691
|
+
checked: w(L).dataAuth === !0,
|
|
692
|
+
disabled: U.value,
|
|
693
|
+
"onUpdate:checked": r[18] ||= (e) => K("dataAuth", e)
|
|
694
|
+
}, {
|
|
695
|
+
default: T(() => [v(C(w(f).t("platform.screen.ModuleActionManagementView.enable-data-permissions", "启用数据授权")), 1)]),
|
|
696
|
+
_: 1
|
|
697
|
+
}, 8, ["checked", "disabled"])]),
|
|
698
|
+
_("label", null, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.default-grant-policy", "默认授予策略")), 1), y(w(l), {
|
|
699
|
+
value: w(L).defaultGrantPolicy,
|
|
700
|
+
disabled: U.value,
|
|
701
|
+
options: [
|
|
702
|
+
{
|
|
703
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.no-default-grant", "不默认授予"),
|
|
704
|
+
value: "NONE"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.all-signed-in-users", "所有登录用户"),
|
|
708
|
+
value: "ANY_LOGIN_USER"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.record-owner", "记录所有者"),
|
|
712
|
+
value: "OWNER"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
label: w(f).t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
|
|
716
|
+
value: "ASSIGNEE"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
label: w(f).t("platform.screen.ModuleActionManagementView.member", "成员"),
|
|
720
|
+
value: "MEMBER"
|
|
721
|
+
}
|
|
722
|
+
],
|
|
723
|
+
"onUpdate:value": r[19] ||= (e) => K("defaultGrantPolicy", e)
|
|
724
|
+
}, null, 8, [
|
|
725
|
+
"value",
|
|
726
|
+
"disabled",
|
|
727
|
+
"options"
|
|
728
|
+
])]),
|
|
729
|
+
_("label", Fe, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.availability-expression", "可用条件表达式")), 1), y(w(s), {
|
|
730
|
+
value: w(L).availableExpression,
|
|
731
|
+
disabled: U.value,
|
|
732
|
+
"onUpdate:value": r[20] ||= (e) => K("availableExpression", e)
|
|
733
|
+
}, null, 8, ["value", "disabled"])]),
|
|
734
|
+
_("label", Ie, [_("span", null, C(w(f).t("platform.screen.ModuleActionManagementView.unavailable-message", "不可用提示")), 1), y(w(s), {
|
|
735
|
+
value: w(L).unavailableMessage,
|
|
736
|
+
disabled: U.value,
|
|
737
|
+
"onUpdate:value": r[21] ||= (e) => K("unavailableMessage", e)
|
|
738
|
+
}, null, 8, ["value", "disabled"])])
|
|
739
|
+
], 32)), w(I) || w(R) !== "view" ? (x(), m(w(ie), {
|
|
740
|
+
key: 4,
|
|
741
|
+
record: w(L)
|
|
742
|
+
}, null, 8, ["record"])) : h("v-if", !0)]),
|
|
743
|
+
_: 1
|
|
744
|
+
}, 8, [
|
|
745
|
+
"explorer-title",
|
|
746
|
+
"refresh-title",
|
|
747
|
+
"mode",
|
|
748
|
+
"detail-title",
|
|
749
|
+
"explorer-search-keyword",
|
|
750
|
+
"explorer-search-placeholder"
|
|
751
|
+
]));
|
|
752
|
+
}
|
|
753
|
+
}), I = /* @__PURE__ */ e({ default: () => L }), L = /*#__PURE__*/ f(F, [["__scopeId", "data-v-b89409d5"]]);
|
|
754
|
+
//#endregion
|
|
755
|
+
export { I as n, L as t };
|