yh-pub 2.0.2 → 2.0.7

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 (57) hide show
  1. package/{AdminLogin-W5d0M-rz.js → AdminLogin-BQ1XLQaD.js} +83 -72
  2. package/AdminLogin-BQ1XLQaD.js.map +1 -0
  3. package/{Error-BZ9xAkuT.js → Error-mAhb4JTd.js} +2 -2
  4. package/{Error-BZ9xAkuT.js.map → Error-mAhb4JTd.js.map} +1 -1
  5. package/Error401-B7NlVttM.js +31 -0
  6. package/Error401-B7NlVttM.js.map +1 -0
  7. package/Error404-Ba9ueMHc.js +31 -0
  8. package/Error404-Ba9ueMHc.js.map +1 -0
  9. package/Error500-DYjNCZNu.js +31 -0
  10. package/Error500-DYjNCZNu.js.map +1 -0
  11. package/{HomeIndex-DnGu5xD0.js → HomeIndex-BO9gew40.js} +172 -172
  12. package/HomeIndex-BO9gew40.js.map +1 -0
  13. package/{IconExplorer-IvNeUIhq.js → IconExplorer-CAqKbvQ1.js} +25 -25
  14. package/IconExplorer-CAqKbvQ1.js.map +1 -0
  15. package/Index-fSvx8Wih.js +5 -0
  16. package/Index-fSvx8Wih.js.map +1 -0
  17. package/{MainLogin-CgJLift-.js → MainLogin-D2XRuJDW.js} +92 -84
  18. package/MainLogin-D2XRuJDW.js.map +1 -0
  19. package/MenuManage-BPvVvMzw.js +626 -0
  20. package/MenuManage-BPvVvMzw.js.map +1 -0
  21. package/OrgManage-DM43rEPk.js +380 -0
  22. package/OrgManage-DM43rEPk.js.map +1 -0
  23. package/RoleManage-AqGTGljA.js +738 -0
  24. package/RoleManage-AqGTGljA.js.map +1 -0
  25. package/SysConfig-v9nYZf4a.js +733 -0
  26. package/SysConfig-v9nYZf4a.js.map +1 -0
  27. package/TenantList-PeEEKz0o.js +705 -0
  28. package/TenantList-PeEEKz0o.js.map +1 -0
  29. package/{index-C75ufNln.js → index-kZF68V9S.js} +9766 -9641
  30. package/index-kZF68V9S.js.map +1 -0
  31. package/index.es.js +51 -47
  32. package/package.json +1 -1
  33. package/style.css +1 -1
  34. package/AdminLogin-W5d0M-rz.js.map +0 -1
  35. package/Error401-DrA7Y9h3.js +0 -30
  36. package/Error401-DrA7Y9h3.js.map +0 -1
  37. package/Error404-C5K4o1R3.js +0 -30
  38. package/Error404-C5K4o1R3.js.map +0 -1
  39. package/Error500-D9nu1xhW.js +0 -30
  40. package/Error500-D9nu1xhW.js.map +0 -1
  41. package/HomeIndex-DnGu5xD0.js.map +0 -1
  42. package/IconExplorer-IvNeUIhq.js.map +0 -1
  43. package/Index-BMd4lEnI.js +0 -5
  44. package/Index-BMd4lEnI.js.map +0 -1
  45. package/MainLogin-CgJLift-.js.map +0 -1
  46. package/MenuManage-BJkQPgpt.js +0 -640
  47. package/MenuManage-BJkQPgpt.js.map +0 -1
  48. package/OrgManage-jLpAnwf4.js +0 -378
  49. package/OrgManage-jLpAnwf4.js.map +0 -1
  50. package/RoleManage-D2RwwJoM.js +0 -729
  51. package/RoleManage-D2RwwJoM.js.map +0 -1
  52. package/SysConfig-CYcl0wCh.js +0 -727
  53. package/SysConfig-CYcl0wCh.js.map +0 -1
  54. package/TenantList-CNVwmoEt.js +0 -693
  55. package/TenantList-CNVwmoEt.js.map +0 -1
  56. package/index-C75ufNln.js.map +0 -1
  57. package/index.d.ts +0 -35
