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.
Files changed (41) hide show
  1. package/README.md +5 -1
  2. package/dist/apis/auth/ApiAuthPermission.d.ts +4 -0
  3. package/dist/apis/auth/ApiAuthRole.d.ts +4 -6
  4. package/dist/apis/auth/ApiAuthSession.d.ts +4 -0
  5. package/dist/apis/auth/ApiAuthUser.d.ts +2 -0
  6. package/dist/cc1-admin-front.css +1 -1
  7. package/dist/cc1-admin-front.js +25 -959
  8. package/dist/cc1-admin-front.umd.cjs +1 -1
  9. package/dist/{index-CatA5C4N.js → index-BHBDmhpM.js} +19 -15
  10. package/dist/{index-Aa_qAwSq.js → index-BKc52gsM.js} +69 -68
  11. package/dist/{index-DWmZQOPc.js → index-BNytnHfT.js} +62 -56
  12. package/dist/index-BbdDqL4R.js +106 -0
  13. package/dist/{index-D8U8yEvx.js → index-Bh99swBg.js} +9 -9
  14. package/dist/index-BsUQc1tS.js +72 -0
  15. package/dist/index-C0dTAIw4.js +182 -0
  16. package/dist/{index-pxgBPi_e.js → index-CEaedSLk.js} +21 -19
  17. package/dist/{index-DU5RPuKk.js → index-Cb9bja8p.js} +11 -11
  18. package/dist/index-CsUs4AR_.js +42 -0
  19. package/dist/{index-C8fkVOS0.js → index-CvtY70Y6.js} +16 -12
  20. package/dist/{index-rOyW50AB.js → index-CwyxJHDj.js} +34 -29
  21. package/dist/index-D3OkO10X.js +933 -0
  22. package/dist/{index-D6cX_pp2.js → index-DIRWVvKY.js} +27 -22
  23. package/dist/index-DPSZh1Ve.js +123 -0
  24. package/dist/{index-DzI5GwAU.js → index-E8d5Pz2_.js} +29 -25
  25. package/dist/{index-D47lvu37.js → index-SLpgD5v0.js} +81 -89
  26. package/dist/{index-DvZhYqrw.js → index-t7D_zBIH.js} +13 -12
  27. package/dist/index.d.ts +3 -3
  28. package/dist/plugins/directive.d.ts +1 -1
  29. package/dist/sstore/ssys.d.ts +0 -3
  30. package/dist/sstore/suser.d.ts +52 -9
  31. package/package.json +1 -1
  32. package/dist/apis/auth/ApiAuthApi.d.ts +0 -7
  33. package/dist/apis/system/ApiSystemTenant.d.ts +0 -6
  34. package/dist/index-BTuR22Wh.js +0 -41
  35. package/dist/index-CRagZR_l.js +0 -160
  36. package/dist/index-D7Xyt6lh.js +0 -180
  37. package/dist/index-DFNCjb_F.js +0 -69
  38. package/dist/index-Dejkixap.js +0 -181
  39. package/dist/index-uPQ6O40Q.js +0 -180
  40. package/dist/views/pages/system/tenant/index.vue.d.ts +0 -2
  41. /package/dist/views/pages/auth/{api → permission}/index.vue.d.ts +0 -0
@@ -1,22 +1,24 @@
1
- import { defineComponent as c, reactive as m, resolveComponent as n, openBlock as d, createBlock as b, withCtx as s, createTextVNode as p, toDisplayString as h, createVNode as r } from "vue";
2
- import { ApiEmailConfig as y } from "./cc1-admin-front.js";
3
- import { TSys as _ } from "cc1-form";
4
- const v = /* @__PURE__ */ c({
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(f) {
7
- const o = m({
6
+ setup(T) {
7
+ const a = h({
8
8
  param: {
9
9
  host: "1518079148@qq.com"
10
10
  },
11
11
  option: {
12
- api: y,
13
- data(a) {
14
- return a.forEach((e) => {
12
+ api: k,
13
+ data(o) {
14
+ return o.forEach((e) => {
15
15
  e.createTime = new Date(e.createTime).Format();
16
- }), a;
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(a) {
42
+ before(o) {
39
43
  const e = {
40
44
  1: "是",
41
45
  0: "否"
42
46
  };
43
- a.data.forEach((t) => {
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: o.param.host, title: "测试邮件标题", content: "测试邮件内容666" }), _.success("发送成功");
119
+ await http.post("/email/send", { to: a.param.host, title: "测试邮件标题", content: "测试邮件内容666" }), w.success("发送成功");
116
120
  }
117
121
  }
118
122
  });
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
+ 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": s(() => [
125
- r(t, {
126
- modelValue: o.param.host,
127
- "onUpdate:modelValue": e[0] || (e[0] = (l) => o.param.host = l),
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
- r(u, {
135
+ f(l)("/email/send") ? (p(), i(c, {
136
+ key: 0,
132
137
  type: "danger",
133
- onClick: o.email.send
138
+ onClick: a.email.send
134
139
  }, {
135
- default: s(() => e[1] || (e[1] = [
136
- p("发送邮件测试", -1)
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": s(({ row: l }) => [
143
- p(h(l.host), 1)
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
- v as default
156
+ S as default
152
157
  };