cc1-admin-front 0.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.
- package/README.md +1 -0
- package/dist/App.vue.d.ts +2 -0
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/apis/auth/ApiAuthApi.d.ts +7 -0
- package/dist/apis/auth/ApiAuthMenu.d.ts +6 -0
- package/dist/apis/auth/ApiAuthPhone.d.ts +3 -0
- package/dist/apis/auth/ApiAuthRole.d.ts +12 -0
- package/dist/apis/auth/ApiAuthUser.d.ts +7 -0
- package/dist/apis/auth/ApiCaptcha.d.ts +4 -0
- package/dist/apis/auth/ApiLoginLog.d.ts +4 -0
- package/dist/apis/cron/ApiCron.d.ts +6 -0
- package/dist/apis/db/ApiDb.d.ts +4 -0
- package/dist/apis/email/ApiEmailConfig.d.ts +6 -0
- package/dist/apis/log/ApiErrorLog.d.ts +4 -0
- package/dist/apis/schedule/ApiJob.d.ts +8 -0
- package/dist/apis/sms/ApiSmsConfig.d.ts +7 -0
- package/dist/apis/system/ApiApp.d.ts +4 -0
- package/dist/apis/system/ApiSystemConfig.d.ts +6 -0
- package/dist/apis/system/ApiSystemTenant.d.ts +6 -0
- package/dist/apis/types/query.d.ts +4 -0
- package/dist/cc1-admin-front.css +1 -0
- package/dist/cc1-admin-front.js +937 -0
- package/dist/cc1-admin-front.umd.cjs +1 -0
- package/dist/components/editor/index.vue.d.ts +18 -0
- package/dist/components/formList/index.vue.d.ts +97 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/particle/yinhua/index.vue.d.ts +2 -0
- package/dist/components/routeEvent/index.vue.d.ts +2 -0
- package/dist/enum/Enum.d.ts +15 -0
- package/dist/index--6fokZC8.js +172 -0
- package/dist/index-BTuR22Wh.js +41 -0
- package/dist/index-Bk_LJXIb.js +257 -0
- package/dist/index-C8fkVOS0.js +127 -0
- package/dist/index-CJ5aGrl0.js +152 -0
- package/dist/index-CatA5C4N.js +132 -0
- package/dist/index-D47lvu37.js +333 -0
- package/dist/index-D8U8yEvx.js +49 -0
- package/dist/index-DFNCjb_F.js +69 -0
- package/dist/index-DU5RPuKk.js +95 -0
- package/dist/index-Dkl3LwVN.js +143 -0
- package/dist/index-DvZhYqrw.js +113 -0
- package/dist/index-O3L87IEQ.js +157 -0
- package/dist/index-pxgBPi_e.js +197 -0
- package/dist/index-rnNeo1-y.js +184 -0
- package/dist/index-tQ4ZyO21.js +592 -0
- package/dist/index-uPQ6O40Q.js +180 -0
- package/dist/index.d.ts +41 -0
- package/dist/plugins/index.d.ts +6 -0
- package/dist/plugins/tools-form.d.ts +7 -0
- package/dist/plugins/tools-javascript.d.ts +6 -0
- package/dist/plugins/tools-vue3.d.ts +6 -0
- package/dist/plugins/uivite.d.ts +6 -0
- package/dist/router/index.d.ts +1 -0
- package/dist/sstore/index.d.ts +5 -0
- package/dist/sstore/scurd.d.ts +10 -0
- package/dist/sstore/ssys.d.ts +85 -0
- package/dist/sstore/suser.d.ts +20 -0
- package/dist/sstore/sutil.d.ts +16 -0
- package/dist/sstore/svf.d.ts +73 -0
- package/dist/utils/Config.d.ts +7 -0
- package/dist/utils/HttpConfig.d.ts +4 -0
- package/dist/utils/System.d.ts +71 -0
- package/dist/views/error/index.vue.d.ts +2 -0
- package/dist/views/layout/com/Header.vue.d.ts +2 -0
- package/dist/views/layout/com/Sidebar.vue.d.ts +2 -0
- package/dist/views/layout/index.vue.d.ts +2 -0
- package/dist/views/login/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/api/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/menu/com/addDialog.vue.d.ts +39 -0
- package/dist/views/pages/auth/menu/com/addIconItem.vue.d.ts +40 -0
- package/dist/views/pages/auth/menu/com/colorChoose.vue.d.ts +23 -0
- package/dist/views/pages/auth/menu/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/role/index.vue.d.ts +2 -0
- package/dist/views/pages/auth/user/index.vue.d.ts +2 -0
- package/dist/views/pages/db/index.vue.d.ts +2 -0
- package/dist/views/pages/email/config/index.vue.d.ts +2 -0
- package/dist/views/pages/home/index.vue.d.ts +2 -0
- package/dist/views/pages/log/error/index.vue.d.ts +2 -0
- package/dist/views/pages/log/loginlog/index.vue.d.ts +2 -0
- package/dist/views/pages/schedule/job/index.vue.d.ts +2 -0
- package/dist/views/pages/sms/config/index.vue.d.ts +2 -0
- package/dist/views/pages/system/config/index.vue.d.ts +2 -0
- package/dist/views/pages/system/tenant/index.vue.d.ts +2 -0
- package/package.json +66 -0
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { defineComponent as C, reactive as S, onMounted as L, resolveComponent as r, openBlock as l, createElementBlock as a, createElementVNode as e, createVNode as s, normalizeStyle as U, withCtx as o, createTextVNode as h, toDisplayString as d, unref as w, computed as V, normalizeClass as H, Fragment as v, renderList as b, createBlock as p, Transition as M, KeepAlive as R, resolveDynamicComponent as W } from "vue";
|
|
2
|
+
import { ssys as k, suser as j, System as $ } from "./cc1-admin-front.js";
|
|
3
|
+
import { TSys as T } from "cc1-form";
|
|
4
|
+
import { _ as N } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
|
+
const q = { class: "header row no-wrap" }, F = { class: "header-right" }, K = { class: "header-user-con" }, P = { class: "el-dropdown-link row items-center" }, Z = { class: "user-avator" }, G = ["src"], J = /* @__PURE__ */ C({
|
|
6
|
+
__name: "Header",
|
|
7
|
+
setup(z) {
|
|
8
|
+
const c = S({
|
|
9
|
+
layout: k.layout,
|
|
10
|
+
message: 2
|
|
11
|
+
}), f = () => {
|
|
12
|
+
c.layout.collapse = !c.layout.collapse;
|
|
13
|
+
};
|
|
14
|
+
L(() => {
|
|
15
|
+
document.body.clientWidth < 1500 && f();
|
|
16
|
+
});
|
|
17
|
+
const y = (m) => {
|
|
18
|
+
m == "loginout" && T.router.push("/login");
|
|
19
|
+
};
|
|
20
|
+
return (m, n) => {
|
|
21
|
+
const x = r("v-icon"), u = r("el-dropdown-item"), i = r("el-dropdown-menu"), g = r("el-dropdown");
|
|
22
|
+
return l(), a("div", q, [
|
|
23
|
+
e("div", {
|
|
24
|
+
class: "collapse-btn",
|
|
25
|
+
onClick: f
|
|
26
|
+
}, [
|
|
27
|
+
s(x, {
|
|
28
|
+
name: "menu",
|
|
29
|
+
size: "32",
|
|
30
|
+
color: ["#34B0E5"],
|
|
31
|
+
style: U([{ transition: "all 0.3s" }, { transform: `rotateZ(${c.layout.collapse ? 90 : 0}deg)` }])
|
|
32
|
+
}, null, 8, ["style"])
|
|
33
|
+
]),
|
|
34
|
+
n[2] || (n[2] = e("i", {
|
|
35
|
+
class: "el-icon-lx-redpacket_fill",
|
|
36
|
+
style: { "font-size": "30px", color: "#ff5900" }
|
|
37
|
+
}, null, -1)),
|
|
38
|
+
n[3] || (n[3] = e("div", { class: "logo col" }, "后台管理", -1)),
|
|
39
|
+
e("div", F, [
|
|
40
|
+
e("div", K, [
|
|
41
|
+
s(g, {
|
|
42
|
+
class: "user-name",
|
|
43
|
+
trigger: "click",
|
|
44
|
+
onCommand: y
|
|
45
|
+
}, {
|
|
46
|
+
dropdown: o(() => [
|
|
47
|
+
s(i, null, {
|
|
48
|
+
default: o(() => [
|
|
49
|
+
s(u, { command: "user" }, {
|
|
50
|
+
default: o(() => n[0] || (n[0] = [
|
|
51
|
+
h("个人中心", -1)
|
|
52
|
+
])),
|
|
53
|
+
_: 1,
|
|
54
|
+
__: [0]
|
|
55
|
+
}),
|
|
56
|
+
s(u, {
|
|
57
|
+
divided: "",
|
|
58
|
+
command: "loginout"
|
|
59
|
+
}, {
|
|
60
|
+
default: o(() => n[1] || (n[1] = [
|
|
61
|
+
h("退出登录", -1)
|
|
62
|
+
])),
|
|
63
|
+
_: 1,
|
|
64
|
+
__: [1]
|
|
65
|
+
})
|
|
66
|
+
]),
|
|
67
|
+
_: 1
|
|
68
|
+
})
|
|
69
|
+
]),
|
|
70
|
+
default: o(() => [
|
|
71
|
+
e("span", P, [
|
|
72
|
+
h(d(w(j).userInfo.nickname) + " ", 1),
|
|
73
|
+
e("div", Z, [
|
|
74
|
+
e("img", {
|
|
75
|
+
src: w($).staticDir + "/images/head.jpg"
|
|
76
|
+
}, null, 8, G)
|
|
77
|
+
])
|
|
78
|
+
])
|
|
79
|
+
]),
|
|
80
|
+
_: 1
|
|
81
|
+
})
|
|
82
|
+
])
|
|
83
|
+
])
|
|
84
|
+
]);
|
|
85
|
+
};
|
|
86
|
+
}
|
|
87
|
+
}), O = /* @__PURE__ */ N(J, [["__scopeId", "data-v-7d929cc4"]]), Q = { class: "flex items-center vicon" }, X = { class: "flex items-center vicon" }, Y = /* @__PURE__ */ C({
|
|
88
|
+
__name: "Sidebar",
|
|
89
|
+
setup(z) {
|
|
90
|
+
const c = S({
|
|
91
|
+
layout: k.layout,
|
|
92
|
+
menu: []
|
|
93
|
+
}), f = async () => {
|
|
94
|
+
let n = await k.getMenuList();
|
|
95
|
+
const x = (u) => u.filter((i) => (i.type === 0 && (i.url = "/" + StrUtil.getId()), StrUtil.isNull(i.children) || (i.children = x(i.children)), i.show));
|
|
96
|
+
n = x(n), c.menu = n;
|
|
97
|
+
};
|
|
98
|
+
L(() => {
|
|
99
|
+
f();
|
|
100
|
+
});
|
|
101
|
+
const y = V(() => T.router.currentRoute.value.path), m = (n) => {
|
|
102
|
+
y.value !== n && window.innerWidth < 900 && Timer.once(() => {
|
|
103
|
+
c.layout.collapse = !c.layout.collapse;
|
|
104
|
+
}, 300);
|
|
105
|
+
};
|
|
106
|
+
return (n, x) => {
|
|
107
|
+
const u = r("v-icon"), i = r("el-menu-item"), g = r("el-sub-menu"), A = r("el-menu"), D = r("el-scrollbar");
|
|
108
|
+
return l(), a("div", {
|
|
109
|
+
class: H(["sidebar", [c.layout.collapse ? "sidebar-hideen" : "sidebar-show"]])
|
|
110
|
+
}, [
|
|
111
|
+
s(D, {
|
|
112
|
+
height: "100%",
|
|
113
|
+
style: { "background-color": "#324157" }
|
|
114
|
+
}, {
|
|
115
|
+
default: o(() => [
|
|
116
|
+
s(A, {
|
|
117
|
+
class: "sidebar-el-menu",
|
|
118
|
+
"default-active": y.value,
|
|
119
|
+
collapse: c.layout.collapse,
|
|
120
|
+
"text-color": "#bfcbd9",
|
|
121
|
+
"active-text-color": "#20a0ff",
|
|
122
|
+
"unique-opened": "",
|
|
123
|
+
router: "",
|
|
124
|
+
onSelect: m
|
|
125
|
+
}, {
|
|
126
|
+
default: o(() => [
|
|
127
|
+
(l(!0), a(v, null, b(c.menu, (t) => (l(), a(v, null, [
|
|
128
|
+
t.children && t.children?.length > 0 ? (l(), p(g, {
|
|
129
|
+
index: t.url,
|
|
130
|
+
key: t.url
|
|
131
|
+
}, {
|
|
132
|
+
title: o(() => [
|
|
133
|
+
e("div", Q, [
|
|
134
|
+
s(u, {
|
|
135
|
+
lib: t.iconLib,
|
|
136
|
+
name: t.iconName,
|
|
137
|
+
size: "24",
|
|
138
|
+
color: ["#1890ff"]
|
|
139
|
+
}, null, 8, ["lib", "name"])
|
|
140
|
+
]),
|
|
141
|
+
e("span", null, d(t.title), 1)
|
|
142
|
+
]),
|
|
143
|
+
default: o(() => [
|
|
144
|
+
(l(!0), a(v, null, b(t.children, (_) => (l(), a(v, null, [
|
|
145
|
+
_.children && _.children?.length > 0 ? (l(), p(g, {
|
|
146
|
+
key: 0,
|
|
147
|
+
index: _.url
|
|
148
|
+
}, {
|
|
149
|
+
title: o(() => [
|
|
150
|
+
h(d(_.title), 1)
|
|
151
|
+
]),
|
|
152
|
+
default: o(() => [
|
|
153
|
+
(l(!0), a(v, null, b(_.children, (B, E) => (l(), p(i, {
|
|
154
|
+
key: E,
|
|
155
|
+
index: B.url
|
|
156
|
+
}, {
|
|
157
|
+
default: o(() => [
|
|
158
|
+
h(d(B.title), 1)
|
|
159
|
+
]),
|
|
160
|
+
_: 2
|
|
161
|
+
}, 1032, ["index"]))), 128))
|
|
162
|
+
]),
|
|
163
|
+
_: 2
|
|
164
|
+
}, 1032, ["index"])) : (l(), p(i, {
|
|
165
|
+
key: 1,
|
|
166
|
+
index: _.url
|
|
167
|
+
}, {
|
|
168
|
+
default: o(() => [
|
|
169
|
+
h(d(_.title), 1)
|
|
170
|
+
]),
|
|
171
|
+
_: 2
|
|
172
|
+
}, 1032, ["index"]))
|
|
173
|
+
], 64))), 256))
|
|
174
|
+
]),
|
|
175
|
+
_: 2
|
|
176
|
+
}, 1032, ["index"])) : (l(), p(i, {
|
|
177
|
+
index: t.url,
|
|
178
|
+
key: t.url
|
|
179
|
+
}, {
|
|
180
|
+
title: o(() => [
|
|
181
|
+
e("span", null, d(t.title), 1)
|
|
182
|
+
]),
|
|
183
|
+
default: o(() => [
|
|
184
|
+
e("div", X, [
|
|
185
|
+
s(u, {
|
|
186
|
+
lib: t.iconLib,
|
|
187
|
+
name: t.iconName,
|
|
188
|
+
size: "24",
|
|
189
|
+
color: ["#1890ff"]
|
|
190
|
+
}, null, 8, ["lib", "name"])
|
|
191
|
+
])
|
|
192
|
+
]),
|
|
193
|
+
_: 2
|
|
194
|
+
}, 1032, ["index"]))
|
|
195
|
+
], 64))), 256))
|
|
196
|
+
]),
|
|
197
|
+
_: 1
|
|
198
|
+
}, 8, ["default-active", "collapse"])
|
|
199
|
+
]),
|
|
200
|
+
_: 1
|
|
201
|
+
})
|
|
202
|
+
], 2);
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
}), I = /* @__PURE__ */ N(Y, [["__scopeId", "data-v-ac094262"]]), ee = { style: { display: "flex", height: "calc(100% - 70px)" } }, ne = { class: "content" }, oe = { class: "view" }, le = {
|
|
206
|
+
class: "row flex-center",
|
|
207
|
+
style: { gap: "10px", "font-size": "12px" }
|
|
208
|
+
}, te = /* @__PURE__ */ C({
|
|
209
|
+
__name: "index",
|
|
210
|
+
setup(z) {
|
|
211
|
+
const c = S({
|
|
212
|
+
keepAlive: ["/auth/role", "/auth/api"]
|
|
213
|
+
});
|
|
214
|
+
return (f, y) => {
|
|
215
|
+
const m = r("router-view");
|
|
216
|
+
return l(), a(v, null, [
|
|
217
|
+
s(O),
|
|
218
|
+
e("div", ee, [
|
|
219
|
+
s(I),
|
|
220
|
+
e("div", ne, [
|
|
221
|
+
e("div", null, [
|
|
222
|
+
e("div", oe, [
|
|
223
|
+
s(m, null, {
|
|
224
|
+
default: o(({ Component: n }) => [
|
|
225
|
+
s(M, {
|
|
226
|
+
name: "slide-fade",
|
|
227
|
+
mode: "out-in"
|
|
228
|
+
}, {
|
|
229
|
+
default: o(() => [
|
|
230
|
+
(l(), p(R, {
|
|
231
|
+
include: c.keepAlive
|
|
232
|
+
}, [
|
|
233
|
+
(l(), p(W(n), {
|
|
234
|
+
key: f.$route.fullPath
|
|
235
|
+
}))
|
|
236
|
+
], 1032, ["include"]))
|
|
237
|
+
]),
|
|
238
|
+
_: 2
|
|
239
|
+
}, 1024)
|
|
240
|
+
]),
|
|
241
|
+
_: 1
|
|
242
|
+
}),
|
|
243
|
+
e("div", le, [
|
|
244
|
+
e("div", null, d(w($).config.website.author), 1),
|
|
245
|
+
e("div", null, d(w($).config.website.recordNumber), 1)
|
|
246
|
+
])
|
|
247
|
+
])
|
|
248
|
+
])
|
|
249
|
+
])
|
|
250
|
+
])
|
|
251
|
+
], 64);
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
}), ae = /* @__PURE__ */ N(te, [["__scopeId", "data-v-7d2c2356"]]);
|
|
255
|
+
export {
|
|
256
|
+
ae as default
|
|
257
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import { defineComponent as l, reactive as n, resolveComponent as u, openBlock as c, createBlock as s } from "vue";
|
|
2
|
+
import { ApiJob as p } from "./cc1-admin-front.js";
|
|
3
|
+
import "cc1-form";
|
|
4
|
+
const h = /* @__PURE__ */ l({
|
|
5
|
+
__name: "index",
|
|
6
|
+
setup(i) {
|
|
7
|
+
const o = n({
|
|
8
|
+
option: {
|
|
9
|
+
api: p,
|
|
10
|
+
data(t) {
|
|
11
|
+
return t.forEach((e) => {
|
|
12
|
+
e.createTime = new Date(e.createTime).Format(), e.lastTime = e.lastTime ? new Date(Number(e.lastTime)).Format() : "-";
|
|
13
|
+
}), t;
|
|
14
|
+
},
|
|
15
|
+
table: {
|
|
16
|
+
selectable: !0,
|
|
17
|
+
column: [
|
|
18
|
+
{
|
|
19
|
+
key: "createTime",
|
|
20
|
+
label: "创建时间",
|
|
21
|
+
type: "input",
|
|
22
|
+
value: "",
|
|
23
|
+
table: {
|
|
24
|
+
width: "180px"
|
|
25
|
+
},
|
|
26
|
+
sort: {
|
|
27
|
+
table: 1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: "lastTime",
|
|
32
|
+
label: "最后执行时间",
|
|
33
|
+
type: "input",
|
|
34
|
+
value: "",
|
|
35
|
+
table: {
|
|
36
|
+
width: "180px"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
tools: {
|
|
42
|
+
export: {
|
|
43
|
+
fileName: () => `定时任务_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
44
|
+
before(t) {
|
|
45
|
+
const e = {
|
|
46
|
+
0: "正常",
|
|
47
|
+
1: "暂停"
|
|
48
|
+
}, r = {
|
|
49
|
+
0: "允许",
|
|
50
|
+
1: "禁止"
|
|
51
|
+
};
|
|
52
|
+
t.data.forEach((a) => {
|
|
53
|
+
a.status = e[a.status], a.concurrent = r[a.concurrent];
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
column: [
|
|
59
|
+
{
|
|
60
|
+
key: "name",
|
|
61
|
+
label: "任务名称",
|
|
62
|
+
type: "input",
|
|
63
|
+
value: "",
|
|
64
|
+
show: {
|
|
65
|
+
search: !0
|
|
66
|
+
},
|
|
67
|
+
rules: !0
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
key: "group",
|
|
71
|
+
label: "任务组",
|
|
72
|
+
type: "input",
|
|
73
|
+
value: "",
|
|
74
|
+
show: {
|
|
75
|
+
search: !0
|
|
76
|
+
},
|
|
77
|
+
rules: !0
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
key: "cron",
|
|
81
|
+
label: "Cron表达式",
|
|
82
|
+
type: "input",
|
|
83
|
+
value: "",
|
|
84
|
+
rules: !0
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: "target",
|
|
88
|
+
label: "调用目标",
|
|
89
|
+
type: "input",
|
|
90
|
+
value: "",
|
|
91
|
+
rules: !0
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
key: "params",
|
|
95
|
+
label: "参数",
|
|
96
|
+
type: "input",
|
|
97
|
+
value: ""
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
key: "status",
|
|
101
|
+
label: "启用状态",
|
|
102
|
+
type: "switch",
|
|
103
|
+
value: 0,
|
|
104
|
+
show: {
|
|
105
|
+
search: !0
|
|
106
|
+
},
|
|
107
|
+
options: {
|
|
108
|
+
switch: {
|
|
109
|
+
activeValue: 1,
|
|
110
|
+
inactiveValue: 0
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return (t, e) => {
|
|
118
|
+
const r = u("t-curd");
|
|
119
|
+
return c(), s(r, {
|
|
120
|
+
option: o.option
|
|
121
|
+
}, null, 8, ["option"]);
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
export {
|
|
126
|
+
h as default
|
|
127
|
+
};
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import { defineComponent as c, reactive as m, resolveComponent as n, openBlock as d, createBlock as b, withCtx as r, createTextVNode as s, toDisplayString as h, createVNode as p } from "vue";
|
|
2
|
+
import { ApiEmailConfig as y } from "./cc1-admin-front.js";
|
|
3
|
+
import { TSys as _ } from "cc1-form";
|
|
4
|
+
const T = /* @__PURE__ */ c({
|
|
5
|
+
__name: "index",
|
|
6
|
+
setup(f) {
|
|
7
|
+
const o = m({
|
|
8
|
+
param: {
|
|
9
|
+
host: "1518079148@qq.com"
|
|
10
|
+
},
|
|
11
|
+
option: {
|
|
12
|
+
api: y,
|
|
13
|
+
data(a) {
|
|
14
|
+
return a.forEach((e) => {
|
|
15
|
+
e.createTime = new Date(e.createTime).Format();
|
|
16
|
+
}), a;
|
|
17
|
+
},
|
|
18
|
+
table: {
|
|
19
|
+
selectable: !0,
|
|
20
|
+
column: [
|
|
21
|
+
{
|
|
22
|
+
key: "createTime",
|
|
23
|
+
label: "创建时间",
|
|
24
|
+
type: "input",
|
|
25
|
+
value: "",
|
|
26
|
+
table: {
|
|
27
|
+
width: "180px"
|
|
28
|
+
},
|
|
29
|
+
sort: {
|
|
30
|
+
table: 1
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
tools: {
|
|
36
|
+
export: {
|
|
37
|
+
fileName: () => `邮件配置_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
38
|
+
before(a) {
|
|
39
|
+
const e = {
|
|
40
|
+
true: "是",
|
|
41
|
+
false: "否"
|
|
42
|
+
};
|
|
43
|
+
a.data.forEach((t) => {
|
|
44
|
+
t.secure = e[t.secure + ""], t.enabled = e[t.enabled + ""];
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
column: [
|
|
50
|
+
{
|
|
51
|
+
key: "host",
|
|
52
|
+
label: "SMTP地址",
|
|
53
|
+
type: "input",
|
|
54
|
+
value: "",
|
|
55
|
+
show: {
|
|
56
|
+
search: !0
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
key: "port",
|
|
61
|
+
label: "SMTP端口",
|
|
62
|
+
type: "input",
|
|
63
|
+
value: ""
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: "user",
|
|
67
|
+
label: "SMTP邮箱",
|
|
68
|
+
type: "input",
|
|
69
|
+
value: "",
|
|
70
|
+
show: {
|
|
71
|
+
search: !0
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
key: "pass",
|
|
76
|
+
label: "SMTP密码",
|
|
77
|
+
type: "input",
|
|
78
|
+
value: "",
|
|
79
|
+
disabled: {
|
|
80
|
+
update: !0
|
|
81
|
+
},
|
|
82
|
+
show: {
|
|
83
|
+
table: !1
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
key: "secure",
|
|
88
|
+
label: "SSL加密",
|
|
89
|
+
type: "switch",
|
|
90
|
+
value: !0
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
key: "enabled",
|
|
94
|
+
label: "启用状态",
|
|
95
|
+
type: "switch",
|
|
96
|
+
value: !1,
|
|
97
|
+
show: {
|
|
98
|
+
search: !0
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
key: "desc",
|
|
103
|
+
label: "备注",
|
|
104
|
+
type: "input",
|
|
105
|
+
value: "",
|
|
106
|
+
update: {
|
|
107
|
+
span: 12
|
|
108
|
+
},
|
|
109
|
+
rules: !0
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
email: {
|
|
114
|
+
async send() {
|
|
115
|
+
await http.post("/email/send", { to: o.param.host, title: "测试邮件标题", content: "测试邮件内容666" }), _.success("发送成功");
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
return (a, e) => {
|
|
120
|
+
const t = n("el-input"), u = n("el-button"), i = n("t-curd");
|
|
121
|
+
return d(), b(i, {
|
|
122
|
+
option: o.option
|
|
123
|
+
}, {
|
|
124
|
+
"tools-right": r(() => [
|
|
125
|
+
p(t, {
|
|
126
|
+
modelValue: o.param.host,
|
|
127
|
+
"onUpdate:modelValue": e[0] || (e[0] = (l) => o.param.host = l),
|
|
128
|
+
placeholder: "邮件地址",
|
|
129
|
+
style: { width: "150px" }
|
|
130
|
+
}, null, 8, ["modelValue"]),
|
|
131
|
+
p(u, {
|
|
132
|
+
type: "danger",
|
|
133
|
+
onClick: o.email.send
|
|
134
|
+
}, {
|
|
135
|
+
default: r(() => e[1] || (e[1] = [
|
|
136
|
+
s("发送邮件测试", -1)
|
|
137
|
+
])),
|
|
138
|
+
_: 1,
|
|
139
|
+
__: [1]
|
|
140
|
+
}, 8, ["onClick"])
|
|
141
|
+
]),
|
|
142
|
+
"table-host": r(({ row: l }) => [
|
|
143
|
+
s(h(l.host), 1)
|
|
144
|
+
]),
|
|
145
|
+
_: 1
|
|
146
|
+
}, 8, ["option"]);
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
export {
|
|
151
|
+
T as default
|
|
152
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { defineComponent as u, reactive as r, resolveComponent as p, openBlock as n, createBlock as i, withCtx as c, createTextVNode as s, toDisplayString as m } from "vue";
|
|
2
|
+
import { ApiSystemConfig as y } from "./cc1-admin-front.js";
|
|
3
|
+
const _ = /* @__PURE__ */ u({
|
|
4
|
+
__name: "index",
|
|
5
|
+
setup(v) {
|
|
6
|
+
const a = r({
|
|
7
|
+
option: {
|
|
8
|
+
api: y,
|
|
9
|
+
data(t) {
|
|
10
|
+
return t.forEach((e) => {
|
|
11
|
+
e.createTime = new Date(e.createTime).Format(), e.updateTime = new Date(e.updateTime).Format();
|
|
12
|
+
}), t;
|
|
13
|
+
},
|
|
14
|
+
table: {
|
|
15
|
+
selectable: !0,
|
|
16
|
+
column: [
|
|
17
|
+
{
|
|
18
|
+
key: "createTime",
|
|
19
|
+
label: "创建时间",
|
|
20
|
+
type: "input",
|
|
21
|
+
value: "",
|
|
22
|
+
table: {
|
|
23
|
+
minWidth: "180px"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
key: "updateTime",
|
|
28
|
+
label: "更新时间",
|
|
29
|
+
type: "input",
|
|
30
|
+
value: "",
|
|
31
|
+
table: {
|
|
32
|
+
minWidth: "180px"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
tools: {
|
|
38
|
+
export: {
|
|
39
|
+
fileName: () => `系统配置_${(/* @__PURE__ */ new Date()).getTime()}`
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
column: [
|
|
43
|
+
{
|
|
44
|
+
key: "key",
|
|
45
|
+
label: "配置键",
|
|
46
|
+
type: "input",
|
|
47
|
+
value: "",
|
|
48
|
+
show: {
|
|
49
|
+
search: !0
|
|
50
|
+
},
|
|
51
|
+
rules: !0
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: "groupKey",
|
|
55
|
+
label: "分组键",
|
|
56
|
+
type: "input",
|
|
57
|
+
value: "",
|
|
58
|
+
show: {
|
|
59
|
+
search: !0
|
|
60
|
+
},
|
|
61
|
+
rules: !0
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
key: "groupValue",
|
|
65
|
+
label: "分组名称",
|
|
66
|
+
type: "input",
|
|
67
|
+
value: "",
|
|
68
|
+
rules: !0
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
key: "system",
|
|
72
|
+
label: "系统内置",
|
|
73
|
+
type: "switch",
|
|
74
|
+
value: 0,
|
|
75
|
+
show: {
|
|
76
|
+
search: !0
|
|
77
|
+
},
|
|
78
|
+
options: {
|
|
79
|
+
switch: {
|
|
80
|
+
activeValue: 1,
|
|
81
|
+
inactiveValue: 0,
|
|
82
|
+
activeLabel: "是",
|
|
83
|
+
inactiveLabel: "否"
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "desc",
|
|
89
|
+
label: "配置说明",
|
|
90
|
+
type: "input",
|
|
91
|
+
value: "",
|
|
92
|
+
form: {
|
|
93
|
+
span: 12
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
key: "value",
|
|
98
|
+
label: "配置值",
|
|
99
|
+
type: "input",
|
|
100
|
+
value: "",
|
|
101
|
+
rules: !0,
|
|
102
|
+
table: {
|
|
103
|
+
showOverflowTooltip: !0
|
|
104
|
+
},
|
|
105
|
+
form: {
|
|
106
|
+
span: 12
|
|
107
|
+
},
|
|
108
|
+
options: {
|
|
109
|
+
input: {
|
|
110
|
+
type: "textarea"
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
return (t, e) => {
|
|
118
|
+
const l = p("t-curd");
|
|
119
|
+
return n(), i(l, {
|
|
120
|
+
option: a.option
|
|
121
|
+
}, {
|
|
122
|
+
"table-value": c(({ row: o }) => [
|
|
123
|
+
s(m(o.value), 1)
|
|
124
|
+
]),
|
|
125
|
+
_: 1
|
|
126
|
+
}, 8, ["option"]);
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
export {
|
|
131
|
+
_ as default
|
|
132
|
+
};
|