@ximatai/muyun-web-app 0.26.21 → 0.26.23

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