@ximatai/muyun-web-app 0.26.24 → 0.26.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/{BusinessActivityLogView-DQ5_VmLp.js → BusinessActivityLogView-a6oZ2t9t.js} +2 -2
  2. package/dist/{BusinessLogListDrawer-BnucgqNA.js → BusinessLogListDrawer-DtSXpK6g.js} +170 -166
  3. package/dist/{CodeConfigurationView-CtQjmpLz.js → CodeConfigurationView-BVu1ZnH-.js} +291 -291
  4. package/dist/{ConfigurationTranslationView-BiYn2MJx.js → ConfigurationTranslationView-Cd8ezR4t.js} +39 -39
  5. package/dist/{LoginAuditLogView-BIz1LVC3.js → LoginAuditLogView-DyvHTCXH.js} +2 -2
  6. package/dist/{ModuleActionManagementView-0_ek9yag.js → ModuleActionManagementView-y3t2YHKF.js} +161 -161
  7. package/dist/{ModuleGovernanceView-DEDF61vj.js → ModuleGovernanceView-BqJq2Pxm.js} +2501 -2501
  8. package/dist/{RequestErrorLogView-HatmiK8_.js → RequestErrorLogView-2iPeAi3b.js} +2 -2
  9. package/dist/{RoleDetailWorkspaceView-BzzoarpR.js → RoleDetailWorkspaceView-G-5VAV_B.js} +79 -79
  10. package/dist/{RuntimeLogView-Vdt6SWK6.js → RuntimeLogView-CulSgS0l.js} +60 -60
  11. package/dist/{WorkflowAdministrationView-Dlw2ng0N.js → WorkflowAdministrationView-y8VBYMLZ.js} +154 -154
  12. package/dist/{WorkflowConfigurationView-j2xnGmkM.js → WorkflowConfigurationView-DpONX2nN.js} +293 -293
  13. package/dist/{WorkflowWorkbenchView-Nv4mvTTP.js → WorkflowWorkbenchView-CGo1eZjr.js} +235 -235
  14. package/dist/{codeConfiguration-B_z1qQvB.js → codeConfiguration-fZiz0PNC.js} +26 -26
  15. package/dist/index.css +1 -1
  16. package/dist/index.js +2195 -1562
  17. package/dist/{moduleMenuWorkspace-1N0U7QW9.js → moduleMenuWorkspace-AZ4G9BpZ.js} +233 -233
  18. package/dist/{platform-components-Xb5qgsXU.js → platform-components-D98pyZ77.js} +3584 -2996
  19. package/dist/{platform-workbench-VhgKhPLI.js → platform-workbench-BBLDvT9V.js} +5542 -5417
  20. package/dist/types/app/CurrentUserProfileDialog.vue.d.ts +4 -1
  21. package/dist/types/app/PersonalAccessTokenDialog.vue.d.ts +15 -0
  22. package/dist/types/app/PersonalAccessTokens.vue.d.ts +8 -0
  23. package/dist/types/app/WorkbenchAccountCenter.vue.d.ts +40 -0
  24. package/dist/types/app/themeSkinPreference.d.ts +2 -2
  25. package/dist/types/app/useCurrentUserProfile.d.ts +1 -0
  26. package/dist/types/app/usePersonalAccessTokenAccess.d.ts +11 -0
  27. package/dist/types/consumer/AppWorkbenchShell.vue.d.ts +20 -4
  28. package/dist/types/consumer/index.d.ts +9 -0
  29. package/dist/types/dynamic-page-runtime/formCreateDefaults.d.ts +3 -0
  30. package/dist/types/platform-admin-runtime/authSession.d.ts +2 -0
  31. package/dist/types/platform-admin-runtime/index.d.ts +1 -1
  32. package/dist/types/platform-components/CronExpressionInput.vue.d.ts +12 -0
  33. package/dist/types/platform-components/DurationSecondsInput.vue.d.ts +10 -0
  34. package/dist/types/platform-components/RecordFormFields.vue.d.ts +2 -2
  35. package/dist/types/platform-components/cronExpression.d.ts +36 -0
  36. package/dist/types/platform-components/durationSeconds.d.ts +31 -0
  37. package/dist/types/platform-components/index.d.ts +6 -0
  38. package/dist/types/platform-workbench/Workbench.vue.d.ts +13 -4
  39. package/dist/types/platform-workbench/WorkbenchGlobalTools.vue.d.ts +5 -0
  40. package/dist/types/platform-workbench/WorkbenchOutlet.vue.d.ts +11 -1
  41. package/dist/types/platform-workbench/index.d.ts +3 -0
  42. package/dist/types/platform-workbench/workbenchAccountMenu.d.ts +33 -0
  43. package/dist/types/platform-workbench/workspaceViewDiscardGuard.d.ts +1 -1
  44. package/dist/types/views/businessLogClient.d.ts +2 -0
  45. package/dist/types/vue-ui-antdv/components/UiInputGroup.vue.d.ts +20 -0
  46. package/dist/types/vue-ui-antdv/components/UiTextArea.vue.d.ts +2 -0
  47. package/dist/types/vue-ui-antdv/index.d.ts +1 -0
  48. package/dist/types/web-contracts/index.d.ts +16 -0
  49. package/dist/types/web-core/clients.d.ts +15 -1
  50. package/dist/{useWorkflowConfigurationContext-BLFXzHwn.js → useWorkflowConfigurationContext-BcK19EXl.js} +8 -8
  51. package/dist/{workspaceViews-Cas3PR5B.js → workspaceViews-Dr7RZXvX.js} +620 -620
  52. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { n as e } from "./rolldown-runtime-BAC7EHh5.js";
