@ximatai/muyun-web-app 0.26.23 → 0.26.25
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-a6oZ2t9t.js} +2 -2
- package/dist/{BusinessLogListDrawer-UCsg6psI.js → BusinessLogListDrawer-DtSXpK6g.js} +135 -131
- package/dist/{CodeConfigurationView-Calkazua.js → CodeConfigurationView-BVu1ZnH-.js} +366 -366
- package/dist/{ConfigurationTranslationView-fZrlRAMy.js → ConfigurationTranslationView-Cd8ezR4t.js} +44 -44
- package/dist/{LoginAuditLogView-B6J7t__0.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
- package/dist/ModuleActionManagementView-y3t2YHKF.js +780 -0
- package/dist/{ModuleGovernanceView-D8ONs78K.js → ModuleGovernanceView-BqJq2Pxm.js} +3521 -3521
- package/dist/{RequestErrorLogView-poMgx4_6.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-6Bs1eKbm.js → RoleDetailWorkspaceView-G-5VAV_B.js} +54 -54
- package/dist/{RuntimeLogView-Co-Z86bt.js → RuntimeLogView-CulSgS0l.js} +61 -61
- package/dist/WorkflowAdministrationView-y8VBYMLZ.js +650 -0
- package/dist/{WorkflowConfigurationView-mSyL_-We.js → WorkflowConfigurationView-DpONX2nN.js} +290 -290
- package/dist/{WorkflowWorkbenchView-DBMh3ycN.js → WorkflowWorkbenchView-CGo1eZjr.js} +215 -215
- package/dist/{codeConfiguration-D1zrxzoW.js → codeConfiguration-fZiz0PNC.js} +27 -27
- package/dist/index.css +1 -1
- package/dist/index.js +2407 -1222
- package/dist/{moduleMenuWorkspace-lIVrTaOB.js → moduleMenuWorkspace-AZ4G9BpZ.js} +222 -222
- package/dist/{platform-components-D0T03KGl.js → platform-components-D98pyZ77.js} +4296 -3497
- package/dist/{platform-workbench-CobObbuz.js → platform-workbench-BBLDvT9V.js} +6311 -6111
- package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +9 -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/PersonalAccessTokenDialog.vue.d.ts +15 -0
- package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
- package/dist/types/app/WeLinkQrCode.vue.d.ts +11 -0
- package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
- package/dist/types/app/externalLoginReturn.d.ts +38 -0
- package/dist/types/app/themeSkinPreference.d.ts +2 -2
- package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
- package/dist/types/app/useExternalLoginHost.d.ts +27 -0
- package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
- package/dist/types/app/weLinkQrCode.d.ts +22 -0
- package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
- package/dist/types/consumer/index.d.ts +16 -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/formCreateDefaults.d.ts +3 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
- package/dist/types/platform-admin-runtime/index.d.ts +1 -1
- 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/CronExpressionInput.vue.d.ts +12 -0
- package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
- 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/cronExpression.d.ts +36 -0
- package/dist/types/platform-components/durationSeconds.d.ts +31 -0
- package/dist/types/platform-components/fileReferenceTransfer.d.ts +9 -2
- package/dist/types/platform-components/index.d.ts +6 -0
- package/dist/types/platform-components/managementWorkspaceContext.d.ts +2 -1
- package/dist/types/platform-components/useNotificationDeckMotion.d.ts +7 -0
- package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
- package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
- package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
- package/dist/types/platform-workbench/index.d.ts +3 -0
- package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
- package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
- package/dist/types/views/businessLogClient.d.ts +2 -0
- package/dist/types/views/businessRuleGovernance.d.ts +1 -0
- package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
- package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-contracts/index.d.ts +87 -2
- package/dist/types/web-core/clients.d.ts +25 -1
- package/dist/{useWorkflowConfigurationContext-BkcNPU2H.js → useWorkflowConfigurationContext-BcK19EXl.js} +6 -6
- package/dist/{workspaceViews-BtqO8rU0.js → workspaceViews-Dr7RZXvX.js} +1139 -983
- package/package.json +1 -1
- package/dist/ModuleActionManagementView-BZ89Woex.js +0 -755
- package/dist/WorkflowAdministrationView-D7QpRHDp.js +0 -650
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { D as e, _ as t,
|
|
2
|
-
import { $
|
|
3
|
-
import { Fragment as Ce, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as we, openBlock as v, ref as y, renderList as Te, shallowRef as Ee, toDisplayString as b, unref as x, watch as
|
|
1
|
+
import { D as e, _ as t, s as n, y as r } from "./platform-workbench-BBLDvT9V.js";
|
|
2
|
+
import { $r as ee, In as te, Ir as ne, Jt as re, Nn as ie, Pa as ae, Pn as oe, Ra as i, Rr as se, St as ce, Vt as le, Wt as ue, Xr as de, bn as a, fr as o, gr as s, h as fe, ln as c, lr as pe, m as me, ni as he, no as ge, oo as _e, ot as ve, p as l, pr as ye, u as be, vr as xe, vt as Se } from "./platform-components-D98pyZ77.js";
|
|
3
|
+
import { Fragment as Ce, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, createTextVNode as h, createVNode as g, defineComponent as _, normalizeClass as we, openBlock as v, ref as y, renderList as Te, shallowRef as Ee, toDisplayString as b, unref as x, watch as De, withCtx as S } from "vue";
|
|
4
4
|
//#region src/views/WorkflowWorkbenchView.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
5
|
+
var Oe = { class: "workflow-workbench" }, ke = { class: "workflow-query-fields" }, Ae = {
|
|
6
6
|
key: 0,
|
|
7
7
|
class: "workflow-field"
|
|
8
|
-
},
|
|
8
|
+
}, je = { class: "workflow-field" }, Me = {
|
|
9
9
|
key: 1,
|
|
10
10
|
class: "workflow-field"
|
|
11
|
-
},
|
|
11
|
+
}, Ne = { class: "workflow-field" }, Pe = { class: "date-filters" }, Fe = { class: "workflow-field" }, Ie = { class: "workflow-field" }, Le = { class: "workflow-query-controls" }, Re = { key: 0 }, ze = { class: "policy-form" }, Be = { class: "workflow-field" }, Ve = { class: "workflow-field" }, He = { class: "workflow-field" }, Ue = {
|
|
12
12
|
key: 0,
|
|
13
13
|
class: "workflow-field"
|
|
14
|
-
},
|
|
14
|
+
}, C = /*#__PURE__*/ xe(/* @__PURE__ */ _({
|
|
15
15
|
name: "WorkflowWorkbenchView",
|
|
16
16
|
__name: "WorkflowWorkbenchView",
|
|
17
|
-
setup(
|
|
18
|
-
let _ =
|
|
19
|
-
function
|
|
20
|
-
return
|
|
17
|
+
setup(xe) {
|
|
18
|
+
let _ = ge();
|
|
19
|
+
function C(e) {
|
|
20
|
+
return me(e, _);
|
|
21
21
|
}
|
|
22
|
-
let
|
|
23
|
-
http:
|
|
22
|
+
let We = ee(), w = r(), Ge = n(), T = y(w?.value?.system && typeof Ge.query.tenantId == "string" ? Ge.query.tenantId : void 0), E = u(() => T.value ? _e(We.http, { "X-MuYun-Tenant-Id": T.value }) : We.http), Ke = u(() => fe(E.value)), D = u(() => se(E.value)), qe = de({
|
|
23
|
+
http: We.http,
|
|
24
24
|
language: _,
|
|
25
25
|
moduleAlias: "iam.tenant",
|
|
26
26
|
runtimeAccess: "REFERENCE"
|
|
27
|
-
}), Je = u(() => !
|
|
28
|
-
http:
|
|
27
|
+
}), Je = u(() => !w?.value?.system || !!T.value), Ye = u(() => de({
|
|
28
|
+
http: E.value,
|
|
29
29
|
language: _,
|
|
30
30
|
moduleAlias: "iam.user",
|
|
31
31
|
runtimeAccess: "VIEW"
|
|
32
|
-
})), O = y("todo"), k = y(1), A = y(30), Xe = y(0), Ze = y(0), j = y([]), M = y(), N = y(!1),
|
|
33
|
-
...
|
|
34
|
-
...Object.fromEntries(Object.entries(
|
|
35
|
-
})),
|
|
32
|
+
})), O = y("todo"), k = y(1), A = y(30), Xe = y(0), Ze = y(0), j = y([]), M = y(), N = y(!1), P = y(""), F = y(""), I = y({}), L = y({}), R = y({}), Qe = u(() => ({
|
|
33
|
+
...R.value,
|
|
34
|
+
...Object.fromEntries(Object.entries(L.value).map(([e, t]) => [e, i(t.title, t.titleText, _)]))
|
|
35
|
+
})), z = y({}), B = y(""), V = y(""), H = y(!1), $e = y(), et = u(() => [
|
|
36
36
|
{
|
|
37
37
|
key: "todo",
|
|
38
38
|
title: _.t("platform.screen.WorkflowWorkbenchView.my-pending-tasks", "待我办理")
|
|
@@ -55,28 +55,28 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
55
55
|
}
|
|
56
56
|
].map((e) => ({
|
|
57
57
|
...e,
|
|
58
|
-
title: e.title + (
|
|
59
|
-
}))),
|
|
58
|
+
title: e.title + (z.value[e.key] == null ? "" : ` (${z.value[e.key]})`)
|
|
59
|
+
}))), tt = u(() => Object.entries(Qe.value).map(([e, t]) => ({
|
|
60
60
|
value: e,
|
|
61
61
|
label: t
|
|
62
62
|
})));
|
|
63
|
-
function
|
|
63
|
+
function nt(e, t) {
|
|
64
64
|
if (e.business?.readable === !1) return _.t("platform.screen.WorkflowWorkbenchView.restricted-business-record", "受限业务记录");
|
|
65
65
|
let n = typeof t == "string" ? t : e.business?.title;
|
|
66
|
-
return n == null ? _.t("platform.screen.WorkflowWorkbenchView.untitled-business-record", "未命名业务") :
|
|
66
|
+
return n == null ? _.t("platform.screen.WorkflowWorkbenchView.untitled-business-record", "未命名业务") : ae(n, e.business?.titleContentText, _) ?? n;
|
|
67
67
|
}
|
|
68
|
-
let
|
|
68
|
+
let rt = u(() => j.value.map((e) => ({
|
|
69
69
|
...e,
|
|
70
70
|
id: e.taskId ?? e.instanceId,
|
|
71
|
-
nodeTitle:
|
|
72
|
-
title:
|
|
73
|
-
moduleTitle: e.business?.moduleTitle == null ?
|
|
74
|
-
status:
|
|
75
|
-
received:
|
|
76
|
-
completed:
|
|
71
|
+
nodeTitle: i(e.nodeTitle ?? "", e.nodeTitleText, _),
|
|
72
|
+
title: nt(e),
|
|
73
|
+
moduleTitle: e.business?.moduleTitle == null ? Qe.value[e.moduleAlias] ?? _.t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块") : i(e.business.moduleTitle, e.business.moduleTitleText, _),
|
|
74
|
+
status: C(e.taskStatus ?? e.instanceStatus),
|
|
75
|
+
received: st(e.receivedAt),
|
|
76
|
+
completed: st(e.completedAt),
|
|
77
77
|
assignees: e.currentAssigneeTitles.join("、"),
|
|
78
|
-
urgency:
|
|
79
|
-
}))),
|
|
78
|
+
urgency: C(e.overtimeStatus)
|
|
79
|
+
}))), it = u(() => [
|
|
80
80
|
{
|
|
81
81
|
key: "title",
|
|
82
82
|
title: _.t("platform.screen.WorkflowWorkbenchView.business-item", "业务事项"),
|
|
@@ -130,68 +130,68 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
130
130
|
dataIndex: "urgency",
|
|
131
131
|
width: 90
|
|
132
132
|
}]
|
|
133
|
-
]),
|
|
134
|
-
|
|
135
|
-
|
|
133
|
+
]), U = Ee();
|
|
134
|
+
De([() => M.value?.moduleAlias, E], ([e, t]) => {
|
|
135
|
+
U.value = e ? de({
|
|
136
136
|
http: t,
|
|
137
137
|
language: _,
|
|
138
138
|
moduleAlias: e,
|
|
139
139
|
runtimeAccess: "VIEW"
|
|
140
140
|
}) : void 0;
|
|
141
141
|
}, { immediate: !0 });
|
|
142
|
-
let
|
|
143
|
-
let e =
|
|
144
|
-
return new Map([...
|
|
142
|
+
let W = y(), at = y(/* @__PURE__ */ new Map()), G = y(!1), K = y(""), ot = u(() => {
|
|
143
|
+
let e = U.value ? le(he(U.value.runtime)?.uiDescriptor) : void 0;
|
|
144
|
+
return new Map([...at.value].map(([t, n]) => [t, e?.get(t) ?? n]));
|
|
145
145
|
});
|
|
146
|
-
function
|
|
146
|
+
function st(e) {
|
|
147
147
|
return e ? new Date(e).toLocaleString("zh-CN", { hour12: !1 }) : "—";
|
|
148
148
|
}
|
|
149
|
-
function
|
|
149
|
+
function ct(e) {
|
|
150
150
|
return e.title || e.username || e.id || "";
|
|
151
151
|
}
|
|
152
152
|
let q = 0, lt = 0, ut = 0;
|
|
153
153
|
e(async (e) => {
|
|
154
|
-
let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n = j.value.some((e) => t.has(e.moduleAlias)), r = Object.keys(
|
|
154
|
+
let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n = j.value.some((e) => t.has(e.moduleAlias)), r = Object.keys(L.value).some((e) => t.has(e));
|
|
155
155
|
if (!n && !r) return;
|
|
156
|
-
let ee = ++ut, te = q, ne =
|
|
156
|
+
let ee = ++ut, te = q, ne = T.value, re = w?.value?.userId, ie = U.value;
|
|
157
157
|
try {
|
|
158
158
|
let [e, r] = await Promise.all([
|
|
159
|
-
n ?
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
n ? D.value.workbenchPage(O.value, k.value, I.value, F.value, A.value) : void 0,
|
|
160
|
+
D.value.workbenchModules(),
|
|
161
|
+
ie && t.has(ie.moduleAlias) ? ie.runtime.refreshTexts?.() : void 0
|
|
162
162
|
]);
|
|
163
|
-
if (ee !== ut || q !== te ||
|
|
164
|
-
let
|
|
163
|
+
if (ee !== ut || q !== te || T.value !== ne || w?.value?.userId !== re) return;
|
|
164
|
+
let ae = (t) => e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId)?.nodeTitleText, oe = {
|
|
165
165
|
...r.modules,
|
|
166
166
|
...e?.navigation?.moduleTitles?.modules
|
|
167
|
-
},
|
|
168
|
-
for (let [e, t] of Object.entries(
|
|
169
|
-
let n =
|
|
170
|
-
|
|
167
|
+
}, i = { ...L.value };
|
|
168
|
+
for (let [e, t] of Object.entries(i)) {
|
|
169
|
+
let n = oe[e]?.titleText;
|
|
170
|
+
l(t.titleText, n) && (i[e] = {
|
|
171
171
|
...t,
|
|
172
172
|
titleText: n
|
|
173
173
|
});
|
|
174
174
|
}
|
|
175
|
-
|
|
176
|
-
let
|
|
177
|
-
let n = e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId), r = n?.business?.moduleTitleText ??
|
|
175
|
+
L.value = i;
|
|
176
|
+
let se = (t) => {
|
|
177
|
+
let n = e?.records.find((e) => e.instanceId === t.instanceId && e.taskId === t.taskId), r = n?.business?.moduleTitleText ?? oe[t.moduleAlias]?.titleText;
|
|
178
178
|
return {
|
|
179
179
|
...t,
|
|
180
|
-
...
|
|
181
|
-
business: t.business &&
|
|
180
|
+
...l(t.nodeTitleText, n?.nodeTitleText) ? { nodeTitleText: n?.nodeTitleText } : {},
|
|
181
|
+
business: t.business && l(t.business.moduleTitleText, r) ? {
|
|
182
182
|
...t.business,
|
|
183
183
|
moduleTitleText: r
|
|
184
184
|
} : t.business
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
-
if (j.value = j.value.map(
|
|
188
|
-
let e =
|
|
189
|
-
|
|
190
|
-
let t =
|
|
187
|
+
if (j.value = j.value.map(se), M.value) {
|
|
188
|
+
let e = ae(M.value);
|
|
189
|
+
l(M.value.nodeTitleText, e) && (M.value.nodeTitleText = e);
|
|
190
|
+
let t = se(M.value);
|
|
191
191
|
t.business && (M.value.business = t.business);
|
|
192
192
|
}
|
|
193
193
|
} catch (e) {
|
|
194
|
-
|
|
194
|
+
a(e, {
|
|
195
195
|
source: "workflow-text-resources",
|
|
196
196
|
phase: "load"
|
|
197
197
|
});
|
|
@@ -199,19 +199,19 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
199
199
|
});
|
|
200
200
|
async function dt() {
|
|
201
201
|
let e = ++q;
|
|
202
|
-
N.value = !0,
|
|
202
|
+
N.value = !0, P.value = "";
|
|
203
203
|
try {
|
|
204
|
-
let t = await
|
|
204
|
+
let t = await D.value.workbenchPage(O.value, k.value, I.value, F.value, A.value);
|
|
205
205
|
if (e !== q) return;
|
|
206
|
-
j.value = t.records, Xe.value = t.total, Ze.value = t.pages,
|
|
207
|
-
...
|
|
206
|
+
j.value = t.records, Xe.value = t.total, Ze.value = t.pages, R.value = {
|
|
207
|
+
...R.value,
|
|
208
208
|
...t.navigation?.modules
|
|
209
|
-
},
|
|
210
|
-
...
|
|
209
|
+
}, L.value = {
|
|
210
|
+
...L.value,
|
|
211
211
|
...t.navigation?.moduleTitles?.modules
|
|
212
|
-
},
|
|
212
|
+
}, z.value[O.value] = t.total;
|
|
213
213
|
} catch (t) {
|
|
214
|
-
e === q && (j.value = [], Xe.value = 0, Ze.value = 0, delete
|
|
214
|
+
e === q && (j.value = [], Xe.value = 0, Ze.value = 0, delete z.value[O.value], P.value = _.t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks-retry", "任务加载失败,请重试。"), a(t, {
|
|
215
215
|
source: "workflow-workbench",
|
|
216
216
|
phase: "load"
|
|
217
217
|
}));
|
|
@@ -220,49 +220,49 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
async function ft() {
|
|
223
|
-
let e = ++lt, t = M.value, n =
|
|
224
|
-
if (
|
|
223
|
+
let e = ++lt, t = M.value, n = U.value;
|
|
224
|
+
if (W.value = void 0, K.value = "", G.value = !1, t && n) {
|
|
225
225
|
if (t.business?.readable === !1) {
|
|
226
|
-
|
|
226
|
+
K.value = _.t("platform.screen.WorkflowWorkbenchView.you-can-view-the-task-status-but", "你可以查看任务状态,但尚无该业务记录的读取权限。请联系业务管理员。");
|
|
227
227
|
return;
|
|
228
228
|
}
|
|
229
|
-
|
|
229
|
+
G.value = !0;
|
|
230
230
|
try {
|
|
231
231
|
let r = await n.runtime.ready, ee = await n.crud.view(t.recordId);
|
|
232
232
|
if (e !== lt) return;
|
|
233
|
-
|
|
233
|
+
at.value = le(r.uiDescriptor), W.value = ee;
|
|
234
234
|
} catch (t) {
|
|
235
|
-
e === lt && (
|
|
235
|
+
e === lt && (K.value = _.t("platform.screen.WorkflowWorkbenchView.unable-to-load-business-details-retry-or", "业务详情加载失败,请重试或检查业务读取权限。"), a(t, {
|
|
236
236
|
source: "workflow-workbench",
|
|
237
237
|
phase: "load"
|
|
238
238
|
}));
|
|
239
239
|
} finally {
|
|
240
|
-
e === lt && (
|
|
240
|
+
e === lt && (G.value = !1);
|
|
241
241
|
}
|
|
242
242
|
}
|
|
243
243
|
}
|
|
244
|
-
|
|
244
|
+
De([M, T], () => void ft()), De([
|
|
245
245
|
O,
|
|
246
246
|
k,
|
|
247
247
|
A,
|
|
248
|
-
|
|
249
|
-
], () => void dt(), { immediate: !0 }),
|
|
250
|
-
M.value = void 0,
|
|
248
|
+
T
|
|
249
|
+
], () => void dt(), { immediate: !0 }), De(T, () => {
|
|
250
|
+
M.value = void 0, I.value = {}, F.value = "", B.value = "", V.value = "", R.value = {}, L.value = {}, z.value = {}, k.value = 1, ++Q, J.value = !1, Y.value = !1, vt.value = [], St();
|
|
251
251
|
}, { flush: "sync" });
|
|
252
252
|
async function pt() {
|
|
253
|
-
return !
|
|
253
|
+
return !H.value || await $e.value?.mayLeave() === !0;
|
|
254
254
|
}
|
|
255
255
|
async function mt() {
|
|
256
256
|
await pt() && (M.value = void 0);
|
|
257
257
|
}
|
|
258
258
|
function ht() {
|
|
259
|
-
|
|
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, k.value === 1 ? dt() : k.value = 1);
|
|
260
260
|
}
|
|
261
261
|
function gt() {
|
|
262
|
-
|
|
262
|
+
F.value = "", I.value = {}, B.value = "", V.value = "", ht();
|
|
263
263
|
}
|
|
264
264
|
async function _t() {
|
|
265
|
-
|
|
265
|
+
H.value = !1, M.value && t(M.value.moduleAlias), await dt(), await ft();
|
|
266
266
|
}
|
|
267
267
|
let vt = y([]), J = y(!1), Y = y(!1), X = y(""), Z = y({
|
|
268
268
|
title: _.t("platform.workflow.delegation.default-title", "审批代办"),
|
|
@@ -273,21 +273,21 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
273
273
|
ne(() => _.t("platform.unsaved-source.WorkflowWorkbenchView", "个人委托"), () => bt.value, () => Y.value);
|
|
274
274
|
let Q = 0;
|
|
275
275
|
function $(e, t) {
|
|
276
|
-
return e === Q && t ===
|
|
276
|
+
return e === Q && t === T.value && J.value;
|
|
277
277
|
}
|
|
278
278
|
async function xt() {
|
|
279
279
|
if (Y.value || J.value || !Je.value) return;
|
|
280
|
-
let e = ++Q, t =
|
|
280
|
+
let e = ++Q, t = T.value, n = D.value;
|
|
281
281
|
J.value = !0, Y.value = !0, vt.value = [], St();
|
|
282
282
|
try {
|
|
283
283
|
let r = await n.workbenchModules();
|
|
284
284
|
if (!$(e, t)) return;
|
|
285
|
-
|
|
286
|
-
...
|
|
285
|
+
L.value = {
|
|
286
|
+
...L.value,
|
|
287
287
|
...r.modules
|
|
288
288
|
}, await Ct();
|
|
289
289
|
} catch (n) {
|
|
290
|
-
$(e, t) &&
|
|
290
|
+
$(e, t) && a(n, {
|
|
291
291
|
source: "workflow-delegation",
|
|
292
292
|
phase: "load"
|
|
293
293
|
});
|
|
@@ -304,7 +304,7 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
304
304
|
}, yt.value = JSON.stringify(Z.value), X.value = "";
|
|
305
305
|
}
|
|
306
306
|
async function Ct() {
|
|
307
|
-
let e = Q, t =
|
|
307
|
+
let e = Q, t = T.value, n = E.value;
|
|
308
308
|
try {
|
|
309
309
|
let r = await n.request({
|
|
310
310
|
method: "POST",
|
|
@@ -316,7 +316,7 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
316
316
|
});
|
|
317
317
|
$(e, t) && (vt.value = r.records);
|
|
318
318
|
} catch (n) {
|
|
319
|
-
$(e, t) &&
|
|
319
|
+
$(e, t) && a(n, {
|
|
320
320
|
source: "workflow-delegation",
|
|
321
321
|
phase: "load"
|
|
322
322
|
});
|
|
@@ -330,8 +330,8 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
330
330
|
}
|
|
331
331
|
async function Et() {
|
|
332
332
|
if (Y.value || !J.value) return !1;
|
|
333
|
-
let e = Q, t =
|
|
334
|
-
return (!bt.value || await
|
|
333
|
+
let e = Q, t = T.value;
|
|
334
|
+
return (!bt.value || await oe({
|
|
335
335
|
title: _.t("platform.screen.WorkflowWorkbenchView.discard-delegation-changes", "放弃未保存的委托设置?"),
|
|
336
336
|
okText: _.t("platform.screen.WorkflowWorkbenchView.discard-changes", "放弃修改"),
|
|
337
337
|
danger: !0
|
|
@@ -339,7 +339,7 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
339
339
|
}
|
|
340
340
|
async function Dt() {
|
|
341
341
|
if (Y.value || !J.value) return;
|
|
342
|
-
let e = Q, t =
|
|
342
|
+
let e = Q, t = T.value, n = E.value, r = Z.value;
|
|
343
343
|
if (!r.title?.trim() || !r.delegateUserId || r.moduleScopeType === "include" && !r.moduleAliases?.length) {
|
|
344
344
|
X.value = _.t("platform.screen.WorkflowWorkbenchView.delegation-fields-required", "请填写规则名称、代办人,并选择适用业务模块。");
|
|
345
345
|
return;
|
|
@@ -356,9 +356,9 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
356
356
|
moduleAliases: r.moduleScopeType === "all" ? [] : r.moduleAliases
|
|
357
357
|
}
|
|
358
358
|
}), !$(e, t) || (St(), await Ct(), !$(e, t))) return;
|
|
359
|
-
|
|
359
|
+
ie(_.t("platform.screen.WorkflowWorkbenchView.delegation-saved", "委托规则已保存,仅影响后续新任务"));
|
|
360
360
|
} catch (n) {
|
|
361
|
-
$(e, t) &&
|
|
361
|
+
$(e, t) && a(n, {
|
|
362
362
|
source: "workflow-delegation",
|
|
363
363
|
phase: "action"
|
|
364
364
|
});
|
|
@@ -368,7 +368,7 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
368
368
|
}
|
|
369
369
|
async function Ot(e) {
|
|
370
370
|
if (Y.value || !J.value) return;
|
|
371
|
-
let t = Q, n =
|
|
371
|
+
let t = Q, n = T.value, r = E.value;
|
|
372
372
|
Y.value = !0;
|
|
373
373
|
try {
|
|
374
374
|
await r.request({
|
|
@@ -377,7 +377,7 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
377
377
|
body: { version: e.version }
|
|
378
378
|
}), $(t, n) && await Ct();
|
|
379
379
|
} catch (e) {
|
|
380
|
-
$(t, n) &&
|
|
380
|
+
$(t, n) && a(e, {
|
|
381
381
|
source: "workflow-delegation",
|
|
382
382
|
phase: "action"
|
|
383
383
|
});
|
|
@@ -385,12 +385,12 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
385
385
|
$(t, n) && (Y.value = !1);
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
|
-
return (e, t) => (v(), p("section",
|
|
389
|
-
g(x(
|
|
390
|
-
tabs:
|
|
388
|
+
return (e, t) => (v(), p("section", Oe, [
|
|
389
|
+
g(x(Se), {
|
|
390
|
+
tabs: et.value,
|
|
391
391
|
"active-key": O.value,
|
|
392
392
|
label: x(_).t("platform.screen.WorkflowWorkbenchView.approval-workbench-groups", "审批工作台分组"),
|
|
393
|
-
disabled:
|
|
393
|
+
disabled: H.value,
|
|
394
394
|
"onUpdate:activeKey": t[0] ||= (e) => {
|
|
395
395
|
O.value = e, k.value = 1, M.value = void 0;
|
|
396
396
|
}
|
|
@@ -400,22 +400,22 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
400
400
|
"label",
|
|
401
401
|
"disabled"
|
|
402
402
|
]),
|
|
403
|
-
|
|
403
|
+
P.value ? (v(), d(x(te), {
|
|
404
404
|
key: 0,
|
|
405
405
|
title: x(_).t("platform.screen.WorkflowWorkbenchView.unable-to-load-tasks", "无法加载任务"),
|
|
406
|
-
message:
|
|
406
|
+
message: P.value
|
|
407
407
|
}, null, 8, ["title", "message"])) : f("v-if", !0),
|
|
408
|
-
g(x(
|
|
409
|
-
title:
|
|
410
|
-
columns:
|
|
411
|
-
rows:
|
|
408
|
+
g(x(re), {
|
|
409
|
+
title: et.value.find((e) => e.key === O.value)?.title ?? x(_).t("platform.screen.WorkflowWorkbenchView.workflow-tasks", "审批任务"),
|
|
410
|
+
columns: it.value,
|
|
411
|
+
rows: rt.value,
|
|
412
412
|
"row-key": "id",
|
|
413
413
|
"clickable-rows": !0,
|
|
414
414
|
"selected-row-key": M.value?.taskId ?? M.value?.instanceId,
|
|
415
415
|
"quick-search-visible": !0,
|
|
416
|
-
"quick-search-value":
|
|
416
|
+
"quick-search-value": F.value,
|
|
417
417
|
"quick-search-placeholder": x(_).t("platform.screen.WorkflowWorkbenchView.search-business-title", "搜索业务标题"),
|
|
418
|
-
"quick-search-disabled":
|
|
418
|
+
"quick-search-disabled": H.value || N.value,
|
|
419
419
|
pageable: !0,
|
|
420
420
|
total: Xe.value,
|
|
421
421
|
pages: Ze.value,
|
|
@@ -427,53 +427,53 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
427
427
|
30,
|
|
428
428
|
50
|
|
429
429
|
],
|
|
430
|
-
"pagination-disabled":
|
|
431
|
-
"onUpdate:quickSearchValue": t[7] ||= (e) =>
|
|
430
|
+
"pagination-disabled": H.value || N.value,
|
|
431
|
+
"onUpdate:quickSearchValue": t[7] ||= (e) => F.value = e,
|
|
432
432
|
onQuickSearch: ht,
|
|
433
433
|
onPageChange: t[8] ||= (e) => k.value = e,
|
|
434
434
|
onPageSizeChange: t[9] ||= (e) => {
|
|
435
435
|
A.value = e, k.value = 1;
|
|
436
436
|
},
|
|
437
|
-
onRowClick: t[10] ||= (e) => !
|
|
437
|
+
onRowClick: t[10] ||= (e) => !H.value && (M.value = j.value.find((t) => (t.taskId ?? t.instanceId) === e.id))
|
|
438
438
|
}, {
|
|
439
|
-
operations:
|
|
439
|
+
operations: S(() => [g(x(s), {
|
|
440
440
|
loading: N.value,
|
|
441
|
-
disabled:
|
|
441
|
+
disabled: H.value,
|
|
442
442
|
onClick: dt
|
|
443
443
|
}, {
|
|
444
|
-
default:
|
|
444
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.refresh-tasks", "刷新任务")), 1)]),
|
|
445
445
|
_: 1
|
|
446
|
-
}, 8, ["loading", "disabled"]), g(x(
|
|
447
|
-
disabled:
|
|
446
|
+
}, 8, ["loading", "disabled"]), g(x(s), {
|
|
447
|
+
disabled: H.value || J.value || Y.value || !Je.value,
|
|
448
448
|
onClick: xt
|
|
449
449
|
}, {
|
|
450
|
-
default:
|
|
450
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置")), 1)]),
|
|
451
451
|
_: 1
|
|
452
452
|
}, 8, ["disabled"])]),
|
|
453
|
-
conditions:
|
|
454
|
-
x(
|
|
455
|
-
default:
|
|
453
|
+
conditions: S(() => [m("div", ke, [
|
|
454
|
+
x(w)?.system ? (v(), p("label", Ae, [g(x(c), null, {
|
|
455
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.business-tenant", "业务租户")), 1)]),
|
|
456
456
|
_: 1
|
|
457
|
-
}), g(x(
|
|
458
|
-
value:
|
|
459
|
-
"onUpdate:value": t[1] ||= (e) =>
|
|
460
|
-
disabled:
|
|
457
|
+
}), g(x(ve), {
|
|
458
|
+
value: T.value,
|
|
459
|
+
"onUpdate:value": t[1] ||= (e) => T.value = e,
|
|
460
|
+
disabled: H.value || J.value || Y.value,
|
|
461
461
|
context: x(qe),
|
|
462
462
|
mode: "list",
|
|
463
|
-
"title-of":
|
|
463
|
+
"title-of": ct
|
|
464
464
|
}, null, 8, [
|
|
465
465
|
"value",
|
|
466
466
|
"disabled",
|
|
467
467
|
"context"
|
|
468
468
|
])])) : f("v-if", !0),
|
|
469
|
-
m("label",
|
|
470
|
-
default:
|
|
469
|
+
m("label", je, [g(x(c), null, {
|
|
470
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1)]),
|
|
471
471
|
_: 1
|
|
472
|
-
}), g(x(
|
|
473
|
-
value:
|
|
474
|
-
"onUpdate:value": t[2] ||= (e) =>
|
|
475
|
-
options:
|
|
476
|
-
disabled:
|
|
472
|
+
}), g(x(o), {
|
|
473
|
+
value: I.value.moduleAlias,
|
|
474
|
+
"onUpdate:value": t[2] ||= (e) => I.value.moduleAlias = e,
|
|
475
|
+
options: tt.value,
|
|
476
|
+
disabled: H.value,
|
|
477
477
|
"show-search": "",
|
|
478
478
|
placeholder: x(_).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
|
|
479
479
|
}, null, 8, [
|
|
@@ -482,42 +482,42 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
482
482
|
"disabled",
|
|
483
483
|
"placeholder"
|
|
484
484
|
])]),
|
|
485
|
-
Je.value ? (v(), p("label",
|
|
486
|
-
default:
|
|
485
|
+
Je.value ? (v(), p("label", Me, [g(x(c), null, {
|
|
486
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.submitter", "发起人")), 1)]),
|
|
487
487
|
_: 1
|
|
488
|
-
}), g(x(
|
|
489
|
-
value:
|
|
490
|
-
"onUpdate:value": t[3] ||= (e) =>
|
|
491
|
-
disabled:
|
|
488
|
+
}), g(x(ve), {
|
|
489
|
+
value: I.value.submitterUserId,
|
|
490
|
+
"onUpdate:value": t[3] ||= (e) => I.value.submitterUserId = e,
|
|
491
|
+
disabled: H.value,
|
|
492
492
|
context: Ye.value,
|
|
493
|
-
"load-options":
|
|
493
|
+
"load-options": Ke.value,
|
|
494
494
|
mode: "list",
|
|
495
|
-
"title-of":
|
|
495
|
+
"title-of": ct
|
|
496
496
|
}, null, 8, [
|
|
497
497
|
"value",
|
|
498
498
|
"disabled",
|
|
499
499
|
"context",
|
|
500
500
|
"load-options"
|
|
501
501
|
])])) : f("v-if", !0),
|
|
502
|
-
m("label",
|
|
503
|
-
default:
|
|
502
|
+
m("label", Ne, [g(x(c), null, {
|
|
503
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.timeliness", "时效")), 1)]),
|
|
504
504
|
_: 1
|
|
505
|
-
}), g(x(
|
|
506
|
-
value:
|
|
507
|
-
"onUpdate:value": t[4] ||= (e) =>
|
|
508
|
-
disabled:
|
|
505
|
+
}), g(x(o), {
|
|
506
|
+
value: I.value.overtimeStatus,
|
|
507
|
+
"onUpdate:value": t[4] ||= (e) => I.value.overtimeStatus = e,
|
|
508
|
+
disabled: H.value,
|
|
509
509
|
options: [
|
|
510
510
|
{
|
|
511
511
|
value: "normal",
|
|
512
|
-
label:
|
|
512
|
+
label: C("normal")
|
|
513
513
|
},
|
|
514
514
|
{
|
|
515
515
|
value: "warned",
|
|
516
|
-
label:
|
|
516
|
+
label: C("warned")
|
|
517
517
|
},
|
|
518
518
|
{
|
|
519
519
|
value: "overdue",
|
|
520
|
-
label:
|
|
520
|
+
label: C("overdue")
|
|
521
521
|
}
|
|
522
522
|
],
|
|
523
523
|
placeholder: x(_).t("platform.screen.WorkflowWorkbenchView.all", "全部")
|
|
@@ -527,32 +527,32 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
527
527
|
"options",
|
|
528
528
|
"placeholder"
|
|
529
529
|
])]),
|
|
530
|
-
m("div",
|
|
531
|
-
value: z.value,
|
|
532
|
-
"onUpdate:value": t[5] ||= (e) => z.value = e,
|
|
533
|
-
type: "date",
|
|
534
|
-
disabled: V.value
|
|
535
|
-
}, null, 8, ["value", "disabled"])]), m("label", Fe, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.received-until", "接收结束日期")), 1), g(x(ye), {
|
|
530
|
+
m("div", Pe, [m("label", Fe, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.received-from", "接收开始日期")), 1), g(x(pe), {
|
|
536
531
|
value: B.value,
|
|
537
|
-
"onUpdate:value": t[
|
|
532
|
+
"onUpdate:value": t[5] ||= (e) => B.value = e,
|
|
533
|
+
type: "date",
|
|
534
|
+
disabled: H.value
|
|
535
|
+
}, null, 8, ["value", "disabled"])]), m("label", Ie, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.received-until", "接收结束日期")), 1), g(x(pe), {
|
|
536
|
+
value: V.value,
|
|
537
|
+
"onUpdate:value": t[6] ||= (e) => V.value = e,
|
|
538
538
|
type: "date",
|
|
539
|
-
disabled:
|
|
539
|
+
disabled: H.value
|
|
540
540
|
}, null, 8, ["value", "disabled"])])]),
|
|
541
|
-
m("div",
|
|
542
|
-
disabled:
|
|
541
|
+
m("div", Le, [g(x(s), {
|
|
542
|
+
disabled: H.value || N.value,
|
|
543
543
|
onClick: ht
|
|
544
544
|
}, {
|
|
545
|
-
default:
|
|
545
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.search", "查询")), 1)]),
|
|
546
546
|
_: 1
|
|
547
|
-
}, 8, ["disabled"]), g(x(
|
|
548
|
-
disabled:
|
|
547
|
+
}, 8, ["disabled"]), g(x(s), {
|
|
548
|
+
disabled: H.value || N.value,
|
|
549
549
|
onClick: gt
|
|
550
550
|
}, {
|
|
551
|
-
default:
|
|
551
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.reset", "重置")), 1)]),
|
|
552
552
|
_: 1
|
|
553
553
|
}, 8, ["disabled"])])
|
|
554
554
|
])]),
|
|
555
|
-
cell:
|
|
555
|
+
cell: S(({ column: e, record: t, value: n }) => [m("span", { class: we({ "workflow-urgency": e.key === "urgency" && t.overtimeStatus === "overdue" }) }, b(n ?? "—"), 3)]),
|
|
556
556
|
_: 1
|
|
557
557
|
}, 8, [
|
|
558
558
|
"title",
|
|
@@ -568,53 +568,53 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
568
568
|
"page-size",
|
|
569
569
|
"pagination-disabled"
|
|
570
570
|
]),
|
|
571
|
-
g(x(
|
|
571
|
+
g(x(ue), {
|
|
572
572
|
open: !!M.value,
|
|
573
|
-
title: M.value ?
|
|
573
|
+
title: M.value ? nt(M.value, W.value?.title) : x(_).t("platform.screen.WorkflowWorkbenchView.business-processing-details", "业务办理详情"),
|
|
574
574
|
width: "wide",
|
|
575
575
|
"before-close": pt,
|
|
576
576
|
onClose: t[12] ||= (e) => M.value = void 0
|
|
577
577
|
}, {
|
|
578
|
-
operation:
|
|
579
|
-
disabled:
|
|
578
|
+
operation: S(() => [g(x(s), {
|
|
579
|
+
disabled: H.value,
|
|
580
580
|
onClick: mt
|
|
581
581
|
}, {
|
|
582
|
-
default:
|
|
582
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.close-details", "关闭详情")), 1)]),
|
|
583
583
|
_: 1
|
|
584
584
|
}, 8, ["disabled"])]),
|
|
585
|
-
default:
|
|
586
|
-
|
|
587
|
-
|
|
585
|
+
default: S(() => [
|
|
586
|
+
G.value ? (v(), p("p", Re, b(x(_).t("platform.screen.WorkflowWorkbenchView.loading-business-details", "加载业务详情…")), 1)) : f("v-if", !0),
|
|
587
|
+
K.value ? (v(), d(x(te), {
|
|
588
588
|
key: 1,
|
|
589
589
|
title: x(_).t("platform.screen.WorkflowWorkbenchView.unable-to-read-business-details", "无法读取业务详情"),
|
|
590
|
-
message:
|
|
590
|
+
message: K.value
|
|
591
591
|
}, null, 8, ["title", "message"])) : f("v-if", !0),
|
|
592
|
-
|
|
592
|
+
K.value ? (v(), d(x(s), {
|
|
593
593
|
key: 2,
|
|
594
594
|
onClick: ft
|
|
595
595
|
}, {
|
|
596
|
-
default:
|
|
596
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.retry", "重试")), 1)]),
|
|
597
597
|
_: 1
|
|
598
598
|
})) : f("v-if", !0),
|
|
599
|
-
|
|
599
|
+
W.value ? (v(), d(x(ce), {
|
|
600
600
|
key: 3,
|
|
601
|
-
record:
|
|
602
|
-
fields:
|
|
603
|
-
"option-context":
|
|
601
|
+
record: W.value,
|
|
602
|
+
fields: ot.value,
|
|
603
|
+
"option-context": U.value
|
|
604
604
|
}, null, 8, [
|
|
605
605
|
"record",
|
|
606
606
|
"fields",
|
|
607
607
|
"option-context"
|
|
608
608
|
])) : f("v-if", !0),
|
|
609
|
-
M.value &&
|
|
609
|
+
M.value && U.value && W.value && !G.value && !K.value ? (v(), d(x(be), {
|
|
610
610
|
ref_key: "panel",
|
|
611
|
-
ref:
|
|
611
|
+
ref: $e,
|
|
612
612
|
key: M.value.instanceId,
|
|
613
|
-
context:
|
|
613
|
+
context: U.value,
|
|
614
614
|
"record-id": M.value.recordId,
|
|
615
615
|
"instance-id": M.value.instanceId,
|
|
616
616
|
"record-submission": M.value.taskKind === "resubmit" && M.value.taskStatus === "todo",
|
|
617
|
-
onEditingChange: t[11] ||= (e) =>
|
|
617
|
+
onEditingChange: t[11] ||= (e) => H.value = e,
|
|
618
618
|
onChanged: _t
|
|
619
619
|
}, null, 8, [
|
|
620
620
|
"context",
|
|
@@ -625,51 +625,51 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
625
625
|
]),
|
|
626
626
|
_: 1
|
|
627
627
|
}, 8, ["open", "title"]),
|
|
628
|
-
g(x(
|
|
628
|
+
g(x(ue), {
|
|
629
629
|
open: J.value,
|
|
630
630
|
title: Z.value.id ? x(_).t("platform.screen.WorkflowWorkbenchView.edit-personal-delegation", "编辑个人委托") : x(_).t("platform.screen.WorkflowWorkbenchView.personal-delegation-settings", "个人代办设置"),
|
|
631
631
|
"before-close": Et,
|
|
632
632
|
onClose: t[18] ||= (e) => J.value = !1
|
|
633
633
|
}, {
|
|
634
|
-
operation:
|
|
634
|
+
operation: S(() => [g(x(s), {
|
|
635
635
|
type: "primary",
|
|
636
636
|
loading: Y.value,
|
|
637
637
|
onClick: Dt
|
|
638
638
|
}, {
|
|
639
|
-
default:
|
|
639
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.save-delegation-rule", "保存委托规则")), 1)]),
|
|
640
640
|
_: 1
|
|
641
|
-
}, 8, ["loading"]), g(x(
|
|
641
|
+
}, 8, ["loading"]), g(x(s), {
|
|
642
642
|
disabled: Y.value,
|
|
643
643
|
onClick: wt
|
|
644
644
|
}, {
|
|
645
|
-
default:
|
|
645
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.new-rule", "新建规则")), 1)]),
|
|
646
646
|
_: 1
|
|
647
647
|
}, 8, ["disabled"])]),
|
|
648
|
-
default:
|
|
649
|
-
X.value ? (v(), d(x(
|
|
648
|
+
default: S(() => [
|
|
649
|
+
X.value ? (v(), d(x(te), {
|
|
650
650
|
key: 0,
|
|
651
651
|
title: x(_).t("platform.screen.WorkflowWorkbenchView.complete-the-delegation-rule", "请完善委托规则"),
|
|
652
652
|
message: X.value
|
|
653
653
|
}, null, 8, ["title", "message"])) : f("v-if", !0),
|
|
654
|
-
m("div",
|
|
655
|
-
m("label",
|
|
656
|
-
default:
|
|
654
|
+
m("div", ze, [
|
|
655
|
+
m("label", Be, [g(x(c), { required: "" }, {
|
|
656
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.rule-name", "规则名称")), 1)]),
|
|
657
657
|
_: 1
|
|
658
|
-
}), g(x(
|
|
658
|
+
}), g(x(pe), {
|
|
659
659
|
value: Z.value.title,
|
|
660
660
|
"onUpdate:value": t[13] ||= (e) => Z.value.title = e,
|
|
661
661
|
disabled: Y.value
|
|
662
662
|
}, null, 8, ["value", "disabled"])]),
|
|
663
|
-
m("label",
|
|
664
|
-
default:
|
|
663
|
+
m("label", Ve, [g(x(c), { required: "" }, {
|
|
664
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.delegate", "代办人")), 1)]),
|
|
665
665
|
_: 1
|
|
666
|
-
}), g(x(
|
|
666
|
+
}), g(x(ve), {
|
|
667
667
|
value: Z.value.delegateUserId,
|
|
668
668
|
"onUpdate:value": t[14] ||= (e) => Z.value.delegateUserId = e,
|
|
669
669
|
context: Ye.value,
|
|
670
|
-
"load-options":
|
|
670
|
+
"load-options": Ke.value,
|
|
671
671
|
mode: "list",
|
|
672
|
-
"title-of":
|
|
672
|
+
"title-of": ct,
|
|
673
673
|
disabled: Y.value
|
|
674
674
|
}, null, 8, [
|
|
675
675
|
"value",
|
|
@@ -677,7 +677,7 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
677
677
|
"load-options",
|
|
678
678
|
"disabled"
|
|
679
679
|
])]),
|
|
680
|
-
m("label",
|
|
680
|
+
m("label", He, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.applicable-scope", "适用范围")), 1), g(x(o), {
|
|
681
681
|
value: Z.value.moduleScopeType,
|
|
682
682
|
"onUpdate:value": t[15] ||= (e) => Z.value.moduleScopeType = e,
|
|
683
683
|
disabled: Y.value,
|
|
@@ -694,11 +694,11 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
694
694
|
"disabled",
|
|
695
695
|
"options"
|
|
696
696
|
])]),
|
|
697
|
-
Z.value.moduleScopeType === "include" ? (v(), p("label",
|
|
697
|
+
Z.value.moduleScopeType === "include" ? (v(), p("label", Ue, [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.business-module", "业务模块")), 1), g(x(o), {
|
|
698
698
|
value: Z.value.moduleAliases,
|
|
699
699
|
"onUpdate:value": t[16] ||= (e) => Z.value.moduleAliases = e,
|
|
700
700
|
disabled: Y.value,
|
|
701
|
-
options:
|
|
701
|
+
options: tt.value,
|
|
702
702
|
mode: "multiple",
|
|
703
703
|
"show-search": ""
|
|
704
704
|
}, null, 8, [
|
|
@@ -706,12 +706,12 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
706
706
|
"disabled",
|
|
707
707
|
"options"
|
|
708
708
|
])])) : f("v-if", !0),
|
|
709
|
-
g(x(
|
|
709
|
+
g(x(ye), {
|
|
710
710
|
checked: Z.value.principalCanProcess,
|
|
711
711
|
"onUpdate:checked": t[17] ||= (e) => Z.value.principalCanProcess = e,
|
|
712
712
|
disabled: Y.value
|
|
713
713
|
}, {
|
|
714
|
-
default:
|
|
714
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.retain-my-processing-permission", "保留本人办理权限")), 1)]),
|
|
715
715
|
_: 1
|
|
716
716
|
}, 8, ["checked", "disabled"])
|
|
717
717
|
]),
|
|
@@ -722,30 +722,30 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
722
722
|
class: "policy-row"
|
|
723
723
|
}, [
|
|
724
724
|
m("strong", null, b(e.title) + " · " + b(e.enabled ? x(_).t("platform.screen.WorkflowWorkbenchView.enabled", "启用") : x(_).t("platform.screen.WorkflowWorkbenchView.disabled", "停用")), 1),
|
|
725
|
-
g(x(
|
|
725
|
+
g(x(ve), {
|
|
726
726
|
value: e.delegateUserId,
|
|
727
727
|
context: Ye.value,
|
|
728
|
-
"load-options":
|
|
728
|
+
"load-options": Ke.value,
|
|
729
729
|
mode: "list",
|
|
730
|
-
"title-of":
|
|
730
|
+
"title-of": ct,
|
|
731
731
|
disabled: ""
|
|
732
732
|
}, null, 8, [
|
|
733
733
|
"value",
|
|
734
734
|
"context",
|
|
735
735
|
"load-options"
|
|
736
736
|
]),
|
|
737
|
-
m("span", null, b(e.moduleScopeType === "all" ? x(_).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块") : e.moduleAliases?.map((e) =>
|
|
738
|
-
m("div", null, [g(x(
|
|
737
|
+
m("span", null, b(e.moduleScopeType === "all" ? x(_).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块") : e.moduleAliases?.map((e) => Qe.value[e] ?? e).join("、")), 1),
|
|
738
|
+
m("div", null, [g(x(s), {
|
|
739
739
|
disabled: Y.value,
|
|
740
740
|
onClick: (t) => Tt(e)
|
|
741
741
|
}, {
|
|
742
|
-
default:
|
|
742
|
+
default: S(() => [h(b(x(_).t("platform.screen.WorkflowWorkbenchView.edit-rule", "编辑规则")), 1)]),
|
|
743
743
|
_: 1
|
|
744
|
-
}, 8, ["disabled", "onClick"]), g(x(
|
|
744
|
+
}, 8, ["disabled", "onClick"]), g(x(s), {
|
|
745
745
|
disabled: Y.value,
|
|
746
746
|
onClick: (t) => Ot(e)
|
|
747
747
|
}, {
|
|
748
|
-
default:
|
|
748
|
+
default: S(() => [h(b(e.enabled ? x(_).t("platform.screen.WorkflowWorkbenchView.disable-rule", "停用规则") : x(_).t("platform.screen.WorkflowWorkbenchView.enable-rule", "启用规则")), 1)]),
|
|
749
749
|
_: 2
|
|
750
750
|
}, 1032, ["disabled", "onClick"])])
|
|
751
751
|
]))), 128))
|
|
@@ -756,4 +756,4 @@ var De = { class: "workflow-workbench" }, Oe = { class: "workflow-query-fields"
|
|
|
756
756
|
}
|
|
757
757
|
}), [["__scopeId", "data-v-1abc0f24"]]);
|
|
758
758
|
//#endregion
|
|
759
|
-
export {
|
|
759
|
+
export { C as default };
|