@ximatai/muyun-web-app 0.26.23 → 0.26.24
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-IWGZiPLo.js → BusinessActivityLogView-DQ5_VmLp.js} +2 -2
- package/dist/{BusinessLogListDrawer-UCsg6psI.js → BusinessLogListDrawer-BnucgqNA.js} +155 -155
- package/dist/{CodeConfigurationView-Calkazua.js → CodeConfigurationView-CtQjmpLz.js} +390 -390
- package/dist/{ConfigurationTranslationView-fZrlRAMy.js → ConfigurationTranslationView-BiYn2MJx.js} +21 -21
- package/dist/{LoginAuditLogView-B6J7t__0.js → LoginAuditLogView-BIz1LVC3.js} +2 -2
- package/dist/ModuleActionManagementView-0_ek9yag.js +780 -0
- package/dist/{ModuleGovernanceView-D8ONs78K.js → ModuleGovernanceView-DEDF61vj.js} +3154 -3154
- package/dist/{RequestErrorLogView-poMgx4_6.js → RequestErrorLogView-HatmiK8_.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-6Bs1eKbm.js → RoleDetailWorkspaceView-BzzoarpR.js} +65 -65
- package/dist/{RuntimeLogView-Co-Z86bt.js → RuntimeLogView-Vdt6SWK6.js} +47 -47
- package/dist/WorkflowAdministrationView-Dlw2ng0N.js +650 -0
- package/dist/{WorkflowConfigurationView-mSyL_-We.js → WorkflowConfigurationView-j2xnGmkM.js} +35 -35
- package/dist/WorkflowWorkbenchView-Nv4mvTTP.js +759 -0
- package/dist/{codeConfiguration-D1zrxzoW.js → codeConfiguration-B_z1qQvB.js} +37 -37
- package/dist/index.css +1 -1
- package/dist/index.js +1340 -788
- package/dist/{moduleMenuWorkspace-lIVrTaOB.js → moduleMenuWorkspace-1N0U7QW9.js} +220 -220
- package/dist/{platform-components-D0T03KGl.js → platform-components-Xb5qgsXU.js} +3091 -2880
- package/dist/{platform-workbench-CobObbuz.js → platform-workbench-VhgKhPLI.js} +5526 -5451
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +6 -0
- package/dist/types/app/ExternalIdentityBindings.vue.d.ts +8 -0
- package/dist/types/app/ExternalProvisioningConfirmation.vue.d.ts +15 -0
- package/dist/types/app/LoginView.vue.d.ts +3 -1
- package/dist/types/app/WeLinkQrCode.vue.d.ts +11 -0
- package/dist/types/app/externalLoginReturn.d.ts +38 -0
- package/dist/types/app/useExternalLoginHost.d.ts +27 -0
- package/dist/types/app/weLinkQrCode.d.ts +22 -0
- package/dist/types/consumer/index.d.ts +7 -2
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
- package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +11 -15
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/job/ScheduledActionTargetFields.vue.d.ts +7 -0
- package/dist/types/platform-admin-runtime/scheduledActionPlanPageEnhancement.d.ts +3 -0
- package/dist/types/platform-components/BusinessNotificationCard.vue.d.ts +30 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +4 -39
- package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
- package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +8 -17
- package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +2 -0
- package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
- package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +4 -0
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +9 -2
- package/dist/types/platform-components/managementWorkspaceContext.d.ts +2 -1
- package/dist/types/platform-components/useNotificationDeckMotion.d.ts +7 -0
- package/dist/types/views/businessRuleGovernance.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +71 -2
- package/dist/types/web-core/clients.d.ts +11 -1
- package/dist/{useWorkflowConfigurationContext-BkcNPU2H.js → useWorkflowConfigurationContext-BLFXzHwn.js} +5 -5
- package/dist/{workspaceViews-BtqO8rU0.js → workspaceViews-Cas3PR5B.js} +1050 -894
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-BZ89Woex.js +0 -755
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +0 -650
- package/dist/WorkflowWorkbenchView-DBMh3ycN.js +0 -759
|
@@ -0,0 +1,759 @@
|
|
|
1
|
+
import { D as e, _ as t, a as n, y as r } from "./platform-workbench-VhgKhPLI.js";
|
|
2
|
+
import { An as ee, Gr as i, Ht as te, Jr as ne, Kt as a, Mn as re, Na as o, Nr as s, Za as ie, Zr as ae, _n as c, bt as oe, cr as se, dr as l, gt as ce, h as le, ir as ue, it as de, jr as fe, ka as pe, kn as me, m as he, p as ge, pr as _e, sn as u, sr as ve, to as ye, u as be, zt as xe } from "./platform-components-Xb5qgsXU.js";
|
|
3
|
+
import { Fragment as Se, computed as d, createBlock as f, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createTextVNode as g, createVNode as _, defineComponent as v, normalizeClass as Ce, openBlock as y, ref as b, renderList as we, shallowRef as Te, toDisplayString as x, unref as S, watch as Ee, withCtx as C } from "vue";
|
|
4
|
+
//#region src/views/WorkflowWorkbenchView.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields" }, ke = {
|
|
6
|
+
key: 0,
|
|
7
|
+
class: "workflow-field"
|
|
8
|
+
}, Ae = { class: "workflow-field" }, je = {
|
|
9
|
+
key: 1,
|
|
10
|
+
class: "workflow-field"
|
|
11
|
+
}, Me = { class: "workflow-field" }, Ne = { class: "date-filters" }, Pe = { class: "workflow-field" }, Fe = { class: "workflow-field" }, Ie = { class: "workflow-query-controls" }, Le = { key: 0 }, Re = { class: "policy-form" }, ze = { class: "workflow-field" }, Be = { class: "workflow-field" }, Ve = { class: "workflow-field" }, He = {
|
|
12
|
+
key: 0,
|
|
13
|
+
class: "workflow-field"
|
|
14
|
+
}, w = /*#__PURE__*/ _e(/* @__PURE__ */ v({
|
|
15
|
+
name: "WorkflowWorkbenchView",
|
|
16
|
+
__name: "WorkflowWorkbenchView",
|
|
17
|
+
setup(_e) {
|
|
18
|
+
let v = ie();
|
|
19
|
+
function w(e) {
|
|
20
|
+
return he(e, v);
|
|
21
|
+
}
|
|
22
|
+
let Ue = ne(), T = r(), We = n(), E = b(T?.value?.system && typeof We.query.tenantId == "string" ? We.query.tenantId : void 0), D = d(() => E.value ? ye(Ue.http, { "X-MuYun-Tenant-Id": E.value }) : Ue.http), Ge = d(() => le(D.value)), O = d(() => s(D.value)), Ke = i({
|
|
23
|
+
http: Ue.http,
|
|
24
|
+
language: v,
|
|
25
|
+
moduleAlias: "iam.tenant",
|
|
26
|
+
runtimeAccess: "REFERENCE"
|
|
27
|
+
}), qe = d(() => !T?.value?.system || !!E.value), Je = d(() => i({
|
|
28
|
+
http: D.value,
|
|
29
|
+
language: v,
|
|
30
|
+
moduleAlias: "iam.user",
|
|
31
|
+
runtimeAccess: "VIEW"
|
|
32
|
+
})), k = b("todo"), A = b(1), j = b(30), Ye = b(0), Xe = b(0), M = b([]), N = b(), P = b(!1), Ze = b(""), F = b(""), I = b({}), L = b({}), R = b({}), Qe = d(() => ({
|
|
33
|
+
...R.value,
|
|
34
|
+
...Object.fromEntries(Object.entries(L.value).map(([e, t]) => [e, o(t.title, t.titleText, v)]))
|
|
35
|
+
})), z = b({}), B = b(""), V = b(""), H = b(!1), $e = b(), et = d(() => [
|
|
36
|
+
{
|
|
37
|
+
key: "todo",
|
|
38
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.my-pending-tasks", "待我办理")
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
key: "done",
|
|
42
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.my-completed-tasks", "我已办理")
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
key: "notice",
|
|
46
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.my-notices", "通知我的")
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
key: "tracking",
|
|
50
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.my-submissions", "我发起的")
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
key: "delegation",
|
|
54
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.delegated-tasks", "委托办理")
|
|
55
|
+
}
|
|
56
|
+
].map((e) => ({
|
|
57
|
+
...e,
|
|
58
|
+
title: e.title + (z.value[e.key] == null ? "" : ` (${z.value[e.key]})`)
|
|
59
|
+
}))), tt = d(() => Object.entries(Qe.value).map(([e, t]) => ({
|
|
60
|
+
value: e,
|
|
61
|
+
label: t
|
|
62
|
+
})));
|
|
63
|
+
function nt(e, t) {
|
|
64
|
+
if (e.business?.readable === !1) return v.t("platform.screen.WorkflowWorkbenchView.restricted-business-record", "受限业务记录");
|
|
65
|
+
let n = typeof t == "string" ? t : e.business?.title;
|
|
66
|
+
return n == null ? v.t("platform.screen.WorkflowWorkbenchView.untitled-business-record", "未命名业务") : pe(n, e.business?.titleContentText, v) ?? n;
|
|
67
|
+
}
|
|
68
|
+
let rt = d(() => M.value.map((e) => ({
|
|
69
|
+
...e,
|
|
70
|
+
id: e.taskId ?? e.instanceId,
|
|
71
|
+
nodeTitle: o(e.nodeTitle ?? "", e.nodeTitleText, v),
|
|
72
|
+
title: nt(e),
|
|
73
|
+
moduleTitle: e.business?.moduleTitle == null ? Qe.value[e.moduleAlias] ?? v.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块") : o(e.business.moduleTitle, e.business.moduleTitleText, v),
|
|
74
|
+
status: w(e.taskStatus ?? e.instanceStatus),
|
|
75
|
+
received: st(e.receivedAt),
|
|
76
|
+
completed: st(e.completedAt),
|
|
77
|
+
assignees: e.currentAssigneeTitles.join("、"),
|
|
78
|
+
urgency: w(e.overtimeStatus)
|
|
79
|
+
}))), it = d(() => [
|
|
80
|
+
{
|
|
81
|
+
key: "title",
|
|
82
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.business-item", "业务事项"),
|
|
83
|
+
dataIndex: "title",
|
|
84
|
+
width: 240
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: "moduleTitle",
|
|
88
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块"),
|
|
89
|
+
dataIndex: "moduleTitle",
|
|
90
|
+
width: 140
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: "nodeTitle",
|
|
94
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.task-node", "办理节点"),
|
|
95
|
+
dataIndex: "nodeTitle",
|
|
96
|
+
width: 160
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
key: "submitterUserTitle",
|
|
100
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.submitter", "发起人"),
|
|
101
|
+
dataIndex: "submitterUserTitle",
|
|
102
|
+
width: 110
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
key: "status",
|
|
106
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.status", "状态"),
|
|
107
|
+
dataIndex: "status",
|
|
108
|
+
width: 100
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
key: "assignees",
|
|
112
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.processors", "办理人"),
|
|
113
|
+
dataIndex: "assignees",
|
|
114
|
+
width: 130
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
key: "received",
|
|
118
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.received-at", "接收时间"),
|
|
119
|
+
dataIndex: "received",
|
|
120
|
+
width: 170
|
|
121
|
+
},
|
|
122
|
+
...k.value === "done" ? [{
|
|
123
|
+
key: "completed",
|
|
124
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.processed-at", "办理时间"),
|
|
125
|
+
dataIndex: "completed",
|
|
126
|
+
width: 170
|
|
127
|
+
}] : [{
|
|
128
|
+
key: "urgency",
|
|
129
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.timeliness", "时效"),
|
|
130
|
+
dataIndex: "urgency",
|
|
131
|
+
width: 90
|
|
132
|
+
}]
|
|
133
|
+
]), U = Te();
|
|
134
|
+
Ee([() => N.value?.moduleAlias, D], ([e, t]) => {
|
|
135
|
+
U.value = e ? i({
|
|
136
|
+
http: t,
|
|
137
|
+
language: v,
|
|
138
|
+
moduleAlias: e,
|
|
139
|
+
runtimeAccess: "VIEW"
|
|
140
|
+
}) : void 0;
|
|
141
|
+
}, { immediate: !0 });
|
|
142
|
+
let W = b(), at = b(/* @__PURE__ */ new Map()), G = b(!1), K = b(""), ot = d(() => {
|
|
143
|
+
let e = U.value ? xe(ae(U.value.runtime)?.uiDescriptor) : void 0;
|
|
144
|
+
return new Map([...at.value].map(([t, n]) => [t, e?.get(t) ?? n]));
|
|
145
|
+
});
|
|
146
|
+
function st(e) {
|
|
147
|
+
return e ? new Date(e).toLocaleString("zh-CN", { hour12: !1 }) : "—";
|
|
148
|
+
}
|
|
149
|
+
function ct(e) {
|
|
150
|
+
return e.title || e.username || e.id || "";
|
|
151
|
+
}
|
|
152
|
+
let q = 0, lt = 0, ut = 0;
|
|
153
|
+
e(async (e) => {
|
|
154
|
+
let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n = M.value.some((e) => t.has(e.moduleAlias)), r = Object.keys(L.value).some((e) => t.has(e));
|
|
155
|
+
if (!n && !r) return;
|
|
156
|
+
let ee = ++ut, i = q, te = E.value, ne = T?.value?.userId, a = U.value;
|
|
157
|
+
try {
|
|
158
|
+
let [e, r] = await Promise.all([
|
|
159
|
+
n ? O.value.workbenchPage(k.value, A.value, I.value, F.value, j.value) : void 0,
|
|
160
|
+
O.value.workbenchModules(),
|
|
161
|
+
a && t.has(a.moduleAlias) ? a.runtime.refreshTexts?.() : void 0
|
|
162
|
+
]);
|
|
163
|
+
if (ee !== ut || q !== i || E.value !== te || T?.value?.userId !== ne) return;
|
|
164
|
+
let re = (t) => e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId)?.nodeTitleText, o = {
|
|
165
|
+
...r.modules,
|
|
166
|
+
...e?.navigation?.moduleTitles?.modules
|
|
167
|
+
}, s = { ...L.value };
|
|
168
|
+
for (let [e, t] of Object.entries(s)) {
|
|
169
|
+
let n = o[e]?.titleText;
|
|
170
|
+
ge(t.titleText, n) && (s[e] = {
|
|
171
|
+
...t,
|
|
172
|
+
titleText: n
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
L.value = s;
|
|
176
|
+
let ie = (t) => {
|
|
177
|
+
let n = e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId), r = n?.business?.moduleTitleText ?? o[t.moduleAlias]?.titleText;
|
|
178
|
+
return {
|
|
179
|
+
...t,
|
|
180
|
+
...ge(t.nodeTitleText, n?.nodeTitleText) ? { nodeTitleText: n?.nodeTitleText } : {},
|
|
181
|
+
business: t.business && ge(t.business.moduleTitleText, r) ? {
|
|
182
|
+
...t.business,
|
|
183
|
+
moduleTitleText: r
|
|
184
|
+
} : t.business
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
if (M.value = M.value.map(ie), N.value) {
|
|
188
|
+
let e = re(N.value);
|
|
189
|
+
ge(N.value.nodeTitleText, e) && (N.value.nodeTitleText = e);
|
|
190
|
+
let t = ie(N.value);
|
|
191
|
+
t.business && (N.value.business = t.business);
|
|
192
|
+
}
|
|
193
|
+
} catch (e) {
|
|
194
|
+
c(e, {
|
|
195
|
+
source: "workflow-text-resources",
|
|
196
|
+
phase: "load"
|
|
197
|
+
});
|
|
198
|
+
}
|
|
199
|
+
});
|
|
200
|
+
async function dt() {
|
|
201
|
+
let e = ++q;
|
|
202
|
+
P.value = !0, Ze.value = "";
|
|
203
|
+
try {
|
|
204
|
+
let t = await O.value.workbenchPage(k.value, A.value, I.value, F.value, j.value);
|
|
205
|
+
if (e !== q) return;
|
|
206
|
+
M.value = t.records, Ye.value = t.total, Xe.value = t.pages, R.value = {
|
|
207
|
+
...R.value,
|
|
208
|
+
...t.navigation?.modules
|
|
209
|
+
}, L.value = {
|
|
210
|
+
...L.value,
|
|
211
|
+
...t.navigation?.moduleTitles?.modules
|
|
212
|
+
}, z.value[k.value] = t.total;
|
|
213
|
+
} catch (t) {
|
|
214
|
+
e === q && (M.value = [], Ye.value = 0, Xe.value = 0, delete z.value[k.value], Ze.value = v.t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks-retry", "任务加载失败,请重试。"), c(t, {
|
|
215
|
+
source: "workflow-workbench",
|
|
216
|
+
phase: "load"
|
|
217
|
+
}));
|
|
218
|
+
} finally {
|
|
219
|
+
e === q && (P.value = !1);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
async function ft() {
|
|
223
|
+
let e = ++lt, t = N.value, n = U.value;
|
|
224
|
+
if (W.value = void 0, K.value = "", G.value = !1, t && n) {
|
|
225
|
+
if (t.business?.readable === !1) {
|
|
226
|
+
K.value = v.t("platform.screen.WorkflowWorkbenchView.you-can-view-the-task-status-but", "你可以查看任务状态,但尚无该业务记录的读取权限。请联系业务管理员。");
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
G.value = !0;
|
|
230
|
+
try {
|
|
231
|
+
let r = await n.runtime.ready, ee = await n.crud.view(t.recordId);
|
|
232
|
+
if (e !== lt) return;
|
|
233
|
+
at.value = xe(r.uiDescriptor), W.value = ee;
|
|
234
|
+
} catch (t) {
|
|
235
|
+
e === lt && (K.value = v.t("platform.screen.WorkflowWorkbenchView.unable-to-load-business-details-retry-or", "业务详情加载失败,请重试或检查业务读取权限。"), c(t, {
|
|
236
|
+
source: "workflow-workbench",
|
|
237
|
+
phase: "load"
|
|
238
|
+
}));
|
|
239
|
+
} finally {
|
|
240
|
+
e === lt && (G.value = !1);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
Ee([N, E], () => void ft()), Ee([
|
|
245
|
+
k,
|
|
246
|
+
A,
|
|
247
|
+
j,
|
|
248
|
+
E
|
|
249
|
+
], () => void dt(), { immediate: !0 }), Ee(E, () => {
|
|
250
|
+
N.value = void 0, I.value = {}, F.value = "", B.value = "", V.value = "", R.value = {}, L.value = {}, z.value = {}, A.value = 1, ++Q, J.value = !1, Y.value = !1, vt.value = [], St();
|
|
251
|
+
}, { flush: "sync" });
|
|
252
|
+
async function pt() {
|
|
253
|
+
return !H.value || await $e.value?.mayLeave() === !0;
|
|
254
|
+
}
|
|
255
|
+
async function mt() {
|
|
256
|
+
await pt() && (N.value = void 0);
|
|
257
|
+
}
|
|
258
|
+
function ht() {
|
|
259
|
+
H.value || (I.value.receivedFrom = B.value ? (/* @__PURE__ */ new Date(`${B.value}T00:00:00`)).toISOString() : void 0, I.value.receivedTo = V.value ? new Date((/* @__PURE__ */ new Date(`${V.value}T00:00:00`)).setDate((/* @__PURE__ */ new Date(`${V.value}T00:00:00`)).getDate() + 1)).toISOString() : void 0, A.value === 1 ? dt() : A.value = 1);
|
|
260
|
+
}
|
|
261
|
+
function gt() {
|
|
262
|
+
F.value = "", I.value = {}, B.value = "", V.value = "", ht();
|
|
263
|
+
}
|
|
264
|
+
async function _t() {
|
|
265
|
+
H.value = !1, N.value && t(N.value.moduleAlias), await dt(), await ft();
|
|
266
|
+
}
|
|
267
|
+
let vt = b([]), J = b(!1), Y = b(!1), X = b(""), Z = b({
|
|
268
|
+
title: v.t("platform.workflow.delegation.default-title", "审批代办"),
|
|
269
|
+
moduleScopeType: "all",
|
|
270
|
+
moduleAliases: [],
|
|
271
|
+
principalCanProcess: !1
|
|
272
|
+
}), yt = b(""), bt = d(() => J.value && JSON.stringify(Z.value) !== yt.value);
|
|
273
|
+
fe(() => v.t("platform.unsaved-source.WorkflowWorkbenchView", "个人委托"), () => bt.value, () => Y.value);
|
|
274
|
+
let Q = 0;
|
|
275
|
+
function $(e, t) {
|
|
276
|
+
return e === Q && t === E.value && J.value;
|
|
277
|
+
}
|
|
278
|
+
async function xt() {
|
|
279
|
+
if (Y.value || J.value || !qe.value) return;
|
|
280
|
+
let e = ++Q, t = E.value, n = O.value;
|
|
281
|
+
J.value = !0, Y.value = !0, vt.value = [], St();
|
|
282
|
+
try {
|
|
283
|
+
let r = await n.workbenchModules();
|
|
284
|
+
if (!$(e, t)) return;
|
|
285
|
+
L.value = {
|
|
286
|
+
...L.value,
|
|
287
|
+
...r.modules
|
|
288
|
+
}, await Ct();
|
|
289
|
+
} catch (n) {
|
|
290
|
+
$(e, t) && c(n, {
|
|
291
|
+
source: "workflow-delegation",
|
|
292
|
+
phase: "load"
|
|
293
|
+
});
|
|
294
|
+
} finally {
|
|
295
|
+
$(e, t) && (Y.value = !1);
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
function St() {
|
|
299
|
+
Z.value = {
|
|
300
|
+
title: v.t("platform.workflow.delegation.default-title", "审批代办"),
|
|
301
|
+
moduleScopeType: "all",
|
|
302
|
+
moduleAliases: [],
|
|
303
|
+
principalCanProcess: !1
|
|
304
|
+
}, yt.value = JSON.stringify(Z.value), X.value = "";
|
|
305
|
+
}
|
|
306
|
+
async function Ct() {
|
|
307
|
+
let e = Q, t = E.value, n = D.value;
|
|
308
|
+
try {
|
|
309
|
+
let r = await n.request({
|
|
310
|
+
method: "POST",
|
|
311
|
+
path: "/workflow/delegation/query",
|
|
312
|
+
body: { page: {
|
|
313
|
+
pageNum: 1,
|
|
314
|
+
pageSize: 200
|
|
315
|
+
} }
|
|
316
|
+
});
|
|
317
|
+
$(e, t) && (vt.value = r.records);
|
|
318
|
+
} catch (n) {
|
|
319
|
+
$(e, t) && c(n, {
|
|
320
|
+
source: "workflow-delegation",
|
|
321
|
+
phase: "load"
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
async function wt() {
|
|
326
|
+
await Et() && St();
|
|
327
|
+
}
|
|
328
|
+
async function Tt(e) {
|
|
329
|
+
await Et() && (Z.value = JSON.parse(JSON.stringify(e)), yt.value = JSON.stringify(Z.value), X.value = "");
|
|
330
|
+
}
|
|
331
|
+
async function Et() {
|
|
332
|
+
if (Y.value || !J.value) return !1;
|
|
333
|
+
let e = Q, t = E.value;
|
|
334
|
+
return (!bt.value || await ee({
|
|
335
|
+
title: v.t("platform.screen.WorkflowWorkbenchView.discard-delegation-changes", "放弃未保存的委托设置?"),
|
|
336
|
+
okText: v.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
|
|
337
|
+
danger: !0
|
|
338
|
+
}, v)) && $(e, t);
|
|
339
|
+
}
|
|
340
|
+
async function Dt() {
|
|
341
|
+
if (Y.value || !J.value) return;
|
|
342
|
+
let e = Q, t = E.value, n = D.value, r = Z.value;
|
|
343
|
+
if (!r.title?.trim() || !r.delegateUserId || r.moduleScopeType === "include" && !r.moduleAliases?.length) {
|
|
344
|
+
X.value = v.t("platform.screen.WorkflowWorkbenchView.delegation-fields-required", "请填写规则名称、代办人,并选择适用业务模块。");
|
|
345
|
+
return;
|
|
346
|
+
}
|
|
347
|
+
Y.value = !0;
|
|
348
|
+
try {
|
|
349
|
+
if (await n.request({
|
|
350
|
+
method: "POST",
|
|
351
|
+
path: r.id ? `/workflow/delegation/update/${r.id}` : "/workflow/delegation/insert",
|
|
352
|
+
body: {
|
|
353
|
+
...r,
|
|
354
|
+
enabled: r.enabled ?? !0,
|
|
355
|
+
orgScopeType: r.orgScopeType ?? "all",
|
|
356
|
+
moduleAliases: r.moduleScopeType === "all" ? [] : r.moduleAliases
|
|
357
|
+
}
|
|
358
|
+
}), !$(e, t) || (St(), await Ct(), !$(e, t))) return;
|
|
359
|
+
me(v.t("platform.screen.WorkflowWorkbenchView.delegation-saved", "委托规则已保存,仅影响后续新任务"));
|
|
360
|
+
} catch (n) {
|
|
361
|
+
$(e, t) && c(n, {
|
|
362
|
+
source: "workflow-delegation",
|
|
363
|
+
phase: "action"
|
|
364
|
+
});
|
|
365
|
+
} finally {
|
|
366
|
+
$(e, t) && (Y.value = !1);
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
async function Ot(e) {
|
|
370
|
+
if (Y.value || !J.value) return;
|
|
371
|
+
let t = Q, n = E.value, r = D.value;
|
|
372
|
+
Y.value = !0;
|
|
373
|
+
try {
|
|
374
|
+
await r.request({
|
|
375
|
+
method: "POST",
|
|
376
|
+
path: `/workflow/delegation/${e.enabled ? "disable" : "enable"}/${e.id}`,
|
|
377
|
+
body: { version: e.version }
|
|
378
|
+
}), $(t, n) && await Ct();
|
|
379
|
+
} catch (e) {
|
|
380
|
+
$(t, n) && c(e, {
|
|
381
|
+
source: "workflow-delegation",
|
|
382
|
+
phase: "action"
|
|
383
|
+
});
|
|
384
|
+
} finally {
|
|
385
|
+
$(t, n) && (Y.value = !1);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
return (e, t) => (y(), m("section", De, [
|
|
389
|
+
_(S(ce), {
|
|
390
|
+
tabs: et.value,
|
|
391
|
+
"active-key": k.value,
|
|
392
|
+
label: S(v).t("platform.screen.WorkflowWorkbenchView.approval-workbench-groups", "审批工作台分组"),
|
|
393
|
+
disabled: H.value,
|
|
394
|
+
"onUpdate:activeKey": t[0] ||= (e) => {
|
|
395
|
+
k.value = e, A.value = 1, N.value = void 0;
|
|
396
|
+
}
|
|
397
|
+
}, null, 8, [
|
|
398
|
+
"tabs",
|
|
399
|
+
"active-key",
|
|
400
|
+
"label",
|
|
401
|
+
"disabled"
|
|
402
|
+
]),
|
|
403
|
+
Ze.value ? (y(), f(S(re), {
|
|
404
|
+
key: 0,
|
|
405
|
+
title: S(v).t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks", "无法加载任务"),
|
|
406
|
+
message: Ze.value
|
|
407
|
+
}, null, 8, ["title", "message"])) : p("v-if", !0),
|
|
408
|
+
_(S(a), {
|
|
409
|
+
title: et.value.find((e) => e.key === k.value)?.title ?? S(v).t("platform.screen.WorkflowWorkbenchView.workflow-tasks", "审批任务"),
|
|
410
|
+
columns: it.value,
|
|
411
|
+
rows: rt.value,
|
|
412
|
+
"row-key": "id",
|
|
413
|
+
"clickable-rows": !0,
|
|
414
|
+
"selected-row-key": N.value?.taskId ?? N.value?.instanceId,
|
|
415
|
+
"quick-search-visible": !0,
|
|
416
|
+
"quick-search-value": F.value,
|
|
417
|
+
"quick-search-placeholder": S(v).t("platform.screen.WorkflowWorkbenchView.search-business-title", "搜索业务标题"),
|
|
418
|
+
"quick-search-disabled": H.value || P.value,
|
|
419
|
+
pageable: !0,
|
|
420
|
+
total: Ye.value,
|
|
421
|
+
pages: Xe.value,
|
|
422
|
+
"page-num": A.value,
|
|
423
|
+
"page-size": j.value,
|
|
424
|
+
"page-size-options": [
|
|
425
|
+
10,
|
|
426
|
+
20,
|
|
427
|
+
30,
|
|
428
|
+
50
|
|
429
|
+
],
|
|
430
|
+
"pagination-disabled": H.value || P.value,
|
|
431
|
+
"onUpdate:quickSearchValue": t[7] ||= (e) => F.value = e,
|
|
432
|
+
onQuickSearch: ht,
|
|
433
|
+
onPageChange: t[8] ||= (e) => A.value = e,
|
|
434
|
+
onPageSizeChange: t[9] ||= (e) => {
|
|
435
|
+
j.value = e, A.value = 1;
|
|
436
|
+
},
|
|
437
|
+
onRowClick: t[10] ||= (e) => !H.value && (N.value = M.value.find((t) => (t.taskId ?? t.instanceId) === e.id))
|
|
438
|
+
}, {
|
|
439
|
+
operations: C(() => [_(S(l), {
|
|
440
|
+
loading: P.value,
|
|
441
|
+
disabled: H.value,
|
|
442
|
+
onClick: dt
|
|
443
|
+
}, {
|
|
444
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.refresh-tasks", "刷新任务")), 1)]),
|
|
445
|
+
_: 1
|
|
446
|
+
}, 8, ["loading", "disabled"]), _(S(l), {
|
|
447
|
+
disabled: H.value || J.value || Y.value || !qe.value,
|
|
448
|
+
onClick: xt
|
|
449
|
+
}, {
|
|
450
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置")), 1)]),
|
|
451
|
+
_: 1
|
|
452
|
+
}, 8, ["disabled"])]),
|
|
453
|
+
conditions: C(() => [h("div", Oe, [
|
|
454
|
+
S(T)?.system ? (y(), m("label", ke, [_(S(u), null, {
|
|
455
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.business-tenant", "业务租户")), 1)]),
|
|
456
|
+
_: 1
|
|
457
|
+
}), _(S(de), {
|
|
458
|
+
value: E.value,
|
|
459
|
+
"onUpdate:value": t[1] ||= (e) => E.value = e,
|
|
460
|
+
disabled: H.value || J.value || Y.value,
|
|
461
|
+
context: S(Ke),
|
|
462
|
+
mode: "list",
|
|
463
|
+
"title-of": ct
|
|
464
|
+
}, null, 8, [
|
|
465
|
+
"value",
|
|
466
|
+
"disabled",
|
|
467
|
+
"context"
|
|
468
|
+
])])) : p("v-if", !0),
|
|
469
|
+
h("label", Ae, [_(S(u), null, {
|
|
470
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1)]),
|
|
471
|
+
_: 1
|
|
472
|
+
}), _(S(ve), {
|
|
473
|
+
value: I.value.moduleAlias,
|
|
474
|
+
"onUpdate:value": t[2] ||= (e) => I.value.moduleAlias = e,
|
|
475
|
+
options: tt.value,
|
|
476
|
+
disabled: H.value,
|
|
477
|
+
"show-search": "",
|
|
478
|
+
placeholder: S(v).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
|
|
479
|
+
}, null, 8, [
|
|
480
|
+
"value",
|
|
481
|
+
"options",
|
|
482
|
+
"disabled",
|
|
483
|
+
"placeholder"
|
|
484
|
+
])]),
|
|
485
|
+
qe.value ? (y(), m("label", je, [_(S(u), null, {
|
|
486
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.submitter", "发起人")), 1)]),
|
|
487
|
+
_: 1
|
|
488
|
+
}), _(S(de), {
|
|
489
|
+
value: I.value.submitterUserId,
|
|
490
|
+
"onUpdate:value": t[3] ||= (e) => I.value.submitterUserId = e,
|
|
491
|
+
disabled: H.value,
|
|
492
|
+
context: Je.value,
|
|
493
|
+
"load-options": Ge.value,
|
|
494
|
+
mode: "list",
|
|
495
|
+
"title-of": ct
|
|
496
|
+
}, null, 8, [
|
|
497
|
+
"value",
|
|
498
|
+
"disabled",
|
|
499
|
+
"context",
|
|
500
|
+
"load-options"
|
|
501
|
+
])])) : p("v-if", !0),
|
|
502
|
+
h("label", Me, [_(S(u), null, {
|
|
503
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.timeliness", "时效")), 1)]),
|
|
504
|
+
_: 1
|
|
505
|
+
}), _(S(ve), {
|
|
506
|
+
value: I.value.overtimeStatus,
|
|
507
|
+
"onUpdate:value": t[4] ||= (e) => I.value.overtimeStatus = e,
|
|
508
|
+
disabled: H.value,
|
|
509
|
+
options: [
|
|
510
|
+
{
|
|
511
|
+
value: "normal",
|
|
512
|
+
label: w("normal")
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
value: "warned",
|
|
516
|
+
label: w("warned")
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
value: "overdue",
|
|
520
|
+
label: w("overdue")
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
placeholder: S(v).t("platform.screen.WorkflowWorkbenchView.all", "全部")
|
|
524
|
+
}, null, 8, [
|
|
525
|
+
"value",
|
|
526
|
+
"disabled",
|
|
527
|
+
"options",
|
|
528
|
+
"placeholder"
|
|
529
|
+
])]),
|
|
530
|
+
h("div", Ne, [h("label", Pe, [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.received-from", "接收开始日期")), 1), _(S(ue), {
|
|
531
|
+
value: B.value,
|
|
532
|
+
"onUpdate:value": t[5] ||= (e) => B.value = e,
|
|
533
|
+
type: "date",
|
|
534
|
+
disabled: H.value
|
|
535
|
+
}, null, 8, ["value", "disabled"])]), h("label", Fe, [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.received-until", "接收结束日期")), 1), _(S(ue), {
|
|
536
|
+
value: V.value,
|
|
537
|
+
"onUpdate:value": t[6] ||= (e) => V.value = e,
|
|
538
|
+
type: "date",
|
|
539
|
+
disabled: H.value
|
|
540
|
+
}, null, 8, ["value", "disabled"])])]),
|
|
541
|
+
h("div", Ie, [_(S(l), {
|
|
542
|
+
disabled: H.value || P.value,
|
|
543
|
+
onClick: ht
|
|
544
|
+
}, {
|
|
545
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
|
|
546
|
+
_: 1
|
|
547
|
+
}, 8, ["disabled"]), _(S(l), {
|
|
548
|
+
disabled: H.value || P.value,
|
|
549
|
+
onClick: gt
|
|
550
|
+
}, {
|
|
551
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
|
|
552
|
+
_: 1
|
|
553
|
+
}, 8, ["disabled"])])
|
|
554
|
+
])]),
|
|
555
|
+
cell: C(({ column: e, record: t, value: n }) => [h("span", { class: Ce({ "workflow-urgency": e.key === "urgency" && t.overtimeStatus === "overdue" }) }, x(n ?? "—"), 3)]),
|
|
556
|
+
_: 1
|
|
557
|
+
}, 8, [
|
|
558
|
+
"title",
|
|
559
|
+
"columns",
|
|
560
|
+
"rows",
|
|
561
|
+
"selected-row-key",
|
|
562
|
+
"quick-search-value",
|
|
563
|
+
"quick-search-placeholder",
|
|
564
|
+
"quick-search-disabled",
|
|
565
|
+
"total",
|
|
566
|
+
"pages",
|
|
567
|
+
"page-num",
|
|
568
|
+
"page-size",
|
|
569
|
+
"pagination-disabled"
|
|
570
|
+
]),
|
|
571
|
+
_(S(te), {
|
|
572
|
+
open: !!N.value,
|
|
573
|
+
title: N.value ? nt(N.value, W.value?.title) : S(v).t("platform.screen.WorkflowWorkbenchView.business-processing-details", "业务办理详情"),
|
|
574
|
+
width: "wide",
|
|
575
|
+
"before-close": pt,
|
|
576
|
+
onClose: t[12] ||= (e) => N.value = void 0
|
|
577
|
+
}, {
|
|
578
|
+
operation: C(() => [_(S(l), {
|
|
579
|
+
disabled: H.value,
|
|
580
|
+
onClick: mt
|
|
581
|
+
}, {
|
|
582
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.close-details", "关闭详情")), 1)]),
|
|
583
|
+
_: 1
|
|
584
|
+
}, 8, ["disabled"])]),
|
|
585
|
+
default: C(() => [
|
|
586
|
+
G.value ? (y(), m("p", Le, x(S(v).t("platform.screen.WorkflowWorkbenchView.loading-business-details", "加载业务详情…")), 1)) : p("v-if", !0),
|
|
587
|
+
K.value ? (y(), f(S(re), {
|
|
588
|
+
key: 1,
|
|
589
|
+
title: S(v).t("platform.screen.WorkflowWorkbenchView.unable-to-read-business-details", "无法读取业务详情"),
|
|
590
|
+
message: K.value
|
|
591
|
+
}, null, 8, ["title", "message"])) : p("v-if", !0),
|
|
592
|
+
K.value ? (y(), f(S(l), {
|
|
593
|
+
key: 2,
|
|
594
|
+
onClick: ft
|
|
595
|
+
}, {
|
|
596
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
|
|
597
|
+
_: 1
|
|
598
|
+
})) : p("v-if", !0),
|
|
599
|
+
W.value ? (y(), f(S(oe), {
|
|
600
|
+
key: 3,
|
|
601
|
+
record: W.value,
|
|
602
|
+
fields: ot.value,
|
|
603
|
+
"option-context": U.value
|
|
604
|
+
}, null, 8, [
|
|
605
|
+
"record",
|
|
606
|
+
"fields",
|
|
607
|
+
"option-context"
|
|
608
|
+
])) : p("v-if", !0),
|
|
609
|
+
N.value && U.value && W.value && !G.value && !K.value ? (y(), f(S(be), {
|
|
610
|
+
ref_key: "panel",
|
|
611
|
+
ref: $e,
|
|
612
|
+
key: N.value.instanceId,
|
|
613
|
+
context: U.value,
|
|
614
|
+
"record-id": N.value.recordId,
|
|
615
|
+
"instance-id": N.value.instanceId,
|
|
616
|
+
"record-submission": N.value.taskKind === "resubmit" && N.value.taskStatus === "todo",
|
|
617
|
+
onEditingChange: t[11] ||= (e) => H.value = e,
|
|
618
|
+
onChanged: _t
|
|
619
|
+
}, null, 8, [
|
|
620
|
+
"context",
|
|
621
|
+
"record-id",
|
|
622
|
+
"instance-id",
|
|
623
|
+
"record-submission"
|
|
624
|
+
])) : p("v-if", !0)
|
|
625
|
+
]),
|
|
626
|
+
_: 1
|
|
627
|
+
}, 8, ["open", "title"]),
|
|
628
|
+
_(S(te), {
|
|
629
|
+
open: J.value,
|
|
630
|
+
title: Z.value.id ? S(v).t("platform.screen.WorkflowWorkbenchView.edit-personal-delegation", "编辑个人委托") : S(v).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置"),
|
|
631
|
+
"before-close": Et,
|
|
632
|
+
onClose: t[18] ||= (e) => J.value = !1
|
|
633
|
+
}, {
|
|
634
|
+
operation: C(() => [_(S(l), {
|
|
635
|
+
type: "primary",
|
|
636
|
+
loading: Y.value,
|
|
637
|
+
onClick: Dt
|
|
638
|
+
}, {
|
|
639
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.save-delegation-rule", "保存委托规则")), 1)]),
|
|
640
|
+
_: 1
|
|
641
|
+
}, 8, ["loading"]), _(S(l), {
|
|
642
|
+
disabled: Y.value,
|
|
643
|
+
onClick: wt
|
|
644
|
+
}, {
|
|
645
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.new-rule", "新建规则")), 1)]),
|
|
646
|
+
_: 1
|
|
647
|
+
}, 8, ["disabled"])]),
|
|
648
|
+
default: C(() => [
|
|
649
|
+
X.value ? (y(), f(S(re), {
|
|
650
|
+
key: 0,
|
|
651
|
+
title: S(v).t("platform.screen.WorkflowWorkbenchView.complete-the-delegation-rule", "请完善委托规则"),
|
|
652
|
+
message: X.value
|
|
653
|
+
}, null, 8, ["title", "message"])) : p("v-if", !0),
|
|
654
|
+
h("div", Re, [
|
|
655
|
+
h("label", ze, [_(S(u), { required: "" }, {
|
|
656
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.rule-name", "规则名称")), 1)]),
|
|
657
|
+
_: 1
|
|
658
|
+
}), _(S(ue), {
|
|
659
|
+
value: Z.value.title,
|
|
660
|
+
"onUpdate:value": t[13] ||= (e) => Z.value.title = e,
|
|
661
|
+
disabled: Y.value
|
|
662
|
+
}, null, 8, ["value", "disabled"])]),
|
|
663
|
+
h("label", Be, [_(S(u), { required: "" }, {
|
|
664
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.delegate", "代办人")), 1)]),
|
|
665
|
+
_: 1
|
|
666
|
+
}), _(S(de), {
|
|
667
|
+
value: Z.value.delegateUserId,
|
|
668
|
+
"onUpdate:value": t[14] ||= (e) => Z.value.delegateUserId = e,
|
|
669
|
+
context: Je.value,
|
|
670
|
+
"load-options": Ge.value,
|
|
671
|
+
mode: "list",
|
|
672
|
+
"title-of": ct,
|
|
673
|
+
disabled: Y.value
|
|
674
|
+
}, null, 8, [
|
|
675
|
+
"value",
|
|
676
|
+
"context",
|
|
677
|
+
"load-options",
|
|
678
|
+
"disabled"
|
|
679
|
+
])]),
|
|
680
|
+
h("label", Ve, [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.applicable-scope", "适用范围")), 1), _(S(ve), {
|
|
681
|
+
value: Z.value.moduleScopeType,
|
|
682
|
+
"onUpdate:value": t[15] ||= (e) => Z.value.moduleScopeType = e,
|
|
683
|
+
disabled: Y.value,
|
|
684
|
+
"allow-clear": !1,
|
|
685
|
+
options: [{
|
|
686
|
+
value: "all",
|
|
687
|
+
label: S(v).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
|
|
688
|
+
}, {
|
|
689
|
+
value: "include",
|
|
690
|
+
label: S(v).t("platform.screen.WorkflowWorkbenchView.specified-business-modules", "指定业务模块")
|
|
691
|
+
}]
|
|
692
|
+
}, null, 8, [
|
|
693
|
+
"value",
|
|
694
|
+
"disabled",
|
|
695
|
+
"options"
|
|
696
|
+
])]),
|
|
697
|
+
Z.value.moduleScopeType === "include" ? (y(), m("label", He, [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1), _(S(ve), {
|
|
698
|
+
value: Z.value.moduleAliases,
|
|
699
|
+
"onUpdate:value": t[16] ||= (e) => Z.value.moduleAliases = e,
|
|
700
|
+
disabled: Y.value,
|
|
701
|
+
options: tt.value,
|
|
702
|
+
mode: "multiple",
|
|
703
|
+
"show-search": ""
|
|
704
|
+
}, null, 8, [
|
|
705
|
+
"value",
|
|
706
|
+
"disabled",
|
|
707
|
+
"options"
|
|
708
|
+
])])) : p("v-if", !0),
|
|
709
|
+
_(S(se), {
|
|
710
|
+
checked: Z.value.principalCanProcess,
|
|
711
|
+
"onUpdate:checked": t[17] ||= (e) => Z.value.principalCanProcess = e,
|
|
712
|
+
disabled: Y.value
|
|
713
|
+
}, {
|
|
714
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.retain-my-processing-permission", "保留本人办理权限")), 1)]),
|
|
715
|
+
_: 1
|
|
716
|
+
}, 8, ["checked", "disabled"])
|
|
717
|
+
]),
|
|
718
|
+
h("p", null, x(S(v).t("platform.screen.WorkflowWorkbenchView.rules-affect-new-tasks-assigned-tasks-retain", "规则仅影响后续新任务,已分派任务保留原人员与权限快照。")), 1),
|
|
719
|
+
h("h3", null, x(S(v).t("platform.screen.WorkflowWorkbenchView.existing-delegation-rules", "现有委托规则")), 1),
|
|
720
|
+
(y(!0), m(Se, null, we(vt.value, (e) => (y(), m("div", {
|
|
721
|
+
key: e.id,
|
|
722
|
+
class: "policy-row"
|
|
723
|
+
}, [
|
|
724
|
+
h("strong", null, x(e.title) + " · " + x(e.enabled ? S(v).t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : S(v).t("platform.screen.WorkflowWorkbenchView.disabled", "停用")), 1),
|
|
725
|
+
_(S(de), {
|
|
726
|
+
value: e.delegateUserId,
|
|
727
|
+
context: Je.value,
|
|
728
|
+
"load-options": Ge.value,
|
|
729
|
+
mode: "list",
|
|
730
|
+
"title-of": ct,
|
|
731
|
+
disabled: ""
|
|
732
|
+
}, null, 8, [
|
|
733
|
+
"value",
|
|
734
|
+
"context",
|
|
735
|
+
"load-options"
|
|
736
|
+
]),
|
|
737
|
+
h("span", null, x(e.moduleScopeType === "all" ? S(v).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块") : e.moduleAliases?.map((e) => Qe.value[e] ?? e).join("、")), 1),
|
|
738
|
+
h("div", null, [_(S(l), {
|
|
739
|
+
disabled: Y.value,
|
|
740
|
+
onClick: (t) => Tt(e)
|
|
741
|
+
}, {
|
|
742
|
+
default: C(() => [g(x(S(v).t("platform.screen.WorkflowWorkbenchView.edit-rule", "编辑规则")), 1)]),
|
|
743
|
+
_: 1
|
|
744
|
+
}, 8, ["disabled", "onClick"]), _(S(l), {
|
|
745
|
+
disabled: Y.value,
|
|
746
|
+
onClick: (t) => Ot(e)
|
|
747
|
+
}, {
|
|
748
|
+
default: C(() => [g(x(e.enabled ? S(v).t("platform.screen.WorkflowWorkbenchView.disable-rule", "停用规则") : S(v).t("platform.screen.WorkflowWorkbenchView.enable-rule", "启用规则")), 1)]),
|
|
749
|
+
_: 2
|
|
750
|
+
}, 1032, ["disabled", "onClick"])])
|
|
751
|
+
]))), 128))
|
|
752
|
+
]),
|
|
753
|
+
_: 1
|
|
754
|
+
}, 8, ["open", "title"])
|
|
755
|
+
]));
|
|
756
|
+
}
|
|
757
|
+
}), [["__scopeId", "data-v-1abc0f24"]]);
|
|
758
|
+
//#endregion
|
|
759
|
+
export { w as default };
|