@ximatai/muyun-web-app 0.26.22 → 0.26.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/{BusinessActivityLogView-CXBpVbZW.js → BusinessActivityLogView-DQ5_VmLp.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-DToyqP9V.js → BusinessLogListDrawer-BnucgqNA.js} +116 -116
  3. package/dist/{CodeConfigurationView-DAdbnF2Y.js → CodeConfigurationView-CtQjmpLz.js} +527 -527
  4. package/dist/{ConfigurationTranslationView-D1aLZQlx.js → ConfigurationTranslationView-BiYn2MJx.js} +26 -26
  5. package/dist/{LoginAuditLogView-DRxp6BbU.js → LoginAuditLogView-BIz1LVC3.js} +2 -2
  6. package/dist/ModuleActionManagementView-0_ek9yag.js +780 -0
  7. package/dist/{ModuleGovernanceView-C7V5KQcA.js → ModuleGovernanceView-DEDF61vj.js} +3061 -3061
  8. package/dist/{RequestErrorLogView-S6O4ha82.js → RequestErrorLogView-HatmiK8_.js} +2 -2
  9. package/dist/RoleDetailWorkspaceView-BzzoarpR.js +1435 -0
  10. package/dist/{RuntimeLogView-BuF-xgEc.js → RuntimeLogView-Vdt6SWK6.js} +65 -65
  11. package/dist/{WorkflowAdministrationView-DkK3Wybi.js → WorkflowAdministrationView-Dlw2ng0N.js} +193 -193
  12. package/dist/{WorkflowConfigurationView-8DFNdIyI.js → WorkflowConfigurationView-j2xnGmkM.js} +39 -39
  13. package/dist/{WorkflowWorkbenchView-CAloU49z.js → WorkflowWorkbenchView-Nv4mvTTP.js} +122 -122
  14. package/dist/{codeConfiguration-BV9yki1E.js → codeConfiguration-B_z1qQvB.js} +43 -43
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +1344 -818
  17. package/dist/moduleMenuWorkspace-1N0U7QW9.js +626 -0
  18. package/dist/{platform-components-C9cG_1E2.js → platform-components-Xb5qgsXU.js} +3088 -2999
  19. package/dist/{platform-workbench-BSTroBaq.js → platform-workbench-VhgKhPLI.js} +5106 -5031
  20. package/dist/record-read.js +2 -0
  21. package/dist/recordReadEntry-CxDHM44F.js +152 -0
  22. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +6 -0
  23. package/dist/types/app/ExternalIdentityBindings.vue.d.ts +8 -0
  24. package/dist/types/app/ExternalProvisioningConfirmation.vue.d.ts +15 -0
  25. package/dist/types/app/LoginView.vue.d.ts +3 -1
  26. package/dist/types/app/WeLinkQrCode.vue.d.ts +11 -0
  27. package/dist/types/app/externalLoginReturn.d.ts +38 -0
  28. package/dist/types/app/useExternalLoginHost.d.ts +27 -0
  29. package/dist/types/app/weLinkQrCode.d.ts +22 -0
  30. package/dist/types/consumer/index.d.ts +7 -2
  31. package/dist/types/consumer/recordRead.d.ts +6 -0
  32. package/dist/types/dynamic-page-runtime/ManagedDetailRelationInlineSurface.vue.d.ts +1 -0
  33. package/dist/types/dynamic-page-runtime/ManagedDetailRelationSurface.vue.d.ts +1 -0
  34. package/dist/types/dynamic-page-runtime/ModulePageBusinessSession.d.ts +4 -0
  35. package/dist/types/dynamic-page-runtime/ModulePageDetailRelations.vue.d.ts +1 -0
  36. package/dist/types/dynamic-page-runtime/ModulePageHostRuntime.vue.d.ts +11 -15
  37. package/dist/types/dynamic-page-runtime/composables/useModulePageDetailActionRuntime.d.ts +2 -0
  38. package/dist/types/dynamic-page-runtime/useModulePageSession.d.ts +2 -0
  39. package/dist/types/platform-admin-runtime/job/ScheduledActionTargetFields.vue.d.ts +7 -0
  40. package/dist/types/platform-admin-runtime/scheduledActionPlanPageEnhancement.d.ts +3 -0
  41. package/dist/types/platform-components/BusinessNotificationCard.vue.d.ts +30 -0
  42. package/dist/types/platform-components/BusinessNotificationPanel.vue.d.ts +4 -39
  43. package/dist/types/platform-components/FileTransferUploader.vue.d.ts +1 -1
  44. package/dist/types/platform-components/RecordExplorerPanel.vue.d.ts +8 -17
  45. package/dist/types/platform-components/RecordFileReferenceTransfer.vue.d.ts +2 -0
  46. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  47. package/dist/types/platform-components/SingleImageFileReferenceField.vue.d.ts +4 -0
  48. package/dist/types/platform-components/fileReferenceTransfer.d.ts +9 -2
  49. package/dist/types/platform-components/managementWorkspaceContext.d.ts +2 -1
  50. package/dist/types/platform-components/useNotificationDeckMotion.d.ts +7 -0
  51. package/dist/types/views/businessRuleGovernance.d.ts +1 -0
  52. package/dist/types/web-contracts/index.d.ts +71 -2
  53. package/dist/types/web-core/clients.d.ts +11 -1
  54. package/dist/{useWorkflowConfigurationContext-ClwD0BWE.js → useWorkflowConfigurationContext-BLFXzHwn.js} +8 -8
  55. package/dist/{workspaceViews-Cvi7uakV.js → workspaceViews-Cas3PR5B.js} +1035 -879
  56. package/package.json +5 -1
  57. package/dist/ModuleActionManagementView-D4oXCnW2.js +0 -755
  58. package/dist/RoleDetailWorkspaceView-lg4XwTlN.js +0 -1435
  59. package/dist/moduleMenuWorkspace-BBOQrHeT.js +0 -626
