smart-admin-web 10.21.0 → 10.23.0

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 (60) hide show
  1. package/dist/assets/icons/ph-subset.json.js +1 -1
  2. package/dist/components/FormContainer/index.vue.js +67 -67
  3. package/dist/components/FormContainer/index.vue.js.map +1 -1
  4. package/dist/components/SidePanelDrawer/index.vue.d.ts +25 -0
  5. package/dist/components/SidePanelDrawer/index.vue.js +40 -0
  6. package/dist/components/SidePanelDrawer/index.vue.js.map +1 -0
  7. package/dist/components/SidePanelDrawer/index3.vue.js +6 -0
  8. package/dist/components/SidePanelDrawer/index3.vue.js.map +1 -0
  9. package/dist/composables/authMenuRoute.d.ts +10 -0
  10. package/dist/composables/authMenuRoute.js +39 -23
  11. package/dist/composables/authMenuRoute.js.map +1 -1
  12. package/dist/composables/useModule.d.ts +3 -1
  13. package/dist/composables/useModule.js +44 -32
  14. package/dist/composables/useModule.js.map +1 -1
  15. package/dist/composables/useShellBreakpoint.js +14 -13
  16. package/dist/composables/useShellBreakpoint.js.map +1 -1
  17. package/dist/composables/useSidePanel.d.ts +9 -0
  18. package/dist/composables/useSidePanel.js +12 -0
  19. package/dist/composables/useSidePanel.js.map +1 -0
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.js +297 -290
  22. package/dist/index.js.map +1 -1
  23. package/dist/layouts/components/SideNav.vue.js +2 -2
  24. package/dist/layouts/components/SideNav2.vue.js.map +1 -1
  25. package/dist/layouts/default.vue.js +2 -2
  26. package/dist/layouts/default2.vue.js.map +1 -1
  27. package/dist/lib/runtime.js +1 -1
  28. package/dist/locales/en-US.d.ts +6 -0
  29. package/dist/locales/en-US.js +9 -2
  30. package/dist/locales/en-US.js.map +1 -1
  31. package/dist/locales/zh-CN.d.ts +6 -0
  32. package/dist/locales/zh-CN.js +9 -2
  33. package/dist/locales/zh-CN.js.map +1 -1
  34. package/dist/style.css +1 -1
  35. package/dist/utils/tree.d.ts +15 -0
  36. package/dist/utils/tree.js +43 -29
  37. package/dist/utils/tree.js.map +1 -1
  38. package/dist/utils/treeCard.d.ts +6 -0
  39. package/dist/utils/treeCard.js +9 -0
  40. package/dist/utils/treeCard.js.map +1 -0
  41. package/dist/views/error/404.vue.js +2 -2
  42. package/dist/views/error/4042.vue.js +81 -24
  43. package/dist/views/error/4042.vue.js.map +1 -1
  44. package/dist/views/login/components/LoginDesk.vue.js +2 -2
  45. package/dist/views/login/components/LoginDesk2.vue.js.map +1 -1
  46. package/dist/views/login/components/LoginHeroPanel.vue.js +2 -2
  47. package/dist/views/login/components/LoginHeroPanel2.vue.js.map +1 -1
  48. package/dist/views/system/job-monitor/index.vue.js +2 -2
  49. package/dist/views/system/job-monitor/index2.vue.js +46 -46
  50. package/dist/views/system/job-monitor/index2.vue.js.map +1 -1
  51. package/dist/views/system/menu/index.vue.js +2 -2
  52. package/dist/views/system/menu/index2.vue.js +161 -150
  53. package/dist/views/system/menu/index2.vue.js.map +1 -1
  54. package/dist/views/system/org/index.vue.js +2 -2
  55. package/dist/views/system/org/index2.vue.js +182 -176
  56. package/dist/views/system/org/index2.vue.js.map +1 -1
  57. package/dist/views/system/user/index.vue.js +1 -1
  58. package/dist/views/system/user/index2.vue.js +296 -277
  59. package/dist/views/system/user/index2.vue.js.map +1 -1
  60. package/package.json +3 -3
