@ximatai/muyun-web-app 0.26.18 → 0.26.19
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-CNW817Sf.js → BusinessActivityLogView-DudCmeKP.js} +2 -2
- package/dist/BusinessLogListDrawer-CVUvUG48.js +864 -0
- package/dist/{CodeConfigurationView-DU8tjPMt.js → CodeConfigurationView-ZjVgaZkD.js} +450 -450
- package/dist/{ConfigurationTranslationView-CbBt5s1q.js → ConfigurationTranslationView-Dl757QMl.js} +38 -38
- package/dist/{LoginAuditLogView-CZF1Jfq_.js → LoginAuditLogView-Cj3PMvN5.js} +2 -2
- package/dist/ModuleActionManagementView-BuhQrVA3.js +755 -0
- package/dist/{ModuleGovernanceView-CcwGyO3x.js → ModuleGovernanceView-C3RxdgQN.js} +2243 -2243
- package/dist/{RequestErrorLogView-DpudZrC2.js → RequestErrorLogView-tmjMOeLE.js} +2 -2
- package/dist/{RoleDetailWorkspaceView-DNMGsAJC.js → RoleDetailWorkspaceView-OhpBChaT.js} +518 -518
- package/dist/{RuntimeLogView-444BL_xs.js → RuntimeLogView-BkkgHcF0.js} +64 -64
- package/dist/{WorkflowAdministrationView-C-VIjvwB.js → WorkflowAdministrationView-DOhA_5-M.js} +139 -139
- package/dist/WorkflowConfigurationView-Bnjdrkdx.js +980 -0
- package/dist/{WorkflowWorkbenchView-Gr02dbBc.js → WorkflowWorkbenchView-Cf6yiofx.js} +222 -222
- package/dist/{codeConfiguration-ChJ6ktRR.js → codeConfiguration-DERwCY-U.js} +44 -44
- package/dist/index.css +1 -1
- package/dist/index.js +421 -430
- package/dist/moduleMenuWorkspace-DPmYGkS_.js +626 -0
- package/dist/platform-components-wRXbnwMr.js +30434 -0
- package/dist/{platform-workbench-BhZPARiH.js → platform-workbench-Cm_0kmTT.js} +5169 -5149
- package/dist/types/app/executeBusinessNotificationRecordAction.d.ts +7 -0
- package/dist/types/dynamic-page-runtime/composables/useModulePageDetailExtensionRuntime.d.ts +1 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancementState.d.ts +5 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +4 -0
- package/dist/types/platform-admin-runtime/workflow/ModuleWorkflowDrawer.vue.d.ts +7 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +5 -3
- package/dist/types/platform-components/FormulaExpressionEditor.vue.d.ts +5 -0
- package/dist/types/platform-components/RecordAdaptiveDetailPanel.vue.d.ts +28 -0
- package/dist/types/platform-components/RecordQueryListSurface.vue.d.ts +4 -0
- package/dist/types/platform-components/WorkflowBusinessTaskEditor.vue.d.ts +2 -0
- package/dist/types/platform-components/WorkflowDesignProperties.vue.d.ts +2 -6
- package/dist/types/platform-components/WorkflowDiagram.vue.d.ts +32 -1
- package/dist/types/platform-components/formulaExpressionTokens.d.ts +2 -0
- package/dist/types/platform-components/formulaExpressionTools.d.ts +6 -0
- package/dist/types/platform-components/index.d.ts +3 -0
- package/dist/types/platform-components/useWorkflowDesignHistory.d.ts +14 -0
- package/dist/types/platform-components/useWorkspaceDetailSurface.d.ts +3 -0
- package/dist/types/platform-components/workflowDesignClipboard.d.ts +7 -0
- package/dist/types/platform-components/workflowPresentation.d.ts +4 -0
- package/dist/types/views/WorkflowConfigurationView.vue.d.ts +1 -0
- package/dist/types/views/WorkflowDefinitionSettings.vue.d.ts +35 -0
- package/dist/types/views/WorkflowSelectionFields.vue.d.ts +2 -4
- package/dist/types/views/useWorkflowConfigurationContext.d.ts +49 -0
- package/dist/types/views/workflowConfigurationWorkspaceView.d.ts +2 -0
- package/dist/types/vue-ui-antdv/components/UiIcon.vue.d.ts +1 -1
- package/dist/types/vue-ui-antdv/components/UiRadioGroup.vue.d.ts +4 -0
- package/dist/types/vue-ui-antdv/components/UiSidePanel.vue.d.ts +5 -0
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/vue-ui-antdv/overlayLayers.d.ts +5 -0
- package/dist/types/vue-ui-antdv/types.d.ts +2 -0
- package/dist/types/web-contracts/index.d.ts +4 -0
- package/dist/types/web-contracts/workflow.d.ts +16 -8
- package/dist/types/web-core/businessNotifications.d.ts +3 -1
- package/dist/types/web-core/workflow.d.ts +13 -1
- package/dist/useWorkflowConfigurationContext-BE_UjKgk.js +66 -0
- package/dist/{workspaceViews-DeBqozVb.js → workspaceViews-D37OpJ7g.js} +1516 -936
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-YiJxOlnD.js +0 -864
- package/dist/ModuleActionManagementView-CaiXH1l_.js +0 -755
- package/dist/WorkflowConfigurationView-DLFY2x7V.js +0 -1110
- package/dist/moduleMenuWorkspace-B8DKwC3L.js +0 -626
- package/dist/platform-components-5AE0j2_3.js +0 -29879
package/dist/{WorkflowAdministrationView-C-VIjvwB.js → WorkflowAdministrationView-DOhA_5-M.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as e, y as t } from "./platform-workbench-
|
|
2
|
-
import { $n as n,
|
|
1
|
+
import { D as e, y as t } from "./platform-workbench-Cm_0kmTT.js";
|
|
2
|
+
import { $n as n, Cn as r, Cr as i, Ft as a, Ha as ee, Ir as te, Ka as o, Sn as s, Tn as c, Tr as ne, Xn as re, ar as ie, d as ae, en as l, f as oe, lt as se, m as ce, nt as le, p as u, qn as ue, rr as d, un as f, wa as p, wr as de, zr as fe, zt as m } from "./platform-components-wRXbnwMr.js";
|
|
3
3
|
import { Fragment as pe, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, openBlock as C, ref as w, renderList as me, toDisplayString as T, unref as E, watch as he, withCtx as D } from "vue";
|
|
4
4
|
//#region src/views/WorkflowAdministrationView.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-query-fields" }, ye = {
|
|
@@ -11,27 +11,27 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
11
11
|
}, Se = { class: "workflow-field" }, Ce = { class: "workflow-query-controls" }, we = { key: 2 }, Te = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "workflow-empty-tasks"
|
|
14
|
-
}, Ee = { class: "workflow-map" }, De = { key: 0 }, Oe = { class: "workflow-field" }, O = /*#__PURE__*/
|
|
14
|
+
}, Ee = { class: "workflow-map" }, De = { key: 0 }, Oe = { class: "workflow-field" }, O = /*#__PURE__*/ ie(/* @__PURE__ */ S({
|
|
15
15
|
name: "WorkflowAdministrationView",
|
|
16
16
|
__name: "WorkflowAdministrationView",
|
|
17
|
-
setup(
|
|
18
|
-
let S =
|
|
17
|
+
setup(ie) {
|
|
18
|
+
let S = ee();
|
|
19
19
|
function O(e) {
|
|
20
|
-
return
|
|
20
|
+
return ce(e, S);
|
|
21
21
|
}
|
|
22
|
-
let k =
|
|
22
|
+
let k = fe({ moduleAlias: "platform.workflow_admin" }), A = t(), j = w(), M = w(""), N = w(""), P = w("running"), F = w(1), I = w(!1), L = w(!1), R = w(""), z = w(""), B = w({}), V = h(() => Object.fromEntries(Object.entries(B.value).map(([e, t]) => [e, p(t.title, t.titleText, S)]))), ke = h(() => j.value ? o(k.http, { "X-MuYun-Tenant-Id": j.value }) : k.http), Ae = te({
|
|
23
23
|
http: k.http,
|
|
24
24
|
language: S,
|
|
25
25
|
moduleAlias: "iam.tenant",
|
|
26
26
|
runtimeAccess: "REFERENCE"
|
|
27
|
-
}),
|
|
27
|
+
}), H = w([]), U = w([]), W = w(), G = w([]), K = w([]), q = w(), J = w(""), Y = w(), X = h(() => de(ke.value)), Z = 0, je = 0;
|
|
28
28
|
e(async (e) => {
|
|
29
|
-
let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n =
|
|
29
|
+
let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n = W.value, r = !L.value && H.value.some((e) => t.has(e.moduleAlias)), i = n && t.has(n.instance.moduleAlias), a = Object.keys(B.value).some((e) => t.has(e));
|
|
30
30
|
if (!r && !i && !a) return;
|
|
31
|
-
let ee = ++
|
|
31
|
+
let ee = ++je, te = Z, o = L.value, s = q.value, c = A?.value?.userId;
|
|
32
32
|
try {
|
|
33
|
-
let [e, t,
|
|
34
|
-
r ?
|
|
33
|
+
let [e, t, re, ie] = await Promise.all([
|
|
34
|
+
r ? X.value.instances({
|
|
35
35
|
moduleAlias: M.value || void 0,
|
|
36
36
|
recordId: N.value || void 0,
|
|
37
37
|
instanceStatus: P.value,
|
|
@@ -40,62 +40,62 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
40
40
|
pageSize: 30
|
|
41
41
|
}
|
|
42
42
|
}) : void 0,
|
|
43
|
-
i &&
|
|
44
|
-
i &&
|
|
45
|
-
a ?
|
|
43
|
+
i && s ? X.value.bundle(s, o) : void 0,
|
|
44
|
+
i && s ? X.value.events(s, o) : void 0,
|
|
45
|
+
a ? ne(ke.value).workbenchModules() : void 0
|
|
46
46
|
]);
|
|
47
|
-
if (ee !==
|
|
48
|
-
let n =
|
|
49
|
-
return [e,
|
|
47
|
+
if (ee !== je || te !== Z || s !== q.value || o !== L.value || c !== A?.value?.userId || (ie && (B.value = Object.fromEntries(Object.entries(B.value).map(([e, t]) => {
|
|
48
|
+
let n = ie.modules[e]?.titleText;
|
|
49
|
+
return [e, u(t.titleText, n) ? {
|
|
50
50
|
...t,
|
|
51
51
|
titleText: n
|
|
52
52
|
} : t];
|
|
53
|
-
}))), e && (
|
|
53
|
+
}))), e && (H.value = H.value.map((t) => {
|
|
54
54
|
let n = e.find((e) => e.instanceId === t.instanceId && e.workflowVersionId === t.workflowVersionId);
|
|
55
55
|
return {
|
|
56
56
|
...t,
|
|
57
57
|
activeNodeLabels: t.activeNodeLabels?.map((e) => {
|
|
58
58
|
let t = n?.activeNodeLabels?.find((t) => t.nodeKey === e.nodeKey);
|
|
59
|
-
return
|
|
59
|
+
return u(e.titleText, t?.titleText) ? {
|
|
60
60
|
...e,
|
|
61
61
|
titleText: t?.titleText
|
|
62
62
|
} : e;
|
|
63
63
|
})
|
|
64
64
|
};
|
|
65
|
-
})), !n || !t ||
|
|
66
|
-
|
|
65
|
+
})), !n || !t || W.value?.instance.id !== n.instance.id)) return;
|
|
66
|
+
W.value = oe(W.value, t), G.value = G.value.map((e) => {
|
|
67
67
|
let n = t.nodes.find((t) => t.id === e.nodeInstanceId && t.nodeKey === e.nodeKey);
|
|
68
|
-
return
|
|
68
|
+
return u(e.nodeTitleText, n?.nodeTitleText) ? {
|
|
69
69
|
...e,
|
|
70
70
|
nodeTitleText: n?.nodeTitleText
|
|
71
71
|
} : e;
|
|
72
|
-
}),
|
|
73
|
-
let t =
|
|
74
|
-
return
|
|
72
|
+
}), K.value = K.value.map((e) => {
|
|
73
|
+
let t = re?.find((t) => t.id === e.id);
|
|
74
|
+
return u(e.messageText, t?.messageText) ? {
|
|
75
75
|
...e,
|
|
76
76
|
messageText: t?.messageText
|
|
77
77
|
} : e;
|
|
78
78
|
});
|
|
79
79
|
} catch (e) {
|
|
80
|
-
|
|
80
|
+
f(e, {
|
|
81
81
|
source: "workflow-text-resources",
|
|
82
82
|
phase: "load"
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
|
-
async function je() {
|
|
87
|
-
I.value || X.value && !await $() || await Me();
|
|
88
|
-
}
|
|
89
86
|
async function Me() {
|
|
90
|
-
|
|
91
|
-
|
|
87
|
+
I.value || Y.value && !await $() || await Q();
|
|
88
|
+
}
|
|
89
|
+
async function Q() {
|
|
90
|
+
let e = ++Z;
|
|
91
|
+
I.value = !0, R.value = "", q.value = void 0, W.value = void 0, G.value = [], K.value = [], Y.value = void 0;
|
|
92
92
|
try {
|
|
93
93
|
if (L.value) {
|
|
94
94
|
if (!M.value.trim()) {
|
|
95
|
-
|
|
95
|
+
U.value = [];
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
98
|
-
let t = await
|
|
98
|
+
let t = await X.value.history({
|
|
99
99
|
moduleAlias: M.value,
|
|
100
100
|
recordId: N.value || void 0,
|
|
101
101
|
page: {
|
|
@@ -103,9 +103,9 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
103
103
|
pageSize: 30
|
|
104
104
|
}
|
|
105
105
|
});
|
|
106
|
-
e ===
|
|
106
|
+
e === Z && (U.value = t);
|
|
107
107
|
} else {
|
|
108
|
-
let t = await
|
|
108
|
+
let t = await X.value.instances({
|
|
109
109
|
moduleAlias: M.value || void 0,
|
|
110
110
|
recordId: N.value || void 0,
|
|
111
111
|
instanceStatus: P.value,
|
|
@@ -114,55 +114,55 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
114
114
|
pageSize: 30
|
|
115
115
|
}
|
|
116
116
|
});
|
|
117
|
-
e ===
|
|
117
|
+
e === Z && (H.value = t);
|
|
118
118
|
}
|
|
119
119
|
} catch (t) {
|
|
120
|
-
if (e !==
|
|
121
|
-
R.value = S.t("platform.screen.WorkflowAdministrationView.load-failed", "流程加载失败,请重试。"),
|
|
120
|
+
if (e !== Z) return;
|
|
121
|
+
R.value = S.t("platform.screen.WorkflowAdministrationView.load-failed", "流程加载失败,请重试。"), H.value = [], U.value = [], f(t, {
|
|
122
122
|
source: "workflow-admin",
|
|
123
123
|
phase: "load"
|
|
124
124
|
});
|
|
125
125
|
} finally {
|
|
126
|
-
e ===
|
|
126
|
+
e === Z && (I.value = !1);
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
async function Ne(e) {
|
|
130
|
-
if (I.value ||
|
|
131
|
-
let t = ++
|
|
132
|
-
I.value = !0,
|
|
130
|
+
if (I.value || Y.value && !await $()) return;
|
|
131
|
+
let t = ++Z;
|
|
132
|
+
I.value = !0, q.value = e, Y.value = void 0, W.value = void 0, G.value = [], K.value = [], z.value = "";
|
|
133
133
|
try {
|
|
134
|
-
let [n, r] = await Promise.all([
|
|
135
|
-
if (t !==
|
|
136
|
-
|
|
134
|
+
let [n, r] = await Promise.all([X.value.bundle(e, L.value), X.value.events(e, L.value)]), i = L.value || n.instance?.instanceStatus !== "running" ? [] : await X.value.activeTasks(e);
|
|
135
|
+
if (t !== Z) return;
|
|
136
|
+
W.value = n, K.value = r, G.value = i;
|
|
137
137
|
} catch (e) {
|
|
138
|
-
if (t !==
|
|
139
|
-
z.value = S.t("platform.screen.WorkflowAdministrationView.detail-load-failed", "流程详情加载失败,请重试。"),
|
|
138
|
+
if (t !== Z) return;
|
|
139
|
+
z.value = S.t("platform.screen.WorkflowAdministrationView.detail-load-failed", "流程详情加载失败,请重试。"), f(e, {
|
|
140
140
|
source: "workflow-admin",
|
|
141
141
|
phase: "load"
|
|
142
142
|
});
|
|
143
143
|
} finally {
|
|
144
|
-
t ===
|
|
144
|
+
t === Z && (I.value = !1);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
async function Pe(e = !1) {
|
|
148
|
-
I.value ||
|
|
148
|
+
I.value || Y.value && !await $() || (Y.value = void 0, e && (M.value = "", N.value = "", P.value = "running"), F.value === 1 ? await Q() : F.value = 1);
|
|
149
149
|
}
|
|
150
150
|
async function Fe() {
|
|
151
|
-
if (!I.value &&
|
|
151
|
+
if (!I.value && Y.value && q.value && J.value.trim()) {
|
|
152
152
|
I.value = !0;
|
|
153
153
|
try {
|
|
154
|
-
if (!await
|
|
155
|
-
title: S.t("platform.screen.WorkflowAdministrationView.confirm-action-title", "确认{operation}?", { operation: Ve(
|
|
154
|
+
if (!await r({
|
|
155
|
+
title: S.t("platform.screen.WorkflowAdministrationView.confirm-action-title", "确认{operation}?", { operation: Ve(Y.value.code) }),
|
|
156
156
|
content: S.t("platform.screen.WorkflowAdministrationView.confirm-action-content", "{impact} 原因:{reason}", {
|
|
157
|
-
impact: He(
|
|
158
|
-
reason:
|
|
157
|
+
impact: He(Y.value.code),
|
|
158
|
+
reason: J.value.trim()
|
|
159
159
|
}),
|
|
160
160
|
danger: !0,
|
|
161
161
|
okText: S.t("platform.screen.WorkflowAdministrationView.confirm-execute", "确认执行")
|
|
162
162
|
}, S)) return;
|
|
163
|
-
await
|
|
163
|
+
await X.value.execute(q.value, Y.value.code, J.value, Y.value.taskId), s(S.t("platform.screen.WorkflowAdministrationView.operation-completed", "运维操作已完成并记录审计")), await Q();
|
|
164
164
|
} catch (e) {
|
|
165
|
-
|
|
165
|
+
f(e, {
|
|
166
166
|
source: "workflow-admin",
|
|
167
167
|
phase: "action"
|
|
168
168
|
});
|
|
@@ -177,10 +177,10 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
177
177
|
r = !1;
|
|
178
178
|
}), B.value = {}, M.value = "", N.value = "", F.value = 1;
|
|
179
179
|
try {
|
|
180
|
-
let e = await
|
|
180
|
+
let e = await ne(ke.value).workbenchModules();
|
|
181
181
|
r && (B.value = e.modules ?? {});
|
|
182
182
|
} catch (e) {
|
|
183
|
-
r &&
|
|
183
|
+
r && f(e, {
|
|
184
184
|
source: "workflow-module-titles",
|
|
185
185
|
phase: "load"
|
|
186
186
|
});
|
|
@@ -189,8 +189,8 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
189
189
|
j,
|
|
190
190
|
L,
|
|
191
191
|
F
|
|
192
|
-
], () => void
|
|
193
|
-
let Ie = h(() => L.value ?
|
|
192
|
+
], () => void Me(), { immediate: !0 });
|
|
193
|
+
let Ie = h(() => L.value ? U.value.map((e) => ({
|
|
194
194
|
...e,
|
|
195
195
|
id: e.id,
|
|
196
196
|
moduleTitle: V.value[e.moduleAlias] ?? e.moduleAlias,
|
|
@@ -199,13 +199,13 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
199
199
|
assignees: "—",
|
|
200
200
|
starter: e.startedByTitle ?? "—",
|
|
201
201
|
started: Be(e.startedAt)
|
|
202
|
-
})) :
|
|
202
|
+
})) : H.value.map((e) => ({
|
|
203
203
|
...e,
|
|
204
204
|
id: e.instanceId,
|
|
205
205
|
moduleTitle: V.value[e.moduleAlias] ?? e.moduleAlias,
|
|
206
206
|
status: O(e.instanceStatus),
|
|
207
207
|
approval: O(e.approvalStatus),
|
|
208
|
-
active: e.activeNodeLabels?.length ? e.activeNodeLabels.map((e) =>
|
|
208
|
+
active: e.activeNodeLabels?.length ? e.activeNodeLabels.map((e) => p(e.title, e.titleText, S)).join("、") : e.activeNodeTitles.join("、"),
|
|
209
209
|
assignees: e.currentAssigneeTitles.join("、"),
|
|
210
210
|
starter: e.startedByTitle,
|
|
211
211
|
urgency: O(e.overtimeStatus)
|
|
@@ -260,7 +260,7 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
260
260
|
key: "assigneeTitle",
|
|
261
261
|
title: S.t("platform.screen.WorkflowAdministrationView.processors", "办理人"),
|
|
262
262
|
dataIndex: "assigneeTitle"
|
|
263
|
-
}]), ze = h(() => [...
|
|
263
|
+
}]), ze = h(() => [...W.value?.instance?.instanceStatus === "running" ? [{
|
|
264
264
|
key: "forceTerminate",
|
|
265
265
|
title: S.t("platform.screen.WorkflowAdministrationView.terminate", "终止流程"),
|
|
266
266
|
danger: !0
|
|
@@ -279,23 +279,23 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
279
279
|
return e === "forceApprove" ? S.t("platform.screen.WorkflowAdministrationView.force-impact", "将替代原办理人推进当前任务,可能触发后续业务动作。") : e === "reset" ? S.t("platform.screen.WorkflowAdministrationView.reset-impact", "将归档当前流程并清除业务审批状态,允许重新发起。") : S.t("platform.screen.WorkflowAdministrationView.terminate-impact", "将终止当前流程并取消未完成任务。");
|
|
280
280
|
}
|
|
281
281
|
function Ue(e, t) {
|
|
282
|
-
|
|
282
|
+
Y.value = {
|
|
283
283
|
code: e,
|
|
284
284
|
taskId: t
|
|
285
|
-
},
|
|
285
|
+
}, J.value = "";
|
|
286
286
|
}
|
|
287
|
-
|
|
287
|
+
i(() => S.t("platform.screen.WorkflowAdministrationView.workflow-administration", "工作流运维"), () => !!(Y.value && J.value.trim()), () => I.value);
|
|
288
288
|
async function $() {
|
|
289
289
|
if (I.value) return !1;
|
|
290
|
-
let e =
|
|
291
|
-
return (!
|
|
290
|
+
let e = Y.value, t = Z;
|
|
291
|
+
return (!J.value.trim() || await r({
|
|
292
292
|
title: S.t("platform.screen.WorkflowAdministrationView.discard-operation", "放弃未执行的运维操作?"),
|
|
293
293
|
danger: !0,
|
|
294
294
|
okText: S.t("platform.screen.WorkflowAdministrationView.discard", "放弃填写")
|
|
295
|
-
}, S)) && !I.value && t ===
|
|
295
|
+
}, S)) && !I.value && t === Z && e === Y.value;
|
|
296
296
|
}
|
|
297
297
|
async function We() {
|
|
298
|
-
return !
|
|
298
|
+
return !Y.value && !I.value;
|
|
299
299
|
}
|
|
300
300
|
function Ge(e) {
|
|
301
301
|
return e.title ?? e.id ?? "";
|
|
@@ -311,7 +311,7 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
311
311
|
}],
|
|
312
312
|
"active-key": L.value ? "history" : "current",
|
|
313
313
|
label: E(S).t("platform.screen.WorkflowAdministrationView.workflow-administration-scope", "工作流运维范围"),
|
|
314
|
-
disabled: I.value || !!
|
|
314
|
+
disabled: I.value || !!Y.value,
|
|
315
315
|
"onUpdate:activeKey": t[0] ||= (e) => {
|
|
316
316
|
L.value = e === "history", F.value = 1;
|
|
317
317
|
}
|
|
@@ -321,19 +321,19 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
321
321
|
"label",
|
|
322
322
|
"disabled"
|
|
323
323
|
]),
|
|
324
|
-
R.value ? (C(), g(E(
|
|
324
|
+
R.value ? (C(), g(E(c), {
|
|
325
325
|
key: 0,
|
|
326
326
|
title: E(S).t("platform.screen.WorkflowAdministrationView.unable-to-load-workflows", "无法加载流程"),
|
|
327
327
|
message: R.value
|
|
328
328
|
}, null, 8, ["title", "message"])) : _("v-if", !0),
|
|
329
329
|
L.value && !M.value ? (C(), v("p", _e, T(E(S).t("platform.screen.WorkflowAdministrationView.select-a-business-module-to-view-archived", "选择业务模块后查看归档流程。")), 1)) : _("v-if", !0),
|
|
330
|
-
x(E(
|
|
330
|
+
x(E(m), {
|
|
331
331
|
title: E(S).t("platform.screen.WorkflowAdministrationView.workflow-administration", "工作流运维"),
|
|
332
332
|
subtitle: E(S).t("platform.screen.WorkflowAdministrationView.a-reason-is-required-for-exception-handling-all-operations-are", "异常处理需要明确原因,所有操作记录审计"),
|
|
333
333
|
columns: Le.value,
|
|
334
334
|
rows: Ie.value,
|
|
335
335
|
"clickable-rows": "",
|
|
336
|
-
"selected-row-key":
|
|
336
|
+
"selected-row-key": q.value,
|
|
337
337
|
pageable: !0,
|
|
338
338
|
"total-known": !1,
|
|
339
339
|
total: (F.value - 1) * 30 + Ie.value.length,
|
|
@@ -341,26 +341,26 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
341
341
|
"page-num": F.value,
|
|
342
342
|
"page-size": 30,
|
|
343
343
|
"page-size-options": [30],
|
|
344
|
-
"pagination-disabled": I.value || !!
|
|
344
|
+
"pagination-disabled": I.value || !!Y.value,
|
|
345
345
|
onRowClick: t[7] ||= (e) => Ne(String(e.id)),
|
|
346
346
|
onPageChange: t[8] ||= (e) => F.value = e
|
|
347
347
|
}, {
|
|
348
|
-
operations: D(() => [x(E(
|
|
348
|
+
operations: D(() => [x(E(d), {
|
|
349
349
|
loading: I.value,
|
|
350
|
-
onClick:
|
|
350
|
+
onClick: Me
|
|
351
351
|
}, {
|
|
352
352
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.refresh", "刷新")), 1)]),
|
|
353
353
|
_: 1
|
|
354
354
|
}, 8, ["loading"])]),
|
|
355
355
|
conditions: D(() => [y("div", ve, [
|
|
356
|
-
E(A)?.system ? (C(), v("label", ye, [x(E(
|
|
356
|
+
E(A)?.system ? (C(), v("label", ye, [x(E(l), null, {
|
|
357
357
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.business-tenant", "业务租户")), 1)]),
|
|
358
358
|
_: 1
|
|
359
|
-
}), x(E(
|
|
359
|
+
}), x(E(le), {
|
|
360
360
|
value: j.value,
|
|
361
361
|
"onUpdate:value": t[1] ||= (e) => j.value = e,
|
|
362
|
-
context: E(
|
|
363
|
-
disabled: I.value || !!
|
|
362
|
+
context: E(Ae),
|
|
363
|
+
disabled: I.value || !!Y.value,
|
|
364
364
|
"title-of": Ge,
|
|
365
365
|
mode: "list"
|
|
366
366
|
}, null, 8, [
|
|
@@ -368,13 +368,13 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
368
368
|
"context",
|
|
369
369
|
"disabled"
|
|
370
370
|
])])) : _("v-if", !0),
|
|
371
|
-
y("label", be, [x(E(
|
|
371
|
+
y("label", be, [x(E(l), { required: L.value }, {
|
|
372
372
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.business-module", "业务模块")), 1)]),
|
|
373
373
|
_: 1
|
|
374
|
-
}, 8, ["required"]), x(E(
|
|
374
|
+
}, 8, ["required"]), x(E(n), {
|
|
375
375
|
value: M.value,
|
|
376
376
|
"onUpdate:value": t[2] ||= (e) => M.value = e,
|
|
377
|
-
disabled: I.value || !!
|
|
377
|
+
disabled: I.value || !!Y.value,
|
|
378
378
|
"show-search": "",
|
|
379
379
|
options: Object.entries(V.value).map(([e, t]) => ({
|
|
380
380
|
value: e,
|
|
@@ -387,13 +387,13 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
387
387
|
"options",
|
|
388
388
|
"placeholder"
|
|
389
389
|
])]),
|
|
390
|
-
L.value ? _("v-if", !0) : (C(), v("label", xe, [x(E(
|
|
390
|
+
L.value ? _("v-if", !0) : (C(), v("label", xe, [x(E(l), null, {
|
|
391
391
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.workflow-status", "流程状态")), 1)]),
|
|
392
392
|
_: 1
|
|
393
|
-
}), x(E(
|
|
393
|
+
}), x(E(n), {
|
|
394
394
|
value: P.value,
|
|
395
395
|
"onUpdate:value": t[3] ||= (e) => P.value = e,
|
|
396
|
-
disabled: I.value || !!
|
|
396
|
+
disabled: I.value || !!Y.value,
|
|
397
397
|
options: [
|
|
398
398
|
{
|
|
399
399
|
value: "running",
|
|
@@ -421,23 +421,23 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
421
421
|
"disabled",
|
|
422
422
|
"options"
|
|
423
423
|
])])),
|
|
424
|
-
y("label", Se, [b(T(E(S).t("platform.screen.WorkflowAdministrationView.business-record-identifier", "业务记录标识")), 1), x(E(
|
|
424
|
+
y("label", Se, [b(T(E(S).t("platform.screen.WorkflowAdministrationView.business-record-identifier", "业务记录标识")), 1), x(E(re), {
|
|
425
425
|
value: N.value,
|
|
426
426
|
"onUpdate:value": t[4] ||= (e) => N.value = e,
|
|
427
|
-
disabled: I.value || !!
|
|
427
|
+
disabled: I.value || !!Y.value,
|
|
428
428
|
placeholder: E(S).t("platform.screen.WorkflowAdministrationView.locate-a-specific-business-issue", "精确定位异常业务")
|
|
429
429
|
}, null, 8, [
|
|
430
430
|
"value",
|
|
431
431
|
"disabled",
|
|
432
432
|
"placeholder"
|
|
433
433
|
])]),
|
|
434
|
-
y("div", Ce, [x(E(
|
|
434
|
+
y("div", Ce, [x(E(d), {
|
|
435
435
|
disabled: I.value || L.value && !M.value,
|
|
436
436
|
onClick: t[5] ||= (e) => Pe()
|
|
437
437
|
}, {
|
|
438
438
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.search", "查询")), 1)]),
|
|
439
439
|
_: 1
|
|
440
|
-
}, 8, ["disabled"]), x(E(
|
|
440
|
+
}, 8, ["disabled"]), x(E(d), {
|
|
441
441
|
disabled: I.value,
|
|
442
442
|
onClick: t[6] ||= (e) => Pe(!0)
|
|
443
443
|
}, {
|
|
@@ -457,22 +457,22 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
457
457
|
"page-num",
|
|
458
458
|
"pagination-disabled"
|
|
459
459
|
]),
|
|
460
|
-
x(E(
|
|
461
|
-
open: !!
|
|
460
|
+
x(E(a), {
|
|
461
|
+
open: !!q.value,
|
|
462
462
|
title: E(S).t("platform.screen.WorkflowAdministrationView.workflow-administration-details", "流程运维详情"),
|
|
463
|
-
subtitle:
|
|
464
|
-
module: V.value[
|
|
465
|
-
status: O(
|
|
466
|
-
version:
|
|
463
|
+
subtitle: W.value ? E(S).t("platform.screen.WorkflowAdministrationView.instance-title", "{module} · {status} · 版本 {version}", {
|
|
464
|
+
module: V.value[W.value.instance.moduleAlias] ?? W.value.instance.moduleAlias,
|
|
465
|
+
status: O(W.value.instance.instanceStatus),
|
|
466
|
+
version: W.value.instance.versionNo
|
|
467
467
|
}) : void 0,
|
|
468
468
|
width: "extraWide",
|
|
469
469
|
"before-close": We,
|
|
470
|
-
onClose: t[11] ||= (e) =>
|
|
470
|
+
onClose: t[11] ||= (e) => q.value = void 0
|
|
471
471
|
}, {
|
|
472
|
-
operation: D(() => [
|
|
472
|
+
operation: D(() => [W.value && !L.value ? (C(!0), v(pe, { key: 0 }, me(ze.value, (e) => (C(), g(E(d), {
|
|
473
473
|
key: e.key,
|
|
474
474
|
danger: e.danger,
|
|
475
|
-
disabled: I.value || !!
|
|
475
|
+
disabled: I.value || !!Y.value,
|
|
476
476
|
onClick: (t) => Ue(e.key)
|
|
477
477
|
}, {
|
|
478
478
|
default: D(() => [b(T(e.title), 1)]),
|
|
@@ -481,46 +481,46 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
481
481
|
"danger",
|
|
482
482
|
"disabled",
|
|
483
483
|
"onClick"
|
|
484
|
-
]))), 128)) : _("v-if", !0), x(E(
|
|
485
|
-
disabled: I.value || !!
|
|
486
|
-
onClick: t[10] ||= (e) =>
|
|
484
|
+
]))), 128)) : _("v-if", !0), x(E(d), {
|
|
485
|
+
disabled: I.value || !!Y.value,
|
|
486
|
+
onClick: t[10] ||= (e) => q.value = void 0
|
|
487
487
|
}, {
|
|
488
488
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.close-details", "关闭详情")), 1)]),
|
|
489
489
|
_: 1
|
|
490
490
|
}, 8, ["disabled"])]),
|
|
491
491
|
default: D(() => [
|
|
492
|
-
z.value ? (C(), g(E(
|
|
492
|
+
z.value ? (C(), g(E(c), {
|
|
493
493
|
key: 0,
|
|
494
494
|
title: E(S).t("platform.screen.WorkflowAdministrationView.unable-to-load-details", "无法加载详情"),
|
|
495
495
|
message: z.value
|
|
496
496
|
}, null, 8, ["title", "message"])) : _("v-if", !0),
|
|
497
|
-
z.value ? (C(), g(E(
|
|
497
|
+
z.value ? (C(), g(E(d), {
|
|
498
498
|
key: 1,
|
|
499
|
-
onClick: t[9] ||= (e) => Ne(
|
|
499
|
+
onClick: t[9] ||= (e) => Ne(q.value)
|
|
500
500
|
}, {
|
|
501
501
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.retry", "重试")), 1)]),
|
|
502
502
|
_: 1
|
|
503
503
|
})) : _("v-if", !0),
|
|
504
504
|
I.value ? (C(), v("p", we, T(E(S).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : _("v-if", !0),
|
|
505
|
-
|
|
506
|
-
!L.value &&
|
|
505
|
+
W.value ? (C(), v(pe, { key: 3 }, [
|
|
506
|
+
!L.value && G.value.length ? (C(), g(E(m), {
|
|
507
507
|
key: 0,
|
|
508
508
|
embedded: "",
|
|
509
509
|
title: E(S).t("platform.screen.WorkflowAdministrationView.current-pending-tasks", "当前待办"),
|
|
510
510
|
columns: Re.value,
|
|
511
|
-
rows:
|
|
511
|
+
rows: G.value.map((e) => ({
|
|
512
512
|
...e,
|
|
513
513
|
id: e.taskId,
|
|
514
|
-
nodeTitle: E(
|
|
514
|
+
nodeTitle: E(p)(e.nodeTitle, e.nodeTitleText, E(S))
|
|
515
515
|
})),
|
|
516
516
|
pageable: !1,
|
|
517
517
|
"fill-height": !1,
|
|
518
518
|
"show-action-column": !0
|
|
519
519
|
}, {
|
|
520
|
-
rowActions: D(({ record: e }) => [e.canForceApprove ? (C(), g(E(
|
|
520
|
+
rowActions: D(({ record: e }) => [e.canForceApprove ? (C(), g(E(d), {
|
|
521
521
|
key: 0,
|
|
522
522
|
danger: "",
|
|
523
|
-
disabled: I.value || !!
|
|
523
|
+
disabled: I.value || !!Y.value,
|
|
524
524
|
onClick: (t) => Ue("forceApprove", String(e.taskId))
|
|
525
525
|
}, {
|
|
526
526
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.force-processing", "强制办理")), 1)]),
|
|
@@ -532,20 +532,20 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
532
532
|
"columns",
|
|
533
533
|
"rows"
|
|
534
534
|
])) : _("v-if", !0),
|
|
535
|
-
!L.value && !
|
|
536
|
-
y("details", Ee, [y("summary", null, T(E(S).t("platform.screen.WorkflowAdministrationView.view-workflow-diagram", "查看流程图")), 1), x(E(
|
|
535
|
+
!L.value && !G.value.length ? (C(), v("p", Te, T(E(S).t("platform.screen.WorkflowAdministrationView.there-are-no-pending-tasks", "当前没有待办任务")), 1)) : _("v-if", !0),
|
|
536
|
+
y("details", Ee, [y("summary", null, T(E(S).t("platform.screen.WorkflowAdministrationView.view-workflow-diagram", "查看流程图")), 1), x(E(ae), {
|
|
537
537
|
presentation: "detail",
|
|
538
|
-
nodes:
|
|
539
|
-
routes:
|
|
540
|
-
"layout-json":
|
|
541
|
-
"semantic-json":
|
|
538
|
+
nodes: W.value.nodes,
|
|
539
|
+
routes: W.value.routes,
|
|
540
|
+
"layout-json": W.value.layoutJson,
|
|
541
|
+
"semantic-json": W.value.semanticJson
|
|
542
542
|
}, null, 8, [
|
|
543
543
|
"nodes",
|
|
544
544
|
"routes",
|
|
545
545
|
"layout-json",
|
|
546
546
|
"semantic-json"
|
|
547
547
|
])]),
|
|
548
|
-
x(E(
|
|
548
|
+
x(E(m), {
|
|
549
549
|
embedded: "",
|
|
550
550
|
title: E(S).t("platform.screen.WorkflowAdministrationView.administration-audit", "运维审计"),
|
|
551
551
|
columns: [
|
|
@@ -573,10 +573,10 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
573
573
|
dataIndex: "message"
|
|
574
574
|
}
|
|
575
575
|
],
|
|
576
|
-
rows:
|
|
576
|
+
rows: K.value.map((e) => ({
|
|
577
577
|
...e,
|
|
578
578
|
action: O(e.actionCode ?? e.eventType),
|
|
579
|
-
message: E(
|
|
579
|
+
message: E(p)(e.message ?? "", e.messageText, E(S)),
|
|
580
580
|
occurred: Be(e.occurredAt)
|
|
581
581
|
})),
|
|
582
582
|
"fill-height": !1,
|
|
@@ -594,26 +594,26 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
594
594
|
"title",
|
|
595
595
|
"subtitle"
|
|
596
596
|
]),
|
|
597
|
-
x(E(
|
|
598
|
-
open: !!
|
|
599
|
-
title: Ve(
|
|
597
|
+
x(E(a), {
|
|
598
|
+
open: !!Y.value,
|
|
599
|
+
title: Ve(Y.value?.code ?? ""),
|
|
600
600
|
"before-close": $,
|
|
601
|
-
onClose: t[14] ||= (e) =>
|
|
601
|
+
onClose: t[14] ||= (e) => Y.value = void 0
|
|
602
602
|
}, {
|
|
603
|
-
operation: D(() => [x(E(
|
|
603
|
+
operation: D(() => [x(E(d), {
|
|
604
604
|
type: "primary",
|
|
605
605
|
danger: "",
|
|
606
606
|
loading: I.value,
|
|
607
|
-
disabled: !
|
|
607
|
+
disabled: !J.value.trim(),
|
|
608
608
|
onClick: Fe
|
|
609
609
|
}, {
|
|
610
610
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.confirm-operation", "确认操作")), 1)]),
|
|
611
611
|
_: 1
|
|
612
|
-
}, 8, ["loading", "disabled"]), x(E(
|
|
612
|
+
}, 8, ["loading", "disabled"]), x(E(d), {
|
|
613
613
|
disabled: I.value,
|
|
614
614
|
onClick: t[13] ||= (e) => {
|
|
615
615
|
$().then((e) => {
|
|
616
|
-
e && (
|
|
616
|
+
e && (Y.value = void 0);
|
|
617
617
|
});
|
|
618
618
|
}
|
|
619
619
|
}, {
|
|
@@ -621,18 +621,18 @@ var ge = { class: "workflow-admin" }, _e = { key: 1 }, ve = { class: "workflow-q
|
|
|
621
621
|
_: 1
|
|
622
622
|
}, 8, ["disabled"])]),
|
|
623
623
|
default: D(() => [
|
|
624
|
-
|
|
625
|
-
module: V.value[
|
|
626
|
-
record:
|
|
624
|
+
W.value ? (C(), v("p", De, T(E(S).t("platform.screen.WorkflowAdministrationView.operation-record", "业务:{module} · 记录 {record}", {
|
|
625
|
+
module: V.value[W.value.instance.moduleAlias] ?? W.value.instance.moduleAlias,
|
|
626
|
+
record: W.value.instance.recordId
|
|
627
627
|
})), 1)) : _("v-if", !0),
|
|
628
|
-
y("p", null, T(He(
|
|
629
|
-
y("p", null, T(E(S).t("platform.screen.WorkflowAdministrationView.operation-version-warning", "当前流程版本:{version}。操作成功后不可直接撤销,并记录操作人、时间和原因。", { version:
|
|
630
|
-
y("label", Oe, [x(E(
|
|
628
|
+
y("p", null, T(He(Y.value?.code ?? "")), 1),
|
|
629
|
+
y("p", null, T(E(S).t("platform.screen.WorkflowAdministrationView.operation-version-warning", "当前流程版本:{version}。操作成功后不可直接撤销,并记录操作人、时间和原因。", { version: W.value?.instance.versionNo ?? E(S).t("platform.screen.WorkflowAdministrationView.unknown-version", "未知") })), 1),
|
|
630
|
+
y("label", Oe, [x(E(l), { required: "" }, {
|
|
631
631
|
default: D(() => [b(T(E(S).t("platform.screen.WorkflowAdministrationView.administration-reason", "运维原因")), 1)]),
|
|
632
632
|
_: 1
|
|
633
|
-
}), x(E(
|
|
634
|
-
value:
|
|
635
|
-
"onUpdate:value": t[12] ||= (e) =>
|
|
633
|
+
}), x(E(ue), {
|
|
634
|
+
value: J.value,
|
|
635
|
+
"onUpdate:value": t[12] ||= (e) => J.value = e,
|
|
636
636
|
disabled: I.value,
|
|
637
637
|
"aria-label": E(S).t("platform.screen.WorkflowAdministrationView.administration-reason", "运维原因")
|
|
638
638
|
}, null, 8, [
|