@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,69 +1,69 @@
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-DhaREttd.js";
3
- import { $t as i, An as a, Da as ee, Fa as o, Ht as s, Ma as c, Mn as l, Nn as u, Tn as d, U as te, Ut as ne, Vt as f, Wn as re, Wr as ie, Xa as ae, Xn as p, Yn as oe, _n as se, _t as ce, da as le, ei as m, en as ue, eo as de, fr as h, it as fe, jr as pe, lr as g, ma as me, or as _, pa as he, qa as ge, qr as _e, r as ve, rr as v, rt as ye, sr as be, ur as y, v as xe, wa as Se, wn as Ce, xn as we, zn as Te } from "./platform-components-i2ONyZ8r.js";
4
- import { a as Ee, c as De, d as Oe, i as ke, l as Ae, n as je, o as Me, p as Ne, r as Pe, s as Fe, t as Ie, u as Le } from "./codeConfiguration-DhCBKbkc.js";
5
- import { Fragment as b, computed as x, createBlock as S, createCommentVNode as C, createElementBlock as w, createElementVNode as T, createSlots as Re, createTextVNode as E, createVNode as D, defineComponent as ze, inject as Be, mergeModels as O, nextTick as Ve, normalizeClass as He, onActivated as k, onBeforeUnmount as Ue, onDeactivated as We, onUnmounted as A, openBlock as j, ref as M, renderList as Ge, toDisplayString as N, toRaw as Ke, unref as P, useModel as qe, vShow as Je, watch as Ye, withCtx as F, withDirectives as Xe } from "vue";
2
+ import { m as t, ut as n, y as r } from "./platform-workbench-CobObbuz.js";
3
+ import { $a as i, $r as a, $t as ee, An as o, Ar as s, Ca as c, Ea as te, Ht as l, Ka as u, Kr as ne, Mn as re, Nn as ie, Pa as ae, Tn as d, U as oe, Ur as se, Ut as ce, Vt as f, Wn as p, Xn as m, Ya as le, Yn as ue, _n as de, _t as fe, en as pe, fa as me, fr as h, it as he, ja as ge, lr as _e, or as g, pa as ve, r as ye, rr as _, rt as be, sr as xe, ua as Se, ur as v, v as Ce, wn as we, xn as Te, zn as Ee } from "./platform-components-D0T03KGl.js";
4
+ import { a as De, c as Oe, d as ke, i as Ae, l as je, n as Me, o as Ne, p as Pe, r as Fe, s as Ie, t as Le, u as Re } from "./codeConfiguration-D1zrxzoW.js";
5
+ import { Fragment as y, computed as b, createBlock as x, createCommentVNode as S, createElementBlock as C, createElementVNode as w, createSlots as ze, createTextVNode as T, createVNode as E, defineComponent as Be, inject as Ve, mergeModels as D, nextTick as He, normalizeClass as Ue, onActivated as We, 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
- var Ze = { class: "code-format" }, Qe = {
7
+ var $e = { class: "code-format" }, et = {
8
8
  class: "code-format__segments",
9
9
  role: "list"
10
- }, $e = { class: "code-format__segment-heading" }, I = { class: "code-format__segment-number" }, et = { class: "code-format__segment-actions" }, L = {
10
+ }, tt = { class: "code-format__segment-heading" }, P = { class: "code-format__segment-number" }, nt = { class: "code-format__segment-actions" }, F = {
11
11
  key: 0,
12
12
  class: "code-format__grid"
13
- }, R = {
13
+ }, I = {
14
14
  key: 0,
15
15
  class: "code-format__field"
16
- }, tt = {
16
+ }, rt = {
17
17
  key: 1,
18
18
  class: "code-format__field"
19
- }, nt = {
19
+ }, it = {
20
20
  key: 2,
21
21
  class: "code-format__field"
22
- }, rt = {
22
+ }, at = {
23
23
  key: 3,
24
24
  class: "code-format__field"
25
- }, it = {
25
+ }, ot = {
26
26
  key: 4,
27
27
  class: "code-format__field code-format__wide"
28
- }, at = {
28
+ }, st = {
29
29
  key: 5,
30
30
  class: "code-format__field"
31
- }, z = { class: "code-format__advanced" }, B = { key: 0 }, V = { class: "code-format__grid" }, ot = {
31
+ }, L = { class: "code-format__advanced" }, R = { key: 0 }, z = { class: "code-format__grid" }, ct = {
32
32
  key: 0,
33
33
  class: "code-format__help code-format__wide"
34
- }, H = {
34
+ }, B = {
35
35
  key: 1,
36
36
  class: "code-format__field"
37
- }, st = {
37
+ }, lt = {
38
38
  key: 2,
39
39
  class: "code-format__field"
40
- }, U = {
40
+ }, V = {
41
41
  key: 3,
42
42
  class: "code-format__field"
43
- }, ct = {
43
+ }, ut = {
44
44
  key: 4,
45
45
  class: "code-format__field"
46
- }, W = { class: "code-format__field" }, lt = {
46
+ }, H = { class: "code-format__field" }, dt = {
47
47
  key: 5,
48
48
  class: "code-format__field"
49
- }, ut = {
49
+ }, ft = {
50
50
  key: 6,
51
51
  class: "code-format__field"
52
- }, dt = {
52
+ }, pt = {
53
53
  key: 0,
54
54
  class: "code-format__help"
55
- }, G = {
55
+ }, U = {
56
56
  key: 1,
57
57
  class: "code-format__mapping"
58
- }, ft = {
58
+ }, mt = {
59
59
  key: 0,
60
60
  class: "code-format__grid"
61
- }, pt = { class: "code-format__field" }, mt = { class: "code-format__field" }, K = { class: "code-format__sequence-advanced code-format__wide" }, ht = { class: "code-format__grid" }, gt = { class: "code-format__field" }, _t = { class: "code-format__field" }, vt = { class: "code-format__field" }, q = {
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__*/ h(/* @__PURE__ */ ze({
64
+ }, J = { class: "code-format__field" }, yt = /*#__PURE__*/ h(/* @__PURE__ */ Be({
65
65
  __name: "CodeRuleFormatEditor",
66
- props: /*@__PURE__*/ O({
66
+ props: /*@__PURE__*/ D({
67
67
  sources: {},
68
68
  editable: { type: Boolean },
69
69
  trigger: {}
@@ -73,12 +73,12 @@ var Ze = { class: "code-format" }, Qe = {
73
73
  }),
74
74
  emits: ["update:rule"],
75
75
  setup(e) {
76
- let t = e, n = qe(e, "rule"), r = ae(), i = (e, t) => r.t(`platform.code.config.${e}`, t), a = x(() => t.sources.map((e) => ({
76
+ let t = e, n = Ye(e, "rule"), r = le(), i = (e, t) => r.t(`platform.code.config.${e}`, t), a = b(() => t.sources.map((e) => ({
77
77
  value: e.fieldName,
78
- label: Pe(e, r)
79
- }))), ee = x(() => t.sources.map((e) => ({
78
+ label: Fe(e, r)
79
+ }))), ee = b(() => t.sources.map((e) => ({
80
80
  name: e.fieldName,
81
- label: Pe(e, r),
81
+ label: Fe(e, r),
82
82
  valueType: e.type
83
83
  }))), o = {
84
84
  CONSTANT: "固定文字",
@@ -88,13 +88,13 @@ var Ze = { class: "code-format" }, Qe = {
88
88
  SEQUENCE: "流水号",
89
89
  VALUE_MAPPING: "值映射",
90
90
  FORMULA: "公式"
91
- }, s = x(() => je.map((e) => ({
91
+ }, s = b(() => Me.map((e) => ({
92
92
  value: e,
93
93
  label: i(`segment.${e}`, o[e])
94
94
  }))), c = (e, t) => Object.entries(t).map(([t, n]) => ({
95
95
  value: t,
96
96
  label: i(`enum.${e}.${t}`, n)
97
- })), l = [
97
+ })), te = [
98
98
  "YY",
99
99
  "YYYY",
100
100
  "YYMM",
@@ -105,14 +105,14 @@ var Ze = { class: "code-format" }, Qe = {
105
105
  "YYYY_MM_DD",
106
106
  "YYYY_MM_DD_HH_MM_SS",
107
107
  "HHMMSS"
108
- ], u = /* @__PURE__ */ new WeakMap(), te = 0, f = /* @__PURE__ */ new WeakMap(), re = null;
109
- Ye(() => n.value, () => {
108
+ ], l = /* @__PURE__ */ new WeakMap(), u = 0, ne = /* @__PURE__ */ new WeakMap(), re = null;
109
+ Ze(() => n.value, () => {
110
110
  re = null;
111
111
  });
112
112
  function ie(e) {
113
- return e = Ke(e), u.has(e) || u.set(e, ++te), u.get(e);
113
+ return e = Je(e), l.has(e) || l.set(e, ++u), l.get(e);
114
114
  }
115
- function p(e) {
115
+ function ae(e) {
116
116
  return [
117
117
  "FIELD_VALUE",
118
118
  "CONTEXT_VAR",
@@ -120,23 +120,23 @@ var Ze = { class: "code-format" }, Qe = {
120
120
  "FORMULA"
121
121
  ].includes(e.segmentType);
122
122
  }
123
- function se(e) {
123
+ function oe(e) {
124
124
  return !!n.value.sequencePolicy && !["CONSTANT", "SEQUENCE"].includes(e.segmentType);
125
125
  }
126
- let ce = x(() => r.t("platform.code.config.inherited-sequence-length", "继承流水长度:{length}", { length: n.value.sequencePolicy?.sequenceLength ?? "—" })), le = x(() => {
126
+ let se = b(() => r.t("platform.code.config.inherited-sequence-length", "继承流水长度:{length}", { length: n.value.sequencePolicy?.sequenceLength ?? "—" })), f = b(() => {
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 m(e) {
133
+ function p(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 ue(e) {
136
+ function m(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 de = x(() => {
139
+ let de = b(() => {
140
140
  let e = n.value.sequencePolicy;
141
141
  if (!e) return "";
142
142
  let t = [
@@ -147,48 +147,48 @@ var Ze = { class: "code-format" }, Qe = {
147
147
  ].filter(Boolean);
148
148
  return t.length ? t.join(" · ") : i("defaults", "默认设置");
149
149
  });
150
- function h(e) {
150
+ function fe(e) {
151
151
  return e === "" || e == null ? null : Number(e);
152
152
  }
153
- function fe() {
154
- n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??= re ?? Le() : (re = n.value.sequencePolicy ?? re, n.value.sequencePolicy = null));
153
+ function pe() {
154
+ n.value && (n.value.segments.some((e) => e.segmentType === "SEQUENCE") ? n.value.sequencePolicy ??= re ?? Re() : (re = n.value.sequencePolicy ?? re, n.value.sequencePolicy = null));
155
155
  }
156
- function pe(e, t) {
156
+ function me(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 = f.get(Ke(r)) ?? /* @__PURE__ */ new Map();
160
+ let i = ne.get(Je(r)) ?? /* @__PURE__ */ new Map();
161
161
  i.set(r.segmentType, JSON.parse(JSON.stringify(r)));
162
162
  let a = {
163
- ...i.get(t) ?? Ae(t),
163
+ ...i.get(t) ?? je(t),
164
164
  id: r.id,
165
165
  version: r.version
166
166
  };
167
- u.set(a, ie(r)), f.set(a, i), n.value.segments[e] = a, fe();
167
+ l.set(a, ie(r)), ne.set(a, i), n.value.segments[e] = a, pe();
168
168
  }
169
- function g() {
170
- n.value && (n.value.segments.push(Ae()), fe());
169
+ function h() {
170
+ n.value && (n.value.segments.push(je()), pe());
171
171
  }
172
- function me(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 he(e) {
179
- n.value?.segments.splice(e, 1), fe();
178
+ function ge(e) {
179
+ n.value?.segments.splice(e, 1), pe();
180
180
  }
181
- return (r, o) => (j(), w("section", Ze, [
182
- D(P(ne), { title: i("format", "编码格式") }, null, 8, ["title"]),
183
- T("ol", Qe, [(j(!0), w(b, null, Ge(n.value.segments, (r, u) => (j(), w("li", { key: ie(r) }, [
184
- T("div", $e, [
185
- T("span", I, N(u + 1), 1),
186
- D(P(_), {
181
+ return (r, o) => (k(), C("section", $e, [
182
+ E(M(ce), { title: i("format", "编码格式") }, null, 8, ["title"]),
183
+ w("ol", et, [(k(!0), C(y, null, qe(n.value.segments, (r, l) => (k(), C("li", { key: ie(r) }, [
184
+ w("div", tt, [
185
+ w("span", P, j(l + 1), 1),
186
+ E(M(g), {
187
187
  "aria-label": i("segment-type", "片段类型"),
188
188
  value: r.segmentType,
189
189
  disabled: !e.editable,
190
190
  options: s.value,
191
- "onUpdate:value": (e) => pe(u, e)
191
+ "onUpdate:value": (e) => me(l, e)
192
192
  }, null, 8, [
193
193
  "aria-label",
194
194
  "value",
@@ -196,45 +196,45 @@ var Ze = { class: "code-format" }, Qe = {
196
196
  "options",
197
197
  "onUpdate:value"
198
198
  ]),
199
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (j(), S(P(oe), {
199
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (k(), x(M(ue), {
200
200
  key: 0,
201
201
  label: i("bounded-help-title", "片段长度说明")
202
202
  }, {
203
- default: F(() => [E(N(i("bounded-help", "为公式或外部上下文设置长度与截取方式,确保编码不超出目标字段长度。")), 1)]),
203
+ default: N(() => [T(j(i("bounded-help", "为公式或外部上下文设置长度与截取方式,确保编码不超出目标字段长度。")), 1)]),
204
204
  _: 1
205
- }, 8, ["label"])) : C("v-if", !0),
206
- T("div", et, [
207
- D(P(y), {
205
+ }, 8, ["label"])) : S("v-if", !0),
206
+ w("div", nt, [
207
+ E(M(v), {
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 || u === 0,
215
- onClick: (e) => me(u, -1)
214
+ disabled: !e.editable || l === 0,
215
+ onClick: (e) => he(l, -1)
216
216
  }, null, 8, [
217
217
  "title",
218
218
  "aria-label",
219
219
  "disabled",
220
220
  "onClick"
221
221
  ]),
222
- D(P(y), {
222
+ E(M(v), {
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 || u === n.value.segments.length - 1,
230
- onClick: (e) => me(u, 1)
229
+ disabled: !e.editable || l === n.value.segments.length - 1,
230
+ onClick: (e) => he(l, 1)
231
231
  }, null, 8, [
232
232
  "title",
233
233
  "aria-label",
234
234
  "disabled",
235
235
  "onClick"
236
236
  ]),
237
- D(P(y), {
237
+ E(M(v), {
238
238
  type: "text",
239
239
  "icon-name": "delete",
240
240
  "icon-only": "",
@@ -242,7 +242,7 @@ var Ze = { class: "code-format" }, Qe = {
242
242
  title: i("remove", "删除"),
243
243
  "aria-label": i("remove", "删除"),
244
244
  disabled: !e.editable,
245
- onClick: (e) => he(u)
245
+ onClick: (e) => ge(l)
246
246
  }, null, 8, [
247
247
  "title",
248
248
  "aria-label",
@@ -251,8 +251,8 @@ var Ze = { class: "code-format" }, Qe = {
251
251
  ])
252
252
  ])
253
253
  ]),
254
- r.segmentType === "SEQUENCE" ? C("v-if", !0) : (j(), w("div", L, [
255
- r.segmentType === "CONSTANT" ? (j(), w("label", R, [E(N(i("constant", "固定文字")), 1), D(P(v), {
254
+ r.segmentType === "SEQUENCE" ? S("v-if", !0) : (k(), C("div", F, [
255
+ r.segmentType === "CONSTANT" ? (k(), C("label", I, [T(j(i("constant", "固定文字")), 1), E(M(_), {
256
256
  value: r.fixedValue,
257
257
  "onUpdate:value": (e) => r.fixedValue = e,
258
258
  disabled: !e.editable
@@ -260,8 +260,8 @@ var Ze = { class: "code-format" }, Qe = {
260
260
  "value",
261
261
  "onUpdate:value",
262
262
  "disabled"
263
- ])])) : C("v-if", !0),
264
- ["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (j(), w("label", tt, [E(N(i("source", "来源字段")), 1), D(P(_), {
263
+ ])])) : S("v-if", !0),
264
+ ["FIELD_VALUE", "VALUE_MAPPING"].includes(r.segmentType) ? (k(), C("label", rt, [T(j(i("source", "来源字段")), 1), E(M(g), {
265
265
  value: r.sourceRef,
266
266
  "onUpdate:value": (e) => r.sourceRef = e,
267
267
  disabled: !e.editable,
@@ -271,8 +271,8 @@ var Ze = { class: "code-format" }, Qe = {
271
271
  "onUpdate:value",
272
272
  "disabled",
273
273
  "options"
274
- ])])) : C("v-if", !0),
275
- r.segmentType === "CONTEXT_VAR" ? (j(), w("label", nt, [E(N(i("context", "动作传入的上下文名称")), 1), (t.trigger ?? n.value.fieldTrigger ?? "SAVE") === "EXPLICIT" ? (j(), S(P(v), {
274
+ ])])) : S("v-if", !0),
275
+ r.segmentType === "CONTEXT_VAR" ? (k(), C("label", it, [T(j(i("context", "动作传入的上下文名称")), 1), (t.trigger ?? n.value.fieldTrigger ?? "SAVE") === "EXPLICIT" ? (k(), x(M(_), {
276
276
  key: 1,
277
277
  value: r.sourceRef,
278
278
  "onUpdate:value": (e) => r.sourceRef = e,
@@ -281,7 +281,7 @@ var Ze = { class: "code-format" }, Qe = {
281
281
  "value",
282
282
  "onUpdate:value",
283
283
  "disabled"
284
- ])) : (j(), S(P(_), {
284
+ ])) : (k(), x(M(g), {
285
285
  key: 0,
286
286
  value: r.sourceRef,
287
287
  "onUpdate:value": (e) => r.sourceRef = e,
@@ -292,12 +292,12 @@ var Ze = { class: "code-format" }, Qe = {
292
292
  "onUpdate:value",
293
293
  "disabled",
294
294
  "options"
295
- ]))])) : C("v-if", !0),
296
- r.segmentType === "SYSTEM_TIME" ? (j(), w("label", rt, [E(N(i("date-format", "时间格式")), 1), D(P(_), {
295
+ ]))])) : S("v-if", !0),
296
+ r.segmentType === "SYSTEM_TIME" ? (k(), C("label", at, [T(j(i("date-format", "时间格式")), 1), E(M(g), {
297
297
  value: r.dateFormat,
298
298
  "onUpdate:value": (e) => r.dateFormat = e,
299
299
  disabled: !e.editable,
300
- options: l.map((e) => ({
300
+ options: te.map((e) => ({
301
301
  value: e,
302
302
  label: e
303
303
  }))
@@ -306,8 +306,8 @@ var Ze = { class: "code-format" }, Qe = {
306
306
  "onUpdate:value",
307
307
  "disabled",
308
308
  "options"
309
- ])])) : C("v-if", !0),
310
- r.segmentType === "FORMULA" ? (j(), w("label", it, [E(N(i("formula", "返回编码片段的公式")), 1), D(P(d), {
309
+ ])])) : S("v-if", !0),
310
+ r.segmentType === "FORMULA" ? (k(), C("label", ot, [T(j(i("formula", "返回编码片段的公式")), 1), E(M(d), {
311
311
  value: r.formulaExpr ?? "",
312
312
  "onUpdate:value": (e) => r.formulaExpr = e,
313
313
  disabled: !e.editable,
@@ -317,33 +317,33 @@ var Ze = { class: "code-format" }, Qe = {
317
317
  "onUpdate:value",
318
318
  "disabled",
319
319
  "fields"
320
- ])])) : C("v-if", !0),
321
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (j(), w("label", at, [E(N(i("length", "片段长度")) + " ", 1), D(P(v), {
320
+ ])])) : S("v-if", !0),
321
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? (k(), C("label", st, [T(j(i("length", "片段长度")) + " ", 1), E(M(_), {
322
322
  value: r.length ?? void 0,
323
323
  type: "number",
324
324
  disabled: !e.editable,
325
- "onUpdate:value": (e) => r.length = h(e)
325
+ "onUpdate:value": (e) => r.length = fe(e)
326
326
  }, null, 8, [
327
327
  "value",
328
328
  "disabled",
329
329
  "onUpdate:value"
330
- ])])) : C("v-if", !0)
330
+ ])])) : S("v-if", !0)
331
331
  ])),
332
- T("details", z, [T("summary", null, [E(N(i("advanced-format", "高级设置")), 1), m(r) ? (j(), w("span", B, " · " + N(ue(r)), 1)) : C("v-if", !0)]), T("div", V, [
333
- r.segmentType !== "SEQUENCE" && !r.length ? (j(), w("p", ot, N(i("length-dependent-hint", "设置片段长度后,补位与超长截取才会生效。")), 1)) : C("v-if", !0),
334
- ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? C("v-if", !0) : (j(), w("label", H, [E(N(r.segmentType === "SEQUENCE" ? i("sequence-length-override", "片段长度(覆盖流水长度)") : i("length", "片段长度")), 1), D(P(v), {
332
+ w("details", L, [w("summary", null, [T(j(i("advanced-format", "高级设置")), 1), p(r) ? (k(), C("span", R, " · " + j(m(r)), 1)) : S("v-if", !0)]), w("div", z, [
333
+ r.segmentType !== "SEQUENCE" && !r.length ? (k(), C("p", ct, j(i("length-dependent-hint", "设置片段长度后,补位与超长截取才会生效。")), 1)) : S("v-if", !0),
334
+ ["FORMULA", "CONTEXT_VAR"].includes(r.segmentType) ? S("v-if", !0) : (k(), C("label", B, [T(j(r.segmentType === "SEQUENCE" ? i("sequence-length-override", "片段长度(覆盖流水长度)") : i("length", "片段长度")), 1), E(M(_), {
335
335
  value: r.length ?? void 0,
336
- placeholder: r.segmentType === "SEQUENCE" ? ce.value : void 0,
336
+ placeholder: r.segmentType === "SEQUENCE" ? se.value : void 0,
337
337
  type: "number",
338
338
  disabled: !e.editable,
339
- "onUpdate:value": (e) => r.length = h(e)
339
+ "onUpdate:value": (e) => r.length = fe(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" ? (j(), w("label", st, [E(N(i("padding", "补位")), 1), D(P(_), {
346
+ r.segmentType !== "SEQUENCE" || (r.padMode ?? "NONE") !== "NONE" ? (k(), C("label", lt, [T(j(i("padding", "补位")), 1), E(M(g), {
347
347
  value: r.padMode,
348
348
  "onUpdate:value": (e) => r.padMode = e,
349
349
  disabled: !e.editable,
@@ -357,8 +357,8 @@ var Ze = { class: "code-format" }, Qe = {
357
357
  "onUpdate:value",
358
358
  "disabled",
359
359
  "options"
360
- ])])) : C("v-if", !0),
361
- (r.padMode ?? "NONE") === "NONE" ? C("v-if", !0) : (j(), w("label", U, [E(N(i("pad-char", "补位字符")), 1), D(P(v), {
360
+ ])])) : S("v-if", !0),
361
+ (r.padMode ?? "NONE") === "NONE" ? S("v-if", !0) : (k(), C("label", V, [T(j(i("pad-char", "补位字符")), 1), E(M(_), {
362
362
  value: r.padChar,
363
363
  "onUpdate:value": (e) => r.padChar = e,
364
364
  disabled: !e.editable
@@ -367,7 +367,7 @@ var Ze = { class: "code-format" }, Qe = {
367
367
  "onUpdate:value",
368
368
  "disabled"
369
369
  ])])),
370
- r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (j(), w("label", ct, [E(N(i("truncate", "超长截取")), 1), D(P(_), {
370
+ r.segmentType !== "SEQUENCE" || (r.truncatePolicy ?? "NONE") !== "NONE" ? (k(), C("label", ut, [T(j(i("truncate", "超长截取")), 1), E(M(g), {
371
371
  value: r.truncatePolicy,
372
372
  "onUpdate:value": (e) => r.truncatePolicy = e,
373
373
  disabled: !e.editable,
@@ -381,8 +381,8 @@ var Ze = { class: "code-format" }, Qe = {
381
381
  "onUpdate:value",
382
382
  "disabled",
383
383
  "options"
384
- ])])) : C("v-if", !0),
385
- T("label", W, [E(N(i("separator", "片段后分隔符")), 1), D(P(v), {
384
+ ])])) : S("v-if", !0),
385
+ w("label", H, [T(j(i("separator", "片段后分隔符")), 1), E(M(_), {
386
386
  value: r.separator,
387
387
  "onUpdate:value": (e) => r.separator = e,
388
388
  disabled: !e.editable
@@ -391,7 +391,7 @@ var Ze = { class: "code-format" }, Qe = {
391
391
  "onUpdate:value",
392
392
  "disabled"
393
393
  ])]),
394
- p(r) || (r.nullPolicy ?? "ERROR") !== "ERROR" ? (j(), w("label", lt, [E(N(i("null-policy", "来源为空时")), 1), D(P(_), {
394
+ ae(r) || (r.nullPolicy ?? "ERROR") !== "ERROR" ? (k(), C("label", dt, [T(j(i("null-policy", "来源为空时")), 1), E(M(g), {
395
395
  value: r.nullPolicy,
396
396
  "onUpdate:value": (e) => r.nullPolicy = e,
397
397
  disabled: !e.editable,
@@ -408,10 +408,10 @@ var Ze = { class: "code-format" }, Qe = {
408
408
  "onUpdate:value",
409
409
  "disabled",
410
410
  "options"
411
- ])])) : C("v-if", !0),
412
- r.nullPolicy === "USE_DEFAULT" && r.segmentType !== "CONSTANT" ? (j(), w("label", ut, [
413
- E(N(r.segmentType === "VALUE_MAPPING" ? i("mapping-fallback", "来源默认值") : i("default-text", "默认文字")), 1),
414
- D(P(v), {
411
+ ])])) : S("v-if", !0),
412
+ r.nullPolicy === "USE_DEFAULT" && r.segmentType !== "CONSTANT" ? (k(), C("label", ft, [
413
+ T(j(r.segmentType === "VALUE_MAPPING" ? i("mapping-fallback", "来源默认值") : i("default-text", "默认文字")), 1),
414
+ E(M(_), {
415
415
  value: r.fixedValue,
416
416
  "onUpdate:value": (e) => r.fixedValue = e,
417
417
  disabled: !e.editable
@@ -420,28 +420,28 @@ var Ze = { class: "code-format" }, Qe = {
420
420
  "onUpdate:value",
421
421
  "disabled"
422
422
  ]),
423
- r.segmentType === "VALUE_MAPPING" ? (j(), w("span", dt, N(i("mapping-fallback-hint", "默认值仍需匹配下方映射。")), 1)) : C("v-if", !0)
424
- ])) : C("v-if", !0),
425
- se(r) || r.sequenceBasis ? (j(), S(P(be), {
423
+ r.segmentType === "VALUE_MAPPING" ? (k(), C("span", pt, j(i("mapping-fallback-hint", "默认值仍需匹配下方映射。")), 1)) : S("v-if", !0)
424
+ ])) : S("v-if", !0),
425
+ oe(r) || r.sequenceBasis ? (k(), x(M(xe), {
426
426
  key: 7,
427
427
  class: "code-format__basis code-format__wide",
428
428
  checked: r.sequenceBasis,
429
429
  "onUpdate:checked": (e) => r.sequenceBasis = e,
430
430
  disabled: !e.editable
431
431
  }, {
432
- default: F(() => [E(N(i("basis", "按该片段分别计数")), 1)]),
432
+ default: N(() => [T(j(i("basis", "按该片段分别计数")), 1)]),
433
433
  _: 1
434
434
  }, 8, [
435
435
  "checked",
436
436
  "onUpdate:checked",
437
437
  "disabled"
438
- ])) : C("v-if", !0)
438
+ ])) : S("v-if", !0)
439
439
  ])]),
440
- r.segmentType === "VALUE_MAPPING" ? (j(), w("div", G, [(j(!0), w(b, null, Ge(r.mappings, (t, n) => (j(), w("div", {
440
+ r.segmentType === "VALUE_MAPPING" ? (k(), C("div", U, [(k(!0), C(y, null, qe(r.mappings, (t, n) => (k(), C("div", {
441
441
  key: n,
442
442
  class: "code-format__mapping-row"
443
443
  }, [
444
- D(P(v), {
444
+ E(M(_), {
445
445
  value: t.sourceValue,
446
446
  "onUpdate:value": (e) => t.sourceValue = e,
447
447
  placeholder: i("mapping-source", "原值"),
@@ -454,8 +454,8 @@ var Ze = { class: "code-format" }, Qe = {
454
454
  "aria-label",
455
455
  "disabled"
456
456
  ]),
457
- o[6] ||= T("span", null, "→", -1),
458
- D(P(v), {
457
+ o[6] ||= w("span", null, "→", -1),
458
+ E(M(_), {
459
459
  value: t.targetValue,
460
460
  "onUpdate:value": (e) => t.targetValue = e,
461
461
  placeholder: i("mapping-target", "编码文字"),
@@ -468,28 +468,28 @@ var Ze = { class: "code-format" }, Qe = {
468
468
  "aria-label",
469
469
  "disabled"
470
470
  ]),
471
- D(P(be), {
471
+ E(M(xe), {
472
472
  class: "code-format__mapping-default",
473
473
  checked: t.defaultMapping,
474
474
  "onUpdate:checked": (e) => t.defaultMapping = e,
475
475
  disabled: !e.editable
476
476
  }, {
477
- default: F(() => [E(N(i("mapping-default", "其他值")), 1)]),
477
+ default: N(() => [T(j(i("mapping-default", "其他值")), 1)]),
478
478
  _: 1
479
479
  }, 8, [
480
480
  "checked",
481
481
  "onUpdate:checked",
482
482
  "disabled"
483
483
  ]),
484
- D(P(y), {
484
+ E(M(v), {
485
485
  class: "code-format__mapping-remove",
486
486
  disabled: !e.editable,
487
487
  onClick: (e) => r.mappings.splice(n, 1)
488
488
  }, {
489
- default: F(() => [E(N(i("remove", "删除")), 1)]),
489
+ default: N(() => [T(j(i("remove", "删除")), 1)]),
490
490
  _: 1
491
491
  }, 8, ["disabled", "onClick"])
492
- ]))), 128)), D(P(y), {
492
+ ]))), 128)), E(M(v), {
493
493
  disabled: !e.editable,
494
494
  onClick: (e) => r.mappings.push({
495
495
  sourceValue: "",
@@ -498,32 +498,32 @@ var Ze = { class: "code-format" }, Qe = {
498
498
  enabled: !0
499
499
  })
500
500
  }, {
501
- default: F(() => [E(N(i("add-mapping", "增加映射")), 1)]),
501
+ default: N(() => [T(j(i("add-mapping", "增加映射")), 1)]),
502
502
  _: 1
503
- }, 8, ["disabled", "onClick"])])) : C("v-if", !0)
503
+ }, 8, ["disabled", "onClick"])])) : S("v-if", !0)
504
504
  ]))), 128))]),
505
- D(P(y), {
505
+ E(M(v), {
506
506
  type: "dashed",
507
507
  "icon-name": "plus",
508
508
  "aria-label": i("add-segment", "增加片段"),
509
509
  disabled: !e.editable,
510
- onClick: g
510
+ onClick: h
511
511
  }, {
512
- default: F(() => [E(N(i("add-segment", "增加片段")), 1)]),
512
+ default: N(() => [T(j(i("add-segment", "增加片段")), 1)]),
513
513
  _: 1
514
514
  }, 8, ["aria-label", "disabled"]),
515
- n.value.sequencePolicy ? (j(), w("div", ft, [
516
- D(P(ne), {
515
+ n.value.sequencePolicy ? (k(), C("div", mt, [
516
+ E(M(ce), {
517
517
  class: "code-format__wide",
518
518
  title: i("sequence", "流水策略")
519
519
  }, null, 8, ["title"]),
520
- T("label", pt, [E(N(i("sequence-length", "流水长度")), 1), D(P(v), {
520
+ w("label", ht, [T(j(i("sequence-length", "流水长度")), 1), E(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 = h(e)
524
+ "onUpdate:value": o[0] ||= (e) => n.value.sequencePolicy.sequenceLength = fe(e)
525
525
  }, null, 8, ["value", "disabled"])]),
526
- T("label", mt, [E(N(i("reset", "计数周期")), 1), D(P(_), {
526
+ w("label", gt, [T(j(i("reset", "计数周期")), 1), E(M(g), {
527
527
  value: n.value.sequencePolicy.resetPolicy,
528
528
  "onUpdate:value": o[1] ||= (e) => n.value.sequencePolicy.resetPolicy = e,
529
529
  disabled: !e.editable,
@@ -538,30 +538,30 @@ var Ze = { class: "code-format" }, Qe = {
538
538
  "disabled",
539
539
  "options"
540
540
  ])]),
541
- T("details", K, [T("summary", null, [E(N(i("sequence-advanced", "流水高级设置")), 1), T("span", null, " · " + N(de.value), 1)]), T("div", ht, [
542
- T("label", gt, [E(N(i("start", "起始值")), 1), D(P(v), {
541
+ w("details", W, [w("summary", null, [T(j(i("sequence-advanced", "流水高级设置")), 1), w("span", null, " · " + j(de.value), 1)]), w("div", G, [
542
+ w("label", _t, [T(j(i("start", "起始值")), 1), E(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 = h(e)
546
+ "onUpdate:value": o[2] ||= (e) => n.value.sequencePolicy.startValue = fe(e)
547
547
  }, null, 8, ["value", "disabled"])]),
548
- T("label", _t, [E(N(i("step", "递增步长")), 1), D(P(v), {
548
+ w("label", K, [T(j(i("step", "递增步长")), 1), E(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 = h(e)
552
+ "onUpdate:value": o[3] ||= (e) => n.value.sequencePolicy.stepValue = fe(e)
553
553
  }, null, 8, ["value", "disabled"])]),
554
- T("label", vt, [
555
- E(N(i("maximum", "流水上限")), 1),
556
- D(P(v), {
554
+ w("label", vt, [
555
+ T(j(i("maximum", "流水上限")), 1),
556
+ E(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 = h(e)
560
+ "onUpdate:value": o[4] ||= (e) => n.value.sequencePolicy.maxValue = fe(e)
561
561
  }, null, 8, ["value", "disabled"]),
562
- le.value ? (j(), w("span", q, N(le.value), 1)) : C("v-if", !0)
562
+ f.value ? (k(), C("span", q, j(f.value), 1)) : S("v-if", !0)
563
563
  ]),
564
- T("label", J, [E(N(i("overflow", "达到上限后")), 1), D(P(_), {
564
+ w("label", J, [T(j(i("overflow", "达到上限后")), 1), E(M(g), {
565
565
  value: n.value.sequencePolicy.overflowPolicy,
566
566
  "onUpdate:value": o[5] ||= (e) => n.value.sequencePolicy.overflowPolicy = e,
567
567
  disabled: !e.editable,
@@ -575,11 +575,11 @@ var Ze = { class: "code-format" }, Qe = {
575
575
  "options"
576
576
  ])])
577
577
  ])])
578
- ])) : C("v-if", !0)
578
+ ])) : S("v-if", !0)
579
579
  ]));
580
580
  }
581
581
  }), [["__scopeId", "data-v-cccc510e"]]), bt = Symbol("module-runtime-activation-refresh");
582
- function xt(e, t = ge) {
582
+ function xt(e, t = u) {
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,36 +594,36 @@ 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__*/ h(/* @__PURE__ */ ze({
597
+ }, jt = /*#__PURE__*/ h(/* @__PURE__ */ Be({
598
598
  __name: "ModuleRuntimeActivationStatus",
599
599
  props: {
600
600
  moduleAlias: {},
601
601
  reloadKey: {}
602
602
  },
603
603
  setup(e, { expose: t }) {
604
- let n = ae(), r = e, i = _e({ moduleAlias: "platform.module" }), a = M(), ee = M(!1), o = M(!1), s = M(!1), c = 0, l = !0, u, d = x(() => {
604
+ let n = le(), r = e, i = ne({ moduleAlias: "platform.module" }), a = A(), ee = A(!1), o = A(!1), s = A(!1), c = 0, te = !0, l, u = b(() => {
605
605
  let e = a.value;
606
606
  return !(!e || e.status === "UNTRACKED" || e.status === "FAILED" || e.status !== "PENDING" && e.installedRevision === e.desiredRevision);
607
- }), te = x(() => s.value || a.value?.status === "FAILED" || d.value), ne = x(() => 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", "正在应用修改")), re = x(() => s.value ? "NEUTRAL" : a.value?.status === "FAILED" ? "DANGER" : "WARNING"), ie = x(() => 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", "完成后将自动关闭提示。")), oe = x(() => a.value?.desiredRevision != null && (a.value.status === "FAILED" || a.value.status === "PENDING" || a.value.installedRevision !== a.value.desiredRevision) && i.can("retryRuntimeActivation") === !0);
608
- Ye(() => [r.moduleAlias, r.reloadKey], () => {
609
- c++, a.value = void 0, o.value = !1, m();
607
+ }), re = b(() => s.value || a.value?.status === "FAILED" || u.value), ie = b(() => 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", "正在应用修改")), ae = b(() => s.value ? "NEUTRAL" : a.value?.status === "FAILED" ? "DANGER" : "WARNING"), d = b(() => 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", "完成后将自动关闭提示。")), oe = b(() => a.value?.desiredRevision != null && (a.value.status === "FAILED" || a.value.status === "PENDING" || a.value.installedRevision !== a.value.desiredRevision) && i.can("retryRuntimeActivation") === !0);
608
+ Ze(() => [r.moduleAlias, r.reloadKey], () => {
609
+ c++, a.value = void 0, o.value = !1, p();
610
610
  }, { immediate: !0 });
611
- function ce() {
612
- clearTimeout(u), u = void 0;
611
+ function se() {
612
+ clearTimeout(l), l = void 0;
613
613
  }
614
- function le() {
615
- ce(), l && d.value && !s.value && (u = setTimeout(() => void m(), 2e3));
614
+ function ce() {
615
+ se(), te && u.value && !s.value && (l = setTimeout(() => void p(), 2e3));
616
616
  }
617
- We(() => {
618
- l = !1, c++, ce();
619
- }), k(() => {
620
- l || (l = !0, o.value = !1, m());
621
- }), A(() => {
622
- l = !1, c++, ce();
617
+ Ke(() => {
618
+ te = !1, c++, se();
619
+ }), We(() => {
620
+ te || (te = !0, o.value = !1, p());
621
+ }), O(() => {
622
+ te = !1, c++, se();
623
623
  });
624
- async function m() {
625
- if (!l || o.value) return;
626
- ce();
624
+ async function p() {
625
+ if (!te || o.value) return;
626
+ se();
627
627
  let e = ++c, t = r.moduleAlias;
628
628
  s.value = !1, ee.value = !0;
629
629
  try {
@@ -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 && (ee.value = !1, ce());
640
640
  }
641
641
  }
642
642
  async function ue() {
643
643
  if (!oe.value || o.value) return;
644
- ce();
644
+ se();
645
645
  let e = ++c, t = r.moduleAlias, ee = a.value.desiredRevision;
646
646
  o.value = !0;
647
647
  try {
@@ -649,88 +649,88 @@ 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 = me(n), s.value = !1);
652
+ e === c && (a.value = ve(n), s.value = !1);
653
653
  } catch (t) {
654
654
  if (e !== c) return;
655
- se(t, {
655
+ de(t, {
656
656
  language: n,
657
657
  source: "runtime-activation",
658
658
  phase: "action"
659
- }), o.value = !1, await m();
659
+ }), o.value = !1, await p();
660
660
  } finally {
661
- e === c && (o.value = !1, le());
661
+ e === c && (o.value = !1, ce());
662
662
  }
663
663
  }
664
- return t({ refresh: m }), (t, r) => te.value ? (j(), w("section", {
664
+ return t({ refresh: p }), (t, r) => re.value ? (k(), C("section", {
665
665
  key: 0,
666
666
  class: "module-runtime-activation",
667
- "aria-label": P(n).t("platform.screen.ModuleRuntimeActivationStatus.module-runtime-configuration-activation-status", "模块运行配置生效状态"),
667
+ "aria-label": M(n).t("platform.screen.ModuleRuntimeActivationStatus.module-runtime-configuration-activation-status", "模块运行配置生效状态"),
668
668
  "aria-live": "polite"
669
- }, [T("div", Ct, [
670
- T("span", Y, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.runtime-configuration", "运行配置")), 1),
671
- D(P(f), {
669
+ }, [w("div", Ct, [
670
+ w("span", Y, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.runtime-configuration", "运行配置")), 1),
671
+ E(M(f), {
672
672
  enabled: !0,
673
- "enabled-label": ne.value,
674
- "enabled-tone": re.value
673
+ "enabled-label": ie.value,
674
+ "enabled-tone": ae.value
675
675
  }, null, 8, ["enabled-label", "enabled-tone"]),
676
- T("span", X, N(ie.value), 1)
677
- ]), T("div", wt, [
678
- oe.value ? (j(), S(P(g), {
676
+ w("span", X, j(d.value), 1)
677
+ ]), w("div", wt, [
678
+ oe.value ? (k(), x(M(_e), {
679
679
  key: 0,
680
680
  density: "compact",
681
681
  disabled: ee.value || o.value,
682
682
  loading: o.value,
683
683
  onClick: ue
684
684
  }, {
685
- default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.retry-activation", "重试生效")), 1)]),
685
+ default: N(() => [T(j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.retry-activation", "重试生效")), 1)]),
686
686
  _: 1
687
- }, 8, ["disabled", "loading"])) : C("v-if", !0),
688
- s.value ? (j(), S(P(g), {
687
+ }, 8, ["disabled", "loading"])) : S("v-if", !0),
688
+ s.value ? (k(), x(M(_e), {
689
689
  key: 1,
690
690
  density: "compact",
691
691
  disabled: ee.value || o.value,
692
692
  "icon-name": "reload",
693
- onClick: m
693
+ onClick: p
694
694
  }, {
695
- default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.check-again", "重新查询")), 1)]),
695
+ default: N(() => [T(j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.check-again", "重新查询")), 1)]),
696
696
  _: 1
697
- }, 8, ["disabled"])) : C("v-if", !0),
698
- (j(), S(P(p), {
697
+ }, 8, ["disabled"])) : S("v-if", !0),
698
+ (k(), x(M(m), {
699
699
  key: e.moduleAlias,
700
700
  placement: "bottomRight"
701
701
  }, {
702
- content: F(() => [T("div", Tt, [
703
- T("strong", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1),
704
- T("p", Et, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.activation-status-of-the-module-runtime-configuration", "模块运行配置的生效情况")), 1),
705
- s.value ? (j(), w("p", Dt, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.failed-to-check-the-status-check-again", "状态查询失败,请重新查询。")), 1)) : a.value?.status === "FAILED" ? (j(), w("p", Ot, N(a.value.failureMessage || P(n).t("platform.screen.ModuleRuntimeActivationStatus.no-failure-reason-is-available-retry-or-contact-an-administrator", "暂未提供失败原因,请重试或联系管理员。")), 1)) : d.value ? (j(), w("p", kt, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.the-service-is-loading-the-latest-configuration-the-status-will", "服务正在加载最新配置,状态将自动更新。")), 1)) : C("v-if", !0),
706
- a.value ? (j(), w("dl", At, [
707
- T("dt", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.configuration-revision", "配置版本")), 1),
708
- T("dd", null, N(a.value.desiredRevision ?? "—"), 1),
709
- T("dt", null, N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.loaded-revision", "已加载版本")), 1),
710
- T("dd", null, N(a.value.installedRevision ?? "—"), 1)
711
- ])) : C("v-if", !0),
712
- D(P(g), {
702
+ content: N(() => [w("div", Tt, [
703
+ w("strong", null, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1),
704
+ w("p", Et, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.activation-status-of-the-module-runtime-configuration", "模块运行配置的生效情况")), 1),
705
+ s.value ? (k(), C("p", Dt, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.failed-to-check-the-status-check-again", "状态查询失败,请重新查询。")), 1)) : a.value?.status === "FAILED" ? (k(), C("p", Ot, j(a.value.failureMessage || M(n).t("platform.screen.ModuleRuntimeActivationStatus.no-failure-reason-is-available-retry-or-contact-an-administrator", "暂未提供失败原因,请重试或联系管理员。")), 1)) : u.value ? (k(), C("p", kt, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.the-service-is-loading-the-latest-configuration-the-status-will", "服务正在加载最新配置,状态将自动更新。")), 1)) : S("v-if", !0),
706
+ a.value ? (k(), C("dl", At, [
707
+ w("dt", null, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.configuration-revision", "配置版本")), 1),
708
+ w("dd", null, j(a.value.desiredRevision ?? "—"), 1),
709
+ w("dt", null, j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.loaded-revision", "已加载版本")), 1),
710
+ w("dd", null, j(a.value.installedRevision ?? "—"), 1)
711
+ ])) : S("v-if", !0),
712
+ E(M(_e), {
713
713
  density: "compact",
714
714
  emphasis: "quiet",
715
715
  "icon-name": "reload",
716
716
  disabled: ee.value || o.value,
717
- onClick: m
717
+ onClick: p
718
718
  }, {
719
- default: F(() => [E(N(P(n).t("platform.screen.ModuleRuntimeActivationStatus.refresh-status", "刷新状态")), 1)]),
719
+ default: N(() => [T(j(M(n).t("platform.screen.ModuleRuntimeActivationStatus.refresh-status", "刷新状态")), 1)]),
720
720
  _: 1
721
721
  }, 8, ["disabled"])
722
722
  ])]),
723
- default: F(() => [D(P(g), {
723
+ default: N(() => [E(M(_e), {
724
724
  density: "compact",
725
725
  emphasis: "quiet",
726
- title: P(n).t("platform.screen.WorkbenchAssistantPanel.show-diagnostics", "查看诊断信息")
726
+ title: M(n).t("platform.screen.WorkbenchAssistantPanel.show-diagnostics", "查看诊断信息")
727
727
  }, {
728
- default: F(() => [E(N(a.value?.status === "FAILED" ? P(n).t("platform.screen.ModuleRuntimeActivationStatus.view-reason", "查看原因") : P(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1)]),
728
+ default: N(() => [T(j(a.value?.status === "FAILED" ? M(n).t("platform.screen.ModuleRuntimeActivationStatus.view-reason", "查看原因") : M(n).t("platform.screen.ModuleRuntimeActivationStatus.diagnostics", "诊断信息")), 1)]),
729
729
  _: 1
730
730
  }, 8, ["title"])]),
731
731
  _: 1
732
732
  }))
733
- ])], 8, St)) : C("v-if", !0);
733
+ ])], 8, St)) : S("v-if", !0);
734
734
  }
735
735
  }), [["__scopeId", "data-v-35af1777"]]), Mt = { class: "code-config" }, Nt = {
736
736
  key: 0,
@@ -787,7 +787,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
787
787
  }, wn = {
788
788
  key: 1,
789
789
  class: "code-config__muted"
790
- }, Tn = ["aria-label"], En = /*@__PURE__*/ ze({
790
+ }, Tn = ["aria-label"], En = /*@__PURE__*/ Be({
791
791
  name: "CodeConfigurationView",
792
792
  __name: "CodeConfigurationView",
793
793
  props: {
@@ -796,98 +796,98 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
796
796
  embedded: { type: Boolean }
797
797
  },
798
798
  setup(e) {
799
- let d = e, f = ae(), p = (e, t) => f.t(`platform.code.config.${e}`, t);
800
- function h(e) {
801
- return e instanceof le ? he(e, f) : ee(Se(e), f);
799
+ let u = e, d = le(), f = (e, t) => d.t(`platform.code.config.${e}`, t);
800
+ function m(e) {
801
+ return e instanceof Se ? me(e, d) : te(c(e), d);
802
802
  }
803
- let g = _e({ moduleAlias: "platform.code_rule" }), me = t(), ge = M(), je = x(() => {
804
- switch (ge.value) {
805
- case "no-model": return p("reason.no-model", "尚未关联业务数据模型,请先配置模型,再设置编号规则。");
806
- case "no-fields": return p("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。");
807
- case "not-declared": return p("reason.not-declared", "该静态模块尚未声明可配置的编号字段,需由开发者在业务模型中声明。");
808
- default: return d.moduleAlias ? p("reason.unavailable", "当前模块没有可配置的编号字段,请返回模块管理检查配置。") : p("no-modules", "没有可配置业务编码的模块。");
803
+ let h = ne({ moduleAlias: "platform.code_rule" }), _e = t(), ve = A(), Me = b(() => {
804
+ switch (ve.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 u.moduleAlias ? f("reason.unavailable", "当前模块没有可配置的编号字段,请返回模块管理检查配置。") : f("no-modules", "没有可配置业务编码的模块。");
809
809
  }
810
810
  });
811
- function ze() {
812
- let e = d.moduleAlias ?? R.value;
813
- e && me?.openPage(n(Ne, {
811
+ function Be() {
812
+ let e = u.moduleAlias ?? I.value;
813
+ e && _e?.openPage(n(Pe, {
814
814
  moduleAlias: e,
815
- moduleTitle: d.moduleTitle ?? Y.value?.moduleTitle,
815
+ moduleTitle: u.moduleTitle ?? Y.value?.moduleTitle,
816
816
  governanceTab: "metadata"
817
817
  }));
818
818
  }
819
- let O = r(), k = M(O?.value?.tenantId ?? ""), We = M(0), A = M(!1), Ke = x(() => !!k.value), qe = x(() => k.value && O?.value?.system ? de(g.http, { "X-MuYun-Tenant-Id": k.value }) : g.http), Ze = x(() => Fe(qe.value, f)), Qe = x(() => O?.value?.system ? ie({
820
- http: g.http,
821
- language: f,
819
+ let D = r(), We = A(D?.value?.tenantId ?? ""), Ke = A(0), O = A(!1), Je = b(() => !!We.value), Ye = b(() => We.value && D?.value?.system ? i(h.http, { "X-MuYun-Tenant-Id": We.value }) : h.http), $e = b(() => Ie(Ye.value, d)), et = b(() => D?.value?.system ? se({
820
+ http: h.http,
821
+ language: d,
822
822
  moduleAlias: "iam.tenant",
823
823
  runtimeAccess: "REFERENCE"
824
- }) : void 0), $e = x(() => Ke.value ? ie({
825
- http: qe.value,
826
- language: f,
824
+ }) : void 0), tt = b(() => Je.value ? se({
825
+ http: Ye.value,
826
+ language: d,
827
827
  moduleAlias: "iam.organization",
828
828
  runtimeAccess: "REFERENCE"
829
- }) : void 0), I = x(() => Ke.value && g.can("saveTree") === !0), et = x(() => g.can("configureBinding") === !0), L = M([]), R = M(d.moduleAlias ?? ""), tt = M(""), nt = x(() => {
829
+ }) : void 0), P = b(() => Je.value && h.can("saveTree") === !0), nt = b(() => h.can("configureBinding") === !0), F = A([]), I = A(u.moduleAlias ?? ""), rt = A(""), it = b(() => {
830
830
  let e = /* @__PURE__ */ new Map();
831
- for (let t of L.value) t.fields.length && (e.has(t.moduleAlias) || e.set(t.moduleAlias, {
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: c(t.moduleTitle || t.moduleAlias, t.moduleTitleText, f),
833
+ title: ge(t.moduleTitle || t.moduleAlias, t.moduleTitleText, d),
834
834
  code: t.moduleAlias
835
835
  }));
836
836
  return [...e.values()];
837
- }), rt = x(() => Ke.value && !d.moduleAlias), it = x(() => L.value.filter((e) => e.moduleAlias === R.value)), at = M(""), z = M(""), B = M([]), V = M(), ot = M(""), H = M(), st = M(""), U = M(!1), ct = M(!1), W = M(!1), lt = M(!1), ut = M(!1), dt = M([]), G = M(""), ft = M(""), pt = M(), mt = M(), K = M(""), ht = M(), gt = M(), _t = M({}), vt = M(""), q = M("NORMAL"), J = M("SAVE"), xt = M(), St = Be(bt, void 0), Ct = (e) => `${e.moduleAlias}/${e.entityAlias}`, Y = x(() => L.value.find((e) => Ct(e) === at.value)), X = x(() => Y.value?.fields.find((e) => e.fieldName === z.value)), wt = x(() => [p(`enum.${q.value}`, q.value === "PRIMARY" ? "主编码" : "业务编码"), p(`enum.${J.value}`, J.value === "SAVE" ? "首次保存" : "业务操作时生成")].join(" · ")), Tt = x(() => !!V.value && Ie(V.value)), Et = x(() => [Tt.value && V.value?.linkedUpdate ? p("linked-short", "来源变化时换号") : "", V.value?.allowRecycle ? p("recycle-short", "旧号可复用") : ""].filter(Boolean).join(" · ")), Dt = x(() => B.value.filter((e) => e.fieldName === z.value)), Ot = x(() => Dt.value.map((e) => ({ ...e }))), kt = M({}), At = 0;
838
- Ye(() => [qe.value, Dt.value.map((e) => e.orgScopeType === "ORG" ? e.orgScopeId : "").join(",")], async ([e]) => {
837
+ }), at = b(() => Je.value && !u.moduleAlias), ot = b(() => 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 = Ve(bt, void 0), Ct = (e) => `${e.moduleAlias}/${e.entityAlias}`, Y = b(() => F.value.find((e) => Ct(e) === st.value)), X = b(() => Y.value?.fields.find((e) => e.fieldName === L.value)), wt = b(() => [f(`enum.${q.value}`, q.value === "PRIMARY" ? "主编码" : "业务编码"), f(`enum.${J.value}`, J.value === "SAVE" ? "首次保存" : "业务操作时生成")].join(" · ")), Tt = b(() => !!z.value && Le(z.value)), Et = b(() => [Tt.value && z.value?.linkedUpdate ? f("linked-short", "来源变化时换号") : "", z.value?.allowRecycle ? f("recycle-short", "旧号可复用") : ""].filter(Boolean).join(" · ")), Dt = b(() => R.value.filter((e) => e.fieldName === L.value)), Ot = b(() => Dt.value.map((e) => ({ ...e }))), kt = A({}), At = 0;
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
- if (Ke.value && n.length) try {
843
- let r = await m(e, { moduleAlias: "iam.organization" }).translate(n);
844
- t === At && (kt.value = Object.fromEntries(r.records.map((e) => [String(e.id), o(e, "title", f) ?? p("specific-org", "指定机构")])));
842
+ if (Je.value && n.length) try {
843
+ let r = await a(e, { moduleAlias: "iam.organization" }).translate(n);
844
+ t === At && (kt.value = Object.fromEntries(r.records.map((e) => [String(e.id), ae(e, "title", d) ?? f("specific-org", "指定机构")])));
845
845
  } catch {}
846
846
  });
847
847
  function En(e) {
848
- return e.orgScopeType === "GLOBAL" ? p("all-orgs", "全部机构") : kt.value[e.orgScopeId ?? ""] ?? p("specific-org", "指定机构");
848
+ return e.orgScopeType === "GLOBAL" ? f("all-orgs", "全部机构") : kt.value[e.orgScopeId ?? ""] ?? f("specific-org", "指定机构");
849
849
  }
850
- let Dn = x(() => [
850
+ let Dn = b(() => [
851
851
  {
852
852
  fieldName: "title",
853
- title: p("rule-title", "规则名称"),
853
+ title: f("rule-title", "规则名称"),
854
854
  width: 150
855
855
  },
856
856
  {
857
857
  fieldName: "scope",
858
- title: p("scope", "适用范围"),
858
+ title: f("scope", "适用范围"),
859
859
  width: 152
860
860
  },
861
861
  {
862
862
  fieldName: "organization",
863
- title: p("organization", "适用组织"),
863
+ title: f("organization", "适用组织"),
864
864
  width: 120
865
865
  },
866
866
  {
867
867
  fieldName: "effectiveFrom",
868
- title: p("effective-from-short", "开始生效时间"),
868
+ title: f("effective-from-short", "开始生效时间"),
869
869
  width: 180
870
870
  },
871
871
  {
872
872
  fieldName: "effectiveTo",
873
- title: p("effective-to-short", "结束生效时间"),
873
+ title: f("effective-to-short", "结束生效时间"),
874
874
  width: 180
875
875
  },
876
876
  {
877
877
  fieldName: "enabled",
878
- title: p("enable-rule", "启用规则"),
878
+ title: f("enable-rule", "启用规则"),
879
879
  width: 64
880
880
  },
881
881
  {
882
882
  fieldName: "actions",
883
- title: p("actions", "操作"),
883
+ title: f("actions", "操作"),
884
884
  width: 112
885
885
  }
886
- ]), On = x(() => H.value != null && JSON.stringify(H.value) !== st.value), kn = x(() => Y.value?.source === "DYNAMIC" && X.value?.role != null && (q.value !== X.value.role || J.value !== (X.value.trigger ?? "SAVE"))), An = x(() => On.value || kn.value || V.value != null && JSON.stringify(V.value) !== ot.value), Z = x(() => U.value || W.value);
887
- pe(() => p("title", "业务编码"), () => An.value, () => Z.value);
888
- let jn = x(() => I.value && !Z.value), Mn = x(() => Y.value ? Me(Y.value, V.value) : []), Nn = x(() => Y.value?.sources.filter((e) => !Mn.value.some((t) => t.fieldName === e.fieldName)) ?? []), Pn = x(() => [...Mn.value, ...Nn.value.filter((e) => dt.value.includes(e.fieldName))]), Fn = 0, In, Ln, Rn = x(() => A.value && V.value?.mode !== "MANUAL" && !!V.value && !!Y.value && !Z.value && g.can("preview")), zn = x(() => {
889
- if (!Rn.value || !V.value) return "";
890
- let e = V.value;
886
+ ]), On = b(() => B.value != null && JSON.stringify(B.value) !== lt.value), kn = b(() => Y.value?.source === "DYNAMIC" && X.value?.role != null && (q.value !== X.value.role || J.value !== (X.value.trigger ?? "SAVE"))), An = b(() => On.value || kn.value || z.value != null && JSON.stringify(z.value) !== ct.value), Z = b(() => V.value || H.value);
887
+ s(() => f("title", "业务编码"), () => An.value, () => Z.value);
888
+ let jn = b(() => P.value && !Z.value), Mn = b(() => Y.value ? Ne(Y.value, z.value) : []), Nn = b(() => Y.value?.sources.filter((e) => !Mn.value.some((t) => t.fieldName === e.fieldName)) ?? []), Pn = b(() => [...Mn.value, ...Nn.value.filter((e) => pt.value.includes(e.fieldName))]), Fn = 0, In, Ln, Rn = b(() => O.value && z.value?.mode !== "MANUAL" && !!z.value && !!Y.value && !Z.value && h.can("preview")), zn = b(() => {
889
+ if (!Rn.value || !z.value) return "";
890
+ let e = z.value;
891
891
  return JSON.stringify([
892
892
  e.id,
893
893
  e.moduleAlias,
@@ -903,168 +903,168 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
903
903
  Pn.value.map((e) => [
904
904
  e.fieldName,
905
905
  e.type,
906
- _t.value[e.fieldName]
906
+ K.value[e.fieldName]
907
907
  ]),
908
908
  vt.value
909
909
  ]);
910
910
  });
911
911
  function Bn() {
912
- In != null && clearTimeout(In), In = void 0, ut.value = !1, Ln?.abort(), Ln = void 0, lt.value = !1, ++Fn;
912
+ In != null && clearTimeout(In), In = void 0, ft.value = !1, Ln?.abort(), Ln = void 0, dt.value = !1, ++Fn;
913
913
  }
914
- Ye(zn, (e) => {
915
- Bn(), ht.value = void 0, ft.value = "", e && (ut.value = !0, In = setTimeout(() => {
914
+ Ze(zn, (e) => {
915
+ Bn(), G.value = void 0, mt.value = "", e && (ft.value = !0, In = setTimeout(() => {
916
916
  ur();
917
917
  }, 500));
918
- }, { flush: "sync" }), Ue(Bn);
918
+ }, { flush: "sync" }), Ge(Bn);
919
919
  let Vn = (e) => Object.entries(e).map(([e, t]) => ({
920
920
  value: e,
921
- label: p(`enum.${e}`, t)
921
+ label: f(`enum.${e}`, t)
922
922
  })), Q = 0;
923
923
  function $(e) {
924
- H.value = void 0, st.value = "", vt.value = "", e || (A.value = !1), V.value = e == null ? void 0 : JSON.parse(JSON.stringify(e)), X.value?.role || (q.value = e?.fieldRole ?? "NORMAL", J.value = e?.fieldTrigger ?? "SAVE"), ot.value = V.value == null ? "" : JSON.stringify(V.value);
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);
925
925
  }
926
- Ye([q, J], () => {
927
- A.value && !X.value?.role && V.value && (V.value.fieldRole = q.value, V.value.fieldTrigger = J.value);
926
+ Ze([q, J], () => {
927
+ O.value && !X.value?.role && z.value && (z.value.fieldRole = q.value, z.value.fieldTrigger = J.value);
928
928
  }, { flush: "sync" });
929
929
  function Hn() {
930
930
  q.value = X.value?.role ?? "NORMAL", J.value = X.value?.trigger ?? "SAVE";
931
931
  }
932
932
  function Un() {
933
- return An.value ? (G.value = p("unsaved", "请先保存或取消当前修改。"), !1) : !Z.value;
933
+ return An.value ? (U.value = f("unsaved", "请先保存或取消当前修改。"), !1) : !Z.value;
934
934
  }
935
935
  function Wn(e) {
936
- Un() && (z.value = e, _t.value = {}, dt.value = [], Hn(), $(Dt.value[0]), G.value = "", K.value = "");
936
+ Un() && (L.value = e, K.value = {}, pt.value = [], Hn(), $(Dt.value[0]), U.value = "", W.value = "");
937
937
  }
938
938
  async function Gn(e) {
939
- if (!Un() || !nt.value.some((t) => t.id === e)) return;
940
- R.value = e, tt.value = "", K.value = "";
941
- let t = it.value.find((e) => e.fields.length) ?? it.value[0];
939
+ if (!Un() || !it.value.some((t) => t.id === e)) return;
940
+ I.value = e, rt.value = "", W.value = "";
941
+ let t = ot.value.find((e) => e.fields.length) ?? ot.value[0];
942
942
  await Kn(t ? Ct(t) : "");
943
943
  }
944
944
  async function Kn(e) {
945
945
  if (!Un()) return;
946
946
  let t = ++Q;
947
- at.value = e, _t.value = {}, dt.value = [], z.value = "", B.value = [], $(), G.value = "", U.value = !0;
947
+ st.value = e, K.value = {}, pt.value = [], L.value = "", R.value = [], $(), U.value = "", V.value = !0;
948
948
  try {
949
949
  let e = Y.value;
950
950
  if (!e) return;
951
- let n = Ke.value ? await Ze.value.rules(e) : [];
951
+ let n = Je.value ? await $e.value.rules(e) : [];
952
952
  if (t !== Q) return;
953
- B.value = n, z.value = e.fields.find((e) => e.role != null)?.fieldName ?? e.fields[0]?.fieldName ?? "", Hn(), $(Dt.value[0]);
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 && (G.value = h(e));
955
+ t === Q && (U.value = m(e));
956
956
  } finally {
957
- t === Q && (U.value = !1);
957
+ t === Q && (V.value = !1);
958
958
  }
959
959
  }
960
960
  async function qn() {
961
961
  let e = ++Q;
962
- if (ct.value = !1, !Ke.value) {
963
- U.value = !1, G.value = "";
962
+ if (ut.value = !1, !Je.value) {
963
+ V.value = !1, U.value = "";
964
964
  return;
965
965
  }
966
- U.value = !0, ge.value = void 0, G.value = "";
966
+ V.value = !0, ve.value = void 0, U.value = "";
967
967
  try {
968
- let t = await Ze.value.targets(d.moduleAlias);
968
+ let t = await $e.value.targets(u.moduleAlias);
969
969
  if (e !== Q) return;
970
- if (L.value = t, d.moduleAlias && !t.some((e) => e.fields.length)) {
970
+ if (F.value = t, u.moduleAlias && !t.some((e) => e.fields.length)) {
971
971
  try {
972
- let t = await Oe(qe.value, d.moduleAlias);
972
+ let t = await ke(Ye.value, u.moduleAlias);
973
973
  if (e !== Q) return;
974
- ge.value = t.reason;
974
+ ve.value = t.reason;
975
975
  } catch {}
976
976
  if (e !== Q) return;
977
977
  }
978
- U.value = !1, nt.value.some((e) => e.id === R.value) || (R.value = "");
979
- let n = it.value.find((e) => e.fields.length) ?? it.value[0];
978
+ V.value = !1, it.value.some((e) => e.id === I.value) || (I.value = "");
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 && (G.value = h(t), ct.value = !0);
982
+ e === Q && (U.value = m(t), ut.value = !0);
983
983
  } finally {
984
- e === Q && (U.value = !1);
984
+ e === Q && (V.value = !1);
985
985
  }
986
986
  }
987
- Ye(() => d.moduleAlias, () => {
988
- R.value = d.moduleAlias ?? "", tt.value = "", $(), z.value = "", at.value = "", L.value = [], B.value = [], qn();
989
- }, { immediate: !0 }), Ye(() => [
990
- O?.value?.userId,
991
- O?.value?.tenantId,
992
- O?.value?.system
987
+ Ze(() => u.moduleAlias, () => {
988
+ I.value = u.moduleAlias ?? "", rt.value = "", $(), L.value = "", st.value = "", F.value = [], R.value = [], qn();
989
+ }, { immediate: !0 }), Ze(() => [
990
+ D?.value?.userId,
991
+ D?.value?.tenantId,
992
+ D?.value?.system
993
993
  ], () => {
994
- k.value = O?.value?.tenantId ?? "", R.value = d.moduleAlias ?? "", tt.value = "", $(), L.value = [], B.value = [], z.value = "", at.value = "", qn();
994
+ We.value = D?.value?.tenantId ?? "", I.value = u.moduleAlias ?? "", rt.value = "", $(), F.value = [], R.value = [], L.value = "", st.value = "", qn();
995
995
  });
996
996
  async function Jn(e) {
997
- Un() && (k.value = e ?? "", R.value = d.moduleAlias ?? "", tt.value = "", L.value = [], B.value = [], z.value = "", at.value = "", $(), await qn());
997
+ Un() && (We.value = e ?? "", I.value = u.moduleAlias ?? "", rt.value = "", F.value = [], R.value = [], L.value = "", st.value = "", $(), await qn());
998
998
  }
999
999
  function Yn(e, t, n) {
1000
- t && n === 1 && e.length === 1 && !k.value && Jn(String(e[0].id));
1000
+ t && n === 1 && e.length === 1 && !We.value && Jn(String(e[0].id));
1001
1001
  }
1002
1002
  async function Xn() {
1003
- return Z.value ? !1 : !An.value || await a({
1004
- title: p("discard-rule", "放弃未保存的编号规则修改?"),
1005
- content: p("discard-rule-help", "当前修改尚未保存,放弃后将恢复已保存的规则。"),
1006
- okText: p("discard", "放弃修改"),
1003
+ return Z.value ? !1 : !An.value || await o({
1004
+ title: f("discard-rule", "放弃未保存的编号规则修改?"),
1005
+ content: f("discard-rule-help", "当前修改尚未保存,放弃后将恢复已保存的规则。"),
1006
+ okText: f("discard", "放弃修改"),
1007
1007
  danger: !0
1008
- }, f);
1008
+ }, d);
1009
1009
  }
1010
1010
  function Zn() {
1011
- er(), A.value = !1;
1011
+ er(), O.value = !1;
1012
1012
  }
1013
1013
  function Qn(e) {
1014
- Un() && (Hn(), $(e), A.value = !0, G.value = "", K.value = "");
1014
+ Un() && (Hn(), $(e), O.value = !0, U.value = "", W.value = "");
1015
1015
  }
1016
1016
  function $n() {
1017
1017
  if (Un() && Y.value && X.value) {
1018
- let e = De(Y.value, X.value);
1019
- e.fieldRole = q.value, e.fieldTrigger = J.value, $(e), A.value = !0, G.value = "", K.value = "";
1018
+ let e = Oe(Y.value, X.value);
1019
+ e.fieldRole = q.value, e.fieldTrigger = J.value, $(e), O.value = !0, U.value = "", W.value = "";
1020
1020
  }
1021
1021
  }
1022
1022
  function er() {
1023
- Hn(), $(V.value?.id ? B.value.find((e) => e.id === V.value?.id) : void 0), G.value = "";
1023
+ Hn(), $(z.value?.id ? R.value.find((e) => e.id === z.value?.id) : void 0), U.value = "";
1024
1024
  }
1025
1025
  function tr() {
1026
- Hn(), G.value = "", K.value = "";
1026
+ Hn(), U.value = "", W.value = "";
1027
1027
  }
1028
1028
  async function nr() {
1029
- if (Y.value && X.value && !W.value) {
1030
- W.value = !0, G.value = "", K.value = "";
1029
+ if (Y.value && X.value && !H.value) {
1030
+ H.value = !0, U.value = "", W.value = "";
1031
1031
  try {
1032
- let e = await Ze.value.bind(Y.value, X.value, q.value, J.value);
1033
- L.value = L.value.map((t) => Ct(t) === Ct(e) ? e : t), Hn(), St ? await St(e.moduleAlias) : await xt.value?.refresh(), K.value = p("binding-saved", "字段配置已保存,请查看运行态生效状态。");
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 = f("binding-saved", "字段配置已保存,请查看运行态生效状态。");
1034
1034
  } catch (e) {
1035
- G.value = h(e), e instanceof le || se(e, {
1036
- language: f,
1035
+ U.value = m(e), e instanceof Se || de(e, {
1036
+ language: d,
1037
1037
  source: "business-code",
1038
1038
  phase: "action"
1039
1039
  });
1040
1040
  } finally {
1041
- W.value = !1;
1041
+ H.value = !1;
1042
1042
  }
1043
1043
  }
1044
1044
  }
1045
1045
  async function rr(e) {
1046
- let t = Y.value?.source === "DYNAMIC" && !X.value?.role, n = await Ze.value.save(e);
1047
- if (B.value = [...B.value.filter((e) => e.id !== n.id), n], t && n.enabled) try {
1048
- L.value = await Ze.value.targets(d.moduleAlias), Hn(), St ? await St(n.moduleAlias) : await xt.value?.refresh();
1046
+ let t = Y.value?.source === "DYNAMIC" && !X.value?.role, n = await $e.value.save(e);
1047
+ if (R.value = [...R.value.filter((e) => e.id !== n.id), n], t && n.enabled) try {
1048
+ F.value = await $e.value.targets(u.moduleAlias), Hn(), St ? await St(n.moduleAlias) : await xt.value?.refresh();
1049
1049
  } catch {
1050
- G.value = p("saved-refresh-failed", "规则已保存,但状态刷新失败,请刷新页面确认。");
1050
+ U.value = f("saved-refresh-failed", "规则已保存,但状态刷新失败,请刷新页面确认。");
1051
1051
  }
1052
1052
  return n;
1053
1053
  }
1054
1054
  async function ir() {
1055
- if (V.value && !W.value) {
1056
- W.value = !0, G.value = "", K.value = "";
1055
+ if (z.value && !H.value) {
1056
+ H.value = !0, U.value = "", W.value = "";
1057
1057
  try {
1058
- let e = await rr(V.value);
1059
- $(e), K.value = e.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("saved-disabled", "规则已保存,可在规则列表中启用。");
1058
+ let e = await rr(z.value);
1059
+ $(e), W.value = e.enabled ? f("active", "规则已启用,后续业务按适用范围匹配规则。") : f("saved-disabled", "规则已保存,可在规则列表中启用。");
1060
1060
  } catch (e) {
1061
- G.value = h(e), e instanceof le || se(e, {
1062
- language: f,
1061
+ U.value = m(e), e instanceof Se || de(e, {
1062
+ language: d,
1063
1063
  source: "business-code",
1064
1064
  phase: "action"
1065
1065
  });
1066
1066
  } finally {
1067
- W.value = !1, await Ve(), mt.value?.scrollIntoView?.({
1067
+ H.value = !1, await He(), gt.value?.scrollIntoView?.({
1068
1068
  block: "nearest",
1069
1069
  behavior: "smooth"
1070
1070
  });
@@ -1072,8 +1072,8 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1072
1072
  }
1073
1073
  }
1074
1074
  async function ar(e, t) {
1075
- if (!H.value && Un() && I.value && (!t || X.value?.role || et.value)) {
1076
- W.value = !0, G.value = "";
1075
+ if (!B.value && Un() && P.value && (!t || X.value?.role || nt.value)) {
1076
+ H.value = !0, U.value = "";
1077
1077
  try {
1078
1078
  let n = await rr({
1079
1079
  ...e,
@@ -1083,116 +1083,116 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1083
1083
  } : {},
1084
1084
  enabled: t
1085
1085
  });
1086
- V.value?.id === n.id && $(n), K.value = n.enabled ? p("active", "规则已启用,后续业务按适用范围匹配规则。") : p("rule-stopped", "规则已停用,已有编码保持不变。");
1086
+ z.value?.id === n.id && $(n), W.value = n.enabled ? f("active", "规则已启用,后续业务按适用范围匹配规则。") : f("rule-stopped", "规则已停用,已有编码保持不变。");
1087
1087
  } catch (e) {
1088
- G.value = h(e);
1088
+ U.value = m(e);
1089
1089
  } finally {
1090
- W.value = !1;
1090
+ H.value = !1;
1091
1091
  }
1092
1092
  }
1093
1093
  }
1094
1094
  function or(e) {
1095
- Un() && ($(), H.value = JSON.parse(JSON.stringify(e)), st.value = JSON.stringify(H.value), G.value = "", K.value = "");
1095
+ Un() && ($(), B.value = JSON.parse(JSON.stringify(e)), lt.value = JSON.stringify(B.value), U.value = "", W.value = "");
1096
1096
  }
1097
1097
  function sr() {
1098
- H.value = void 0, st.value = "", G.value = "";
1098
+ B.value = void 0, lt.value = "", U.value = "";
1099
1099
  }
1100
1100
  async function cr() {
1101
- if (H.value && I.value && !Z.value) {
1102
- W.value = !0, G.value = "", K.value = "";
1101
+ if (B.value && P.value && !Z.value) {
1102
+ H.value = !0, U.value = "", W.value = "";
1103
1103
  try {
1104
- $(await rr(H.value)), K.value = p("usage-saved", "适用配置已保存。");
1104
+ $(await rr(B.value)), W.value = f("usage-saved", "适用配置已保存。");
1105
1105
  } catch (e) {
1106
- G.value = h(e);
1106
+ U.value = m(e);
1107
1107
  } finally {
1108
- W.value = !1;
1108
+ H.value = !1;
1109
1109
  }
1110
1110
  }
1111
1111
  }
1112
1112
  function lr(e) {
1113
- V.value && (V.value.mode = e, e !== "MANUAL" && V.value.segments.length === 0 && (V.value.segments = [Ae(), Ae("SEQUENCE")], V.value.sequencePolicy = Le()));
1113
+ z.value && (z.value.mode = e, e !== "MANUAL" && z.value.segments.length === 0 && (z.value.segments = [je(), je("SEQUENCE")], z.value.sequencePolicy = Re()));
1114
1114
  }
1115
1115
  async function ur(e = !1) {
1116
- if (!V.value || !Y.value || !Rn.value) return;
1116
+ if (!z.value || !Y.value || !Rn.value) return;
1117
1117
  Bn();
1118
1118
  let t = ++Fn, n = new AbortController();
1119
- Ln = n, lt.value = !0, ft.value = "", ht.value = void 0;
1119
+ Ln = n, dt.value = !0, mt.value = "", G.value = void 0;
1120
1120
  try {
1121
- let r = await Ze.value.preview(V.value, ke(Pn.value, _t.value, f), vt.value.trim() === "" ? V.value.sequencePolicy?.startValue ?? 1 : Number(vt.value), n.signal);
1122
- t === Fn && (ht.value = r, e && (await Ve(), t === Fn && gt.value?.scrollIntoView?.({
1121
+ let r = await $e.value.preview(z.value, Ae(Pn.value, K.value, d), vt.value.trim() === "" ? z.value.sequencePolicy?.startValue ?? 1 : Number(vt.value), n.signal);
1122
+ t === Fn && (G.value = r, e && (await He(), t === Fn && _t.value?.scrollIntoView?.({
1123
1123
  block: "nearest",
1124
1124
  behavior: "smooth"
1125
1125
  })));
1126
1126
  } catch (r) {
1127
- t === Fn && !n.signal.aborted && (ft.value = h(r), e && (await Ve(), t === Fn && (pt.value?.scrollIntoView?.({
1127
+ t === Fn && !n.signal.aborted && (mt.value = m(r), e && (await He(), t === Fn && (ht.value?.scrollIntoView?.({
1128
1128
  block: "nearest",
1129
1129
  behavior: "smooth"
1130
- }), pt.value?.focus({ preventScroll: !0 }))));
1130
+ }), ht.value?.focus({ preventScroll: !0 }))));
1131
1131
  } finally {
1132
- t === Fn && (lt.value = !1, Ln = void 0);
1132
+ t === Fn && (dt.value = !1, Ln = void 0);
1133
1133
  }
1134
1134
  }
1135
- return (t, n) => (j(), w("section", Mt, [
1136
- G.value && !A.value ? (j(), w("div", Nt, [D(P(l), {
1137
- title: p("request-failed", "操作未完成"),
1138
- message: G.value
1139
- }, null, 8, ["title", "message"]), ct.value ? (j(), S(P(y), {
1135
+ return (t, n) => (k(), C("section", Mt, [
1136
+ U.value && !O.value ? (k(), C("div", Nt, [E(M(re), {
1137
+ title: f("request-failed", "操作未完成"),
1138
+ message: U.value
1139
+ }, null, 8, ["title", "message"]), ut.value ? (k(), x(M(v), {
1140
1140
  key: 0,
1141
1141
  disabled: Z.value,
1142
1142
  onClick: qn
1143
1143
  }, {
1144
- default: F(() => [E(N(p("retry", "重试加载")), 1)]),
1144
+ default: N(() => [T(j(f("retry", "重试加载")), 1)]),
1145
1145
  _: 1
1146
- }, 8, ["disabled"])) : C("v-if", !0)])) : C("v-if", !0),
1147
- K.value && !A.value ? (j(), w("p", Pt, N(K.value), 1)) : C("v-if", !0),
1148
- D(P(ue), {
1146
+ }, 8, ["disabled"])) : S("v-if", !0)])) : S("v-if", !0),
1147
+ W.value && !O.value ? (k(), C("p", Pt, j(W.value), 1)) : S("v-if", !0),
1148
+ E(M(pe), {
1149
1149
  class: "code-config__layout",
1150
- "explorer-count": (P(O)?.system && Qe.value ? 1 : 0) + +!!rt.value,
1151
- editing: Z.value || An.value || !!H.value
1150
+ "explorer-count": (M(D)?.system && et.value ? 1 : 0) + +!!at.value,
1151
+ editing: Z.value || An.value || !!B.value
1152
1152
  }, {
1153
- default: F(() => [
1154
- P(O)?.system && Qe.value ? (j(), S(P(i), {
1153
+ default: N(() => [
1154
+ M(D)?.system && et.value ? (k(), x(M(ee), {
1155
1155
  key: 0,
1156
1156
  collapsible: "",
1157
- title: p("tenant-short", "租户"),
1158
- "has-selection": !!k.value
1157
+ title: f("tenant-short", "租户"),
1158
+ "has-selection": !!We.value
1159
1159
  }, {
1160
- default: F(() => [P(O)?.system && Qe.value ? (j(), S(P(ve), {
1160
+ default: N(() => [M(D)?.system && et.value ? (k(), x(M(ye), {
1161
1161
  key: 0,
1162
- context: Qe.value,
1163
- "selected-id": k.value || void 0,
1164
- "reload-key": We.value,
1162
+ context: et.value,
1163
+ "selected-id": We.value || void 0,
1164
+ "reload-key": Ke.value,
1165
1165
  disabled: Z.value || An.value,
1166
1166
  onSelect: n[0] ||= (e) => Jn(String(e.id)),
1167
1167
  onDeselect: n[1] ||= (e) => Jn(),
1168
1168
  onLoaded: Yn,
1169
- onRefresh: n[2] ||= (e) => We.value++
1169
+ onRefresh: n[2] ||= (e) => Ke.value++
1170
1170
  }, null, 8, [
1171
1171
  "context",
1172
1172
  "selected-id",
1173
1173
  "reload-key",
1174
1174
  "disabled"
1175
- ])) : C("v-if", !0)]),
1175
+ ])) : S("v-if", !0)]),
1176
1176
  _: 1
1177
- }, 8, ["title", "has-selection"])) : C("v-if", !0),
1178
- rt.value ? (j(), S(P(i), {
1177
+ }, 8, ["title", "has-selection"])) : S("v-if", !0),
1178
+ at.value ? (k(), x(M(ee), {
1179
1179
  key: 1,
1180
1180
  collapsible: "",
1181
- title: p("module", "所属模块"),
1182
- "has-selection": !!R.value
1181
+ title: f("module", "所属模块"),
1182
+ "has-selection": !!I.value
1183
1183
  }, {
1184
- default: F(() => [D(P(ye), {
1185
- title: p("module", "所属模块"),
1184
+ default: N(() => [E(M(be), {
1185
+ title: f("module", "所属模块"),
1186
1186
  "refresh-disabled": Z.value || An.value,
1187
- "search-keyword": tt.value,
1187
+ "search-keyword": rt.value,
1188
1188
  onRefresh: qn,
1189
- "onUpdate:searchKeyword": n[4] ||= (e) => tt.value = e
1189
+ "onUpdate:searchKeyword": n[4] ||= (e) => rt.value = e
1190
1190
  }, {
1191
- default: F(() => [D(P(we), {
1192
- records: nt.value,
1193
- "selected-id": R.value || void 0,
1194
- keyword: tt.value,
1195
- "empty-description": p("no-modules", "没有可配置业务编码的模块。"),
1191
+ default: N(() => [E(M(Te), {
1192
+ records: it.value,
1193
+ "selected-id": I.value || void 0,
1194
+ keyword: rt.value,
1195
+ "empty-description": f("no-modules", "没有可配置业务编码的模块。"),
1196
1196
  onSelect: n[3] ||= (e) => Gn(String(e.id))
1197
1197
  }, null, 8, [
1198
1198
  "records",
@@ -1207,44 +1207,44 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1207
1207
  "search-keyword"
1208
1208
  ])]),
1209
1209
  _: 1
1210
- }, 8, ["title", "has-selection"])) : C("v-if", !0),
1211
- T("div", Ft, [Ke.value ? U.value ? (j(), S(P(u), {
1210
+ }, 8, ["title", "has-selection"])) : S("v-if", !0),
1211
+ w("div", Ft, [Je.value ? V.value ? (k(), x(M(ie), {
1212
1212
  key: 1,
1213
1213
  spinning: !0
1214
1214
  }, {
1215
- default: F(() => [T("p", null, N(p("loading", "正在读取编码配置…")), 1)]),
1215
+ default: N(() => [w("p", null, j(f("loading", "正在读取编码配置…")), 1)]),
1216
1216
  _: 1
1217
- })) : !G.value && nt.value.length === 0 ? (j(), w("div", It, [D(P(Te), { description: je.value }, null, 8, ["description"]), P(me) ? (j(), w("div", Lt, [ge.value === "no-model" || ge.value === "no-fields" ? (j(), S(P(y), {
1217
+ })) : !U.value && it.value.length === 0 ? (k(), C("div", It, [E(M(Ee), { description: Me.value }, null, 8, ["description"]), M(_e) ? (k(), C("div", Lt, [ve.value === "no-model" || ve.value === "no-fields" ? (k(), x(M(v), {
1218
1218
  key: 0,
1219
1219
  type: "primary",
1220
- onClick: ze
1220
+ onClick: Be
1221
1221
  }, {
1222
- default: F(() => [E(N(p("configure-model", "配置模型")), 1)]),
1222
+ default: N(() => [T(j(f("configure-model", "配置模型")), 1)]),
1223
1223
  _: 1
1224
- })) : C("v-if", !0), D(P(y), { onClick: n[5] ||= (e) => P(me).openRoute("/platform/module") }, {
1225
- default: F(() => [E(N(p("back-to-modules", "返回模块管理")), 1)]),
1224
+ })) : S("v-if", !0), E(M(v), { onClick: n[5] ||= (e) => M(_e).openRoute("/platform/module") }, {
1225
+ default: N(() => [T(j(f("back-to-modules", "返回模块管理")), 1)]),
1226
1226
  _: 1
1227
- })])) : C("v-if", !0)])) : !R.value && L.value.length ? (j(), S(P(Te), {
1227
+ })])) : S("v-if", !0)])) : !I.value && F.value.length ? (k(), x(M(Ee), {
1228
1228
  key: 3,
1229
- description: p("select-module", "选择模块后,配置业务对象的编码规则。")
1230
- }, null, 8, ["description"])) : R.value && it.value.length ? (j(), w("div", Rt, [D(P(ye), {
1229
+ description: f("select-module", "选择模块后,配置业务对象的编码规则。")
1230
+ }, null, 8, ["description"])) : I.value && ot.value.length ? (k(), C("div", Rt, [E(M(be), {
1231
1231
  class: "code-config__directory",
1232
- title: p("binding-title", "编码对象"),
1232
+ title: f("binding-title", "编码对象"),
1233
1233
  "refresh-disabled": Z.value || An.value,
1234
1234
  searchable: !1,
1235
1235
  onRefresh: qn
1236
1236
  }, {
1237
- actions: F(() => [!e.embedded && Y.value?.source === "DYNAMIC" ? (j(), S(jt, {
1237
+ actions: N(() => [!e.embedded && Y.value?.source === "DYNAMIC" ? (k(), x(jt, {
1238
1238
  key: 0,
1239
1239
  ref_key: "localActivation",
1240
1240
  ref: xt,
1241
1241
  "module-alias": Y.value.moduleAlias
1242
- }, null, 8, ["module-alias"])) : C("v-if", !0)]),
1243
- default: F(() => [T("div", zt, [
1244
- T("label", Bt, [E(N(p("entity", "业务对象")), 1), D(P(_), {
1245
- value: at.value,
1242
+ }, null, 8, ["module-alias"])) : S("v-if", !0)]),
1243
+ default: N(() => [w("div", zt, [
1244
+ w("label", Bt, [T(j(f("entity", "业务对象")), 1), E(M(g), {
1245
+ value: st.value,
1246
1246
  disabled: Z.value,
1247
- options: it.value.map((e) => ({
1247
+ options: ot.value.map((e) => ({
1248
1248
  value: Ct(e),
1249
1249
  label: e.title
1250
1250
  })),
@@ -1254,8 +1254,8 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1254
1254
  "disabled",
1255
1255
  "options"
1256
1256
  ])]),
1257
- Y.value?.fields.length ? (j(), w("label", Vt, [E(N(p("field", "编码字段")), 1), D(P(_), {
1258
- value: z.value,
1257
+ Y.value?.fields.length ? (k(), C("label", Vt, [T(j(f("field", "编码字段")), 1), E(M(g), {
1258
+ value: L.value,
1259
1259
  disabled: Z.value,
1260
1260
  options: Y.value?.fields.map((e) => ({
1261
1261
  value: e.fieldName,
@@ -1266,32 +1266,32 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1266
1266
  "value",
1267
1267
  "disabled",
1268
1268
  "options"
1269
- ])])) : C("v-if", !0),
1270
- Y.value && !X.value ? (j(), w(b, { key: 1 }, [D(P(Te), { description: p("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。") }, null, 8, ["description"]), P(me) && Y.value.source === "DYNAMIC" ? (j(), S(P(y), {
1269
+ ])])) : S("v-if", !0),
1270
+ Y.value && !X.value ? (k(), C(y, { key: 1 }, [E(M(Ee), { description: f("reason.no-fields", "当前数据模型没有可用于编号的字段,请先检查字段配置。") }, null, 8, ["description"]), M(_e) && Y.value.source === "DYNAMIC" ? (k(), x(M(v), {
1271
1271
  key: 0,
1272
- onClick: ze
1272
+ onClick: Be
1273
1273
  }, {
1274
- default: F(() => [E(N(p("configure-model", "配置模型")), 1)]),
1274
+ default: N(() => [T(j(f("configure-model", "配置模型")), 1)]),
1275
1275
  _: 1
1276
- })) : C("v-if", !0)], 64)) : C("v-if", !0),
1277
- X.value ? (j(), w(b, { key: 2 }, [Y.value?.source === "STATIC" ? (j(), w("div", Ht, [T("span", null, N(wt.value), 1), D(P(oe), { label: p("binding-info", "字段设置说明") }, {
1278
- default: F(() => [T("p", null, N(p("java-declaration", "字段角色和生成时机由业务模型预设。")), 1), T("dl", Ut, [
1279
- T("dt", null, N(p("module", "所属模块")), 1),
1280
- T("dd", null, N(Y.value.moduleAlias), 1),
1281
- T("dt", null, N(p("entity", "业务对象")), 1),
1282
- T("dd", null, N(Y.value.entityAlias), 1),
1283
- T("dt", null, N(p("field", "编码字段")), 1),
1284
- T("dd", null, N(X.value.fieldName), 1)
1276
+ })) : S("v-if", !0)], 64)) : S("v-if", !0),
1277
+ X.value ? (k(), C(y, { key: 2 }, [Y.value?.source === "STATIC" ? (k(), C("div", Ht, [w("span", null, j(wt.value), 1), E(M(ue), { label: f("binding-info", "字段设置说明") }, {
1278
+ default: N(() => [w("p", null, j(f("java-declaration", "字段角色和生成时机由业务模型预设。")), 1), w("dl", Ut, [
1279
+ w("dt", null, j(f("module", "所属模块")), 1),
1280
+ w("dd", null, j(Y.value.moduleAlias), 1),
1281
+ w("dt", null, j(f("entity", "业务对象")), 1),
1282
+ w("dd", null, j(Y.value.entityAlias), 1),
1283
+ w("dt", null, j(f("field", "编码字段")), 1),
1284
+ w("dd", null, j(X.value.fieldName), 1)
1285
1285
  ])]),
1286
1286
  _: 1
1287
- }, 8, ["label"])])) : (j(), w("section", {
1288
- key: `${at.value}/${z.value}`,
1287
+ }, 8, ["label"])])) : (k(), C("section", {
1288
+ key: `${st.value}/${L.value}`,
1289
1289
  class: "code-config__binding"
1290
- }, [T("div", Wt, [
1291
- T("label", Gt, [E(N(p("role", "编码角色")), 1), D(P(_), {
1290
+ }, [w("div", Wt, [
1291
+ w("label", Gt, [T(j(f("role", "编码角色")), 1), E(M(g), {
1292
1292
  value: q.value,
1293
1293
  "onUpdate:value": n[8] ||= (e) => q.value = e,
1294
- disabled: Z.value || (X.value.role ? !et.value : !I.value),
1294
+ disabled: Z.value || (X.value.role ? !nt.value : !P.value),
1295
1295
  options: Vn({
1296
1296
  NORMAL: "业务编码",
1297
1297
  PRIMARY: "主编码"
@@ -1301,10 +1301,10 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1301
1301
  "disabled",
1302
1302
  "options"
1303
1303
  ])]),
1304
- T("label", Kt, [E(N(p("trigger", "生成时机")), 1), D(P(_), {
1304
+ w("label", Kt, [T(j(f("trigger", "生成时机")), 1), E(M(g), {
1305
1305
  value: J.value,
1306
1306
  "onUpdate:value": n[9] ||= (e) => J.value = e,
1307
- disabled: Z.value || (X.value.role ? !et.value : !I.value),
1307
+ disabled: Z.value || (X.value.role ? !nt.value : !P.value),
1308
1308
  options: Vn({
1309
1309
  SAVE: "首次保存",
1310
1310
  EXPLICIT: "业务操作时生成"
@@ -1314,55 +1314,55 @@ 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 ? (j(), w("div", qt, [D(P(y), {
1318
- disabled: !et.value || Z.value,
1317
+ X.value.role && kn.value ? (k(), C("div", qt, [E(M(v), {
1318
+ disabled: !nt.value || Z.value,
1319
1319
  onClick: nr
1320
1320
  }, {
1321
- default: F(() => [E(N(p("save-binding", "保存字段配置")), 1)]),
1321
+ default: N(() => [T(j(f("save-binding", "保存字段配置")), 1)]),
1322
1322
  _: 1
1323
- }, 8, ["disabled"]), D(P(y), {
1323
+ }, 8, ["disabled"]), E(M(v), {
1324
1324
  disabled: Z.value,
1325
1325
  onClick: tr
1326
1326
  }, {
1327
- default: F(() => [E(N(p("cancel-settings", "取消修改")), 1)]),
1327
+ default: N(() => [T(j(f("cancel-settings", "取消修改")), 1)]),
1328
1328
  _: 1
1329
- }, 8, ["disabled"])])) : C("v-if", !0)
1330
- ])])), X.value ? (j(), S(P(ce), {
1329
+ }, 8, ["disabled"])])) : S("v-if", !0)
1330
+ ])])), X.value ? (k(), x(M(fe), {
1331
1331
  key: 2,
1332
- title: p("rules", "编号规则"),
1332
+ title: f("rules", "编号规则"),
1333
1333
  kind: "relation"
1334
1334
  }, {
1335
- actions: F(() => [D(P(te), {
1335
+ actions: N(() => [E(M(oe), {
1336
1336
  "icon-name": "plus",
1337
- title: p("new-rule", "新增规则"),
1338
- "aria-label": p("new-rule", "新增规则"),
1339
- disabled: !I.value || Z.value,
1337
+ title: f("new-rule", "新增规则"),
1338
+ "aria-label": f("new-rule", "新增规则"),
1339
+ disabled: !P.value || Z.value,
1340
1340
  onClick: $n
1341
1341
  }, null, 8, [
1342
1342
  "title",
1343
1343
  "aria-label",
1344
1344
  "disabled"
1345
1345
  ])]),
1346
- default: F(() => [D(P(xe), {
1346
+ default: N(() => [E(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: F(({ row: e, column: t }) => [t.fieldName === "title" ? (j(), S(P(y), {
1352
+ cell: N(({ row: e, column: t }) => [t.fieldName === "title" ? (k(), x(M(v), {
1353
1353
  key: 0,
1354
1354
  type: "link",
1355
1355
  class: "code-config__rule-name",
1356
1356
  disabled: Z.value,
1357
1357
  onClick: (t) => Qn(e)
1358
1358
  }, {
1359
- default: F(() => [E(N(e.title), 1)]),
1359
+ default: N(() => [T(j(e.title), 1)]),
1360
1360
  _: 2
1361
- }, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (j(), w(b, { key: 1 }, [H.value && H.value.id === e.id ? (j(), S(P(_), {
1361
+ }, 1032, ["disabled", "onClick"])) : t.fieldName === "scope" ? (k(), C(y, { key: 1 }, [B.value && B.value.id === e.id ? (k(), x(M(g), {
1362
1362
  key: 0,
1363
- value: H.value.orgScopeType,
1364
- "onUpdate:value": n[10] ||= (e) => H.value.orgScopeType = e,
1365
- "aria-label": p("scope", "适用范围"),
1363
+ value: B.value.orgScopeType,
1364
+ "onUpdate:value": n[10] ||= (e) => B.value.orgScopeType = e,
1365
+ "aria-label": f("scope", "适用范围"),
1366
1366
  disabled: !jn.value,
1367
1367
  options: Vn({
1368
1368
  GLOBAL: "当前租户全部组织",
@@ -1373,21 +1373,21 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1373
1373
  "aria-label",
1374
1374
  "disabled",
1375
1375
  "options"
1376
- ])) : (j(), w("span", Jt, N(e.orgScopeType === "GLOBAL" ? p("all-orgs", "全部机构") : p("enum.ORG", "指定组织及其下级")), 1))], 64)) : t.fieldName === "organization" ? (j(), w(b, { key: 2 }, [H.value && H.value.id === e.id && H.value.orgScopeType === "ORG" ? (j(), w("label", Yt, [T("span", Xt, N(p("organization", "适用组织")), 1), $e.value ? (j(), S(P(fe), {
1376
+ ])) : (k(), C("span", Jt, j(e.orgScopeType === "GLOBAL" ? f("all-orgs", "全部机构") : f("enum.ORG", "指定组织及其下级")), 1))], 64)) : t.fieldName === "organization" ? (k(), C(y, { key: 2 }, [B.value && B.value.id === e.id && B.value.orgScopeType === "ORG" ? (k(), C("label", Yt, [w("span", Xt, j(f("organization", "适用组织")), 1), tt.value ? (k(), x(M(he), {
1377
1377
  key: 0,
1378
- value: H.value.orgScopeId ?? void 0,
1379
- context: $e.value,
1378
+ value: B.value.orgScopeId ?? void 0,
1379
+ context: tt.value,
1380
1380
  mode: "tree",
1381
1381
  disabled: !jn.value,
1382
- "onUpdate:value": n[11] ||= (e) => H.value.orgScopeId = e
1382
+ "onUpdate:value": n[11] ||= (e) => B.value.orgScopeId = e
1383
1383
  }, null, 8, [
1384
1384
  "value",
1385
1385
  "context",
1386
1386
  "disabled"
1387
- ])) : (j(), w("span", Zt, N(p("tenant-required", "请使用租户身份选择组织。")), 1))])) : (j(), w("span", Qt, N((H.value && H.value.id === e.id ? H.value.orgScopeType : e.orgScopeType) === "GLOBAL" ? "—" : En(e)), 1))], 64)) : t.fieldName === "effectiveFrom" || t.fieldName === "effectiveTo" ? (j(), w(b, { key: 3 }, [H.value && H.value.id === e.id ? (j(), S(P(v), {
1387
+ ])) : (k(), C("span", Zt, j(f("tenant-required", "请使用租户身份选择组织。")), 1))])) : (k(), C("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(), C(y, { key: 3 }, [B.value && B.value.id === e.id ? (k(), x(M(_), {
1388
1388
  key: 0,
1389
- value: H.value[t.fieldName],
1390
- "onUpdate:value": (e) => H.value[t.fieldName] = e,
1389
+ value: B.value[t.fieldName],
1390
+ "onUpdate:value": (e) => B.value[t.fieldName] = e,
1391
1391
  "aria-label": t.title,
1392
1392
  type: "datetime-local",
1393
1393
  step: 60,
@@ -1397,89 +1397,89 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1397
1397
  "onUpdate:value",
1398
1398
  "aria-label",
1399
1399
  "disabled"
1400
- ])) : (j(), w("span", $t, N(P(Ce)(e[t.fieldName], {
1401
- language: P(f),
1400
+ ])) : (k(), C("span", $t, j(M(we)(e[t.fieldName], {
1401
+ language: M(d),
1402
1402
  precision: "minute",
1403
- emptyText: p("unlimited", "不限")
1404
- }).text), 1))], 64)) : t.fieldName === "actions" ? (j(), w("div", en, [H.value && H.value.id === e.id ? (j(), w(b, { key: 0 }, [D(P(y), {
1403
+ emptyText: f("unlimited", "不限")
1404
+ }).text), 1))], 64)) : t.fieldName === "actions" ? (k(), C("div", en, [B.value && B.value.id === e.id ? (k(), C(y, { key: 0 }, [E(M(v), {
1405
1405
  type: "link",
1406
- disabled: !I.value || Z.value || !On.value,
1406
+ disabled: !P.value || Z.value || !On.value,
1407
1407
  onClick: cr
1408
1408
  }, {
1409
- default: F(() => [E(N(p("save", "保存")), 1)]),
1409
+ default: N(() => [T(j(f("save", "保存")), 1)]),
1410
1410
  _: 1
1411
- }, 8, ["disabled"]), D(P(y), {
1411
+ }, 8, ["disabled"]), E(M(v), {
1412
1412
  type: "link",
1413
1413
  disabled: Z.value,
1414
1414
  onClick: sr
1415
1415
  }, {
1416
- default: F(() => [E(N(p("cancel-settings", "取消修改")), 1)]),
1416
+ default: N(() => [T(j(f("cancel-settings", "取消修改")), 1)]),
1417
1417
  _: 1
1418
- }, 8, ["disabled"])], 64)) : (j(), S(P(y), {
1418
+ }, 8, ["disabled"])], 64)) : (k(), x(M(v), {
1419
1419
  key: 1,
1420
1420
  type: "link",
1421
1421
  class: "code-config__edit-usage",
1422
- "aria-label": p("edit-usage", "编辑适用配置") + ":" + e.title,
1423
- disabled: !I.value || Z.value,
1422
+ "aria-label": f("edit-usage", "编辑适用配置") + ":" + e.title,
1423
+ disabled: !P.value || Z.value,
1424
1424
  onClick: (t) => or(e)
1425
1425
  }, {
1426
- default: F(() => [E(N(p("edit", "编辑")), 1)]),
1426
+ default: N(() => [T(j(f("edit", "编辑")), 1)]),
1427
1427
  _: 1
1428
1428
  }, 8, [
1429
1429
  "aria-label",
1430
1430
  "disabled",
1431
1431
  "onClick"
1432
- ]))])) : t.fieldName === "enabled" ? (j(), S(P(re), {
1432
+ ]))])) : t.fieldName === "enabled" ? (k(), x(M(p), {
1433
1433
  key: 5,
1434
- "aria-label": P(f).t("platform.code.config.rule-switch", "启用规则:{name}", { name: e.title }),
1434
+ "aria-label": M(d).t("platform.code.config.rule-switch", "启用规则:{name}", { name: e.title }),
1435
1435
  checked: e.enabled,
1436
- disabled: !I.value || Z.value || An.value || !!H.value || !e.enabled && !X.value.role && !et.value,
1436
+ disabled: !P.value || Z.value || An.value || !!B.value || !e.enabled && !X.value.role && !nt.value,
1437
1437
  onChange: (t) => ar(e, t)
1438
1438
  }, null, 8, [
1439
1439
  "aria-label",
1440
1440
  "checked",
1441
1441
  "disabled",
1442
1442
  "onChange"
1443
- ])) : C("v-if", !0)]),
1444
- empty: F(() => [E(N(p("no-rules", "暂无编号规则")), 1)]),
1443
+ ])) : S("v-if", !0)]),
1444
+ empty: N(() => [T(j(f("no-rules", "暂无编号规则")), 1)]),
1445
1445
  _: 1
1446
1446
  }, 8, ["columns", "rows"])]),
1447
1447
  _: 1
1448
- }, 8, ["title"])) : C("v-if", !0)], 64)) : C("v-if", !0)
1448
+ }, 8, ["title"])) : S("v-if", !0)], 64)) : S("v-if", !0)
1449
1449
  ])]),
1450
1450
  _: 1
1451
- }, 8, ["title", "refresh-disabled"])])) : C("v-if", !0) : (j(), S(P(Te), {
1451
+ }, 8, ["title", "refresh-disabled"])])) : S("v-if", !0) : (k(), x(M(Ee), {
1452
1452
  key: 0,
1453
- description: p("select-tenant", "选择规则所属租户后,可维护该租户的编号规则。")
1453
+ description: f("select-tenant", "选择规则所属租户后,可维护该租户的编号规则。")
1454
1454
  }, null, 8, ["description"]))])
1455
1455
  ]),
1456
1456
  _: 1
1457
1457
  }, 8, ["explorer-count", "editing"]),
1458
- A.value ? (j(), S(P(s), {
1458
+ O.value ? (k(), x(M(l), {
1459
1459
  key: 2,
1460
- open: A.value,
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: V.value?.id ? p("rules", "编号规则") : p("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
- }, Re({
1468
- default: F(() => [G.value || K.value ? (j(), w("div", {
1467
+ }, ze({
1468
+ default: N(() => [U.value || W.value ? (k(), C("div", {
1469
1469
  key: 0,
1470
1470
  ref_key: "editorFeedback",
1471
- ref: mt
1472
- }, [G.value ? (j(), S(P(l), {
1471
+ ref: gt
1472
+ }, [U.value ? (k(), x(M(re), {
1473
1473
  key: 0,
1474
- title: p("request-failed", "操作未完成"),
1475
- message: G.value
1476
- }, null, 8, ["title", "message"])) : C("v-if", !0), K.value ? (j(), w("p", tn, N(K.value), 1)) : C("v-if", !0)], 512)) : C("v-if", !0), V.value ? (j(), w("div", nn, [T("div", { class: He(["code-config__editor-grid", { "code-config__editor-grid--manual": V.value.mode === "MANUAL" }]) }, [T("div", rn, [
1477
- T("div", an, [T("label", on, [E(N(p("rule-title", "规则名称")), 1), D(P(v), {
1478
- value: V.value.title,
1479
- "onUpdate:value": n[12] ||= (e) => V.value.title = e,
1474
+ title: f("request-failed", "操作未完成"),
1475
+ message: U.value
1476
+ }, null, 8, ["title", "message"])) : S("v-if", !0), W.value ? (k(), C("p", tn, j(W.value), 1)) : S("v-if", !0)], 512)) : S("v-if", !0), z.value ? (k(), C("div", nn, [w("div", { class: Ue(["code-config__editor-grid", { "code-config__editor-grid--manual": z.value.mode === "MANUAL" }]) }, [w("div", rn, [
1477
+ w("div", an, [w("label", on, [T(j(f("rule-title", "规则名称")), 1), E(M(_), {
1478
+ value: z.value.title,
1479
+ "onUpdate:value": n[12] ||= (e) => z.value.title = e,
1480
1480
  disabled: !jn.value
1481
- }, null, 8, ["value", "disabled"])]), T("label", sn, [E(N(p("mode", "编号方式")), 1), D(P(_), {
1482
- value: V.value.mode,
1481
+ }, null, 8, ["value", "disabled"])]), w("label", sn, [T(j(f("mode", "编号方式")), 1), E(M(g), {
1482
+ value: z.value.mode,
1483
1483
  disabled: !jn.value,
1484
1484
  options: Vn({
1485
1485
  AUTO: "自动编号",
@@ -1492,10 +1492,10 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1492
1492
  "disabled",
1493
1493
  "options"
1494
1494
  ])])]),
1495
- V.value.mode === "MANUAL" ? (j(), w("p", cn, N(p("manual-description", "人工填写编号,无需设置编码格式。")), 1)) : C("v-if", !0),
1496
- Xe(D(yt, {
1497
- rule: V.value,
1498
- "onUpdate:rule": n[14] ||= (e) => V.value = e,
1495
+ z.value.mode === "MANUAL" ? (k(), C("p", cn, j(f("manual-description", "人工填写编号,无需设置编码格式。")), 1)) : S("v-if", !0),
1496
+ Qe(E(yt, {
1497
+ rule: z.value,
1498
+ "onUpdate:rule": n[14] ||= (e) => z.value = e,
1499
1499
  sources: Y.value?.sources ?? [],
1500
1500
  trigger: X.value?.trigger ?? J.value,
1501
1501
  editable: jn.value
@@ -1504,110 +1504,110 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1504
1504
  "sources",
1505
1505
  "trigger",
1506
1506
  "editable"
1507
- ]), [[Je, V.value.mode !== "MANUAL"]]),
1508
- (j(), w("details", {
1509
- key: V.value.id ?? "new",
1507
+ ]), [[Xe, z.value.mode !== "MANUAL"]]),
1508
+ (k(), C("details", {
1509
+ key: z.value.id ?? "new",
1510
1510
  class: "code-config__policy"
1511
- }, [T("summary", null, [E(N(p("numbering-policy", "编号策略")), 1), Et.value ? (j(), w("span", ln, " · " + N(Et.value), 1)) : C("v-if", !0)]), T("div", un, [Tt.value ? (j(), w("div", dn, [D(P(be), {
1512
- checked: V.value.linkedUpdate,
1513
- "onUpdate:checked": n[15] ||= (e) => V.value.linkedUpdate = e,
1511
+ }, [w("summary", null, [T(j(f("numbering-policy", "编号策略")), 1), Et.value ? (k(), C("span", ln, " · " + j(Et.value), 1)) : S("v-if", !0)]), w("div", un, [Tt.value ? (k(), C("div", dn, [E(M(xe), {
1512
+ checked: z.value.linkedUpdate,
1513
+ "onUpdate:checked": n[15] ||= (e) => z.value.linkedUpdate = e,
1514
1514
  disabled: !jn.value
1515
1515
  }, {
1516
- default: F(() => [E(N(p("linked", "修改编号来源后自动换号")), 1)]),
1516
+ default: N(() => [T(j(f("linked", "修改编号来源后自动换号")), 1)]),
1517
1517
  _: 1
1518
- }, 8, ["checked", "disabled"]), D(P(oe), { label: p("linked-help-title", "自动换号说明") }, {
1519
- default: F(() => [T("p", null, N(p("linked-help", "已生成编号后,修改参与编号的业务字段并保存,将重新生成整个编号;包含流水号时会重新取号。未勾选则保留原编号,修改其他字段不受影响。")), 1), T("p", null, N(p("linked-example", "例如编号由“采购类别 + 流水号”组成:类别从“设备”改为“耗材”,编号会从 SB-0001 换为 HC-0002(示例)。")), 1)]),
1518
+ }, 8, ["checked", "disabled"]), E(M(ue), { label: f("linked-help-title", "自动换号说明") }, {
1519
+ default: N(() => [w("p", null, j(f("linked-help", "已生成编号后,修改参与编号的业务字段并保存,将重新生成整个编号;包含流水号时会重新取号。未勾选则保留原编号,修改其他字段不受影响。")), 1), w("p", null, j(f("linked-example", "例如编号由“采购类别 + 流水号”组成:类别从“设备”改为“耗材”,编号会从 SB-0001 换为 HC-0002(示例)。")), 1)]),
1520
1520
  _: 1
1521
- }, 8, ["label"])])) : C("v-if", !0), T("div", fn, [D(P(be), {
1522
- checked: V.value.allowRecycle,
1523
- "onUpdate:checked": n[16] ||= (e) => V.value.allowRecycle = e,
1521
+ }, 8, ["label"])])) : S("v-if", !0), w("div", fn, [E(M(xe), {
1522
+ checked: z.value.allowRecycle,
1523
+ "onUpdate:checked": n[16] ||= (e) => z.value.allowRecycle = e,
1524
1524
  disabled: !jn.value
1525
1525
  }, {
1526
- default: F(() => [E(N(p("recycle-short-label", "允许复用旧号")), 1)]),
1526
+ default: N(() => [T(j(f("recycle-short-label", "允许复用旧号")), 1)]),
1527
1527
  _: 1
1528
- }, 8, ["checked", "disabled"]), D(P(oe), { label: p("recycle-help-title", "旧号复用说明") }, {
1529
- default: F(() => [T("p", null, N(p("recycle-help", "记录彻底删除或更换编号后,释放的旧号允许再次分配。移入回收站仍会占用原编号;取消勾选后,旧号不再分配给其他记录。")), 1)]),
1528
+ }, 8, ["checked", "disabled"]), E(M(ue), { label: f("recycle-help-title", "旧号复用说明") }, {
1529
+ default: N(() => [w("p", null, j(f("recycle-help", "记录彻底删除或更换编号后,释放的旧号允许再次分配。移入回收站仍会占用原编号;取消勾选后,旧号不再分配给其他记录。")), 1)]),
1530
1530
  _: 1
1531
1531
  }, 8, ["label"])])])]))
1532
- ]), V.value.mode === "MANUAL" ? C("v-if", !0) : (j(), w("aside", {
1532
+ ]), z.value.mode === "MANUAL" ? S("v-if", !0) : (k(), C("aside", {
1533
1533
  key: 0,
1534
1534
  class: "code-config__trial",
1535
- "aria-label": p("trial", "草稿试算")
1535
+ "aria-label": f("trial", "草稿试算")
1536
1536
  }, [
1537
- D(P(ne), { title: p("trial", "草稿试算") }, null, 8, ["title"]),
1538
- T("p", mn, N(p("auto-trial-short", "自动试算,不占号")), 1),
1539
- T("div", hn, [T("div", gn, [T("span", null, N(p("trial-result", "试算结果")), 1), D(P(y), {
1537
+ E(M(ce), { title: f("trial", "草稿试算") }, null, 8, ["title"]),
1538
+ w("p", mn, j(f("auto-trial-short", "自动试算,不占号")), 1),
1539
+ w("div", hn, [w("div", gn, [w("span", null, j(f("trial-result", "试算结果")), 1), E(M(v), {
1540
1540
  type: "text",
1541
1541
  "icon-name": "reload",
1542
1542
  "icon-only": "",
1543
1543
  size: "small",
1544
- title: p("refresh-trial", "刷新试算"),
1545
- "aria-label": p("refresh-trial", "刷新试算"),
1546
- disabled: !Rn.value || lt.value,
1547
- loading: lt.value,
1544
+ title: f("refresh-trial", "刷新试算"),
1545
+ "aria-label": f("refresh-trial", "刷新试算"),
1546
+ disabled: !Rn.value || dt.value,
1547
+ loading: dt.value,
1548
1548
  onClick: n[17] ||= (e) => ur(!0)
1549
1549
  }, null, 8, [
1550
1550
  "title",
1551
1551
  "aria-label",
1552
1552
  "disabled",
1553
1553
  "loading"
1554
- ])]), ft.value ? (j(), w("div", {
1554
+ ])]), mt.value ? (k(), C("div", {
1555
1555
  key: 0,
1556
1556
  ref_key: "trialErrorElement",
1557
- ref: pt,
1557
+ ref: ht,
1558
1558
  tabindex: "-1",
1559
1559
  class: "code-config__trial-error"
1560
- }, [D(P(l), {
1561
- title: p("trial-failed", "试算未完成"),
1562
- message: ft.value
1563
- }, null, 8, ["title", "message"])], 512)) : ht.value ? (j(), w("output", {
1560
+ }, [E(M(re), {
1561
+ title: f("trial-failed", "试算未完成"),
1562
+ message: mt.value
1563
+ }, null, 8, ["title", "message"])], 512)) : G.value ? (k(), C("output", {
1564
1564
  key: 1,
1565
1565
  ref_key: "previewElement",
1566
- ref: gt,
1567
- "aria-label": p("trial-result", "试算结果")
1568
- }, [T("strong", null, N(ht.value.value), 1)], 8, _n)) : (j(), w("p", vn, N(ut.value || lt.value ? p("trial-updating", "正在更新…") : p("auto-trial-placeholder", "修改配置后自动更新")), 1))]),
1569
- Nn.value.length ? (j(), w("details", yn, [T("summary", null, N(p("trial-extra-short", "补充试算来源")), 1), T("label", bn, [T("span", xn, N(p("trial-extra-short", "补充试算来源")), 1), D(P(_), {
1570
- value: dt.value,
1571
- "onUpdate:value": n[18] ||= (e) => dt.value = e,
1566
+ ref: _t,
1567
+ "aria-label": f("trial-result", "试算结果")
1568
+ }, [w("strong", null, j(G.value.value), 1)], 8, _n)) : (k(), C("p", vn, j(ft.value || dt.value ? f("trial-updating", "正在更新…") : f("auto-trial-placeholder", "修改配置后自动更新")), 1))]),
1569
+ Nn.value.length ? (k(), C("details", yn, [w("summary", null, j(f("trial-extra-short", "补充试算来源")), 1), w("label", bn, [w("span", xn, j(f("trial-extra-short", "补充试算来源")), 1), E(M(g), {
1570
+ value: pt.value,
1571
+ "onUpdate:value": n[18] ||= (e) => pt.value = e,
1572
1572
  mode: "multiple",
1573
1573
  "show-search": "",
1574
1574
  disabled: Z.value,
1575
1575
  options: Nn.value.map((e) => ({
1576
1576
  value: e.fieldName,
1577
- label: P(Pe)(e, P(f))
1577
+ label: M(Fe)(e, M(d))
1578
1578
  }))
1579
1579
  }, null, 8, [
1580
1580
  "value",
1581
1581
  "disabled",
1582
1582
  "options"
1583
- ])])])) : C("v-if", !0),
1584
- T("div", Sn, [(j(!0), w(b, null, Ge(Pn.value, (e) => (j(), w("label", {
1583
+ ])])])) : S("v-if", !0),
1584
+ w("div", Sn, [(k(!0), C(y, null, qe(Pn.value, (e) => (k(), C("label", {
1585
1585
  class: "code-config__field",
1586
1586
  key: e.fieldName
1587
- }, [E(N(P(Pe)(e, P(f))), 1), P(Ee)(e) === "boolean" ? (j(), S(P(_), {
1587
+ }, [T(j(M(Fe)(e, M(d))), 1), M(De)(e) === "boolean" ? (k(), x(M(g), {
1588
1588
  key: 0,
1589
- value: _t.value[e.fieldName],
1590
- "onUpdate:value": (t) => _t.value[e.fieldName] = t,
1589
+ value: K.value[e.fieldName],
1590
+ "onUpdate:value": (t) => K.value[e.fieldName] = t,
1591
1591
  "allow-clear": "",
1592
1592
  disabled: Z.value,
1593
1593
  options: [{
1594
1594
  value: "true",
1595
- label: p("boolean-true", "是")
1595
+ label: f("boolean-true", "是")
1596
1596
  }, {
1597
1597
  value: "false",
1598
- label: p("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
- ])) : (j(), S(P(v), {
1605
+ ])) : (k(), x(M(_), {
1606
1606
  key: 1,
1607
- value: _t.value[e.fieldName],
1608
- "onUpdate:value": (t) => _t.value[e.fieldName] = t,
1609
- step: P(Ee)(e) === "number" ? "any" : void 0,
1610
- type: P(Ee)(e) === "datetime" ? "datetime-local" : P(Ee)(e) === "number" ? "number" : P(Ee)(e) === "date" ? "date" : "text",
1607
+ value: K.value[e.fieldName],
1608
+ "onUpdate:value": (t) => K.value[e.fieldName] = t,
1609
+ step: M(De)(e) === "number" ? "any" : void 0,
1610
+ type: M(De)(e) === "datetime" ? "datetime-local" : M(De)(e) === "number" ? "number" : M(De)(e) === "date" ? "date" : "text",
1611
1611
  disabled: Z.value
1612
1612
  }, null, 8, [
1613
1613
  "value",
@@ -1615,43 +1615,43 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1615
1615
  "step",
1616
1616
  "type",
1617
1617
  "disabled"
1618
- ]))]))), 128)), V.value.sequencePolicy ? (j(), w("label", Cn, [E(N(p("trial-sequence", "试算流水值")), 1), D(P(v), {
1618
+ ]))]))), 128)), z.value.sequencePolicy ? (k(), C("label", Cn, [T(j(f("trial-sequence", "试算流水值")), 1), E(M(_), {
1619
1619
  value: vt.value,
1620
1620
  "onUpdate:value": n[19] ||= (e) => vt.value = e,
1621
1621
  type: "number",
1622
- placeholder: String(V.value.sequencePolicy?.startValue ?? 1),
1622
+ placeholder: String(z.value.sequencePolicy?.startValue ?? 1),
1623
1623
  disabled: Z.value
1624
1624
  }, null, 8, [
1625
1625
  "value",
1626
1626
  "placeholder",
1627
1627
  "disabled"
1628
- ])])) : C("v-if", !0)]),
1629
- ht.value?.segments.length ? (j(), w("p", wn, N(p("segment-results", "片段结果(不含分隔符)")), 1)) : C("v-if", !0),
1630
- ht.value?.segments.length ? (j(), w("ol", {
1628
+ ])])) : S("v-if", !0)]),
1629
+ G.value?.segments.length ? (k(), C("p", wn, j(f("segment-results", "片段结果(不含分隔符)")), 1)) : S("v-if", !0),
1630
+ G.value?.segments.length ? (k(), C("ol", {
1631
1631
  key: 2,
1632
1632
  class: "code-config__preview-segments",
1633
- "aria-label": p("segment-results", "片段结果(不含分隔符)")
1634
- }, [(j(!0), w(b, null, Ge(ht.value.segments, (e, t) => (j(), w("li", { key: t }, [T("span", null, N(p(`segment.${e.segmentType}`, e.segmentType)), 1), T("code", null, N(e.value), 1)]))), 128))], 8, Tn)) : C("v-if", !0)
1635
- ], 8, pn))], 2)])) : (j(), S(P(Te), {
1633
+ "aria-label": f("segment-results", "片段结果(不含分隔符)")
1634
+ }, [(k(!0), C(y, null, qe(G.value.segments, (e, t) => (k(), C("li", { key: t }, [w("span", null, j(f(`segment.${e.segmentType}`, e.segmentType)), 1), w("code", null, j(e.value), 1)]))), 128))], 8, Tn)) : S("v-if", !0)
1635
+ ], 8, pn))], 2)])) : (k(), x(M(Ee), {
1636
1636
  key: 1,
1637
- description: p("choose-rule", "选择或新增编号规则。")
1637
+ description: f("choose-rule", "选择或新增编号规则。")
1638
1638
  }, null, 8, ["description"]))]),
1639
1639
  _: 2
1640
- }, [V.value ? {
1640
+ }, [z.value ? {
1641
1641
  name: "header-actions",
1642
- fn: F(() => [D(P(y), {
1642
+ fn: N(() => [E(M(v), {
1643
1643
  disabled: Z.value,
1644
1644
  onClick: Zn
1645
1645
  }, {
1646
- default: F(() => [E(N(p("cancel", "取消修改")), 1)]),
1646
+ default: N(() => [T(j(f("cancel", "取消修改")), 1)]),
1647
1647
  _: 1
1648
- }, 8, ["disabled"]), D(P(y), {
1648
+ }, 8, ["disabled"]), E(M(v), {
1649
1649
  type: "primary",
1650
1650
  disabled: !jn.value || kn.value,
1651
- loading: W.value,
1651
+ loading: H.value,
1652
1652
  onClick: ir
1653
1653
  }, {
1654
- default: F(() => [E(N(p("save-rule", "保存规则")), 1)]),
1654
+ default: N(() => [T(j(f("save-rule", "保存规则")), 1)]),
1655
1655
  _: 1
1656
1656
  }, 8, ["disabled", "loading"])]),
1657
1657
  key: "0"
@@ -1659,7 +1659,7 @@ var St = ["aria-label"], Ct = { class: "module-runtime-activation__summary" }, Y
1659
1659
  "open",
1660
1660
  "title",
1661
1661
  "subtitle"
1662
- ])) : C("v-if", !0)
1662
+ ])) : S("v-if", !0)
1663
1663
  ]));
1664
1664
  }
1665
1665
  }), Dn = /* @__PURE__ */ e({ default: () => On }), On = /*#__PURE__*/ h(En, [["__scopeId", "data-v-a792aff4"]]);