@@ -1,5 +1,5 @@
1
- import { D as e, y as t } from "./platform-workbench-BSTroBaq.js";
2
- import { An as n, Ht as r, Kt as i, Ma as a, Mn as o, Mr as ee, Nr as te, Wr as s, Xa as c, _n as l, d as ne, eo as u, er as re, f as ie, fr as ae, gt as oe, it as se, jr as ce, kn as le, m as ue, or as de, p as d, qr as fe, rr as pe, sn as f, ur as p } from "./platform-components-C9cG_1E2.js";
1
+ import { D as e, y as t } from "./platform-workbench-VhgKhPLI.js";
2
+ import { An as n, Gr as r, Ht as i, Jr as a, Kt as o, Mn as s, Mr as c, Na as l, Nr as ee, Za as te, _n as u, d as ne, dr as d, er as re, f as ie, gt as ae, ir as oe, it as se, jr as ce, kn as le, m as ue, p as f, pr as de, sn as p, sr as fe, to as pe } from "./platform-components-Xb5qgsXU.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,201 +11,201 @@ 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__*/ ae(/* @__PURE__ */ x({
14
+ }, De = { class: "workflow-map" }, Oe = { key: 0 }, ke = { class: "workflow-field" }, D = /*#__PURE__*/ de(/* @__PURE__ */ x({
15
15
  name: "WorkflowAdministrationView",
16
16
  __name: "WorkflowAdministrationView",
17
- setup(ae) {
18
- let x = c();
17
+ setup(de) {
18
+ let x = te();
19
19
  function D(e) {
20
20
  return ue(e, x);
21
21
  }
22
- let O = fe({ 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, a(t.title, t.titleText, x)]))), V = m(() => A.value ? u(O.http, { "X-MuYun-Tenant-Id": A.value }) : O.http), Ae = s({
22
+ let O = a({ moduleAlias: "platform.workflow_admin" }), Ae = t(), k = C(), A = C(""), j = C(""), M = C("running"), N = C(1), P = C(!1), F = C(!1), I = C(""), L = C(""), R = C({}), z = m(() => Object.fromEntries(Object.entries(R.value).map(([e, t]) => [e, l(t.title, t.titleText, x)]))), B = m(() => k.value ? pe(O.http, { "X-MuYun-Tenant-Id": k.value }) : O.http), je = r({
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(() => ee(V.value)), Z = 0, je = 0;
27
+ }), V = C([]), H = C([]), U = C(), W = C([]), G = C([]), K = C(), q = C(""), J = C(), Y = m(() => c(B.value)), X = 0, Me = 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 = W.value, r = !I.value && H.value.some((e) => t.has(e.moduleAlias)), i = n && t.has(n.instance.moduleAlias), a = Object.keys(z.value).some((e) => t.has(e));
29
+ let t = new Set(e.changes.filter((e) => e.type === "configuration-translations-changed").map((e) => e.moduleAlias)), n = U.value, r = !F.value && V.value.some((e) => t.has(e.moduleAlias)), i = n && t.has(n.instance.moduleAlias), a = Object.keys(R.value).some((e) => t.has(e));
30
30
  if (!r && !i && !a) return;
31
- let o = ++je, ee = Z, s = I.value, c = q.value, ne = k?.value?.userId;
31
+ let o = ++Me, s = X, c = F.value, l = K.value, te = Ae?.value?.userId;
32
32
  try {
33
- let [e, t, l, u] = await Promise.all([
34
- r ? X.value.instances({
35
- moduleAlias: j.value || void 0,
36
- recordId: M.value || void 0,
37
- instanceStatus: N.value,
33
+ let [e, t, u, ne] = await Promise.all([
34
+ r ? Y.value.instances({
35
+ moduleAlias: A.value || void 0,
36
+ recordId: j.value || void 0,
37
+ instanceStatus: M.value,
38
38
  page: {
39
- pageNum: P.value,
39
+ pageNum: N.value,
40
40
  pageSize: 30
41
41
  }
42
42
  }) : void 0,
43
- i && c ? X.value.bundle(c, s) : void 0,
44
- i && c ? X.value.events(c, s) : void 0,
45
- a ? te(V.value).workbenchModules() : void 0
43
+ i && l ? Y.value.bundle(l, c) : void 0,
44
+ i && l ? Y.value.events(l, c) : void 0,
45
+ a ? ee(B.value).workbenchModules() : void 0
46
46
  ]);
47
- if (o !== je || ee !== Z || c !== q.value || s !== I.value || ne !== k?.value?.userId || (u && (z.value = Object.fromEntries(Object.entries(z.value).map(([e, t]) => {
48
- let n = u.modules[e]?.titleText;
49
- return [e, d(t.titleText, n) ? {
47
+ if (o !== Me || s !== X || l !== K.value || c !== F.value || te !== Ae?.value?.userId || (ne && (R.value = Object.fromEntries(Object.entries(R.value).map(([e, t]) => {
48
+ let n = ne.modules[e]?.titleText;
49
+ return [e, f(t.titleText, n) ? {
50
50
  ...t,
51
51
  titleText: n
52
52
  } : t];
53
- }))), e && (H.value = H.value.map((t) => {
53
+ }))), e && (V.value = V.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 d(e.titleText, t?.titleText) ? {
59
+ return f(e.titleText, t?.titleText) ? {
60
60
  ...e,
61
61
  titleText: t?.titleText
62
62
  } : e;
63
63
  })
64
64
  };
65
- })), !n || !t || W.value?.instance.id !== n.instance.id)) return;
66
- W.value = ie(W.value, t), G.value = G.value.map((e) => {
65
+ })), !n || !t || U.value?.instance.id !== n.instance.id)) return;
66
+ U.value = ie(U.value, t), W.value = W.value.map((e) => {
67
67
  let n = t.nodes.find((t) => t.id === e.nodeInstanceId && t.nodeKey === e.nodeKey);
68
- return d(e.nodeTitleText, n?.nodeTitleText) ? {
68
+ return f(e.nodeTitleText, n?.nodeTitleText) ? {
69
69
  ...e,
70
70
  nodeTitleText: n?.nodeTitleText
71
71
  } : e;
72
- }), K.value = K.value.map((e) => {
73
- let t = l?.find((t) => t.id === e.id);
74
- return d(e.messageText, t?.messageText) ? {
72
+ }), G.value = G.value.map((e) => {
73
+ let t = u?.find((t) => t.id === e.id);
74
+ return f(e.messageText, t?.messageText) ? {
75
75
  ...e,
76
76
  messageText: t?.messageText
77
77
  } : e;
78
78
  });
79
79
  } catch (e) {
80
- l(e, {
80
+ u(e, {
81
81
  source: "workflow-text-resources",
82
82
  phase: "load"
83
83
  });
84
84
  }
85
85
  });
86
- async function Me() {
87
- F.value || Y.value && !await $() || await Q();
86
+ async function Ne() {
87
+ P.value || J.value && !await $() || await Z();
88
88
  }
89
- async function Q() {
90
- let e = ++Z;
91
- F.value = !0, L.value = "", q.value = void 0, W.value = void 0, G.value = [], K.value = [], Y.value = void 0;
89
+ async function Z() {
90
+ let e = ++X;
91
+ P.value = !0, I.value = "", K.value = void 0, U.value = void 0, W.value = [], G.value = [], J.value = void 0;
92
92
  try {
93
- if (I.value) {
94
- if (!j.value.trim()) {
95
- U.value = [];
93
+ if (F.value) {
94
+ if (!A.value.trim()) {
95
+ H.value = [];
96
96
  return;
97
97
  }
98
- let t = await X.value.history({
99
- moduleAlias: j.value,
100
- recordId: M.value || void 0,
98
+ let t = await Y.value.history({
99
+ moduleAlias: A.value,
100
+ recordId: j.value || void 0,
101
101
  page: {
102
- pageNum: P.value,
102
+ pageNum: N.value,
103
103
  pageSize: 30
104
104
  }
105
105
  });
106
- e === Z && (U.value = t);
106
+ e === X && (H.value = t);
107
107
  } else {
108
- let t = await X.value.instances({
109
- moduleAlias: j.value || void 0,
110
- recordId: M.value || void 0,
111
- instanceStatus: N.value,
108
+ let t = await Y.value.instances({
109
+ moduleAlias: A.value || void 0,
110
+ recordId: j.value || void 0,
111
+ instanceStatus: M.value,
112
112
  page: {
113
- pageNum: P.value,
113
+ pageNum: N.value,
114
114
  pageSize: 30
115
115
  }
116
116
  });
117
- e === Z && (H.value = t);
117
+ e === X && (V.value = t);
118
118
  }
119
119
  } catch (t) {
120
- if (e !== Z) return;
121
- L.value = x.t("platform.screen.WorkflowAdministrationView.load-failed", "流程加载失败,请重试。"), H.value = [], U.value = [], l(t, {
120
+ if (e !== X) return;
121
+ I.value = x.t("platform.screen.WorkflowAdministrationView.load-failed", "流程加载失败,请重试。"), V.value = [], H.value = [], u(t, {
122
122
  source: "workflow-admin",
123
123
  phase: "load"
124
124
  });
125
125
  } finally {
126
- e === Z && (F.value = !1);
126
+ e === X && (P.value = !1);
127
127
  }
128
128
  }
129
- async function Ne(e) {
130
- if (F.value || Y.value && !await $()) return;
131
- let t = ++Z;
132
- F.value = !0, q.value = e, Y.value = void 0, W.value = void 0, G.value = [], K.value = [], R.value = "";
129
+ async function Pe(e) {
130
+ if (P.value || J.value && !await $()) return;
131
+ let t = ++X;
132
+ P.value = !0, K.value = e, J.value = void 0, U.value = void 0, W.value = [], G.value = [], L.value = "";
133
133
  try {
134
- let [n, r] = await Promise.all([X.value.bundle(e, I.value), X.value.events(e, I.value)]), i = I.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;
134
+ let [n, r] = await Promise.all([Y.value.bundle(e, F.value), Y.value.events(e, F.value)]), i = F.value || n.instance?.instanceStatus !== "running" ? [] : await Y.value.activeTasks(e);
135
+ if (t !== X) return;
136
+ U.value = n, G.value = r, W.value = i;
137
137
  } catch (e) {
138
- if (t !== Z) return;
139
- R.value = x.t("platform.screen.WorkflowAdministrationView.detail-load-failed", "流程详情加载失败,请重试。"), l(e, {
138
+ if (t !== X) return;
139
+ L.value = x.t("platform.screen.WorkflowAdministrationView.detail-load-failed", "流程详情加载失败,请重试。"), u(e, {
140
140
  source: "workflow-admin",
141
141
  phase: "load"
142
142
  });
143
143
  } finally {
144
- t === Z && (F.value = !1);
144
+ t === X && (P.value = !1);
145
145
  }
146
146
  }
147
- async function Pe(e = !1) {
148
- F.value || Y.value && !await $() || (Y.value = void 0, e && (j.value = "", M.value = "", N.value = "running"), P.value === 1 ? await Q() : P.value = 1);
147
+ async function Fe(e = !1) {
148
+ P.value || J.value && !await $() || (J.value = void 0, e && (A.value = "", j.value = "", M.value = "running"), N.value === 1 ? await Z() : N.value = 1);
149
149
  }
150
- async function Fe() {
151
- if (!F.value && Y.value && q.value && J.value.trim()) {
152
- F.value = !0;
150
+ async function Ie() {
151
+ if (!P.value && J.value && K.value && q.value.trim()) {
152
+ P.value = !0;
153
153
  try {
154
154
  if (!await n({
155
- title: x.t("platform.screen.WorkflowAdministrationView.confirm-action-title", "确认{operation}?", { operation: Ve(Y.value.code) }),
155
+ title: x.t("platform.screen.WorkflowAdministrationView.confirm-action-title", "确认{operation}?", { operation: Ve(J.value.code) }),
156
156
  content: x.t("platform.screen.WorkflowAdministrationView.confirm-action-content", "{impact} 原因:{reason}", {
157
- impact: He(Y.value.code),
158
- reason: J.value.trim()
157
+ impact: He(J.value.code),
158
+ reason: q.value.trim()
159
159
  }),
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), le(x.t("platform.screen.WorkflowAdministrationView.operation-completed", "运维操作已完成并记录审计")), await Q();
163
+ await Y.value.execute(K.value, J.value.code, q.value, J.value.taskId), le(x.t("platform.screen.WorkflowAdministrationView.operation-completed", "运维操作已完成并记录审计")), await Z();
164
164
  } catch (e) {
165
- l(e, {
165
+ u(e, {
166
166
  source: "workflow-admin",
167
167
  phase: "action"
168
168
  });
169
169
  } finally {
170
- F.value = !1;
170
+ P.value = !1;
171
171
  }
172
172
  }
173
173
  }
174
- ge(A, async (e, t, n) => {
174
+ ge(k, async (e, t, n) => {
175
175
  let r = !0;
176
176
  n(() => {
177
177
  r = !1;
178
- }), z.value = {}, j.value = "", M.value = "", P.value = 1;
178
+ }), R.value = {}, A.value = "", j.value = "", N.value = 1;
179
179
  try {
180
- let e = await te(V.value).workbenchModules();
181
- r && (z.value = e.modules ?? {});
180
+ let e = await ee(B.value).workbenchModules();
181
+ r && (R.value = e.modules ?? {});
182
182
  } catch (e) {
183
- r && l(e, {
183
+ r && u(e, {
184
184
  source: "workflow-module-titles",
185
185
  phase: "load"
186
186
  });
187
187
  }
188
188
  }, { immediate: !0 }), ge([
189
- A,
190
- I,
191
- P
192
- ], () => void Me(), { immediate: !0 });
193
- let Ie = m(() => I.value ? U.value.map((e) => ({
189
+ k,
190
+ F,
191
+ N
192
+ ], () => void Ne(), { immediate: !0 });
193
+ let Q = m(() => F.value ? H.value.map((e) => ({
194
194
  ...e,
195
195
  id: e.id,
196
- moduleTitle: B.value[e.moduleAlias] ?? e.moduleAlias,
196
+ moduleTitle: z.value[e.moduleAlias] ?? e.moduleAlias,
197
197
  status: D(e.instanceStatus),
198
198
  active: D("archived"),
199
199
  assignees: "—",
200
200
  starter: e.startedByTitle ?? "—",
201
201
  started: Be(e.startedAt)
202
- })) : H.value.map((e) => ({
202
+ })) : V.value.map((e) => ({
203
203
  ...e,
204
204
  id: e.instanceId,
205
- moduleTitle: B.value[e.moduleAlias] ?? e.moduleAlias,
205
+ moduleTitle: z.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) => a(e.title, e.titleText, x)).join("、") : e.activeNodeTitles.join("、"),
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)
@@ -260,7 +260,7 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
260
260
  key: "assigneeTitle",
261
261
  title: x.t("platform.screen.WorkflowAdministrationView.processors", "办理人"),
262
262
  dataIndex: "assigneeTitle"
263
- }]), ze = m(() => [...W.value?.instance?.instanceStatus === "running" ? [{
263
+ }]), ze = m(() => [...U.value?.instance?.instanceStatus === "running" ? [{
264
264
  key: "forceTerminate",
265
265
  title: x.t("platform.screen.WorkflowAdministrationView.terminate", "终止流程"),
266
266
  danger: !0
@@ -279,29 +279,29 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
279
279
  return e === "forceApprove" ? x.t("platform.screen.WorkflowAdministrationView.force-impact", "将替代原办理人推进当前任务,可能触发后续业务动作。") : e === "reset" ? x.t("platform.screen.WorkflowAdministrationView.reset-impact", "将归档当前流程并清除业务审批状态,允许重新发起。") : x.t("platform.screen.WorkflowAdministrationView.terminate-impact", "将终止当前流程并取消未完成任务。");
280
280
  }
281
281
  function Ue(e, t) {
282
- Y.value = {
282
+ J.value = {
283
283
  code: e,
284
284
  taskId: t
285
- }, J.value = "";
285
+ }, q.value = "";
286
286
  }
287
- ce(() => x.t("platform.screen.WorkflowAdministrationView.workflow-administration", "工作流运维"), () => !!(Y.value && J.value.trim()), () => F.value);
287
+ ce(() => x.t("platform.screen.WorkflowAdministrationView.workflow-administration", "工作流运维"), () => !!(J.value && q.value.trim()), () => P.value);
288
288
  async function $() {
289
- if (F.value) return !1;
290
- let e = Y.value, t = Z;
291
- return (!J.value.trim() || await n({
289
+ if (P.value) return !1;
290
+ let e = J.value, t = X;
291
+ return (!q.value.trim() || await n({
292
292
  title: x.t("platform.screen.WorkflowAdministrationView.discard-operation", "放弃未执行的运维操作?"),
293
293
  danger: !0,
294
294
  okText: x.t("platform.screen.WorkflowAdministrationView.discard", "放弃填写")
295
- }, x)) && !F.value && t === Z && e === Y.value;
295
+ }, x)) && !P.value && t === X && e === J.value;
296
296
  }
297
297
  async function We() {
298
- return !Y.value && !F.value;
298
+ return !J.value && !P.value;
299
299
  }
300
300
  function Ge(e) {
301
301
  return e.title ?? e.id ?? "";
302
302
  }
303
303
  return (e, t) => (S(), _("section", _e, [
304
- b(T(oe), {
304
+ b(T(ae), {
305
305
  tabs: [{
306
306
  key: "current",
307
307
  title: T(x).t("platform.screen.WorkflowAdministrationView.current-instances", "当前实例")
@@ -309,11 +309,11 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
309
309
  key: "history",
310
310
  title: T(x).t("platform.screen.WorkflowAdministrationView.history", "历史归档")
311
311
  }],
312
- "active-key": I.value ? "history" : "current",
312
+ "active-key": F.value ? "history" : "current",
313
313
  label: T(x).t("platform.screen.WorkflowAdministrationView.workflow-administration-scope", "工作流运维范围"),
314
- disabled: F.value || !!Y.value,
314
+ disabled: P.value || !!J.value,
315
315
  "onUpdate:activeKey": t[0] ||= (e) => {
316
- I.value = e === "history", P.value = 1;
316
+ F.value = e === "history", N.value = 1;
317
317
  }
318
318
  }, null, 8, [
319
319
  "tabs",
@@ -321,46 +321,46 @@ 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(o), {
324
+ I.value ? (S(), h(T(s), {
325
325
  key: 0,
326
326
  title: T(x).t("platform.screen.WorkflowAdministrationView.unable-to-load-workflows", "无法加载流程"),
327
- message: L.value
327
+ message: I.value
328
328
  }, null, 8, ["title", "message"])) : g("v-if", !0),
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(i), {
329
+ F.value && !A.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(o), {
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,
334
- rows: Ie.value,
334
+ rows: Q.value,
335
335
  "clickable-rows": "",
336
- "selected-row-key": q.value,
336
+ "selected-row-key": K.value,
337
337
  pageable: !0,
338
338
  "total-known": !1,
339
- total: (P.value - 1) * 30 + Ie.value.length,
340
- pages: P.value + +(Ie.value.length === 30),
341
- "page-num": P.value,
339
+ total: (N.value - 1) * 30 + Q.value.length,
340
+ pages: N.value + +(Q.value.length === 30),
341
+ "page-num": N.value,
342
342
  "page-size": 30,
343
343
  "page-size-options": [30],
344
- "pagination-disabled": F.value || !!Y.value,
345
- onRowClick: t[7] ||= (e) => Ne(String(e.id)),
346
- onPageChange: t[8] ||= (e) => P.value = e
344
+ "pagination-disabled": P.value || !!J.value,
345
+ onRowClick: t[7] ||= (e) => Pe(String(e.id)),
346
+ onPageChange: t[8] ||= (e) => N.value = e
347
347
  }, {
348
- operations: E(() => [b(T(p), {
349
- loading: F.value,
350
- onClick: Me
348
+ operations: E(() => [b(T(d), {
349
+ loading: P.value,
350
+ onClick: Ne
351
351
  }, {
352
352
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.refresh", "刷新")), 1)]),
353
353
  _: 1
354
354
  }, 8, ["loading"])]),
355
355
  conditions: E(() => [v("div", ye, [
356
- T(k)?.system ? (S(), _("label", be, [b(T(f), null, {
356
+ T(Ae)?.system ? (S(), _("label", be, [b(T(p), null, {
357
357
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.business-tenant", "业务租户")), 1)]),
358
358
  _: 1
359
359
  }), b(T(se), {
360
- value: A.value,
361
- "onUpdate:value": t[1] ||= (e) => A.value = e,
362
- context: T(Ae),
363
- disabled: F.value || !!Y.value,
360
+ value: k.value,
361
+ "onUpdate:value": t[1] ||= (e) => k.value = e,
362
+ context: T(je),
363
+ disabled: P.value || !!J.value,
364
364
  "title-of": Ge,
365
365
  mode: "list"
366
366
  }, null, 8, [
@@ -368,32 +368,32 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
368
368
  "context",
369
369
  "disabled"
370
370
  ])])) : g("v-if", !0),
371
- v("label", xe, [b(T(f), { required: I.value }, {
371
+ v("label", xe, [b(T(p), { required: F.value }, {
372
372
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.business-module", "业务模块")), 1)]),
373
373
  _: 1
374
- }, 8, ["required"]), b(T(de), {
375
- value: j.value,
376
- "onUpdate:value": t[2] ||= (e) => j.value = e,
377
- disabled: F.value || !!Y.value,
374
+ }, 8, ["required"]), b(T(fe), {
375
+ value: A.value,
376
+ "onUpdate:value": t[2] ||= (e) => A.value = e,
377
+ disabled: P.value || !!J.value,
378
378
  "show-search": "",
379
- options: Object.entries(B.value).map(([e, t]) => ({
379
+ options: Object.entries(z.value).map(([e, t]) => ({
380
380
  value: e,
381
381
  label: t
382
382
  })),
383
- placeholder: I.value ? T(x).t("platform.screen.WorkflowAdministrationView.select-a-business-module", "请选择业务模块") : T(x).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
383
+ placeholder: F.value ? T(x).t("platform.screen.WorkflowAdministrationView.select-a-business-module", "请选择业务模块") : T(x).t("platform.screen.WorkflowWorkbenchView.all-business-modules", "全部业务模块")
384
384
  }, null, 8, [
385
385
  "value",
386
386
  "disabled",
387
387
  "options",
388
388
  "placeholder"
389
389
  ])]),
390
- I.value ? g("v-if", !0) : (S(), _("label", Se, [b(T(f), null, {
390
+ F.value ? g("v-if", !0) : (S(), _("label", Se, [b(T(p), null, {
391
391
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.workflow-status", "流程状态")), 1)]),
392
392
  _: 1
393
- }), b(T(de), {
394
- value: N.value,
395
- "onUpdate:value": t[3] ||= (e) => N.value = e,
396
- disabled: F.value || !!Y.value,
393
+ }), b(T(fe), {
394
+ value: M.value,
395
+ "onUpdate:value": t[3] ||= (e) => M.value = e,
396
+ disabled: P.value || !!J.value,
397
397
  options: [
398
398
  {
399
399
  value: "running",
@@ -421,25 +421,25 @@ 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(pe), {
425
- value: M.value,
426
- "onUpdate:value": t[4] ||= (e) => M.value = e,
427
- disabled: F.value || !!Y.value,
424
+ v("label", Ce, [y(w(T(x).t("platform.screen.WorkflowAdministrationView.business-record-identifier", "业务记录标识")), 1), b(T(oe), {
425
+ value: j.value,
426
+ "onUpdate:value": t[4] ||= (e) => j.value = e,
427
+ disabled: P.value || !!J.value,
428
428
  placeholder: T(x).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
- v("div", we, [b(T(p), {
435
- disabled: F.value || I.value && !j.value,
436
- onClick: t[5] ||= (e) => Pe()
434
+ v("div", we, [b(T(d), {
435
+ disabled: P.value || F.value && !A.value,
436
+ onClick: t[5] ||= (e) => Fe()
437
437
  }, {
438
438
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.search", "查询")), 1)]),
439
439
  _: 1
440
- }, 8, ["disabled"]), b(T(p), {
441
- disabled: F.value,
442
- onClick: t[6] ||= (e) => Pe(!0)
440
+ }, 8, ["disabled"]), b(T(d), {
441
+ disabled: P.value,
442
+ onClick: t[6] ||= (e) => Fe(!0)
443
443
  }, {
444
444
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.reset", "重置")), 1)]),
445
445
  _: 1
@@ -457,22 +457,22 @@ 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(r), {
461
- open: !!q.value,
460
+ b(T(i), {
461
+ open: !!K.value,
462
462
  title: T(x).t("platform.screen.WorkflowAdministrationView.workflow-administration-details", "流程运维详情"),
463
- subtitle: W.value ? T(x).t("platform.screen.WorkflowAdministrationView.instance-title", "{module} · {status} · 版本 {version}", {
464
- module: B.value[W.value.instance.moduleAlias] ?? W.value.instance.moduleAlias,
465
- status: D(W.value.instance.instanceStatus),
466
- version: W.value.instance.versionNo
463
+ subtitle: U.value ? T(x).t("platform.screen.WorkflowAdministrationView.instance-title", "{module} · {status} · 版本 {version}", {
464
+ module: z.value[U.value.instance.moduleAlias] ?? U.value.instance.moduleAlias,
465
+ status: D(U.value.instance.instanceStatus),
466
+ version: U.value.instance.versionNo
467
467
  }) : void 0,
468
468
  width: "extraWide",
469
469
  "before-close": We,
470
- onClose: t[11] ||= (e) => q.value = void 0
470
+ onClose: t[11] ||= (e) => K.value = void 0
471
471
  }, {
472
- operation: E(() => [W.value && !I.value ? (S(!0), _(me, { key: 0 }, he(ze.value, (e) => (S(), h(T(p), {
472
+ operation: E(() => [U.value && !F.value ? (S(!0), _(me, { key: 0 }, he(ze.value, (e) => (S(), h(T(d), {
473
473
  key: e.key,
474
474
  danger: e.danger,
475
- disabled: F.value || !!Y.value,
475
+ disabled: P.value || !!J.value,
476
476
  onClick: (t) => Ue(e.key)
477
477
  }, {
478
478
  default: E(() => [y(w(e.title), 1)]),
@@ -481,46 +481,46 @@ 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(p), {
485
- disabled: F.value || !!Y.value,
486
- onClick: t[10] ||= (e) => q.value = void 0
484
+ ]))), 128)) : g("v-if", !0), b(T(d), {
485
+ disabled: P.value || !!J.value,
486
+ onClick: t[10] ||= (e) => K.value = void 0
487
487
  }, {
488
488
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.close-details", "关闭详情")), 1)]),
489
489
  _: 1
490
490
  }, 8, ["disabled"])]),
491
491
  default: E(() => [
492
- R.value ? (S(), h(T(o), {
492
+ L.value ? (S(), h(T(s), {
493
493
  key: 0,
494
494
  title: T(x).t("platform.screen.WorkflowAdministrationView.unable-to-load-details", "无法加载详情"),
495
- message: R.value
495
+ message: L.value
496
496
  }, null, 8, ["title", "message"])) : g("v-if", !0),
497
- R.value ? (S(), h(T(p), {
497
+ L.value ? (S(), h(T(d), {
498
498
  key: 1,
499
- onClick: t[9] ||= (e) => Ne(q.value)
499
+ onClick: t[9] ||= (e) => Pe(K.value)
500
500
  }, {
501
501
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.retry", "重试")), 1)]),
502
502
  _: 1
503
503
  })) : g("v-if", !0),
504
- F.value ? (S(), _("p", Te, w(T(x).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : g("v-if", !0),
505
- W.value ? (S(), _(me, { key: 3 }, [
506
- !I.value && G.value.length ? (S(), h(T(i), {
504
+ P.value ? (S(), _("p", Te, w(T(x).t("platform.screen.WorkflowAdministrationView.loading", "正在加载…")), 1)) : g("v-if", !0),
505
+ U.value ? (S(), _(me, { key: 3 }, [
506
+ !F.value && W.value.length ? (S(), h(T(o), {
507
507
  key: 0,
508
508
  embedded: "",
509
509
  title: T(x).t("platform.screen.WorkflowAdministrationView.current-pending-tasks", "当前待办"),
510
510
  columns: Re.value,
511
- rows: G.value.map((e) => ({
511
+ rows: W.value.map((e) => ({
512
512
  ...e,
513
513
  id: e.taskId,
514
- nodeTitle: T(a)(e.nodeTitle, e.nodeTitleText, T(x))
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(p), {
520
+ rowActions: E(({ record: e }) => [e.canForceApprove ? (S(), h(T(d), {
521
521
  key: 0,
522
522
  danger: "",
523
- disabled: F.value || !!Y.value,
523
+ disabled: P.value || !!J.value,
524
524
  onClick: (t) => Ue("forceApprove", String(e.taskId))
525
525
  }, {
526
526
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.force-processing", "强制办理")), 1)]),
@@ -532,20 +532,20 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
532
532
  "columns",
533
533
  "rows"
534
534
  ])) : g("v-if", !0),
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),
535
+ !F.value && !W.value.length ? (S(), _("p", Ee, w(T(x).t("platform.screen.WorkflowAdministrationView.there-are-no-pending-tasks", "当前没有待办任务")), 1)) : g("v-if", !0),
536
536
  v("details", De, [v("summary", null, w(T(x).t("platform.screen.WorkflowAdministrationView.view-workflow-diagram", "查看流程图")), 1), b(T(ne), {
537
537
  presentation: "detail",
538
- nodes: W.value.nodes,
539
- routes: W.value.routes,
540
- "layout-json": W.value.layoutJson,
541
- "semantic-json": W.value.semanticJson
538
+ nodes: U.value.nodes,
539
+ routes: U.value.routes,
540
+ "layout-json": U.value.layoutJson,
541
+ "semantic-json": U.value.semanticJson
542
542
  }, null, 8, [
543
543
  "nodes",
544
544
  "routes",
545
545
  "layout-json",
546
546
  "semantic-json"
547
547
  ])]),
548
- b(T(i), {
548
+ b(T(o), {
549
549
  embedded: "",
550
550
  title: T(x).t("platform.screen.WorkflowAdministrationView.administration-audit", "运维审计"),
551
551
  columns: [
@@ -573,10 +573,10 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
573
573
  dataIndex: "message"
574
574
  }
575
575
  ],
576
- rows: K.value.map((e) => ({
576
+ rows: G.value.map((e) => ({
577
577
  ...e,
578
578
  action: D(e.actionCode ?? e.eventType),
579
- message: T(a)(e.message ?? "", e.messageText, T(x)),
579
+ message: T(l)(e.message ?? "", e.messageText, T(x)),
580
580
  occurred: Be(e.occurredAt)
581
581
  })),
582
582
  "fill-height": !1,
@@ -594,26 +594,26 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
594
594
  "title",
595
595
  "subtitle"
596
596
  ]),
597
- b(T(r), {
598
- open: !!Y.value,
599
- title: Ve(Y.value?.code ?? ""),
597
+ b(T(i), {
598
+ open: !!J.value,
599
+ title: Ve(J.value?.code ?? ""),
600
600
  "before-close": $,
601
- onClose: t[14] ||= (e) => Y.value = void 0
601
+ onClose: t[14] ||= (e) => J.value = void 0
602
602
  }, {
603
- operation: E(() => [b(T(p), {
603
+ operation: E(() => [b(T(d), {
604
604
  type: "primary",
605
605
  danger: "",
606
- loading: F.value,
607
- disabled: !J.value.trim(),
608
- onClick: Fe
606
+ loading: P.value,
607
+ disabled: !q.value.trim(),
608
+ onClick: Ie
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(p), {
613
- disabled: F.value,
612
+ }, 8, ["loading", "disabled"]), b(T(d), {
613
+ disabled: P.value,
614
614
  onClick: t[13] ||= (e) => {
615
615
  $().then((e) => {
616
- e && (Y.value = void 0);
616
+ e && (J.value = void 0);
617
617
  });
618
618
  }
619
619
  }, {
@@ -621,19 +621,19 @@ var _e = { class: "workflow-admin" }, ve = { key: 1 }, ye = { class: "workflow-q
621
621
  _: 1
622
622
  }, 8, ["disabled"])]),
623
623
  default: E(() => [
624
- W.value ? (S(), _("p", Oe, w(T(x).t("platform.screen.WorkflowAdministrationView.operation-record", "业务:{module} · 记录 {record}", {
625
- module: B.value[W.value.instance.moduleAlias] ?? W.value.instance.moduleAlias,
626
- record: W.value.instance.recordId
624
+ U.value ? (S(), _("p", Oe, w(T(x).t("platform.screen.WorkflowAdministrationView.operation-record", "业务:{module} · 记录 {record}", {
625
+ module: z.value[U.value.instance.moduleAlias] ?? U.value.instance.moduleAlias,
626
+ record: U.value.instance.recordId
627
627
  })), 1)) : g("v-if", !0),
628
- v("p", null, w(He(Y.value?.code ?? "")), 1),
629
- v("p", null, w(T(x).t("platform.screen.WorkflowAdministrationView.operation-version-warning", "当前流程版本:{version}。操作成功后不可直接撤销,并记录操作人、时间和原因。", { version: W.value?.instance.versionNo ?? T(x).t("platform.screen.WorkflowAdministrationView.unknown-version", "未知") })), 1),
630
- v("label", ke, [b(T(f), { required: "" }, {
628
+ v("p", null, w(He(J.value?.code ?? "")), 1),
629
+ v("p", null, w(T(x).t("platform.screen.WorkflowAdministrationView.operation-version-warning", "当前流程版本:{version}。操作成功后不可直接撤销,并记录操作人、时间和原因。", { version: U.value?.instance.versionNo ?? T(x).t("platform.screen.WorkflowAdministrationView.unknown-version", "未知") })), 1),
630
+ v("label", ke, [b(T(p), { required: "" }, {
631
631
  default: E(() => [y(w(T(x).t("platform.screen.WorkflowAdministrationView.administration-reason", "运维原因")), 1)]),
632
632
  _: 1
633
633
  }), b(T(re), {
634
- value: J.value,
635
- "onUpdate:value": t[12] ||= (e) => J.value = e,
636
- disabled: F.value,
634
+ value: q.value,
635
+ "onUpdate:value": t[12] ||= (e) => q.value = e,
636
+ disabled: P.value,
637
637
  "aria-label": T(x).t("platform.screen.WorkflowAdministrationView.administration-reason", "运维原因")
638
638
  }, null, 8, [
639
639
  "value",