@@ -1,65 +1,69 @@
1
- import { defineComponent as se, ref as s, shallowRef as H, computed as de, reactive as ue, h as d, resolveDirective as ce, openBlock as F, createElementBlock as me, createVNode as a, unref as o, withCtx as n, createTextVNode as x, toDisplayString as m, withDirectives as pe, createBlock as fe, createSlots as ve, createElementVNode as j } from "vue";
2
- import { useMessage as ye, NSpace as M, NButton as p, NDropdown as ge, NForm as V, NFormItem as c, NInput as E, NInputNumber as he, NSwitch as be, NModal as we } from "naive-ui";
3
- import { SmartTable as ke } from "smart-naive-table";
4
- import { useI18n as _e } from "vue-i18n";
1
+ import { defineComponent as me, ref as s, shallowRef as j, computed as M, watch as pe, reactive as fe, h as d, resolveDirective as ve, openBlock as P, createElementBlock as ye, createVNode as r, unref as o, withCtx as n, createBlock as V, createTextVNode as x, toDisplayString as p, createCommentVNode as ge, withDirectives as he, createSlots as be, createElementVNode as K } from "vue";
2
+ import { useMessage as we, NSpace as G, NButton as f, NDropdown as ke, NForm as W, NFormItem as m, NInput as A, NInputNumber as _e, NSwitch as xe, NModal as Ie } from "naive-ui";
3
+ import { SmartTable as Ce } from "smart-naive-table";
4
+ import { useI18n as Ne } from "vue-i18n";
5
5
  import I from "../../../components/AppIcon.vue.js";
6
- import xe from "../../../components/DictSelect/index.vue.js";
7
- import Ie from "../../../components/DictTag/index.vue.js";
8
- import Ce from "../../../components/FormContainer/index.vue.js";
6
+ import Te from "../../../components/DictSelect/index.vue.js";
7
+ import Se from "../../../components/DictTag/index.vue.js";
8
+ import Ee from "../../../components/FormContainer/index.vue.js";
9
9
  /* empty css */
