@since2006/pages 2025.8.6 → 2025.11.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/dist/es/src/app/attachment/AttachmentEdit.vue.js +43 -40
- package/dist/es/src/app/attachment/{AttachmentList.vue.js → AttachmentIndex.vue.js} +21 -21
- package/dist/es/src/app/attachment/AttachmentIndex.vue2.js +4 -0
- package/dist/es/src/app/attachment/api.js +6 -6
- package/dist/es/src/app/attachment/index.js +1 -1
- package/dist/es/src/app/dict/DictEdit.vue.js +46 -46
- package/dist/es/src/app/dict/DictIndex.vue.js +2 -2
- package/dist/es/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/es/src/app/dict/DictItemEdit.vue2.js +39 -38
- package/dist/es/src/app/dict/DictPanel.vue.js +2 -2
- package/dist/es/src/app/dict/DictPanel.vue2.js +80 -80
- package/dist/es/src/app/dict/api.js +22 -20
- package/dist/es/src/app/log/LogIndex.vue.js +5 -236
- package/dist/es/src/app/log/LogIndex.vue2.js +174 -2
- package/dist/es/src/app/log/api.js +39 -7
- package/dist/es/src/app/log/components/AccessLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/AccessLogDetail.vue2.js +240 -0
- package/dist/es/src/app/log/components/AccessLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/AccessLogList.vue2.js +452 -0
- package/dist/es/src/app/log/components/AuditLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/AuditLogDetail.vue2.js +163 -0
- package/dist/es/src/app/log/components/AuditLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/AuditLogList.vue2.js +325 -0
- package/dist/es/src/app/log/components/ErrorLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/ErrorLogDetail.vue2.js +187 -0
- package/dist/es/src/app/log/components/ErrorLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/ErrorLogList.vue2.js +310 -0
- package/dist/es/src/app/log/components/LoginLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/LoginLogDetail.vue2.js +182 -0
- package/dist/es/src/app/log/components/LoginLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/LoginLogList.vue2.js +303 -0
- package/dist/es/src/app/log/components/OperationLogDetail.vue.js +7 -0
- package/dist/es/src/app/log/components/OperationLogDetail.vue2.js +229 -0
- package/dist/es/src/app/log/components/OperationLogList.vue.js +7 -0
- package/dist/es/src/app/log/components/OperationLogList.vue2.js +333 -0
- package/dist/es/src/app/log/index.js +3 -3
- package/dist/es/src/app/log/ua-icons.vue.js +2 -2
- package/dist/es/src/app/log/ua-icons.vue2.js +58 -26
- package/dist/es/src/app/metadata/MetadataIndex.vue.js +1 -1
- package/dist/es/src/app/metadata/MetadataUpdate.vue.js +1 -1
- package/dist/es/src/app/metadata/api.js +5 -5
- package/dist/es/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/es/src/app/module/ModuleAdd.vue2.js +70 -66
- package/dist/es/src/app/module/ModuleDetail.vue.js +10 -10
- package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
- package/dist/es/src/app/module/ModuleEdit.vue2.js +74 -70
- package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
- package/dist/es/src/app/module/ModuleIndex.vue2.js +35 -35
- package/dist/es/src/app/module/api.js +10 -6
- package/dist/es/src/app/module/icon/IconSelectorModal.vue.js +2 -2
- package/dist/es/src/app/schedule/CronTypeSelect.vue.js +32 -32
- package/dist/es/src/app/schedule/ScheduleAdd.vue.js +3 -3
- package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +38 -38
- package/dist/es/src/app/schedule/ScheduleEdit.vue.js +1 -1
- package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +56 -56
- package/dist/es/src/app/schedule/ScheduleIndex.vue.js +18 -18
- package/dist/es/src/app/schedule/ScheduleLogList.vue.js +26 -26
- package/dist/es/src/app/schedule/ScheduleLogView.vue.js +3 -3
- package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +7 -7
- package/dist/es/src/app/schedule/api.js +14 -14
- package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/es/src/app/system/StatusIndex.vue2.js +109 -111
- package/dist/es/src/app/system/api.js +2 -3
- package/dist/es/style.css +1 -1
- package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -1
- package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -0
- package/dist/lib/src/app/attachment/{AttachmentList.vue2.js → AttachmentIndex.vue2.js} +1 -1
- package/dist/lib/src/app/attachment/api.js +1 -1
- package/dist/lib/src/app/attachment/index.js +1 -1
- package/dist/lib/src/app/dict/DictEdit.vue.js +1 -1
- package/dist/lib/src/app/dict/DictIndex.vue.js +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -1
- package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue.js +1 -1
- package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
- package/dist/lib/src/app/dict/api.js +1 -1
- package/dist/lib/src/app/log/LogIndex.vue.js +1 -1
- package/dist/lib/src/app/log/LogIndex.vue2.js +1 -1
- package/dist/lib/src/app/log/api.js +1 -1
- package/dist/lib/src/app/log/components/AccessLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/AccessLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogDetail.vue.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogDetail.vue2.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogList.vue.js +1 -0
- package/dist/lib/src/app/log/components/OperationLogList.vue2.js +1 -0
- package/dist/lib/src/app/log/index.js +1 -1
- package/dist/lib/src/app/log/ua-icons.vue.js +1 -1
- package/dist/lib/src/app/log/ua-icons.vue2.js +1 -1
- package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -1
- package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -1
- package/dist/lib/src/app/metadata/api.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleAdd.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleEdit.vue2.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
- package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
- package/dist/lib/src/app/module/api.js +1 -1
- package/dist/lib/src/app/module/icon/IconSelectorModal.vue.js +1 -1
- package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -1
- package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -1
- package/dist/lib/src/app/schedule/api.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
- package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
- package/dist/lib/src/app/system/api.js +1 -1
- package/dist/lib/style.css +1 -1
- package/package.json +4 -1
- package/dist/es/src/app/attachment/AttachmentList.vue2.js +0 -4
- package/dist/es/src/app/log/LogView.vue.js +0 -7
- package/dist/es/src/app/log/LogView.vue2.js +0 -164
- package/dist/lib/src/app/attachment/AttachmentList.vue.js +0 -1
- package/dist/lib/src/app/log/LogView.vue.js +0 -1
- package/dist/lib/src/app/log/LogView.vue2.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as j, reactive as U, watch as O, resolveComponent as v, openBlock as q, createElementBlock as F, createVNode as l, withCtx as t, createTextVNode as n, withDirectives as x, createElementVNode as i, vShow as y, createStaticVNode as G } from "vue";
|
|
2
|
-
import {
|
|
2
|
+
import { getScheduleConfig as H } from "./api.js";
|
|
3
3
|
const J = {
|
|
4
4
|
id: "cron-loop",
|
|
5
5
|
class: "cron-detail"
|
|
@@ -32,7 +32,7 @@ const J = {
|
|
|
32
32
|
},
|
|
33
33
|
emits: ["change"],
|
|
34
34
|
setup(L, { emit: C }) {
|
|
35
|
-
const
|
|
35
|
+
const g = L, N = {
|
|
36
36
|
cronType: "cron-loop",
|
|
37
37
|
day: 1,
|
|
38
38
|
hour: 1,
|
|
@@ -51,11 +51,11 @@ const J = {
|
|
|
51
51
|
weekList: [],
|
|
52
52
|
monthList: [],
|
|
53
53
|
expression: null
|
|
54
|
-
}, I =
|
|
54
|
+
}, I = g.type === "add" ? N : E, u = U({ ...I }), B = C;
|
|
55
55
|
O(
|
|
56
56
|
u,
|
|
57
|
-
(
|
|
58
|
-
|
|
57
|
+
(a) => {
|
|
58
|
+
a && B("change", u);
|
|
59
59
|
},
|
|
60
60
|
{ immediate: !0, deep: !0 }
|
|
61
61
|
);
|
|
@@ -66,28 +66,28 @@ const J = {
|
|
|
66
66
|
week: !1,
|
|
67
67
|
month: !1,
|
|
68
68
|
expression: !1
|
|
69
|
-
}, p = U({ ...k }), A = (
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
V(),
|
|
69
|
+
}, p = U({ ...k }), A = (a) => {
|
|
70
|
+
b(a.target.value);
|
|
71
|
+
}, b = (a) => {
|
|
72
|
+
V(), a === "cron-loop" ? p.loop = !0 : a === "cron-hour" ? p.hour = !0 : a === "cron-day" ? p.day = !0 : a === "cron-week" ? p.week = !0 : a === "cron-month" ? p.month = !0 : a === "cron-expression" && (p.expression = !0);
|
|
73
73
|
}, V = () => {
|
|
74
74
|
Object.assign(p, k);
|
|
75
|
-
}, w = (
|
|
76
|
-
console.log("loadScheduleSyntax"),
|
|
77
|
-
const e =
|
|
78
|
-
|
|
75
|
+
}, w = (a) => a.textContent || a.innerText, z = () => {
|
|
76
|
+
console.log("loadScheduleSyntax"), g.scheduleId && H(g.scheduleId).then((a) => {
|
|
77
|
+
const e = a.getElementsByTagName("job")[0], m = e.getAttribute("type");
|
|
78
|
+
b(m), u.cronType = m, u.parameter = w(e.getElementsByTagName("parameter")[0]), u.expireLogDays = parseInt(
|
|
79
79
|
w(e.getElementsByTagName("expireLogDays")[0])
|
|
80
80
|
), u.clazz = e.getElementsByTagName("class")[0].getAttribute("path");
|
|
81
81
|
const f = e.getElementsByTagName("el");
|
|
82
82
|
if (f != null)
|
|
83
|
-
for (let
|
|
84
|
-
const s = f[
|
|
85
|
-
s === "week" && f[
|
|
83
|
+
for (let d = 0; d < f.length; d++) {
|
|
84
|
+
const s = f[d].getAttribute("name"), r = f[d].getAttribute("value");
|
|
85
|
+
s === "week" && f[d].getAttribute("checked") === "true" ? u.weekList.push(r) : s === "month" && f[d].getAttribute("checked") === "true" ? u.monthList.push(r) : s === "hour" ? u.hour = parseInt(r) : s === "minute" ? u.minute = parseInt(r) : s === "expression" && (u.expression = r);
|
|
86
86
|
}
|
|
87
87
|
});
|
|
88
88
|
};
|
|
89
|
-
return
|
|
90
|
-
const m = v("a-radio"), f = v("a-radio-group"),
|
|
89
|
+
return g.type === "add" ? b(u.cronType) : g.type === "edit" && z(), (a, e) => {
|
|
90
|
+
const m = v("a-radio"), f = v("a-radio-group"), d = v("a-input-number"), s = v("a-checkbox"), r = v("a-col"), T = v("a-row"), S = v("a-checkbox-group"), D = v("a-input");
|
|
91
91
|
return q(), F("div", null, [
|
|
92
92
|
l(f, {
|
|
93
93
|
onChange: A,
|
|
@@ -138,7 +138,7 @@ const J = {
|
|
|
138
138
|
e[20] || (e[20] = i("span", null, "循环计划任务", -1)),
|
|
139
139
|
e[21] || (e[21] = i("br", null, null, -1)),
|
|
140
140
|
e[22] || (e[22] = n(" 每 ")),
|
|
141
|
-
l(
|
|
141
|
+
l(d, {
|
|
142
142
|
name: "minute",
|
|
143
143
|
min: 0,
|
|
144
144
|
max: 59,
|
|
@@ -153,7 +153,7 @@ const J = {
|
|
|
153
153
|
e[24] || (e[24] = i("span", null, "每小时计划任务", -1)),
|
|
154
154
|
e[25] || (e[25] = i("br", null, null, -1)),
|
|
155
155
|
e[26] || (e[26] = n(" 每 ")),
|
|
156
|
-
l(
|
|
156
|
+
l(d, {
|
|
157
157
|
name: "hour",
|
|
158
158
|
min: 0,
|
|
159
159
|
max: 23,
|
|
@@ -161,7 +161,7 @@ const J = {
|
|
|
161
161
|
"onUpdate:value": e[2] || (e[2] = (o) => u.hour = o)
|
|
162
162
|
}, null, 8, ["value"]),
|
|
163
163
|
e[27] || (e[27] = n(" 小时的第 ")),
|
|
164
|
-
l(
|
|
164
|
+
l(d, {
|
|
165
165
|
name: "minute",
|
|
166
166
|
min: 0,
|
|
167
167
|
max: 59,
|
|
@@ -176,7 +176,7 @@ const J = {
|
|
|
176
176
|
e[29] || (e[29] = i("span", null, "每日计划任务", -1)),
|
|
177
177
|
e[30] || (e[30] = i("br", null, null, -1)),
|
|
178
178
|
e[31] || (e[31] = n(" 每日的 ")),
|
|
179
|
-
l(
|
|
179
|
+
l(d, {
|
|
180
180
|
name: "hour",
|
|
181
181
|
min: 0,
|
|
182
182
|
max: 23,
|
|
@@ -184,7 +184,7 @@ const J = {
|
|
|
184
184
|
"onUpdate:value": e[4] || (e[4] = (o) => u.hour = o)
|
|
185
185
|
}, null, 8, ["value"]),
|
|
186
186
|
e[32] || (e[32] = n(" 时 ")),
|
|
187
|
-
l(
|
|
187
|
+
l(d, {
|
|
188
188
|
name: "minute",
|
|
189
189
|
min: 0,
|
|
190
190
|
max: 59,
|
|
@@ -200,12 +200,12 @@ const J = {
|
|
|
200
200
|
e[42] || (e[42] = i("br", null, null, -1)),
|
|
201
201
|
e[43] || (e[43] = n(" 每周的 ")),
|
|
202
202
|
e[44] || (e[44] = i("br", null, null, -1)),
|
|
203
|
-
l(
|
|
203
|
+
l(S, {
|
|
204
204
|
value: u.weekList,
|
|
205
205
|
"onUpdate:value": e[6] || (e[6] = (o) => u.weekList = o)
|
|
206
206
|
}, {
|
|
207
207
|
default: t(() => [
|
|
208
|
-
l(
|
|
208
|
+
l(T, null, {
|
|
209
209
|
default: t(() => [
|
|
210
210
|
l(r, { span: 6 }, {
|
|
211
211
|
default: t(() => [
|
|
@@ -293,7 +293,7 @@ const J = {
|
|
|
293
293
|
e[45] || (e[45] = i("br", null, null, -1)),
|
|
294
294
|
e[46] || (e[46] = n(" 每日的 ")),
|
|
295
295
|
e[47] || (e[47] = i("br", null, null, -1)),
|
|
296
|
-
l(
|
|
296
|
+
l(d, {
|
|
297
297
|
name: "hour",
|
|
298
298
|
min: 0,
|
|
299
299
|
max: 23,
|
|
@@ -301,7 +301,7 @@ const J = {
|
|
|
301
301
|
"onUpdate:value": e[7] || (e[7] = (o) => u.hour = o)
|
|
302
302
|
}, null, 8, ["value"]),
|
|
303
303
|
e[48] || (e[48] = n(" 时 ")),
|
|
304
|
-
l(
|
|
304
|
+
l(d, {
|
|
305
305
|
name: "minute",
|
|
306
306
|
min: 0,
|
|
307
307
|
max: 59,
|
|
@@ -317,12 +317,12 @@ const J = {
|
|
|
317
317
|
e[63] || (e[63] = i("br", null, null, -1)),
|
|
318
318
|
e[64] || (e[64] = n(" 每年的 ")),
|
|
319
319
|
e[65] || (e[65] = i("br", null, null, -1)),
|
|
320
|
-
l(
|
|
320
|
+
l(S, {
|
|
321
321
|
value: u.monthList,
|
|
322
322
|
"onUpdate:value": e[9] || (e[9] = (o) => u.monthList = o)
|
|
323
323
|
}, {
|
|
324
324
|
default: t(() => [
|
|
325
|
-
l(
|
|
325
|
+
l(T, null, {
|
|
326
326
|
default: t(() => [
|
|
327
327
|
l(r, { span: 4 }, {
|
|
328
328
|
default: t(() => [
|
|
@@ -465,7 +465,7 @@ const J = {
|
|
|
465
465
|
e[66] || (e[66] = i("br", null, null, -1)),
|
|
466
466
|
e[67] || (e[67] = n(" 每月的 ")),
|
|
467
467
|
e[68] || (e[68] = i("br", null, null, -1)),
|
|
468
|
-
l(
|
|
468
|
+
l(d, {
|
|
469
469
|
name: "day",
|
|
470
470
|
min: 0,
|
|
471
471
|
max: 31,
|
|
@@ -473,7 +473,7 @@ const J = {
|
|
|
473
473
|
"onUpdate:value": e[10] || (e[10] = (o) => u.day = o)
|
|
474
474
|
}, null, 8, ["value"]),
|
|
475
475
|
e[69] || (e[69] = n(" 日 ")),
|
|
476
|
-
l(
|
|
476
|
+
l(d, {
|
|
477
477
|
name: "hour",
|
|
478
478
|
min: 0,
|
|
479
479
|
max: 23,
|
|
@@ -481,7 +481,7 @@ const J = {
|
|
|
481
481
|
"onUpdate:value": e[11] || (e[11] = (o) => u.hour = o)
|
|
482
482
|
}, null, 8, ["value"]),
|
|
483
483
|
e[70] || (e[70] = n(" 时 ")),
|
|
484
|
-
l(
|
|
484
|
+
l(d, {
|
|
485
485
|
name: "minute",
|
|
486
486
|
min: 0,
|
|
487
487
|
max: 59,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ScheduleAdd.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import d from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const m = /* @__PURE__ */ d(o, [["__scopeId", "data-v-dd4b2211"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
m as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as T, ref as
|
|
1
|
+
import { defineComponent as T, ref as b, watch as j, reactive as q, resolveComponent as r, openBlock as B, createBlock as O, withCtx as t, createVNode as a, createTextVNode as i } from "vue";
|
|
2
2
|
import X from "./schedule.js";
|
|
3
|
-
import {
|
|
3
|
+
import { createSchedule as F } from "./api.js";
|
|
4
4
|
import { message as N } from "ant-design-vue";
|
|
5
5
|
import V from "./CronTypeSelect.vue.js";
|
|
6
6
|
const I = /* @__PURE__ */ T({
|
|
@@ -13,17 +13,17 @@ const I = /* @__PURE__ */ T({
|
|
|
13
13
|
},
|
|
14
14
|
emits: ["update:open", "success"],
|
|
15
15
|
setup(d, { emit: x }) {
|
|
16
|
-
const y = d, f =
|
|
16
|
+
const y = d, f = b(), m = x;
|
|
17
17
|
j(
|
|
18
18
|
() => y.open,
|
|
19
|
-
(
|
|
20
|
-
|
|
19
|
+
(s) => {
|
|
20
|
+
s && _();
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
const c = {
|
|
24
24
|
name: "",
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
remark: "",
|
|
26
|
+
status: 0,
|
|
27
27
|
cronType: "",
|
|
28
28
|
clazz: "com.fxoa.epp.XXX.job.",
|
|
29
29
|
parameter: "",
|
|
@@ -40,39 +40,39 @@ const I = /* @__PURE__ */ T({
|
|
|
40
40
|
expireLogDays: [{ required: !0, type: "number", message: "请填写日志存储天数" }]
|
|
41
41
|
}, _ = () => {
|
|
42
42
|
Object.assign(o, c);
|
|
43
|
-
}, w = (
|
|
44
|
-
|
|
45
|
-
},
|
|
43
|
+
}, w = (s) => {
|
|
44
|
+
s.cronType !== "" && Object.assign(o, s);
|
|
45
|
+
}, p = b(!1), k = () => {
|
|
46
46
|
f.value.validateFields().then(() => {
|
|
47
|
-
const
|
|
47
|
+
const s = { ...o }, e = new X().buildSyntax(s);
|
|
48
48
|
if (e == null)
|
|
49
49
|
return;
|
|
50
|
-
const u = { ...
|
|
51
|
-
|
|
52
|
-
N.success("操作成功"),
|
|
50
|
+
const u = { ...s, config: e };
|
|
51
|
+
p.value = !0, F(u).then((l) => {
|
|
52
|
+
l.code === 200 && (N.success("操作成功"), C());
|
|
53
53
|
}).finally(() => {
|
|
54
|
-
|
|
54
|
+
p.value = !1;
|
|
55
55
|
});
|
|
56
56
|
});
|
|
57
|
+
}, C = () => {
|
|
58
|
+
m("success"), m("update:open", !1);
|
|
57
59
|
}, S = () => {
|
|
58
|
-
|
|
59
|
-
}, D = () => {
|
|
60
|
-
p("update:open", !1);
|
|
60
|
+
m("update:open", !1);
|
|
61
61
|
};
|
|
62
|
-
return _(), (
|
|
63
|
-
const u =
|
|
64
|
-
return B(), O(
|
|
62
|
+
return _(), (s, e) => {
|
|
63
|
+
const u = r("a-input"), l = r("a-form-item"), v = r("a-textarea"), L = r("a-input-number"), g = r("a-radio"), R = r("a-radio-group"), U = r("a-form"), D = r("a-modal");
|
|
64
|
+
return B(), O(D, {
|
|
65
65
|
title: "添加定时任务",
|
|
66
66
|
width: 800,
|
|
67
67
|
open: d.open,
|
|
68
68
|
"mask-closable": !1,
|
|
69
|
-
"confirm-loading":
|
|
69
|
+
"confirm-loading": p.value,
|
|
70
70
|
"destroy-on-close": "",
|
|
71
|
-
onOk:
|
|
72
|
-
onCancel:
|
|
71
|
+
onOk: k,
|
|
72
|
+
onCancel: S
|
|
73
73
|
}, {
|
|
74
74
|
default: t(() => [
|
|
75
|
-
a(
|
|
75
|
+
a(U, {
|
|
76
76
|
ref_key: "formRef",
|
|
77
77
|
ref: f,
|
|
78
78
|
model: o,
|
|
@@ -81,7 +81,7 @@ const I = /* @__PURE__ */ T({
|
|
|
81
81
|
"wrapper-col": { span: 12 }
|
|
82
82
|
}, {
|
|
83
83
|
default: t(() => [
|
|
84
|
-
a(
|
|
84
|
+
a(l, {
|
|
85
85
|
label: "任务名称",
|
|
86
86
|
name: "name"
|
|
87
87
|
}, {
|
|
@@ -94,7 +94,7 @@ const I = /* @__PURE__ */ T({
|
|
|
94
94
|
]),
|
|
95
95
|
_: 1
|
|
96
96
|
}),
|
|
97
|
-
a(
|
|
97
|
+
a(l, {
|
|
98
98
|
label: "执行时间",
|
|
99
99
|
labelCol: { span: 5 },
|
|
100
100
|
wrapperCol: { span: 19 }
|
|
@@ -107,7 +107,7 @@ const I = /* @__PURE__ */ T({
|
|
|
107
107
|
]),
|
|
108
108
|
_: 1
|
|
109
109
|
}),
|
|
110
|
-
a(
|
|
110
|
+
a(l, {
|
|
111
111
|
label: "执行类",
|
|
112
112
|
name: "clazz"
|
|
113
113
|
}, {
|
|
@@ -119,7 +119,7 @@ const I = /* @__PURE__ */ T({
|
|
|
119
119
|
]),
|
|
120
120
|
_: 1
|
|
121
121
|
}),
|
|
122
|
-
a(
|
|
122
|
+
a(l, { label: "参数" }, {
|
|
123
123
|
default: t(() => [
|
|
124
124
|
a(v, {
|
|
125
125
|
autoSize: { minRows: 3, maxRows: 6 },
|
|
@@ -129,7 +129,7 @@ const I = /* @__PURE__ */ T({
|
|
|
129
129
|
]),
|
|
130
130
|
_: 1
|
|
131
131
|
}),
|
|
132
|
-
a(
|
|
132
|
+
a(l, {
|
|
133
133
|
label: "日志存储",
|
|
134
134
|
name: "expireLogDays"
|
|
135
135
|
}, {
|
|
@@ -142,30 +142,30 @@ const I = /* @__PURE__ */ T({
|
|
|
142
142
|
]),
|
|
143
143
|
_: 1
|
|
144
144
|
}),
|
|
145
|
-
a(
|
|
145
|
+
a(l, { label: "描述" }, {
|
|
146
146
|
default: t(() => [
|
|
147
147
|
a(v, {
|
|
148
148
|
autoSize: { minRows: 3, maxRows: 6 },
|
|
149
|
-
value: o.
|
|
150
|
-
"onUpdate:value": e[4] || (e[4] = (n) => o.
|
|
149
|
+
value: o.remark,
|
|
150
|
+
"onUpdate:value": e[4] || (e[4] = (n) => o.remark = n)
|
|
151
151
|
}, null, 8, ["value"])
|
|
152
152
|
]),
|
|
153
153
|
_: 1
|
|
154
154
|
}),
|
|
155
|
-
a(
|
|
155
|
+
a(l, { label: "状态" }, {
|
|
156
156
|
default: t(() => [
|
|
157
157
|
a(R, {
|
|
158
|
-
value: o.
|
|
159
|
-
"onUpdate:value": e[5] || (e[5] = (n) => o.
|
|
158
|
+
value: o.status,
|
|
159
|
+
"onUpdate:value": e[5] || (e[5] = (n) => o.status = n)
|
|
160
160
|
}, {
|
|
161
161
|
default: t(() => [
|
|
162
|
-
a(
|
|
162
|
+
a(g, { value: 1 }, {
|
|
163
163
|
default: t(() => e[7] || (e[7] = [
|
|
164
164
|
i("启用")
|
|
165
165
|
])),
|
|
166
166
|
_: 1
|
|
167
167
|
}),
|
|
168
|
-
a(
|
|
168
|
+
a(g, { value: 0 }, {
|
|
169
169
|
default: t(() => e[8] || (e[8] = [
|
|
170
170
|
i("停用")
|
|
171
171
|
])),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./ScheduleEdit.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-3b943880"]]);
|
|
5
5
|
export {
|
|
6
6
|
p as default
|
|
7
7
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { defineComponent as
|
|
1
|
+
import { defineComponent as D, ref as b, reactive as q, watch as B, resolveComponent as u, openBlock as O, createBlock as T, withCtx as o, createVNode as t, createTextVNode as c } from "vue";
|
|
2
2
|
import j from "./schedule.js";
|
|
3
|
-
import { getSchedule as
|
|
4
|
-
import { message as
|
|
5
|
-
import
|
|
6
|
-
const K = /* @__PURE__ */
|
|
3
|
+
import { getSchedule as F, updateSchedule as N } from "./api.js";
|
|
4
|
+
import { message as V } from "ant-design-vue";
|
|
5
|
+
import E from "./CronTypeSelect.vue.js";
|
|
6
|
+
const K = /* @__PURE__ */ D({
|
|
7
7
|
__name: "ScheduleEdit",
|
|
8
8
|
props: {
|
|
9
9
|
open: {
|
|
@@ -16,11 +16,11 @@ const K = /* @__PURE__ */ U({
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
emits: ["update:open", "success", "cancel"],
|
|
19
|
-
setup(
|
|
20
|
-
const
|
|
19
|
+
setup(d, { emit: y }) {
|
|
20
|
+
const p = d, f = b(), i = y, r = b(!1), v = {
|
|
21
21
|
name: "",
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
remark: "",
|
|
23
|
+
status: 0,
|
|
24
24
|
cronType: "",
|
|
25
25
|
clazz: "",
|
|
26
26
|
parameter: "",
|
|
@@ -39,51 +39,51 @@ const K = /* @__PURE__ */ U({
|
|
|
39
39
|
Object.assign(a, v);
|
|
40
40
|
};
|
|
41
41
|
B(
|
|
42
|
-
() =>
|
|
43
|
-
(
|
|
44
|
-
|
|
42
|
+
() => p.open,
|
|
43
|
+
(n) => {
|
|
44
|
+
n && (S(), z());
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
const z = () => {
|
|
48
|
-
console.log("loadSchedule..."), r.value = !0,
|
|
49
|
-
const e =
|
|
50
|
-
a.name = e.name, a.
|
|
48
|
+
console.log("loadSchedule..."), r.value = !0, F(p.scheduleId).then((n) => {
|
|
49
|
+
const e = n.data;
|
|
50
|
+
a.name = e.name, a.remark = e.remark, a.status = e.status;
|
|
51
51
|
}).finally(() => {
|
|
52
52
|
r.value = !1;
|
|
53
53
|
});
|
|
54
|
-
},
|
|
55
|
-
Object.assign(a,
|
|
56
|
-
},
|
|
54
|
+
}, k = (n) => {
|
|
55
|
+
Object.assign(a, n);
|
|
56
|
+
}, w = () => {
|
|
57
57
|
f.value.validateFields().then(() => {
|
|
58
|
-
const
|
|
58
|
+
const n = { ...a }, e = new j().buildSyntax(n);
|
|
59
59
|
if (e == null)
|
|
60
60
|
return;
|
|
61
|
-
const
|
|
62
|
-
r.value = !0,
|
|
63
|
-
|
|
61
|
+
const m = { ...n, config: e, id: p.scheduleId };
|
|
62
|
+
r.value = !0, N(m).then((s) => {
|
|
63
|
+
s.code === 200 && (V.success("操作成功"), C());
|
|
64
64
|
}).finally(() => {
|
|
65
65
|
r.value = !1;
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
|
+
}, C = () => {
|
|
69
|
+
i("success"), i("update:open", !1);
|
|
68
70
|
}, h = () => {
|
|
69
|
-
|
|
70
|
-
}, L = () => {
|
|
71
|
-
p("update:open", !1);
|
|
71
|
+
i("update:open", !1);
|
|
72
72
|
};
|
|
73
|
-
return (
|
|
74
|
-
const
|
|
75
|
-
return O(), T(
|
|
73
|
+
return (n, e) => {
|
|
74
|
+
const m = u("a-input"), s = u("a-form-item"), _ = u("a-textarea"), L = u("a-input-number"), g = u("a-radio"), R = u("a-radio-group"), I = u("a-form"), U = u("a-modal");
|
|
75
|
+
return O(), T(U, {
|
|
76
76
|
title: "编辑定时任务",
|
|
77
77
|
width: 800,
|
|
78
|
-
open:
|
|
78
|
+
open: d.open,
|
|
79
79
|
"mask-closable": !1,
|
|
80
80
|
"confirm-loading": r.value,
|
|
81
81
|
"destroy-on-close": "",
|
|
82
|
-
onOk:
|
|
83
|
-
onCancel:
|
|
82
|
+
onOk: w,
|
|
83
|
+
onCancel: h
|
|
84
84
|
}, {
|
|
85
85
|
default: o(() => [
|
|
86
|
-
t(
|
|
86
|
+
t(I, {
|
|
87
87
|
ref_key: "formRef",
|
|
88
88
|
ref: f,
|
|
89
89
|
model: a,
|
|
@@ -92,92 +92,92 @@ const K = /* @__PURE__ */ U({
|
|
|
92
92
|
"wrapper-col": { span: 12 }
|
|
93
93
|
}, {
|
|
94
94
|
default: o(() => [
|
|
95
|
-
t(
|
|
95
|
+
t(s, {
|
|
96
96
|
label: "任务名称",
|
|
97
97
|
name: "name"
|
|
98
98
|
}, {
|
|
99
99
|
default: o(() => [
|
|
100
|
-
t(
|
|
100
|
+
t(m, {
|
|
101
101
|
placeholder: "任务名称",
|
|
102
102
|
value: a.name,
|
|
103
|
-
"onUpdate:value": e[0] || (e[0] = (
|
|
103
|
+
"onUpdate:value": e[0] || (e[0] = (l) => a.name = l)
|
|
104
104
|
}, null, 8, ["value"])
|
|
105
105
|
]),
|
|
106
106
|
_: 1
|
|
107
107
|
}),
|
|
108
|
-
t(
|
|
108
|
+
t(s, {
|
|
109
109
|
label: "执行时间",
|
|
110
110
|
labelCol: { span: 5 },
|
|
111
111
|
wrapperCol: { span: 19 }
|
|
112
112
|
}, {
|
|
113
113
|
default: o(() => [
|
|
114
|
-
t(
|
|
114
|
+
t(E, {
|
|
115
115
|
type: "edit",
|
|
116
|
-
scheduleId:
|
|
117
|
-
onChange:
|
|
116
|
+
scheduleId: d.scheduleId,
|
|
117
|
+
onChange: k
|
|
118
118
|
}, null, 8, ["scheduleId"])
|
|
119
119
|
]),
|
|
120
120
|
_: 1
|
|
121
121
|
}),
|
|
122
|
-
t(
|
|
122
|
+
t(s, {
|
|
123
123
|
label: "执行类",
|
|
124
124
|
name: "clazz"
|
|
125
125
|
}, {
|
|
126
126
|
default: o(() => [
|
|
127
|
-
t(
|
|
127
|
+
t(m, {
|
|
128
128
|
value: a.clazz,
|
|
129
|
-
"onUpdate:value": e[1] || (e[1] = (
|
|
129
|
+
"onUpdate:value": e[1] || (e[1] = (l) => a.clazz = l)
|
|
130
130
|
}, null, 8, ["value"])
|
|
131
131
|
]),
|
|
132
132
|
_: 1
|
|
133
133
|
}),
|
|
134
|
-
t(
|
|
134
|
+
t(s, { label: "参数" }, {
|
|
135
135
|
default: o(() => [
|
|
136
136
|
t(_, {
|
|
137
137
|
autoSize: { minRows: 3, maxRows: 6 },
|
|
138
138
|
value: a.parameter,
|
|
139
|
-
"onUpdate:value": e[2] || (e[2] = (
|
|
139
|
+
"onUpdate:value": e[2] || (e[2] = (l) => a.parameter = l)
|
|
140
140
|
}, null, 8, ["value"])
|
|
141
141
|
]),
|
|
142
142
|
_: 1
|
|
143
143
|
}),
|
|
144
|
-
t(
|
|
144
|
+
t(s, {
|
|
145
145
|
label: "日志存储",
|
|
146
146
|
name: "expireLogDays"
|
|
147
147
|
}, {
|
|
148
148
|
default: o(() => [
|
|
149
|
-
t(
|
|
149
|
+
t(L, {
|
|
150
150
|
value: a.expireLogDays,
|
|
151
|
-
"onUpdate:value": e[3] || (e[3] = (
|
|
151
|
+
"onUpdate:value": e[3] || (e[3] = (l) => a.expireLogDays = l)
|
|
152
152
|
}, null, 8, ["value"]),
|
|
153
153
|
e[6] || (e[6] = c(" 天 "))
|
|
154
154
|
]),
|
|
155
155
|
_: 1
|
|
156
156
|
}),
|
|
157
|
-
t(
|
|
157
|
+
t(s, { label: "描述" }, {
|
|
158
158
|
default: o(() => [
|
|
159
159
|
t(_, {
|
|
160
160
|
autoSize: { minRows: 3, maxRows: 6 },
|
|
161
|
-
value: a.
|
|
162
|
-
"onUpdate:value": e[4] || (e[4] = (
|
|
161
|
+
value: a.remark,
|
|
162
|
+
"onUpdate:value": e[4] || (e[4] = (l) => a.remark = l)
|
|
163
163
|
}, null, 8, ["value"])
|
|
164
164
|
]),
|
|
165
165
|
_: 1
|
|
166
166
|
}),
|
|
167
|
-
t(
|
|
167
|
+
t(s, { label: "状态" }, {
|
|
168
168
|
default: o(() => [
|
|
169
|
-
t(
|
|
170
|
-
value: a.
|
|
171
|
-
"onUpdate:value": e[5] || (e[5] = (
|
|
169
|
+
t(R, {
|
|
170
|
+
value: a.status,
|
|
171
|
+
"onUpdate:value": e[5] || (e[5] = (l) => a.status = l)
|
|
172
172
|
}, {
|
|
173
173
|
default: o(() => [
|
|
174
|
-
t(g, { value:
|
|
174
|
+
t(g, { value: 1 }, {
|
|
175
175
|
default: o(() => e[7] || (e[7] = [
|
|
176
176
|
c("启用")
|
|
177
177
|
])),
|
|
178
178
|
_: 1
|
|
179
179
|
}),
|
|
180
|
-
t(g, { value:
|
|
180
|
+
t(g, { value: 0 }, {
|
|
181
181
|
default: o(() => e[8] || (e[8] = [
|
|
182
182
|
c("停用")
|
|
183
183
|
])),
|