yh-pub 2.0.34 → 2.0.35

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