yh-pub 1.0.2 → 2.0.1

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 (96) hide show
  1. package/AdminLogin-BoxKRRwd.js +140 -0
  2. package/AdminLogin-BoxKRRwd.js.map +1 -0
  3. package/Dict.vue_vue_type_script_setup_true_lang-A8BZwEiK.js +55 -0
  4. package/Dict.vue_vue_type_script_setup_true_lang-A8BZwEiK.js.map +1 -0
  5. package/Error-BCu4KHfU.js +43 -0
  6. package/Error-BCu4KHfU.js.map +1 -0
  7. package/Error401-C5kTyMSM.js +30 -0
  8. package/Error401-C5kTyMSM.js.map +1 -0
  9. package/Error404-P3qKjHk6.js +30 -0
  10. package/Error404-P3qKjHk6.js.map +1 -0
  11. package/Error500-NVnuOBIQ.js +30 -0
  12. package/Error500-NVnuOBIQ.js.map +1 -0
  13. package/HomeIndex-C806Fp-9.js +438 -0
  14. package/HomeIndex-C806Fp-9.js.map +1 -0
  15. package/IconExplorer-CBg1lvD0.js +66 -0
  16. package/IconExplorer-CBg1lvD0.js.map +1 -0
  17. package/Index-AjfvK7Ss.js +5 -0
  18. package/Index-AjfvK7Ss.js.map +1 -0
  19. package/MainLogin-wW7bSk0F.js +155 -0
  20. package/MainLogin-wW7bSk0F.js.map +1 -0
  21. package/MenuManage-CIxqmusr.js +641 -0
  22. package/MenuManage-CIxqmusr.js.map +1 -0
  23. package/OrgManage-BcTWbnyc.js +378 -0
  24. package/OrgManage-BcTWbnyc.js.map +1 -0
  25. package/RoleManage-Bw83c_7q.js +729 -0
  26. package/RoleManage-Bw83c_7q.js.map +1 -0
  27. package/SysConfig-L0A1eY-O.js +727 -0
  28. package/SysConfig-L0A1eY-O.js.map +1 -0
  29. package/TenantList-B5imzQc5.js +696 -0
  30. package/TenantList-B5imzQc5.js.map +1 -0
  31. package/index-BP41Ph8K.js +55257 -0
  32. package/index-BP41Ph8K.js.map +1 -0
  33. package/index-CJ0So9-k.js +7 -0
  34. package/index-CJ0So9-k.js.map +1 -0
  35. package/index-wVC41gTc.js +23955 -0
  36. package/index-wVC41gTc.js.map +1 -0
  37. package/index.d.ts +35 -0
  38. package/index.es.js +66 -0
  39. package/index.es.js.map +1 -0
  40. package/package.json +27 -6
  41. package/style.css +1 -0
  42. package/README.MD +0 -19
  43. package/layout/admin/adminIndex.vue +0 -104
  44. package/layout/admin/api/loginApi.js +0 -24
  45. package/layout/admin/api/routers.js +0 -93
  46. package/layout/admin/api/tenantApi.js +0 -123
  47. package/layout/admin/home/homeIndex.vue +0 -25
  48. package/layout/admin/login/login.vue +0 -161
  49. package/layout/admin/menu/MenuIndex.vue +0 -648
  50. package/layout/admin/menu/icon.vue +0 -108
  51. package/layout/admin/menu/iconList.js +0 -934
  52. package/layout/admin/saTenant/saTenant.js +0 -0
  53. package/layout/admin/saTenant/saTenant.vue +0 -173
  54. package/layout/admin/saTenant/saTenantForm.js +0 -80
  55. package/layout/admin/saTenant/saTenantForm.vue +0 -61
  56. package/layout/admin/saTenant/saTenantRoleManage.js +0 -417
  57. package/layout/admin/saTenant/saTenantRoleManage.vue +0 -99
  58. package/layout/admin/user/saUser.less +0 -6
  59. package/layout/admin/user/saUser.vue +0 -72
  60. package/layout/main/components/console/console.vue +0 -205
  61. package/layout/main/components/error-store/error-store.vue +0 -72
  62. package/layout/main/components/error-store/index.js +0 -2
  63. package/layout/main/components/fullscreen/fullscreen.vue +0 -57
  64. package/layout/main/components/fullscreen/index.js +0 -2
  65. package/layout/main/components/language/language.vue +0 -71
  66. package/layout/main/components/side-menu/side-menu.less +0 -74
  67. package/layout/main/components/side-menu/side-menu.vue +0 -75
  68. package/layout/main/components/tags-nav/tags-nav.less +0 -45
  69. package/layout/main/components/tags-nav/tags-nav.vue +0 -144
  70. package/layout/main/components/user/user.less +0 -12
  71. package/layout/main/components/user/user.vue +0 -185
  72. package/layout/main/home/home.vue +0 -480
  73. package/layout/main/home/index.js +0 -2
  74. package/layout/main/home/toDoList.vue +0 -32
  75. package/layout/main/login/login.less +0 -93
  76. package/layout/main/login/login.vue +0 -151
  77. package/layout/main/main.less +0 -81
  78. package/layout/main/main.vue +0 -254
  79. package/layout/main/system/dict.vue +0 -64
  80. package/layout/main/system/orgManage.vue +0 -473
  81. package/layout/main/system/roleManage.js +0 -807
  82. package/layout/main/system/roleManage.vue +0 -424
  83. package/view/basic/error-logger.vue +0 -74
  84. package/view/basic/error-page/401.vue +0 -22
  85. package/view/basic/error-page/404.vue +0 -22
  86. package/view/basic/error-page/500.vue +0 -22
  87. package/view/basic/error-page/back-btn-group.vue +0 -48
  88. package/view/basic/error-page/error-content.vue +0 -28
  89. package/view/basic/error-page/error.less +0 -46
  90. package/view/config/component/confFormItem.vue +0 -49
  91. package/view/config/config.scss +0 -45
  92. package/view/config/configIndex.vue +0 -150
  93. package/view/config/subPage/router-config.vue +0 -5
  94. package/view/config/subPage/sys-config.vue +0 -249
  95. package/view/window/IframeFReportView.vue +0 -28
  96. package/view/window/windowIndex.vue +0 -22
@@ -0,0 +1,727 @@
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, j as X } from "./index-BP41Ph8K.js";
4
+ import "lodash-es";
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
+ $(e, n);
170
+ }
171
+ }
172
+ function $(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 q() {
176
+ if (!R.value) {
177
+ let n = V.value + 1, e = f.value[n];
178
+ $(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
+ }, q())) : 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(), q()), 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) => $(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: q,
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-L0A1eY-O.js.map