cc1-admin-front 1.0.5 → 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 -945
  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 +4 -0
  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,180 +0,0 @@
1
- import { defineComponent as c, reactive as m, resolveComponent as o, openBlock as b, createBlock as y, withCtx as r, createVNode as p, createTextVNode as n, toDisplayString as i } from "vue";
2
- import { ApiSystemTenant as d } from "./cc1-admin-front.js";
3
- import "cc1-form";
4
- const h = /* @__PURE__ */ c({
5
- __name: "index",
6
- setup(T) {
7
- const u = m({
8
- option: {
9
- api: d,
10
- data(t) {
11
- return t.forEach((e) => {
12
- e.createTime = new Date(e.createTime).Format(), e.updateTime = new Date(e.updateTime).Format(), e.expireTime && (e.expireTime = new Date(e.expireTime));
13
- }), t;
14
- },
15
- table: {
16
- border: !0,
17
- column: [
18
- {
19
- key: "createTime",
20
- label: "创建时间",
21
- type: "input",
22
- value: "",
23
- table: {
24
- minWidth: "180px"
25
- },
26
- sort: {
27
- table: 99
28
- }
29
- }
30
- ]
31
- },
32
- tools: {
33
- export: {
34
- fileName: () => `租户管理_${(/* @__PURE__ */ new Date()).getTime()}`,
35
- before: (t) => {
36
- t.data.forEach((e) => {
37
- e.expireTime && (e.expireTime = new Date(e.expireTime).Format());
38
- });
39
- }
40
- }
41
- },
42
- column: [
43
- {
44
- key: "name",
45
- label: "租户名称",
46
- type: "input",
47
- value: "",
48
- rules: !0,
49
- show: {
50
- search: !0
51
- },
52
- sort: {
53
- table: 1
54
- }
55
- },
56
- {
57
- key: "code",
58
- label: "租户编码",
59
- type: "input",
60
- value: "",
61
- rules: !0,
62
- show: {
63
- search: !0
64
- },
65
- sort: {
66
- table: 2
67
- }
68
- },
69
- {
70
- key: "type",
71
- label: "租户类型",
72
- type: "select",
73
- value: 1,
74
- options: {
75
- select: {
76
- data: [
77
- { label: "单库多租户", value: 1 },
78
- { label: "多库多租户", value: 2 }
79
- ]
80
- }
81
- },
82
- rules: !0,
83
- show: {
84
- search: !0
85
- },
86
- sort: {
87
- table: 3
88
- }
89
- },
90
- {
91
- key: "domain",
92
- label: "域名",
93
- type: "input",
94
- value: "",
95
- rules: !0,
96
- show: {
97
- table: !1,
98
- search: !0
99
- },
100
- sort: {
101
- table: 4
102
- }
103
- },
104
- {
105
- key: "expireTime",
106
- label: "过期时间",
107
- type: "datetime",
108
- value: /* @__PURE__ */ new Date(),
109
- table: {
110
- minWidth: "180px"
111
- },
112
- sort: {
113
- table: 100
114
- }
115
- },
116
- {
117
- key: "contactName",
118
- label: "联系人",
119
- type: "input",
120
- value: "",
121
- sort: {
122
- table: 7
123
- }
124
- },
125
- {
126
- key: "contactPhone",
127
- label: "联系电话",
128
- type: "input",
129
- value: "",
130
- sort: {
131
- table: 8
132
- }
133
- },
134
- {
135
- key: "dbUrl",
136
- label: "数据库连接",
137
- type: "input",
138
- value: "",
139
- rules: !0,
140
- show: {
141
- form: (t) => t.type === 2,
142
- table: !1
143
- }
144
- }
145
- ]
146
- }
147
- });
148
- return (t, e) => {
149
- const l = o("el-tag"), s = o("t-curd");
150
- return b(), y(s, {
151
- option: u.option
152
- }, {
153
- "table-type": r(({ row: a }) => [
154
- p(l, {
155
- type: a.type === 1 ? "success" : "warning"
156
- }, {
157
- default: r(() => [
158
- n(i(a.type === 1 ? "单库多租户" : "多库多租户"), 1)
159
- ]),
160
- _: 2
161
- }, 1032, ["type"])
162
- ]),
163
- "table-expireTime": r(({ row: a }) => [
164
- p(l, {
165
- type: a.expireTime < (/* @__PURE__ */ new Date()).getTime() ? "danger" : "success"
166
- }, {
167
- default: r(() => [
168
- n(i(new Date(a.expireTime).Format()), 1)
169
- ]),
170
- _: 2
171
- }, 1032, ["type"])
172
- ]),
173
- _: 1
174
- }, 8, ["option"]);
175
- };
176
- }
177
- });
178
- export {
179
- h as default
180
- };
@@ -1,2 +0,0 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
- export default _default;