@since2006/pages 2025.8.1 → 2025.8.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/dist/es/index.js +15 -8
  2. package/dist/es/src/app/attachment/AttachmentEdit.vue.js +181 -0
  3. package/dist/es/src/app/attachment/AttachmentEdit.vue2.js +4 -0
  4. package/dist/es/src/app/attachment/AttachmentList.vue.js +178 -0
  5. package/dist/es/src/app/attachment/AttachmentList.vue2.js +4 -0
  6. package/dist/es/src/app/attachment/api.js +28 -0
  7. package/dist/es/src/app/attachment/index.js +7 -0
  8. package/dist/es/src/app/log/LogIndex.vue.js +238 -0
  9. package/dist/es/src/app/log/LogIndex.vue2.js +4 -0
  10. package/dist/es/src/app/log/LogView.vue.js +7 -0
  11. package/dist/es/src/app/log/LogView.vue2.js +164 -0
  12. package/dist/es/src/app/log/api.js +11 -0
  13. package/dist/es/src/app/log/index.js +7 -0
  14. package/dist/es/src/app/log/ua-icons.vue.js +7 -0
  15. package/dist/es/src/app/log/ua-icons.vue2.js +61 -0
  16. package/dist/es/src/app/metadata/MetadataCreate.vue.js +115 -0
  17. package/dist/es/src/app/metadata/MetadataCreate.vue2.js +4 -0
  18. package/dist/es/src/app/metadata/MetadataIndex.vue.js +179 -0
  19. package/dist/es/src/app/metadata/MetadataIndex.vue2.js +4 -0
  20. package/dist/es/src/app/metadata/MetadataUpdate.vue.js +128 -0
  21. package/dist/es/src/app/metadata/MetadataUpdate.vue2.js +4 -0
  22. package/dist/es/src/app/metadata/api.js +23 -0
  23. package/dist/es/src/app/metadata/index.js +7 -0
  24. package/dist/es/src/app/module/ModuleIndex.vue.js +5 -216
  25. package/dist/es/src/app/module/ModuleIndex.vue2.js +219 -2
  26. package/dist/es/src/app/module/index.js +5 -7
  27. package/dist/es/src/app/schedule/CronTypeSelect.vue.js +513 -0
  28. package/dist/es/src/app/schedule/CronTypeSelect.vue2.js +4 -0
  29. package/dist/es/src/app/schedule/ScheduleAdd.vue.js +7 -0
  30. package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +191 -0
  31. package/dist/es/src/app/schedule/ScheduleEdit.vue.js +7 -0
  32. package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +203 -0
  33. package/dist/es/src/app/schedule/ScheduleIndex.vue.js +279 -0
  34. package/dist/es/src/app/schedule/ScheduleIndex.vue2.js +4 -0
  35. package/dist/es/src/app/schedule/ScheduleLogList.vue.js +153 -0
  36. package/dist/es/src/app/schedule/ScheduleLogList.vue2.js +4 -0
  37. package/dist/es/src/app/schedule/ScheduleLogView.vue.js +7 -0
  38. package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +116 -0
  39. package/dist/es/src/app/schedule/api.js +38 -0
  40. package/dist/es/src/app/schedule/index.js +7 -0
  41. package/dist/es/src/app/schedule/schedule.js +58 -0
  42. package/dist/es/src/app/system/StatusIndex.vue.js +2 -2
  43. package/dist/es/src/app/system/StatusIndex.vue2.js +318 -307
  44. package/dist/es/src/app/system/index.js +3 -5
  45. package/dist/es/src/index.js +10 -2
  46. package/dist/es/style.css +1 -1
  47. package/dist/lib/index.js +1 -1
  48. package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -0
  49. package/dist/lib/src/app/attachment/AttachmentEdit.vue2.js +1 -0
  50. package/dist/lib/src/app/attachment/AttachmentList.vue.js +1 -0
  51. package/dist/lib/src/app/attachment/AttachmentList.vue2.js +1 -0
  52. package/dist/lib/src/app/attachment/api.js +1 -0
  53. package/dist/lib/src/app/attachment/index.js +1 -0
  54. package/dist/lib/src/app/log/LogIndex.vue.js +1 -0
  55. package/dist/lib/src/app/log/LogIndex.vue2.js +1 -0
  56. package/dist/lib/src/app/log/LogView.vue.js +1 -0
  57. package/dist/lib/src/app/log/LogView.vue2.js +1 -0
  58. package/dist/lib/src/app/log/api.js +1 -0
  59. package/dist/lib/src/app/log/index.js +1 -0
  60. package/dist/lib/src/app/log/ua-icons.vue.js +1 -0
  61. package/dist/lib/src/app/log/ua-icons.vue2.js +1 -0
  62. package/dist/lib/src/app/metadata/MetadataCreate.vue.js +1 -0
  63. package/dist/lib/src/app/metadata/MetadataCreate.vue2.js +1 -0
  64. package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -0
  65. package/dist/lib/src/app/metadata/MetadataIndex.vue2.js +1 -0
  66. package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -0
  67. package/dist/lib/src/app/metadata/MetadataUpdate.vue2.js +1 -0
  68. package/dist/lib/src/app/metadata/api.js +1 -0
  69. package/dist/lib/src/app/metadata/index.js +1 -0
  70. package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
  71. package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
  72. package/dist/lib/src/app/module/index.js +1 -1
  73. package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -0
  74. package/dist/lib/src/app/schedule/CronTypeSelect.vue2.js +1 -0
  75. package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -0
  76. package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -0
  77. package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -0
  78. package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -0
  79. package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -0
  80. package/dist/lib/src/app/schedule/ScheduleIndex.vue2.js +1 -0
  81. package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -0
  82. package/dist/lib/src/app/schedule/ScheduleLogList.vue2.js +1 -0
  83. package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -0
  84. package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -0
  85. package/dist/lib/src/app/schedule/api.js +1 -0
  86. package/dist/lib/src/app/schedule/index.js +1 -0
  87. package/dist/lib/src/app/schedule/schedule.js +1 -0
  88. package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
  89. package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
  90. package/dist/lib/src/app/system/index.js +1 -1
  91. package/dist/lib/src/index.js +1 -1
  92. package/dist/lib/style.css +1 -1
  93. package/package.json +1 -1
