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.
- package/{AdminLogin-B6urma5G.js → AdminLogin-eglnq2P1.js} +18 -18
- package/{AdminLogin-B6urma5G.js.map → AdminLogin-eglnq2P1.js.map} +1 -1
- package/{Error-YEJNA7SZ.js → Error-CBLJU85m.js} +2 -2
- package/{Error-YEJNA7SZ.js.map → Error-CBLJU85m.js.map} +1 -1
- package/{Error401-E4pHHcHG.js → Error401-BQCe5erf.js} +3 -3
- package/{Error401-E4pHHcHG.js.map → Error401-BQCe5erf.js.map} +1 -1
- package/{Error404-yCAmJMiF.js → Error404-ChJvHWnb.js} +3 -3
- package/{Error404-yCAmJMiF.js.map → Error404-ChJvHWnb.js.map} +1 -1
- package/{Error500-D9jEXDUl.js → Error500-DeSjRV6r.js} +3 -3
- package/{Error500-D9jEXDUl.js.map → Error500-DeSjRV6r.js.map} +1 -1
- package/{HomeIndex-gYT_4tWA.js → HomeIndex-AvpuYMLC.js} +4 -4
- package/{HomeIndex-gYT_4tWA.js.map → HomeIndex-AvpuYMLC.js.map} +1 -1
- package/{IconExplorer-DS--IkRN.js → IconExplorer-IfKjELdy.js} +2 -2
- package/{IconExplorer-DS--IkRN.js.map → IconExplorer-IfKjELdy.js.map} +1 -1
- package/Index-ZdwGnVVr.js +5 -0
- package/Index-ZdwGnVVr.js.map +1 -0
- package/{MainLogin-WT4vevTr.js → MainLogin-CspMhcPJ.js} +33 -37
- package/{MainLogin-WT4vevTr.js.map → MainLogin-CspMhcPJ.js.map} +1 -1
- package/{MenuManage-CWbkFem5.js → MenuManage-nk59Gdji.js} +2 -2
- package/{MenuManage-CWbkFem5.js.map → MenuManage-nk59Gdji.js.map} +1 -1
- package/{OrgManage-DrkjKQsD.js → OrgManage-vrk4DFIe.js} +2 -2
- package/{OrgManage-DrkjKQsD.js.map → OrgManage-vrk4DFIe.js.map} +1 -1
- package/{RoleManage-zU2_Sg7o.js → RoleManage-B5F-zFAx.js} +2 -2
- package/{RoleManage-zU2_Sg7o.js.map → RoleManage-B5F-zFAx.js.map} +1 -1
- package/{SysConfig-BbhOofe-.js → SysConfig-CyBsfxKk.js} +225 -208
- package/SysConfig-CyBsfxKk.js.map +1 -0
- package/{TenantList-p7ztAouG.js → TenantList-sEahiRWX.js} +41 -41
- package/{TenantList-p7ztAouG.js.map → TenantList-sEahiRWX.js.map} +1 -1
- package/ThemeConfig-C8pQBI3C.js +570 -0
- package/ThemeConfig-C8pQBI3C.js.map +1 -0
- package/ThemeDemo-mMm9qP5J.js +776 -0
- package/ThemeDemo-mMm9qP5J.js.map +1 -0
- package/{index-V8IW-e9m.js → index-CGitwHqZ.js} +11064 -11011
- package/{index-V8IW-e9m.js.map → index-CGitwHqZ.js.map} +1 -1
- package/index.es.js +17 -17
- package/package.json +1 -1
- package/style.css +1 -1
- package/themeVarLabels-CgtetVkU.js +90 -0
- package/themeVarLabels-CgtetVkU.js.map +1 -0
- package/Index-BtKC3WNZ.js +0 -5
- package/Index-BtKC3WNZ.js.map +0 -1
- package/SysConfig-BbhOofe-.js.map +0 -1
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { ElMessage as
|
|
3
|
-
import { c as t, _ as
|
|
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" },
|
|
5
|
+
const Oe = { class: "preview-area" }, Te = ["src"], Le = {
|
|
6
6
|
key: 1,
|
|
7
7
|
class: "upload-prompt"
|
|
8
|
-
},
|
|
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:
|
|
15
|
-
const S = H,
|
|
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
|
|
23
|
-
const
|
|
24
|
-
i.value =
|
|
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] &&
|
|
34
|
+
e && e[0] && V(e[0]);
|
|
35
35
|
}, E = (b) => {
|
|
36
36
|
const e = b.target;
|
|
37
|
-
e.files && e.files[0] && (
|
|
38
|
-
},
|
|
39
|
-
i.value = "",
|
|
37
|
+
e.files && e.files[0] && (V(e.files[0]), e.value = "");
|
|
38
|
+
}, R = () => {
|
|
39
|
+
i.value = "", I("update:modelValue", "");
|
|
40
40
|
};
|
|
41
|
-
return
|
|
41
|
+
return se(
|
|
42
42
|
() => S.modelValue,
|
|
43
43
|
(b) => {
|
|
44
44
|
i.value = b || "";
|
|
45
45
|
}
|
|
46
46
|
), (b, e) => {
|
|
47
|
-
const U =
|
|
48
|
-
return
|
|
49
|
-
class:
|
|
50
|
-
onDragover:
|
|
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:
|
|
52
|
+
onDrop: T(C, ["prevent"])
|
|
53
53
|
}, [
|
|
54
54
|
N("div", Oe, [
|
|
55
|
-
i.value ? (
|
|
55
|
+
i.value ? (v(), L("img", {
|
|
56
56
|
key: 0,
|
|
57
57
|
src: i.value,
|
|
58
58
|
alt: "Preview"
|
|
59
|
-
}, null, 8,
|
|
60
|
-
N("span", null,
|
|
59
|
+
}, null, 8, Te)) : (v(), L("div", Le, [
|
|
60
|
+
N("span", null, u(r(t)("点击或拖拽图片到此区域")), 1)
|
|
61
61
|
]))
|
|
62
62
|
]),
|
|
63
|
-
N("div",
|
|
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:
|
|
69
|
+
ref: z
|
|
70
70
|
}, null, 544)
|
|
71
71
|
]),
|
|
72
|
-
i.value ? (
|
|
72
|
+
i.value ? (v(), L("div", {
|
|
73
73
|
key: 0,
|
|
74
74
|
class: "delete-btn",
|
|
75
|
-
onClick:
|
|
75
|
+
onClick: R
|
|
76
76
|
}, [
|
|
77
77
|
a(U, { name: "close" })
|
|
78
|
-
])) :
|
|
78
|
+
])) : ie("", !0)
|
|
79
79
|
], 34);
|
|
80
80
|
};
|
|
81
81
|
}
|
|
82
|
-
}), xe = /* @__PURE__ */
|
|
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
|
|
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([]),
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
|
|
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:
|
|
101
|
-
|
|
102
|
-
|
|
104
|
+
code: d,
|
|
105
|
+
// SysParameter 实体分页字段为 page/size
|
|
106
|
+
page: p,
|
|
107
|
+
size: f
|
|
103
108
|
}
|
|
104
109
|
}).then((y) => {
|
|
105
|
-
var
|
|
110
|
+
var B;
|
|
106
111
|
const _ = y.data.data;
|
|
107
|
-
g.value = _.records || [], i.total = _.total ?? ((
|
|
112
|
+
g.value = _.records || [], i.total = _.total ?? ((B = _.records) == null ? void 0 : B.length) ?? 0;
|
|
108
113
|
}).catch((y) => {
|
|
109
|
-
console.error("获取配置列表失败:", y),
|
|
114
|
+
console.error("获取配置列表失败:", y), O.error(t("获取配置列表失败,请稍后重试"));
|
|
110
115
|
}).finally(() => {
|
|
111
|
-
|
|
116
|
+
I.value = !1;
|
|
112
117
|
});
|
|
113
118
|
}
|
|
114
|
-
|
|
119
|
+
se(
|
|
115
120
|
() => [i.pageNum, i.pageSize],
|
|
116
121
|
() => {
|
|
117
|
-
|
|
122
|
+
V();
|
|
118
123
|
}
|
|
119
124
|
);
|
|
120
125
|
function F(s) {
|
|
121
126
|
var l;
|
|
122
|
-
(l =
|
|
127
|
+
(l = Y.value) == null || l.toggleRowSelection(s);
|
|
123
128
|
}
|
|
124
129
|
function P() {
|
|
125
|
-
i.code = "", i.name = "", i.
|
|
130
|
+
i.code = "", i.name = "", i.total = 0, i.pageNum !== 1 ? i.pageNum = 1 : V();
|
|
126
131
|
}
|
|
127
|
-
const C = h(), E = h(!1),
|
|
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
|
-
|
|
141
|
-
|
|
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
|
-
}),
|
|
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
|
-
],
|
|
154
|
-
const
|
|
155
|
-
(
|
|
156
|
-
) :
|
|
157
|
-
l(
|
|
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
|
|
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
|
|
186
|
+
function J() {
|
|
167
187
|
if (!b.value) {
|
|
168
188
|
let s = C.value - 1, l = g.value[s];
|
|
169
|
-
|
|
189
|
+
K(l, s);
|
|
170
190
|
}
|
|
171
191
|
}
|
|
172
|
-
function
|
|
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
|
|
176
|
-
if (!
|
|
195
|
+
function $() {
|
|
196
|
+
if (!R.value) {
|
|
177
197
|
let s = C.value + 1, l = g.value[s];
|
|
178
|
-
|
|
198
|
+
K(l, s);
|
|
179
199
|
}
|
|
180
200
|
}
|
|
181
|
-
function
|
|
182
|
-
var
|
|
201
|
+
function Q() {
|
|
202
|
+
var d;
|
|
183
203
|
let s = !e.id, l = "parameter/save";
|
|
184
|
-
(
|
|
185
|
-
if (!
|
|
186
|
-
let
|
|
187
|
-
|
|
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:
|
|
211
|
+
data: f
|
|
194
212
|
}).then((y) => {
|
|
195
213
|
const _ = y.data;
|
|
196
|
-
_.
|
|
197
|
-
}), s ? q() : (
|
|
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),
|
|
217
|
+
console.error("保存配置失败:", y), O.error(t("保存失败,请稍后重试"));
|
|
202
218
|
});
|
|
203
219
|
});
|
|
204
220
|
}
|
|
205
|
-
function
|
|
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:
|
|
211
|
-
}).then((
|
|
212
|
-
const
|
|
213
|
-
if (
|
|
214
|
-
const y =
|
|
215
|
-
|
|
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
|
-
|
|
219
|
-
}).catch((
|
|
220
|
-
console.error("更新状态失败:",
|
|
234
|
+
O.error(f.msg);
|
|
235
|
+
}).catch((p) => {
|
|
236
|
+
console.error("更新状态失败:", p), O.error(t("操作失败,请稍后重试"));
|
|
221
237
|
});
|
|
222
238
|
}
|
|
223
|
-
const
|
|
224
|
-
const { key: l, ctrlKey:
|
|
225
|
-
E.value && (l === "s" &&
|
|
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
|
|
228
|
-
|
|
229
|
-
}),
|
|
230
|
-
window.removeEventListener("keydown",
|
|
243
|
+
return Ce(() => {
|
|
244
|
+
V(), window.addEventListener("keydown", ee);
|
|
245
|
+
}), he(() => {
|
|
246
|
+
window.removeEventListener("keydown", ee);
|
|
231
247
|
}), (s, l) => {
|
|
232
|
-
const
|
|
233
|
-
return
|
|
234
|
-
N("div",
|
|
235
|
-
N("div",
|
|
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(
|
|
255
|
+
a(p, {
|
|
240
256
|
label: r(t)("名称")
|
|
241
257
|
}, {
|
|
242
258
|
default: n(() => [
|
|
243
|
-
a(
|
|
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] =
|
|
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(
|
|
268
|
+
a(p, {
|
|
253
269
|
label: r(t)("编码")
|
|
254
270
|
}, {
|
|
255
271
|
default: n(() => [
|
|
256
|
-
a(
|
|
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] =
|
|
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(
|
|
281
|
+
a(p, null, {
|
|
266
282
|
default: n(() => [
|
|
267
|
-
a(
|
|
283
|
+
a(f, { onClick: P }, {
|
|
268
284
|
default: n(() => [
|
|
269
|
-
|
|
285
|
+
c(u(r(t)("重置")), 1)
|
|
270
286
|
]),
|
|
271
287
|
_: 1
|
|
272
288
|
}),
|
|
273
|
-
a(
|
|
289
|
+
a(f, {
|
|
274
290
|
type: "primary",
|
|
275
|
-
onClick:
|
|
291
|
+
onClick: V
|
|
276
292
|
}, {
|
|
277
293
|
default: n(() => [
|
|
278
|
-
|
|
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(
|
|
305
|
+
a(f, {
|
|
290
306
|
type: "primary",
|
|
291
|
-
onClick:
|
|
307
|
+
onClick: de
|
|
292
308
|
}, {
|
|
293
309
|
default: n(() => [
|
|
294
|
-
l[
|
|
295
|
-
|
|
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
|
-
|
|
316
|
+
Ee((v(), w(ce, {
|
|
301
317
|
ref_key: "tableRef",
|
|
302
|
-
ref:
|
|
318
|
+
ref: Y,
|
|
303
319
|
data: g.value,
|
|
304
320
|
"row-key": "code",
|
|
305
|
-
"row-class-name":
|
|
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:
|
|
337
|
-
o === "IMAGE" ? (
|
|
352
|
+
default: n(({ row: { type: o, value: k } }) => [
|
|
353
|
+
o === "IMAGE" ? (v(), w(B, {
|
|
338
354
|
key: 0,
|
|
339
355
|
"preview-teleported": "",
|
|
340
|
-
src:
|
|
341
|
-
"preview-src-list": [
|
|
356
|
+
src: k,
|
|
357
|
+
"preview-src-list": [k],
|
|
342
358
|
class: "table-el-image"
|
|
343
|
-
}, null, 8, ["src", "preview-src-list"])) : o === "COLOR" ? (
|
|
359
|
+
}, null, 8, ["src", "preview-src-list"])) : o === "COLOR" ? (v(), L("div", {
|
|
344
360
|
key: 1,
|
|
345
361
|
class: "table-color-block",
|
|
346
|
-
style:
|
|
347
|
-
},
|
|
362
|
+
style: Ue({ backgroundColor: k })
|
|
363
|
+
}, u(k), 5)) : o === "BOOLEAN" ? (v(), w(pe, {
|
|
348
364
|
key: 2,
|
|
349
|
-
type:
|
|
365
|
+
type: k === "Y" ? "success" : "info"
|
|
350
366
|
}, {
|
|
351
367
|
default: n(() => [
|
|
352
|
-
|
|
368
|
+
c(u(k === "Y" ? r(t)("是") : r(t)("否")), 1)
|
|
353
369
|
]),
|
|
354
370
|
_: 2
|
|
355
|
-
}, 1032, ["type"])) : (
|
|
356
|
-
|
|
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
|
-
|
|
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:
|
|
382
|
-
a(
|
|
397
|
+
default: n(({ row: o, $index: k }) => [
|
|
398
|
+
a(f, {
|
|
383
399
|
link: "",
|
|
384
400
|
type: "primary",
|
|
385
|
-
onClick:
|
|
401
|
+
onClick: T((te) => K(o, k), ["stop"])
|
|
386
402
|
}, {
|
|
387
403
|
default: n(() => [
|
|
388
|
-
|
|
404
|
+
c(u(r(t)("编辑")), 1)
|
|
389
405
|
]),
|
|
390
406
|
_: 1
|
|
391
407
|
}, 8, ["onClick"]),
|
|
392
|
-
o.active === "N" ? (
|
|
408
|
+
o.active === "N" ? (v(), w(f, {
|
|
393
409
|
key: 0,
|
|
394
410
|
link: "",
|
|
395
411
|
type: "success",
|
|
396
|
-
onClick:
|
|
412
|
+
onClick: T((te) => Z(o.id, k, "Y"), ["stop"])
|
|
397
413
|
}, {
|
|
398
414
|
default: n(() => [
|
|
399
|
-
|
|
415
|
+
c(u(r(t)("启用")), 1)
|
|
400
416
|
]),
|
|
401
417
|
_: 1
|
|
402
|
-
}, 8, ["onClick"])) : (
|
|
418
|
+
}, 8, ["onClick"])) : (v(), w(f, {
|
|
403
419
|
key: 1,
|
|
404
420
|
link: "",
|
|
405
421
|
type: "danger",
|
|
406
|
-
onClick:
|
|
422
|
+
onClick: T((te) => Z(o.id, k, "N"), ["stop"])
|
|
407
423
|
}, {
|
|
408
424
|
default: n(() => [
|
|
409
|
-
|
|
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
|
-
[
|
|
435
|
+
[ke, I.value]
|
|
420
436
|
]),
|
|
421
|
-
a(
|
|
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(
|
|
448
|
+
a(Ve, {
|
|
433
449
|
class: "form-drawer",
|
|
434
450
|
modelValue: E.value,
|
|
435
|
-
"onUpdate:modelValue": l[
|
|
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(
|
|
443
|
-
onClick:
|
|
458
|
+
a(f, {
|
|
459
|
+
onClick: J,
|
|
444
460
|
text: "",
|
|
445
461
|
disabled: b.value
|
|
446
462
|
}, {
|
|
447
463
|
default: n(() => [
|
|
448
|
-
|
|
464
|
+
c(u(r(t)("上一个")) + "(Alt + ←) ", 1)
|
|
449
465
|
]),
|
|
450
466
|
_: 1
|
|
451
467
|
}, 8, ["disabled"]),
|
|
452
|
-
a(
|
|
468
|
+
a(f, {
|
|
453
469
|
type: "primary",
|
|
454
470
|
plain: "",
|
|
455
471
|
onClick: q
|
|
456
472
|
}, {
|
|
457
473
|
default: n(() => [
|
|
458
|
-
|
|
474
|
+
c(u(r(t)("取消")), 1)
|
|
459
475
|
]),
|
|
460
476
|
_: 1
|
|
461
477
|
}),
|
|
462
|
-
a(
|
|
478
|
+
a(f, {
|
|
463
479
|
type: "primary",
|
|
464
|
-
onClick:
|
|
480
|
+
onClick: Q
|
|
465
481
|
}, {
|
|
466
482
|
default: n(() => [
|
|
467
|
-
|
|
483
|
+
c(u(r(t)("保存")) + "(Ctrl + S) ", 1)
|
|
468
484
|
]),
|
|
469
485
|
_: 1
|
|
470
486
|
}),
|
|
471
|
-
a(
|
|
472
|
-
onClick:
|
|
487
|
+
a(f, {
|
|
488
|
+
onClick: $,
|
|
473
489
|
text: "",
|
|
474
|
-
disabled:
|
|
490
|
+
disabled: R.value
|
|
475
491
|
}, {
|
|
476
492
|
default: n(() => [
|
|
477
|
-
|
|
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(
|
|
508
|
+
a(ye, { gutter: "10" }, {
|
|
493
509
|
default: n(() => [
|
|
494
|
-
a(
|
|
510
|
+
a(x, { span: 12 }, {
|
|
495
511
|
default: n(() => [
|
|
496
|
-
a(
|
|
512
|
+
a(p, {
|
|
497
513
|
label: r(t)("名称"),
|
|
498
514
|
prop: "name"
|
|
499
515
|
}, {
|
|
500
516
|
default: n(() => [
|
|
501
|
-
a(
|
|
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(
|
|
528
|
+
a(x, { span: 12 }, {
|
|
513
529
|
default: n(() => [
|
|
514
|
-
a(
|
|
530
|
+
a(p, {
|
|
515
531
|
label: r(t)("编码"),
|
|
516
532
|
prop: "code"
|
|
517
533
|
}, {
|
|
518
534
|
default: n(() => [
|
|
519
|
-
a(
|
|
535
|
+
a(fe, {
|
|
520
536
|
modelValue: e.code,
|
|
521
537
|
"onUpdate:modelValue": l[7] || (l[7] = (o) => e.code = o),
|
|
522
|
-
"fetch-suggestions":
|
|
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(
|
|
549
|
+
a(x, { span: 16 }, {
|
|
534
550
|
default: n(() => [
|
|
535
|
-
a(
|
|
551
|
+
a(p, {
|
|
536
552
|
label: r(t)("值类型"),
|
|
537
553
|
prop: "type"
|
|
538
554
|
}, {
|
|
539
555
|
default: n(() => [
|
|
540
|
-
a(
|
|
556
|
+
a(le, {
|
|
541
557
|
modelValue: e.type,
|
|
542
558
|
"onUpdate:modelValue": l[8] || (l[8] = (o) => e.type = o),
|
|
543
|
-
onChange:
|
|
559
|
+
onChange: M
|
|
544
560
|
}, {
|
|
545
561
|
default: n(() => [
|
|
546
|
-
a(
|
|
562
|
+
a(D, {
|
|
547
563
|
label: "TEXT"
|
|
548
564
|
/* TEXT */
|
|
549
565
|
}, {
|
|
550
566
|
default: n(() => [
|
|
551
|
-
|
|
567
|
+
c(u(r(t)("文字")), 1)
|
|
552
568
|
]),
|
|
553
569
|
_: 1
|
|
554
570
|
}, 8, ["label"]),
|
|
555
|
-
a(
|
|
571
|
+
a(D, {
|
|
556
572
|
label: "NUMBER"
|
|
557
573
|
/* NUMBER */
|
|
558
574
|
}, {
|
|
559
575
|
default: n(() => [
|
|
560
|
-
|
|
576
|
+
c(u(r(t)("数字")), 1)
|
|
561
577
|
]),
|
|
562
578
|
_: 1
|
|
563
579
|
}, 8, ["label"]),
|
|
564
|
-
a(
|
|
580
|
+
a(D, {
|
|
565
581
|
label: "IMAGE"
|
|
566
582
|
/* IMAGE */
|
|
567
583
|
}, {
|
|
568
584
|
default: n(() => [
|
|
569
|
-
|
|
585
|
+
c(u(r(t)("图片")), 1)
|
|
570
586
|
]),
|
|
571
587
|
_: 1
|
|
572
588
|
}, 8, ["label"]),
|
|
573
|
-
a(
|
|
589
|
+
a(D, {
|
|
574
590
|
label: "COLOR"
|
|
575
591
|
/* COLOR */
|
|
576
592
|
}, {
|
|
577
593
|
default: n(() => [
|
|
578
|
-
|
|
594
|
+
c(u(r(t)("颜色")), 1)
|
|
579
595
|
]),
|
|
580
596
|
_: 1
|
|
581
597
|
}, 8, ["label"]),
|
|
582
|
-
a(
|
|
598
|
+
a(D, {
|
|
583
599
|
label: "DATETIME"
|
|
584
600
|
/* DATETIME */
|
|
585
601
|
}, {
|
|
586
602
|
default: n(() => [
|
|
587
|
-
|
|
603
|
+
c(u(r(t)("日期时间")), 1)
|
|
588
604
|
]),
|
|
589
605
|
_: 1
|
|
590
606
|
}, 8, ["label"]),
|
|
591
|
-
a(
|
|
607
|
+
a(D, {
|
|
592
608
|
label: "BOOLEAN"
|
|
593
609
|
/* BOOLEAN */
|
|
594
610
|
}, {
|
|
595
611
|
default: n(() => [
|
|
596
|
-
|
|
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(
|
|
625
|
+
a(x, { span: 8 }, {
|
|
610
626
|
default: n(() => [
|
|
611
|
-
a(
|
|
627
|
+
a(p, {
|
|
612
628
|
label: r(t)("是否可用"),
|
|
613
629
|
prop: "active"
|
|
614
630
|
}, {
|
|
615
631
|
default: n(() => [
|
|
616
|
-
a(
|
|
632
|
+
a(le, {
|
|
617
633
|
modelValue: e.active,
|
|
618
|
-
"onUpdate:modelValue": l[
|
|
634
|
+
"onUpdate:modelValue": l[9] || (l[9] = (o) => e.active = o)
|
|
619
635
|
}, {
|
|
620
636
|
default: n(() => [
|
|
621
|
-
a(
|
|
637
|
+
a(D, { label: "Y" }, {
|
|
622
638
|
default: n(() => [
|
|
623
|
-
|
|
639
|
+
c(u(r(t)("启用")), 1)
|
|
624
640
|
]),
|
|
625
641
|
_: 1
|
|
626
642
|
}),
|
|
627
|
-
a(
|
|
643
|
+
a(D, { label: "N" }, {
|
|
628
644
|
default: n(() => [
|
|
629
|
-
|
|
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(
|
|
658
|
+
a(x, { span: 24 }, {
|
|
643
659
|
default: n(() => [
|
|
644
|
-
a(
|
|
660
|
+
a(p, {
|
|
645
661
|
label: r(t)("值"),
|
|
646
662
|
prop: "value"
|
|
647
663
|
}, {
|
|
648
664
|
default: n(() => [
|
|
649
|
-
e.type === "TEXT" ? (
|
|
665
|
+
e.type === "TEXT" ? (v(), w(d, {
|
|
650
666
|
key: 0,
|
|
651
667
|
modelValue: e.value,
|
|
652
|
-
"onUpdate:modelValue": l[
|
|
668
|
+
"onUpdate:modelValue": l[10] || (l[10] = (o) => e.value = o),
|
|
653
669
|
clearable: ""
|
|
654
|
-
}, null, 8, ["modelValue"])) : e.type === "NUMBER" ? (
|
|
670
|
+
}, null, 8, ["modelValue"])) : e.type === "NUMBER" ? (v(), w(ve, {
|
|
655
671
|
key: 1,
|
|
656
672
|
modelValue: e.value,
|
|
657
|
-
"onUpdate:modelValue": l[
|
|
658
|
-
}, null, 8, ["modelValue"])) : e.type === "IMAGE" ? (
|
|
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[
|
|
662
|
-
}, null, 8, ["modelValue"])) : e.type === "COLOR" ? (
|
|
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[
|
|
681
|
+
"onUpdate:modelValue": l[14] || (l[14] = (o) => e.value = o),
|
|
666
682
|
clearable: ""
|
|
667
683
|
}, {
|
|
668
684
|
prefix: n(() => [
|
|
669
|
-
a(
|
|
685
|
+
a(_e, {
|
|
670
686
|
"color-format": "hex",
|
|
671
687
|
modelValue: e.value,
|
|
672
|
-
"onUpdate:modelValue": l[
|
|
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" ? (
|
|
692
|
+
}, 8, ["modelValue"])) : e.type === "DATETIME" ? (v(), w(ge, {
|
|
677
693
|
key: 4,
|
|
678
694
|
modelValue: e.value,
|
|
679
|
-
"onUpdate:modelValue": l[
|
|
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" ? (
|
|
699
|
+
}, null, 8, ["modelValue", "placeholder"])) : e.type === "BOOLEAN" ? (v(), w(be, {
|
|
683
700
|
key: 5,
|
|
684
701
|
modelValue: A.value,
|
|
685
|
-
"onUpdate:modelValue": l[
|
|
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"])) :
|
|
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(
|
|
714
|
+
a(x, { span: 24 }, {
|
|
698
715
|
default: n(() => [
|
|
699
|
-
a(
|
|
716
|
+
a(p, {
|
|
700
717
|
label: r(t)("说明"),
|
|
701
718
|
prop: "description"
|
|
702
719
|
}, {
|
|
703
720
|
default: n(() => [
|
|
704
|
-
a(
|
|
721
|
+
a(d, {
|
|
705
722
|
type: "textarea",
|
|
706
723
|
modelValue: e.description,
|
|
707
|
-
"onUpdate:modelValue": l[
|
|
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
|
-
|
|
747
|
+
qe as default
|
|
731
748
|
};
|
|
732
|
-
//# sourceMappingURL=SysConfig-
|
|
749
|
+
//# sourceMappingURL=SysConfig-CyBsfxKk.js.map
|