@@ -0,0 +1,733 @@
1
+ import { defineComponent as oe, ref as h, watch as ne, resolveComponent as c, openBlock as f, createElementBlock as L, withModifiers as I, normalizeClass as Ve, createElementVNode as N, toDisplayString as d, unref as s, createVNode as a, createCommentVNode as se, reactive as G, computed as X, onMounted as ke, onUnmounted as we, resolveDirective as Ce, Fragment as te, withCtx as n, withKeys as ae, createTextVNode as p, withDirectives as he, createBlock as k, normalizeStyle as Ne } from "vue";
2
+ import { ElMessage as D } from "element-plus";
3
+ import { c as t, _ as Ee } from "./index-kZF68V9S.js";
4
+ import { httpRequest as j } from "yh-client";
5
+ const Ue = { class: "preview-area" }, Oe = ["src"], De = {
6
+ key: 1,
7
+ class: "upload-prompt"
8
+ }, Ie = { class: "overlay-layer" }, Le = /* @__PURE__ */ oe({
9
+ __name: "ImageBase64Choose",
10
+ props: {
11
+ modelValue: String
12
+ },
13
+ emits: ["update:modelValue"],
14
+ setup(H, { emit: M }) {
15
+ const x = H, S = M, i = h(x.modelValue || ""), g = h(!1), B = h(null), w = (b) => {
16
+ if (!b.type.startsWith("image/")) {
17
+ alert(t("请选择图片文件"));
18
+ return;
19
+ }
20
+ const e = new FileReader();
21
+ e.onload = (U) => {
22
+ var R;
23
+ const A = (R = U.target) == null ? void 0 : R.result;
24
+ i.value = A, S("update:modelValue", A);
25
+ }, e.readAsDataURL(b);
26
+ }, F = () => {
27
+ g.value = !0;
28
+ }, P = () => {
29
+ g.value = !1;
30
+ }, C = (b) => {
31
+ var U;
32
+ g.value = !1;
33
+ const e = (U = b.dataTransfer) == null ? void 0 : U.files;
34
+ e && e[0] && w(e[0]);
35
+ }, E = (b) => {
36
+ const e = b.target;
37
+ e.files && e.files[0] && (w(e.files[0]), e.value = "");
38
+ }, Y = () => {
39
+ i.value = "", S("update:modelValue", "");
40
+ };
41
+ return ne(
42
+ () => x.modelValue,
43
+ (b) => {
44
+ i.value = b || "";
45
+ }
46
+ ), (b, e) => {
47
+ const U = c("YhIcon");
48
+ return f(), L("div", {
49
+ class: Ve(["image-base64-choose", { dragover: g.value }]),
50
+ onDragover: I(F, ["prevent"]),
51
+ onDragleave: P,
52
+ onDrop: I(C, ["prevent"])
53
+ }, [
54
+ N("div", Ue, [
55
+ i.value ? (f(), L("img", {
56
+ key: 0,
57
+ src: i.value,
58
+ alt: "Preview"
59
+ }, null, 8, Oe)) : (f(), L("div", De, [
60
+ N("span", null, d(s(t)("点击或拖拽图片到此区域")), 1)
61
+ ]))
62
+ ]),
63
+ N("div", Ie, [
64
+ N("input", {
65
+ type: "file",
66
+ accept: "image/*",
67
+ onChange: E,
68
+ ref_key: "fileInput",
69
+ ref: B
70
+ }, null, 544)
71
+ ]),
72
+ i.value ? (f(), L("div", {
73
+ key: 0,
74
+ class: "delete-btn",
75
+ onClick: Y
76
+ }, [
77
+ a(U, { name: "close" })
78
+ ])) : se("", !0)
79
+ ], 34);
80
+ };
81
+ }
82
+ }), xe = /* @__PURE__ */ Ee(Le, [["__scopeId", "data-v-54df4835"]]), Se = { class: "sys-config-list-container" }, Te = { class: "sys-config-list-actions" }, Ae = { class: "sys-config-list-conditions" }, Re = { class: "sys-config-form-actions" }, Fe = /* @__PURE__ */ oe({
83
+ __name: "SysConfig",
84
+ setup(H) {
85
+ const M = h(), x = h(), S = h(!1), i = G({
86
+ name: "",
87
+ code: "",
88
+ pageNum: 1,
89
+ pageSize: 10,
90
+ total: 0
91
+ }), g = h([]), B = (r, l) => r.active === "N" ? "disabled-row" : "";
92
+ function w(r = !1) {
93
+ let { name: l, code: m, pageNum: u, pageSize: v } = i;
94
+ r && (u = 1), S.value = !0, j.request({
95
+ url: "/parameter/list",
96
+ method: "POST",
97
+ type: "json",
98
+ data: {
99
+ name: l,
100
+ code: m,
101
+ pageNum: u,
102
+ pageSize: v
103
+ }
104
+ }).then((y) => {
105
+ var z;
106
+ const _ = y.data.data;
107
+ g.value = _.records || [], i.total = _.total ?? ((z = _.records) == null ? void 0 : z.length) ?? 0;
108
+ }).catch((y) => {
109
+ console.error("获取配置列表失败:", y), D.error(t("获取配置列表失败,请稍后重试"));
110
+ }).finally(() => {
111
+ S.value = !1;
112
+ });
113
+ }
114
+ ne(
115
+ () => [i.pageNum, i.pageSize],
116
+ () => {
117
+ w();
118
+ }
119
+ );
120
+ function F(r) {
121
+ var l;
122
+ (l = M.value) == null || l.toggleRowSelection(r);
123
+ }
124
+ function P() {
125
+ i.code = "", i.name = "", i.pageNum = 1, i.total = 0, w();
126
+ }
127
+ const C = h(), E = h(!1), Y = X(() => C.value >= g.value.length - 1), b = X(() => C.value <= 0), e = G({
128
+ id: void 0,
129
+ code: "",
130
+ name: "",
131
+ type: "TEXT",
132
+ active: "Y",
133
+ value: "",
134
+ description: ""
135
+ }), U = G({
136
+ code: [{ required: !0, type: "string", message: t("请输入编码") }],
137
+ name: [{ required: !0, type: "string", message: t("请输入名称") }],
138
+ type: [{ required: !0, type: "string", message: t("请选择类型") }],
139
+ active: [{ required: !0, type: "string", message: t("请选择是否可用") }],
140
+ value: [{ required: !0, type: "string", message: t("请输入参数配置内容") }]
141
+ }), A = X({
142
+ get: () => e.value === "Y",
143
+ set: (r) => {
144
+ e.value = r ? "Y" : "N";
145
+ }
146
+ }), R = [
147
+ { value: "logoUrl", label: "logoUrl - Logo图片路径" },
148
+ { value: "miniLogoUrl", label: "miniLogoUrl - 迷你Logo路径" },
149
+ { value: "loginBg", label: "loginBg - 登录背景图" },
150
+ { value: "moduleFilter", label: "moduleFilter - 模块筛选开关" },
151
+ { value: "homePath", label: "homePath - 首页路径" },
152
+ { value: "ADMIN_MENU_CONFIG_KEY", label: "ADMIN_MENU_CONFIG_KEY - 菜单配置" }
153
+ ], re = (r, l) => {
154
+ const m = r ? R.filter(
155
+ (u) => u.value.toLowerCase().includes(r.toLowerCase())
156
+ ) : R;
157
+ l(m);
158
+ };
159
+ function q() {
160
+ var r;
161
+ (r = x.value) == null || r.resetFields(), C.value = 0, e.id = void 0, E.value = !1;
162
+ }
163
+ function ie() {
164
+ e.id = void 0, e.code = "", e.name = "", e.type = "TEXT", e.active = "Y", e.value = "", e.description = "", E.value = !0;
165
+ }
166
+ function W() {
167
+ if (!b.value) {
168
+ let r = C.value - 1, l = g.value[r];
169
+ $(l, r);
170
+ }
171
+ }
172
+ function $(r, l) {
173
+ C.value = l, e.id = r.id, e.code = r.code, e.name = r.name, e.type = r.type || "TEXT", e.active = r.active, e.value = r.value, e.description = r.description, E.value = !0;
174
+ }
175
+ function K() {
176
+ if (!Y.value) {
177
+ let r = C.value + 1, l = g.value[r];
178
+ $(l, r);
179
+ }
180
+ }
181
+ function J() {
182
+ var m;
183
+ let r = !e.id, l = "parameter/save";
184
+ (m = x.value) == null || m.validate().then((u) => {
185
+ if (!u) {
186
+ let v = {
187
+ ...e
188
+ };
189
+ r && (v.id = void 0), j.request({
190
+ url: l,
191
+ method: "POST",
192
+ type: "json",
193
+ data: v
194
+ }).then((y) => {
195
+ const _ = y.data;
196
+ _.status === 200 ? (D.success(_.msg), r ? q() : (g.value[C.value] = {
197
+ ...e
198
+ }, K())) : D.error(_.msg);
199
+ }).catch((y) => {
200
+ console.error("保存配置失败:", y), D.error(t("保存失败,请稍后重试"));
201
+ });
202
+ }
203
+ });
204
+ }
205
+ function Q(r, l, m) {
206
+ j.request({
207
+ url: "/parameter/save",
208
+ method: "POST",
209
+ type: "json",
210
+ data: { id: r, active: m }
211
+ }).then((u) => {
212
+ const v = u.data;
213
+ if (v.status === 200) {
214
+ const y = m === "Y" ? t("启用成功") : t("禁用成功");
215
+ D.success(y), g.value[l].active = m;
216
+ } else
217
+ D.error(v.msg);
218
+ }).catch((u) => {
219
+ console.error("更新状态失败:", u), D.error(t("操作失败,请稍后重试"));
220
+ });
221
+ }
222
+ const Z = (r) => {
223
+ const { key: l, ctrlKey: m, altKey: u } = r;
224
+ E.value && (l === "s" && m && (r.preventDefault(), r.stopPropagation(), J()), l === "ArrowRight" && u && (r.preventDefault(), r.stopPropagation(), K()), l === "ArrowLeft" && u && (r.preventDefault(), r.stopPropagation(), W()));
225
+ };
226
+ return ke(() => {
227
+ w(), window.addEventListener("keydown", Z);
228
+ }), we(() => {
229
+ window.removeEventListener("keydown", Z);
230
+ }), (r, l) => {
231
+ const m = c("el-input"), u = c("el-form-item"), v = c("el-button"), y = c("el-form"), _ = c("el-table-column"), z = c("el-image"), ue = c("el-tag"), de = c("el-table"), pe = c("el-pagination"), T = c("el-col"), ce = c("el-autocomplete"), O = c("el-radio"), ee = c("el-radio-group"), me = c("el-input-number"), ve = c("el-color-picker"), fe = c("el-date-picker"), _e = c("el-switch"), ge = c("el-row"), be = c("el-dialog"), ye = Ce("loading");
232
+ return f(), L(te, null, [
233
+ N("div", Se, [
234
+ N("div", Te, [
235
+ N("div", Ae, [
236
+ a(y, { inline: "" }, {
237
+ default: n(() => [
238
+ a(u, {
239
+ label: s(t)("名称")
240
+ }, {
241
+ default: n(() => [
242
+ a(m, {
243
+ modelValue: i.name,
244
+ "onUpdate:modelValue": l[0] || (l[0] = (o) => i.name = o),
245
+ onKeyup: l[1] || (l[1] = ae(I((o) => w(!0), ["stop", "prevent"]), ["enter"])),
246
+ placeholder: s(t)("键入以筛选名称")
247
+ }, null, 8, ["modelValue", "placeholder"])
248
+ ]),
249
+ _: 1
250
+ }, 8, ["label"]),
251
+ a(u, {
252
+ label: s(t)("编码")
253
+ }, {
254
+ default: n(() => [
255
+ a(m, {
256
+ modelValue: i.code,
257
+ "onUpdate:modelValue": l[2] || (l[2] = (o) => i.code = o),
258
+ onKeyup: l[3] || (l[3] = ae(I((o) => w(!0), ["stop", "prevent"]), ["enter"])),
259
+ placeholder: s(t)("键入以筛选编码")
260
+ }, null, 8, ["modelValue", "placeholder"])
261
+ ]),
262
+ _: 1
263
+ }, 8, ["label"]),
264
+ a(u, null, {
265
+ default: n(() => [
266
+ a(v, { onClick: P }, {
267
+ default: n(() => [
268
+ p(d(s(t)("重置")), 1)
269
+ ]),
270
+ _: 1
271
+ }),
272
+ a(v, {
273
+ type: "primary",
274
+ onClick: w
275
+ }, {
276
+ default: n(() => [
277
+ p(d(s(t)("搜索")), 1)
278
+ ]),
279
+ _: 1
280
+ })
281
+ ]),
282
+ _: 1
283
+ })
284
+ ]),
285
+ _: 1
286
+ })
287
+ ]),
288
+ a(v, {
289
+ type: "primary",
290
+ onClick: ie
291
+ }, {
292
+ default: n(() => [
293
+ l[20] || (l[20] = N("i", { class: "iconfont icon-add" }, null, -1)),
294
+ p(" " + d(s(t)("新增")), 1)
295
+ ]),
296
+ _: 1
297
+ })
298
+ ]),
299
+ he((f(), k(de, {
300
+ ref_key: "tableRef",
301
+ ref: M,
302
+ data: g.value,
303
+ "row-key": "code",
304
+ "row-class-name": B,
305
+ onRowClick: F
306
+ }, {
307
+ default: n(() => [
308
+ a(_, {
309
+ type: "selection",
310
+ width: "50",
311
+ align: "center"
312
+ }),
313
+ a(_, {
314
+ type: "index",
315
+ label: "#",
316
+ width: "60",
317
+ align: "center"
318
+ }),
319
+ a(_, {
320
+ label: s(t)("名称"),
321
+ prop: "name",
322
+ "min-width": "80",
323
+ "show-overflow-tooltip": ""
324
+ }, null, 8, ["label"]),
325
+ a(_, {
326
+ label: s(t)("编码"),
327
+ prop: "code",
328
+ "min-width": "80",
329
+ "show-overflow-tooltip": ""
330
+ }, null, 8, ["label"]),
331
+ a(_, {
332
+ label: s(t)("值"),
333
+ "min-width": "150"
334
+ }, {
335
+ default: n(({ row: { type: o, value: V } }) => [
336
+ o === "IMAGE" ? (f(), k(z, {
337
+ key: 0,
338
+ "preview-teleported": "",
339
+ src: V,
340
+ "preview-src-list": [V],
341
+ class: "table-el-image"
342
+ }, null, 8, ["src", "preview-src-list"])) : o === "COLOR" ? (f(), L("div", {
343
+ key: 1,
344
+ class: "table-color-block",
345
+ style: Ne({ backgroundColor: V })
346
+ }, d(V), 5)) : o === "BOOLEAN" ? (f(), k(ue, {
347
+ key: 2,
348
+ type: V === "Y" ? "success" : "info"
349
+ }, {
350
+ default: n(() => [
351
+ p(d(V === "Y" ? s(t)("是") : s(t)("否")), 1)
352
+ ]),
353
+ _: 2
354
+ }, 1032, ["type"])) : (f(), L(te, { key: 3 }, [
355
+ p(d(V), 1)
356
+ ], 64))
357
+ ]),
358
+ _: 1
359
+ }, 8, ["label"]),
360
+ a(_, {
361
+ label: s(t)("是否可用"),
362
+ width: "80"
363
+ }, {
364
+ default: n(({ row: o }) => [
365
+ p(d(o.active === "Y" ? s(t)("启用") : s(t)("禁用")), 1)
366
+ ]),
367
+ _: 1
368
+ }, 8, ["label"]),
369
+ a(_, {
370
+ label: s(t)("说明"),
371
+ prop: "description",
372
+ "min-width": "100",
373
+ "show-overflow-tooltip": ""
374
+ }, null, 8, ["label"]),
375
+ a(_, {
376
+ label: s(t)("操作"),
377
+ width: "220",
378
+ align: "center"
379
+ }, {
380
+ default: n(({ row: o, $index: V }) => [
381
+ a(v, {
382
+ link: "",
383
+ type: "primary",
384
+ onClick: I((le) => $(o, V), ["stop"])
385
+ }, {
386
+ default: n(() => [
387
+ p(d(s(t)("编辑")), 1)
388
+ ]),
389
+ _: 1
390
+ }, 8, ["onClick"]),
391
+ o.active === "N" ? (f(), k(v, {
392
+ key: 0,
393
+ link: "",
394
+ type: "success",
395
+ onClick: I((le) => Q(o.id, V, "Y"), ["stop"])
396
+ }, {
397
+ default: n(() => [
398
+ p(d(s(t)("启用")), 1)
399
+ ]),
400
+ _: 1
401
+ }, 8, ["onClick"])) : (f(), k(v, {
402
+ key: 1,
403
+ link: "",
404
+ type: "danger",
405
+ onClick: I((le) => Q(o.id, V, "N"), ["stop"])
406
+ }, {
407
+ default: n(() => [
408
+ p(d(s(t)("禁用")), 1)
409
+ ]),
410
+ _: 1
411
+ }, 8, ["onClick"]))
412
+ ]),
413
+ _: 1
414
+ }, 8, ["label"])
415
+ ]),
416
+ _: 1
417
+ }, 8, ["data"])), [
418
+ [ye, S.value]
419
+ ]),
420
+ a(pe, {
421
+ background: "",
422
+ "page-sizes": [10, 50, 100, 200, 500],
423
+ "page-size": i.pageSize,
424
+ "onUpdate:pageSize": l[4] || (l[4] = (o) => i.pageSize = o),
425
+ total: i.total,
426
+ "current-page": i.pageNum,
427
+ "onUpdate:currentPage": l[5] || (l[5] = (o) => i.pageNum = o),
428
+ layout: "sizes,prev,pager,next,total"
429
+ }, null, 8, ["page-size", "total", "current-page"])
430
+ ]),
431
+ a(be, {
432
+ class: "form-drawer",
433
+ modelValue: E.value,
434
+ "onUpdate:modelValue": l[19] || (l[19] = (o) => E.value = o),
435
+ onClose: q,
436
+ draggable: "",
437
+ title: e.id ? s(t)("编辑配置") : s(t)("新增配置")
438
+ }, {
439
+ footer: n(() => [
440
+ N("div", Re, [
441
+ a(v, {
442
+ onClick: W,
443
+ text: "",
444
+ disabled: b.value
445
+ }, {
446
+ default: n(() => [
447
+ p(d(s(t)("上一个")) + "(Alt + ←) ", 1)
448
+ ]),
449
+ _: 1
450
+ }, 8, ["disabled"]),
451
+ a(v, {
452
+ type: "primary",
453
+ plain: "",
454
+ onClick: q
455
+ }, {
456
+ default: n(() => [
457
+ p(d(s(t)("取消")), 1)
458
+ ]),
459
+ _: 1
460
+ }),
461
+ a(v, {
462
+ type: "primary",
463
+ onClick: J
464
+ }, {
465
+ default: n(() => [
466
+ p(d(s(t)("保存")) + "(Ctrl + S) ", 1)
467
+ ]),
468
+ _: 1
469
+ }),
470
+ a(v, {
471
+ onClick: K,
472
+ text: "",
473
+ disabled: Y.value
474
+ }, {
475
+ default: n(() => [
476
+ p(d(s(t)("下一个")) + "(ALT + →) ", 1)
477
+ ]),
478
+ _: 1
479
+ }, 8, ["disabled"])
480
+ ])
481
+ ]),
482
+ default: n(() => [
483
+ a(y, {
484
+ "label-position": "top",
485
+ ref_key: "formRef",
486
+ ref: x,
487
+ model: e,
488
+ rules: U
489
+ }, {
490
+ default: n(() => [
491
+ a(ge, { gutter: "10" }, {
492
+ default: n(() => [
493
+ a(T, { span: 12 }, {
494
+ default: n(() => [
495
+ a(u, {
496
+ label: s(t)("名称"),
497
+ prop: "name"
498
+ }, {
499
+ default: n(() => [
500
+ a(m, {
501
+ modelValue: e.name,
502
+ "onUpdate:modelValue": l[6] || (l[6] = (o) => e.name = o),
503
+ clearable: ""
504
+ }, null, 8, ["modelValue"])
505
+ ]),
506
+ _: 1
507
+ }, 8, ["label"])
508
+ ]),
509
+ _: 1
510
+ }),
511
+ a(T, { span: 12 }, {
512
+ default: n(() => [
513
+ a(u, {
514
+ label: s(t)("编码"),
515
+ prop: "code"
516
+ }, {
517
+ default: n(() => [
518
+ a(ce, {
519
+ modelValue: e.code,
520
+ "onUpdate:modelValue": l[7] || (l[7] = (o) => e.code = o),
521
+ "fetch-suggestions": re,
522
+ placeholder: s(t)("请输入或选择配置编码"),
523
+ clearable: "",
524
+ style: { width: "100%" }
525
+ }, null, 8, ["modelValue", "placeholder"])
526
+ ]),
527
+ _: 1
528
+ }, 8, ["label"])
529
+ ]),
530
+ _: 1
531
+ }),
532
+ a(T, { span: 16 }, {
533
+ default: n(() => [
534
+ a(u, {
535
+ label: s(t)("值类型"),
536
+ prop: "type"
537
+ }, {
538
+ default: n(() => [
539
+ a(ee, {
540
+ modelValue: e.type,
541
+ "onUpdate:modelValue": l[8] || (l[8] = (o) => e.type = o),
542
+ onChange: l[9] || (l[9] = (o) => e.value = "")
543
+ }, {
544
+ default: n(() => [
545
+ a(O, {
546
+ label: "TEXT"
547
+ /* TEXT */
548
+ }, {
549
+ default: n(() => [
550
+ p(d(s(t)("文字")), 1)
551
+ ]),
552
+ _: 1
553
+ }, 8, ["label"]),
554
+ a(O, {
555
+ label: "NUMBER"
556
+ /* NUMBER */
557
+ }, {
558
+ default: n(() => [
559
+ p(d(s(t)("数字")), 1)
560
+ ]),
561
+ _: 1
562
+ }, 8, ["label"]),
563
+ a(O, {
564
+ label: "IMAGE"
565
+ /* IMAGE */
566
+ }, {
567
+ default: n(() => [
568
+ p(d(s(t)("图片")), 1)
569
+ ]),
570
+ _: 1
571
+ }, 8, ["label"]),
572
+ a(O, {
573
+ label: "COLOR"
574
+ /* COLOR */
575
+ }, {
576
+ default: n(() => [
577
+ p(d(s(t)("颜色")), 1)
578
+ ]),
579
+ _: 1
580
+ }, 8, ["label"]),
581
+ a(O, {
582
+ label: "DATETIME"
583
+ /* DATETIME */
584
+ }, {
585
+ default: n(() => [
586
+ p(d(s(t)("日期时间")), 1)
587
+ ]),
588
+ _: 1
589
+ }, 8, ["label"]),
590
+ a(O, {
591
+ label: "BOOLEAN"
592
+ /* BOOLEAN */
593
+ }, {
594
+ default: n(() => [
595
+ p(d(s(t)("布尔值")), 1)
596
+ ]),
597
+ _: 1
598
+ }, 8, ["label"])
599
+ ]),
600
+ _: 1
601
+ }, 8, ["modelValue"])
602
+ ]),
603
+ _: 1
604
+ }, 8, ["label"])
605
+ ]),
606
+ _: 1
607
+ }),
608
+ a(T, {
609
+ span: 8,
610
+ prop: "active"
611
+ }, {
612
+ default: n(() => [
613
+ a(u, {
614
+ label: s(t)("是否可用")
615
+ }, {
616
+ default: n(() => [
617
+ a(ee, {
618
+ modelValue: e.active,
619
+ "onUpdate:modelValue": l[10] || (l[10] = (o) => e.active = o)
620
+ }, {
621
+ default: n(() => [
622
+ a(O, { label: "Y" }, {
623
+ default: n(() => [
624
+ p(d(s(t)("启用")), 1)
625
+ ]),
626
+ _: 1
627
+ }),
628
+ a(O, { label: "N" }, {
629
+ default: n(() => [
630
+ p(d(s(t)("禁用")), 1)
631
+ ]),
632
+ _: 1
633
+ })
634
+ ]),
635
+ _: 1
636
+ }, 8, ["modelValue"])
637
+ ]),
638
+ _: 1
639
+ }, 8, ["label"])
640
+ ]),
641
+ _: 1
642
+ }),
643
+ a(T, { span: 24 }, {
644
+ default: n(() => [
645
+ a(u, {
646
+ label: s(t)("值"),
647
+ prop: "value"
648
+ }, {
649
+ default: n(() => [
650
+ e.type === "TEXT" ? (f(), k(m, {
651
+ key: 0,
652
+ modelValue: e.value,
653
+ "onUpdate:modelValue": l[11] || (l[11] = (o) => e.value = o),
654
+ clearable: ""
655
+ }, null, 8, ["modelValue"])) : e.type === "NUMBER" ? (f(), k(me, {
656
+ key: 1,
657
+ modelValue: e.value,
658
+ "onUpdate:modelValue": l[12] || (l[12] = (o) => e.value = o)
659
+ }, null, 8, ["modelValue"])) : e.type === "IMAGE" ? (f(), k(xe, {
660
+ key: 2,
661
+ modelValue: e.value,
662
+ "onUpdate:modelValue": l[13] || (l[13] = (o) => e.value = o)
663
+ }, null, 8, ["modelValue"])) : e.type === "COLOR" ? (f(), k(m, {
664
+ key: 3,
665
+ modelValue: e.value,
666
+ "onUpdate:modelValue": l[15] || (l[15] = (o) => e.value = o),
667
+ clearable: ""
668
+ }, {
669
+ prefix: n(() => [
670
+ a(ve, {
671
+ "color-format": "hex",
672
+ modelValue: e.value,
673
+ "onUpdate:modelValue": l[14] || (l[14] = (o) => e.value = o)
674
+ }, null, 8, ["modelValue"])
675
+ ]),
676
+ _: 1
677
+ }, 8, ["modelValue"])) : e.type === "DATETIME" ? (f(), k(fe, {
678
+ key: 4,
679
+ modelValue: e.value,
680
+ "onUpdate:modelValue": l[16] || (l[16] = (o) => e.value = o),
681
+ type: "datetime",
682
+ placeholder: s(t)("选择日期时间")
683
+ }, null, 8, ["modelValue", "placeholder"])) : e.type === "BOOLEAN" ? (f(), k(_e, {
684
+ key: 5,
685
+ modelValue: A.value,
686
+ "onUpdate:modelValue": l[17] || (l[17] = (o) => A.value = o),
687
+ "active-text": s(t)("启用"),
688
+ "inactive-text": s(t)("禁用"),
689
+ "active-value": !0,
690
+ "inactive-value": !1
691
+ }, null, 8, ["modelValue", "active-text", "inactive-text"])) : se("", !0)
692
+ ]),
693
+ _: 1
694
+ }, 8, ["label"])
695
+ ]),
696
+ _: 1
697
+ }),
698
+ a(T, { span: 24 }, {
699
+ default: n(() => [
700
+ a(u, {
701
+ label: s(t)("说明"),
702
+ prop: "description"
703
+ }, {
704
+ default: n(() => [
705
+ a(m, {
706
+ type: "textarea",
707
+ modelValue: e.description,
708
+ "onUpdate:modelValue": l[18] || (l[18] = (o) => e.description = o),
709
+ clearable: ""
710
+ }, null, 8, ["modelValue"])
711
+ ]),
712
+ _: 1
713
+ }, 8, ["label"])
714
+ ]),
715
+ _: 1
716
+ })
717
+ ]),
718
+ _: 1
719
+ })
720
+ ]),
721
+ _: 1
722
+ }, 8, ["model", "rules"])
723
+ ]),
724
+ _: 1
725
+ }, 8, ["modelValue", "title"])
726
+ ], 64);
727
+ };
728
+ }
729
+ });
730
+ export {
731
+ Fe as default
732
+ };
733
+ //# sourceMappingURL=SysConfig-v9nYZf4a.js.map