@@ -0,0 +1,191 @@
1
+ import { defineComponent as T, ref as g, watch as j, reactive as q, resolveComponent as s, openBlock as B, createBlock as O, withCtx as t, createVNode as a, createTextVNode as i } from "vue";
2
+ import X from "./schedule.js";
3
+ import { addSchedule as F } from "./api.js";
4
+ import { message as N } from "ant-design-vue";
5
+ import V from "./CronTypeSelect.vue.js";
6
+ const I = /* @__PURE__ */ T({
7
+ __name: "ScheduleAdd",
8
+ props: {
9
+ open: {
10
+ type: Boolean,
11
+ default: !1
12
+ }
13
+ },
14
+ emits: ["update:open", "success"],
15
+ setup(d, { emit: x }) {
16
+ const y = d, f = g(), p = x;
17
+ j(
18
+ () => y.open,
19
+ (l) => {
20
+ l && _();
21
+ }
22
+ );
23
+ const c = {
24
+ name: "",
25
+ description: "",
26
+ state: "D",
27
+ cronType: "",
28
+ clazz: "com.fxoa.epp.XXX.job.",
29
+ parameter: "",
30
+ expireLogDays: 7,
31
+ day: 1,
32
+ hour: 1,
33
+ minute: 15,
34
+ weekList: [],
35
+ monthList: [],
36
+ expression: null
37
+ }, o = q({ ...c }), z = {
38
+ name: [{ required: !0, message: "请填写任务名称" }],
39
+ clazz: [{ required: !0, message: "请填写执行类名称" }],
40
+ expireLogDays: [{ required: !0, type: "number", message: "请填写日志存储天数" }]
41
+ }, _ = () => {
42
+ Object.assign(o, c);
43
+ }, w = (l) => {
44
+ l.cronType !== "" && Object.assign(o, l);
45
+ }, m = g(!1), C = () => {
46
+ f.value.validateFields().then(() => {
47
+ const l = { ...o }, e = new X().buildSyntax(l);
48
+ if (e == null)
49
+ return;
50
+ const u = { ...l, syntax: e };
51
+ m.value = !0, F(u).then(() => {
52
+ N.success("操作成功"), S();
53
+ }).finally(() => {
54
+ m.value = !1;
55
+ });
56
+ });
57
+ }, S = () => {
58
+ p("success"), p("update:open", !1);
59
+ }, D = () => {
60
+ p("update:open", !1);
61
+ };
62
+ return _(), (l, e) => {
63
+ const u = s("a-input"), r = s("a-form-item"), v = s("a-textarea"), L = s("a-input-number"), b = s("a-radio"), R = s("a-radio-group"), k = s("a-form"), U = s("a-modal");
64
+ return B(), O(U, {
65
+ title: "添加定时任务",
66
+ width: 800,
67
+ open: d.open,
68
+ "mask-closable": !1,
69
+ "confirm-loading": m.value,
70
+ "destroy-on-close": "",
71
+ onOk: C,
72
+ onCancel: D
73
+ }, {
74
+ default: t(() => [
75
+ a(k, {
76
+ ref_key: "formRef",
77
+ ref: f,
78
+ model: o,
79
+ rules: z,
80
+ "label-col": { span: 5 },
81
+ "wrapper-col": { span: 12 }
82
+ }, {
83
+ default: t(() => [
84
+ a(r, {
85
+ label: "任务名称",
86
+ name: "name"
87
+ }, {
88
+ default: t(() => [
89
+ a(u, {
90
+ placeholder: "任务名称",
91
+ value: o.name,
92
+ "onUpdate:value": e[0] || (e[0] = (n) => o.name = n)
93
+ }, null, 8, ["value"])
94
+ ]),
95
+ _: 1
96
+ }),
97
+ a(r, {
98
+ label: "执行时间",
99
+ labelCol: { span: 5 },
100
+ wrapperCol: { span: 19 }
101
+ }, {
102
+ default: t(() => [
103
+ a(V, {
104
+ type: "add",
105
+ onChange: w
106
+ })
107
+ ]),
108
+ _: 1
109
+ }),
110
+ a(r, {
111
+ label: "执行类",
112
+ name: "clazz"
113
+ }, {
114
+ default: t(() => [
115
+ a(u, {
116
+ value: o.clazz,
117
+ "onUpdate:value": e[1] || (e[1] = (n) => o.clazz = n)
118
+ }, null, 8, ["value"])
119
+ ]),
120
+ _: 1
121
+ }),
122
+ a(r, { label: "参数" }, {
123
+ default: t(() => [
124
+ a(v, {
125
+ autoSize: { minRows: 3, maxRows: 6 },
126
+ value: o.parameter,
127
+ "onUpdate:value": e[2] || (e[2] = (n) => o.parameter = n)
128
+ }, null, 8, ["value"])
129
+ ]),
130
+ _: 1
131
+ }),
132
+ a(r, {
133
+ label: "日志存储",
134
+ name: "expireLogDays"
135
+ }, {
136
+ default: t(() => [
137
+ a(L, {
138
+ value: o.expireLogDays,
139
+ "onUpdate:value": e[3] || (e[3] = (n) => o.expireLogDays = n)
140
+ }, null, 8, ["value"]),
141
+ e[6] || (e[6] = i(" 天 "))
142
+ ]),
143
+ _: 1
144
+ }),
145
+ a(r, { label: "描述" }, {
146
+ default: t(() => [
147
+ a(v, {
148
+ autoSize: { minRows: 3, maxRows: 6 },
149
+ value: o.description,
150
+ "onUpdate:value": e[4] || (e[4] = (n) => o.description = n)
151
+ }, null, 8, ["value"])
152
+ ]),
153
+ _: 1
154
+ }),
155
+ a(r, { label: "状态" }, {
156
+ default: t(() => [
157
+ a(R, {
158
+ value: o.state,
159
+ "onUpdate:value": e[5] || (e[5] = (n) => o.state = n)
160
+ }, {
161
+ default: t(() => [
162
+ a(b, { value: "E" }, {
163
+ default: t(() => e[7] || (e[7] = [
164
+ i("启用")
165
+ ])),
166
+ _: 1
167
+ }),
168
+ a(b, { value: "D" }, {
169
+ default: t(() => e[8] || (e[8] = [
170
+ i("停用")
171
+ ])),
172
+ _: 1
173
+ })
174
+ ]),
175
+ _: 1
176
+ }, 8, ["value"])
177
+ ]),
178
+ _: 1
179
+ })
180
+ ]),
181
+ _: 1
182
+ }, 8, ["model"])
183
+ ]),
184
+ _: 1
185
+ }, 8, ["open", "confirm-loading"]);
186
+ };
187
+ }
188
+ });
189
+ export {
190
+ I as default
191
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ScheduleEdit.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const p = /* @__PURE__ */ t(o, [["__scopeId", "data-v-50931e68"]]);
5
+ export {
6
+ p as default
7
+ };
@@ -0,0 +1,203 @@
1
+ import { defineComponent as U, ref as y, reactive as q, watch as B, resolveComponent as s, openBlock as O, createBlock as T, withCtx as o, createVNode as t, createTextVNode as c } from "vue";
2
+ import j from "./schedule.js";
3
+ import { getSchedule as E, updateSchedule as F } from "./api.js";
4
+ import { message as N } from "ant-design-vue";
5
+ import V from "./CronTypeSelect.vue.js";
6
+ const K = /* @__PURE__ */ U({
7
+ __name: "ScheduleEdit",
8
+ props: {
9
+ open: {
10
+ type: Boolean,
11
+ default: !1
12
+ },
13
+ scheduleId: {
14
+ type: String,
15
+ default: ""
16
+ }
17
+ },
18
+ emits: ["update:open", "success", "cancel"],
19
+ setup(i, { emit: b }) {
20
+ const m = i, f = y(), p = b, r = y(!1), v = {
21
+ name: "",
22
+ description: "",
23
+ state: "",
24
+ cronType: "",
25
+ clazz: "",
26
+ parameter: "",
27
+ expireLogDays: 1,
28
+ day: 1,
29
+ hour: 1,
30
+ minute: 15,
31
+ weekList: [],
32
+ monthList: [],
33
+ expression: null
34
+ }, a = q({ ...v }), x = {
35
+ name: [{ required: !0, message: "请填写任务名称" }],
36
+ clazz: [{ required: !0, message: "请填写执行类名称" }],
37
+ expireLogDays: [{ required: !0, type: "number", message: "请填写日志存储天数" }]
38
+ }, S = () => {
39
+ Object.assign(a, v);
40
+ };
41
+ B(
42
+ () => m.open,
43
+ (l) => {
44
+ l && (S(), z());
45
+ }
46
+ );
47
+ const z = () => {
48
+ console.log("loadSchedule..."), r.value = !0, E(m.scheduleId).then((l) => {
49
+ const e = l.result;
50
+ a.name = e.name, a.description = e.description, a.state = e.state;
51
+ }).finally(() => {
52
+ r.value = !1;
53
+ });
54
+ }, w = (l) => {
55
+ Object.assign(a, l);
56
+ }, C = () => {
57
+ f.value.validateFields().then(() => {
58
+ const l = { ...a }, e = new j().buildSyntax(l);
59
+ if (e == null)
60
+ return;
61
+ const d = { ...l, syntax: e, id: m.scheduleId };
62
+ r.value = !0, F(d).then(() => {
63
+ N.success("操作成功"), h();
64
+ }).finally(() => {
65
+ r.value = !1;
66
+ });
67
+ });
68
+ }, h = () => {
69
+ p("success"), p("update:open", !1);
70
+ }, L = () => {
71
+ p("update:open", !1);
72
+ };
73
+ return (l, e) => {
74
+ const d = s("a-input"), u = s("a-form-item"), _ = s("a-textarea"), R = s("a-input-number"), g = s("a-radio"), k = s("a-radio-group"), D = s("a-form"), I = s("a-modal");
75
+ return O(), T(I, {
76
+ title: "编辑定时任务",
77
+ width: 800,
78
+ open: i.open,
79
+ "mask-closable": !1,
80
+ "confirm-loading": r.value,
81
+ "destroy-on-close": "",
82
+ onOk: C,
83
+ onCancel: L
84
+ }, {
85
+ default: o(() => [
86
+ t(D, {
87
+ ref_key: "formRef",
88
+ ref: f,
89
+ model: a,
90
+ rules: x,
91
+ "label-col": { span: 5 },
92
+ "wrapper-col": { span: 12 }
93
+ }, {
94
+ default: o(() => [
95
+ t(u, {
96
+ label: "任务名称",
97
+ name: "name"
98
+ }, {
99
+ default: o(() => [
100
+ t(d, {
101
+ placeholder: "任务名称",
102
+ value: a.name,
103
+ "onUpdate:value": e[0] || (e[0] = (n) => a.name = n)
104
+ }, null, 8, ["value"])
105
+ ]),
106
+ _: 1
107
+ }),
108
+ t(u, {
109
+ label: "执行时间",
110
+ labelCol: { span: 5 },
111
+ wrapperCol: { span: 19 }
112
+ }, {
113
+ default: o(() => [
114
+ t(V, {
115
+ type: "edit",
116
+ scheduleId: i.scheduleId,
117
+ onChange: w
118
+ }, null, 8, ["scheduleId"])
119
+ ]),
120
+ _: 1
121
+ }),
122
+ t(u, {
123
+ label: "执行类",
124
+ name: "clazz"
125
+ }, {
126
+ default: o(() => [
127
+ t(d, {
128
+ value: a.clazz,
129
+ "onUpdate:value": e[1] || (e[1] = (n) => a.clazz = n)
130
+ }, null, 8, ["value"])
131
+ ]),
132
+ _: 1
133
+ }),
134
+ t(u, { label: "参数" }, {
135
+ default: o(() => [
136
+ t(_, {
137
+ autoSize: { minRows: 3, maxRows: 6 },
138
+ value: a.parameter,
139
+ "onUpdate:value": e[2] || (e[2] = (n) => a.parameter = n)
140
+ }, null, 8, ["value"])
141
+ ]),
142
+ _: 1
143
+ }),
144
+ t(u, {
145
+ label: "日志存储",
146
+ name: "expireLogDays"
147
+ }, {
148
+ default: o(() => [
149
+ t(R, {
150
+ value: a.expireLogDays,
151
+ "onUpdate:value": e[3] || (e[3] = (n) => a.expireLogDays = n)
152
+ }, null, 8, ["value"]),
153
+ e[6] || (e[6] = c(" 天 "))
154
+ ]),
155
+ _: 1
156
+ }),
157
+ t(u, { label: "描述" }, {
158
+ default: o(() => [
159
+ t(_, {
160
+ autoSize: { minRows: 3, maxRows: 6 },
161
+ value: a.description,
162
+ "onUpdate:value": e[4] || (e[4] = (n) => a.description = n)
163
+ }, null, 8, ["value"])
164
+ ]),
165
+ _: 1
166
+ }),
167
+ t(u, { label: "状态" }, {
168
+ default: o(() => [
169
+ t(k, {
170
+ value: a.state,
171
+ "onUpdate:value": e[5] || (e[5] = (n) => a.state = n)
172
+ }, {
173
+ default: o(() => [
174
+ t(g, { value: "E" }, {
175
+ default: o(() => e[7] || (e[7] = [
176
+ c("启用")
177
+ ])),
178
+ _: 1
179
+ }),
180
+ t(g, { value: "D" }, {
181
+ default: o(() => e[8] || (e[8] = [
182
+ c("停用")
183
+ ])),
184
+ _: 1
185
+ })
186
+ ]),
187
+ _: 1
188
+ }, 8, ["value"])
189
+ ]),
190
+ _: 1
191
+ })
192
+ ]),
193
+ _: 1
194
+ }, 8, ["model"])
195
+ ]),
196
+ _: 1
197
+ }, 8, ["open", "confirm-loading"]);
198
+ };
199
+ }
200
+ });
201
+ export {
202
+ K as default
203
+ };
@@ -0,0 +1,279 @@
1
+ import { defineComponent as z, ref as q, reactive as S, resolveComponent as a, openBlock as l, createElementBlock as i, createElementVNode as x, createVNode as o, withCtx as t, createTextVNode as d, unref as _, toDisplayString as H, Fragment as b, createBlock as u, createCommentVNode as F } from "vue";
2
+ import { message as T } from "ant-design-vue";
3
+ import { HourglassTwoTone as L, PlusOutlined as G, SyncOutlined as J } from "@ant-design/icons-vue";
4
+ import K from "./ScheduleAdd.vue.js";
5
+ import Q from "./ScheduleEdit.vue.js";
6
+ import W from "./ScheduleLogList.vue.js";
7
+ import { querySchedules as X, executeSchedule as Y, deleteSchedule as Z } from "./api.js";
8
+ import { FxCardTable as ee } from "@since2006/components";
9
+ const te = { class: "ant-pro-table" }, oe = { class: "ant-pro-table-search" }, ne = ["onClick"], le = ["onClick"], ce = /* @__PURE__ */ z({
10
+ __name: "ScheduleIndex",
11
+ setup(de) {
12
+ const y = q(), D = [
13
+ {
14
+ title: "任务名称",
15
+ dataIndex: "name",
16
+ key: "name"
17
+ },
18
+ {
19
+ title: "最后运行时间",
20
+ dataIndex: "lastRunTime",
21
+ sorter: !0,
22
+ sortDirections: ["descend", "ascend"],
23
+ sortField: "last_run_time"
24
+ },
25
+ {
26
+ title: "最后运行结果",
27
+ dataIndex: "lastRunResult",
28
+ align: "center"
29
+ },
30
+ {
31
+ title: "下次运行时间",
32
+ dataIndex: "nextFireTime",
33
+ sorter: !0,
34
+ sortDirections: ["descend", "ascend"],
35
+ sortField: "next_fire_time"
36
+ },
37
+ {
38
+ title: "状态",
39
+ dataIndex: "state",
40
+ align: "center"
41
+ },
42
+ {
43
+ title: "运行日志",
44
+ dataIndex: "log",
45
+ width: "100px",
46
+ align: "center"
47
+ },
48
+ {
49
+ title: "操作",
50
+ dataIndex: "action",
51
+ width: "150px",
52
+ align: "center"
53
+ }
54
+ ], v = S({
55
+ query: void 0
56
+ }), R = () => {
57
+ y.value.refresh();
58
+ }, V = () => {
59
+ v.query = void 0, y.value.refresh();
60
+ }, g = q(!1), p = S({
61
+ open: !1,
62
+ scheduleId: ""
63
+ }), m = S({
64
+ open: !1,
65
+ scheduleId: ""
66
+ }), $ = () => {
67
+ g.value = !0;
68
+ }, h = (s) => {
69
+ m.open = !0, m.scheduleId = s.id;
70
+ }, N = (s) => {
71
+ p.open = !0, p.scheduleId = s.id;
72
+ }, U = (s) => {
73
+ Y(s.id).then(() => {
74
+ T.success("执行成功"), k();
75
+ });
76
+ }, A = (s) => {
77
+ Z(s.id).then(() => {
78
+ T.success("删除成功"), k();
79
+ });
80
+ }, k = () => {
81
+ y.value.refresh();
82
+ };
83
+ return (s, e) => {
84
+ const B = a("a-input"), P = a("a-form-item"), w = a("a-col"), I = a("a-button"), M = a("a-row"), O = a("a-form"), r = a("a-tag"), E = a("a-popconfirm"), j = a("a-divider");
85
+ return l(), i("div", null, [
86
+ x("div", te, [
87
+ x("div", oe, [
88
+ o(O, { layout: "horizontal" }, {
89
+ default: t(() => [
90
+ o(M, {
91
+ gutter: 16,
92
+ type: "flex",
93
+ justify: "start"
94
+ }, {
95
+ default: t(() => [
96
+ o(w, {
97
+ xs: 24,
98
+ sm: 24,
99
+ md: 12,
100
+ lg: 7
101
+ }, {
102
+ default: t(() => [
103
+ o(P, { label: "搜索" }, {
104
+ default: t(() => [
105
+ o(B, {
106
+ value: v.query,
107
+ "onUpdate:value": e[0] || (e[0] = (n) => v.query = n),
108
+ placeholder: "任务名称",
109
+ onPressEnter: R
110
+ }, null, 8, ["value"])
111
+ ]),
112
+ _: 1
113
+ })
114
+ ]),
115
+ _: 1
116
+ }),
117
+ o(w, null, {
118
+ default: t(() => [
119
+ o(I, {
120
+ onClick: R,
121
+ type: "primary"
122
+ }, {
123
+ default: t(() => e[4] || (e[4] = [
124
+ d("搜索")
125
+ ])),
126
+ _: 1
127
+ }),
128
+ o(I, {
129
+ onClick: V,
130
+ style: { "margin-left": "16px" }
131
+ }, {
132
+ default: t(() => e[5] || (e[5] = [
133
+ d("重置")
134
+ ])),
135
+ _: 1
136
+ })
137
+ ]),
138
+ _: 1
139
+ })
140
+ ]),
141
+ _: 1
142
+ })
143
+ ]),
144
+ _: 1
145
+ })
146
+ ]),
147
+ o(_(ee), {
148
+ columns: D,
149
+ "load-data": _(X),
150
+ params: v,
151
+ ref_key: "tableRef",
152
+ ref: y
153
+ }, {
154
+ title: t(() => [
155
+ o(_(L)),
156
+ e[6] || (e[6] = d(" 定时任务"))
157
+ ]),
158
+ toolbar: t(() => [
159
+ o(I, {
160
+ type: "primary",
161
+ onClick: $
162
+ }, {
163
+ default: t(() => [
164
+ o(_(G)),
165
+ e[7] || (e[7] = d(" 新建 "))
166
+ ]),
167
+ _: 1
168
+ })
169
+ ]),
170
+ bodyCell: t(({ column: n, record: f, text: c }) => [
171
+ n.dataIndex === "name" ? (l(), i("a", {
172
+ key: 0,
173
+ onClick: (C) => h(f)
174
+ }, H(f.name), 9, ne)) : n.dataIndex === "lastRunResult" ? (l(), i(b, { key: 1 }, [
175
+ c === "S" ? (l(), u(r, {
176
+ key: 0,
177
+ color: "success"
178
+ }, {
179
+ default: t(() => e[8] || (e[8] = [
180
+ d("成功")
181
+ ])),
182
+ _: 1
183
+ })) : c === "F" ? (l(), u(r, {
184
+ key: 1,
185
+ color: "error"
186
+ }, {
187
+ default: t(() => e[9] || (e[9] = [
188
+ d("失败")
189
+ ])),
190
+ _: 1
191
+ })) : c === "R" ? (l(), u(r, {
192
+ key: 2,
193
+ color: "processing"
194
+ }, {
195
+ icon: t(() => [
196
+ o(_(J), { spin: !0 })
197
+ ]),
198
+ default: t(() => [
199
+ e[10] || (e[10] = d(" 运行中 "))
200
+ ]),
201
+ _: 1
202
+ })) : F("", !0)
203
+ ], 64)) : n.dataIndex === "state" ? (l(), i(b, { key: 2 }, [
204
+ c === "E" ? (l(), u(r, {
205
+ key: 0,
206
+ color: "success"
207
+ }, {
208
+ default: t(() => e[11] || (e[11] = [
209
+ d("启用")
210
+ ])),
211
+ _: 1
212
+ })) : c === "D" ? (l(), u(r, {
213
+ key: 1,
214
+ color: "error"
215
+ }, {
216
+ default: t(() => e[12] || (e[12] = [
217
+ d("停用")
218
+ ])),
219
+ _: 1
220
+ })) : (l(), u(r, {
221
+ key: 2,
222
+ color: "processing"
223
+ }, {
224
+ default: t(() => e[13] || (e[13] = [
225
+ d("未知")
226
+ ])),
227
+ _: 1
228
+ }))
229
+ ], 64)) : n.dataIndex === "log" ? (l(), i("a", {
230
+ key: 3,
231
+ onClick: (C) => N(f)
232
+ }, "查看", 8, le)) : n.dataIndex === "action" ? (l(), i(b, { key: 4 }, [
233
+ o(E, {
234
+ title: "确定要执行吗?",
235
+ onConfirm: (C) => U(f)
236
+ }, {
237
+ default: t(() => e[14] || (e[14] = [
238
+ x("a", null, "执行", -1)
239
+ ])),
240
+ _: 2
241
+ }, 1032, ["onConfirm"]),
242
+ o(j, { type: "vertical" }),
243
+ o(E, {
244
+ title: "确定要删除吗?",
245
+ onConfirm: (C) => A(f)
246
+ }, {
247
+ default: t(() => e[15] || (e[15] = [
248
+ x("a", null, "删除", -1)
249
+ ])),
250
+ _: 2
251
+ }, 1032, ["onConfirm"])
252
+ ], 64)) : F("", !0)
253
+ ]),
254
+ _: 1
255
+ }, 8, ["load-data", "params"])
256
+ ]),
257
+ o(K, {
258
+ open: g.value,
259
+ "onUpdate:open": e[1] || (e[1] = (n) => g.value = n),
260
+ onSuccess: k
261
+ }, null, 8, ["open"]),
262
+ o(Q, {
263
+ open: m.open,
264
+ "onUpdate:open": e[2] || (e[2] = (n) => m.open = n),
265
+ "schedule-id": m.scheduleId,
266
+ onSuccess: k
267
+ }, null, 8, ["open", "schedule-id"]),
268
+ o(W, {
269
+ open: p.open,
270
+ "onUpdate:open": e[3] || (e[3] = (n) => p.open = n),
271
+ "schedule-id": p.scheduleId
272
+ }, null, 8, ["open", "schedule-id"])
273
+ ]);
274
+ };
275
+ }
276
+ });
277
+ export {
278
+ ce as default
279
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ScheduleIndex.vue.js";
2
+ export {
3
+ f as default
4
+ };