2
- import { m as t, ut as n, y as r } from "./platform-workbench-VhgKhPLI.js";
3
- import { $t as i, An as a, Gr as ee, Ht as o, Ia as s, Ja as c, Jr as te, Mn as l, Na as ne, Nn as re, Oa as ie, Ta as ae, Tn as u, U as oe, Ut as se, Vt as d, Wn as ce, Xn as f, Yn as le, Za as ue, _n as de, _t as p, cr as fe, dr as m, en as pe, fa as me, ha as h, ir as g, it as he, jr as ge, ma as _e, pr as ve, r as ye, rt as be, sr as _, ti as xe, to as Se, ur as Ce, v as we, wn as Te, xn as Ee, zn as De } from "./platform-components-Xb5qgsXU.js";
4
- import { a as Oe, c as ke, d as Ae, i as je, l as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./codeConfiguration-B_z1qQvB.js";
2
+ import { dt as t, m as n, y as r } from "./platform-workbench-BBLDvT9V.js";
3
+ import { $a as i, $n as a, $r as ee, Aa as te, G as o, Gt as s, In as c, Ir as l, Jn as ne, Ln as re, Na as ie, On as ae, Pn as oe, Ra as se, Un as ce, Ut as u, Va as le, Wt as ue, Xr as d, _a as de, at as fe, ba as f, bn as pe, er as p, fr as m, gr as h, hr as g, kn as me, lr as _, nn as he, no as ge, oi as _e, oo as ve, ot as ye, pr as be, r as xe, tn as Se, v as Ce, vr as we, wn as Te, ya as Ee, yt as De } from "./platform-components-D98pyZ77.js";
4
+ import { a as Oe, c as ke, d as Ae, i as je, l as Me, n as Ne, o as Pe, p as Fe, r as Ie, s as Le, t as Re, u as ze } from "./codeConfiguration-fZiz0PNC.js";
5
5
  import { Fragment as v, computed as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createSlots as Be, createTextVNode as w, createVNode as T, defineComponent as Ve, inject as He, mergeModels as E, nextTick as Ue, normalizeClass as We, onActivated as D, onBeforeUnmount as Ge, onDeactivated as Ke, onUnmounted as O, openBlock as k, ref as A, renderList as qe, toDisplayString as j, toRaw as Je, unref as M, useModel as Ye, vShow as Xe, watch as Ze, withCtx as N, withDirectives as Qe } from "vue";
6
6
  //#region src/views/CodeRuleFormatEditor.vue?vue&type=script&setup=true&lang.ts
7
7
  var $e = { class: "code-format" }, et = {
@@ -61,7 +61,7 @@ var $e = { class: "code-format" }, et = {
61
61
  }, ht = { class: "code-format__field" }, gt = { class: "code-format__field" }, W = { class: "code-format__sequence-advanced code-format__wide" }, G = { class: "code-format__grid" }, _t = { class: "code-format__field" }, K = { class: "code-format__field" }, vt = { class: "code-format__field" }, q = {
62
62
  key: 0,
63
63
  class: "code-format__help"
64
- }, J = { class: "code-format__field" }, yt = /*#__PURE__*/ ve(/* @__PURE__ */ Ve({
64
+ }, J = { class: "code-format__field" }, yt = /*#__PURE__*/ we(/* @__PURE__ */ Ve({
65
65
  __name: "CodeRuleFormatEditor",
66
66
  props: /*@__PURE__*/ E({
67
67
  sources: {},
@@ -73,10 +73,10 @@ var $e = { class: "code-format" }, et = {
73
73
  }),
74
74
  emits: ["update:rule"],
75
75
  setup(e) {
76
- let t = e, n = Ye(e, "rule"), r = ue(), i = (e, t) => r.t(`platform.code.config.${e}`, t), a = y(() => t.sources.map((e) => ({
76
+ let t = e, n = Ye(e, "rule"), r = ge(), i = (e, t) => r.t(`platform.code.config.${e}`, t), ee = y(() => t.sources.map((e) => ({
77
77
  value: e.fieldName,
78
78
  label: Ie(e, r)
79
- }))), ee = y(() => t.sources.map((e) => ({
79
+ }))), te = y(() => t.sources.map((e) => ({
80
80
  name: e.fieldName,
81
81
  label: Ie(e, r),
82
82
  valueType: e.type
@@ -88,13 +88,13 @@ var $e = { class: "code-format" }, et = {
88
88
  SEQUENCE: "流水号",
89
89
  VALUE_MAPPING: "值映射",
90
90
  FORMULA: "公式"
91
- }, s = y(() => Ne.map((e) => ({
91
+ }, c = y(() => Ne.map((e) => ({
92
92
  value: e,
93
93
  label: i(`segment.${e}`, o[e])
94
- }))), c = (e, t) => Object.entries(t).map(([t, n]) => ({
94
+ }))), l = (e, t) => Object.entries(t).map(([t, n]) => ({
95
95
  value: t,
96
96
  label: i(`enum.${e}.${t}`, n)
97
- })), te = [
97
+ })), ne = [
98
98
  "YY",
99
99
  "YYYY",
100
100
  "YYMM",
@@ -105,14 +105,14 @@ var $e = { class: "code-format" }, et = {
105
105
  "YYYY_MM_DD",
106
106
  "YYYY_MM_DD_HH_MM_SS",
107
107
  "HHMMSS"
108
- ], l = /* @__PURE__ */ new WeakMap(), ne = 0, re = /* @__PURE__ */ new WeakMap(), ie = null;
108
+ ], re = /* @__PURE__ */ new WeakMap(), ie = 0, ae = /* @__PURE__ */ new WeakMap(), oe = null;
109
109
  Ze(() => n.value, () => {
110
- ie = null;
110
+ oe = null;
111
111
  });
112
- function ae(e) {
113
- return e = Je(e), l.has(e) || l.set(e, ++ne), l.get(e);
112
+ function se(e) {
113
+ return e = Je(e), re.has(e) || re.set(e, ++ie), re.get(e);
114
114
  }
115
- function oe(e) {
115
+ function ce(e) {
116
116
  return [
117
117
  "FIELD_VALUE",
118
118
  "CONTEXT_VAR",
@@ -120,23 +120,23 @@ var $e = { class: "code-format" }, et = {
120
120
  "FORMULA"
121
121
  ].includes(e.segmentType);
122
122
  }
123
- function d(e) {
123
+ function u(e) {
124
124
  return !!n.value.sequencePolicy && !["CONSTANT", "SEQUENCE"].includes(e.segmentType);
125
125
  }
126
- let ce = y(() => r.t("platform.code.config.inherited-sequence-length", "继承流水长度:{length}", { length: n.value.sequencePolicy?.sequenceLength ?? "—" })), f = y(() => {
126
+ let le = y(() => r.t("platform.code.config.inherited-sequence-length", "继承流水长度:{length}", { length: n.value.sequencePolicy?.sequenceLength ?? "—" })), ue = y(() => {
127
127
  let e = n.value.sequencePolicy?.sequenceLength;
128
128
  return e == null || !Number.isInteger(e) || e < 1 || e > 18 ? "" : r.t("platform.code.config.sequence-limit-hint", "按 {length} 位流水,最大 {maximum}", {
129
129
  length: e,
130
130
  maximum: "9".repeat(e)
131
131
  });
132
132
  });
133
- function de(e) {
133
+ function d(e) {
134
134
  return e.length != null || !!e.separator || (e.padMode ?? "NONE") !== "NONE" || (e.truncatePolicy ?? "NONE") !== "NONE" || (e.nullPolicy ?? "ERROR") !== "ERROR" || !!e.sequenceBasis;
135
135
  }
136
- function p(e) {
136
+ function de(e) {
137
137
  return e.segmentType === "SEQUENCE" && e.length != null ? r.t("platform.code.config.sequence-length-override-summary", "长度覆盖 {length} 位", { length: e.length }) : i("configured", "已配置");
138
138
  }
139
- let pe = y(() => {
139
+ let fe = y(() => {
140
140
  let e = n.value.sequencePolicy;
141
141
  if (!e) return "";
142
142
  let t = [
@@ -147,48 +147,48 @@ var $e = { class: "code-format" }, et = {
147
147
  ].filter(Boolean);
148
148
  return t.length ? t.join(" · ") : i("defaults", "默认设置");
149
149
  });
150
- function me(e) {
150
+ function f(e) {
151
151
  return e === "" || e == null ? null : Number(e);
152
152
  }
153
- function h() {
154
- n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??= ie ?? ze() : (ie = n.value.sequencePolicy ?? ie, n.value.sequencePolicy = null));
153
+ function pe() {
154
+ n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??= oe ?? ze() : (oe = n.value.sequencePolicy ?? oe, n.value.sequencePolicy = null));
155
155
  }
156
- function he(e, t) {
156
+ function p(e, t) {
157
157
  if (!n.value) return;
158
158
  let r = n.value.segments[e];
159
159
  if (r.segmentType === t) return;
160
- let i = re.get(Je(r)) ?? /* @__PURE__ */ new Map();
160
+ let i = ae.get(Je(r)) ?? /* @__PURE__ */ new Map();
161
161
  i.set(r.segmentType, JSON.parse(JSON.stringify(r)));
162
162
  let a = {
163
163
  ...i.get(t) ?? Me(t),
164
164
  id: r.id,
165
165
  version: r.version
166
166
  };
167
- l.set(a, ae(r)), re.set(a, i), n.value.segments[e] = a, h();
167
+ re.set(a, se(r)), ae.set(a, i), n.value.segments[e] = a, pe();
168
168
  }
169
- function ge() {
170
- n.value && (n.value.segments.push(Me()), h());
169
+ function g() {
170
+ n.value && (n.value.segments.push(Me()), pe());
171
171
  }
172
- function _e(e, t) {
172
+ function he(e, t) {
173
173
  let r = n.value?.segments;
174
174
  if (!r || e + t < 0 || e + t >= r.length) return;
175
175
  let [i] = r.splice(e, 1);
176
176
  i && r.splice(e + t, 0, i);
177
177
  }
178
- function ve(e) {
179
- n.value?.segments.splice(e, 1), h();
178
+ function _e(e) {
179
+ n.value?.segments.splice(e, 1), pe();
180
180
  }
181
181
  return (r, o) => (k(), S("section", $e, [
182
- T(M(se), { title: i("format", "编码格式") }, null, 8, ["title"]),
183
- C("ol", et, [(k(!0), S(v, null, qe(n.value.segments, (r, l) => (k(), S("li", { key: ae(r) }, [
182
+ T(M(s), { title: i("format", "编码格式") }, null, 8, ["title"]),
183
+ C("ol", et, [(k(!0), S(v, null, qe(n.value.segments, (r, s) => (k(), S("li", { key: se(r) }, [
184
184
  C("div", tt, [
185
- C("span", P, j(l + 1), 1),
186
- T(M(_), {
185
+ C("span", P, j(s + 1), 1),
186
+ T(M(m), {
187
187
  "aria-label": i("segment-type", "片段类型"),
188
188
  value: r.segmentType,
189
189
  disabled: !e.editable,
190
- options: s.value,
191
- "onUpdate:value": (e) => he(l, e)
190
+ options: c.value,
191
+ "onUpdate:value": (e) => p(s, e)
192
192
  }, null, 8, [
193
193
  "aria-label",
194
194
  "value",
@@ -196,7 +196,7 @@ var $e = { class: "code-format" }, et = {
196
196
  "options",
197
197
  "onUpdate:value"
198
198
  ]),
199
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (k(), b(M(le), {
199
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (k(), b(M(a), {
200
200
  key: 0,
201
201
  label: i("bounded-help-title", "片段长度说明")
202
202
  }, {
@@ -204,37 +204,37 @@ var $e = { class: "code-format" }, et = {
204
204
  _: 1
205
205
  }, 8, ["label"])) : x("v-if", !0),
206
206
  C("div", nt, [
207
- T(M(m), {
207
+ T(M(h), {
208
208
  type: "text",
209
209
  "icon-name": "up",
210
210
  "icon-only": "",
211
211
  size: "small",
212
212
  title: i("up", "上移"),
213
213
  "aria-label": i("up", "上移"),
214
- disabled: !e.editable || l === 0,
215
- onClick: (e) => _e(l, -1)
214
+ disabled: !e.editable || s === 0,
215
+ onClick: (e) => he(s, -1)
216
216
  }, null, 8, [
217
217
  "title",
218
218
  "aria-label",
219
219
  "disabled",
220
220
  "onClick"
221
221
  ]),
222
- T(M(m), {
222
+ T(M(h), {
223
223
  type: "text",
224
224
  "icon-name": "down",
225
225
  "icon-only": "",
226
226
  size: "small",
227
227
  title: i("down", "下移"),
228
228
  "aria-label": i("down", "下移"),
229
- disabled: !e.editable || l === n.value.segments.length - 1,
230
- onClick: (e) => _e(l, 1)
229
+ disabled: !e.editable || s === n.value.segments.length - 1,
230
+ onClick: (e) => he(s, 1)
231
231
  }, null, 8, [
232
232
  "title",
233
233
  "aria-label",
234
234
  "disabled",
235
235
  "onClick"
236
236
  ]),
237
- T(M(m), {
237
+ T(M(h), {
238
238
  type: "text",
239
239
  "icon-name": "delete",
240
240
  "icon-only": "",
@@ -242,7 +242,7 @@ var $e = { class: "code-format" }, et = {
242
242
  title: i("remove", "删除"),
243
243
  "aria-label": i("remove", "删除"),
244
244
  disabled: !e.editable,
245
- onClick: (e) => ve(l)
245
+ onClick: (e) => _e(s)
246
246
  }, null, 8, [
247
247
  "title",
248
248
  "aria-label",
@@ -252,7 +252,7 @@ var $e = { class: "code-format" }, et = {
252
252
  ])
253
253
  ]),
254
254
  r.segmentType === "SEQUENCE" ? x("v-if", !0) : (k(), S("div", F, [
255
- r.segmentType === "CONSTANT" ? (k(), S("label", I, [w(j(i("constant", "固定文字")), 1), T(M(g), {
255
+ r.segmentType === "CONSTANT" ? (k(), S("label", I, [w(j(i("constant", "固定文字")), 1), T(M(_), {
256
256
  value: r.fixedValue,
257
257
  "onUpdate:value": (e) => r.fixedValue = e,
258
258
  disabled: !e.editable
@@ -261,18 +261,18 @@ var $e = { class: "code-format" }, et = {
261
261
  "onUpdate:value",
262
262
  "disabled"
263
263
  ])])) : x("v-if", !0),
264
- ["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (k(), S("label", rt, [w(j(i("source", "来源字段")), 1), T(M(_), {
264
+ ["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (k(), S("label", rt, [w(j(i("source", "来源字段")), 1), T(M(m), {
265
265
  value: r.sourceRef,
266
266
  "onUpdate:value": (e) => r.sourceRef = e,
267
267
  disabled: !e.editable,
268
- options: a.value
268
+ options: ee.value
269
269
  }, null, 8, [
270
270
  "value",
271
271
  "onUpdate:value",
272
272
  "disabled",
273
273
  "options"
274
274
  ])])) : x("v-if", !0),
275
- r.segmentType === "CONTEXT_VAR" ? (k(), S("label", it, [w(j(i("context", "动作传入的上下文名称")), 1), (t.trigger ?? n.value.fieldTrigger ?? "SAVE") === "EXPLICIT" ? (k(), b(M(g), {
275
+ r.segmentType === "CONTEXT_VAR" ? (k(), S("label", it, [w(j(i("context", "动作传入的上下文名称")), 1), (t.trigger ?? n.value.fieldTrigger ?? "SAVE") === "EXPLICIT" ? (k(), b(M(_), {
276
276
  key: 1,
277
277
  value: r.sourceRef,
278
278
  "onUpdate:value": (e) => r.sourceRef = e,
@@ -281,23 +281,23 @@ var $e = { class: "code-format" }, et = {
281
281
  "value",
282
282
  "onUpdate:value",
283
283
  "disabled"
284
- ])) : (k(), b(M(_), {
284
+ ])) : (k(), b(M(m), {
285
285
  key: 0,
286
286
  value: r.sourceRef,
287
287
  "onUpdate:value": (e) => r.sourceRef = e,
288
288
  disabled: !e.editable,
289
- options: a.value
289
+ options: ee.value
290
290
  }, null, 8, [
291
291
  "value",
292
292
  "onUpdate:value",
293
293
  "disabled",
294
294
  "options"
295
295
  ]))])) : x("v-if", !0),
296
- r.segmentType === "SYSTEM_TIME" ? (k(), S("label", at, [w(j(i("date-format", "时间格式")), 1), T(M(_), {
296
+ r.segmentType === "SYSTEM_TIME" ? (k(), S("label", at, [w(j(i("date-format", "时间格式")), 1), T(M(m), {
297
297
  value: r.dateFormat,
298
298
  "onUpdate:value": (e) => r.dateFormat = e,
299
299
  disabled: !e.editable,
300
- options: te.map((e) => ({
300
+ options: ne.map((e) => ({
301
301
  value: e,
302
302
  label: e
303
303
  }))
@@ -307,47 +307,47 @@ var $e = { class: "code-format" }, et = {
307
307
  "disabled",
308
308
  "options"
309
309
  ])])) : x("v-if", !0),
310
- r.segmentType === "FORMULA" ? (k(), S("label", ot, [w(j(i("formula", "返回编码片段的公式")), 1), T(M(u), {
310
+ r.segmentType === "FORMULA" ? (k(), S("label", ot, [w(j(i("formula", "返回编码片段的公式")), 1), T(M(me), {
311
311
  value: r.formulaExpr ?? "",
312
312
  "onUpdate:value": (e) => r.formulaExpr = e,
313
313
  disabled: !e.editable,
314
- fields: ee.value
314
+ fields: te.value
315
315
  }, null, 8, [
316
316
  "value",
317
317
  "onUpdate:value",
318
318
  "disabled",
319
319
  "fields"
320
320
  ])])) : x("v-if", !0),
321
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (k(), S("label", st, [w(j(i("length", "片段长度")) + " ", 1), T(M(g), {
321
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (k(), S("label", st, [w(j(i("length", "片段长度")) + " ", 1), T(M(_), {
322
322
  value: r.length ?? void 0,
323
323
  type: "number",
324
324
  disabled: !e.editable,
325
- "onUpdate:value": (e) => r.length = me(e)
325
+ "onUpdate:value": (e) => r.length = f(e)
326
326
  }, null, 8, [
327
327
  "value",
328
328
  "disabled",
329
329
  "onUpdate:value"
330
330
  ])])) : x("v-if", !0)
331
331
  ])),
332
- C("details", L, [C("summary", null, [w(j(i("advanced-format", "高级设置")), 1), de(r) ? (k(), S("span", R, " · " + j(p(r)), 1)) : x("v-if", !0)]), C("div", z, [
332
+ C("details", L, [C("summary", null, [w(j(i("advanced-format", "高级设置")), 1), d(r) ? (k(), S("span", R, " · " + j(de(r)), 1)) : x("v-if", !0)]), C("div", z, [
333
333
  r.segmentType !== "SEQUENCE" && !r.length ? (k(), S("p", ct, j(i("length-dependent-hint", "设置片段长度后,补位与超长截取才会生效。")), 1)) : x("v-if", !0),
334
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? x("v-if", !0) : (k(), S("label", B, [w(j(r.segmentType === "SEQUENCE" ? i("sequence-length-override", "片段长度(覆盖流水长度)") : i("length", "片段长度")), 1), T(M(g), {
334
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? x("v-if", !0) : (k(), S("label", B, [w(j(r.segmentType === "SEQUENCE" ? i("sequence-length-override", "片段长度(覆盖流水长度)") : i("length", "片段长度")), 1), T(M(_), {
335
335
  value: r.length ?? void 0,
336
- placeholder: r.segmentType === "SEQUENCE" ? ce.value : void 0,
336
+ placeholder: r.segmentType === "SEQUENCE" ? le.value : void 0,
337
337
  type: "number",
338
338
  disabled: !e.editable,
339
- "onUpdate:value": (e) => r.length = me(e)
339
+ "onUpdate:value": (e) => r.length = f(e)
340
340
  }, null, 8, [
341
341
  "value",
342
342
  "placeholder",
343
343
  "disabled",
344
344
  "onUpdate:value"
345
345
  ])])),
346
- r.segmentType !== "SEQUENCE" || (r.padMode ?? "NONE") !== "NONE" ? (k(), S("label", lt, [w(j(i("padding", "补位")), 1), T(M(_), {
346
+ r.segmentType !== "SEQUENCE" || (r.padMode ?? "NONE") !== "NONE" ? (k(), S("label", lt, [w(j(i("padding", "补位")), 1), T(M(m), {
347
347
  value: r.padMode,
348
348
  "onUpdate:value": (e) => r.padMode = e,
349
349
  disabled: !e.editable,
350
- options: c("padding", {
350
+ options: l("padding", {
351
351
  NONE: "不补位",
352
352
  LEFT: "左侧补位",
353
353
  RIGHT: "右侧补位"
@@ -358,7 +358,7 @@ var $e = { class: "code-format" }, et = {
358
358
  "disabled",
359
359
  "options"
360
360
  ])])) : x("v-if", !0),
361
- (r.padMode ?? "NONE") === "NONE" ? x("v-if", !0) : (k(), S("label", V, [w(j(i("pad-char", "补位字符")), 1), T(M(g), {
361
+ (r.padMode ?? "NONE") === "NONE" ? x("v-if", !0) : (k(), S("label", V, [w(j(i("pad-char", "补位字符")), 1), T(M(_), {
362
362
  value: r.padChar,
363
363
  "onUpdate:value": (e) => r.padChar = e,
364
364
  disabled: !e.editable
@@ -367,11 +367,11 @@ var $e = { class: "code-format" }, et = {
367
367
  "onUpdate:value",
368
368
  "disabled"
369
369
  ])])),
370
- r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (k(), S("label", ut, [w(j(i("truncate", "超长截取")), 1), T(M(_), {
370
+ r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (k(), S("label", ut, [w(j(i("truncate", "超长截取")), 1), T(M(m), {
371
371
  value: r.truncatePolicy,
372
372
  "onUpdate:value": (e) => r.truncatePolicy = e,
373
373
  disabled: !e.editable,
374
- options: c("truncate", {
374
+ options: l("truncate", {
375
375
  NONE: "保留原值",
376
376
  LEFT: "截去左侧",
377
377
  RIGHT: "截去右侧"
@@ -382,7 +382,7 @@ var $e = { class: "code-format" }, et = {
382
382
  "disabled",
383
383
  "options"
384
384
  ])])) : x("v-if", !0),
385
- C("label", H, [w(j(i("separator", "片段后分隔符")), 1), T(M(g), {
385
+ C("label", H, [w(j(i("separator", "片段后分隔符")), 1), T(M(_), {
386
386
  value: r.separator,
387
387
  "onUpdate:value": (e) => r.separator = e,
388
388
  disabled: !e.editable
@@ -391,11 +391,11 @@ var $e = { class: "code-format" }, et = {
391
391
  "onUpdate:value",
392
392
  "disabled"
393
393
  ])]),
394
- oe(r) || (r.nullPolicy ?? "ERROR") !== "ERROR" ? (k(), S("label", dt, [w(j(i("null-policy", "来源为空时")), 1), T(M(_), {
394
+ ce(r) || (r.nullPolicy ?? "ERROR") !== "ERROR" ? (k(), S("label", dt, [w(j(i("null-policy", "来源为空时")), 1), T(M(m), {
395
395
  value: r.nullPolicy,
396
396
  "onUpdate:value": (e) => r.nullPolicy = e,
397
397
  disabled: !e.editable,
398
- options: c("null", {
398
+ options: l("null", {
399
399
  ERROR: "拒绝生成",
400
400
  SKIP_SEGMENT: "跳过该片段",
401
401
  USE_DEFAULT: "使用默认文字"
@@ -411,7 +411,7 @@ var $e = { class: "code-format" }, et = {
411
411
  ])])) : x("v-if", !0),
412
412
  r.nullPolicy === "USE_DEFAULT" && r.segmentType !== "CONSTANT" ? (k(), S("label", ft, [
413
413
  w(j(r.segmentType === "VALUE_MAPPING" ? i("mapping-fallback", "来源默认值") : i("default-text", "默认文字")), 1),
414
- T(M(g), {
414
+ T(M(_), {
415
415
  value: r.fixedValue,
416
416
  "onUpdate:value": (e) => r.fixedValue = e,
417
417
  disabled: !e.editable
@@ -422,7 +422,7 @@ var $e = { class: "code-format" }, et = {
422
422
  ]),
423
423
  r.segmentType === "VALUE_MAPPING" ? (k(), S("span", pt, j(i("mapping-fallback-hint", "默认值仍需匹配下方映射。")), 1)) : x("v-if", !0)
424
424
  ])) : x("v-if", !0),
425
- d(r) || r.sequenceBasis ? (k(), b(M(fe), {
425
+ u(r) || r.sequenceBasis ? (k(), b(M(be), {
426
426
  key: 7,
427
427
  class: "code-format__basis code-format__wide",
428
428
  checked: r.sequenceBasis,
@@ -441,7 +441,7 @@ var $e = { class: "code-format" }, et = {
441
441
  key: n,
442
442
  class: "code-format__mapping-row"
443
443
  }, [
444
- T(M(g), {
444
+ T(M(_), {
445
445
  value: t.sourceValue,
446
446
  "onUpdate:value": (e) => t.sourceValue = e,
447
447
  placeholder: i("mapping-source", "原值"),
@@ -455,7 +455,7 @@ var $e = { class: "code-format" }, et = {
455
455
  "disabled"
456
456
  ]),
457
457
  o[6] ||= C("span", null, "→", -1),
458
- T(M(g), {
458
+ T(M(_), {
459
459
  value: t.targetValue,
460
460
  "onUpdate:value": (e) => t.targetValue = e,
461
461
  placeholder: i("mapping-target", "编码文字"),
@@ -468,7 +468,7 @@ var $e = { class: "code-format" }, et = {
468
468
  "aria-label",
469
469
  "disabled"
470
470
  ]),
471
- T(M(fe), {
471
+ T(M(be), {
472
472
  class: "code-format__mapping-default",
473
473
  checked: t.defaultMapping,
474
474
  "onUpdate:checked": (e) => t.defaultMapping = e,
@@ -481,7 +481,7 @@ var $e = { class: "code-format" }, et = {
481
481
  "onUpdate:checked",
482
482
  "disabled"
483
483
  ]),
484
- T(M(m), {
484
+ T(M(h), {
485
485
  class: "code-format__mapping-remove",
486
486
  disabled: !e.editable,
487
487
  onClick: (e) => r.mappings.splice(n, 1)
@@ -489,7 +489,7 @@ var $e = { class: "code-format" }, et = {
489
489
  default: N(() => [w(j(i("remove", "删除")), 1)]),
490
490
  _: 1
491
491
  }, 8, ["disabled", "onClick"])
492
- ]))), 128)), T(M(m), {
492
+ ]))), 128)), T(M(h), {
493
493
  disabled: !e.editable,
494
494
  onClick: (e) => r.mappings.push({
495
495
  sourceValue: "",
@@ -502,32 +502,32 @@ var $e = { class: "code-format" }, et = {
502
502
  _: 1
503
503
  }, 8, ["disabled", "onClick"])])) : x("v-if", !0)
504
504
  ]))), 128))]),
505
- T(M(m), {
505
+ T(M(h), {
506
506
  type: "dashed",
507
507
  "icon-name": "plus",
508
508
  "aria-label": i("add-segment", "增加片段"),
509
509
  disabled: !e.editable,
510
- onClick: ge
510
+ onClick: g
511
511
  }, {
512
512
  default: N(() => [w(j(i("add-segment", "增加片段")), 1)]),
513
513
  _: 1
514
514
  }, 8, ["aria-label", "disabled"]),
515
515
  n.value.sequencePolicy ? (k(), S("div", mt, [
516
- T(M(se), {
516
+ T(M(s), {
517
517
  class: "code-format__wide",
518
518
  title: i("sequence", "流水策略")
519
519
  }, null, 8, ["title"]),
520
- C("label", ht, [w(j(i("sequence-length", "流水长度")), 1), T(M(g), {
520
+ C("label", ht, [w(j(i("sequence-length", "流水长度")), 1), T(M(_), {
521
521
  value: n.value.sequencePolicy.sequenceLength ?? void 0,
522
522
  type: "number",
523
523
  disabled: !e.editable,
524
- "onUpdate:value": o[0] ||= (e) => n.value.sequencePolicy.sequenceLength = me(e)
524
+ "onUpdate:value": o[0] ||= (e) => n.value.sequencePolicy.sequenceLength = f(e)
525
525
  }, null, 8, ["value", "disabled"])]),
526
- C("label", gt, [w(j(i("reset", "计数周期")), 1), T(M(_), {
526
+ C("label", gt, [w(j(i("reset", "计数周期")), 1), T(M(m), {
527
527
  value: n.value.sequencePolicy.resetPolicy,
528
528
  "onUpdate:value": o[1] ||= (e) => n.value.sequencePolicy.resetPolicy = e,
529
529
  disabled: !e.editable,
530
- options: c("reset", {
530
+ options: l("reset", {
531
531
  NONE: "持续计数",
532
532
  DAY: "每天重置",
533
533
  MONTH: "每月重置",
@@ -538,34 +538,34 @@ var $e = { class: "code-format" }, et = {
538
538
  "disabled",
539
539
  "options"
540
540
  ])]),
541
- C("details", W, [C("summary", null, [w(j(i("sequence-advanced", "流水高级设置")), 1), C("span", null, " · " + j(pe.value), 1)]), C("div", G, [
542
- C("label", _t, [w(j(i("start", "起始值")), 1), T(M(g), {
541
+ C("details", W, [C("summary", null, [w(j(i("sequence-advanced", "流水高级设置")), 1), C("span", null, " · " + j(fe.value), 1)]), C("div", G, [
542
+ C("label", _t, [w(j(i("start", "起始值")), 1), T(M(_), {
543
543
  value: n.value.sequencePolicy.startValue ?? void 0,
544
544
  type: "number",
545
545
  disabled: !e.editable,
546
- "onUpdate:value": o[2] ||= (e) => n.value.sequencePolicy.startValue = me(e)
546
+ "onUpdate:value": o[2] ||= (e) => n.value.sequencePolicy.startValue = f(e)
547
547
  }, null, 8, ["value", "disabled"])]),
548
- C("label", K, [w(j(i("step", "递增步长")), 1), T(M(g), {
548
+ C("label", K, [w(j(i("step", "递增步长")), 1), T(M(_), {
549
549
  value: n.value.sequencePolicy.stepValue ?? void 0,
550
550
  type: "number",
551
551
  disabled: !e.editable,
552
- "onUpdate:value": o[3] ||= (e) => n.value.sequencePolicy.stepValue = me(e)
552
+ "onUpdate:value": o[3] ||= (e) => n.value.sequencePolicy.stepValue = f(e)
553
553
  }, null, 8, ["value", "disabled"])]),
554
554
  C("label", vt, [
555
555
  w(j(i("maximum", "流水上限")), 1),
556
- T(M(g), {
556
+ T(M(_), {
557
557
  value: n.value.sequencePolicy.maxValue ?? void 0,
558
558
  type: "number",
559
559
  disabled: !e.editable,
560
- "onUpdate:value": o[4] ||= (e) => n.value.sequencePolicy.maxValue = me(e)
560
+ "onUpdate:value": o[4] ||= (e) => n.value.sequencePolicy.maxValue = f(e)
561
561
  }, null, 8, ["value", "disabled"]),
562
- f.value ? (k(), S("span", q, j(f.value), 1)) : x("v-if", !0)
562
+ ue.value ? (k(), S("span", q, j(ue.value), 1)) : x("v-if", !0)
563
563
  ]),
564
- C("label", J, [w(j(i("overflow", "达到上限后")), 1), T(M(_), {
564
+ C("label", J, [w(j(i("overflow", "达到上限后")), 1), T(M(m), {
565
565
  value: n.value.sequencePolicy.overflowPolicy,
566
566
  "onUpdate:value": o[5] ||= (e) => n.value.sequencePolicy.overflowPolicy = e,
567
567
  disabled: !e.editable,
568
- options: c("overflow", {
568
+ options: l("overflow", {
569
569
  ERROR: "拒绝生成",
570
570
  RESET: "从起点重新尝试"
571
571
  })
@@ -579,7 +579,7 @@ var $e = { class: "code-format" }, et = {
579
579
  ]));
580
580
  }
581
581
  }), [["__scopeId", "data-v-cccc510e"]]), bt = Symbol("module-runtime-activation-refresh");
582
- function xt(e, t = c) {
582
+ function xt(e, t = i) {
583
583
  let n = e.status === "PENDING" || e.installedRevision !== e.desiredRevision;
584
584
  return { message: {
585
585
  text: e.status === "UNTRACKED" ? t.t("platform.screen.moduleRuntimeActivation.no-module-runtime-activation-has-been-recorded", "尚无模块运行配置生效记录") : e.status === "FAILED" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-activation-failed", "模块运行配置已保存,生效失败") : e.status === "PENDING" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-activation-is-in-progress", "模块运行配置已保存,正在生效") : e.installedRevision === e.desiredRevision ? e.status === "INACTIVE" ? t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-activated-business-runtime-entry-points-are-disabled", "模块运行配置已生效,业务运行入口已停用") : t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-activated", "模块运行配置已生效") : t.t("platform.screen.moduleRuntimeActivation.module-runtime-configuration-saved-this-node-has-not-confirmed-activation", "模块运行配置已保存,当前节点尚未确认生效"),
@@ -594,38 +594,38 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
594
594
  }, kt = { key: 2 }, At = {
595
595
  key: 3,
596
596
  class: "module-runtime-activation__versions"
597
- }, jt = /*#__PURE__*/ ve(/* @__PURE__ */ Ve({
597
+ }, jt = /*#__PURE__*/ we(/* @__PURE__ */ Ve({
598
598
  __name: "ModuleRuntimeActivationStatus",
599
599
  props: {
600
600
  moduleAlias: {},
601
601
  reloadKey: {}
602
602
  },
603
603
  setup(e, { expose: t }) {
604
- let n = ue(), r = e, i = te({ moduleAlias: "platform.module" }), a = A(), ee = A(!1), o = A(!1), s = A(!1), c = 0, l = !0, ne, re = y(() => {
604
+ let n = ge(), r = e, i = ee({ moduleAlias: "platform.module" }), a = A(), te = A(!1), o = A(!1), s = A(!1), c = 0, l = !0, ne, re = y(() => {
605
605
  let e = a.value;
606
606
  return !(!e || e.status === "UNTRACKED" || e.status === "FAILED" || e.status !== "PENDING" && e.installedRevision === e.desiredRevision);
607
- }), ie = y(() => s.value || a.value?.status === "FAILED" || re.value), ae = y(() => s.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.unknown-status", "状态未知") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.activation-failed", "生效失败") : n.t("platform.screen.ModuleRuntimeActivationStatus.applying-changes", "正在应用修改")), u = y(() => s.value ? "NEUTRAL" : a.value?.status === "FAILED" ? "DANGER" : "WARNING"), oe = y(() => s.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.cannot-check-the-status-right-now-try-again-later", "暂时无法查询,请稍后重试。") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.the-changes-were-saved-but-activation-failed", "修改已保存,但未能生效。") : n.t("platform.screen.ModuleRuntimeActivationStatus.this-notice-will-close-when-activation-completes", "完成后将自动关闭提示。")), se = y(() => a.value?.desiredRevision != null && (a.value.status === "FAILED" || a.value.status === "PENDING" || a.value.installedRevision !== a.value.desiredRevision) && i.can("retryRuntimeActivation") === !0);
607
+ }), ie = y(() => s.value || a.value?.status === "FAILED" || re.value), ae = y(() => s.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.unknown-status", "状态未知") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.activation-failed", "生效失败") : n.t("platform.screen.ModuleRuntimeActivationStatus.applying-changes", "正在应用修改")), oe = y(() => s.value ? "NEUTRAL" : a.value?.status === "FAILED" ? "DANGER" : "WARNING"), se = y(() => s.value ? n.t("platform.screen.ModuleRuntimeActivationStatus.cannot-check-the-status-right-now-try-again-later", "暂时无法查询,请稍后重试。") : a.value?.status === "FAILED" ? n.t("platform.screen.ModuleRuntimeActivationStatus.the-changes-were-saved-but-activation-failed", "修改已保存,但未能生效。") : n.t("platform.screen.ModuleRuntimeActivationStatus.this-notice-will-close-when-activation-completes", "完成后将自动关闭提示。")), ce = y(() => a.value?.desiredRevision != null && (a.value.status === "FAILED" || a.value.status === "PENDING" || a.value.installedRevision !== a.value.desiredRevision) && i.can("retryRuntimeActivation") === !0);
608
608
  Ze(() => [r.moduleAlias, r.reloadKey], () => {
609
- c++, a.value = void 0, o.value = !1, p();
609
+ c++, a.value = void 0, o.value = !1, d();
610
610
  }, { immediate: !0 });
611
- function ce() {
611
+ function le() {
612
612
  clearTimeout(ne), ne = void 0;
613
613
  }
614
- function le() {
615
- ce(), l && re.value && !s.value && (ne = setTimeout(() => void p(), 2e3));
614
+ function ue() {
615
+ le(), l && re.value && !s.value && (ne = setTimeout(() => void d(), 2e3));
616
616
  }
617
617
  Ke(() => {
618
- l = !1, c++, ce();
618
+ l = !1, c++, le();
619
619
  }), D(() => {
620
- l || (l = !0, o.value = !1, p());
620
+ l || (l = !0, o.value = !1, d());
621
621
  }), O(() => {
622
- l = !1, c++, ce();
622
+ l = !1, c++, le();
623
623
  });
624
- async function p() {
624
+ async function d() {
625
625
  if (!l || o.value) return;
626
- ce();
626
+ le();
627
627
  let e = ++c, t = r.moduleAlias;
628
- s.value = !1, ee.value = !0;
628
+ s.value = !1, te.value = !0;
629
629
  try {
630
630
  let r = await i.http.request({
631
631
  method: "GET",
@@ -636,12 +636,12 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
636
636
  if (e !== c) return;
637
637
  s.value = !0;
638
638
  } finally {
639
- e === c && (ee.value = !1, le());
639
+ e === c && (te.value = !1, ue());
640
640
  }
641
641
  }
642
- async function fe() {
643
- if (!se.value || o.value) return;
644
- ce();
642
+ async function de() {
643
+ if (!ce.value || o.value) return;
644
+ le();
645
645
  let e = ++c, t = r.moduleAlias, ee = a.value.desiredRevision;
646
646
  o.value = !0;
647
647
  try {
@@ -649,53 +649,53 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
649
649
  method: "POST",
650
650
  path: `/platform.module/${encodeURIComponent(t)}/runtime/activation/retry?expectedRevision=${ee}`
651
651
  });
652
- e === c && (a.value = h(n), s.value = !1);
652
+ e === c && (a.value = f(n), s.value = !1);
653
653
  } catch (t) {
654
654
  if (e !== c) return;
655
- de(t, {
655
+ pe(t, {
656
656
  language: n,
657
657
  source: "runtime-activation",
658
658
  phase: "action"
659
- }), o.value = !1, await p();
659
+ }), o.value = !1, await d();
660
660
  } finally {
661
- e === c && (o.value = !1, le());
661
+ e === c && (o.value = !1, ue());
662
662
  }
663
663
  }
664
- return t({ refresh: p }), (t, r) => ie.value ? (k(), S("section", {
664
+ return t({ refresh: d }), (t, r) => ie.value ? (k(), S("section", {
665
665
  key: 0,
666
666
  class: "module-runtime-activation",
667
667
  "aria-label": M(n).t("platform.screen.ModuleRuntimeActivationStatus.module-runtime-configuration-activation-status", "模块运行配置生效状态"),
668
668
  "aria-live": "polite"
669
669
  }, [C("div", Ct, [
670
670
  C("span", Y, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.runtime-configuration", "运行配置")), 1),
671
- T(M(d), {
671
+ T(M(u), {
672
672
  enabled: !0,
673
673
  "enabled-label": ae.value,
674
- "enabled-tone": u.value
674
+ "enabled-tone": oe.value
675
675
  }, null, 8, ["enabled-label", "enabled-tone"]),
676
- C("span", X, j(oe.value), 1)
676
+ C("span", X, j(se.value), 1)
677
677
  ]), C("div", wt, [
678
- se.value ? (k(), b(M(Ce), {
678
+ ce.value ? (k(), b(M(g), {
679
679
  key: 0,
680
680
  density: "compact",
681
- disabled: ee.value || o.value,
681
+ disabled: te.value || o.value,
682
682
  loading: o.value,
683
- onClick: fe
683
+ onClick: de
684
684
  }, {
685
685
  default: N(() => [w(j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.retry-activation", "重试生效")), 1)]),
686
686
  _: 1
687
687
  }, 8, ["disabled", "loading"])) : x("v-if", !0),
688
- s.value ? (k(), b(M(Ce), {
688
+ s.value ? (k(), b(M(g), {
689
689
  key: 1,
690
690
  density: "compact",
691
- disabled: ee.value || o.value,
691
+ disabled: te.value || o.value,
692
692
  "icon-name": "reload",
693
- onClick: p
693
+ onClick: d
694
694
  }, {
695
695
  default: N(() => [w(j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.check-again", "重新查询")), 1)]),
696
696
  _: 1
697
697
  }, 8, ["disabled"])) : x("v-if", !0),
698
- (k(), b(M(f), {
698
+ (k(), b(M(p), {
699
699
  key: e.moduleAlias,
700
700
  placement: "bottomRight"
701
701
  }, {
@@ -709,18 +709,18 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
709
709
  C("dt", null, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.loaded-revision", "已加载版本")), 1),
710
710
  C("dd", null, j(a.value.installedRevision ?? "—"), 1)
711
711
  ])) : x("v-if", !0),
712
- T(M(Ce), {
712
+ T(M(g), {
713
713
  density: "compact",
714
714
  emphasis: "quiet",
715
715
  "icon-name": "reload",
716
- disabled: ee.value || o.value,
717
- onClick: p
716
+ disabled: te.value || o.value,
717
+ onClick: d
718
718
  }, {
719
719
  default: N(() => [w(j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.refresh-status", "刷新状态")), 1)]),
720
720
  _: 1
721
721
  }, 8, ["disabled"])
722
722
  ])]),
723
- default: N(() => [T(M(Ce), {
723
+ default: N(() => [T(M(g), {
724
724
  density: "compact",
725
725
  emphasis: "quiet",
726
726
  title: M(n).t("platform.screen.WorkbenchAssistantPanel.show-diagnostics", "查看诊断信息")
@@ -796,96 +796,96 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
796
796
  embedded: { type: Boolean }
797
797
  },
798
798
  setup(e) {
799
- let c = e, u = ue(), d = (e, t) => u.t(`platform.code.config.${e}`, t);
800
- function f(e) {
801
- return e instanceof me ? _e(e, u) : ie(ae(e), u);
799
+ let i = e, u = ge(), f = (e, t) => u.t(`platform.code.config.${e}`, t);
800
+ function p(e) {
801
+ return e instanceof de ? Ee(e, u) : ie(te(e), u);
802
802
  }
803
- let h = te({ moduleAlias: "platform.code_rule" }), ve = t(), Ce = A(), Ne = y(() => {
804
- switch (Ce.value) {
805
- case "no-model": return d("reason.no-model", "尚未关联业务数据模型,请先配置模型,再设置编号规则。");
806
- case "no-fields": return d("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。");
807
- case "not-declared": return d("reason.not-declared", "该静态模块尚未声明可配置的编号字段,需由开发者在业务模型中声明。");
808
- default: return c.moduleAlias ? d("reason.unavailable", "当前模块没有可配置的编号字段,请返回模块管理检查配置。") : d("no-modules", "没有可配置业务编码的模块。");
803
+ let g = ee({ moduleAlias: "platform.code_rule" }), me = n(), we = A(), Ne = y(() => {
804
+ switch (we.value) {
805
+ case "no-model": return f("reason.no-model", "尚未关联业务数据模型,请先配置模型,再设置编号规则。");
806
+ case "no-fields": return f("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。");
807
+ case "not-declared": return f("reason.not-declared", "该静态模块尚未声明可配置的编号字段,需由开发者在业务模型中声明。");
808
+ default: return i.moduleAlias ? f("reason.unavailable", "当前模块没有可配置的编号字段,请返回模块管理检查配置。") : f("no-modules", "没有可配置业务编码的模块。");
809
809
  }
810
810
  });
811
811
  function Ve() {
812
- let e = c.moduleAlias ?? I.value;
813
- e && ve?.openPage(n(Fe, {
812
+ let e = i.moduleAlias ?? I.value;
813
+ e && me?.openPage(t(Fe, {
814
814
  moduleAlias: e,
815
- moduleTitle: c.moduleTitle ?? Y.value?.moduleTitle,
815
+ moduleTitle: i.moduleTitle ?? Y.value?.moduleTitle,
816
816
  governanceTab: "metadata"
817
817
  }));
818
818
  }
819
- let E = r(), D = A(E?.value?.tenantId ?? ""), Ke = A(0), O = A(!1), Je = y(() => !!D.value), Ye = y(() => D.value && E?.value?.system ? Se(h.http, { "X-MuYun-Tenant-Id": D.value }) : h.http), $e = y(() => Le(Ye.value, u)), et = y(() => E?.value?.system ? ee({
820
- http: h.http,
819
+ let E = r(), D = A(E?.value?.tenantId ?? ""), Ke = A(0), O = A(!1), Je = y(() => !!D.value), Ye = y(() => D.value && E?.value?.system ? ve(g.http, { "X-MuYun-Tenant-Id": D.value }) : g.http), $e = y(() => Le(Ye.value, u)), et = y(() => E?.value?.system ? d({
820
+ http: g.http,
821
821
  language: u,
822
822
  moduleAlias: "iam.tenant",
823
823
  runtimeAccess: "REFERENCE"
824
- }) : void 0), tt = y(() => Je.value ? ee({
824
+ }) : void 0), tt = y(() => Je.value ? d({
825
825
  http: Ye.value,
826
826
  language: u,
827
827
  moduleAlias: "iam.organization",
828
828
  runtimeAccess: "REFERENCE"
829
- }) : void 0), P = y(() => Je.value && h.can("saveTree") === !0), nt = y(() => h.can("configureBinding") === !0), F = A([]), I = A(c.moduleAlias ?? ""), rt = A(""), it = y(() => {
829
+ }) : void 0), P = y(() => Je.value && g.can("saveTree") === !0), nt = y(() => g.can("configureBinding") === !0), F = A([]), I = A(i.moduleAlias ?? ""), rt = A(""), it = y(() => {
830
830
  let e = /* @__PURE__ */ new Map();
831
831
  for (let t of F.value) t.fields.length && (e.has(t.moduleAlias) || e.set(t.moduleAlias, {
832
832
  id: t.moduleAlias,
833
- title: ne(t.moduleTitle || t.moduleAlias, t.moduleTitleText, u),
833
+ title: se(t.moduleTitle || t.moduleAlias, t.moduleTitleText, u),
834
834
  code: t.moduleAlias
835
835
  }));
836
836
  return [...e.values()];
837
- }), at = y(() => Je.value && !c.moduleAlias), ot = y(() => F.value.filter((e) => e.moduleAlias === I.value)), st = A(""), L = A(""), R = A([]), z = A(), ct = A(""), B = A(), lt = A(""), V = A(!1), ut = A(!1), H = A(!1), dt = A(!1), ft = A(!1), pt = A([]), U = A(""), mt = A(""), ht = A(), gt = A(), W = A(""), G = A(), _t = A(), K = A({}), vt = A(""), q = A("NORMAL"), J = A("SAVE"), xt = A(), St = He(bt, void 0), Ct = (e) => `${e.moduleAlias}/${e.entityAlias}`, Y = y(() => F.value.find((e) => Ct(e) === st.value)), X = y(() => Y.value?.fields.find((e) => e.fieldName === L.value)), wt = y(() => [d(`enum.${q.value}`, q.value === "PRIMARY" ? "主编码" : "业务编码"), d(`enum.${J.value}`, J.value === "SAVE" ? "首次保存" : "业务操作时生成")].join(" · ")), Tt = y(() => !!z.value && Re(z.value)), Et = y(() => [Tt.value && z.value?.linkedUpdate ? d("linked-short", "来源变化时换号") : "", z.value?.allowRecycle ? d("recycle-short", "旧号可复用") : ""].filter(Boolean).join(" · ")), Dt = y(() => R.value.filter((e) => e.fieldName === L.value)), Ot = y(() => Dt.value.map((e) => ({ ...e }))), kt = A({}), At = 0;
837
+ }), at = y(() => Je.value && !i.moduleAlias), ot = y(() => F.value.filter((e) => e.moduleAlias === I.value)), st = A(""), L = A(""), R = A([]), z = A(), ct = A(""), B = A(), lt = A(""), V = A(!1), ut = A(!1), H = A(!1), dt = A(!1), ft = A(!1), pt = A([]), U = A(""), mt = A(""), ht = A(), gt = A(), W = A(""), G = A(), _t = A(), K = A({}), vt = A(""), q = A("NORMAL"), J = A("SAVE"), xt = A(), St = He(bt, void 0), Ct = (e) => `${e.moduleAlias}/${e.entityAlias}`, Y = y(() => F.value.find((e) => Ct(e) === st.value)), X = y(() => Y.value?.fields.find((e) => e.fieldName === L.value)), wt = y(() => [f(`enum.${q.value}`, q.value === "PRIMARY" ? "主编码" : "业务编码"), f(`enum.${J.value}`, J.value === "SAVE" ? "首次保存" : "业务操作时生成")].join(" · ")), Tt = y(() => !!z.value && Re(z.value)), Et = y(() => [Tt.value && z.value?.linkedUpdate ? f("linked-short", "来源变化时换号") : "", z.value?.allowRecycle ? f("recycle-short", "旧号可复用") : ""].filter(Boolean).join(" · ")), Dt = y(() => R.value.filter((e) => e.fieldName === L.value)), Ot = y(() => Dt.value.map((e) => ({ ...e }))), kt = A({}), At = 0;
838
838
  Ze(() => [Ye.value, Dt.value.map((e) => e.orgScopeType === "ORG" ? e.orgScopeId : "").join(",")], async ([e]) => {
839
839
  let t = ++At;
840
840
  kt.value = {};
841
841
  let n = [...new Set(Dt.value.filter((e) => e.orgScopeType === "ORG").map((e) => e.orgScopeId).filter((e) => !!e))];
842
842
  if (Je.value && n.length) try {
843
- let r = await xe(e, { moduleAlias: "iam.organization" }).translate(n);
844
- t === At && (kt.value = Object.fromEntries(r.records.map((e) => [String(e.id), s(e, "title", u) ?? d("specific-org", "指定机构")])));
843
+ let r = await _e(e, { moduleAlias: "iam.organization" }).translate(n);
844
+ t === At && (kt.value = Object.fromEntries(r.records.map((e) => [String(e.id), le(e, "title", u) ?? f("specific-org", "指定机构")])));
845
845
  } catch {}
846
846
  });
847
847
  function En(e) {
848
- return e.orgScopeType === "GLOBAL" ? d("all-orgs", "全部机构") : kt.value[e.orgScopeId ?? ""] ?? d("specific-org", "指定机构");
848
+ return e.orgScopeType === "GLOBAL" ? f("all-orgs", "全部机构") : kt.value[e.orgScopeId ?? ""] ?? f("specific-org", "指定机构");
849
849
  }
850
850
  let Dn = y(() => [
851
851
  {
852
852
  fieldName: "title",
853
- title: d("rule-title", "规则名称"),
853
+ title: f("rule-title", "规则名称"),
854
854
  width: 150
855
855
  },
856
856
  {
857
857
  fieldName: "scope",
858
- title: d("scope", "适用范围"),
858
+ title: f("scope", "适用范围"),
859
859
  width: 152
860
860
  },
861
861
  {
862
862
  fieldName: "organization",
863
- title: d("organization", "适用组织"),
863
+ title: f("organization", "适用组织"),
864
864
  width: 120
865
865
  },
866
866
  {
867
867
  fieldName: "effectiveFrom",
868
- title: d("effective-from-short", "开始生效时间"),
868
+ title: f("effective-from-short", "开始生效时间"),
869
869
  width: 180
870
870
  },
871
871
  {
872
872
  fieldName: "effectiveTo",
873
- title: d("effective-to-short", "结束生效时间"),
873
+ title: f("effective-to-short", "结束生效时间"),
874
874
  width: 180
875
875
  },
876
876
  {
877
877
  fieldName: "enabled",
878
- title: d("enable-rule", "启用规则"),
878
+ title: f("enable-rule", "启用规则"),
879
879
  width: 64
880
880
  },
881
881
  {
882
882
  fieldName: "actions",
883
- title: d("actions", "操作"),
883
+ title: f("actions", "操作"),
884
884
  width: 112
885
885
  }
886
886
  ]), On = y(() => B.value != null && JSON.stringify(B.value) !== lt.value), kn = y(() => Y.value?.source === "DYNAMIC" && X.value?.role != null && (q.value !== X.value.role || J.value !== (X.value.trigger ?? "SAVE"))), An = y(() => On.value || kn.value || z.value != null && JSON.stringify(z.value) !== ct.value), Z = y(() => V.value || H.value);
887
- ge(() => d("title", "业务编码"), () => An.value, () => Z.value);
888
- let jn = y(() => P.value && !Z.value), Mn = y(() => Y.value ? Pe(Y.value, z.value) : []), Nn = y(() => Y.value?.sources.filter((e) => !Mn.value.some((t) => t.fieldName === e.fieldName)) ?? []), Pn = y(() => [...Mn.value, ...Nn.value.filter((e) => pt.value.includes(e.fieldName))]), Fn = 0, In, Ln, Rn = y(() => O.value && z.value?.mode !== "MANUAL" && !!z.value && !!Y.value && !Z.value && h.can("preview")), zn = y(() => {
887
+ l(() => f("title", "业务编码"), () => An.value, () => Z.value);
888
+ let jn = y(() => P.value && !Z.value), Mn = y(() => Y.value ? Pe(Y.value, z.value) : []), Nn = y(() => Y.value?.sources.filter((e) => !Mn.value.some((t) => t.fieldName === e.fieldName)) ?? []), Pn = y(() => [...Mn.value, ...Nn.value.filter((e) => pt.value.includes(e.fieldName))]), Fn = 0, In, Ln, Rn = y(() => O.value && z.value?.mode !== "MANUAL" && !!z.value && !!Y.value && !Z.value && g.can("preview")), zn = y(() => {
889
889
  if (!Rn.value || !z.value) return "";
890
890
  let e = z.value;
891
891
  return JSON.stringify([
@@ -918,7 +918,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
918
918
  }, { flush: "sync" }), Ge(Bn);
919
919
  let Vn = (e) => Object.entries(e).map(([e, t]) => ({
920
920
  value: e,
921
- label: d(`enum.${e}`, t)
921
+ label: f(`enum.${e}`, t)
922
922
  })), Q = 0;
923
923
  function $(e) {
924
924
  B.value = void 0, lt.value = "", vt.value = "", e || (O.value = !1), z.value = e == null ? void 0 : JSON.parse(JSON.stringify(e)), X.value?.role || (q.value = e?.fieldRole ?? "NORMAL", J.value = e?.fieldTrigger ?? "SAVE"), ct.value = z.value == null ? "" : JSON.stringify(z.value);
@@ -930,7 +930,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
930
930
  q.value = X.value?.role ?? "NORMAL", J.value = X.value?.trigger ?? "SAVE";
931
931
  }
932
932
  function Un() {
933
- return An.value ? (U.value = d("unsaved", "请先保存或取消当前修改。"), !1) : !Z.value;
933
+ return An.value ? (U.value = f("unsaved", "请先保存或取消当前修改。"), !1) : !Z.value;
934
934
  }
935
935
  function Wn(e) {
936
936
  Un() && (L.value = e, K.value = {}, pt.value = [], Hn(), $(Dt.value[0]), U.value = "", W.value = "");
@@ -952,7 +952,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
952
952
  if (t !== Q) return;
953
953
  R.value = n, L.value = e.fields.find((e) => e.role != null)?.fieldName ?? e.fields[0]?.fieldName ?? "", Hn(), $(Dt.value[0]);
954
954
  } catch (e) {
955
- t === Q && (U.value = f(e));
955
+ t === Q && (U.value = p(e));
956
956
  } finally {
957
957
  t === Q && (V.value = !1);
958
958
  }
@@ -963,15 +963,15 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
963
963
  V.value = !1, U.value = "";
964
964
  return;
965
965
  }
966
- V.value = !0, Ce.value = void 0, U.value = "";
966
+ V.value = !0, we.value = void 0, U.value = "";
967
967
  try {
968
- let t = await $e.value.targets(c.moduleAlias);
968
+ let t = await $e.value.targets(i.moduleAlias);
969
969
  if (e !== Q) return;
970
- if (F.value = t, c.moduleAlias && !t.some((e) => e.fields.length)) {
970
+ if (F.value = t, i.moduleAlias && !t.some((e) => e.fields.length)) {
971
971
  try {
972
- let t = await Ae(Ye.value, c.moduleAlias);
972
+ let t = await Ae(Ye.value, i.moduleAlias);
973
973
  if (e !== Q) return;
974
- Ce.value = t.reason;
974
+ we.value = t.reason;
975
975
  } catch {}
976
976
  if (e !== Q) return;
977
977
  }
@@ -979,31 +979,31 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
979
979
  let n = ot.value.find((e) => e.fields.length) ?? ot.value[0];
980
980
  await Kn(n ? Ct(n) : "");
981
981
  } catch (t) {
982
- e === Q && (U.value = f(t), ut.value = !0);
982
+ e === Q && (U.value = p(t), ut.value = !0);
983
983
  } finally {
984
984
  e === Q && (V.value = !1);
985
985
  }
986
986
  }
987
- Ze(() => c.moduleAlias, () => {
988
- I.value = c.moduleAlias ?? "", rt.value = "", $(), L.value = "", st.value = "", F.value = [], R.value = [], qn();
987
+ Ze(() => i.moduleAlias, () => {
988
+ I.value = i.moduleAlias ?? "", rt.value = "", $(), L.value = "", st.value = "", F.value = [], R.value = [], qn();
989
989
  }, { immediate: !0 }), Ze(() => [
990
990
  E?.value?.userId,
991
991
  E?.value?.tenantId,
992
992
  E?.value?.system
993
993
  ], () => {
994
- D.value = E?.value?.tenantId ?? "", I.value = c.moduleAlias ?? "", rt.value = "", $(), F.value = [], R.value = [], L.value = "", st.value = "", qn();
994
+ D.value = E?.value?.tenantId ?? "", I.value = i.moduleAlias ?? "", rt.value = "", $(), F.value = [], R.value = [], L.value = "", st.value = "", qn();
995
995
  });
996
996
  async function Jn(e) {
997
- Un() && (D.value = e ?? "", I.value = c.moduleAlias ?? "", rt.value = "", F.value = [], R.value = [], L.value = "", st.value = "", $(), await qn());
997
+ Un() && (D.value = e ?? "", I.value = i.moduleAlias ?? "", rt.value = "", F.value = [], R.value = [], L.value = "", st.value = "", $(), await qn());
998
998
  }
999
999
  function Yn(e, t, n) {
1000
1000
  t && n === 1 && e.length === 1 && !D.value && Jn(String(e[0].id));
1001
1001
  }
1002
1002
  async function Xn() {
1003
- return Z.value ? !1 : !An.value || await a({
1004
- title: d("discard-rule", "放弃未保存的编号规则修改?"),
1005
- content: d("discard-rule-help", "当前修改尚未保存,放弃后将恢复已保存的规则。"),
1006
- okText: d("discard", "放弃修改"),
1003
+ return Z.value ? !1 : !An.value || await oe({
1004
+ title: f("discard-rule", "放弃未保存的编号规则修改?"),
1005
+ content: f("discard-rule-help", "当前修改尚未保存,放弃后将恢复已保存的规则。"),
1006
+ okText: f("discard", "放弃修改"),
1007
1007
  danger: !0
1008
1008
  }, u);
1009
1009
  }
@@ -1030,9 +1030,9 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1030
1030
  H.value = !0, U.value = "", W.value = "";
1031
1031
  try {
1032
1032
  let e = await $e.value.bind(Y.value, X.value, q.value, J.value);
1033
- F.value = F.value.map((t) => Ct(t) === Ct(e) ? e : t), Hn(), St ? await St(e.moduleAlias) : await xt.value?.refresh(), W.value = d("binding-saved", "字段配置已保存,请查看运行态生效状态。");
1033
+ F.value = F.value.map((t) => Ct(t) === Ct(e) ? e : t), Hn(), St ? await St(e.moduleAlias) : await xt.value?.refresh(), W.value = f("binding-saved", "字段配置已保存,请查看运行态生效状态。");
1034
1034
  } catch (e) {
1035
- U.value = f(e), e instanceof me || de(e, {
1035
+ U.value = p(e), e instanceof de || pe(e, {
1036
1036
  language: u,
1037
1037
  source: "business-code",
1038
1038
  phase: "action"
@@ -1045,9 +1045,9 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1045
1045
  async function rr(e) {
1046
1046
  let t = Y.value?.source === "DYNAMIC" && !X.value?.role, n = await $e.value.save(e);
1047
1047
  if (R.value = [...R.value.filter((e) => e.id !== n.id), n], t && n.enabled) try {
1048
- F.value = await $e.value.targets(c.moduleAlias), Hn(), St ? await St(n.moduleAlias) : await xt.value?.refresh();
1048
+ F.value = await $e.value.targets(i.moduleAlias), Hn(), St ? await St(n.moduleAlias) : await xt.value?.refresh();
1049
1049
  } catch {
1050
- U.value = d("saved-refresh-failed", "规则已保存,但状态刷新失败,请刷新页面确认。");
1050
+ U.value = f("saved-refresh-failed", "规则已保存,但状态刷新失败,请刷新页面确认。");
1051
1051
  }
1052
1052
  return n;
1053
1053
  }
@@ -1056,9 +1056,9 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1056
1056
  H.value = !0, U.value = "", W.value = "";
1057
1057
  try {
1058
1058
  let e = await rr(z.value);
1059
- $(e), W.value = e.enabled ? d("active", "规则已启用,后续业务按适用范围匹配规则。") : d("saved-disabled", "规则已保存,可在规则列表中启用。");
1059
+ $(e), W.value = e.enabled ? f("active", "规则已启用,后续业务按适用范围匹配规则。") : f("saved-disabled", "规则已保存,可在规则列表中启用。");
1060
1060
  } catch (e) {
1061
- U.value = f(e), e instanceof me || de(e, {
1061
+ U.value = p(e), e instanceof de || pe(e, {
1062
1062
  language: u,
1063
1063
  source: "business-code",
1064
1064
  phase: "action"
@@ -1083,9 +1083,9 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1083
1083
  } : {},
1084
1084
  enabled: t
1085
1085
  });
1086
- z.value?.id === n.id && $(n), W.value = n.enabled ? d("active", "规则已启用,后续业务按适用范围匹配规则。") : d("rule-stopped", "规则已停用,已有编码保持不变。");
1086
+ z.value?.id === n.id && $(n), W.value = n.enabled ? f("active", "规则已启用,后续业务按适用范围匹配规则。") : f("rule-stopped", "规则已停用,已有编码保持不变。");
1087
1087
  } catch (e) {
1088
- U.value = f(e);
1088
+ U.value = p(e);
1089
1089
  } finally {
1090
1090
  H.value = !1;
1091
1091
  }
@@ -1101,9 +1101,9 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1101
1101
  if (B.value && P.value && !Z.value) {
1102
1102
  H.value = !0, U.value = "", W.value = "";
1103
1103
  try {
1104
- $(await rr(B.value)), W.value = d("usage-saved", "适用配置已保存。");
1104
+ $(await rr(B.value)), W.value = f("usage-saved", "适用配置已保存。");
1105
1105
  } catch (e) {
1106
- U.value = f(e);
1106
+ U.value = p(e);
1107
1107
  } finally {
1108
1108
  H.value = !1;
1109
1109
  }
@@ -1124,7 +1124,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1124
1124
  behavior: "smooth"
1125
1125
  })));
1126
1126
  } catch (r) {
1127
- t === Fn && !n.signal.aborted && (mt.value = f(r), e && (await Ue(), t === Fn && (ht.value?.scrollIntoView?.({
1127
+ t === Fn && !n.signal.aborted && (mt.value = p(r), e && (await Ue(), t === Fn && (ht.value?.scrollIntoView?.({
1128
1128
  block: "nearest",
1129
1129
  behavior: "smooth"
1130
1130
  }), ht.value?.focus({ preventScroll: !0 }))));
@@ -1133,31 +1133,31 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1133
1133
  }
1134
1134
  }
1135
1135
  return (t, n) => (k(), S("section", Mt, [
1136
- U.value && !O.value ? (k(), S("div", Nt, [T(M(l), {
1137
- title: d("request-failed", "操作未完成"),
1136
+ U.value && !O.value ? (k(), S("div", Nt, [T(M(c), {
1137
+ title: f("request-failed", "操作未完成"),
1138
1138
  message: U.value
1139
- }, null, 8, ["title", "message"]), ut.value ? (k(), b(M(m), {
1139
+ }, null, 8, ["title", "message"]), ut.value ? (k(), b(M(h), {
1140
1140
  key: 0,
1141
1141
  disabled: Z.value,
1142
1142
  onClick: qn
1143
1143
  }, {
1144
- default: N(() => [w(j(d("retry", "重试加载")), 1)]),
1144
+ default: N(() => [w(j(f("retry", "重试加载")), 1)]),
1145
1145
  _: 1
1146
1146
  }, 8, ["disabled"])) : x("v-if", !0)])) : x("v-if", !0),
1147
1147
  W.value && !O.value ? (k(), S("p", Pt, j(W.value), 1)) : x("v-if", !0),
1148
- T(M(pe), {
1148
+ T(M(he), {
1149
1149
  class: "code-config__layout",
1150
1150
  "explorer-count": (M(E)?.system && et.value ? 1 : 0) + +!!at.value,
1151
1151
  editing: Z.value || An.value || !!B.value
1152
1152
  }, {
1153
1153
  default: N(() => [
1154
- M(E)?.system && et.value ? (k(), b(M(i), {
1154
+ M(E)?.system && et.value ? (k(), b(M(Se), {
1155
1155
  key: 0,
1156
1156
  collapsible: "",
1157
- title: d("tenant-short", "租户"),
1157
+ title: f("tenant-short", "租户"),
1158
1158
  "has-selection": !!D.value
1159
1159
  }, {
1160
- default: N(() => [M(E)?.system && et.value ? (k(), b(M(ye), {
1160
+ default: N(() => [M(E)?.system && et.value ? (k(), b(M(xe), {
1161
1161
  key: 0,
1162
1162
  context: et.value,
1163
1163
  "selected-id": D.value || void 0,
@@ -1175,24 +1175,24 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1175
1175
  ])) : x("v-if", !0)]),
1176
1176
  _: 1
1177
1177
  }, 8, ["title", "has-selection"])) : x("v-if", !0),
1178
- at.value ? (k(), b(M(i), {
1178
+ at.value ? (k(), b(M(Se), {
1179
1179
  key: 1,
1180
1180
  collapsible: "",
1181
- title: d("module", "所属模块"),
1181
+ title: f("module", "所属模块"),
1182
1182
  "has-selection": !!I.value
1183
1183
  }, {
1184
- default: N(() => [T(M(be), {
1185
- title: d("module", "所属模块"),
1184
+ default: N(() => [T(M(fe), {
1185
+ title: f("module", "所属模块"),
1186
1186
  "refresh-disabled": Z.value || An.value,
1187
1187
  "search-keyword": rt.value,
1188
1188
  onRefresh: qn,
1189
1189
  "onUpdate:searchKeyword": n[4] ||= (e) => rt.value = e
1190
1190
  }, {
1191
- default: N(() => [T(M(Ee), {
1191
+ default: N(() => [T(M(Te), {
1192
1192
  records: it.value,
1193
1193
  "selected-id": I.value || void 0,
1194
1194
  keyword: rt.value,
1195
- "empty-description": d("no-modules", "没有可配置业务编码的模块。"),
1195
+ "empty-description": f("no-modules", "没有可配置业务编码的模块。"),
1196
1196
  onSelect: n[3] ||= (e) => Gn(String(e.id))
1197
1197
  }, null, 8, [
1198
1198
  "records",
@@ -1212,24 +1212,24 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1212
1212
  key: 1,
1213
1213
  spinning: !0
1214
1214
  }, {
1215
- default: N(() => [C("p", null, j(d("loading", "正在读取编码配置…")), 1)]),
1215
+ default: N(() => [C("p", null, j(f("loading", "正在读取编码配置…")), 1)]),
1216
1216
  _: 1
1217
- })) : !U.value && it.value.length === 0 ? (k(), S("div", It, [T(M(De), { description: Ne.value }, null, 8, ["description"]), M(ve) ? (k(), S("div", Lt, [Ce.value === "no-model" || Ce.value === "no-fields" ? (k(), b(M(m), {
1217
+ })) : !U.value && it.value.length === 0 ? (k(), S("div", It, [T(M(ce), { description: Ne.value }, null, 8, ["description"]), M(me) ? (k(), S("div", Lt, [we.value === "no-model" || we.value === "no-fields" ? (k(), b(M(h), {
1218
1218
  key: 0,
1219
1219
  type: "primary",
1220
1220
  onClick: Ve
1221
1221
  }, {
1222
- default: N(() => [w(j(d("configure-model", "配置模型")), 1)]),
1222
+ default: N(() => [w(j(f("configure-model", "配置模型")), 1)]),
1223
1223
  _: 1
1224
- })) : x("v-if", !0), T(M(m), { onClick: n[5] ||= (e) => M(ve).openRoute("/platform/module") }, {
1225
- default: N(() => [w(j(d("back-to-modules", "返回模块管理")), 1)]),
1224
+ })) : x("v-if", !0), T(M(h), { onClick: n[5] ||= (e) => M(me).openRoute("/platform/module") }, {
1225
+ default: N(() => [w(j(f("back-to-modules", "返回模块管理")), 1)]),
1226
1226
  _: 1
1227
- })])) : x("v-if", !0)])) : !I.value && F.value.length ? (k(), b(M(De), {
1227
+ })])) : x("v-if", !0)])) : !I.value && F.value.length ? (k(), b(M(ce), {
1228
1228
  key: 3,
1229
- description: d("select-module", "选择模块后,配置业务对象的编码规则。")
1230
- }, null, 8, ["description"])) : I.value && ot.value.length ? (k(), S("div", Rt, [T(M(be), {
1229
+ description: f("select-module", "选择模块后,配置业务对象的编码规则。")
1230
+ }, null, 8, ["description"])) : I.value && ot.value.length ? (k(), S("div", Rt, [T(M(fe), {
1231
1231
  class: "code-config__directory",
1232
- title: d("binding-title", "编码对象"),
1232
+ title: f("binding-title", "编码对象"),
1233
1233
  "refresh-disabled": Z.value || An.value,
1234
1234
  searchable: !1,
1235
1235
  onRefresh: qn
@@ -1241,7 +1241,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1241
1241
  "module-alias": Y.value.moduleAlias
1242
1242
  }, null, 8, ["module-alias"])) : x("v-if", !0)]),
1243
1243
  default: N(() => [C("div", zt, [
1244
- C("label", Bt, [w(j(d("entity", "业务对象")), 1), T(M(_), {
1244
+ C("label", Bt, [w(j(f("entity", "业务对象")), 1), T(M(m), {
1245
1245
  value: st.value,
1246
1246
  disabled: Z.value,
1247
1247
  options: ot.value.map((e) => ({
@@ -1254,7 +1254,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1254
1254
  "disabled",
1255
1255
  "options"
1256
1256
  ])]),
1257
- Y.value?.fields.length ? (k(), S("label", Vt, [w(j(d("field", "编码字段")), 1), T(M(_), {
1257
+ Y.value?.fields.length ? (k(), S("label", Vt, [w(j(f("field", "编码字段")), 1), T(M(m), {
1258
1258
  value: L.value,
1259
1259
  disabled: Z.value,
1260
1260
  options: Y.value?.fields.map((e) => ({
@@ -1267,20 +1267,20 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1267
1267
  "disabled",
1268
1268
  "options"
1269
1269
  ])])) : x("v-if", !0),
1270
- Y.value && !X.value ? (k(), S(v, { key: 1 }, [T(M(De), { description: d("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。") }, null, 8, ["description"]), M(ve) && Y.value.source === "DYNAMIC" ? (k(), b(M(m), {
1270
+ Y.value && !X.value ? (k(), S(v, { key: 1 }, [T(M(ce), { description: f("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。") }, null, 8, ["description"]), M(me) && Y.value.source === "DYNAMIC" ? (k(), b(M(h), {
1271
1271
  key: 0,
1272
1272
  onClick: Ve
1273
1273
  }, {
1274
- default: N(() => [w(j(d("configure-model", "配置模型")), 1)]),
1274
+ default: N(() => [w(j(f("configure-model", "配置模型")), 1)]),
1275
1275
  _: 1
1276
1276
  })) : x("v-if", !0)], 64)) : x("v-if", !0),
1277
- X.value ? (k(), S(v, { key: 2 }, [Y.value?.source === "STATIC" ? (k(), S("div", Ht, [C("span", null, j(wt.value), 1), T(M(le), { label: d("binding-info", "字段设置说明") }, {
1278
- default: N(() => [C("p", null, j(d("java-declaration", "字段角色和生成时机由业务模型预设。")), 1), C("dl", Ut, [
1279
- C("dt", null, j(d("module", "所属模块")), 1),
1277
+ X.value ? (k(), S(v, { key: 2 }, [Y.value?.source === "STATIC" ? (k(), S("div", Ht, [C("span", null, j(wt.value), 1), T(M(a), { label: f("binding-info", "字段设置说明") }, {
1278
+ default: N(() => [C("p", null, j(f("java-declaration", "字段角色和生成时机由业务模型预设。")), 1), C("dl", Ut, [
1279
+ C("dt", null, j(f("module", "所属模块")), 1),
1280
1280
  C("dd", null, j(Y.value.moduleAlias), 1),
1281
- C("dt", null, j(d("entity", "业务对象")), 1),
1281
+ C("dt", null, j(f("entity", "业务对象")), 1),
1282
1282
  C("dd", null, j(Y.value.entityAlias), 1),
1283
- C("dt", null, j(d("field", "编码字段")), 1),
1283
+ C("dt", null, j(f("field", "编码字段")), 1),
1284
1284
  C("dd", null, j(X.value.fieldName), 1)
1285
1285
  ])]),
1286
1286
  _: 1
@@ -1288,7 +1288,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1288
1288
  key: `${st.value}/${L.value}`,
1289
1289
  class: "code-config__binding"
1290
1290
  }, [C("div", Wt, [
1291
- C("label", Gt, [w(j(d("role", "编码角色")), 1), T(M(_), {
1291
+ C("label", Gt, [w(j(f("role", "编码角色")), 1), T(M(m), {
1292
1292
  value: q.value,
1293
1293
  "onUpdate:value": n[8] ||= (e) => q.value = e,
1294
1294
  disabled: Z.value || (X.value.role ? !nt.value : !P.value),
@@ -1301,7 +1301,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1301
1301
  "disabled",
1302
1302
  "options"
1303
1303
  ])]),
1304
- C("label", Kt, [w(j(d("trigger", "生成时机")), 1), T(M(_), {
1304
+ C("label", Kt, [w(j(f("trigger", "生成时机")), 1), T(M(m), {
1305
1305
  value: J.value,
1306
1306
  "onUpdate:value": n[9] ||= (e) => J.value = e,
1307
1307
  disabled: Z.value || (X.value.role ? !nt.value : !P.value),
@@ -1314,28 +1314,28 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1314
1314
  "disabled",
1315
1315
  "options"
1316
1316
  ])]),
1317
- X.value.role && kn.value ? (k(), S("div", qt, [T(M(m), {
1317
+ X.value.role && kn.value ? (k(), S("div", qt, [T(M(h), {
1318
1318
  disabled: !nt.value || Z.value,
1319
1319
  onClick: nr
1320
1320
  }, {
1321
- default: N(() => [w(j(d("save-binding", "保存字段配置")), 1)]),
1321
+ default: N(() => [w(j(f("save-binding", "保存字段配置")), 1)]),
1322
1322
  _: 1
1323
- }, 8, ["disabled"]), T(M(m), {
1323
+ }, 8, ["disabled"]), T(M(h), {
1324
1324
  disabled: Z.value,
1325
1325
  onClick: tr
1326
1326
  }, {
1327
- default: N(() => [w(j(d("cancel-settings", "取消修改")), 1)]),
1327
+ default: N(() => [w(j(f("cancel-settings", "取消修改")), 1)]),
1328
1328
  _: 1
1329
1329
  }, 8, ["disabled"])])) : x("v-if", !0)
1330
- ])])), X.value ? (k(), b(M(p), {
1330
+ ])])), X.value ? (k(), b(M(De), {
1331
1331
  key: 2,
1332
- title: d("rules", "编号规则"),
1332
+ title: f("rules", "编号规则"),
1333
1333
  kind: "relation"
1334
1334
  }, {
1335
- actions: N(() => [T(M(oe), {
1335
+ actions: N(() => [T(M(o), {
1336
1336
  "icon-name": "plus",
1337
- title: d("new-rule", "新增规则"),
1338
- "aria-label": d("new-rule", "新增规则"),
1337
+ title: f("new-rule", "新增规则"),
1338
+ "aria-label": f("new-rule", "新增规则"),
1339
1339
  disabled: !P.value || Z.value,
1340
1340
  onClick: $n
1341
1341
  }, null, 8, [
@@ -1343,13 +1343,13 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1343
1343
  "aria-label",
1344
1344
  "disabled"
1345
1345
  ])]),
1346
- default: N(() => [T(M(we), {
1346
+ default: N(() => [T(M(Ce), {
1347
1347
  class: "code-config__rules-table",
1348
1348
  columns: Dn.value,
1349
1349
  rows: Ot.value,
1350
1350
  density: "compact"
1351
1351
  }, {
1352
- cell: N(({ row: e, column: t }) => [t.fieldName === "title" ? (k(), b(M(m), {
1352
+ cell: N(({ row: e, column: t }) => [t.fieldName === "title" ? (k(), b(M(h), {
1353
1353
  key: 0,
1354
1354
  type: "link",
1355
1355
  class: "code-config__rule-name",
@@ -1358,11 +1358,11 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1358
1358
  }, {
1359
1359
  default: N(() => [w(j(e.title), 1)]),
1360
1360
  _: 2
1361
- }, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (k(), S(v, { key: 1 }, [B.value && B.value.id === e.id ? (k(), b(M(_), {
1361
+ }, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (k(), S(v, { key: 1 }, [B.value && B.value.id === e.id ? (k(), b(M(m), {
1362
1362
  key: 0,
1363
1363
  value: B.value.orgScopeType,
1364
1364
  "onUpdate:value": n[10] ||= (e) => B.value.orgScopeType = e,
1365
- "aria-label": d("scope", "适用范围"),
1365
+ "aria-label": f("scope", "适用范围"),
1366
1366
  disabled: !jn.value,
1367
1367
  options: Vn({
1368
1368
  GLOBAL: "当前租户全部组织",
@@ -1373,7 +1373,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1373
1373
  "aria-label",
1374
1374
  "disabled",
1375
1375
  "options"
1376
- ])) : (k(), S("span", Jt, j(e.orgScopeType === "GLOBAL" ? d("all-orgs", "全部机构") : d("enum.ORG", "指定组织及其下级")), 1))], 64)) : t.fieldName === "organization" ? (k(), S(v, { key: 2 }, [B.value && B.value.id === e.id && B.value.orgScopeType === "ORG" ? (k(), S("label", Yt, [C("span", Xt, j(d("organization", "适用组织")), 1), tt.value ? (k(), b(M(he), {
1376
+ ])) : (k(), S("span", Jt, j(e.orgScopeType === "GLOBAL" ? f("all-orgs", "全部机构") : f("enum.ORG", "指定组织及其下级")), 1))], 64)) : t.fieldName === "organization" ? (k(), S(v, { key: 2 }, [B.value && B.value.id === e.id && B.value.orgScopeType === "ORG" ? (k(), S("label", Yt, [C("span", Xt, j(f("organization", "适用组织")), 1), tt.value ? (k(), b(M(ye), {
1377
1377
  key: 0,
1378
1378
  value: B.value.orgScopeId ?? void 0,
1379
1379
  context: tt.value,
@@ -1384,7 +1384,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1384
1384
  "value",
1385
1385
  "context",
1386
1386
  "disabled"
1387
- ])) : (k(), S("span", Zt, j(d("tenant-required", "请使用租户身份选择组织。")), 1))])) : (k(), S("span", Qt, j((B.value && B.value.id === e.id ? B.value.orgScopeType : e.orgScopeType) === "GLOBAL" ? "—" : En(e)), 1))], 64)) : t.fieldName === "effectiveFrom" || t.fieldName === "effectiveTo" ? (k(), S(v, { key: 3 }, [B.value && B.value.id === e.id ? (k(), b(M(g), {
1387
+ ])) : (k(), S("span", Zt, j(f("tenant-required", "请使用租户身份选择组织。")), 1))])) : (k(), S("span", Qt, j((B.value && B.value.id === e.id ? B.value.orgScopeType : e.orgScopeType) === "GLOBAL" ? "—" : En(e)), 1))], 64)) : t.fieldName === "effectiveFrom" || t.fieldName === "effectiveTo" ? (k(), S(v, { key: 3 }, [B.value && B.value.id === e.id ? (k(), b(M(_), {
1388
1388
  key: 0,
1389
1389
  value: B.value[t.fieldName],
1390
1390
  "onUpdate:value": (e) => B.value[t.fieldName] = e,
@@ -1397,39 +1397,39 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1397
1397
  "onUpdate:value",
1398
1398
  "aria-label",
1399
1399
  "disabled"
1400
- ])) : (k(), S("span", $t, j(M(Te)(e[t.fieldName], {
1400
+ ])) : (k(), S("span", $t, j(M(ae)(e[t.fieldName], {
1401
1401
  language: M(u),
1402
1402
  precision: "minute",
1403
- emptyText: d("unlimited", "不限")
1404
- }).text), 1))], 64)) : t.fieldName === "actions" ? (k(), S("div", en, [B.value && B.value.id === e.id ? (k(), S(v, { key: 0 }, [T(M(m), {
1403
+ emptyText: f("unlimited", "不限")
1404
+ }).text), 1))], 64)) : t.fieldName === "actions" ? (k(), S("div", en, [B.value && B.value.id === e.id ? (k(), S(v, { key: 0 }, [T(M(h), {
1405
1405
  type: "link",
1406
1406
  disabled: !P.value || Z.value || !On.value,
1407
1407
  onClick: cr
1408
1408
  }, {
1409
- default: N(() => [w(j(d("save", "保存")), 1)]),
1409
+ default: N(() => [w(j(f("save", "保存")), 1)]),
1410
1410
  _: 1
1411
- }, 8, ["disabled"]), T(M(m), {
1411
+ }, 8, ["disabled"]), T(M(h), {
1412
1412
  type: "link",
1413
1413
  disabled: Z.value,
1414
1414
  onClick: sr
1415
1415
  }, {
1416
- default: N(() => [w(j(d("cancel-settings", "取消修改")), 1)]),
1416
+ default: N(() => [w(j(f("cancel-settings", "取消修改")), 1)]),
1417
1417
  _: 1
1418
- }, 8, ["disabled"])], 64)) : (k(), b(M(m), {
1418
+ }, 8, ["disabled"])], 64)) : (k(), b(M(h), {
1419
1419
  key: 1,
1420
1420
  type: "link",
1421
1421
  class: "code-config__edit-usage",
1422
- "aria-label": d("edit-usage", "编辑适用配置") + ":" + e.title,
1422
+ "aria-label": f("edit-usage", "编辑适用配置") + ":" + e.title,
1423
1423
  disabled: !P.value || Z.value,
1424
1424
  onClick: (t) => or(e)
1425
1425
  }, {
1426
- default: N(() => [w(j(d("edit", "编辑")), 1)]),
1426
+ default: N(() => [w(j(f("edit", "编辑")), 1)]),
1427
1427
  _: 1
1428
1428
  }, 8, [
1429
1429
  "aria-label",
1430
1430
  "disabled",
1431
1431
  "onClick"
1432
- ]))])) : t.fieldName === "enabled" ? (k(), b(M(ce), {
1432
+ ]))])) : t.fieldName === "enabled" ? (k(), b(M(ne), {
1433
1433
  key: 5,
1434
1434
  "aria-label": M(u).t("platform.code.config.rule-switch", "启用规则:{name}", { name: e.title }),
1435
1435
  checked: e.enabled,
@@ -1441,44 +1441,44 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1441
1441
  "disabled",
1442
1442
  "onChange"
1443
1443
  ])) : x("v-if", !0)]),
1444
- empty: N(() => [w(j(d("no-rules", "暂无编号规则")), 1)]),
1444
+ empty: N(() => [w(j(f("no-rules", "暂无编号规则")), 1)]),
1445
1445
  _: 1
1446
1446
  }, 8, ["columns", "rows"])]),
1447
1447
  _: 1
1448
1448
  }, 8, ["title"])) : x("v-if", !0)], 64)) : x("v-if", !0)
1449
1449
  ])]),
1450
1450
  _: 1
1451
- }, 8, ["title", "refresh-disabled"])])) : x("v-if", !0) : (k(), b(M(De), {
1451
+ }, 8, ["title", "refresh-disabled"])])) : x("v-if", !0) : (k(), b(M(ce), {
1452
1452
  key: 0,
1453
- description: d("select-tenant", "选择规则所属租户后,可维护该租户的编号规则。")
1453
+ description: f("select-tenant", "选择规则所属租户后,可维护该租户的编号规则。")
1454
1454
  }, null, 8, ["description"]))])
1455
1455
  ]),
1456
1456
  _: 1
1457
1457
  }, 8, ["explorer-count", "editing"]),
1458
- O.value ? (k(), b(M(o), {
1458
+ O.value ? (k(), b(M(ue), {
1459
1459
  key: 2,
1460
1460
  open: O.value,
1461
1461
  width: "wide",
1462
1462
  "before-close": Xn,
1463
1463
  onClose: Zn,
1464
1464
  class: "code-config__editor",
1465
- title: z.value?.id ? d("rules", "编号规则") : d("create-rule-title", "新增编号规则"),
1465
+ title: z.value?.id ? f("rules", "编号规则") : f("create-rule-title", "新增编号规则"),
1466
1466
  subtitle: [Y.value?.title, X.value?.title].filter(Boolean).join(" · ")
1467
1467
  }, Be({
1468
1468
  default: N(() => [U.value || W.value ? (k(), S("div", {
1469
1469
  key: 0,
1470
1470
  ref_key: "editorFeedback",
1471
1471
  ref: gt
1472
- }, [U.value ? (k(), b(M(l), {
1472
+ }, [U.value ? (k(), b(M(c), {
1473
1473
  key: 0,
1474
- title: d("request-failed", "操作未完成"),
1474
+ title: f("request-failed", "操作未完成"),
1475
1475
  message: U.value
1476
1476
  }, null, 8, ["title", "message"])) : x("v-if", !0), W.value ? (k(), S("p", tn, j(W.value), 1)) : x("v-if", !0)], 512)) : x("v-if", !0), z.value ? (k(), S("div", nn, [C("div", { class: We(["code-config__editor-grid", { "code-config__editor-grid--manual": z.value.mode === "MANUAL" }]) }, [C("div", rn, [
1477
- C("div", an, [C("label", on, [w(j(d("rule-title", "规则名称")), 1), T(M(g), {
1477
+ C("div", an, [C("label", on, [w(j(f("rule-title", "规则名称")), 1), T(M(_), {
1478
1478
  value: z.value.title,
1479
1479
  "onUpdate:value": n[12] ||= (e) => z.value.title = e,
1480
1480
  disabled: !jn.value
1481
- }, null, 8, ["value", "disabled"])]), C("label", sn, [w(j(d("mode", "编号方式")), 1), T(M(_), {
1481
+ }, null, 8, ["value", "disabled"])]), C("label", sn, [w(j(f("mode", "编号方式")), 1), T(M(m), {
1482
1482
  value: z.value.mode,
1483
1483
  disabled: !jn.value,
1484
1484
  options: Vn({
@@ -1492,7 +1492,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1492
1492
  "disabled",
1493
1493
  "options"
1494
1494
  ])])]),
1495
- z.value.mode === "MANUAL" ? (k(), S("p", cn, j(d("manual-description", "人工填写编号,无需设置编码格式。")), 1)) : x("v-if", !0),
1495
+ z.value.mode === "MANUAL" ? (k(), S("p", cn, j(f("manual-description", "人工填写编号,无需设置编码格式。")), 1)) : x("v-if", !0),
1496
1496
  Qe(T(yt, {
1497
1497
  rule: z.value,
1498
1498
  "onUpdate:rule": n[14] ||= (e) => z.value = e,
@@ -1508,41 +1508,41 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1508
1508
  (k(), S("details", {
1509
1509
  key: z.value.id ?? "new",
1510
1510
  class: "code-config__policy"
1511
- }, [C("summary", null, [w(j(d("numbering-policy", "编号策略")), 1), Et.value ? (k(), S("span", ln, " · " + j(Et.value), 1)) : x("v-if", !0)]), C("div", un, [Tt.value ? (k(), S("div", dn, [T(M(fe), {
1511
+ }, [C("summary", null, [w(j(f("numbering-policy", "编号策略")), 1), Et.value ? (k(), S("span", ln, " · " + j(Et.value), 1)) : x("v-if", !0)]), C("div", un, [Tt.value ? (k(), S("div", dn, [T(M(be), {
1512
1512
  checked: z.value.linkedUpdate,
1513
1513
  "onUpdate:checked": n[15] ||= (e) => z.value.linkedUpdate = e,
1514
1514
  disabled: !jn.value
1515
1515
  }, {
1516
- default: N(() => [w(j(d("linked", "修改编号来源后自动换号")), 1)]),
1516
+ default: N(() => [w(j(f("linked", "修改编号来源后自动换号")), 1)]),
1517
1517
  _: 1
1518
- }, 8, ["checked", "disabled"]), T(M(le), { label: d("linked-help-title", "自动换号说明") }, {
1519
- default: N(() => [C("p", null, j(d("linked-help", "已生成编号后,修改参与编号的业务字段并保存,将重新生成整个编号;包含流水号时会重新取号。未勾选则保留原编号,修改其他字段不受影响。")), 1), C("p", null, j(d("linked-example", "例如编号由“采购类别 + 流水号”组成:类别从“设备”改为“耗材”,编号会从 SB-0001 换为 HC-0002(示例)。")), 1)]),
1518
+ }, 8, ["checked", "disabled"]), T(M(a), { label: f("linked-help-title", "自动换号说明") }, {
1519
+ default: N(() => [C("p", null, j(f("linked-help", "已生成编号后,修改参与编号的业务字段并保存,将重新生成整个编号;包含流水号时会重新取号。未勾选则保留原编号,修改其他字段不受影响。")), 1), C("p", null, j(f("linked-example", "例如编号由“采购类别 + 流水号”组成:类别从“设备”改为“耗材”,编号会从 SB-0001 换为 HC-0002(示例)。")), 1)]),
1520
1520
  _: 1
1521
- }, 8, ["label"])])) : x("v-if", !0), C("div", fn, [T(M(fe), {
1521
+ }, 8, ["label"])])) : x("v-if", !0), C("div", fn, [T(M(be), {
1522
1522
  checked: z.value.allowRecycle,
1523
1523
  "onUpdate:checked": n[16] ||= (e) => z.value.allowRecycle = e,
1524
1524
  disabled: !jn.value
1525
1525
  }, {
1526
- default: N(() => [w(j(d("recycle-short-label", "允许复用旧号")), 1)]),
1526
+ default: N(() => [w(j(f("recycle-short-label", "允许复用旧号")), 1)]),
1527
1527
  _: 1
1528
- }, 8, ["checked", "disabled"]), T(M(le), { label: d("recycle-help-title", "旧号复用说明") }, {
1529
- default: N(() => [C("p", null, j(d("recycle-help", "记录彻底删除或更换编号后,释放的旧号允许再次分配。移入回收站仍会占用原编号;取消勾选后,旧号不再分配给其他记录。")), 1)]),
1528
+ }, 8, ["checked", "disabled"]), T(M(a), { label: f("recycle-help-title", "旧号复用说明") }, {
1529
+ default: N(() => [C("p", null, j(f("recycle-help", "记录彻底删除或更换编号后,释放的旧号允许再次分配。移入回收站仍会占用原编号;取消勾选后,旧号不再分配给其他记录。")), 1)]),
1530
1530
  _: 1
1531
1531
  }, 8, ["label"])])])]))
1532
1532
  ]), z.value.mode === "MANUAL" ? x("v-if", !0) : (k(), S("aside", {
1533
1533
  key: 0,
1534
1534
  class: "code-config__trial",
1535
- "aria-label": d("trial", "草稿试算")
1535
+ "aria-label": f("trial", "草稿试算")
1536
1536
  }, [
1537
- T(M(se), { title: d("trial", "草稿试算") }, null, 8, ["title"]),
1538
- C("p", mn, j(d("auto-trial-short", "自动试算,不占号")), 1),
1539
- C("div", hn, [C("div", gn, [C("span", null, j(d("trial-result", "试算结果")), 1), T(M(m), {
1537
+ T(M(s), { title: f("trial", "草稿试算") }, null, 8, ["title"]),
1538
+ C("p", mn, j(f("auto-trial-short", "自动试算,不占号")), 1),
1539
+ C("div", hn, [C("div", gn, [C("span", null, j(f("trial-result", "试算结果")), 1), T(M(h), {
1540
1540
  type: "text",
1541
1541
  "icon-name": "reload",
1542
1542
  "icon-only": "",
1543
1543
  size: "small",
1544
- title: d("refresh-trial", "刷新试算"),
1545
- "aria-label": d("refresh-trial", "刷新试算"),
1544
+ title: f("refresh-trial", "刷新试算"),
1545
+ "aria-label": f("refresh-trial", "刷新试算"),
1546
1546
  disabled: !Rn.value || dt.value,
1547
1547
  loading: dt.value,
1548
1548
  onClick: n[17] ||= (e) => ur(!0)
@@ -1557,16 +1557,16 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1557
1557
  ref: ht,
1558
1558
  tabindex: "-1",
1559
1559
  class: "code-config__trial-error"
1560
- }, [T(M(l), {
1561
- title: d("trial-failed", "试算未完成"),
1560
+ }, [T(M(c), {
1561
+ title: f("trial-failed", "试算未完成"),
1562
1562
  message: mt.value
1563
1563
  }, null, 8, ["title", "message"])], 512)) : G.value ? (k(), S("output", {
1564
1564
  key: 1,
1565
1565
  ref_key: "previewElement",
1566
1566
  ref: _t,
1567
- "aria-label": d("trial-result", "试算结果")
1568
- }, [C("strong", null, j(G.value.value), 1)], 8, _n)) : (k(), S("p", vn, j(ft.value || dt.value ? d("trial-updating", "正在更新…") : d("auto-trial-placeholder", "修改配置后自动更新")), 1))]),
1569
- Nn.value.length ? (k(), S("details", yn, [C("summary", null, j(d("trial-extra-short", "补充试算来源")), 1), C("label", bn, [C("span", xn, j(d("trial-extra-short", "补充试算来源")), 1), T(M(_), {
1567
+ "aria-label": f("trial-result", "试算结果")
1568
+ }, [C("strong", null, j(G.value.value), 1)], 8, _n)) : (k(), S("p", vn, j(ft.value || dt.value ? f("trial-updating", "正在更新…") : f("auto-trial-placeholder", "修改配置后自动更新")), 1))]),
1569
+ Nn.value.length ? (k(), S("details", yn, [C("summary", null, j(f("trial-extra-short", "补充试算来源")), 1), C("label", bn, [C("span", xn, j(f("trial-extra-short", "补充试算来源")), 1), T(M(m), {
1570
1570
  value: pt.value,
1571
1571
  "onUpdate:value": n[18] ||= (e) => pt.value = e,
1572
1572
  mode: "multiple",
@@ -1584,7 +1584,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1584
1584
  C("div", Sn, [(k(!0), S(v, null, qe(Pn.value, (e) => (k(), S("label", {
1585
1585
  class: "code-config__field",
1586
1586
  key: e.fieldName
1587
- }, [w(j(M(Ie)(e, M(u))), 1), M(Oe)(e) === "boolean" ? (k(), b(M(_), {
1587
+ }, [w(j(M(Ie)(e, M(u))), 1), M(Oe)(e) === "boolean" ? (k(), b(M(m), {
1588
1588
  key: 0,
1589
1589
  value: K.value[e.fieldName],
1590
1590
  "onUpdate:value": (t) => K.value[e.fieldName] = t,
@@ -1592,17 +1592,17 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1592
1592
  disabled: Z.value,
1593
1593
  options: [{
1594
1594
  value: "true",
1595
- label: d("boolean-true", "是")
1595
+ label: f("boolean-true", "是")
1596
1596
  }, {
1597
1597
  value: "false",
1598
- label: d("boolean-false", "否")
1598
+ label: f("boolean-false", "否")
1599
1599
  }]
1600
1600
  }, null, 8, [
1601
1601
  "value",
1602
1602
  "onUpdate:value",
1603
1603
  "disabled",
1604
1604
  "options"
1605
- ])) : (k(), b(M(g), {
1605
+ ])) : (k(), b(M(_), {
1606
1606
  key: 1,
1607
1607
  value: K.value[e.fieldName],
1608
1608
  "onUpdate:value": (t) => K.value[e.fieldName] = t,
@@ -1615,7 +1615,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1615
1615
  "step",
1616
1616
  "type",
1617
1617
  "disabled"
1618
- ]))]))), 128)), z.value.sequencePolicy ? (k(), S("label", Cn, [w(j(d("trial-sequence", "试算流水值")), 1), T(M(g), {
1618
+ ]))]))), 128)), z.value.sequencePolicy ? (k(), S("label", Cn, [w(j(f("trial-sequence", "试算流水值")), 1), T(M(_), {
1619
1619
  value: vt.value,
1620
1620
  "onUpdate:value": n[19] ||= (e) => vt.value = e,
1621
1621
  type: "number",
@@ -1626,32 +1626,32 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1626
1626
  "placeholder",
1627
1627
  "disabled"
1628
1628
  ])])) : x("v-if", !0)]),
1629
- G.value?.segments.length ? (k(), S("p", wn, j(d("segment-results", "片段结果(不含分隔符)")), 1)) : x("v-if", !0),
1629
+ G.value?.segments.length ? (k(), S("p", wn, j(f("segment-results", "片段结果(不含分隔符)")), 1)) : x("v-if", !0),
1630
1630
  G.value?.segments.length ? (k(), S("ol", {
1631
1631
  key: 2,
1632
1632
  class: "code-config__preview-segments",
1633
- "aria-label": d("segment-results", "片段结果(不含分隔符)")
1634
- }, [(k(!0), S(v, null, qe(G.value.segments, (e, t) => (k(), S("li", { key: t }, [C("span", null, j(d(`segment.${e.segmentType}`, e.segmentType)), 1), C("code", null, j(e.value), 1)]))), 128))], 8, Tn)) : x("v-if", !0)
1635
- ], 8, pn))], 2)])) : (k(), b(M(De), {
1633
+ "aria-label": f("segment-results", "片段结果(不含分隔符)")
1634
+ }, [(k(!0), S(v, null, qe(G.value.segments, (e, t) => (k(), S("li", { key: t }, [C("span", null, j(f(`segment.${e.segmentType}`, e.segmentType)), 1), C("code", null, j(e.value), 1)]))), 128))], 8, Tn)) : x("v-if", !0)
1635
+ ], 8, pn))], 2)])) : (k(), b(M(ce), {
1636
1636
  key: 1,
1637
- description: d("choose-rule", "选择或新增编号规则。")
1637
+ description: f("choose-rule", "选择或新增编号规则。")
1638
1638
  }, null, 8, ["description"]))]),
1639
1639
  _: 2
1640
1640
  }, [z.value ? {
1641
1641
  name: "header-actions",
1642
- fn: N(() => [T(M(m), {
1642
+ fn: N(() => [T(M(h), {
1643
1643
  disabled: Z.value,
1644
1644
  onClick: Zn
1645
1645
  }, {
1646
- default: N(() => [w(j(d("cancel", "取消修改")), 1)]),
1646
+ default: N(() => [w(j(f("cancel", "取消修改")), 1)]),
1647
1647
  _: 1
1648
- }, 8, ["disabled"]), T(M(m), {
1648
+ }, 8, ["disabled"]), T(M(h), {
1649
1649
  type: "primary",
1650
1650
  disabled: !jn.value || kn.value,
1651
1651
  loading: H.value,
1652
1652
  onClick: ir
1653
1653
  }, {
1654
- default: N(() => [w(j(d("save-rule", "保存规则")), 1)]),
1654
+ default: N(() => [w(j(f("save-rule", "保存规则")), 1)]),
1655
1655
  _: 1
1656
1656
  }, 8, ["disabled", "loading"])]),
1657
1657
  key: "0"
@@ -1662,6 +1662,6 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1662
1662
  ])) : x("v-if", !0)
1663
1663
  ]));
1664
1664
  }
1665
- }), Dn = /* @__PURE__ */ e({ default: () => On }), On = /*#__PURE__*/ ve(En, [["__scopeId", "data-v-a792aff4"]]);
1665
+ }), Dn = /* @__PURE__ */ e({ default: () => On }), On = /*#__PURE__*/ we(En, [["__scopeId", "data-v-a792aff4"]]);
1666
1666
  //#endregion
1667
1667
  export { bt as i, Dn as n, jt as r, On as t };