cc1-admin-front 1.0.6 → 2.0.0
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 +5 -1
- package/dist/apis/auth/ApiAuthPermission.d.ts +4 -0
- package/dist/apis/auth/ApiAuthRole.d.ts +4 -6
- package/dist/apis/auth/ApiAuthSession.d.ts +4 -0
- package/dist/apis/auth/ApiAuthUser.d.ts +2 -0
- package/dist/cc1-admin-front.css +1 -1
- package/dist/cc1-admin-front.js +25 -959
- package/dist/cc1-admin-front.umd.cjs +1 -1
- package/dist/{index-CatA5C4N.js → index-BHBDmhpM.js} +19 -15
- package/dist/{index-Aa_qAwSq.js → index-BKc52gsM.js} +69 -68
- package/dist/{index-DWmZQOPc.js → index-BNytnHfT.js} +62 -56
- package/dist/index-BbdDqL4R.js +106 -0
- package/dist/{index-D8U8yEvx.js → index-Bh99swBg.js} +9 -9
- package/dist/index-BsUQc1tS.js +72 -0
- package/dist/index-C0dTAIw4.js +182 -0
- package/dist/{index-pxgBPi_e.js → index-CEaedSLk.js} +21 -19
- package/dist/{index-DU5RPuKk.js → index-Cb9bja8p.js} +11 -11
- package/dist/index-CsUs4AR_.js +42 -0
- package/dist/{index-C8fkVOS0.js → index-CvtY70Y6.js} +16 -12
- package/dist/{index-rOyW50AB.js → index-CwyxJHDj.js} +34 -29
- package/dist/index-D3OkO10X.js +933 -0
- package/dist/{index-D6cX_pp2.js → index-DIRWVvKY.js} +27 -22
- package/dist/index-DPSZh1Ve.js +123 -0
- package/dist/{index-DzI5GwAU.js → index-E8d5Pz2_.js} +29 -25
- package/dist/{index-D47lvu37.js → index-SLpgD5v0.js} +81 -89
- package/dist/{index-DvZhYqrw.js → index-t7D_zBIH.js} +13 -12
- package/dist/index.d.ts +3 -3
- package/dist/plugins/directive.d.ts +1 -1
- package/dist/sstore/ssys.d.ts +0 -3
- package/dist/sstore/suser.d.ts +52 -9
- package/package.json +1 -1
- package/dist/apis/auth/ApiAuthApi.d.ts +0 -7
- package/dist/apis/system/ApiSystemTenant.d.ts +0 -6
- package/dist/index-BTuR22Wh.js +0 -41
- package/dist/index-CRagZR_l.js +0 -160
- package/dist/index-D7Xyt6lh.js +0 -180
- package/dist/index-DFNCjb_F.js +0 -69
- package/dist/index-Dejkixap.js +0 -181
- package/dist/index-uPQ6O40Q.js +0 -180
- package/dist/views/pages/system/tenant/index.vue.d.ts +0 -2
- /package/dist/views/pages/auth/{api → permission}/index.vue.d.ts +0 -0
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import {
|
|
3
|
-
import { TSys as
|
|
4
|
-
const
|
|
1
|
+
import { defineComponent as m, reactive as h, resolveComponent as s, openBlock as p, createBlock as i, withCtx as r, createTextVNode as u, toDisplayString as y, createVNode as b, unref as f, createCommentVNode as _ } from "vue";
|
|
2
|
+
import { i as k, h as l } from "./index-D3OkO10X.js";
|
|
3
|
+
import { TSys as w } from "cc1-form";
|
|
4
|
+
const S = /* @__PURE__ */ m({
|
|
5
5
|
__name: "index",
|
|
6
|
-
setup(
|
|
7
|
-
const
|
|
6
|
+
setup(T) {
|
|
7
|
+
const a = h({
|
|
8
8
|
param: {
|
|
9
9
|
host: "1518079148@qq.com"
|
|
10
10
|
},
|
|
11
11
|
option: {
|
|
12
|
-
api:
|
|
13
|
-
data(
|
|
14
|
-
return
|
|
12
|
+
api: k,
|
|
13
|
+
data(o) {
|
|
14
|
+
return o.forEach((e) => {
|
|
15
15
|
e.createTime = new Date(e.createTime).Format();
|
|
16
|
-
}),
|
|
16
|
+
}), o;
|
|
17
17
|
},
|
|
18
18
|
table: {
|
|
19
19
|
selectable: !0,
|
|
20
|
+
update: () => l("/email/config/update"),
|
|
21
|
+
delete: () => l("/email/config/delete"),
|
|
20
22
|
column: [
|
|
21
23
|
{
|
|
22
24
|
key: "createTime",
|
|
@@ -33,14 +35,16 @@ const v = /* @__PURE__ */ c({
|
|
|
33
35
|
]
|
|
34
36
|
},
|
|
35
37
|
tools: {
|
|
38
|
+
add: () => l("/email/config/create"),
|
|
39
|
+
delete: () => l("/email/config/delete"),
|
|
36
40
|
export: {
|
|
37
41
|
fileName: () => `邮件配置_${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
38
|
-
before(
|
|
42
|
+
before(o) {
|
|
39
43
|
const e = {
|
|
40
44
|
1: "是",
|
|
41
45
|
0: "否"
|
|
42
46
|
};
|
|
43
|
-
|
|
47
|
+
o.data.forEach((t) => {
|
|
44
48
|
t.secure = e[t.secure], t.enabled = e[t.enabled];
|
|
45
49
|
});
|
|
46
50
|
}
|
|
@@ -112,35 +116,36 @@ const v = /* @__PURE__ */ c({
|
|
|
112
116
|
},
|
|
113
117
|
email: {
|
|
114
118
|
async send() {
|
|
115
|
-
await http.post("/email/send", { to:
|
|
119
|
+
await http.post("/email/send", { to: a.param.host, title: "测试邮件标题", content: "测试邮件内容666" }), w.success("发送成功");
|
|
116
120
|
}
|
|
117
121
|
}
|
|
118
122
|
});
|
|
119
|
-
return (
|
|
120
|
-
const t =
|
|
121
|
-
return
|
|
122
|
-
option:
|
|
123
|
+
return (o, e) => {
|
|
124
|
+
const t = s("el-input"), c = s("el-button"), d = s("t-curd");
|
|
125
|
+
return p(), i(d, {
|
|
126
|
+
option: a.option
|
|
123
127
|
}, {
|
|
124
|
-
"tools-right":
|
|
125
|
-
|
|
126
|
-
modelValue:
|
|
127
|
-
"onUpdate:modelValue": e[0] || (e[0] = (
|
|
128
|
+
"tools-right": r(() => [
|
|
129
|
+
b(t, {
|
|
130
|
+
modelValue: a.param.host,
|
|
131
|
+
"onUpdate:modelValue": e[0] || (e[0] = (n) => a.param.host = n),
|
|
128
132
|
placeholder: "邮件地址",
|
|
129
133
|
style: { width: "150px" }
|
|
130
134
|
}, null, 8, ["modelValue"]),
|
|
131
|
-
|
|
135
|
+
f(l)("/email/send") ? (p(), i(c, {
|
|
136
|
+
key: 0,
|
|
132
137
|
type: "danger",
|
|
133
|
-
onClick:
|
|
138
|
+
onClick: a.email.send
|
|
134
139
|
}, {
|
|
135
|
-
default:
|
|
136
|
-
|
|
140
|
+
default: r(() => e[1] || (e[1] = [
|
|
141
|
+
u("发送邮件测试", -1)
|
|
137
142
|
])),
|
|
138
143
|
_: 1,
|
|
139
144
|
__: [1]
|
|
140
|
-
}, 8, ["onClick"])
|
|
145
|
+
}, 8, ["onClick"])) : _("", !0)
|
|
141
146
|
]),
|
|
142
|
-
"table-host":
|
|
143
|
-
|
|
147
|
+
"table-host": r(({ row: n }) => [
|
|
148
|
+
u(y(n.host), 1)
|
|
144
149
|
]),
|
|
145
150
|
_: 1
|
|
146
151
|
}, 8, ["option"]);
|
|
@@ -148,5 +153,5 @@ const v = /* @__PURE__ */ c({
|
|
|
148
153
|
}
|
|
149
154
|
});
|
|
150
155
|
export {
|
|
151
|
-
|
|
156
|
+
S as default
|
|
152
157
|
};
|