gs-eant-comp 3.0.7 → 3.0.9
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/dist/gs-eant-comp.css +1 -1
- package/dist/gs-eant-comp.js +5213 -26
- package/dist/gs-eant-comp.umd.cjs +4 -18
- package/package.json +1 -1
- package/dist/Activate-CfIQc-Zp.js +0 -169
- package/dist/ActivateForm-Cfmxf7JB.js +0 -134
- package/dist/AuthCallbackCAS-CLg-ACaV.js +0 -26
- package/dist/AuthCallbackOauth-DlRCCsJV.js +0 -30
- package/dist/AutoTaskEList-wQ6PdTlr.js +0 -291
- package/dist/AutoTaskEditor-BHiZevKj.js +0 -275
- package/dist/AutoTaskLog-DDKrty5r.js +0 -48
- package/dist/AutoTaskViewer-CYvggIGV.js +0 -33
- package/dist/DepartmentEList-CF6bKecL.js +0 -209
- package/dist/DepartmentETable-mct60T1p.js +0 -135
- package/dist/DepartmentETree-e6bJiA4U.js +0 -46
- package/dist/DepartmentETree-vL3HbFkn.js +0 -44
- package/dist/DepartmentEditor-CU5XTCf2.js +0 -214
- package/dist/DepartmentUserEList-BvYeoku6.js +0 -171
- package/dist/DepartmentViewer-CXMXe42a.js +0 -34
- package/dist/FlowCenter-CdrOcmJ3.js +0 -52
- package/dist/IconPicker-BplgUQ5t.js +0 -129
- package/dist/IconSelect-NuAXvxVh.js +0 -70
- package/dist/LogETable-B28F96I_.js +0 -221
- package/dist/LogETable-BkLXbzIJ.js +0 -220
- package/dist/LogETable-D938B_TI.js +0 -231
- package/dist/LogEditor-5nlkOAyR.js +0 -136
- package/dist/LogEditor-C2rGmjR_.js +0 -130
- package/dist/LogEditor-Dde9DlwW.js +0 -138
- package/dist/LoginForm-B-DefUdK.js +0 -346
- package/dist/LoginLogViewer-BrlSaCPp.js +0 -33
- package/dist/LoginPageClassic-D2a8kWiH.js +0 -91
- package/dist/LoginPagePortal-Q-Lwwpbu.js +0 -140
- package/dist/LoginViewer-Dxx6tjuD.js +0 -39
- package/dist/MenuApi-DzYTJysM.js +0 -162
- package/dist/MenuDrag-tjmY7o1N.js +0 -108
- package/dist/MenuETable-BAgUF0iO.js +0 -415
- package/dist/MenuEditor-luvfizeH.js +0 -431
- package/dist/MenuViewer-CpGhh20J.js +0 -35
- package/dist/OauthCallback-B_GjYhqd.js +0 -30
- package/dist/OperationLogViewer-DR9PO9Ea.js +0 -32
- package/dist/RegisterForm-C1c1SEvn.js +0 -134
- package/dist/RoleETree-CKy46-Zn.js +0 -150
- package/dist/RoleEditor-CNS3Qk8w.js +0 -168
- package/dist/RoleFacePermission-DEpiV8Zt.js +0 -92
- package/dist/RoleInterfacePermissionETable-Co773S1r.js +0 -115
- package/dist/RoleInterfacePermissionTree-ClUoM85L.js +0 -90
- package/dist/RoleMenuPermissionTree-D5UQJvZR.js +0 -81
- package/dist/RoleUserAddEditor-BlvKzs8m.js +0 -164
- package/dist/RoleUserEList-My5QAm8G.js +0 -106
- package/dist/RoleUserETable-Os7RJeik.js +0 -189
- package/dist/RoleUserManagerViewer-BduFxkpG.js +0 -109
- package/dist/RoleV2Viewer-DQzjP589.js +0 -139
- package/dist/RoleViewer-Dcg3qCCk.js +0 -74
- package/dist/SystemLogViewer-CTYfCAD0.js +0 -33
- package/dist/TaskCenter-CiUnpJ8A.js +0 -251
- package/dist/TaskCenter_v1-D9AxQsFj.js +0 -55
- package/dist/UserEList-BZOI6u_o.js +0 -279
- package/dist/UserEditor-CMaL_euI.js +0 -330
- package/dist/UserViewer-DI_f9xYf.js +0 -55
- package/dist/iconfont-CXJEu-zK.js +0 -7
- package/dist/index-C3Fr-kGd.js +0 -7899
- package/dist/useExComponentActions-BBBV87vq.js +0 -18
|
@@ -1,431 +0,0 @@
|
|
|
1
|
-
import { defineComponent as J, resolveComponent as u, createBlock as q, openBlock as A, withCtx as a, createVNode as l, createTextVNode as $, toDisplayString as T, mergeProps as v, createElementVNode as Q, createCommentVNode as W, toRefs as X, inject as y, reactive as k, ref as N } from "vue";
|
|
2
|
-
import { useRequest as z } from "vue-request";
|
|
3
|
-
import { Form as Y } from "ant-design-vue";
|
|
4
|
-
import { i as j } from "./iconfont-CXJEu-zK.js";
|
|
5
|
-
import Z from "./IconSelect-NuAXvxVh.js";
|
|
6
|
-
import { _ } from "./index-C3Fr-kGd.js";
|
|
7
|
-
const ee = Y.useForm, le = J({
|
|
8
|
-
components: { IconSelect: Z },
|
|
9
|
-
props: {
|
|
10
|
-
xs: {
|
|
11
|
-
type: Number,
|
|
12
|
-
default: 24
|
|
13
|
-
},
|
|
14
|
-
lg: {
|
|
15
|
-
type: Number,
|
|
16
|
-
default: 24
|
|
17
|
-
},
|
|
18
|
-
span: {
|
|
19
|
-
type: Number,
|
|
20
|
-
default: 4
|
|
21
|
-
},
|
|
22
|
-
layout: {
|
|
23
|
-
type: String,
|
|
24
|
-
default: "horizontal"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
setup(e) {
|
|
28
|
-
const { xs: o, lg: B, span: D, layout: M } = X(e), g = y("$API"), h = k(g.menu.add), n = k(g.menu.info), r = k(g.menu.update), f = y("refETable"), S = y("refEModal"), c = y("selectedKey", N()), d = N({
|
|
29
|
-
cddm: "",
|
|
30
|
-
cdmc: "",
|
|
31
|
-
xssx: "",
|
|
32
|
-
fjd: "",
|
|
33
|
-
sfky: "1",
|
|
34
|
-
component: "",
|
|
35
|
-
name: "",
|
|
36
|
-
icon: "",
|
|
37
|
-
redirect: "",
|
|
38
|
-
affix: "",
|
|
39
|
-
keepalive: ""
|
|
40
|
-
}), b = k({
|
|
41
|
-
cddm: [{ required: !0, message: "请填写信息" }],
|
|
42
|
-
cdmc: [{ required: !0, message: "请填写信息" }],
|
|
43
|
-
xssx: [{ required: !0, message: "请填写信息" }],
|
|
44
|
-
sfky: [{ required: !0, message: "请填写信息" }],
|
|
45
|
-
icon: [{ required: !0, message: "请填写信息" }]
|
|
46
|
-
}), { run: w, error: x, loading: I } = z(
|
|
47
|
-
(s) => n[n.method](s),
|
|
48
|
-
{
|
|
49
|
-
manual: !0,
|
|
50
|
-
onSuccess: (s) => {
|
|
51
|
-
d.value = s.data;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
c.value && w({ key: c.value });
|
|
56
|
-
const { run: U, loading: t } = z(
|
|
57
|
-
async (s) => {
|
|
58
|
-
const i = c.value ? r : h;
|
|
59
|
-
return i[i.method](s);
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
debounceInterval: 300,
|
|
63
|
-
manual: !0,
|
|
64
|
-
onSuccess: (s) => {
|
|
65
|
-
f.value.sync(), S.value.open = !1;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
), { resetFields: C, validate: F, validateInfos: R } = ee(d, b), K = async () => {
|
|
69
|
-
try {
|
|
70
|
-
await F(), U(d.value);
|
|
71
|
-
} catch {
|
|
72
|
-
}
|
|
73
|
-
}, L = f.value.dataList, O = (s, i, E) => {
|
|
74
|
-
let m = i.children, p;
|
|
75
|
-
m && m.length > 0 ? p = parseInt(m[m.length - 1].xssx.slice(-2)) + 2 : p = 1;
|
|
76
|
-
const H = p < 10 ? `0${p}` : `${p}`;
|
|
77
|
-
d.value.cddm = s + H, d.value.name = d.value.cddm;
|
|
78
|
-
let V = p;
|
|
79
|
-
const G = V < 10 ? `0${V}` : `${V}`;
|
|
80
|
-
d.value.xssx = parseInt(G) - 1;
|
|
81
|
-
}, P = N(
|
|
82
|
-
j.glyphs.map((s) => ({
|
|
83
|
-
label: j.css_prefix_text + s.font_class,
|
|
84
|
-
// 显示在下拉菜单中的文本
|
|
85
|
-
value: j.css_prefix_text + s.font_class
|
|
86
|
-
// 选择的值
|
|
87
|
-
})).sort((s, i) => {
|
|
88
|
-
const E = s.value.endsWith("-fill") || s.value.endsWith("-fil"), m = i.value.endsWith("-fill") || i.value.endsWith("-fil");
|
|
89
|
-
return E && !m ? 1 : !E && m ? -1 : 0;
|
|
90
|
-
})
|
|
91
|
-
);
|
|
92
|
-
return {
|
|
93
|
-
error: x,
|
|
94
|
-
loading: I,
|
|
95
|
-
save_loading: t,
|
|
96
|
-
formState: d,
|
|
97
|
-
resetFields: C,
|
|
98
|
-
validate: F,
|
|
99
|
-
validateInfos: R,
|
|
100
|
-
onSubmit: K,
|
|
101
|
-
treeData: L,
|
|
102
|
-
onSelect: O,
|
|
103
|
-
icons: P
|
|
104
|
-
};
|
|
105
|
-
}
|
|
106
|
-
}), ae = { class: "bg-light px-3 me-4" };
|
|
107
|
-
function te(e, o, B, D, M, g) {
|
|
108
|
-
const h = u("a-tree-select"), n = u("a-form-item"), r = u("a-col"), f = u("a-input"), S = u("a-icon"), c = u("ESelect"), d = u("a-switch"), b = u("a-row"), w = u("a-button"), x = u("a-space"), I = u("a-form"), U = u("ESpin");
|
|
109
|
-
return A(), q(U, {
|
|
110
|
-
spinning: e.loading,
|
|
111
|
-
error: e.error
|
|
112
|
-
}, {
|
|
113
|
-
default: a(() => [
|
|
114
|
-
l(I, {
|
|
115
|
-
class: "d-flex flex-column h-100 justify-content-between flex-fill",
|
|
116
|
-
autocomplete: "off",
|
|
117
|
-
layout: e.layout,
|
|
118
|
-
"label-col": { span: e.layout == "vertical" ? 24 : 24 / e.lg * e.span },
|
|
119
|
-
"wrapper-col": { span: e.layout == "vertical" ? 24 : 24 - 24 / e.lg * e.span }
|
|
120
|
-
}, {
|
|
121
|
-
default: a(() => [
|
|
122
|
-
l(b, { class: "ofa flex-fill py-3 px-3" }, {
|
|
123
|
-
default: a(() => [
|
|
124
|
-
l(r, {
|
|
125
|
-
xs: e.xs,
|
|
126
|
-
lg: e.lg
|
|
127
|
-
}, {
|
|
128
|
-
default: a(() => [
|
|
129
|
-
l(n, {
|
|
130
|
-
label: "父节点",
|
|
131
|
-
name: "fjd"
|
|
132
|
-
}, {
|
|
133
|
-
default: a(() => [
|
|
134
|
-
l(h, {
|
|
135
|
-
value: e.formState.fjd,
|
|
136
|
-
"onUpdate:value": o[0] || (o[0] = (t) => e.formState.fjd = t),
|
|
137
|
-
"show-search": "",
|
|
138
|
-
style: { width: "100%" },
|
|
139
|
-
"dropdown-style": { maxHeight: "400px", overflow: "auto" },
|
|
140
|
-
placeholder: "如果是一级菜单,此项为null",
|
|
141
|
-
"allow-clear": "",
|
|
142
|
-
"tree-default-expand-all": "",
|
|
143
|
-
"tree-data": e.treeData,
|
|
144
|
-
"field-names": { children: "children", label: "cdmc", value: "cddm" },
|
|
145
|
-
"tree-node-filter-prop": "cdmc",
|
|
146
|
-
onSelect: e.onSelect
|
|
147
|
-
}, {
|
|
148
|
-
title: a(({ cdmc: t }) => [
|
|
149
|
-
$(T(t), 1)
|
|
150
|
-
]),
|
|
151
|
-
_: 1
|
|
152
|
-
}, 8, ["value", "tree-data", "onSelect"])
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
})
|
|
156
|
-
]),
|
|
157
|
-
_: 1
|
|
158
|
-
}, 8, ["xs", "lg"]),
|
|
159
|
-
l(r, {
|
|
160
|
-
xs: e.xs,
|
|
161
|
-
lg: e.lg
|
|
162
|
-
}, {
|
|
163
|
-
default: a(() => [
|
|
164
|
-
l(n, v({
|
|
165
|
-
label: "显示顺序",
|
|
166
|
-
name: "xssx"
|
|
167
|
-
}, e.validateInfos.xssx), {
|
|
168
|
-
default: a(() => [
|
|
169
|
-
l(f, {
|
|
170
|
-
value: e.formState.xssx,
|
|
171
|
-
"onUpdate:value": o[1] || (o[1] = (t) => e.formState.xssx = t)
|
|
172
|
-
}, null, 8, ["value"])
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
}, 16)
|
|
176
|
-
]),
|
|
177
|
-
_: 1
|
|
178
|
-
}, 8, ["xs", "lg"]),
|
|
179
|
-
l(r, {
|
|
180
|
-
xs: e.xs,
|
|
181
|
-
lg: e.lg
|
|
182
|
-
}, {
|
|
183
|
-
default: a(() => [
|
|
184
|
-
l(n, v({
|
|
185
|
-
label: "菜单代码",
|
|
186
|
-
name: "cddm"
|
|
187
|
-
}, e.validateInfos.cddm), {
|
|
188
|
-
default: a(() => [
|
|
189
|
-
l(f, {
|
|
190
|
-
value: e.formState.cddm,
|
|
191
|
-
"onUpdate:value": o[2] || (o[2] = (t) => e.formState.cddm = t)
|
|
192
|
-
}, null, 8, ["value"])
|
|
193
|
-
]),
|
|
194
|
-
_: 1
|
|
195
|
-
}, 16)
|
|
196
|
-
]),
|
|
197
|
-
_: 1
|
|
198
|
-
}, 8, ["xs", "lg"]),
|
|
199
|
-
l(r, {
|
|
200
|
-
xs: e.xs,
|
|
201
|
-
lg: e.lg
|
|
202
|
-
}, {
|
|
203
|
-
default: a(() => [
|
|
204
|
-
l(n, v({
|
|
205
|
-
label: "菜单名称",
|
|
206
|
-
name: "cdmc"
|
|
207
|
-
}, e.validateInfos.cdmc), {
|
|
208
|
-
default: a(() => [
|
|
209
|
-
l(f, {
|
|
210
|
-
value: e.formState.cdmc,
|
|
211
|
-
"onUpdate:value": o[3] || (o[3] = (t) => e.formState.cdmc = t)
|
|
212
|
-
}, null, 8, ["value"])
|
|
213
|
-
]),
|
|
214
|
-
_: 1
|
|
215
|
-
}, 16)
|
|
216
|
-
]),
|
|
217
|
-
_: 1
|
|
218
|
-
}, 8, ["xs", "lg"]),
|
|
219
|
-
l(r, {
|
|
220
|
-
xs: e.xs,
|
|
221
|
-
lg: e.lg
|
|
222
|
-
}, {
|
|
223
|
-
default: a(() => [
|
|
224
|
-
l(n, v({
|
|
225
|
-
label: "菜单图标",
|
|
226
|
-
name: "icon"
|
|
227
|
-
}, e.validateInfos.icon), {
|
|
228
|
-
default: a(() => [
|
|
229
|
-
l(c, {
|
|
230
|
-
placeholder: "选择图标",
|
|
231
|
-
class: "w-100",
|
|
232
|
-
size: "small",
|
|
233
|
-
"show-arrow": !0,
|
|
234
|
-
value: e.formState.icon,
|
|
235
|
-
"onUpdate:value": o[4] || (o[4] = (t) => e.formState.icon = t),
|
|
236
|
-
selectOptions: e.icons
|
|
237
|
-
}, {
|
|
238
|
-
suffixIcon: a(() => [
|
|
239
|
-
Q("div", ae, [
|
|
240
|
-
e.formState.icon ? (A(), q(S, {
|
|
241
|
-
key: 0,
|
|
242
|
-
type: e.formState.icon,
|
|
243
|
-
style: { fontSize: "18px", cursor: "pointer", color: "#1890ff" }
|
|
244
|
-
}, null, 8, ["type"])) : W("", !0)
|
|
245
|
-
])
|
|
246
|
-
]),
|
|
247
|
-
option: a(({ label: t, value: C }) => [
|
|
248
|
-
l(S, {
|
|
249
|
-
type: C,
|
|
250
|
-
style: { "margin-right": "8px" }
|
|
251
|
-
}, null, 8, ["type"]),
|
|
252
|
-
$(" " + T(t), 1)
|
|
253
|
-
]),
|
|
254
|
-
_: 1
|
|
255
|
-
}, 8, ["value", "selectOptions"])
|
|
256
|
-
]),
|
|
257
|
-
_: 1
|
|
258
|
-
}, 16)
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
}, 8, ["xs", "lg"]),
|
|
262
|
-
l(r, {
|
|
263
|
-
xs: e.xs,
|
|
264
|
-
lg: e.lg
|
|
265
|
-
}, {
|
|
266
|
-
default: a(() => [
|
|
267
|
-
l(n, v({
|
|
268
|
-
label: "是否可用",
|
|
269
|
-
name: "sfky"
|
|
270
|
-
}, e.validateInfos.sfky), {
|
|
271
|
-
default: a(() => [
|
|
272
|
-
l(d, {
|
|
273
|
-
checked: e.formState.sfky,
|
|
274
|
-
"onUpdate:checked": o[5] || (o[5] = (t) => e.formState.sfky = t),
|
|
275
|
-
"checked-children": "开",
|
|
276
|
-
"un-checked-children": "关",
|
|
277
|
-
checkedValue: "1",
|
|
278
|
-
unCheckedValue: "0"
|
|
279
|
-
}, null, 8, ["checked"])
|
|
280
|
-
]),
|
|
281
|
-
_: 1
|
|
282
|
-
}, 16)
|
|
283
|
-
]),
|
|
284
|
-
_: 1
|
|
285
|
-
}, 8, ["xs", "lg"]),
|
|
286
|
-
l(r, {
|
|
287
|
-
xs: e.xs,
|
|
288
|
-
lg: e.lg
|
|
289
|
-
}, {
|
|
290
|
-
default: a(() => [
|
|
291
|
-
l(n, {
|
|
292
|
-
label: "组件名称",
|
|
293
|
-
name: "name"
|
|
294
|
-
}, {
|
|
295
|
-
default: a(() => [
|
|
296
|
-
l(f, {
|
|
297
|
-
value: e.formState.name,
|
|
298
|
-
"onUpdate:value": o[6] || (o[6] = (t) => e.formState.name = t)
|
|
299
|
-
}, null, 8, ["value"])
|
|
300
|
-
]),
|
|
301
|
-
_: 1
|
|
302
|
-
})
|
|
303
|
-
]),
|
|
304
|
-
_: 1
|
|
305
|
-
}, 8, ["xs", "lg"]),
|
|
306
|
-
l(r, {
|
|
307
|
-
xs: e.xs,
|
|
308
|
-
lg: e.lg
|
|
309
|
-
}, {
|
|
310
|
-
default: a(() => [
|
|
311
|
-
l(n, {
|
|
312
|
-
label: "组件路径",
|
|
313
|
-
name: "component"
|
|
314
|
-
}, {
|
|
315
|
-
default: a(() => [
|
|
316
|
-
l(f, {
|
|
317
|
-
value: e.formState.component,
|
|
318
|
-
"onUpdate:value": o[7] || (o[7] = (t) => e.formState.component = t)
|
|
319
|
-
}, null, 8, ["value"])
|
|
320
|
-
]),
|
|
321
|
-
_: 1
|
|
322
|
-
})
|
|
323
|
-
]),
|
|
324
|
-
_: 1
|
|
325
|
-
}, 8, ["xs", "lg"]),
|
|
326
|
-
l(r, {
|
|
327
|
-
xs: e.xs,
|
|
328
|
-
lg: e.lg
|
|
329
|
-
}, {
|
|
330
|
-
default: a(() => [
|
|
331
|
-
l(n, {
|
|
332
|
-
label: "重定向",
|
|
333
|
-
name: "redirect"
|
|
334
|
-
}, {
|
|
335
|
-
default: a(() => [
|
|
336
|
-
l(f, {
|
|
337
|
-
value: e.formState.redirect,
|
|
338
|
-
"onUpdate:value": o[8] || (o[8] = (t) => e.formState.redirect = t)
|
|
339
|
-
}, null, 8, ["value"])
|
|
340
|
-
]),
|
|
341
|
-
_: 1
|
|
342
|
-
})
|
|
343
|
-
]),
|
|
344
|
-
_: 1
|
|
345
|
-
}, 8, ["xs", "lg"]),
|
|
346
|
-
l(r, {
|
|
347
|
-
xs: e.xs,
|
|
348
|
-
lg: e.lg
|
|
349
|
-
}, {
|
|
350
|
-
default: a(() => [
|
|
351
|
-
l(n, {
|
|
352
|
-
label: "固定标签",
|
|
353
|
-
name: "affix"
|
|
354
|
-
}, {
|
|
355
|
-
default: a(() => [
|
|
356
|
-
l(d, {
|
|
357
|
-
checked: e.formState.affix,
|
|
358
|
-
"onUpdate:checked": o[9] || (o[9] = (t) => e.formState.affix = t),
|
|
359
|
-
"checked-children": "开",
|
|
360
|
-
"un-checked-children": "关",
|
|
361
|
-
checkedValue: "true",
|
|
362
|
-
unCheckedValue: "false"
|
|
363
|
-
}, null, 8, ["checked"])
|
|
364
|
-
]),
|
|
365
|
-
_: 1
|
|
366
|
-
})
|
|
367
|
-
]),
|
|
368
|
-
_: 1
|
|
369
|
-
}, 8, ["xs", "lg"]),
|
|
370
|
-
l(r, {
|
|
371
|
-
xs: e.xs,
|
|
372
|
-
lg: e.lg
|
|
373
|
-
}, {
|
|
374
|
-
default: a(() => [
|
|
375
|
-
l(n, {
|
|
376
|
-
label: "开启缓存",
|
|
377
|
-
name: "keepalive"
|
|
378
|
-
}, {
|
|
379
|
-
default: a(() => [
|
|
380
|
-
l(d, {
|
|
381
|
-
checked: e.formState.keepalive,
|
|
382
|
-
"onUpdate:checked": o[10] || (o[10] = (t) => e.formState.keepalive = t),
|
|
383
|
-
"checked-children": "开",
|
|
384
|
-
"un-checked-children": "关",
|
|
385
|
-
checkedValue: "true",
|
|
386
|
-
unCheckedValue: "false"
|
|
387
|
-
}, null, 8, ["checked"])
|
|
388
|
-
]),
|
|
389
|
-
_: 1
|
|
390
|
-
})
|
|
391
|
-
]),
|
|
392
|
-
_: 1
|
|
393
|
-
}, 8, ["xs", "lg"])
|
|
394
|
-
]),
|
|
395
|
-
_: 1
|
|
396
|
-
}),
|
|
397
|
-
l(n, {
|
|
398
|
-
"wrapper-col": { span: 24, offset: 0 },
|
|
399
|
-
class: "mb-0 p-2 border-top"
|
|
400
|
-
}, {
|
|
401
|
-
default: a(() => [
|
|
402
|
-
l(x, { class: "d-flex justify-content-end" }, {
|
|
403
|
-
default: a(() => [
|
|
404
|
-
W("", !0),
|
|
405
|
-
l(w, {
|
|
406
|
-
type: "primary",
|
|
407
|
-
onClick: e.onSubmit,
|
|
408
|
-
loading: e.save_loading
|
|
409
|
-
}, {
|
|
410
|
-
default: a(() => [...o[12] || (o[12] = [
|
|
411
|
-
$("保存", -1)
|
|
412
|
-
])]),
|
|
413
|
-
_: 1
|
|
414
|
-
}, 8, ["onClick", "loading"])
|
|
415
|
-
]),
|
|
416
|
-
_: 1
|
|
417
|
-
})
|
|
418
|
-
]),
|
|
419
|
-
_: 1
|
|
420
|
-
})
|
|
421
|
-
]),
|
|
422
|
-
_: 1
|
|
423
|
-
}, 8, ["layout", "label-col", "wrapper-col"])
|
|
424
|
-
]),
|
|
425
|
-
_: 1
|
|
426
|
-
}, 8, ["spinning", "error"]);
|
|
427
|
-
}
|
|
428
|
-
const fe = /* @__PURE__ */ _(le, [["render", te]]);
|
|
429
|
-
export {
|
|
430
|
-
fe as default
|
|
431
|
-
};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, resolveComponent as e, createElementBlock as r, openBlock as a, createVNode as o, withCtx as n } from "vue";
|
|
2
|
-
import f from "./MenuETable-BAgUF0iO.js";
|
|
3
|
-
import { _ } from "./index-C3Fr-kGd.js";
|
|
4
|
-
const p = s({
|
|
5
|
-
name: "N9001",
|
|
6
|
-
components: { MenuETable: f },
|
|
7
|
-
setup() {
|
|
8
|
-
}
|
|
9
|
-
}), m = { class: "pt-3 ps-3 bg-light h-100 d-flex flex-column overflow-hidden" };
|
|
10
|
-
function d(i, u, x, h, w, b) {
|
|
11
|
-
const t = e("MenuETable"), l = e("a-col"), c = e("a-row");
|
|
12
|
-
return a(), r("div", m, [
|
|
13
|
-
o(c, {
|
|
14
|
-
gutter: [16, 16],
|
|
15
|
-
class: "h-100 flex-fill overflow-hidden"
|
|
16
|
-
}, {
|
|
17
|
-
default: n(() => [
|
|
18
|
-
o(l, {
|
|
19
|
-
span: 24,
|
|
20
|
-
class: "flex-fill d-flex flex-column"
|
|
21
|
-
}, {
|
|
22
|
-
default: n(() => [
|
|
23
|
-
o(t)
|
|
24
|
-
]),
|
|
25
|
-
_: 1
|
|
26
|
-
})
|
|
27
|
-
]),
|
|
28
|
-
_: 1
|
|
29
|
-
})
|
|
30
|
-
]);
|
|
31
|
-
}
|
|
32
|
-
const $ = /* @__PURE__ */ _(p, [["render", d]]);
|
|
33
|
-
export {
|
|
34
|
-
$ as default
|
|
35
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, createElementBlock as p, openBlock as m, inject as d } from "vue";
|
|
2
|
-
import { useStore as f } from "vuex";
|
|
3
|
-
import { useRouter as l } from "vue-router";
|
|
4
|
-
import { useRequest as h } from "vue-request";
|
|
5
|
-
import { _, D as i } from "./index-C3Fr-kGd.js";
|
|
6
|
-
const A = u({
|
|
7
|
-
setup() {
|
|
8
|
-
const c = f(), n = l(), a = d("$API"), s = (o) => a.auth.oauthCallback.post(o), { run: e } = h(s, {
|
|
9
|
-
manual: !0,
|
|
10
|
-
onSuccess: (o) => {
|
|
11
|
-
o.code == "401" && i.CAPTCHA_ENABLED, o && (c.commit("LOGIN_IN", o.data.token), n.push({ path: "/" }));
|
|
12
|
-
}
|
|
13
|
-
}), t = new URLSearchParams(window.location.search), r = t.get("code");
|
|
14
|
-
if (r)
|
|
15
|
-
if (i.CAPTCHA_ENABLED) {
|
|
16
|
-
const o = t.get("captcha");
|
|
17
|
-
e({ code: r, providerName: "idp", captcha: o });
|
|
18
|
-
} else
|
|
19
|
-
e({ code: r, providerName: "idp" });
|
|
20
|
-
else
|
|
21
|
-
console.error("Authorization code not found in URL.");
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
function C(c, n, a, s, e, t) {
|
|
25
|
-
return m(), p("div", null, "正在处理授权...");
|
|
26
|
-
}
|
|
27
|
-
const $ = /* @__PURE__ */ _(A, [["render", C]]);
|
|
28
|
-
export {
|
|
29
|
-
$ as default
|
|
30
|
-
};
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { defineComponent as l, resolveComponent as o, createElementBlock as r, openBlock as a, createVNode as e, withCtx as t } from "vue";
|
|
2
|
-
import p from "./LogETable-D938B_TI.js";
|
|
3
|
-
import { _ } from "./index-C3Fr-kGd.js";
|
|
4
|
-
const f = l({
|
|
5
|
-
components: { LogETable: p },
|
|
6
|
-
setup() {
|
|
7
|
-
return {};
|
|
8
|
-
}
|
|
9
|
-
}), m = { class: "pt-lg-3 ps-lg-3 bg-light h-100 d-flex flex-column overflow-hidden" };
|
|
10
|
-
function d(i, u, g, h, x, w) {
|
|
11
|
-
const n = o("LogETable"), c = o("a-col"), s = o("a-row");
|
|
12
|
-
return a(), r("div", m, [
|
|
13
|
-
e(s, { class: "h-100" }, {
|
|
14
|
-
default: t(() => [
|
|
15
|
-
e(c, {
|
|
16
|
-
span: 24,
|
|
17
|
-
class: "h-100 d-flex flex-column"
|
|
18
|
-
}, {
|
|
19
|
-
default: t(() => [
|
|
20
|
-
e(n)
|
|
21
|
-
]),
|
|
22
|
-
_: 1
|
|
23
|
-
})
|
|
24
|
-
]),
|
|
25
|
-
_: 1
|
|
26
|
-
})
|
|
27
|
-
]);
|
|
28
|
-
}
|
|
29
|
-
const $ = /* @__PURE__ */ _(f, [["render", d]]);
|
|
30
|
-
export {
|
|
31
|
-
$ as default
|
|
32
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { computed as x, ref as p, provide as B, reactive as R, inject as O, resolveComponent as s, createBlock as u, openBlock as d, withCtx as o, createElementVNode as c, normalizeClass as S, createVNode as t, createCommentVNode as m, unref as w, createTextVNode as G } from "vue";
|
|
2
|
-
import { useStore as H } from "vuex";
|
|
3
|
-
import { useRouter as K } from "vue-router";
|
|
4
|
-
import { useRequest as q } from "vue-request";
|
|
5
|
-
import { _ as z, D as C } from "./index-C3Fr-kGd.js";
|
|
6
|
-
const W = { class: "flex-fill d-flex flex-column justify-content-between" }, $ = ["src"], J = {
|
|
7
|
-
__name: "RegisterForm",
|
|
8
|
-
setup(M) {
|
|
9
|
-
x(() => [
|
|
10
|
-
{ key: "login", label: "用户登录" }
|
|
11
|
-
// [ 用户登录、访客登陆、学生登录 ]
|
|
12
|
-
//{ key: 'register', label: '用户注册' }, // [ 账号注册、 ]
|
|
13
|
-
//{ key: 'activate', label: '账号激活' }, // [ 邀请码登录、手机号登录、账号+姓名激活]
|
|
14
|
-
]);
|
|
15
|
-
const g = p("login");
|
|
16
|
-
B("activeKey", g);
|
|
17
|
-
const _ = H(), E = K(), e = R({
|
|
18
|
-
username: "",
|
|
19
|
-
password: "",
|
|
20
|
-
captcha: ""
|
|
21
|
-
}), F = O("$API"), k = (n) => F.auth.login.post(e), { run: N } = q(k, {
|
|
22
|
-
manual: !0,
|
|
23
|
-
onSuccess: (n) => {
|
|
24
|
-
n && (_.commit("LOGIN_IN", n.data.token), E.push({ path: "/" }));
|
|
25
|
-
},
|
|
26
|
-
onError: (n) => {
|
|
27
|
-
y();
|
|
28
|
-
}
|
|
29
|
-
}), P = () => {
|
|
30
|
-
N();
|
|
31
|
-
}, A = () => {
|
|
32
|
-
}, f = p(), D = () => {
|
|
33
|
-
f.value = !0;
|
|
34
|
-
}, T = () => {
|
|
35
|
-
f.value = !1;
|
|
36
|
-
}, v = process.env.NODE_ENV !== "production" || process.env.VUE_APP_PREVIEW === "true", h = p((v ? "api/" : "") + "captcha/captcha.jpg?" + (/* @__PURE__ */ new Date()).getTime()), y = () => {
|
|
37
|
-
h.value = (v ? "api/" : "") + "captcha/captcha.jpg?" + +(/* @__PURE__ */ new Date()).getTime();
|
|
38
|
-
}, V = x(() => _.state.app.loginLayoutType === "classic");
|
|
39
|
-
return (n, a) => {
|
|
40
|
-
const l = s("a-icon"), b = s("a-input"), i = s("a-form-item"), I = s("a-input-password"), L = s("a-divider"), U = s("a-button"), j = s("a-form");
|
|
41
|
-
return d(), u(j, {
|
|
42
|
-
class: "h-100 d-flex flex-column justify-content-between bg-transparent",
|
|
43
|
-
layout: "vertical",
|
|
44
|
-
model: e,
|
|
45
|
-
onFinish: P,
|
|
46
|
-
onFinishFailed: A
|
|
47
|
-
}, {
|
|
48
|
-
default: o(() => [
|
|
49
|
-
c("div", W, [
|
|
50
|
-
c("div", {
|
|
51
|
-
class: S(["flex-fill py-3", V.value ? "ofa" : ""])
|
|
52
|
-
}, [
|
|
53
|
-
t(i, { label: "账号" }, {
|
|
54
|
-
default: o(() => [
|
|
55
|
-
t(b, {
|
|
56
|
-
value: e.username,
|
|
57
|
-
"onUpdate:value": a[0] || (a[0] = (r) => e.username = r),
|
|
58
|
-
placeholder: "请输入账号"
|
|
59
|
-
}, {
|
|
60
|
-
prefix: o(() => [
|
|
61
|
-
t(l, { type: "icon-user" })
|
|
62
|
-
]),
|
|
63
|
-
_: 1
|
|
64
|
-
}, 8, ["value"])
|
|
65
|
-
]),
|
|
66
|
-
_: 1
|
|
67
|
-
}),
|
|
68
|
-
t(i, { label: "密码" }, {
|
|
69
|
-
default: o(() => [
|
|
70
|
-
t(I, {
|
|
71
|
-
value: e.password,
|
|
72
|
-
"onUpdate:value": a[1] || (a[1] = (r) => e.password = r),
|
|
73
|
-
placeholder: "请输入密码",
|
|
74
|
-
onFocus: D,
|
|
75
|
-
onBlur: T
|
|
76
|
-
}, {
|
|
77
|
-
prefix: o(() => [
|
|
78
|
-
t(l, { type: "icon-lock" })
|
|
79
|
-
]),
|
|
80
|
-
_: 1
|
|
81
|
-
}, 8, ["value"])
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
}),
|
|
85
|
-
w(C).CAPTCHA_ENABLED ? (d(), u(i, { key: 0 }, {
|
|
86
|
-
label: o(() => [
|
|
87
|
-
c("img", {
|
|
88
|
-
src: h.value,
|
|
89
|
-
onClick: y
|
|
90
|
-
}, null, 8, $)
|
|
91
|
-
]),
|
|
92
|
-
default: o(() => [
|
|
93
|
-
t(b, {
|
|
94
|
-
value: e.captcha,
|
|
95
|
-
"onUpdate:value": a[2] || (a[2] = (r) => e.captcha = r),
|
|
96
|
-
placeholder: "验证码"
|
|
97
|
-
}, {
|
|
98
|
-
prefix: o(() => [
|
|
99
|
-
t(l, { type: "icon-lock" })
|
|
100
|
-
]),
|
|
101
|
-
_: 1
|
|
102
|
-
}, 8, ["value"])
|
|
103
|
-
]),
|
|
104
|
-
_: 1
|
|
105
|
-
})) : m("", !0)
|
|
106
|
-
], 2),
|
|
107
|
-
c("div", null, [
|
|
108
|
-
m("", !0),
|
|
109
|
-
w(C).CAPTCHA_ENABLED ? m("", !0) : (d(), u(L, {
|
|
110
|
-
key: 1,
|
|
111
|
-
class: "d-none d-xxl-block"
|
|
112
|
-
})),
|
|
113
|
-
t(U, {
|
|
114
|
-
block: "",
|
|
115
|
-
type: "primary",
|
|
116
|
-
"html-type": "submit",
|
|
117
|
-
disabled: e.username === "" || e.password === ""
|
|
118
|
-
}, {
|
|
119
|
-
default: o(() => [...a[4] || (a[4] = [
|
|
120
|
-
G("立即登陆", -1)
|
|
121
|
-
])]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["disabled"])
|
|
124
|
-
])
|
|
125
|
-
])
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}, 8, ["model"]);
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
}, oe = /* @__PURE__ */ z(J, [["__scopeId", "data-v-acbcb8bd"]]);
|
|
132
|
-
export {
|
|
133
|
-
oe as default
|
|
134
|
-
};
|