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
package/package.json
CHANGED
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { computed as E, reactive as I, inject as q, resolveComponent as i, createElementBlock as v, openBlock as p, createElementVNode as A, createVNode as o, toDisplayString as w, unref as m, withCtx as s, createBlock as T, createCommentVNode as U, createTextVNode as P } from "vue";
|
|
2
|
-
import { useStore as V } from "vuex";
|
|
3
|
-
import { useRouter as B } from "vue-router";
|
|
4
|
-
import { useRequest as y } from "vue-request";
|
|
5
|
-
import "ant-design-vue";
|
|
6
|
-
import { _ as C } from "./index-C3Fr-kGd.js";
|
|
7
|
-
const j = { class: "activate-page w-50" }, F = { class: "title" }, z = {
|
|
8
|
-
key: 0,
|
|
9
|
-
class: "subtitle"
|
|
10
|
-
}, D = {
|
|
11
|
-
key: 1,
|
|
12
|
-
class: "subtitle"
|
|
13
|
-
}, L = {
|
|
14
|
-
__name: "Activate",
|
|
15
|
-
setup($) {
|
|
16
|
-
const d = B(), f = V(), c = E(() => f.state.auth.userInfo), r = c.value?.first_login === !0 || c.value?.first_login === "t", e = I({
|
|
17
|
-
username: c.value.zgh || "",
|
|
18
|
-
realname: c.value.xm || "",
|
|
19
|
-
origin: "",
|
|
20
|
-
password: "",
|
|
21
|
-
confirm: ""
|
|
22
|
-
}), x = {
|
|
23
|
-
origin: [
|
|
24
|
-
{ required: !r, message: "请输入原密码" }
|
|
25
|
-
],
|
|
26
|
-
password: [
|
|
27
|
-
{ required: !0, message: "请输入密码" },
|
|
28
|
-
{ min: 6, message: "密码长度至少6位" }
|
|
29
|
-
],
|
|
30
|
-
confirm: [
|
|
31
|
-
{ required: !0, message: "请确认密码" },
|
|
32
|
-
{
|
|
33
|
-
validator(n, t) {
|
|
34
|
-
return t !== e.password ? Promise.reject("两次密码不一致") : Promise.resolve();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
]
|
|
38
|
-
}, g = q("$API"), b = () => {
|
|
39
|
-
const n = d.options.routes.findIndex((l) => l.name === "lowcodeplatform");
|
|
40
|
-
n !== -1 && (d.options.routes[n].children = []), f.state.auth.dynamicRouteNames.forEach((l) => {
|
|
41
|
-
d.removeRoute(l);
|
|
42
|
-
}), f.commit("RESET_STATE"), setTimeout(() => {
|
|
43
|
-
d.replace("/login");
|
|
44
|
-
}, 1e3);
|
|
45
|
-
}, { run: h } = y(() => g.auth.register.post({
|
|
46
|
-
username: e.username,
|
|
47
|
-
realname: e.realname,
|
|
48
|
-
password: e.password
|
|
49
|
-
}), {
|
|
50
|
-
manual: !0,
|
|
51
|
-
onSuccess: (n) => {
|
|
52
|
-
n?.code === 200 && b();
|
|
53
|
-
}
|
|
54
|
-
}), { run: R } = y(() => g.auth.update.post({
|
|
55
|
-
ymm: e.origin,
|
|
56
|
-
xmm: e.password,
|
|
57
|
-
qrmm: e.confirm
|
|
58
|
-
}), {
|
|
59
|
-
manual: !0,
|
|
60
|
-
onSuccess: () => {
|
|
61
|
-
data?.code === 200 && b();
|
|
62
|
-
}
|
|
63
|
-
}), k = () => {
|
|
64
|
-
r ? h() : R();
|
|
65
|
-
};
|
|
66
|
-
return (n, t) => {
|
|
67
|
-
const l = i("a-input"), u = i("a-form-item"), _ = i("a-input-password"), N = i("a-button"), S = i("a-form");
|
|
68
|
-
return p(), v("div", j, [
|
|
69
|
-
A("h2", F, w(m(r) ? "首次登录,请设置密码" : "重置密码或找回密码"), 1),
|
|
70
|
-
m(r) ? (p(), v("p", z, " 设置后,您可通过手机号和密码登录系统,查看会议记录等信息。 ")) : (p(), v("p", D, " 您可以重置密码,或通过“找回密码”方式恢复账户访问。 ")),
|
|
71
|
-
o(S, {
|
|
72
|
-
model: e,
|
|
73
|
-
rules: x,
|
|
74
|
-
layout: "vertical",
|
|
75
|
-
onFinish: k,
|
|
76
|
-
class: "form-box"
|
|
77
|
-
}, {
|
|
78
|
-
default: s(() => [
|
|
79
|
-
o(u, {
|
|
80
|
-
label: "手机号",
|
|
81
|
-
name: "username"
|
|
82
|
-
}, {
|
|
83
|
-
default: s(() => [
|
|
84
|
-
o(l, {
|
|
85
|
-
value: e.username,
|
|
86
|
-
"onUpdate:value": t[0] || (t[0] = (a) => e.username = a),
|
|
87
|
-
disabled: ""
|
|
88
|
-
}, null, 8, ["value"])
|
|
89
|
-
]),
|
|
90
|
-
_: 1
|
|
91
|
-
}),
|
|
92
|
-
o(u, {
|
|
93
|
-
label: "姓名",
|
|
94
|
-
name: "realname"
|
|
95
|
-
}, {
|
|
96
|
-
default: s(() => [
|
|
97
|
-
o(l, {
|
|
98
|
-
value: e.realname,
|
|
99
|
-
"onUpdate:value": t[1] || (t[1] = (a) => e.realname = a),
|
|
100
|
-
disabled: ""
|
|
101
|
-
}, null, 8, ["value"])
|
|
102
|
-
]),
|
|
103
|
-
_: 1
|
|
104
|
-
}),
|
|
105
|
-
m(r) ? U("", !0) : (p(), T(u, {
|
|
106
|
-
key: 0,
|
|
107
|
-
label: "原密码",
|
|
108
|
-
name: "origin"
|
|
109
|
-
}, {
|
|
110
|
-
default: s(() => [
|
|
111
|
-
o(_, {
|
|
112
|
-
value: e.origin,
|
|
113
|
-
"onUpdate:value": t[2] || (t[2] = (a) => e.origin = a),
|
|
114
|
-
placeholder: "请输入原密码"
|
|
115
|
-
}, null, 8, ["value"])
|
|
116
|
-
]),
|
|
117
|
-
_: 1
|
|
118
|
-
})),
|
|
119
|
-
o(u, {
|
|
120
|
-
label: m(r) ? "设置登录密码" : "重置登录密码",
|
|
121
|
-
name: "password"
|
|
122
|
-
}, {
|
|
123
|
-
default: s(() => [
|
|
124
|
-
o(_, {
|
|
125
|
-
value: e.password,
|
|
126
|
-
"onUpdate:value": t[3] || (t[3] = (a) => e.password = a),
|
|
127
|
-
placeholder: "请输入密码"
|
|
128
|
-
}, null, 8, ["value"])
|
|
129
|
-
]),
|
|
130
|
-
_: 1
|
|
131
|
-
}, 8, ["label"]),
|
|
132
|
-
o(u, {
|
|
133
|
-
label: m(r) ? "确认密码" : "确认新密码",
|
|
134
|
-
name: "confirm"
|
|
135
|
-
}, {
|
|
136
|
-
default: s(() => [
|
|
137
|
-
o(_, {
|
|
138
|
-
value: e.confirm,
|
|
139
|
-
"onUpdate:value": t[4] || (t[4] = (a) => e.confirm = a),
|
|
140
|
-
placeholder: "请再次输入密码"
|
|
141
|
-
}, null, 8, ["value"])
|
|
142
|
-
]),
|
|
143
|
-
_: 1
|
|
144
|
-
}, 8, ["label"]),
|
|
145
|
-
o(u, null, {
|
|
146
|
-
default: s(() => [
|
|
147
|
-
o(N, {
|
|
148
|
-
type: "primary",
|
|
149
|
-
"html-type": "submit",
|
|
150
|
-
block: ""
|
|
151
|
-
}, {
|
|
152
|
-
default: s(() => [
|
|
153
|
-
P(w(m(r) ? "完成并进入系统" : "保存新密码"), 1)
|
|
154
|
-
]),
|
|
155
|
-
_: 1
|
|
156
|
-
})
|
|
157
|
-
]),
|
|
158
|
-
_: 1
|
|
159
|
-
})
|
|
160
|
-
]),
|
|
161
|
-
_: 1
|
|
162
|
-
}, 8, ["model"])
|
|
163
|
-
]);
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
}, Q = /* @__PURE__ */ C(L, [["__scopeId", "data-v-6933ff0f"]]);
|
|
167
|
-
export {
|
|
168
|
-
Q as default
|
|
169
|
-
};
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
import { inject as d, ref as y, computed as V, resolveComponent as l, createBlock as x, openBlock as b, unref as t, withCtx as a, createElementVNode as p, normalizeClass as D, createVNode as o, createCommentVNode as T, createTextVNode as j } from "vue";
|
|
2
|
-
import { useStore as I } from "vuex";
|
|
3
|
-
import { useRouter as L } from "vue-router";
|
|
4
|
-
import { useRequest as B } from "vue-request";
|
|
5
|
-
import { D as S } from "./index-C3Fr-kGd.js";
|
|
6
|
-
const O = { class: "flex-fill d-flex flex-column justify-content-between" }, R = ["src"], J = {
|
|
7
|
-
__name: "ActivateForm",
|
|
8
|
-
setup(G) {
|
|
9
|
-
const m = I(), w = L(), C = d("$API"), e = d("formState");
|
|
10
|
-
y(!1);
|
|
11
|
-
const { run: F } = B(() => C.auth.activate.post(e), {
|
|
12
|
-
manual: !0,
|
|
13
|
-
onSuccess: (r) => {
|
|
14
|
-
r && (m.commit("LOGIN_IN", r.data.token), w.push({ path: "/" }));
|
|
15
|
-
},
|
|
16
|
-
onError: (r) => {
|
|
17
|
-
h();
|
|
18
|
-
}
|
|
19
|
-
}), E = () => {
|
|
20
|
-
F();
|
|
21
|
-
}, N = () => {
|
|
22
|
-
}, f = d("isPasswordFocused"), P = () => {
|
|
23
|
-
f.value = !0;
|
|
24
|
-
}, k = () => {
|
|
25
|
-
f.value = !1;
|
|
26
|
-
}, _ = process.env.NODE_ENV !== "production" || process.env.VUE_APP_PREVIEW === "true", v = y((_ ? "api/" : "") + "captcha/captcha.jpg?" + (/* @__PURE__ */ new Date()).getTime()), h = () => {
|
|
27
|
-
v.value = (_ ? "api/" : "") + "captcha/captcha.jpg?" + +(/* @__PURE__ */ new Date()).getTime();
|
|
28
|
-
}, g = V(() => m.state.app.loginLayoutType === "classic");
|
|
29
|
-
return (r, s) => {
|
|
30
|
-
const c = l("a-icon"), u = l("a-input"), i = l("a-form-item"), A = l("a-button"), U = l("a-form");
|
|
31
|
-
return b(), x(U, {
|
|
32
|
-
class: "h-100 d-flex flex-column justify-content-between bg-transparent",
|
|
33
|
-
layout: "vertical",
|
|
34
|
-
model: t(e),
|
|
35
|
-
onFinish: E,
|
|
36
|
-
onFinishFailed: N
|
|
37
|
-
}, {
|
|
38
|
-
default: a(() => [
|
|
39
|
-
p("div", O, [
|
|
40
|
-
p("div", {
|
|
41
|
-
class: D(["flex-fill py-3", g.value ? "ofa" : ""])
|
|
42
|
-
}, [
|
|
43
|
-
o(i, { label: "手机" }, {
|
|
44
|
-
default: a(() => [
|
|
45
|
-
o(u, {
|
|
46
|
-
value: t(e).username,
|
|
47
|
-
"onUpdate:value": s[0] || (s[0] = (n) => t(e).username = n),
|
|
48
|
-
placeholder: "请输入手机号"
|
|
49
|
-
}, {
|
|
50
|
-
prefix: a(() => [
|
|
51
|
-
o(c, { type: "icon-lock" })
|
|
52
|
-
]),
|
|
53
|
-
_: 1
|
|
54
|
-
}, 8, ["value"])
|
|
55
|
-
]),
|
|
56
|
-
_: 1
|
|
57
|
-
}),
|
|
58
|
-
o(i, { label: "姓名" }, {
|
|
59
|
-
default: a(() => [
|
|
60
|
-
o(u, {
|
|
61
|
-
value: t(e).password,
|
|
62
|
-
"onUpdate:value": s[1] || (s[1] = (n) => t(e).password = n),
|
|
63
|
-
placeholder: "请输入姓名"
|
|
64
|
-
}, {
|
|
65
|
-
prefix: a(() => [
|
|
66
|
-
o(c, { type: "icon-user" })
|
|
67
|
-
]),
|
|
68
|
-
_: 1
|
|
69
|
-
}, 8, ["value"])
|
|
70
|
-
]),
|
|
71
|
-
_: 1
|
|
72
|
-
}),
|
|
73
|
-
o(i, { label: "邀请码" }, {
|
|
74
|
-
default: a(() => [
|
|
75
|
-
o(u, {
|
|
76
|
-
value: t(e).code,
|
|
77
|
-
"onUpdate:value": s[2] || (s[2] = (n) => t(e).code = n),
|
|
78
|
-
placeholder: "请输入邀请码",
|
|
79
|
-
onFocus: P,
|
|
80
|
-
onBlur: k
|
|
81
|
-
}, {
|
|
82
|
-
prefix: a(() => [
|
|
83
|
-
o(c, { type: "icon-user" })
|
|
84
|
-
]),
|
|
85
|
-
_: 1
|
|
86
|
-
}, 8, ["value"])
|
|
87
|
-
]),
|
|
88
|
-
_: 1
|
|
89
|
-
}),
|
|
90
|
-
t(S).CAPTCHA_ENABLED ? (b(), x(i, { key: 0 }, {
|
|
91
|
-
label: a(() => [
|
|
92
|
-
p("img", {
|
|
93
|
-
src: v.value,
|
|
94
|
-
onClick: h
|
|
95
|
-
}, null, 8, R)
|
|
96
|
-
]),
|
|
97
|
-
default: a(() => [
|
|
98
|
-
o(u, {
|
|
99
|
-
value: t(e).captcha,
|
|
100
|
-
"onUpdate:value": s[3] || (s[3] = (n) => t(e).captcha = n),
|
|
101
|
-
placeholder: "验证码"
|
|
102
|
-
}, {
|
|
103
|
-
prefix: a(() => [
|
|
104
|
-
o(c, { type: "icon-lock" })
|
|
105
|
-
]),
|
|
106
|
-
_: 1
|
|
107
|
-
}, 8, ["value"])
|
|
108
|
-
]),
|
|
109
|
-
_: 1
|
|
110
|
-
})) : T("", !0)
|
|
111
|
-
], 2),
|
|
112
|
-
p("div", null, [
|
|
113
|
-
o(A, {
|
|
114
|
-
block: "",
|
|
115
|
-
type: "primary",
|
|
116
|
-
"html-type": "submit",
|
|
117
|
-
disabled: t(e).username === "" || t(e).password === ""
|
|
118
|
-
}, {
|
|
119
|
-
default: a(() => [...s[4] || (s[4] = [
|
|
120
|
-
j("确认并登录", -1)
|
|
121
|
-
])]),
|
|
122
|
-
_: 1
|
|
123
|
-
}, 8, ["disabled"])
|
|
124
|
-
])
|
|
125
|
-
])
|
|
126
|
-
]),
|
|
127
|
-
_: 1
|
|
128
|
-
}, 8, ["model"]);
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
export {
|
|
133
|
-
J as default
|
|
134
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { inject as s, ref as a, onUnmounted as l, resolveComponent as n, createElementBlock as c, openBlock as m, createElementVNode as e, createCommentVNode as i, normalizeStyle as p } from "vue";
|
|
2
|
-
import { useStore as u } from "vuex";
|
|
3
|
-
import { useRouter as _ } from "vue-router";
|
|
4
|
-
import "vue-request";
|
|
5
|
-
import { _ as d } from "./index-C3Fr-kGd.js";
|
|
6
|
-
const f = { class: "oauth-callback" }, v = { class: "progress-bar" }, g = {
|
|
7
|
-
__name: "AuthCallbackCAS",
|
|
8
|
-
setup(C) {
|
|
9
|
-
u(), _(), s("$API");
|
|
10
|
-
const o = a(10);
|
|
11
|
-
let r = null;
|
|
12
|
-
return l(() => clearInterval(r)), (h, t) => (n("a-progress"), m(), c("div", f, [
|
|
13
|
-
t[0] || (t[0] = e("div", { class: "loading-message" }, "正在处理授权,请稍候", -1)),
|
|
14
|
-
i("", !0),
|
|
15
|
-
e("div", v, [
|
|
16
|
-
e("div", {
|
|
17
|
-
class: "progress-inner",
|
|
18
|
-
style: p({ width: o.value + "%" })
|
|
19
|
-
}, null, 4)
|
|
20
|
-
])
|
|
21
|
-
]));
|
|
22
|
-
}
|
|
23
|
-
}, I = /* @__PURE__ */ d(g, [["__scopeId", "data-v-86f22c6f"]]);
|
|
24
|
-
export {
|
|
25
|
-
I as default
|
|
26
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { defineComponent as u, createElementBlock as p, openBlock as m, inject as d } from "vue";
|
|
2
|
-
import { useStore as f } from "vuex";
|
|
3
|
-
import { useRouter as l } from "vue-router";
|
|
4
|
-
import { useRequest as h } from "vue-request";
|
|
5
|
-
import { _, D as i } from "./index-C3Fr-kGd.js";
|
|
6
|
-
const A = u({
|
|
7
|
-
setup() {
|
|
8
|
-
const c = f(), n = l(), a = d("$API"), s = (o) => a.auth.oauthCallback.post(o), { run: t } = h(s, {
|
|
9
|
-
manual: !0,
|
|
10
|
-
onSuccess: (o) => {
|
|
11
|
-
o.code == "401" && i.CAPTCHA_ENABLED, o && (c.commit("LOGIN_IN", o.data.token), n.push({ path: "/" }));
|
|
12
|
-
}
|
|
13
|
-
}), e = new URLSearchParams(window.location.search), r = e.get("code");
|
|
14
|
-
if (r)
|
|
15
|
-
if (i.CAPTCHA_ENABLED) {
|
|
16
|
-
const o = e.get("captcha");
|
|
17
|
-
t({ code: r, providerName: "idp", captcha: o });
|
|
18
|
-
} else
|
|
19
|
-
t({ code: r, providerName: "idp" });
|
|
20
|
-
else
|
|
21
|
-
console.error("Authorization code not found in URL.");
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
function C(c, n, a, s, t, e) {
|
|
25
|
-
return m(), p("div", null, "正在处理授权...");
|
|
26
|
-
}
|
|
27
|
-
const $ = /* @__PURE__ */ _(A, [["render", C]]);
|
|
28
|
-
export {
|
|
29
|
-
$ as default
|
|
30
|
-
};
|
|
@@ -1,291 +0,0 @@
|
|
|
1
|
-
import { ref as w, provide as u, inject as H, reactive as k, resolveComponent as a, createElementBlock as b, openBlock as i, Fragment as J, createElementVNode as r, createVNode as o, withCtx as e, createTextVNode as s, toDisplayString as m, createBlock as C, unref as P } from "vue";
|
|
2
|
-
import Q from "./AutoTaskEditor-BHiZevKj.js";
|
|
3
|
-
import W from "./AutoTaskLog-DDKrty5r.js";
|
|
4
|
-
import { useRequest as T } from "vue-request";
|
|
5
|
-
import { u as X } from "./useExComponentActions-BBBV87vq.js";
|
|
6
|
-
import { _ as Y } from "./index-C3Fr-kGd.js";
|
|
7
|
-
const Z = { class: "h-100 d-flex flex-column overflow-hidden bg-white" }, tt = { class: "px-1" }, ot = {
|
|
8
|
-
class: "line_css",
|
|
9
|
-
style: { float: "left", width: "46%" }
|
|
10
|
-
}, et = { style: { color: "#555" } }, lt = {
|
|
11
|
-
class: "line_css",
|
|
12
|
-
style: { float: "left", width: "50%" }
|
|
13
|
-
}, st = { style: { color: "#555" } }, nt = { class: "line_css" }, rt = { style: { color: "#555" } }, at = { class: "line_css" }, it = { style: { color: "#555" } }, pt = {
|
|
14
|
-
class: "line_css",
|
|
15
|
-
style: { width: "65%", float: "left" }
|
|
16
|
-
}, dt = { style: { color: "#555" } }, ct = {
|
|
17
|
-
class: "line_css",
|
|
18
|
-
style: { width: "30%", float: "left" }
|
|
19
|
-
}, ut = {
|
|
20
|
-
key: 0,
|
|
21
|
-
style: { color: "#555" }
|
|
22
|
-
}, ft = {
|
|
23
|
-
key: 1,
|
|
24
|
-
style: { color: "#f00" }
|
|
25
|
-
}, _t = {
|
|
26
|
-
key: 2,
|
|
27
|
-
style: { color: "#f00" }
|
|
28
|
-
}, yt = {
|
|
29
|
-
__name: "AutoTaskEList",
|
|
30
|
-
setup(kt) {
|
|
31
|
-
const z = w();
|
|
32
|
-
u("refComp", z);
|
|
33
|
-
const p = w();
|
|
34
|
-
u("refPopup", p);
|
|
35
|
-
const v = w();
|
|
36
|
-
u("refLogPopup", v);
|
|
37
|
-
const f = w();
|
|
38
|
-
u("selectedKey", f);
|
|
39
|
-
const x = H("$API"), _ = k({}), S = k(x.autoTask.list), I = k(x.autoTask.del), A = k(x.autoTask.startTask), L = k(x.autoTask.stopTask);
|
|
40
|
-
u("state", _), u("apiObj", S);
|
|
41
|
-
const { del: O, search: E } = X(z, p, f, I, T, {}, {}), h = () => {
|
|
42
|
-
p.value.title = "增加自动执行任务", p.value.open = !0, f.value = "";
|
|
43
|
-
}, B = (n) => {
|
|
44
|
-
f.value = n, p.value.title = "编辑自动执行任务", p.value.open = !0;
|
|
45
|
-
}, D = (n) => {
|
|
46
|
-
f.value = n, v.value.title = "查看自动执行日志", v.value.open = !0;
|
|
47
|
-
}, { run: N } = T((n) => A[A.method](n), {
|
|
48
|
-
manual: !0,
|
|
49
|
-
onSuccess: (n) => {
|
|
50
|
-
E();
|
|
51
|
-
}
|
|
52
|
-
}), { run: V } = T((n) => L[L.method](n), {
|
|
53
|
-
manual: !0,
|
|
54
|
-
onSuccess: (n) => {
|
|
55
|
-
E();
|
|
56
|
-
}
|
|
57
|
-
}), K = (n) => {
|
|
58
|
-
N({ key: n });
|
|
59
|
-
}, M = (n) => {
|
|
60
|
-
V({ key: n });
|
|
61
|
-
};
|
|
62
|
-
return (n, t) => {
|
|
63
|
-
const d = a("a-icon"), $ = a("a-button"), j = a("ESelect"), c = a("a-tag"), y = a("a-card-meta"), R = a("a-popconfirm"), U = a("a-card"), q = a("EList"), F = a("EModal"), G = a("EDrawer");
|
|
64
|
-
return i(), b(J, null, [
|
|
65
|
-
r("div", Z, [
|
|
66
|
-
o(q, {
|
|
67
|
-
ref_key: "refComp",
|
|
68
|
-
ref: z,
|
|
69
|
-
grid: { gutter: 16, xs: 1, sm: 1, md: 2, lg: 2, xl: 2, xxl: 2 },
|
|
70
|
-
pageSize: 20
|
|
71
|
-
}, {
|
|
72
|
-
left: e(() => [
|
|
73
|
-
o($, {
|
|
74
|
-
type: "primary",
|
|
75
|
-
onClick: h
|
|
76
|
-
}, {
|
|
77
|
-
default: e(() => [
|
|
78
|
-
r("small", null, [
|
|
79
|
-
o(d, { type: "icon-plus" }),
|
|
80
|
-
t[3] || (t[3] = s(" 增加", -1))
|
|
81
|
-
])
|
|
82
|
-
]),
|
|
83
|
-
_: 1
|
|
84
|
-
})
|
|
85
|
-
]),
|
|
86
|
-
right: e(() => [
|
|
87
|
-
o(j, {
|
|
88
|
-
placeholder: "是否启动",
|
|
89
|
-
style: { width: "100px" },
|
|
90
|
-
allowClear: !1,
|
|
91
|
-
value: _.rwzt,
|
|
92
|
-
"onUpdate:value": t[0] || (t[0] = (l) => _.rwzt = l),
|
|
93
|
-
selectOptions: [{ label: "是", value: "1" }, { label: "否", value: "0" }]
|
|
94
|
-
}, null, 8, ["value"]),
|
|
95
|
-
o(j, {
|
|
96
|
-
placeholder: "执行状态",
|
|
97
|
-
style: { width: "100px" },
|
|
98
|
-
allowClear: !1,
|
|
99
|
-
value: _.zxzt,
|
|
100
|
-
"onUpdate:value": t[1] || (t[1] = (l) => _.zxzt = l),
|
|
101
|
-
selectOptions: [{ label: "正常", value: "1" }, { label: "异常", value: "0" }]
|
|
102
|
-
}, null, 8, ["value"]),
|
|
103
|
-
o($, {
|
|
104
|
-
type: "primary",
|
|
105
|
-
onClick: t[2] || (t[2] = (l) => P(E)())
|
|
106
|
-
}, {
|
|
107
|
-
default: e(() => [
|
|
108
|
-
r("small", tt, [
|
|
109
|
-
o(d, { type: "icon-search" }),
|
|
110
|
-
t[4] || (t[4] = s(" 检索", -1))
|
|
111
|
-
])
|
|
112
|
-
]),
|
|
113
|
-
_: 1
|
|
114
|
-
})
|
|
115
|
-
]),
|
|
116
|
-
default: e(({ item: l }) => [
|
|
117
|
-
o(U, {
|
|
118
|
-
size: "small",
|
|
119
|
-
title: l.rwmc,
|
|
120
|
-
headStyle: { "background-color": "#f8f8f8" }
|
|
121
|
-
}, {
|
|
122
|
-
extra: e(() => [
|
|
123
|
-
l.rwzt == "1" ? (i(), C(c, {
|
|
124
|
-
key: 0,
|
|
125
|
-
color: "green"
|
|
126
|
-
}, {
|
|
127
|
-
default: e(() => [...t[5] || (t[5] = [
|
|
128
|
-
s("已启动", -1)
|
|
129
|
-
])]),
|
|
130
|
-
_: 1
|
|
131
|
-
})) : (i(), C(c, { key: 1 }, {
|
|
132
|
-
default: e(() => [...t[6] || (t[6] = [
|
|
133
|
-
s("停止", -1)
|
|
134
|
-
])]),
|
|
135
|
-
_: 1
|
|
136
|
-
}))
|
|
137
|
-
]),
|
|
138
|
-
actions: e(() => [
|
|
139
|
-
o(c, {
|
|
140
|
-
bordered: !1,
|
|
141
|
-
color: "blue",
|
|
142
|
-
style: { "background-color": "#fff !important", "letter-spacing": "2px" },
|
|
143
|
-
onClick: (g) => B(l.key)
|
|
144
|
-
}, {
|
|
145
|
-
default: e(() => [
|
|
146
|
-
o(d, { type: "icon-edit" }),
|
|
147
|
-
t[14] || (t[14] = s("编辑信息", -1))
|
|
148
|
-
]),
|
|
149
|
-
_: 1
|
|
150
|
-
}, 8, ["onClick"]),
|
|
151
|
-
l.rwzt == "1" ? (i(), C(c, {
|
|
152
|
-
key: 0,
|
|
153
|
-
bordered: !1,
|
|
154
|
-
color: "red",
|
|
155
|
-
style: { "background-color": "#fff !important", "letter-spacing": "2px" },
|
|
156
|
-
onClick: (g) => M(l.key)
|
|
157
|
-
}, {
|
|
158
|
-
default: e(() => [
|
|
159
|
-
o(d, { type: "icon-stop" }),
|
|
160
|
-
t[15] || (t[15] = s("停止任务", -1))
|
|
161
|
-
]),
|
|
162
|
-
_: 1
|
|
163
|
-
}, 8, ["onClick"])) : (i(), C(c, {
|
|
164
|
-
key: 1,
|
|
165
|
-
bordered: !1,
|
|
166
|
-
color: "green",
|
|
167
|
-
style: { "background-color": "#fff !important", "letter-spacing": "2px" },
|
|
168
|
-
onClick: (g) => K(l.key)
|
|
169
|
-
}, {
|
|
170
|
-
default: e(() => [
|
|
171
|
-
o(d, { type: "icon-caret-right" }),
|
|
172
|
-
t[16] || (t[16] = s("启动任务", -1))
|
|
173
|
-
]),
|
|
174
|
-
_: 1
|
|
175
|
-
}, 8, ["onClick"])),
|
|
176
|
-
o(c, {
|
|
177
|
-
bordered: !1,
|
|
178
|
-
style: { "background-color": "#fff !important", "letter-spacing": "2px" },
|
|
179
|
-
onClick: (g) => D(l.key)
|
|
180
|
-
}, {
|
|
181
|
-
default: e(() => [
|
|
182
|
-
o(d, { type: "icon-solution" }),
|
|
183
|
-
t[17] || (t[17] = s("执行日志", -1))
|
|
184
|
-
]),
|
|
185
|
-
_: 1
|
|
186
|
-
}, 8, ["onClick"]),
|
|
187
|
-
o(R, {
|
|
188
|
-
title: "确定要删除?",
|
|
189
|
-
onConfirm: (g) => P(O)(l.key),
|
|
190
|
-
placement: "topRight"
|
|
191
|
-
}, {
|
|
192
|
-
default: e(() => [
|
|
193
|
-
o(c, {
|
|
194
|
-
bordered: !1,
|
|
195
|
-
color: "red",
|
|
196
|
-
style: { "background-color": "#fff !important", "letter-spacing": "2px" }
|
|
197
|
-
}, {
|
|
198
|
-
default: e(() => [
|
|
199
|
-
o(d, { type: "icon-delete" }),
|
|
200
|
-
t[18] || (t[18] = s("删除记录", -1))
|
|
201
|
-
]),
|
|
202
|
-
_: 1
|
|
203
|
-
})
|
|
204
|
-
]),
|
|
205
|
-
_: 1
|
|
206
|
-
}, 8, ["onConfirm"])
|
|
207
|
-
]),
|
|
208
|
-
default: e(() => [
|
|
209
|
-
o(y, null, {
|
|
210
|
-
description: e(() => [
|
|
211
|
-
r("div", ot, [
|
|
212
|
-
t[7] || (t[7] = s("执行计划:", -1)),
|
|
213
|
-
r("span", et, m(l.rwzxjh), 1)
|
|
214
|
-
]),
|
|
215
|
-
r("div", lt, [
|
|
216
|
-
t[8] || (t[8] = s("创建时间:", -1)),
|
|
217
|
-
r("span", st, m(l.cjsj), 1)
|
|
218
|
-
])
|
|
219
|
-
]),
|
|
220
|
-
_: 2
|
|
221
|
-
}, 1024),
|
|
222
|
-
o(y, null, {
|
|
223
|
-
description: e(() => [
|
|
224
|
-
r("div", nt, [
|
|
225
|
-
t[9] || (t[9] = s("执行类:", -1)),
|
|
226
|
-
r("span", rt, m(l.rwzxl), 1)
|
|
227
|
-
])
|
|
228
|
-
]),
|
|
229
|
-
_: 2
|
|
230
|
-
}, 1024),
|
|
231
|
-
o(y, null, {
|
|
232
|
-
description: e(() => [
|
|
233
|
-
r("div", at, [
|
|
234
|
-
t[10] || (t[10] = s("执行方法:", -1)),
|
|
235
|
-
r("span", it, m(l.rwzxff), 1)
|
|
236
|
-
])
|
|
237
|
-
]),
|
|
238
|
-
_: 2
|
|
239
|
-
}, 1024),
|
|
240
|
-
o(y, null, {
|
|
241
|
-
description: e(() => [
|
|
242
|
-
r("div", pt, [
|
|
243
|
-
t[11] || (t[11] = s("最近执行时间:", -1)),
|
|
244
|
-
r("span", dt, m(l.zxsj), 1)
|
|
245
|
-
]),
|
|
246
|
-
r("div", ct, [
|
|
247
|
-
t[12] || (t[12] = s("执行状态: ", -1)),
|
|
248
|
-
l.zxzt == "1" ? (i(), b("span", ut, "正常")) : l.rwzt == "0" ? (i(), b("span", ft, "未启动")) : (i(), b("span", _t, "异常"))
|
|
249
|
-
])
|
|
250
|
-
]),
|
|
251
|
-
_: 2
|
|
252
|
-
}, 1024),
|
|
253
|
-
o(y, null, {
|
|
254
|
-
description: e(() => [...t[13] || (t[13] = [])]),
|
|
255
|
-
_: 1
|
|
256
|
-
})
|
|
257
|
-
]),
|
|
258
|
-
_: 2
|
|
259
|
-
}, 1032, ["title"])
|
|
260
|
-
]),
|
|
261
|
-
_: 1
|
|
262
|
-
}, 512)
|
|
263
|
-
]),
|
|
264
|
-
o(F, {
|
|
265
|
-
ref_key: "refPopup",
|
|
266
|
-
ref: p,
|
|
267
|
-
width: "500px",
|
|
268
|
-
centered: !0
|
|
269
|
-
}, {
|
|
270
|
-
default: e(() => [
|
|
271
|
-
o(Q)
|
|
272
|
-
]),
|
|
273
|
-
_: 1
|
|
274
|
-
}, 512),
|
|
275
|
-
o(G, {
|
|
276
|
-
ref_key: "refLogPopup",
|
|
277
|
-
ref: v,
|
|
278
|
-
width: "500px"
|
|
279
|
-
}, {
|
|
280
|
-
default: e(() => [
|
|
281
|
-
o(W)
|
|
282
|
-
]),
|
|
283
|
-
_: 1
|
|
284
|
-
}, 512)
|
|
285
|
-
], 64);
|
|
286
|
-
};
|
|
287
|
-
}
|
|
288
|
-
}, Ct = /* @__PURE__ */ Y(yt, [["__scopeId", "data-v-55750463"]]);
|
|
289
|
-
export {
|
|
290
|
-
Ct as default
|
|
291
|
-
};
|