gs-eant-comp 3.0.7 → 3.0.9
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/dist/gs-eant-comp.css +1 -1
- package/dist/gs-eant-comp.js +5213 -26
- package/dist/gs-eant-comp.umd.cjs +4 -18
- package/package.json +1 -1
- package/dist/Activate-CfIQc-Zp.js +0 -169
- package/dist/ActivateForm-Cfmxf7JB.js +0 -134
- package/dist/AuthCallbackCAS-CLg-ACaV.js +0 -26
- package/dist/AuthCallbackOauth-DlRCCsJV.js +0 -30
- package/dist/AutoTaskEList-wQ6PdTlr.js +0 -291
- package/dist/AutoTaskEditor-BHiZevKj.js +0 -275
- package/dist/AutoTaskLog-DDKrty5r.js +0 -48
- package/dist/AutoTaskViewer-CYvggIGV.js +0 -33
- package/dist/DepartmentEList-CF6bKecL.js +0 -209
- package/dist/DepartmentETable-mct60T1p.js +0 -135
- package/dist/DepartmentETree-e6bJiA4U.js +0 -46
- package/dist/DepartmentETree-vL3HbFkn.js +0 -44
- package/dist/DepartmentEditor-CU5XTCf2.js +0 -214
- package/dist/DepartmentUserEList-BvYeoku6.js +0 -171
- package/dist/DepartmentViewer-CXMXe42a.js +0 -34
- package/dist/FlowCenter-CdrOcmJ3.js +0 -52
- package/dist/IconPicker-BplgUQ5t.js +0 -129
- package/dist/IconSelect-NuAXvxVh.js +0 -70
- package/dist/LogETable-B28F96I_.js +0 -221
- package/dist/LogETable-BkLXbzIJ.js +0 -220
- package/dist/LogETable-D938B_TI.js +0 -231
- package/dist/LogEditor-5nlkOAyR.js +0 -136
- package/dist/LogEditor-C2rGmjR_.js +0 -130
- package/dist/LogEditor-Dde9DlwW.js +0 -138
- package/dist/LoginForm-B-DefUdK.js +0 -346
- package/dist/LoginLogViewer-BrlSaCPp.js +0 -33
- package/dist/LoginPageClassic-D2a8kWiH.js +0 -91
- package/dist/LoginPagePortal-Q-Lwwpbu.js +0 -140
- package/dist/LoginViewer-Dxx6tjuD.js +0 -39
- package/dist/MenuApi-DzYTJysM.js +0 -162
- package/dist/MenuDrag-tjmY7o1N.js +0 -108
- package/dist/MenuETable-BAgUF0iO.js +0 -415
- package/dist/MenuEditor-luvfizeH.js +0 -431
- package/dist/MenuViewer-CpGhh20J.js +0 -35
- package/dist/OauthCallback-B_GjYhqd.js +0 -30
- package/dist/OperationLogViewer-DR9PO9Ea.js +0 -32
- package/dist/RegisterForm-C1c1SEvn.js +0 -134
- package/dist/RoleETree-CKy46-Zn.js +0 -150
- package/dist/RoleEditor-CNS3Qk8w.js +0 -168
- package/dist/RoleFacePermission-DEpiV8Zt.js +0 -92
- package/dist/RoleInterfacePermissionETable-Co773S1r.js +0 -115
- package/dist/RoleInterfacePermissionTree-ClUoM85L.js +0 -90
- package/dist/RoleMenuPermissionTree-D5UQJvZR.js +0 -81
- package/dist/RoleUserAddEditor-BlvKzs8m.js +0 -164
- package/dist/RoleUserEList-My5QAm8G.js +0 -106
- package/dist/RoleUserETable-Os7RJeik.js +0 -189
- package/dist/RoleUserManagerViewer-BduFxkpG.js +0 -109
- package/dist/RoleV2Viewer-DQzjP589.js +0 -139
- package/dist/RoleViewer-Dcg3qCCk.js +0 -74
- package/dist/SystemLogViewer-CTYfCAD0.js +0 -33
- package/dist/TaskCenter-CiUnpJ8A.js +0 -251
- package/dist/TaskCenter_v1-D9AxQsFj.js +0 -55
- package/dist/UserEList-BZOI6u_o.js +0 -279
- package/dist/UserEditor-CMaL_euI.js +0 -330
- package/dist/UserViewer-DI_f9xYf.js +0 -55
- package/dist/iconfont-CXJEu-zK.js +0 -7
- package/dist/index-C3Fr-kGd.js +0 -7899
- package/dist/useExComponentActions-BBBV87vq.js +0 -18
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
import { defineComponent as A, resolveComponent as r, createBlock as F, openBlock as P, withCtx as l, createVNode as t, mergeProps as z, createElementVNode as u, createCommentVNode as $, createTextVNode as E, inject as v, reactive as p, ref as q } from "vue";
|
|
2
|
-
import { useRequest as _ } from "vue-request";
|
|
3
|
-
import { Form as U, message as w } from "ant-design-vue";
|
|
4
|
-
import { _ as V } from "./index-C3Fr-kGd.js";
|
|
5
|
-
const B = U.useForm, D = A({
|
|
6
|
-
props: {
|
|
7
|
-
xs: { type: Number, default: 24 },
|
|
8
|
-
lg: { type: Number, default: 24 },
|
|
9
|
-
span: { type: Number, default: 4 },
|
|
10
|
-
layout: { type: String, default: "vertical" }
|
|
11
|
-
},
|
|
12
|
-
setup() {
|
|
13
|
-
const e = v("$API"), o = p(e.autoTask.add), c = p(e.autoTask.info), g = p(e.autoTask.update), y = v("refComp"), x = v("refPopup"), n = v("selectedKey", q()), a = p({}), f = p({
|
|
14
|
-
rwmc: [{ required: !0, message: "请填写任务名称!" }],
|
|
15
|
-
rwzxl: [{ required: !0, message: "请填写任务执行类" }],
|
|
16
|
-
rwzxff: [{ required: !0, message: "请填写任务执行方法" }],
|
|
17
|
-
rwzxjh: [{ required: !0, message: "请填写任务执行计划" }]
|
|
18
|
-
}), i = q([
|
|
19
|
-
{ zdm: "秒", yxz: "0-59", tszf: ", - * / " },
|
|
20
|
-
{ zdm: "分", yxz: "0-59", tszf: ", - * / " },
|
|
21
|
-
{ zdm: "时", yxz: "0-23", tszf: ", - * / " },
|
|
22
|
-
{ zdm: "日", yxz: "1-31", tszf: ", - * ? / L W C" },
|
|
23
|
-
{ zdm: "月", yxz: "1-12", tszf: ", - * / " },
|
|
24
|
-
{ zdm: "周", yxz: "1-7", tszf: " , - * ? / L C # " },
|
|
25
|
-
{ zdm: "年", yxz: "年份或空", tszf: "1970-2099 , - * /" }
|
|
26
|
-
]), { run: N, error: b, loading: S } = _((s) => c[c.method](s), {
|
|
27
|
-
defaultParams: [{ key: n.value }],
|
|
28
|
-
onBefore: () => !!n.value,
|
|
29
|
-
ready: () => !!n.value,
|
|
30
|
-
onSuccess: (s) => {
|
|
31
|
-
Object.assign(a, s.data);
|
|
32
|
-
}
|
|
33
|
-
}), { run: T, loading: C } = _(
|
|
34
|
-
async (s) => {
|
|
35
|
-
const m = n.value ? g : o;
|
|
36
|
-
return m[m.method](s);
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
manual: !0,
|
|
40
|
-
onSuccess: (s) => {
|
|
41
|
-
y.value.sync(), x.value.open = !1;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
), { run: j } = _(async (s) => {
|
|
45
|
-
const m = n.value ? g : o;
|
|
46
|
-
return m[m.method](s);
|
|
47
|
-
}, {
|
|
48
|
-
manual: !0,
|
|
49
|
-
onSuccess: (s) => {
|
|
50
|
-
y.value.sync(), x.value.open = !1;
|
|
51
|
-
}
|
|
52
|
-
}), { resetFields: k, validate: I, validateInfos: d } = B(a, f);
|
|
53
|
-
return {
|
|
54
|
-
api: e,
|
|
55
|
-
error: b,
|
|
56
|
-
loading: S,
|
|
57
|
-
save_loading: C,
|
|
58
|
-
formState: a,
|
|
59
|
-
resetFields: k,
|
|
60
|
-
validate: I,
|
|
61
|
-
validateInfos: d,
|
|
62
|
-
onSubmit: async () => {
|
|
63
|
-
try {
|
|
64
|
-
if (!a.rwmc)
|
|
65
|
-
return w.error("请填写任务名称!"), !1;
|
|
66
|
-
if (!a.rwzxl)
|
|
67
|
-
return w.error("请填写任务执行类!"), !1;
|
|
68
|
-
if (!a.rwzxff)
|
|
69
|
-
return w.error("请填写任务执行方法!"), !1;
|
|
70
|
-
if (!a.rwzxjh)
|
|
71
|
-
return w.error("请填写任务执行计划!"), !1;
|
|
72
|
-
j({ rwmc: a.rwmc, rwzxl: a.rwzxl, rwzxff: a.rwzxff, rwzxjh: a.rwzxjh, key: n.value });
|
|
73
|
-
} catch {
|
|
74
|
-
}
|
|
75
|
-
},
|
|
76
|
-
cronData: i
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
}), K = { style: { width: "300px", margin: "0 auto" } };
|
|
80
|
-
function L(e, o, c, g, y, x) {
|
|
81
|
-
const n = r("a-input"), a = r("a-form-item"), f = r("a-col"), i = r("a-table-column"), N = r("a-table"), b = r("a-icon"), S = r("a-popover"), T = r("a-row"), C = r("a-button"), j = r("a-space"), k = r("a-form"), I = r("ESpin");
|
|
82
|
-
return P(), F(I, {
|
|
83
|
-
spinning: e.loading,
|
|
84
|
-
error: e.error
|
|
85
|
-
}, {
|
|
86
|
-
default: l(() => [
|
|
87
|
-
t(k, {
|
|
88
|
-
class: "d-flex flex-column h-100 justify-content-between",
|
|
89
|
-
autocomplete: "off",
|
|
90
|
-
layout: e.layout,
|
|
91
|
-
"label-col": { span: e.layout == "vertical" ? 24 : 24 / e.lg * e.span },
|
|
92
|
-
"wrapper-col": { span: e.layout == "vertical" ? 24 : 24 - 24 / e.lg * e.span }
|
|
93
|
-
}, {
|
|
94
|
-
default: l(() => [
|
|
95
|
-
t(T, { gutter: [16] }, {
|
|
96
|
-
default: l(() => [
|
|
97
|
-
t(f, {
|
|
98
|
-
xs: e.xs,
|
|
99
|
-
lg: e.lg
|
|
100
|
-
}, {
|
|
101
|
-
default: l(() => [
|
|
102
|
-
t(a, z({
|
|
103
|
-
label: "任务名称",
|
|
104
|
-
name: "rwmc"
|
|
105
|
-
}, e.validateInfos.rwmc), {
|
|
106
|
-
default: l(() => [
|
|
107
|
-
t(n, {
|
|
108
|
-
value: e.formState.rwmc,
|
|
109
|
-
"onUpdate:value": o[0] || (o[0] = (d) => e.formState.rwmc = d),
|
|
110
|
-
placeholder: "请填写任务名称",
|
|
111
|
-
allowClear: ""
|
|
112
|
-
}, null, 8, ["value"])
|
|
113
|
-
]),
|
|
114
|
-
_: 1
|
|
115
|
-
}, 16)
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
}, 8, ["xs", "lg"]),
|
|
119
|
-
t(f, {
|
|
120
|
-
xs: e.xs,
|
|
121
|
-
lg: e.lg
|
|
122
|
-
}, {
|
|
123
|
-
default: l(() => [
|
|
124
|
-
t(a, z({
|
|
125
|
-
label: "任务执行类",
|
|
126
|
-
name: "rwzxl"
|
|
127
|
-
}, e.validateInfos.rwzxl), {
|
|
128
|
-
default: l(() => [
|
|
129
|
-
t(n, {
|
|
130
|
-
value: e.formState.rwzxl,
|
|
131
|
-
"onUpdate:value": o[1] || (o[1] = (d) => e.formState.rwzxl = d),
|
|
132
|
-
placeholder: "请填写任务执行类",
|
|
133
|
-
allowClear: ""
|
|
134
|
-
}, null, 8, ["value"])
|
|
135
|
-
]),
|
|
136
|
-
_: 1
|
|
137
|
-
}, 16)
|
|
138
|
-
]),
|
|
139
|
-
_: 1
|
|
140
|
-
}, 8, ["xs", "lg"]),
|
|
141
|
-
t(f, {
|
|
142
|
-
xs: e.xs,
|
|
143
|
-
lg: e.lg
|
|
144
|
-
}, {
|
|
145
|
-
default: l(() => [
|
|
146
|
-
t(a, z({
|
|
147
|
-
label: "任务执行方法",
|
|
148
|
-
name: "rwzxff"
|
|
149
|
-
}, e.validateInfos.rwzxff), {
|
|
150
|
-
default: l(() => [
|
|
151
|
-
t(n, {
|
|
152
|
-
value: e.formState.rwzxff,
|
|
153
|
-
"onUpdate:value": o[2] || (o[2] = (d) => e.formState.rwzxff = d),
|
|
154
|
-
placeholder: "请填写任务执行方法",
|
|
155
|
-
allowClear: ""
|
|
156
|
-
}, null, 8, ["value"])
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
}, 16)
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}, 8, ["xs", "lg"]),
|
|
163
|
-
t(f, {
|
|
164
|
-
xs: e.xs,
|
|
165
|
-
lg: e.lg
|
|
166
|
-
}, {
|
|
167
|
-
default: l(() => [
|
|
168
|
-
t(a, z({
|
|
169
|
-
label: "任务执行计划",
|
|
170
|
-
name: "rwzxjh"
|
|
171
|
-
}, e.validateInfos.rwzxjh), {
|
|
172
|
-
default: l(() => [
|
|
173
|
-
t(n, {
|
|
174
|
-
value: e.formState.rwzxjh,
|
|
175
|
-
"onUpdate:value": o[3] || (o[3] = (d) => e.formState.rwzxjh = d),
|
|
176
|
-
placeholder: "请填写任务执行计划",
|
|
177
|
-
class: "w-75",
|
|
178
|
-
allowClear: ""
|
|
179
|
-
}, null, 8, ["value"]),
|
|
180
|
-
t(S, {
|
|
181
|
-
title: "执行计划说明",
|
|
182
|
-
trigger: "hover",
|
|
183
|
-
placement: "right"
|
|
184
|
-
}, {
|
|
185
|
-
content: l(() => [
|
|
186
|
-
u("div", K, [
|
|
187
|
-
o[4] || (o[4] = u("div", null, "执行计划的格式:秒 分 时 日 月 周 年(非必填)", -1)),
|
|
188
|
-
u("div", null, [
|
|
189
|
-
t(N, {
|
|
190
|
-
size: "small",
|
|
191
|
-
bordered: "",
|
|
192
|
-
dataSource: e.cronData,
|
|
193
|
-
pagination: !1
|
|
194
|
-
}, {
|
|
195
|
-
default: l(() => [
|
|
196
|
-
t(i, {
|
|
197
|
-
title: "字段名",
|
|
198
|
-
dataIndex: "zdm",
|
|
199
|
-
width: 60
|
|
200
|
-
}),
|
|
201
|
-
t(i, {
|
|
202
|
-
title: "允许的值",
|
|
203
|
-
dataIndex: "yxz",
|
|
204
|
-
width: 80
|
|
205
|
-
}),
|
|
206
|
-
t(i, {
|
|
207
|
-
title: "允许的特殊字符",
|
|
208
|
-
dataIndex: "tszf",
|
|
209
|
-
width: 150
|
|
210
|
-
})
|
|
211
|
-
]),
|
|
212
|
-
_: 1
|
|
213
|
-
}, 8, ["dataSource"])
|
|
214
|
-
]),
|
|
215
|
-
o[5] || (o[5] = u("div", null, "执行计划的格式例子:", -1)),
|
|
216
|
-
o[6] || (o[6] = u("div", null, "0 * * * * ? 表示:每1分钟触发一次", -1)),
|
|
217
|
-
o[7] || (o[7] = u("div", null, "0 0 * * * ? 表示:每1小时触发一次", -1)),
|
|
218
|
-
o[8] || (o[8] = u("div", null, "0 0 10 * * ? 表示:每天10点触发一次", -1)),
|
|
219
|
-
o[9] || (o[9] = u("div", null, "0 */1 * * * ? 表示:每隔1分钟执行一次", -1)),
|
|
220
|
-
o[10] || (o[10] = u("div", null, "0 0/30 9-17 * * ? 表示:9点到17点每30分触发", -1)),
|
|
221
|
-
o[11] || (o[11] = u("div", null, "0 0 10,14,16 * * ? 表示:每天10、14、16点触发", -1))
|
|
222
|
-
])
|
|
223
|
-
]),
|
|
224
|
-
default: l(() => [
|
|
225
|
-
t(b, {
|
|
226
|
-
type: "icon-question-circle",
|
|
227
|
-
style: { float: "right", "font-size": "18px", color: "#888", cursor: "pointer" }
|
|
228
|
-
})
|
|
229
|
-
]),
|
|
230
|
-
_: 1
|
|
231
|
-
})
|
|
232
|
-
]),
|
|
233
|
-
_: 1
|
|
234
|
-
}, 16)
|
|
235
|
-
]),
|
|
236
|
-
_: 1
|
|
237
|
-
}, 8, ["xs", "lg"])
|
|
238
|
-
]),
|
|
239
|
-
_: 1
|
|
240
|
-
}),
|
|
241
|
-
t(a, {
|
|
242
|
-
"wrapper-col": { span: 24, offset: 0 },
|
|
243
|
-
class: "mb-0"
|
|
244
|
-
}, {
|
|
245
|
-
default: l(() => [
|
|
246
|
-
t(j, { class: "d-flex justify-content-end" }, {
|
|
247
|
-
default: l(() => [
|
|
248
|
-
$("", !0),
|
|
249
|
-
t(C, {
|
|
250
|
-
type: "primary",
|
|
251
|
-
onClick: e.onSubmit,
|
|
252
|
-
loading: e.save_loading
|
|
253
|
-
}, {
|
|
254
|
-
default: l(() => [...o[13] || (o[13] = [
|
|
255
|
-
E("保存", -1)
|
|
256
|
-
])]),
|
|
257
|
-
_: 1
|
|
258
|
-
}, 8, ["onClick", "loading"])
|
|
259
|
-
]),
|
|
260
|
-
_: 1
|
|
261
|
-
})
|
|
262
|
-
]),
|
|
263
|
-
_: 1
|
|
264
|
-
})
|
|
265
|
-
]),
|
|
266
|
-
_: 1
|
|
267
|
-
}, 8, ["layout", "label-col", "wrapper-col"])
|
|
268
|
-
]),
|
|
269
|
-
_: 1
|
|
270
|
-
}, 8, ["spinning", "error"]);
|
|
271
|
-
}
|
|
272
|
-
const H = /* @__PURE__ */ V(D, [["render", L]]);
|
|
273
|
-
export {
|
|
274
|
-
H as default
|
|
275
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { inject as r, reactive as u, ref as t, provide as i, watch as _, resolveComponent as d, createElementBlock as f, openBlock as h, createVNode as o, withCtx as j } from "vue";
|
|
2
|
-
import "vue-request";
|
|
3
|
-
import { Form as k } from "ant-design-vue";
|
|
4
|
-
const x = { class: "h-100 d-flex flex-column overflow-hidden bg-white" }, L = {
|
|
5
|
-
__name: "AutoTaskLog",
|
|
6
|
-
setup(w) {
|
|
7
|
-
k.useForm;
|
|
8
|
-
const p = r("$API"), s = u(p.autoTask.taskLog), a = t(), n = r("selectedKey", t());
|
|
9
|
-
i("apiObj", s), i("refLogPopup", a);
|
|
10
|
-
const c = (e) => {
|
|
11
|
-
s.params = { key: e };
|
|
12
|
-
};
|
|
13
|
-
return c(n.value), _(n, (e) => {
|
|
14
|
-
c(e);
|
|
15
|
-
}), t([
|
|
16
|
-
{ title: "开始执行时间", dataIndex: "kssj", width: 120 },
|
|
17
|
-
{ title: "执行结束时间", dataIndex: "jssj", width: 120 }
|
|
18
|
-
]), (e, b) => {
|
|
19
|
-
const l = d("a-table-column"), m = d("ETable");
|
|
20
|
-
return h(), f("div", x, [
|
|
21
|
-
o(m, {
|
|
22
|
-
ref_key: "refLogPopup",
|
|
23
|
-
ref: a,
|
|
24
|
-
columns: e.columns,
|
|
25
|
-
pageSize: 20,
|
|
26
|
-
useMixedMode: !1
|
|
27
|
-
}, {
|
|
28
|
-
default: j(() => [
|
|
29
|
-
o(l, {
|
|
30
|
-
title: "执行开始时间",
|
|
31
|
-
dataIndex: "kssj",
|
|
32
|
-
width: 100
|
|
33
|
-
}),
|
|
34
|
-
o(l, {
|
|
35
|
-
title: "执行结束时间",
|
|
36
|
-
dataIndex: "jssj",
|
|
37
|
-
width: 100
|
|
38
|
-
})
|
|
39
|
-
]),
|
|
40
|
-
_: 1
|
|
41
|
-
}, 8, ["columns"])
|
|
42
|
-
]);
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
L as default
|
|
48
|
-
};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { defineComponent as r, resolveComponent as e, createElementBlock as a, openBlock as f, createVNode as o, withCtx as s, ref as _, provide as i } from "vue";
|
|
2
|
-
import p from "./AutoTaskEList-wQ6PdTlr.js";
|
|
3
|
-
import { _ as d } from "./index-C3Fr-kGd.js";
|
|
4
|
-
const m = r({
|
|
5
|
-
components: { AutoTaskEList: p },
|
|
6
|
-
setup() {
|
|
7
|
-
const t = _([]);
|
|
8
|
-
i("selectedKeys", t);
|
|
9
|
-
}
|
|
10
|
-
}), u = { class: "pt-3 ps-3 bg-light h-100 d-flex flex-column overflow-hidden" };
|
|
11
|
-
function x(t, h, k, w, v, A) {
|
|
12
|
-
const n = e("AutoTaskEList"), c = e("a-col"), l = e("a-row");
|
|
13
|
-
return f(), a("div", u, [
|
|
14
|
-
o(l, {
|
|
15
|
-
gutter: [16, 16],
|
|
16
|
-
class: "h-100 flex-fill overflow-hidden"
|
|
17
|
-
}, {
|
|
18
|
-
default: s(() => [
|
|
19
|
-
o(c, { class: "flex-fill d-flex flex-column" }, {
|
|
20
|
-
default: s(() => [
|
|
21
|
-
o(n)
|
|
22
|
-
]),
|
|
23
|
-
_: 1
|
|
24
|
-
})
|
|
25
|
-
]),
|
|
26
|
-
_: 1
|
|
27
|
-
})
|
|
28
|
-
]);
|
|
29
|
-
}
|
|
30
|
-
const g = /* @__PURE__ */ d(m, [["render", x]]);
|
|
31
|
-
export {
|
|
32
|
-
g as default
|
|
33
|
-
};
|
|
@@ -1,209 +0,0 @@
|
|
|
1
|
-
import { defineComponent as D, resolveComponent as n, createElementBlock as P, openBlock as V, Fragment as j, createElementVNode as s, createVNode as t, withCtx as o, normalizeClass as L, createSlots as A, createTextVNode as p, toDisplayString as k, createCommentVNode as B, toRefs as M, ref as C, provide as u, inject as E, reactive as $ } from "vue";
|
|
2
|
-
import { useRequest as O } from "vue-request";
|
|
3
|
-
import R from "./DepartmentEditor-CU5XTCf2.js";
|
|
4
|
-
import { _ as U } from "./index-C3Fr-kGd.js";
|
|
5
|
-
const q = D({
|
|
6
|
-
components: { DepartmentEditor: R },
|
|
7
|
-
props: {
|
|
8
|
-
refName: {
|
|
9
|
-
type: String,
|
|
10
|
-
default: "refComp"
|
|
11
|
-
},
|
|
12
|
-
selectedKeysName: {
|
|
13
|
-
type: String,
|
|
14
|
-
default: "selectedKeys"
|
|
15
|
-
}
|
|
16
|
-
},
|
|
17
|
-
setup(a) {
|
|
18
|
-
const { refName: e, selectedKeysName: N } = M(a), r = C();
|
|
19
|
-
u("refPopup", r);
|
|
20
|
-
const m = E(e.value, C());
|
|
21
|
-
u("refComp", m);
|
|
22
|
-
const x = E(N.value, C([]));
|
|
23
|
-
u("selectedKeys", x);
|
|
24
|
-
const d = E("$API"), _ = $(d.department.list);
|
|
25
|
-
u("apiObj", _);
|
|
26
|
-
const v = $({
|
|
27
|
-
sfky: null
|
|
28
|
-
});
|
|
29
|
-
u("state", v);
|
|
30
|
-
const y = () => {
|
|
31
|
-
m.value.search();
|
|
32
|
-
}, c = C();
|
|
33
|
-
u("selectedKey", c);
|
|
34
|
-
const f = () => {
|
|
35
|
-
c.value = "", r.value.open = !0, r.value.title = "添加部门";
|
|
36
|
-
}, g = (i) => {
|
|
37
|
-
c.value = i, r.value.open = !0, r.value.title = "编辑部门";
|
|
38
|
-
}, b = $(d.department.del), { run: w } = O((i) => b[b.method]({ key: i }), {
|
|
39
|
-
manual: !0,
|
|
40
|
-
onSuccess: (i) => {
|
|
41
|
-
m.value.sync();
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
return {
|
|
45
|
-
refPopup: r,
|
|
46
|
-
refComp: m,
|
|
47
|
-
state: v,
|
|
48
|
-
selectedKeys: x,
|
|
49
|
-
add: f,
|
|
50
|
-
edit: g,
|
|
51
|
-
del: w,
|
|
52
|
-
search: y
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
}), F = { class: "h-100 d-flex flex-column overflow-hidden bg-white" }, I = { class: "px-1" }, T = { class: "card-hover position-relative" }, G = { class: "" }, H = { class: "text-black-50" }, J = { class: "text-black-50" }, Q = { class: "text-black-50" };
|
|
56
|
-
function W(a, e, N, r, m, x) {
|
|
57
|
-
const d = n("a-icon"), _ = n("a-button"), v = n("a-input"), y = n("a-select-option"), c = n("a-select");
|
|
58
|
-
n("a-tag"), n("a-switch");
|
|
59
|
-
const f = n("a-col"), g = n("a-row"), b = n("a-popconfirm"), w = n("a-card"), i = n("EList"), K = n("DepartmentEditor"), S = n("EModal");
|
|
60
|
-
return V(), P(j, null, [
|
|
61
|
-
s("div", F, [
|
|
62
|
-
t(i, {
|
|
63
|
-
ref: "refComp",
|
|
64
|
-
grid: { gutter: 16, xs: 1, sm: 1, md: 2, lg: 3, xl: 4, xxl: 5 },
|
|
65
|
-
pageSize: 20
|
|
66
|
-
}, {
|
|
67
|
-
left: o(() => [
|
|
68
|
-
t(_, {
|
|
69
|
-
type: "primary",
|
|
70
|
-
onClick: e[0] || (e[0] = (l) => a.add())
|
|
71
|
-
}, {
|
|
72
|
-
default: o(() => [
|
|
73
|
-
s("small", null, [
|
|
74
|
-
t(d, { type: "icon-plus" }),
|
|
75
|
-
e[4] || (e[4] = p(" 添加部门", -1))
|
|
76
|
-
])
|
|
77
|
-
]),
|
|
78
|
-
_: 1
|
|
79
|
-
})
|
|
80
|
-
]),
|
|
81
|
-
right: o(() => [
|
|
82
|
-
t(v, {
|
|
83
|
-
value: a.state.dmmc,
|
|
84
|
-
"onUpdate:value": e[1] || (e[1] = (l) => a.state.dmmc = l),
|
|
85
|
-
placeholder: "代码/名称",
|
|
86
|
-
size: "small",
|
|
87
|
-
allowClear: ""
|
|
88
|
-
}, null, 8, ["value"]),
|
|
89
|
-
t(c, {
|
|
90
|
-
value: a.state.sfky,
|
|
91
|
-
"onUpdate:value": e[2] || (e[2] = (l) => a.state.sfky = l),
|
|
92
|
-
placeholder: "状态",
|
|
93
|
-
style: { width: "150px" },
|
|
94
|
-
size: "small",
|
|
95
|
-
allowClear: ""
|
|
96
|
-
}, {
|
|
97
|
-
default: o(() => [
|
|
98
|
-
t(y, { value: "1" }, {
|
|
99
|
-
default: o(() => [...e[5] || (e[5] = [
|
|
100
|
-
p("有效", -1)
|
|
101
|
-
])]),
|
|
102
|
-
_: 1
|
|
103
|
-
}),
|
|
104
|
-
t(y, { value: "2" }, {
|
|
105
|
-
default: o(() => [...e[6] || (e[6] = [
|
|
106
|
-
p("无效", -1)
|
|
107
|
-
])]),
|
|
108
|
-
_: 1
|
|
109
|
-
})
|
|
110
|
-
]),
|
|
111
|
-
_: 1
|
|
112
|
-
}, 8, ["value"]),
|
|
113
|
-
t(_, {
|
|
114
|
-
type: "primary",
|
|
115
|
-
onClick: e[3] || (e[3] = (l) => a.search())
|
|
116
|
-
}, {
|
|
117
|
-
default: o(() => [
|
|
118
|
-
s("small", I, [
|
|
119
|
-
t(d, { type: "icon-search" }),
|
|
120
|
-
e[7] || (e[7] = p(" 检索", -1))
|
|
121
|
-
])
|
|
122
|
-
]),
|
|
123
|
-
_: 1
|
|
124
|
-
})
|
|
125
|
-
]),
|
|
126
|
-
default: o(({ item: l, index: X }) => [
|
|
127
|
-
s("div", T, [
|
|
128
|
-
e[10] || (e[10] = s("div", { class: "box_line lt-3" }, null, -1)),
|
|
129
|
-
e[11] || (e[11] = s("div", { class: "box_line rt-3" }, null, -1)),
|
|
130
|
-
e[12] || (e[12] = s("div", { class: "box_line lb-3" }, null, -1)),
|
|
131
|
-
e[13] || (e[13] = s("div", { class: "box_line rb-3" }, null, -1)),
|
|
132
|
-
t(w, {
|
|
133
|
-
size: "small",
|
|
134
|
-
class: L(["border-0", { "shadow-1": l.sfky == "1" }])
|
|
135
|
-
}, A({
|
|
136
|
-
title: o(() => [
|
|
137
|
-
B("", !0),
|
|
138
|
-
p(" " + k(l.bmmc), 1)
|
|
139
|
-
]),
|
|
140
|
-
actions: o(() => [
|
|
141
|
-
t(d, {
|
|
142
|
-
type: "icon-edit",
|
|
143
|
-
onClick: (z) => a.edit(l.key)
|
|
144
|
-
}, null, 8, ["onClick"]),
|
|
145
|
-
t(b, {
|
|
146
|
-
title: "确定要删除?",
|
|
147
|
-
onConfirm: (z) => a.del(l.key)
|
|
148
|
-
}, {
|
|
149
|
-
default: o(() => [
|
|
150
|
-
t(d, { type: "icon-delete" })
|
|
151
|
-
]),
|
|
152
|
-
_: 1
|
|
153
|
-
}, 8, ["onConfirm"])
|
|
154
|
-
]),
|
|
155
|
-
default: o(() => [
|
|
156
|
-
t(g, null, {
|
|
157
|
-
default: o(() => [
|
|
158
|
-
t(f, { span: 24 }, {
|
|
159
|
-
default: o(() => [
|
|
160
|
-
s("p", G, [
|
|
161
|
-
e[8] || (e[8] = s("span", { class: "text-black-50" }, "部门代码:", -1)),
|
|
162
|
-
p(k(l.bmdm), 1)
|
|
163
|
-
])
|
|
164
|
-
]),
|
|
165
|
-
_: 2
|
|
166
|
-
}, 1024),
|
|
167
|
-
t(f, { span: 24 }, {
|
|
168
|
-
default: o(() => [
|
|
169
|
-
s("p", H, "部门人数:" + k(l.bmdm), 1)
|
|
170
|
-
]),
|
|
171
|
-
_: 2
|
|
172
|
-
}, 1024),
|
|
173
|
-
t(f, { span: 24 }, {
|
|
174
|
-
default: o(() => [
|
|
175
|
-
s("p", J, [
|
|
176
|
-
e[9] || (e[9] = p("创建日期:", -1)),
|
|
177
|
-
s("span", Q, k(l.created_at), 1)
|
|
178
|
-
])
|
|
179
|
-
]),
|
|
180
|
-
_: 2
|
|
181
|
-
}, 1024)
|
|
182
|
-
]),
|
|
183
|
-
_: 2
|
|
184
|
-
}, 1024)
|
|
185
|
-
]),
|
|
186
|
-
_: 2
|
|
187
|
-
}, [
|
|
188
|
-
void 0
|
|
189
|
-
]), 1032, ["class"])
|
|
190
|
-
])
|
|
191
|
-
]),
|
|
192
|
-
_: 1
|
|
193
|
-
}, 512)
|
|
194
|
-
]),
|
|
195
|
-
t(S, {
|
|
196
|
-
ref: "refPopup",
|
|
197
|
-
width: "700px"
|
|
198
|
-
}, {
|
|
199
|
-
default: o(() => [
|
|
200
|
-
t(K)
|
|
201
|
-
]),
|
|
202
|
-
_: 1
|
|
203
|
-
}, 512)
|
|
204
|
-
], 64);
|
|
205
|
-
}
|
|
206
|
-
const te = /* @__PURE__ */ U(q, [["render", W]]);
|
|
207
|
-
export {
|
|
208
|
-
te as default
|
|
209
|
-
};
|