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
package/dist/index-CRagZR_l.js
DELETED
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, reactive as c, resolveComponent as m, openBlock as f, createBlock as y } from "vue";
|
|
2
|
-
import { ApiAuthRole as L, ApiAuthMenu as h, ssys as i, ApiAuthApi as b, scurd as l } from "./cc1-admin-front.js";
|
|
3
|
-
import { TSys as s } from "cc1-form";
|
|
4
|
-
const _ = /* @__PURE__ */ u({
|
|
5
|
-
__name: "index",
|
|
6
|
-
setup(g) {
|
|
7
|
-
const e = c({
|
|
8
|
-
menuList: [],
|
|
9
|
-
apiList: [],
|
|
10
|
-
roleList: [],
|
|
11
|
-
option: {
|
|
12
|
-
api: L,
|
|
13
|
-
data(t) {
|
|
14
|
-
return e.roleList = t, t;
|
|
15
|
-
},
|
|
16
|
-
search: {
|
|
17
|
-
show: !1
|
|
18
|
-
},
|
|
19
|
-
table: {
|
|
20
|
-
border: !0
|
|
21
|
-
},
|
|
22
|
-
page: {
|
|
23
|
-
show: !1
|
|
24
|
-
},
|
|
25
|
-
tools: {
|
|
26
|
-
export: {
|
|
27
|
-
show: !1
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
column: [
|
|
31
|
-
{
|
|
32
|
-
key: "title",
|
|
33
|
-
label: "名称",
|
|
34
|
-
type: "input",
|
|
35
|
-
value: "",
|
|
36
|
-
rules: !0
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
key: "type",
|
|
40
|
-
label: "角色标识",
|
|
41
|
-
type: "input",
|
|
42
|
-
value: "",
|
|
43
|
-
rules: !0
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
key: "status",
|
|
47
|
-
label: "状态",
|
|
48
|
-
type: "switch",
|
|
49
|
-
value: 1,
|
|
50
|
-
options: {
|
|
51
|
-
switch: {
|
|
52
|
-
activeValue: 1,
|
|
53
|
-
activeLabel: "启用",
|
|
54
|
-
inactiveValue: 0,
|
|
55
|
-
inactiveLabel: "禁用"
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: "sort",
|
|
61
|
-
label: "排序",
|
|
62
|
-
type: "input",
|
|
63
|
-
value: 0,
|
|
64
|
-
form: {
|
|
65
|
-
span: 12
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
key: "roleList",
|
|
70
|
-
label: "角色列表",
|
|
71
|
-
type: "treeSelect",
|
|
72
|
-
value: [],
|
|
73
|
-
options: {
|
|
74
|
-
treeSelect: {
|
|
75
|
-
data: [],
|
|
76
|
-
multiple: !0,
|
|
77
|
-
collapseTags: !0,
|
|
78
|
-
maxCollapseTags: 4
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
show: {
|
|
82
|
-
table: !1
|
|
83
|
-
},
|
|
84
|
-
form: {
|
|
85
|
-
span: 12
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
key: "menuList",
|
|
90
|
-
label: "菜单列表",
|
|
91
|
-
type: "treeSelect",
|
|
92
|
-
value: [],
|
|
93
|
-
options: {
|
|
94
|
-
treeSelect: {
|
|
95
|
-
data: [],
|
|
96
|
-
multiple: !0,
|
|
97
|
-
collapseTags: !0,
|
|
98
|
-
maxCollapseTags: 4
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
show: {
|
|
102
|
-
table: !1
|
|
103
|
-
},
|
|
104
|
-
form: {
|
|
105
|
-
span: 12
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
key: "apiList",
|
|
110
|
-
label: "接口列表",
|
|
111
|
-
type: "treeSelect",
|
|
112
|
-
value: [],
|
|
113
|
-
options: {
|
|
114
|
-
treeSelect: {
|
|
115
|
-
data: [],
|
|
116
|
-
multiple: !0,
|
|
117
|
-
collapseTags: !0,
|
|
118
|
-
maxCollapseTags: 4,
|
|
119
|
-
checkStrictly: !1
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
show: {
|
|
123
|
-
table: !1
|
|
124
|
-
},
|
|
125
|
-
form: {
|
|
126
|
-
span: 12
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
],
|
|
130
|
-
form: {
|
|
131
|
-
openBefore: async (t, o) => {
|
|
132
|
-
if (t || (o.form.sort = e.roleList.length + 1), e.menuList.length === 0) {
|
|
133
|
-
s.loading();
|
|
134
|
-
let a = await h.list({
|
|
135
|
-
final(p, r, n) {
|
|
136
|
-
s.loading(!1);
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
e.menuList = i.getTableTree(a.data), a = await b.list({
|
|
140
|
-
final(p, r, n) {
|
|
141
|
-
s.loading(!1);
|
|
142
|
-
}
|
|
143
|
-
}), e.apiList = i.getTableTree(a.data);
|
|
144
|
-
}
|
|
145
|
-
l.setOptionsData(e.option, "menuList", e.menuList), l.setOptionsData(e.option, "apiList", e.apiList), l.setOptionsData(e.option, "roleList", e.roleList);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
|
-
return (t, o) => {
|
|
151
|
-
const a = m("t-curd");
|
|
152
|
-
return f(), y(a, {
|
|
153
|
-
option: e.option
|
|
154
|
-
}, null, 8, ["option"]);
|
|
155
|
-
};
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
export {
|
|
159
|
-
_ as default
|
|
160
|
-
};
|
package/dist/index-D7Xyt6lh.js
DELETED
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { defineComponent as d, reactive as f, resolveComponent as i, openBlock as m, createBlock as _, withCtx as r, createVNode as y, createTextVNode as b } from "vue";
|
|
2
|
-
import { ElMessageBox as g } from "element-plus";
|
|
3
|
-
import { ApiAuthUser as p, ApiAuthRole as h, scurd as v } from "./cc1-admin-front.js";
|
|
4
|
-
import { TSys as n } from "cc1-form";
|
|
5
|
-
const B = /* @__PURE__ */ d({
|
|
6
|
-
__name: "index",
|
|
7
|
-
setup(k) {
|
|
8
|
-
const e = f({
|
|
9
|
-
data: [],
|
|
10
|
-
roleList: [],
|
|
11
|
-
resetLoading: {},
|
|
12
|
-
option: {
|
|
13
|
-
api: p,
|
|
14
|
-
data(t) {
|
|
15
|
-
return t;
|
|
16
|
-
},
|
|
17
|
-
form: {
|
|
18
|
-
openBefore: async (t, o) => {
|
|
19
|
-
if (e.roleList.length === 0) {
|
|
20
|
-
n.loading();
|
|
21
|
-
let a = await h.list({
|
|
22
|
-
final(s, l, u) {
|
|
23
|
-
n.loading(!1);
|
|
24
|
-
}
|
|
25
|
-
});
|
|
26
|
-
console.log("res.data", a.data), e.roleList = a.data;
|
|
27
|
-
}
|
|
28
|
-
v.setOptionsData(e.option, "roleList", e.roleList);
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
search: {
|
|
32
|
-
show: !1
|
|
33
|
-
},
|
|
34
|
-
table: {
|
|
35
|
-
selectable: !0,
|
|
36
|
-
border: !0,
|
|
37
|
-
operate: {
|
|
38
|
-
width: 210
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
tools: {
|
|
42
|
-
export: {
|
|
43
|
-
fileName: () => `用户列表_${(/* @__PURE__ */ new Date()).getTime()}`
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
column: [
|
|
47
|
-
{
|
|
48
|
-
key: "account",
|
|
49
|
-
label: "账号",
|
|
50
|
-
type: "input",
|
|
51
|
-
value: "",
|
|
52
|
-
sort: {
|
|
53
|
-
table: 1
|
|
54
|
-
},
|
|
55
|
-
form: {
|
|
56
|
-
span: 12
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
key: "status",
|
|
61
|
-
label: "状态",
|
|
62
|
-
type: "switch",
|
|
63
|
-
value: 1,
|
|
64
|
-
options: {
|
|
65
|
-
switch: {
|
|
66
|
-
activeValue: 1,
|
|
67
|
-
activeLabel: "启用",
|
|
68
|
-
inactiveValue: 0,
|
|
69
|
-
inactiveLabel: "禁用"
|
|
70
|
-
}
|
|
71
|
-
},
|
|
72
|
-
sort: {
|
|
73
|
-
table: 2
|
|
74
|
-
},
|
|
75
|
-
form: {
|
|
76
|
-
span: 12
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
key: "nickname",
|
|
81
|
-
label: "昵称",
|
|
82
|
-
type: "input",
|
|
83
|
-
value: "",
|
|
84
|
-
sort: {
|
|
85
|
-
table: 1
|
|
86
|
-
},
|
|
87
|
-
form: {
|
|
88
|
-
span: 12
|
|
89
|
-
}
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
key: "phone",
|
|
93
|
-
label: "手机号",
|
|
94
|
-
type: "input",
|
|
95
|
-
value: "",
|
|
96
|
-
sort: {
|
|
97
|
-
table: 3
|
|
98
|
-
},
|
|
99
|
-
form: {
|
|
100
|
-
span: 12
|
|
101
|
-
}
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
key: "desc",
|
|
105
|
-
label: "简介",
|
|
106
|
-
type: "input",
|
|
107
|
-
value: "",
|
|
108
|
-
show: {
|
|
109
|
-
table: !1
|
|
110
|
-
},
|
|
111
|
-
form: {
|
|
112
|
-
span: 12
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
key: "roleList",
|
|
117
|
-
label: "角色列表",
|
|
118
|
-
type: "treeSelect",
|
|
119
|
-
value: [],
|
|
120
|
-
options: {
|
|
121
|
-
treeSelect: {
|
|
122
|
-
data: [],
|
|
123
|
-
multiple: !0,
|
|
124
|
-
collapseTags: !0,
|
|
125
|
-
maxCollapseTags: 4
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
show: {
|
|
129
|
-
table: !1
|
|
130
|
-
},
|
|
131
|
-
form: {
|
|
132
|
-
span: 12
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
}), c = async (t) => {
|
|
138
|
-
try {
|
|
139
|
-
await g.confirm(`确定将账号“${t.account}”的密码重置为 123456 吗?`, "重置密码", {
|
|
140
|
-
type: "warning",
|
|
141
|
-
confirmButtonText: "确定重置",
|
|
142
|
-
cancelButtonText: "取消"
|
|
143
|
-
});
|
|
144
|
-
} catch {
|
|
145
|
-
return;
|
|
146
|
-
}
|
|
147
|
-
e.resetLoading[t._id] = !0;
|
|
148
|
-
try {
|
|
149
|
-
await p.resetPassword({ _id: t._id }), n.success("密码已重置为 123456");
|
|
150
|
-
} finally {
|
|
151
|
-
e.resetLoading[t._id] = !1;
|
|
152
|
-
}
|
|
153
|
-
};
|
|
154
|
-
return (t, o) => {
|
|
155
|
-
const a = i("el-button"), s = i("t-curd");
|
|
156
|
-
return m(), _(s, {
|
|
157
|
-
option: e.option
|
|
158
|
-
}, {
|
|
159
|
-
"table-op-left": r(({ row: l }) => [
|
|
160
|
-
y(a, {
|
|
161
|
-
link: "",
|
|
162
|
-
type: "primary",
|
|
163
|
-
loading: e.resetLoading[l._id],
|
|
164
|
-
onClick: (u) => c(l)
|
|
165
|
-
}, {
|
|
166
|
-
default: r(() => o[0] || (o[0] = [
|
|
167
|
-
b(" 重置密码 ", -1)
|
|
168
|
-
])),
|
|
169
|
-
_: 2,
|
|
170
|
-
__: [0]
|
|
171
|
-
}, 1032, ["loading", "onClick"])
|
|
172
|
-
]),
|
|
173
|
-
_: 1
|
|
174
|
-
}, 8, ["option"]);
|
|
175
|
-
};
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
export {
|
|
179
|
-
B as default
|
|
180
|
-
};
|
package/dist/index-DFNCjb_F.js
DELETED
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { defineComponent as m, reactive as u, resolveComponent as _, openBlock as f, createElementBlock as x, createVNode as c, withCtx as s, createTextVNode as a } from "vue";
|
|
2
|
-
import { TSys as i } from "cc1-form";
|
|
3
|
-
class p {
|
|
4
|
-
static export(e) {
|
|
5
|
-
return http.post("/db/export", e);
|
|
6
|
-
}
|
|
7
|
-
static import(e) {
|
|
8
|
-
return http.post({
|
|
9
|
-
url: "/db/import",
|
|
10
|
-
headers: {
|
|
11
|
-
"Content-Type": "multipart/form-data"
|
|
12
|
-
}
|
|
13
|
-
}, e);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
const C = { class: "row" }, w = /* @__PURE__ */ m({
|
|
17
|
-
__name: "index",
|
|
18
|
-
setup(l) {
|
|
19
|
-
const e = u({
|
|
20
|
-
import: () => {
|
|
21
|
-
const t = document.createElement("input");
|
|
22
|
-
t.type = "file", t.accept = ".json,application/json", t.onchange = async (o) => {
|
|
23
|
-
const n = o.target.files[0];
|
|
24
|
-
if (!n) return;
|
|
25
|
-
const r = new FileReader();
|
|
26
|
-
r.onload = async (k) => {
|
|
27
|
-
try {
|
|
28
|
-
await p.import({ file: n }), i.success("导入覆盖成功");
|
|
29
|
-
} catch (d) {
|
|
30
|
-
console.error("上传的文件不是合法JSON", d);
|
|
31
|
-
}
|
|
32
|
-
}, r.readAsText(n);
|
|
33
|
-
}, t.click();
|
|
34
|
-
},
|
|
35
|
-
export: async () => {
|
|
36
|
-
const { data: t } = await p.export();
|
|
37
|
-
i.success("备份成功" + t, {
|
|
38
|
-
duration: 3e3
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
return (t, o) => {
|
|
43
|
-
const n = _("el-button");
|
|
44
|
-
return f(), x("div", C, [
|
|
45
|
-
c(n, {
|
|
46
|
-
onClick: e.export
|
|
47
|
-
}, {
|
|
48
|
-
default: s(() => o[0] || (o[0] = [
|
|
49
|
-
a("备份数据", -1)
|
|
50
|
-
])),
|
|
51
|
-
_: 1,
|
|
52
|
-
__: [0]
|
|
53
|
-
}, 8, ["onClick"]),
|
|
54
|
-
c(n, {
|
|
55
|
-
onClick: e.import
|
|
56
|
-
}, {
|
|
57
|
-
default: s(() => o[1] || (o[1] = [
|
|
58
|
-
a("导入覆盖", -1)
|
|
59
|
-
])),
|
|
60
|
-
_: 1,
|
|
61
|
-
__: [1]
|
|
62
|
-
}, 8, ["onClick"])
|
|
63
|
-
]);
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
w as default
|
|
69
|
-
};
|
package/dist/index-Dejkixap.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { defineComponent as y, reactive as m, resolveComponent as s, openBlock as r, createBlock as p, withCtx as n, createTextVNode as u } from "vue";
|
|
2
|
-
import { TSys as i } from "cc1-form";
|
|
3
|
-
import { ApiAuthApi as d, scurd as f, ssys as b } from "./cc1-admin-front.js";
|
|
4
|
-
const x = /* @__PURE__ */ y({
|
|
5
|
-
__name: "index",
|
|
6
|
-
setup(_) {
|
|
7
|
-
const t = m({
|
|
8
|
-
data: [],
|
|
9
|
-
option: {
|
|
10
|
-
api: d,
|
|
11
|
-
search: {
|
|
12
|
-
show: !1
|
|
13
|
-
},
|
|
14
|
-
data(e) {
|
|
15
|
-
return t.data = b.getTableTree(e), t.data;
|
|
16
|
-
},
|
|
17
|
-
table: {
|
|
18
|
-
border: !0,
|
|
19
|
-
index: !1,
|
|
20
|
-
add: (e) => e?.type === 0,
|
|
21
|
-
operate: {
|
|
22
|
-
width: 160
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
page: {
|
|
26
|
-
show: !1
|
|
27
|
-
},
|
|
28
|
-
column: [
|
|
29
|
-
{
|
|
30
|
-
key: "parentId",
|
|
31
|
-
label: "父级",
|
|
32
|
-
type: "treeSelect",
|
|
33
|
-
value: "0",
|
|
34
|
-
form: {
|
|
35
|
-
span: 12
|
|
36
|
-
},
|
|
37
|
-
options: {
|
|
38
|
-
treeSelect: {
|
|
39
|
-
data: [],
|
|
40
|
-
multiple: !1
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
show: {
|
|
44
|
-
table: !1
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
key: "title",
|
|
49
|
-
label: "名称",
|
|
50
|
-
type: "input",
|
|
51
|
-
value: "",
|
|
52
|
-
table: {
|
|
53
|
-
width: "250px",
|
|
54
|
-
align: "left"
|
|
55
|
-
},
|
|
56
|
-
rules: !0
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
key: "type",
|
|
60
|
-
label: "类型",
|
|
61
|
-
type: "select",
|
|
62
|
-
value: 0,
|
|
63
|
-
options: {
|
|
64
|
-
select: {
|
|
65
|
-
clearable: !1,
|
|
66
|
-
data: [
|
|
67
|
-
{ label: "目录", value: 0 },
|
|
68
|
-
{ label: "接口", value: 1 }
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
key: "sort",
|
|
75
|
-
label: "排序",
|
|
76
|
-
type: "input",
|
|
77
|
-
value: 0,
|
|
78
|
-
table: {
|
|
79
|
-
width: "80px",
|
|
80
|
-
align: "center"
|
|
81
|
-
},
|
|
82
|
-
form: {
|
|
83
|
-
span: 12
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
key: "url",
|
|
88
|
-
label: "地址",
|
|
89
|
-
type: "select",
|
|
90
|
-
value: "",
|
|
91
|
-
rules: !0,
|
|
92
|
-
show: {
|
|
93
|
-
form: (e) => e.type === 1
|
|
94
|
-
},
|
|
95
|
-
options: {
|
|
96
|
-
select: {
|
|
97
|
-
filterable: !0,
|
|
98
|
-
data: []
|
|
99
|
-
}
|
|
100
|
-
},
|
|
101
|
-
table: {
|
|
102
|
-
minWidth: "250px",
|
|
103
|
-
align: "left"
|
|
104
|
-
},
|
|
105
|
-
form: {
|
|
106
|
-
span: 12
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
form: {
|
|
111
|
-
openBefore: async (e, a) => {
|
|
112
|
-
f.form.openBefore.parentId(e.title ? e : null, a, t.data, t.option), a.type === i.EDialog.Add && (e.title = "");
|
|
113
|
-
const l = await t.api.getList();
|
|
114
|
-
f.setOptionsData(
|
|
115
|
-
t.option,
|
|
116
|
-
"url",
|
|
117
|
-
l.map((o) => ({
|
|
118
|
-
label: o.path,
|
|
119
|
-
value: o.path
|
|
120
|
-
}))
|
|
121
|
-
);
|
|
122
|
-
}
|
|
123
|
-
},
|
|
124
|
-
tools: {
|
|
125
|
-
add: (e) => e === void 0 ? !0 : e.type === 0,
|
|
126
|
-
update: !0,
|
|
127
|
-
delete: !0,
|
|
128
|
-
export: {
|
|
129
|
-
show: !1
|
|
130
|
-
},
|
|
131
|
-
expand: !0
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
api: {
|
|
135
|
-
list: [],
|
|
136
|
-
getList: async () => {
|
|
137
|
-
if (t.api.list.length) return t.api.list;
|
|
138
|
-
i.loading(!0);
|
|
139
|
-
const e = await d.all({
|
|
140
|
-
final(a, l, o) {
|
|
141
|
-
i.loading(!1);
|
|
142
|
-
}
|
|
143
|
-
});
|
|
144
|
-
return t.api.list = e.data, t.api.list;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
return (e, a) => {
|
|
149
|
-
const l = s("el-tag"), o = s("t-curd");
|
|
150
|
-
return r(), p(o, {
|
|
151
|
-
option: t.option
|
|
152
|
-
}, {
|
|
153
|
-
"table-type": n(({ row: c }) => [
|
|
154
|
-
c.type === 0 ? (r(), p(l, {
|
|
155
|
-
key: 0,
|
|
156
|
-
type: "success"
|
|
157
|
-
}, {
|
|
158
|
-
default: n(() => a[0] || (a[0] = [
|
|
159
|
-
u("目录", -1)
|
|
160
|
-
])),
|
|
161
|
-
_: 1,
|
|
162
|
-
__: [0]
|
|
163
|
-
})) : (r(), p(l, {
|
|
164
|
-
key: 1,
|
|
165
|
-
type: "warning"
|
|
166
|
-
}, {
|
|
167
|
-
default: n(() => a[1] || (a[1] = [
|
|
168
|
-
u("接口", -1)
|
|
169
|
-
])),
|
|
170
|
-
_: 1,
|
|
171
|
-
__: [1]
|
|
172
|
-
}))
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
}, 8, ["option"]);
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
export {
|
|
180
|
-
x as default
|
|
181
|
-
};
|