@ximatai/muyun-web-app 0.26.27 → 0.26.29
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-Bbe-GbNG.js → BusinessActivityLogView-fzxP3P68.js} +2 -2
- package/dist/BusinessLogListDrawer-C7wb2R6q.js +868 -0
- package/dist/CodeConfigurationView-DXrXp7kg.js +2333 -0
- package/dist/{ConfigurationTranslationView-B3Cr9Wes.js → ConfigurationTranslationView-CNWJhB8C.js} +49 -49
- package/dist/{LoginAuditLogView-DOwkqtVB.js → LoginAuditLogView-D2q4WT8W.js} +2 -2
- package/dist/{ModuleActionManagementView-DNXAhdXk.js → ModuleActionManagementView-Xd8uB3iR.js} +191 -191
- package/dist/{ModuleGovernanceView-g5W2R_Zl.js → ModuleGovernanceView-BFCfy5wB.js} +3403 -3421
- package/dist/{RequestErrorLogView-9GIz2mkQ.js → RequestErrorLogView-C-dZhHvD.js} +2 -2
- package/dist/RoleDetailWorkspaceView-BmtEBE0r.js +1435 -0
- package/dist/{RuntimeLogView-C5i19Z-u.js → RuntimeLogView-BuFuboQh.js} +51 -51
- package/dist/{WorkflowAdministrationView-CnoTudpI.js → WorkflowAdministrationView-Cb6RnlGU.js} +57 -57
- package/dist/WorkflowConfigurationView-VLObweIg.js +2227 -0
- package/dist/{WorkflowWorkbenchView-DbWqspEB.js → WorkflowWorkbenchView-CbZervUv.js} +248 -248
- package/dist/{codeConfiguration-Bno8cWxB.js → codeConfiguration-DbUEhnW7.js} +66 -49
- package/dist/configurationEditorNavigation-DZeBbg3z.js +15 -0
- package/dist/formulaReferences-CKkkdA_R.js +23 -0
- package/dist/index.css +1 -1
- package/dist/index.js +727 -727
- package/dist/{moduleMenuWorkspace-DW13bHG5.js → moduleMenuWorkspace-COanAuqc.js} +237 -248
- package/dist/{platform-components-D3NvMY3T.js → platform-components-5joS6YaR.js} +4677 -4489
- package/dist/{platform-workbench-C4OFiuG5.js → platform-workbench-le7pFe4d.js} +5457 -5296
- package/dist/types/consumer/index.d.ts +2 -1
- package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +32 -26
- package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +60 -29
- package/dist/types/dynamic-page-runtime/ModuleRecordDetailActions.vue.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/ModuleReferenceRecordDetailBrowser.vue.d.ts +13 -4
- package/dist/types/dynamic-page-runtime/index.d.ts +2 -2
- package/dist/types/dynamic-page-runtime/modulePageActionControls.d.ts +12 -0
- package/dist/types/dynamic-page-runtime/modulePageEnhancements.d.ts +18 -5
- package/dist/types/dynamic-page-runtime/recordFormAssistantCapabilities.d.ts +3 -1
- package/dist/types/dynamic-page-runtime/recordFormDraftAccess.d.ts +2 -0
- package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +16 -13
- package/dist/types/dynamic-page-runtime/useModuleRecordDataChanges.d.ts +4 -1
- package/dist/types/platform-components/ActionControlHost.vue.d.ts +16 -0
- package/dist/types/platform-components/AdaptiveHeaderActionBar.vue.d.ts +3 -0
- package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +2 -0
- package/dist/types/platform-components/ReferenceRecordDetailBrowser.vue.d.ts +10 -0
- package/dist/types/platform-components/actionControl.d.ts +28 -0
- package/dist/types/platform-components/adaptiveHeaderActionLayout.d.ts +4 -2
- package/dist/types/platform-components/index.d.ts +3 -2
- package/dist/types/platform-components/optionFieldOptionCache.d.ts +11 -1
- package/dist/types/platform-components/recordActionBarModel.d.ts +5 -0
- package/dist/types/platform-components/recordFormFieldModel.d.ts +1 -0
- package/dist/types/platform-components/referenceRecordDetailBrowser.d.ts +13 -1
- package/dist/types/platform-components/useWorkflowDesignSession.d.ts +141 -0
- package/dist/types/platform-components/workflowDesignEditing.d.ts +8 -7
- package/dist/types/platform-components/workflowDesignOperations.d.ts +107 -0
- package/dist/types/views/CodeRuleRecoveryPanel.vue.d.ts +20 -0
- package/dist/types/views/businessRuleGovernance.d.ts +1 -2
- package/dist/types/views/codeConfiguration.d.ts +29 -1
- package/dist/types/views/codeConfigurationAssistantSurface.d.ts +17 -0
- package/dist/types/views/codeRuleSaveRecovery.d.ts +12 -0
- package/dist/types/views/useCodeConfigurationAssistant.d.ts +10 -0
- package/dist/types/views/useCodeConfigurationSession.d.ts +16 -0
- package/dist/types/views/useWorkflowConfigurationAssistant.d.ts +16 -0
- package/dist/types/views/useWorkflowConfigurationContext.d.ts +16 -2
- package/dist/types/views/useWorkflowConfigurationSession.d.ts +146 -0
- package/dist/types/views/workflowConfigurationAssistantSurface.d.ts +169 -0
- package/dist/types/views/workflowSaveRecovery.d.ts +11 -0
- package/dist/types/vue-ui-antdv/components/sidePanelHost.d.ts +3 -1
- package/dist/types/vue-ui-antdv/index.d.ts +1 -0
- package/dist/types/web-core/formulaReferences.d.ts +2 -0
- package/dist/types/web-core/workflow.d.ts +11 -1
- package/dist/useWorkflowConfigurationContext-B9GigSF8.js +78 -0
- package/dist/{workspaceViews-D2Uh4KAq.js → workspaceViews-8-LaaGxD.js} +680 -680
- package/package.json +1 -1
- package/dist/BusinessLogListDrawer-BmF-14We.js +0 -868
- package/dist/CodeConfigurationView-DdPfBjoC.js +0 -1667
- package/dist/RoleDetailWorkspaceView-BuqRT0pd.js +0 -1435
- package/dist/WorkflowConfigurationView-Cku-F1Fm.js +0 -980
- package/dist/useWorkflowConfigurationContext-eQKyqe6_.js +0 -66
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Gn as e, Ia as t, Kt as n, Na as r, Rn as i, Sa as a, Sn as o, Y as ee, _r as s, ao as te, ba as c, br as l, co as u, eo as ne, gn as re, io as ie, ka as d, kn as ae, no as f, ti as p, vr as m, xa as h, za as oe } from "./platform-components-5joS6YaR.js";
|
|
2
2
|
import { computed as g, createBlock as _, createCommentVNode as v, createElementBlock as y, createElementVNode as b, createTextVNode as x, createVNode as S, defineComponent as C, nextTick as w, onBeforeUnmount as T, openBlock as E, ref as D, shallowRef as O, toDisplayString as k, unref as A, watch as se, withCtx as j } from "vue";
|
|
3
3
|
//#region src/views/runtimeLogClient.ts
|
|
4
4
|
var M = "/platform.runtime_log";
|
|
5
|
-
function ce(e, t =
|
|
6
|
-
if (!
|
|
5
|
+
function ce(e, t = f) {
|
|
6
|
+
if (!u(e)) throw new c(h(t, "platform.screen.runtimeLogClient.the-current-http-client-does-not-support-runtime-log-streams", "当前 HTTP 客户端不支持运行日志流。"));
|
|
7
7
|
return {
|
|
8
8
|
download(t) {
|
|
9
9
|
return e.stream({
|
|
@@ -24,21 +24,21 @@ function ce(e, t = l) {
|
|
|
24
24
|
}
|
|
25
25
|
//#endregion
|
|
26
26
|
//#region src/views/runtimeLogSse.ts
|
|
27
|
-
var le =
|
|
27
|
+
var le = d, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view__header-actions" }, fe = { key: 2 }, pe = { key: 3 }, me = { class: "runtime-log-view__row-actions" }, he = {
|
|
28
28
|
key: 0,
|
|
29
29
|
class: "runtime-log-view__content"
|
|
30
|
-
}, ge = 500, N = /*#__PURE__*/
|
|
30
|
+
}, ge = 500, N = /*#__PURE__*/ l(/* @__PURE__ */ C({
|
|
31
31
|
name: "RuntimeLogView",
|
|
32
32
|
__name: "RuntimeLogView",
|
|
33
|
-
setup(
|
|
34
|
-
let
|
|
33
|
+
setup(l) {
|
|
34
|
+
let u = te(), d = p({ moduleAlias: "platform.runtime_log" }), f = ce(d.http, u), C = O(), M = g(() => C.value ? $(C.value) : void 0), N = D(), P = D(!1), F = D(), I = D(""), L = D("closed"), R = O(), z = D(), B = D(!0), V = 0, H, U, W = 0, _e = g(() => {
|
|
35
35
|
let e = R.value;
|
|
36
|
-
return e ? typeof e == "string" ? e : e instanceof Error ? $(e) :
|
|
37
|
-
connecting:
|
|
38
|
-
live:
|
|
39
|
-
rotated:
|
|
40
|
-
error:
|
|
41
|
-
closed:
|
|
36
|
+
return e ? typeof e == "string" ? e : e instanceof Error ? $(e) : u.t(e.source.sourceId, e.source.originalText, e.args) : {
|
|
37
|
+
connecting: u.t("platform.screen.RuntimeLogView.connecting-to-live-logs", "正在连接实时日志…"),
|
|
38
|
+
live: u.t("platform.screen.RuntimeLogView.updating-live", "正在实时更新"),
|
|
39
|
+
rotated: u.t("platform.screen.RuntimeLogView.the-log-file-has-rotated-reconnect", "日志文件已轮转,请重新连接。"),
|
|
40
|
+
error: u.t("platform.screen.RuntimeLogView.the-live-log-connection-was-interrupted", "实时日志连接已中断。"),
|
|
41
|
+
closed: u.t("platform.screen.RuntimeLogView.live-logs-closed", "实时日志已关闭。")
|
|
42
42
|
}[L.value];
|
|
43
43
|
}), ve = g(() => [
|
|
44
44
|
"closed",
|
|
@@ -47,23 +47,23 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
47
47
|
].includes(L.value)), ye = g(() => [
|
|
48
48
|
{
|
|
49
49
|
key: "name",
|
|
50
|
-
title:
|
|
50
|
+
title: u.t("platform.screen.RuntimeLogView.file-name", "文件名称"),
|
|
51
51
|
width: "360px"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
key: "sizeBytes",
|
|
55
|
-
title:
|
|
55
|
+
title: u.t("platform.screen.RuntimeLogView.file-size", "文件大小"),
|
|
56
56
|
width: "140px",
|
|
57
57
|
align: "right"
|
|
58
58
|
},
|
|
59
59
|
{
|
|
60
60
|
key: "lastModifiedAt",
|
|
61
|
-
title:
|
|
61
|
+
title: u.t("platform.screen.RuntimeLogView.last-modified", "最后修改时间"),
|
|
62
62
|
width: "208px"
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
65
|
key: "active",
|
|
66
|
-
title:
|
|
66
|
+
title: u.t("platform.screen.WorkflowWorkbenchView.status", "状态"),
|
|
67
67
|
width: "132px"
|
|
68
68
|
}
|
|
69
69
|
]);
|
|
@@ -86,7 +86,7 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
86
86
|
}
|
|
87
87
|
async function Se(e, t) {
|
|
88
88
|
try {
|
|
89
|
-
let n = await
|
|
89
|
+
let n = await f.activeStream(ge, t.signal);
|
|
90
90
|
if (t.signal.aborted || e !== V) {
|
|
91
91
|
await n.cancel();
|
|
92
92
|
return;
|
|
@@ -99,10 +99,10 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
99
99
|
if (e) break;
|
|
100
100
|
t && a.push(i.decode(t, { stream: !0 }));
|
|
101
101
|
}
|
|
102
|
-
a.push(i.decode()), a.finish(), !t.signal.aborted && e === V && L.value !== "rotated" && (L.value = "closed", R.value = h(
|
|
102
|
+
a.push(i.decode()), a.finish(), !t.signal.aborted && e === V && L.value !== "rotated" && (L.value = "closed", R.value = h(u, "platform.screen.RuntimeLogView.the-live-log-connection-has-ended", "实时日志连接已结束。"));
|
|
103
103
|
} catch (n) {
|
|
104
|
-
!t.signal.aborted && e === V && (L.value = "error", R.value = Q(n, h(
|
|
105
|
-
language:
|
|
104
|
+
!t.signal.aborted && e === V && (L.value = "error", R.value = Q(n, h(u, "platform.screen.RuntimeLogView.failed-to-connect-to-live-logs-reconnect", "实时日志连接失败,请重新连接。")), o(n, {
|
|
105
|
+
language: u,
|
|
106
106
|
source: "runtime-log-stream",
|
|
107
107
|
phase: "load"
|
|
108
108
|
}));
|
|
@@ -115,7 +115,7 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
115
115
|
case "snapshot":
|
|
116
116
|
case "reset": {
|
|
117
117
|
let t = Y(e.data);
|
|
118
|
-
I.value = X(t.text), F.value = Z(t.fileName) ?? F.value, L.value = "live", R.value = e.event === "reset" ? h(
|
|
118
|
+
I.value = X(t.text), F.value = Z(t.fileName) ?? F.value, L.value = "live", R.value = e.event === "reset" ? h(u, "platform.screen.RuntimeLogView.log-content-was-reset-live-updates-are-continuing", "日志内容已重置,正在继续实时更新。") : void 0;
|
|
119
119
|
return;
|
|
120
120
|
}
|
|
121
121
|
case "append": {
|
|
@@ -125,18 +125,18 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
125
125
|
}
|
|
126
126
|
case "rotated": {
|
|
127
127
|
let t = Y(e.data);
|
|
128
|
-
F.value = Z(t.fileName) ?? F.value, W < 1 ? (W += 1, L.value = "connecting", R.value = h(
|
|
128
|
+
F.value = Z(t.fileName) ?? F.value, W < 1 ? (W += 1, L.value = "connecting", R.value = h(u, "platform.screen.RuntimeLogView.the-log-file-has-rotated-reconnecting-to-the-latest-file", "日志文件已轮转,正在重新连接最新文件…"), w(() => K())) : (L.value = "rotated", R.value = h(u, "platform.screen.RuntimeLogView.the-log-file-has-rotated-again-reconnect-manually", "日志文件再次轮转,请手动重新连接。"), q());
|
|
129
129
|
return;
|
|
130
130
|
}
|
|
131
131
|
case "error": {
|
|
132
132
|
let t = Y(e.data);
|
|
133
133
|
L.value = "error";
|
|
134
134
|
let n = Z(t.message), r = t.messageSource;
|
|
135
|
-
R.value = t.code === "RUNTIME_LOG_STREAM_INTERRUPTED" &&
|
|
135
|
+
R.value = t.code === "RUNTIME_LOG_STREAM_INTERRUPTED" && oe(r) && r.sourceKind === "CODE" && r.sourceId === "platform.runtime-log.stream-interrupted" && r.originalText === ne(r.sourceId) && ie(r, n ?? "") ? {
|
|
136
136
|
message: n,
|
|
137
137
|
source: r,
|
|
138
138
|
args: {}
|
|
139
|
-
} : n ?? h(
|
|
139
|
+
} : n ?? h(u, "platform.screen.RuntimeLogView.the-live-log-connection-encountered-an-error-reconnect", "实时日志连接出现错误,请重新连接。"), q();
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -149,11 +149,11 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
149
149
|
if (!N.value) {
|
|
150
150
|
N.value = e.name;
|
|
151
151
|
try {
|
|
152
|
-
let t = await Te(await
|
|
152
|
+
let t = await Te(await f.download(e.name)), n = t.buffer.slice(t.byteOffset, t.byteOffset + t.byteLength), r = URL.createObjectURL(new Blob([n], { type: "text/plain;charset=utf-8" })), i = document.createElement("a");
|
|
153
153
|
i.href = r, i.download = e.name, i.click(), window.setTimeout(() => URL.revokeObjectURL(r), 6e4);
|
|
154
154
|
} catch (t) {
|
|
155
|
-
C.value = Q(t, h(
|
|
156
|
-
language:
|
|
155
|
+
C.value = Q(t, h(u, "platform.screen.RuntimeLogView.failed-to-download-value-try-again-later", "下载 {value1} 失败,请稍后重试。", { value1: e.name })), o(t, {
|
|
156
|
+
language: u,
|
|
157
157
|
source: "runtime-log-download",
|
|
158
158
|
phase: "load"
|
|
159
159
|
});
|
|
@@ -201,21 +201,21 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
201
201
|
return typeof e == "string" && e ? e : void 0;
|
|
202
202
|
}
|
|
203
203
|
function Q(e, t) {
|
|
204
|
-
return e instanceof Error && e.message ? e : new
|
|
204
|
+
return e instanceof Error && e.message ? e : new c(t);
|
|
205
205
|
}
|
|
206
206
|
function $(e) {
|
|
207
|
-
return e instanceof
|
|
207
|
+
return e instanceof c ? a(e, u) : t(r(e), u);
|
|
208
208
|
}
|
|
209
|
-
return (
|
|
210
|
-
M.value ? (E(), _(A(
|
|
209
|
+
return (t, r) => (E(), y("section", ue, [
|
|
210
|
+
M.value ? (E(), _(A(i), {
|
|
211
211
|
key: 0,
|
|
212
212
|
class: "runtime-log-view__error",
|
|
213
213
|
message: M.value
|
|
214
214
|
}, null, 8, ["message"])) : v("v-if", !0),
|
|
215
|
-
S(A(
|
|
215
|
+
S(A(ee), {
|
|
216
216
|
class: "runtime-log-view__list",
|
|
217
217
|
context: A(d),
|
|
218
|
-
title: A(
|
|
218
|
+
title: A(u).t("platform.screen.RuntimeLogView.runtime-logs", "程序日志"),
|
|
219
219
|
columns: ye.value,
|
|
220
220
|
"row-key": "name",
|
|
221
221
|
"show-recycle-bin": !1,
|
|
@@ -226,36 +226,36 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
226
226
|
20,
|
|
227
227
|
50
|
|
228
228
|
],
|
|
229
|
-
"empty-description": A(
|
|
229
|
+
"empty-description": A(u).t("platform.screen.RuntimeLogView.no-log-files-available-in-the-current-log-directory", "当前日志目录中没有可用的日志文件"),
|
|
230
230
|
"row-actions-of": () => [],
|
|
231
|
-
"row-actions-title": A(
|
|
231
|
+
"row-actions-title": A(u).t("platform.screen.RecordPermissionDialog.operation", "操作"),
|
|
232
232
|
"action-column-width": "176"
|
|
233
233
|
}, {
|
|
234
|
-
operations: j(() => [b("div", de, [S(A(
|
|
234
|
+
operations: j(() => [b("div", de, [S(A(m), {
|
|
235
235
|
type: "primary",
|
|
236
236
|
"icon-name": "eye",
|
|
237
237
|
onClick: G
|
|
238
238
|
}, {
|
|
239
|
-
default: j(() => [x(k(A(
|
|
239
|
+
default: j(() => [x(k(A(u).t("platform.screen.RuntimeLogView.view-live-logs", "实时查看")), 1)]),
|
|
240
240
|
_: 1
|
|
241
241
|
})])]),
|
|
242
|
-
cell: j(({ column: e, record: t }) => [e.key === "sizeBytes" ? (E(), _(A(
|
|
242
|
+
cell: j(({ column: e, record: t }) => [e.key === "sizeBytes" ? (E(), _(A(re), {
|
|
243
243
|
key: 0,
|
|
244
244
|
value: t.sizeBytes
|
|
245
|
-
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(
|
|
245
|
+
}, null, 8, ["value"])) : e.key === "lastModifiedAt" ? (E(), _(A(ae), {
|
|
246
246
|
key: 1,
|
|
247
247
|
value: t.lastModifiedAt
|
|
248
|
-
}, null, 8, ["value"])) : e.key === "active" ? (E(), y("span", fe, k(t.active ? A(
|
|
249
|
-
rowActions: j(({ record: e }) => [b("div", me, [e.active === !0 ? (E(), _(A(
|
|
248
|
+
}, null, 8, ["value"])) : e.key === "active" ? (E(), y("span", fe, k(t.active ? A(u).t("platform.screen.RuntimeLogView.active", "正在写入") : A(u).t("platform.workflow.archived", "已归档")), 1)) : (E(), y("span", pe, k(t[e.key]), 1))]),
|
|
249
|
+
rowActions: j(({ record: e }) => [b("div", me, [e.active === !0 ? (E(), _(A(m), {
|
|
250
250
|
key: 0,
|
|
251
251
|
type: "link",
|
|
252
252
|
size: "small",
|
|
253
253
|
"icon-name": "eye",
|
|
254
254
|
onClick: G
|
|
255
255
|
}, {
|
|
256
|
-
default: j(() => [x(k(A(
|
|
256
|
+
default: j(() => [x(k(A(u).t("platform.screen.RuntimeLogView.view-live-logs", "实时查看")), 1)]),
|
|
257
257
|
_: 1
|
|
258
|
-
})) : v("v-if", !0), S(A(
|
|
258
|
+
})) : v("v-if", !0), S(A(m), {
|
|
259
259
|
type: "link",
|
|
260
260
|
size: "small",
|
|
261
261
|
"icon-name": "download",
|
|
@@ -263,7 +263,7 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
263
263
|
disabled: !!N.value && N.value !== e.name,
|
|
264
264
|
onClick: (t) => we(e)
|
|
265
265
|
}, {
|
|
266
|
-
default: j(() => [x(k(A(
|
|
266
|
+
default: j(() => [x(k(A(u).t("platform.screen.SingleImageFileReferenceField.download", "下载")), 1)]),
|
|
267
267
|
_: 1
|
|
268
268
|
}, 8, [
|
|
269
269
|
"loading",
|
|
@@ -278,20 +278,20 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
278
278
|
"empty-description",
|
|
279
279
|
"row-actions-title"
|
|
280
280
|
]),
|
|
281
|
-
S(A(
|
|
281
|
+
S(A(n), {
|
|
282
282
|
open: P.value,
|
|
283
|
-
title: F.value ? A(
|
|
283
|
+
title: F.value ? A(u).t("platform.screen.RuntimeLogView.live-logs-value", "实时日志 · {value1}", { value1: F.value }) : A(u).t("platform.screen.RuntimeLogView.live-logs", "实时日志"),
|
|
284
284
|
subtitle: _e.value,
|
|
285
285
|
width: "standard",
|
|
286
286
|
"render-mode": "inline",
|
|
287
287
|
dismissal: "dismissible",
|
|
288
288
|
onClose: xe
|
|
289
289
|
}, {
|
|
290
|
-
"header-actions": j(() => [ve.value ? (E(), _(A(
|
|
290
|
+
"header-actions": j(() => [ve.value ? (E(), _(A(s), {
|
|
291
291
|
key: 0,
|
|
292
292
|
emphasis: "quiet",
|
|
293
293
|
"icon-name": "reload",
|
|
294
|
-
title: A(
|
|
294
|
+
title: A(u).t("platform.screen.RuntimeLogView.reconnect", "重新连接"),
|
|
295
295
|
onClick: be
|
|
296
296
|
}, null, 8, ["title"])) : v("v-if", !0)]),
|
|
297
297
|
default: j(() => [b("div", {
|
|
@@ -299,9 +299,9 @@ var le = t, ue = { class: "runtime-log-view" }, de = { class: "runtime-log-view_
|
|
|
299
299
|
ref: z,
|
|
300
300
|
class: "runtime-log-view__viewport",
|
|
301
301
|
onScroll: J
|
|
302
|
-
}, [I.value ? (E(), y("pre", he, k(I.value), 1)) : (E(), _(A(
|
|
302
|
+
}, [I.value ? (E(), y("pre", he, k(I.value), 1)) : (E(), _(A(e), {
|
|
303
303
|
key: 1,
|
|
304
|
-
description: L.value === "connecting" ? A(
|
|
304
|
+
description: L.value === "connecting" ? A(u).t("platform.screen.RuntimeLogView.reading-the-end-of-the-log", "正在读取日志末尾内容…") : A(u).t("platform.screen.RuntimeLogView.no-log-content", "暂无日志内容")
|
|
305
305
|
}, null, 8, ["description"]))], 544)]),
|
|
306
306
|
_: 1
|
|
307
307
|
}, 8, [
|
package/dist/{WorkflowAdministrationView-CnoTudpI.js → WorkflowAdministrationView-Cb6RnlGU.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { O as e, y as t } from "./platform-workbench-le7pFe4d.js";
|
|
2
|
+
import { Br as n, Fn as r, In as i, Kt as a, Qr as o, Rn as s, Rr as ee, Sn as c, Va as l, Xt as u, ao as te, br as ne, d as re, dn as d, dr as ie, f as ae, lo as oe, m as se, mr as ce, or as le, ot as ue, p as f, ti as de, vr as p, vt as fe, zr as pe } from "./platform-components-5joS6YaR.js";
|
|
3
3
|
import { Fragment as me, computed as m, createBlock as h, createCommentVNode as g, createElementBlock as _, createElementVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, openBlock as S, ref as C, renderList as he, toDisplayString as w, unref as T, watch as ge, withCtx as E } from "vue";
|
|
4
4
|
//#region src/views/WorkflowAdministrationView.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-query-fields" }, be = {
|
|
@@ -11,27 +11,27 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
11
11
|
}, Ce = { class: "workflow-field" }, we = { class: "workflow-query-controls" }, Te = { key: 2 }, Ee = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "workflow-empty-tasks"
|
|
14
|
-
}, De = { class: "workflow-map" }, Oe = { key: 0 }, ke = { class: "workflow-field" }, D = /*#__PURE__*/
|
|
14
|
+
}, De = { class: "workflow-map" }, Oe = { key: 0 }, ke = { class: "workflow-field" }, D = /*#__PURE__*/ ne(/* @__PURE__ */ x({
|
|
15
15
|
name: "WorkflowAdministrationView",
|
|
16
16
|
__name: "WorkflowAdministrationView",
|
|
17
|
-
setup(
|
|
18
|
-
let x =
|
|
17
|
+
setup(ne) {
|
|
18
|
+
let x = te();
|
|
19
19
|
function D(e) {
|
|
20
|
-
return
|
|
20
|
+
return se(e, x);
|
|
21
21
|
}
|
|
22
|
-
let O =
|
|
22
|
+
let O = de({ moduleAlias: "platform.workflow_admin" }), k = t(), A = C(), j = C(""), M = C(""), N = C("running"), P = C(1), F = C(!1), I = C(!1), L = C(""), R = C(""), z = C({}), B = m(() => Object.fromEntries(Object.entries(z.value).map(([e, t]) => [e, l(t.title, t.titleText, x)]))), V = m(() => A.value ? oe(O.http, { "X-MuYun-Tenant-Id": A.value }) : O.http), Ae = o({
|
|
23
23
|
http: O.http,
|
|
24
24
|
language: x,
|
|
25
25
|
moduleAlias: "iam.tenant",
|
|
26
26
|
runtimeAccess: "REFERENCE"
|
|
27
|
-
}), H = C([]), U = C([]), W = C(), G = C([]), K = C([]), q = C(), J = C(""), Y = C(), X = m(() =>
|
|
27
|
+
}), H = C([]), U = C([]), W = C(), G = C([]), K = C([]), q = C(), J = C(""), Y = C(), X = m(() => pe(V.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)),
|
|
30
|
-
if (!
|
|
31
|
-
let
|
|
29
|
+
let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), r = W.value, i = !I.value && H.value.some((e) => t.has(e.moduleAlias)), a = r && t.has(r.instance.moduleAlias), o = Object.keys(z.value).some((e) => t.has(e));
|
|
30
|
+
if (!i && !a && !o) return;
|
|
31
|
+
let s = ++je, ee = Z, l = I.value, u = q.value, te = k?.value?.userId;
|
|
32
32
|
try {
|
|
33
|
-
let [e, t, c,
|
|
34
|
-
|
|
33
|
+
let [e, t, c, ne] = await Promise.all([
|
|
34
|
+
i ? X.value.instances({
|
|
35
35
|
moduleAlias: j.value || void 0,
|
|
36
36
|
recordId: M.value || void 0,
|
|
37
37
|
instanceStatus: N.value,
|
|
@@ -40,12 +40,12 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
40
40
|
pageSize: 30
|
|
41
41
|
}
|
|
42
42
|
}) : void 0,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
a && u ? X.value.bundle(u, l) : void 0,
|
|
44
|
+
a && u ? X.value.events(u, l) : void 0,
|
|
45
|
+
o ? n(V.value).workbenchModules() : void 0
|
|
46
46
|
]);
|
|
47
|
-
if (
|
|
48
|
-
let n =
|
|
47
|
+
if (s !== je || ee !== Z || u !== q.value || l !== I.value || te !== k?.value?.userId || (ne && (z.value = Object.fromEntries(Object.entries(z.value).map(([e, t]) => {
|
|
48
|
+
let n = ne.modules[e]?.titleText;
|
|
49
49
|
return [e, f(t.titleText, n) ? {
|
|
50
50
|
...t,
|
|
51
51
|
titleText: n
|
|
@@ -62,8 +62,8 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
62
62
|
} : e;
|
|
63
63
|
})
|
|
64
64
|
};
|
|
65
|
-
})), !
|
|
66
|
-
W.value =
|
|
65
|
+
})), !r || !t || W.value?.instance.id !== r.instance.id)) return;
|
|
66
|
+
W.value = ae(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
68
|
return f(e.nodeTitleText, n?.nodeTitleText) ? {
|
|
69
69
|
...e,
|
|
@@ -151,7 +151,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
151
151
|
if (!F.value && Y.value && q.value && J.value.trim()) {
|
|
152
152
|
F.value = !0;
|
|
153
153
|
try {
|
|
154
|
-
if (!await
|
|
154
|
+
if (!await i({
|
|
155
155
|
title: x.t("platform.screen.WorkflowAdministrationView.confirm-action-title", "确认{operation}?", { operation: Ve(Y.value.code) }),
|
|
156
156
|
content: x.t("platform.screen.WorkflowAdministrationView.confirm-action-content", "{impact} 原因:{reason}", {
|
|
157
157
|
impact: He(Y.value.code),
|
|
@@ -160,7 +160,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
160
160
|
danger: !0,
|
|
161
161
|
okText: x.t("platform.screen.WorkflowAdministrationView.confirm-execute", "确认执行")
|
|
162
162
|
}, x)) return;
|
|
163
|
-
await X.value.execute(q.value, Y.value.code, J.value, Y.value.taskId),
|
|
163
|
+
await X.value.execute(q.value, Y.value.code, J.value, Y.value.taskId), r(x.t("platform.screen.WorkflowAdministrationView.operation-completed", "运维操作已完成并记录审计")), await Q();
|
|
164
164
|
} catch (e) {
|
|
165
165
|
c(e, {
|
|
166
166
|
source: "workflow-admin",
|
|
@@ -171,16 +171,16 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
171
171
|
}
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
ge(A, async (e, t,
|
|
175
|
-
let
|
|
176
|
-
|
|
177
|
-
|
|
174
|
+
ge(A, async (e, t, r) => {
|
|
175
|
+
let i = !0;
|
|
176
|
+
r(() => {
|
|
177
|
+
i = !1;
|
|
178
178
|
}), z.value = {}, j.value = "", M.value = "", P.value = 1;
|
|
179
179
|
try {
|
|
180
|
-
let e = await
|
|
181
|
-
|
|
180
|
+
let e = await n(V.value).workbenchModules();
|
|
181
|
+
i && (z.value = e.modules ?? {});
|
|
182
182
|
} catch (e) {
|
|
183
|
-
|
|
183
|
+
i && c(e, {
|
|
184
184
|
source: "workflow-module-titles",
|
|
185
185
|
phase: "load"
|
|
186
186
|
});
|
|
@@ -205,7 +205,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
205
205
|
moduleTitle: B.value[e.moduleAlias] ?? e.moduleAlias,
|
|
206
206
|
status: D(e.instanceStatus),
|
|
207
207
|
approval: D(e.approvalStatus),
|
|
208
|
-
active: e.activeNodeLabels?.length ? e.activeNodeLabels.map((e) =>
|
|
208
|
+
active: e.activeNodeLabels?.length ? e.activeNodeLabels.map((e) => l(e.title, e.titleText, x)).join("、") : e.activeNodeTitles.join("、"),
|
|
209
209
|
assignees: e.currentAssigneeTitles.join("、"),
|
|
210
210
|
starter: e.startedByTitle,
|
|
211
211
|
urgency: D(e.overtimeStatus)
|
|
@@ -284,11 +284,11 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
284
284
|
taskId: t
|
|
285
285
|
}, J.value = "";
|
|
286
286
|
}
|
|
287
|
-
|
|
287
|
+
ee(() => x.t("platform.screen.WorkflowAdministrationView.workflow-administration", "工作流运维"), () => !!(Y.value && J.value.trim()), () => F.value);
|
|
288
288
|
async function $() {
|
|
289
289
|
if (F.value) return !1;
|
|
290
290
|
let e = Y.value, t = Z;
|
|
291
|
-
return (!J.value.trim() || await
|
|
291
|
+
return (!J.value.trim() || await i({
|
|
292
292
|
title: x.t("platform.screen.WorkflowAdministrationView.discard-operation", "放弃未执行的运维操作?"),
|
|
293
293
|
danger: !0,
|
|
294
294
|
okText: x.t("platform.screen.WorkflowAdministrationView.discard", "放弃填写")
|
|
@@ -301,7 +301,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
301
301
|
return e.title ?? e.id ?? "";
|
|
302
302
|
}
|
|
303
303
|
return (e, t) => (S(), _("section", _e, [
|
|
304
|
-
b(T(
|
|
304
|
+
b(T(fe), {
|
|
305
305
|
tabs: [{
|
|
306
306
|
key: "current",
|
|
307
307
|
title: T(x).t("platform.screen.WorkflowAdministrationView.current-instances", "当前实例")
|
|
@@ -321,13 +321,13 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
321
321
|
"label",
|
|
322
322
|
"disabled"
|
|
323
323
|
]),
|
|
324
|
-
L.value ? (S(), h(T(
|
|
324
|
+
L.value ? (S(), h(T(s), {
|
|
325
325
|
key: 0,
|
|
326
326
|
title: T(x).t("platform.screen.WorkflowAdministrationView.unable-to-load-workflows", "无法加载流程"),
|
|
327
327
|
message: L.value
|
|
328
328
|
}, null, 8, ["title", "message"])) : g("v-if", !0),
|
|
329
329
|
I.value && !j.value ? (S(), _("p", ve, w(T(x).t("platform.screen.WorkflowAdministrationView.select-a-business-module-to-view-archived", "选择业务模块后查看归档流程。")), 1)) : g("v-if", !0),
|
|
330
|
-
b(T(
|
|
330
|
+
b(T(u), {
|
|
331
331
|
title: T(x).t("platform.screen.WorkflowAdministrationView.workflow-administration", "工作流运维"),
|
|
332
332
|
subtitle: T(x).t("platform.screen.WorkflowAdministrationView.a-reason-is-required-for-exception-handling-all-operations-are", "异常处理需要明确原因,所有操作记录审计"),
|
|
333
333
|
columns: Le.value,
|
|
@@ -345,7 +345,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
345
345
|
onRowClick: t[7] ||= (e) => Ne(String(e.id)),
|
|
346
346
|
onPageChange: t[8] ||= (e) => P.value = e
|
|
347
347
|
}, {
|
|
348
|
-
operations: E(() => [b(T(
|
|
348
|
+
operations: E(() => [b(T(p), {
|
|
349
349
|
loading: F.value,
|
|
350
350
|
onClick: Me
|
|
351
351
|
}, {
|
|
@@ -356,7 +356,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
356
356
|
T(k)?.system ? (S(), _("label", be, [b(T(d), null, {
|
|
357
357
|
default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.business-tenant", "业务租户")), 1)]),
|
|
358
358
|
_: 1
|
|
359
|
-
}), b(T(
|
|
359
|
+
}), b(T(ue), {
|
|
360
360
|
value: A.value,
|
|
361
361
|
"onUpdate:value": t[1] ||= (e) => A.value = e,
|
|
362
362
|
context: T(Ae),
|
|
@@ -371,7 +371,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
371
371
|
v("label", xe, [b(T(d), { required: I.value }, {
|
|
372
372
|
default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.business-module", "业务模块")), 1)]),
|
|
373
373
|
_: 1
|
|
374
|
-
}, 8, ["required"]), b(T(
|
|
374
|
+
}, 8, ["required"]), b(T(ce), {
|
|
375
375
|
value: j.value,
|
|
376
376
|
"onUpdate:value": t[2] ||= (e) => j.value = e,
|
|
377
377
|
disabled: F.value || !!Y.value,
|
|
@@ -390,7 +390,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
390
390
|
I.value ? g("v-if", !0) : (S(), _("label", Se, [b(T(d), null, {
|
|
391
391
|
default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.workflow-status", "流程状态")), 1)]),
|
|
392
392
|
_: 1
|
|
393
|
-
}), b(T(
|
|
393
|
+
}), b(T(ce), {
|
|
394
394
|
value: N.value,
|
|
395
395
|
"onUpdate:value": t[3] ||= (e) => N.value = e,
|
|
396
396
|
disabled: F.value || !!Y.value,
|
|
@@ -421,7 +421,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
421
421
|
"disabled",
|
|
422
422
|
"options"
|
|
423
423
|
])])),
|
|
424
|
-
v("label", Ce, [y(w(T(x).t("platform.screen.WorkflowAdministrationView.business-record-identifier", "业务记录标识")), 1), b(T(
|
|
424
|
+
v("label", Ce, [y(w(T(x).t("platform.screen.WorkflowAdministrationView.business-record-identifier", "业务记录标识")), 1), b(T(ie), {
|
|
425
425
|
value: M.value,
|
|
426
426
|
"onUpdate:value": t[4] ||= (e) => M.value = e,
|
|
427
427
|
disabled: F.value || !!Y.value,
|
|
@@ -431,13 +431,13 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
431
431
|
"disabled",
|
|
432
432
|
"placeholder"
|
|
433
433
|
])]),
|
|
434
|
-
v("div", we, [b(T(
|
|
434
|
+
v("div", we, [b(T(p), {
|
|
435
435
|
disabled: F.value || I.value && !j.value,
|
|
436
436
|
onClick: t[5] ||= (e) => Pe()
|
|
437
437
|
}, {
|
|
438
438
|
default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.search", "查询")), 1)]),
|
|
439
439
|
_: 1
|
|
440
|
-
}, 8, ["disabled"]), b(T(
|
|
440
|
+
}, 8, ["disabled"]), b(T(p), {
|
|
441
441
|
disabled: F.value,
|
|
442
442
|
onClick: t[6] ||= (e) => Pe(!0)
|
|
443
443
|
}, {
|
|
@@ -457,7 +457,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
457
457
|
"page-num",
|
|
458
458
|
"pagination-disabled"
|
|
459
459
|
]),
|
|
460
|
-
b(T(
|
|
460
|
+
b(T(a), {
|
|
461
461
|
open: !!q.value,
|
|
462
462
|
title: T(x).t("platform.screen.WorkflowAdministrationView.workflow-administration-details", "流程运维详情"),
|
|
463
463
|
subtitle: W.value ? T(x).t("platform.screen.WorkflowAdministrationView.instance-title", "{module} · {status} · 版本 {version}", {
|
|
@@ -469,7 +469,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
469
469
|
"before-close": We,
|
|
470
470
|
onClose: t[11] ||= (e) => q.value = void 0
|
|
471
471
|
}, {
|
|
472
|
-
operation: E(() => [W.value && !I.value ? (S(!0), _(me, { key: 0 }, he(ze.value, (e) => (S(), h(T(
|
|
472
|
+
operation: E(() => [W.value && !I.value ? (S(!0), _(me, { key: 0 }, he(ze.value, (e) => (S(), h(T(p), {
|
|
473
473
|
key: e.key,
|
|
474
474
|
danger: e.danger,
|
|
475
475
|
disabled: F.value || !!Y.value,
|
|
@@ -481,7 +481,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
481
481
|
"danger",
|
|
482
482
|
"disabled",
|
|
483
483
|
"onClick"
|
|
484
|
-
]))), 128)) : g("v-if", !0), b(T(
|
|
484
|
+
]))), 128)) : g("v-if", !0), b(T(p), {
|
|
485
485
|
disabled: F.value || !!Y.value,
|
|
486
486
|
onClick: t[10] ||= (e) => q.value = void 0
|
|
487
487
|
}, {
|
|
@@ -489,12 +489,12 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
489
489
|
_: 1
|
|
490
490
|
}, 8, ["disabled"])]),
|
|
491
491
|
default: E(() => [
|
|
492
|
-
R.value ? (S(), h(T(
|
|
492
|
+
R.value ? (S(), h(T(s), {
|
|
493
493
|
key: 0,
|
|
494
494
|
title: T(x).t("platform.screen.WorkflowAdministrationView.unable-to-load-details", "无法加载详情"),
|
|
495
495
|
message: R.value
|
|
496
496
|
}, null, 8, ["title", "message"])) : g("v-if", !0),
|
|
497
|
-
R.value ? (S(), h(T(
|
|
497
|
+
R.value ? (S(), h(T(p), {
|
|
498
498
|
key: 1,
|
|
499
499
|
onClick: t[9] ||= (e) => Ne(q.value)
|
|
500
500
|
}, {
|
|
@@ -503,7 +503,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
503
503
|
})) : g("v-if", !0),
|
|
504
504
|
F.value ? (S(), _("p", Te, w(T(x).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : g("v-if", !0),
|
|
505
505
|
W.value ? (S(), _(me, { key: 3 }, [
|
|
506
|
-
!I.value && G.value.length ? (S(), h(T(
|
|
506
|
+
!I.value && G.value.length ? (S(), h(T(u), {
|
|
507
507
|
key: 0,
|
|
508
508
|
embedded: "",
|
|
509
509
|
title: T(x).t("platform.screen.WorkflowAdministrationView.current-pending-tasks", "当前待办"),
|
|
@@ -511,13 +511,13 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
511
511
|
rows: G.value.map((e) => ({
|
|
512
512
|
...e,
|
|
513
513
|
id: e.taskId,
|
|
514
|
-
nodeTitle: T(
|
|
514
|
+
nodeTitle: T(l)(e.nodeTitle, e.nodeTitleText, T(x))
|
|
515
515
|
})),
|
|
516
516
|
pageable: !1,
|
|
517
517
|
"fill-height": !1,
|
|
518
518
|
"show-action-column": !0
|
|
519
519
|
}, {
|
|
520
|
-
rowActions: E(({ record: e }) => [e.canForceApprove ? (S(), h(T(
|
|
520
|
+
rowActions: E(({ record: e }) => [e.canForceApprove ? (S(), h(T(p), {
|
|
521
521
|
key: 0,
|
|
522
522
|
danger: "",
|
|
523
523
|
disabled: F.value || !!Y.value,
|
|
@@ -533,7 +533,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
533
533
|
"rows"
|
|
534
534
|
])) : g("v-if", !0),
|
|
535
535
|
!I.value && !G.value.length ? (S(), _("p", Ee, w(T(x).t("platform.screen.WorkflowAdministrationView.there-are-no-pending-tasks", "当前没有待办任务")), 1)) : g("v-if", !0),
|
|
536
|
-
v("details", De, [v("summary", null, w(T(x).t("platform.screen.WorkflowAdministrationView.view-workflow-diagram", "查看流程图")), 1), b(T(
|
|
536
|
+
v("details", De, [v("summary", null, w(T(x).t("platform.screen.WorkflowAdministrationView.view-workflow-diagram", "查看流程图")), 1), b(T(re), {
|
|
537
537
|
presentation: "detail",
|
|
538
538
|
nodes: W.value.nodes,
|
|
539
539
|
routes: W.value.routes,
|
|
@@ -545,7 +545,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
545
545
|
"layout-json",
|
|
546
546
|
"semantic-json"
|
|
547
547
|
])]),
|
|
548
|
-
b(T(
|
|
548
|
+
b(T(u), {
|
|
549
549
|
embedded: "",
|
|
550
550
|
title: T(x).t("platform.screen.WorkflowAdministrationView.administration-audit", "运维审计"),
|
|
551
551
|
columns: [
|
|
@@ -576,7 +576,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
576
576
|
rows: K.value.map((e) => ({
|
|
577
577
|
...e,
|
|
578
578
|
action: D(e.actionCode ?? e.eventType),
|
|
579
|
-
message: T(
|
|
579
|
+
message: T(l)(e.message ?? "", e.messageText, T(x)),
|
|
580
580
|
occurred: Be(e.occurredAt)
|
|
581
581
|
})),
|
|
582
582
|
"fill-height": !1,
|
|
@@ -594,13 +594,13 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
594
594
|
"title",
|
|
595
595
|
"subtitle"
|
|
596
596
|
]),
|
|
597
|
-
b(T(
|
|
597
|
+
b(T(a), {
|
|
598
598
|
open: !!Y.value,
|
|
599
599
|
title: Ve(Y.value?.code ?? ""),
|
|
600
600
|
"before-close": $,
|
|
601
601
|
onClose: t[14] ||= (e) => Y.value = void 0
|
|
602
602
|
}, {
|
|
603
|
-
operation: E(() => [b(T(
|
|
603
|
+
operation: E(() => [b(T(p), {
|
|
604
604
|
type: "primary",
|
|
605
605
|
danger: "",
|
|
606
606
|
loading: F.value,
|
|
@@ -609,7 +609,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
609
609
|
}, {
|
|
610
610
|
default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.confirm-operation", "确认操作")), 1)]),
|
|
611
611
|
_: 1
|
|
612
|
-
}, 8, ["loading", "disabled"]), b(T(
|
|
612
|
+
}, 8, ["loading", "disabled"]), b(T(p), {
|
|
613
613
|
disabled: F.value,
|
|
614
614
|
onClick: t[13] ||= (e) => {
|
|
615
615
|
$().then((e) => {
|
|
@@ -630,7 +630,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
|
|
|
630
630
|
v("label", ke, [b(T(d), { required: "" }, {
|
|
631
631
|
default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.administration-reason", "运维原因")), 1)]),
|
|
632
632
|
_: 1
|
|
633
|
-
}), b(T(
|
|
633
|
+
}), b(T(le), {
|
|
634
634
|
value: J.value,
|
|
635
635
|
"onUpdate:value": t[12] ||= (e) => J.value = e,
|
|
636
636
|
disabled: F.value,
|