yh-pub 2.0.2 → 2.0.8

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