10
- import Ne from "../../../components/OrgTreeSelect/index.vue.js";
11
- import Te from "../../../components/StatusSwitch/index.vue.js";
12
- import { useConfirm as Se } from "../../../composables/useConfirm.js";
13
- import { orgApi as f } from "../../../api/index.js";
14
- import { useAuthStore as Ee } from "../../../stores/auth.js";
15
- import { translateError as K } from "../../../utils/error.js";
16
- import { SEARCH_ACTIONS as G, deriveHeaderFilters as Pe } from "../../../utils/tableFilter.js";
17
- import { TABLE_MIN_ROW_HEIGHT as Ae, TABLE_TOOLBAR as Ue } from "../../../utils/tableToolbar.js";
18
- import { expandableIds as W, buildTree as Oe } from "../../../utils/tree.js";
19
- import { filterTreeByParams as ze } from "../../../utils/treeFilter.js";
20
- const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { class: "copy-tip" }, ro = /* @__PURE__ */ se({
10
+ import Pe from "../../../components/OrgTreeSelect/index.vue.js";
11
+ import Ae from "../../../components/StatusSwitch/index.vue.js";
12
+ import { useConfirm as Ue } from "../../../composables/useConfirm.js";
13
+ import { useShellBreakpoint as Oe } from "../../../composables/useShellBreakpoint.js";
14
+ import { orgApi as v } from "../../../api/index.js";
15
+ import { useAuthStore as ze } from "../../../stores/auth.js";
16
+ import { translateError as J } from "../../../utils/error.js";
17
+ import { SEARCH_ACTIONS as Q, deriveHeaderFilters as Re } from "../../../utils/tableFilter.js";
18
+ import { TABLE_MIN_ROW_HEIGHT as Be, TABLE_TOOLBAR as De } from "../../../utils/tableToolbar.js";
19
+ import { flattenTree as Le, expandableIds as X, buildTree as $e } from "../../../utils/tree.js";
20
+ import { indentByDepth as qe } from "../../../utils/treeCard.js";
21
+ import { filterTreeByParams as He } from "../../../utils/treeFilter.js";
22
+ const Fe = { class: "view fill-page" }, je = { class: "form-hint" }, Me = { class: "copy-tip" }, vo = /* @__PURE__ */ me({
21
23
  __name: "index",
22
- setup(Le) {
23
- const { t: l } = _e(), C = ye(), { run: J, confirm: Q } = Se(), v = Ee(), N = s(!1), P = H([]);
24
- async function X() {
24
+ setup(Ve) {
25
+ const { t } = Ne(), C = we(), { run: Y, confirm: Z } = Ue(), y = ze(), N = s(!1), U = j([]);
26
+ async function ee() {
25
27
  N.value = !0;
26
28
  try {
27
- P.value = Oe(await f.list());
29
+ U.value = $e(await v.list());
28
30
  } catch (e) {
29
- C.error(K(e));
31
+ C.error(J(e));
30
32
  } finally {
31
33
  N.value = !1;
32
34
  }
33
35
  }
34
- const A = s(), h = () => {
36
+ const O = s(), g = () => {
35
37
  var e;
36
- return (e = A.value) == null ? void 0 : e.refresh();
37
- }, Y = {
38
+ return (e = O.value) == null ? void 0 : e.refresh();
39
+ }, oe = {
38
40
  name: (e) => e.name,
39
41
  code: (e) => e.code
40
- }, Z = async (e) => {
41
- await X();
42
- const t = ze(P.value, e, Y);
43
- return { items: t, total: t.length };
44
- }, y = s([]), U = H([]);
45
- function ee(e) {
46
- U.value = e, y.value = W(e);
42
+ }, { bp: te } = Oe(), T = M(() => te.value === "narrow"), le = async (e) => {
43
+ await ee();
44
+ const l = He(U.value, e, oe), u = T.value ? Le(l) : l;
45
+ return { items: u, total: u.length };
46
+ };
47
+ pe(T, () => g());
48
+ const h = s([]), z = j([]);
49
+ function ae(e) {
50
+ z.value = e, h.value = X(e);
47
51
  }
48
- const T = de(() => y.value.length > 0), oe = () => y.value = T.value ? [] : W(U.value), b = s(!1), O = s(null), u = s(null), le = {
52
+ const S = M(() => h.value.length > 0), re = () => h.value = S.value ? [] : X(z.value), w = s(!1), R = s(null), c = s(null), ne = {
49
53
  name: {
50
54
  required: !0,
51
55
  whitespace: !0,
52
- message: () => l("org.nameRequired"),
56
+ message: () => t("org.nameRequired"),
53
57
  trigger: ["input", "blur"]
54
58
  }
55
- }, z = () => ({
59
+ }, B = () => ({
56
60
  parentId: 0,
57
61
  name: "",
58
62
  code: "",
59
63
  category: null,
60
64
  sort: 0,
61
65
  enabled: !0
62
- }), i = ue(z()), R = (e) => ({
66
+ }), i = fe(B()), D = (e) => ({
63
67
  parentId: e.parentId,
64
68
  name: e.name,
65
69
  code: e.code,
@@ -67,42 +71,42 @@ const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { clas
67
71
  sort: e.sort,
68
72
  enabled: e.enabled
69
73
  });
70
- function B(e = 0) {
71
- u.value = null, Object.assign(i, z(), { parentId: e }), b.value = !0;
74
+ function L(e = 0) {
75
+ c.value = null, Object.assign(i, B(), { parentId: e }), w.value = !0;
72
76
  }
73
- function te(e) {
74
- u.value = e.id, Object.assign(i, R(e)), b.value = !0;
77
+ function ie(e) {
78
+ c.value = e.id, Object.assign(i, D(e)), w.value = !0;
75
79
  }
76
- async function ae() {
80
+ async function se() {
77
81
  var e;
78
- await ((e = O.value) == null ? void 0 : e.validate());
82
+ await ((e = R.value) == null ? void 0 : e.validate());
79
83
  try {
80
- const t = { ...i, parentId: i.parentId ?? 0 };
81
- u.value === null ? await f.add(t) : await f.update(u.value, t), C.success(l("org.saved")), await h();
82
- } catch (t) {
83
- return C.error(K(t)), !1;
84
+ const l = { ...i, parentId: i.parentId ?? 0 };
85
+ c.value === null ? await v.add(l) : await v.update(c.value, l), C.success(t("org.saved")), await g();
86
+ } catch (l) {
87
+ return C.error(J(l)), !1;
84
88
  }
85
89
  }
86
- const g = s(!1), D = s(0), L = s(""), w = s("");
87
- function re(e) {
88
- D.value = e.id, L.value = e.name, w.value = e.name + l("common.copySuffix"), g.value = !0;
90
+ const b = s(!1), $ = s(0), q = s(""), k = s("");
91
+ function de(e) {
92
+ $.value = e.id, q.value = e.name, k.value = e.name + t("common.copySuffix"), b.value = !0;
89
93
  }
90
- async function ne() {
91
- await J(() => f.copy(D.value, { name: w.value }), l("org.copied")) && (g.value = !1, h());
94
+ async function ce() {
95
+ await Y(() => v.copy($.value, { name: k.value }), t("org.copied")) && (b.value = !1, g());
92
96
  }
93
- const ie = (e) => Q({
94
- content: l("org.deleteConfirm", { name: e.name }),
97
+ const ue = (e) => Z({
98
+ content: t("org.deleteConfirm", { name: e.name }),
95
99
  type: "error",
96
- action: () => f.remove(e.id),
97
- successMsg: l("org.deleted")
98
- }).then((t) => {
99
- t && h();
100
- }), S = (e) => () => d(I, { icon: e, size: 16 }), $ = [
100
+ action: () => v.remove(e.id),
101
+ successMsg: t("org.deleted")
102
+ }).then((l) => {
103
+ l && g();
104
+ }), E = (e) => () => d(I, { icon: e, size: 16 }), H = [
101
105
  // 序号与树列同固定左侧:固定列必须在最左连续,否则横向滚动时树列会压在序号列上。
102
- { type: "index", title: () => l("common.rowNo"), width: 64, align: "center", fixed: "left" },
106
+ { type: "index", title: () => t("common.rowNo"), width: 64, align: "center", fixed: "left" },
103
107
  // 树列左对齐,展开缩进才好读;fixed 是为了横向滚动时不丢失「这是哪一行」。
104
108
  {
105
- title: () => l("org.name"),
109
+ title: () => t("org.name"),
106
110
  key: "name",
107
111
  // 树的缩进和展开箭头落在这一列:不指定时 Naive 取第一个没有 type 的列,正好是 64px 宽的序号列,
108
112
  // 层级一深序号就被缩进挤出列外
@@ -111,80 +115,81 @@ const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { clas
111
115
  width: 260,
112
116
  fixed: "left",
113
117
  ellipsis: { tooltip: !0 },
114
- search: { actions: G.fuzzy }
118
+ render: (e) => qe(e, e.name),
119
+ search: { actions: Q.fuzzy }
115
120
  },
116
121
  {
117
- title: () => l("org.code"),
122
+ title: () => t("org.code"),
118
123
  key: "code",
119
124
  ellipsis: { tooltip: !0 },
120
125
  render: (e) => d("span", { class: "mono muted" }, e.code),
121
- search: { actions: G.fuzzy }
126
+ search: { actions: Q.fuzzy }
122
127
  },
123
128
  {
124
- title: () => l("org.category"),
129
+ title: () => t("org.category"),
125
130
  key: "category",
126
131
  width: 100,
127
- render: (e) => d(Ie, { typeCode: "org_category", value: e.category })
132
+ render: (e) => d(Se, { typeCode: "org_category", value: e.category })
128
133
  },
129
134
  {
130
- title: () => l("org.sort"),
135
+ title: () => t("org.sort"),
131
136
  key: "sort",
132
137
  width: 80,
133
138
  render: (e) => d("span", { class: "num muted" }, e.sort)
134
139
  },
135
140
  {
136
- title: () => l("common.status"),
141
+ title: () => t("common.status"),
137
142
  key: "enabled",
138
143
  width: 90,
139
- render: (e) => d(Te, {
144
+ render: (e) => d(Ae, {
140
145
  value: e.enabled,
141
- disabled: !v.hasPerm("PUT:/api/v1/sys/org/{id}"),
142
- request: (t) => f.update(e.id, { ...R(e), enabled: t }),
146
+ disabled: !y.hasPerm("PUT:/api/v1/sys/org/{id}"),
147
+ request: (l) => v.update(e.id, { ...D(e), enabled: l }),
143
148
  // 重拉而非往行对象上写:搜索态下的祖先行是 filterTree 的浅拷贝,写它不会回到源树(开关会弹回去)。
144
149
  // StatusSwitch 是悲观更新(请求成功才 emit),所以这里重拉一次就是最终态,和本页其余变更的做法一致。
145
- "onUpdate:value": () => h()
150
+ "onUpdate:value": () => g()
146
151
  })
147
152
  },
148
153
  // 操作收敛成「编辑 + 更多▾」:4 个操作塞 260px 会换行、行高参差,且没 fixed 时横向滚动够不着。
149
154
  {
150
- title: () => l("common.operation"),
155
+ title: () => t("common.operation"),
151
156
  key: "op",
152
157
  width: 150,
153
158
  fixed: "right",
154
159
  render: (e) => {
155
- const t = v.hasPerm("POST:/api/v1/sys/org/add"), k = v.hasPerm("POST:/api/v1/sys/org/{id}/copy"), r = v.hasPerm("DELETE:/api/v1/sys/org/{id}"), q = [
156
- t ? { key: "addChild", label: l("org.addChild"), icon: S("ph:plus") } : null,
157
- k ? { key: "copy", label: l("org.copy"), icon: S("ph:copy") } : null,
158
- (t || k) && r ? { type: "divider", key: "divider" } : null,
159
- r ? {
160
+ const l = y.hasPerm("POST:/api/v1/sys/org/add"), u = y.hasPerm("POST:/api/v1/sys/org/{id}/copy"), a = y.hasPerm("DELETE:/api/v1/sys/org/{id}"), F = [
161
+ l ? { key: "addChild", label: t("org.addChild"), icon: E("ph:plus") } : null,
162
+ u ? { key: "copy", label: t("org.copy"), icon: E("ph:copy") } : null,
163
+ (l || u) && a ? { type: "divider", key: "divider" } : null,
164
+ a ? {
160
165
  key: "delete",
161
- label: l("common.delete"),
162
- icon: S("ph:trash"),
166
+ label: t("common.delete"),
167
+ icon: E("ph:trash"),
163
168
  props: { style: "color: var(--err)" }
164
169
  } : null
165
170
  ].filter(
166
171
  (_) => _ !== null
167
172
  );
168
- return d(M, { size: 2, wrapItem: !1, justify: "center" }, () => [
169
- v.hasPerm("PUT:/api/v1/sys/org/{id}") ? d(
170
- p,
171
- { size: "small", quaternary: !0, type: "primary", onClick: () => te(e) },
172
- () => l("common.edit")
173
+ return d(G, { size: 2, wrapItem: !1, justify: "center" }, () => [
174
+ y.hasPerm("PUT:/api/v1/sys/org/{id}") ? d(
175
+ f,
176
+ { size: "small", quaternary: !0, type: "primary", onClick: () => ie(e) },
177
+ () => t("common.edit")
173
178
  ) : null,
174
- q.length ? d(
175
- ge,
179
+ F.length ? d(
180
+ ke,
176
181
  {
177
182
  trigger: "click",
178
- options: q,
183
+ options: F,
179
184
  onSelect: (_) => {
180
- _ === "addChild" ? B(e.id) : _ === "copy" ? re(e) : ie(e);
185
+ _ === "addChild" ? L(e.id) : _ === "copy" ? de(e) : ue(e);
181
186
  }
182
187
  },
183
188
  () => d(
184
- p,
189
+ f,
185
190
  { size: "small", quaternary: !0, type: "primary", iconPlacement: "right" },
186
191
  {
187
- default: () => l("common.more"),
192
+ default: () => t("common.more"),
188
193
  icon: () => d(I, { icon: "ph:caret-down", size: 12 })
189
194
  }
190
195
  )
@@ -193,163 +198,164 @@ const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { clas
193
198
  }
194
199
  }
195
200
  ];
196
- return Pe($), (e, t) => {
197
- const k = ce("auth");
198
- return F(), me("div", Re, [
199
- a(o(ke), {
201
+ return Re(H), (e, l) => {
202
+ const u = ve("auth");
203
+ return P(), ye("div", Fe, [
204
+ r(o(Ce), {
200
205
  ref_key: "tableRef",
201
- ref: A,
202
- columns: $,
203
- fetcher: Z,
206
+ ref: O,
207
+ columns: H,
208
+ fetcher: le,
204
209
  loading: N.value,
205
210
  "row-key": "id",
206
211
  pagination: !1,
207
212
  search: { container: "table" },
208
- toolbar: o(Ue),
213
+ toolbar: o(De),
209
214
  "fill-height": "",
210
- "min-row-height": o(Ae),
215
+ "min-row-height": o(Be),
211
216
  "card-on-narrow": "",
212
217
  "storage-key": "sys-org",
213
- "expanded-row-keys": y.value,
214
- "onUpdate:expandedRowKeys": t[1] || (t[1] = (r) => y.value = r),
215
- onLoaded: ee
218
+ "expanded-row-keys": h.value,
219
+ "onUpdate:expandedRowKeys": l[1] || (l[1] = (a) => h.value = a),
220
+ onLoaded: ae
216
221
  }, {
217
222
  "toolbar-right": n(() => [
218
- a(o(p), {
223
+ T.value ? ge("", !0) : (P(), V(o(f), {
224
+ key: 0,
219
225
  secondary: "",
220
- onClick: oe
226
+ onClick: re
221
227
  }, {
222
228
  icon: n(() => [
223
- a(I, {
224
- icon: T.value ? "ph:arrows-in-line-vertical" : "ph:arrows-out-line-vertical",
229
+ r(I, {
230
+ icon: S.value ? "ph:arrows-in-line-vertical" : "ph:arrows-out-line-vertical",
225
231
  size: 16
226
232
  }, null, 8, ["icon"])
227
233
  ]),
228
234
  default: n(() => [
229
- x(" " + m(T.value ? o(l)("common.collapseAll") : o(l)("common.expandAll")), 1)
235
+ x(" " + p(S.value ? o(t)("common.collapseAll") : o(t)("common.expandAll")), 1)
230
236
  ]),
231
237
  _: 1
232
- }),
233
- pe((F(), fe(o(p), {
238
+ })),
239
+ he((P(), V(o(f), {
234
240
  type: "primary",
235
- onClick: t[0] || (t[0] = (r) => B(0))
241
+ onClick: l[0] || (l[0] = (a) => L(0))
236
242
  }, {
237
243
  icon: n(() => [
238
- a(I, {
244
+ r(I, {
239
245
  icon: "ph:plus",
240
246
  size: 16
241
247
  })
242
248
  ]),
243
249
  default: n(() => [
244
- x(" " + m(o(l)("common.add")), 1)
250
+ x(" " + p(o(t)("common.add")), 1)
245
251
  ]),
246
252
  _: 1
247
253
  })), [
248
- [k, "POST:/api/v1/sys/org/add"]
254
+ [u, "POST:/api/v1/sys/org/add"]
249
255
  ])
250
256
  ]),
251
257
  _: 1
252
258
  }, 8, ["loading", "toolbar", "min-row-height", "expanded-row-keys"]),
253
- a(Ce, {
254
- show: b.value,
255
- "onUpdate:show": t[8] || (t[8] = (r) => b.value = r),
256
- title: u.value === null ? o(l)("org.addTitle") : o(l)("org.editTitle"),
259
+ r(Ee, {
260
+ show: w.value,
261
+ "onUpdate:show": l[8] || (l[8] = (a) => w.value = a),
262
+ title: c.value === null ? o(t)("org.addTitle") : o(t)("org.editTitle"),
257
263
  width: 480,
258
- "on-confirm": ae,
259
- "confirm-text": o(l)("common.save")
264
+ "on-confirm": se,
265
+ "confirm-text": o(t)("common.save")
260
266
  }, {
261
267
  default: n(() => [
262
- a(o(V), {
268
+ r(o(W), {
263
269
  ref_key: "formRef",
264
- ref: O,
270
+ ref: R,
265
271
  model: i,
266
- rules: le,
272
+ rules: ne,
267
273
  "label-placement": "left",
268
274
  "label-width": 80
269
275
  }, {
270
276
  default: n(() => [
271
- a(o(c), {
272
- label: o(l)("org.parent")
277
+ r(o(m), {
278
+ label: o(t)("org.parent")
273
279
  }, {
274
280
  default: n(() => [
275
- a(Ne, {
281
+ r(Pe, {
276
282
  value: i.parentId,
277
- "onUpdate:value": t[2] || (t[2] = (r) => i.parentId = r),
283
+ "onUpdate:value": l[2] || (l[2] = (a) => i.parentId = a),
278
284
  clearable: "",
279
- "exclude-subtree-of": u.value,
280
- placeholder: o(l)("org.parentPlaceholder")
285
+ "exclude-subtree-of": c.value,
286
+ placeholder: o(t)("org.parentPlaceholder")
281
287
  }, null, 8, ["value", "exclude-subtree-of", "placeholder"])
282
288
  ]),
283
289
  _: 1
284
290
  }, 8, ["label"]),
285
- a(o(c), {
286
- label: o(l)("org.name"),
291
+ r(o(m), {
292
+ label: o(t)("org.name"),
287
293
  path: "name"
288
294
  }, {
289
295
  default: n(() => [
290
- a(o(E), {
296
+ r(o(A), {
291
297
  value: i.name,
292
- "onUpdate:value": t[3] || (t[3] = (r) => i.name = r),
293
- placeholder: o(l)("org.name")
298
+ "onUpdate:value": l[3] || (l[3] = (a) => i.name = a),
299
+ placeholder: o(t)("org.name")
294
300
  }, null, 8, ["value", "placeholder"])
295
301
  ]),
296
302
  _: 1
297
303
  }, 8, ["label"]),
298
- a(o(c), {
299
- label: o(l)("org.code")
300
- }, ve({
304
+ r(o(m), {
305
+ label: o(t)("org.code")
306
+ }, be({
301
307
  default: n(() => [
302
- a(o(E), {
308
+ r(o(A), {
303
309
  value: i.code,
304
- "onUpdate:value": t[4] || (t[4] = (r) => i.code = r),
305
- placeholder: o(l)("org.codePlaceholder"),
306
- disabled: u.value !== null
310
+ "onUpdate:value": l[4] || (l[4] = (a) => i.code = a),
311
+ placeholder: o(t)("org.codePlaceholder"),
312
+ disabled: c.value !== null
307
313
  }, null, 8, ["value", "placeholder", "disabled"])
308
314
  ]),
309
315
  _: 2
310
316
  }, [
311
- u.value !== null ? {
317
+ c.value !== null ? {
312
318
  name: "feedback",
313
319
  fn: n(() => [
314
- j("span", Be, m(o(l)("org.codeImmutableHint")), 1)
320
+ K("span", je, p(o(t)("org.codeImmutableHint")), 1)
315
321
  ]),
316
322
  key: "0"
317
323
  } : void 0
318
324
  ]), 1032, ["label"]),
319
- a(o(c), {
320
- label: o(l)("org.category")
325
+ r(o(m), {
326
+ label: o(t)("org.category")
321
327
  }, {
322
328
  default: n(() => [
323
- a(xe, {
329
+ r(Te, {
324
330
  value: i.category,
325
- "onUpdate:value": t[5] || (t[5] = (r) => i.category = r),
331
+ "onUpdate:value": l[5] || (l[5] = (a) => i.category = a),
326
332
  "type-code": "org_category",
327
333
  clearable: "",
328
- placeholder: o(l)("org.categoryPlaceholder")
334
+ placeholder: o(t)("org.categoryPlaceholder")
329
335
  }, null, 8, ["value", "placeholder"])
330
336
  ]),
331
337
  _: 1
332
338
  }, 8, ["label"]),
333
- a(o(c), {
334
- label: o(l)("org.sort")
339
+ r(o(m), {
340
+ label: o(t)("org.sort")
335
341
  }, {
336
342
  default: n(() => [
337
- a(o(he), {
343
+ r(o(_e), {
338
344
  value: i.sort,
339
- "onUpdate:value": t[6] || (t[6] = (r) => i.sort = r),
345
+ "onUpdate:value": l[6] || (l[6] = (a) => i.sort = a),
340
346
  min: 0,
341
347
  style: { width: "160px" }
342
348
  }, null, 8, ["value"])
343
349
  ]),
344
350
  _: 1
345
351
  }, 8, ["label"]),
346
- a(o(c), {
347
- label: o(l)("common.status")
352
+ r(o(m), {
353
+ label: o(t)("common.status")
348
354
  }, {
349
355
  default: n(() => [
350
- a(o(be), {
356
+ r(o(xe), {
351
357
  value: i.enabled,
352
- "onUpdate:value": t[7] || (t[7] = (r) => i.enabled = r)
358
+ "onUpdate:value": l[7] || (l[7] = (a) => i.enabled = a)
353
359
  }, null, 8, ["value"])
354
360
  ]),
355
361
  _: 1
@@ -360,34 +366,34 @@ const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { clas
360
366
  ]),
361
367
  _: 1
362
368
  }, 8, ["show", "title", "confirm-text"]),
363
- a(o(we), {
364
- show: g.value,
365
- "onUpdate:show": t[11] || (t[11] = (r) => g.value = r),
369
+ r(o(Ie), {
370
+ show: b.value,
371
+ "onUpdate:show": l[11] || (l[11] = (a) => b.value = a),
366
372
  preset: "card",
367
- title: o(l)("org.copyTitle"),
373
+ title: o(t)("org.copyTitle"),
368
374
  style: { width: "min(420px, calc(100vw - 24px))" },
369
375
  bordered: !1,
370
376
  "mask-closable": !1,
371
377
  segmented: { footer: "soft" }
372
378
  }, {
373
379
  footer: n(() => [
374
- a(o(M), { justify: "end" }, {
380
+ r(o(G), { justify: "end" }, {
375
381
  default: n(() => [
376
- a(o(p), {
382
+ r(o(f), {
377
383
  secondary: "",
378
- onClick: t[10] || (t[10] = (r) => g.value = !1)
384
+ onClick: l[10] || (l[10] = (a) => b.value = !1)
379
385
  }, {
380
386
  default: n(() => [
381
- x(m(o(l)("common.cancel")), 1)
387
+ x(p(o(t)("common.cancel")), 1)
382
388
  ]),
383
389
  _: 1
384
390
  }),
385
- a(o(p), {
391
+ r(o(f), {
386
392
  type: "primary",
387
- onClick: ne
393
+ onClick: ce
388
394
  }, {
389
395
  default: n(() => [
390
- x(m(o(l)("common.confirm")), 1)
396
+ x(p(o(t)("common.confirm")), 1)
391
397
  ]),
392
398
  _: 1
393
399
  })
@@ -396,20 +402,20 @@ const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { clas
396
402
  })
397
403
  ]),
398
404
  default: n(() => [
399
- j("p", De, m(o(l)("org.copyConfirm", { name: L.value })), 1),
400
- a(o(V), {
405
+ K("p", Me, p(o(t)("org.copyConfirm", { name: q.value })), 1),
406
+ r(o(W), {
401
407
  "label-placement": "top",
402
408
  "require-mark-placement": "left"
403
409
  }, {
404
410
  default: n(() => [
405
- a(o(c), {
406
- label: o(l)("org.copyNameLabel")
411
+ r(o(m), {
412
+ label: o(t)("org.copyNameLabel")
407
413
  }, {
408
414
  default: n(() => [
409
- a(o(E), {
410
- value: w.value,
411
- "onUpdate:value": t[9] || (t[9] = (r) => w.value = r),
412
- placeholder: o(l)("org.copyNameLabel")
415
+ r(o(A), {
416
+ value: k.value,
417
+ "onUpdate:value": l[9] || (l[9] = (a) => k.value = a),
418
+ placeholder: o(t)("org.copyNameLabel")
413
419
  }, null, 8, ["value", "placeholder"])
414
420
  ]),
415
421
  _: 1
@@ -425,6 +431,6 @@ const Re = { class: "view fill-page" }, Be = { class: "form-hint" }, De = { clas
425
431
  }
426
432
  });
427
433
  export {
428
- ro as default
434
+ vo as default
429
435
  };
430
436
  //# sourceMappingURL=index2.vue.js.map