@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,153 @@
1
+ import { defineComponent as V, ref as g, watch as F, reactive as b, resolveComponent as I, openBlock as t, createBlock as r, withCtx as o, createVNode as c, unref as u, createElementBlock as p, toDisplayString as L, createCommentVNode as m, Fragment as N, createTextVNode as f } from "vue";
2
+ import { queryScheduleLogs as R } from "./api.js";
3
+ import B from "./ScheduleLogView.vue.js";
4
+ import { FxTable as T } from "@since2006/components";
5
+ import { SyncOutlined as q } from "@ant-design/icons-vue";
6
+ const z = {
7
+ key: 0,
8
+ style: { "text-align": "right" }
9
+ }, E = ["onClick"], G = /* @__PURE__ */ V({
10
+ __name: "ScheduleLogList",
11
+ props: {
12
+ open: {
13
+ type: Boolean,
14
+ default: !1
15
+ },
16
+ scheduleId: {
17
+ type: String,
18
+ default: ""
19
+ }
20
+ },
21
+ emits: ["update:open"],
22
+ setup(y, { emit: k }) {
23
+ const x = g(), s = y;
24
+ F(
25
+ () => s.open,
26
+ (d) => {
27
+ var e;
28
+ d && (_.scheduleId = s.scheduleId, (e = x.value) == null || e.refresh());
29
+ }
30
+ );
31
+ const v = [
32
+ {
33
+ title: "启动时间",
34
+ dataIndex: "startDate",
35
+ sorter: !0,
36
+ sortField: "start_date"
37
+ },
38
+ {
39
+ title: "结束时间",
40
+ dataIndex: "endDate",
41
+ sorter: !0,
42
+ sortField: "end_date",
43
+ sortDirections: ["descend", "ascend"]
44
+ },
45
+ {
46
+ title: "耗时(ms)",
47
+ dataIndex: "runTime",
48
+ sorter: !0,
49
+ sortField: "run_time",
50
+ sortDirections: ["descend", "ascend"]
51
+ },
52
+ {
53
+ title: "日志过期时间",
54
+ dataIndex: "expireDate"
55
+ },
56
+ {
57
+ title: "运行结果",
58
+ dataIndex: "result",
59
+ className: "text-center",
60
+ scopedSlots: { customRender: "result" }
61
+ },
62
+ {
63
+ title: "运行详情",
64
+ dataIndex: "action",
65
+ className: "text-center",
66
+ scopedSlots: { customRender: "action" }
67
+ }
68
+ ], _ = b({
69
+ scheduleId: s.scheduleId
70
+ }), S = k, n = g({
71
+ open: !1,
72
+ detail: {}
73
+ }), h = (d) => {
74
+ n.value = {
75
+ open: !0,
76
+ detail: d
77
+ };
78
+ }, C = () => {
79
+ S("update:open", !1);
80
+ };
81
+ return (d, e) => {
82
+ const i = I("a-tag"), D = I("a-modal");
83
+ return t(), r(D, {
84
+ title: "运行日志",
85
+ width: 820,
86
+ open: y.open,
87
+ "mask-closable": !1,
88
+ footer: null,
89
+ "destroy-on-close": "",
90
+ onCancel: C
91
+ }, {
92
+ default: o(() => [
93
+ c(u(T), {
94
+ columns: v,
95
+ "load-data": u(R),
96
+ params: _,
97
+ ref_key: "tableRef",
98
+ ref: x,
99
+ size: "middle"
100
+ }, {
101
+ bodyCell: o(({ column: a, text: l, record: w }) => [
102
+ a.dataIndex === "runTime" ? (t(), p("div", z, L(l), 1)) : m("", !0),
103
+ a.dataIndex === "result" ? (t(), p(N, { key: 1 }, [
104
+ l === "S" ? (t(), r(i, {
105
+ key: 0,
106
+ color: "success"
107
+ }, {
108
+ default: o(() => e[1] || (e[1] = [
109
+ f("成功")
110
+ ])),
111
+ _: 1
112
+ })) : l === "F" ? (t(), r(i, {
113
+ key: 1,
114
+ color: "error"
115
+ }, {
116
+ default: o(() => e[2] || (e[2] = [
117
+ f("失败")
118
+ ])),
119
+ _: 1
120
+ })) : l === "R" ? (t(), r(i, {
121
+ key: 2,
122
+ color: "processing"
123
+ }, {
124
+ icon: o(() => [
125
+ c(u(q), { spin: !0 })
126
+ ]),
127
+ default: o(() => [
128
+ e[3] || (e[3] = f(" 运行中 "))
129
+ ]),
130
+ _: 1
131
+ })) : m("", !0)
132
+ ], 64)) : a.dataIndex === "action" ? (t(), p("a", {
133
+ key: 2,
134
+ onClick: (O) => h(w)
135
+ }, "查看", 8, E)) : m("", !0)
136
+ ]),
137
+ _: 1
138
+ }, 8, ["load-data", "params"]),
139
+ c(B, {
140
+ ref: "logView",
141
+ open: n.value.open,
142
+ "onUpdate:open": e[0] || (e[0] = (a) => n.value.open = a),
143
+ detail: n.value.detail
144
+ }, null, 8, ["open", "detail"])
145
+ ]),
146
+ _: 1
147
+ }, 8, ["open"]);
148
+ };
149
+ }
150
+ });
151
+ export {
152
+ G as default
153
+ };
@@ -0,0 +1,4 @@
1
+ import f from "./ScheduleLogList.vue.js";
2
+ export {
3
+ f as default
4
+ };
@@ -0,0 +1,7 @@
1
+ import o from "./ScheduleLogView.vue2.js";
2
+ /* empty css */
3
+ import e from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const f = /* @__PURE__ */ e(o, [["__scopeId", "data-v-de0bbc9f"]]);
5
+ export {
6
+ f as default
7
+ };
@@ -0,0 +1,116 @@
1
+ import { defineComponent as y, computed as x, resolveComponent as s, openBlock as i, createBlock as r, withCtx as e, createVNode as a, createTextVNode as n, toDisplayString as u, createElementVNode as C } from "vue";
2
+ const D = ["innerHTML"], V = /* @__PURE__ */ y({
3
+ __name: "ScheduleLogView",
4
+ props: {
5
+ open: {
6
+ type: Boolean,
7
+ default: !1
8
+ },
9
+ detail: {
10
+ type: Object,
11
+ default: () => {
12
+ }
13
+ }
14
+ },
15
+ emits: ["update:open", "success", "cancel"],
16
+ setup(t, { emit: f }) {
17
+ const p = t, b = f, m = x({
18
+ get: () => p.open,
19
+ set: (d) => {
20
+ b("update:open", d);
21
+ }
22
+ }), _ = (d) => d ? d.replace(/\r\n|\r|\n/g, "<br/>") : "";
23
+ return (d, l) => {
24
+ const o = s("a-descriptions-item"), c = s("a-tag"), g = s("a-descriptions"), k = s("a-modal");
25
+ return i(), r(k, {
26
+ title: "运行日志",
27
+ width: 960,
28
+ open: m.value,
29
+ maskClosable: !1,
30
+ footer: null,
31
+ onCancel: l[0] || (l[0] = () => m.value = !1)
32
+ }, {
33
+ default: e(() => [
34
+ a(g, {
35
+ column: 1,
36
+ bordered: "",
37
+ size: "small"
38
+ }, {
39
+ default: e(() => [
40
+ a(o, {
41
+ label: "启动时间",
42
+ class: "qq"
43
+ }, {
44
+ default: e(() => [
45
+ n(u(t.detail.startDate), 1)
46
+ ]),
47
+ _: 1
48
+ }),
49
+ a(o, { label: "结束时间" }, {
50
+ default: e(() => [
51
+ n(u(t.detail.endDate), 1)
52
+ ]),
53
+ _: 1
54
+ }),
55
+ a(o, { label: "耗时(ms)" }, {
56
+ default: e(() => [
57
+ n(u(t.detail.runTime), 1)
58
+ ]),
59
+ _: 1
60
+ }),
61
+ a(o, { label: "日志过期时间" }, {
62
+ default: e(() => [
63
+ n(u(t.detail.expireDate), 1)
64
+ ]),
65
+ _: 1
66
+ }),
67
+ a(o, { label: "运行结果" }, {
68
+ default: e(() => [
69
+ t.detail.result === "S" ? (i(), r(c, {
70
+ key: 0,
71
+ color: "#00a65a"
72
+ }, {
73
+ default: e(() => l[1] || (l[1] = [
74
+ n("成功")
75
+ ])),
76
+ _: 1
77
+ })) : t.detail.result === "F" ? (i(), r(c, {
78
+ key: 1,
79
+ color: "red"
80
+ }, {
81
+ default: e(() => l[2] || (l[2] = [
82
+ n("失败")
83
+ ])),
84
+ _: 1
85
+ })) : (i(), r(c, {
86
+ key: 2,
87
+ color: "orange"
88
+ }, {
89
+ default: e(() => l[3] || (l[3] = [
90
+ n("运行中")
91
+ ])),
92
+ _: 1
93
+ }))
94
+ ]),
95
+ _: 1
96
+ }),
97
+ a(o, { label: "运行详情" }, {
98
+ default: e(() => [
99
+ C("span", {
100
+ innerHTML: _(t.detail.content)
101
+ }, null, 8, D)
102
+ ]),
103
+ _: 1
104
+ })
105
+ ]),
106
+ _: 1
107
+ })
108
+ ]),
109
+ _: 1
110
+ }, 8, ["open"]);
111
+ };
112
+ }
113
+ });
114
+ export {
115
+ V as default
116
+ };
@@ -0,0 +1,38 @@
1
+ import { http as u } from "@since2006/utils";
2
+ function c(e) {
3
+ return u.get("/api/1/schedule/query_schedules", { params: e });
4
+ }
5
+ function d(e) {
6
+ return u.postForm("/api/1/schedule/execute_schedule", { id: e });
7
+ }
8
+ function r(e) {
9
+ return u.postForm("/api/1/schedule/delete_schedule", { id: e });
10
+ }
11
+ function s(e) {
12
+ return u.postForm("/api/1/schedule/add_schedule", e);
13
+ }
14
+ function n(e) {
15
+ return u.get("/api/1/schedule/get_schedule", { params: { id: e } });
16
+ }
17
+ function l(e) {
18
+ return u.get("/api/1/schedule/get_schedule_syntax", {
19
+ params: { id: e },
20
+ responseType: "document"
21
+ });
22
+ }
23
+ function h(e) {
24
+ return u.postForm("/api/1/schedule/update_schedule", e);
25
+ }
26
+ function o(e) {
27
+ return u.get("/api/1/schedule/query_schedule_logs", { params: e });
28
+ }
29
+ export {
30
+ s as addSchedule,
31
+ r as deleteSchedule,
32
+ d as executeSchedule,
33
+ n as getSchedule,
34
+ l as getScheduleSyntax,
35
+ o as queryScheduleLogs,
36
+ c as querySchedules,
37
+ h as updateSchedule
38
+ };
@@ -0,0 +1,7 @@
1
+ import t from "./ScheduleIndex.vue.js";
2
+ import { withInstall as o } from "@since2006/utils";
3
+ const r = o(t);
4
+ export {
5
+ r as ScheduleIndex,
6
+ r as default
7
+ };
@@ -0,0 +1,58 @@
1
+ import { message as n } from "ant-design-vue";
2
+ function s() {
3
+ this.alert = function(e) {
4
+ n.error(e);
5
+ }, this.buildSyntax = function(e) {
6
+ const t = [];
7
+ t.push('<?xml version="1.0" encoding="UTF-8"?>');
8
+ const u = e.cronType;
9
+ if (t.push('<job type="' + u + '">'), u === "cron-loop") {
10
+ if (this.isEmpty(e.minute))
11
+ return this.alert("分钟数必须填写"), null;
12
+ t.push('<el type="text" name="minute" value="' + e.minute + '"/>');
13
+ } else if (u === "cron-hour") {
14
+ if (this.isEmpty(e.hour))
15
+ return this.alert("小时数必须填写"), null;
16
+ if (this.isEmpty(e.minute))
17
+ return this.alert("分钟数必须填写"), null;
18
+ t.push('<el type="text" name="hour" value="' + e.hour + '"/>'), t.push('<el type="text" name="minute" value="' + e.minute + '"/>');
19
+ } else if (u === "cron-day") {
20
+ if (this.isEmpty(e.hour))
21
+ return this.alert("小时数必须填写"), null;
22
+ if (this.isEmpty(e.minute))
23
+ return this.alert("分钟数必须填写"), null;
24
+ t.push('<el type="text" name="hour" value="' + e.hour + '"/>'), t.push('<el type="text" name="minute" value="' + e.minute + '"/>');
25
+ } else if (u === "cron-week") {
26
+ if (this.isEmpty(e.hour))
27
+ return this.alert("小时数必须填写"), null;
28
+ if (this.isEmpty(e.minute))
29
+ return this.alert("分钟数必须填写"), null;
30
+ if (e.weekList.length === 0)
31
+ return this.alert("星期几必须选择"), null;
32
+ t.push('<el type="text" name="hour" value="' + e.hour + '"/>'), t.push('<el type="text" name="minute" value="' + e.minute + '"/>');
33
+ for (const i of e.weekList)
34
+ t.push('<el type="text" name="week" value="' + i + '" checked="true"/>');
35
+ } else if (u === "cron-month") {
36
+ if (this.isEmpty(e.day))
37
+ return this.alert("几号数必须填写"), null;
38
+ if (this.isEmpty(e.hour))
39
+ return this.alert("小时数必须填写"), null;
40
+ if (this.isEmpty(e.minute))
41
+ return this.alert("分钟数必须填写"), null;
42
+ if (e.monthList.length === 0)
43
+ return this.alert("月份必须选择"), null;
44
+ t.push('<el type="text" name="day" value="' + e.day + '"/>'), t.push('<el type="text" name="hour" value="' + e.hour + '"/>'), t.push('<el type="text" name="minute" value="' + e.minute + '"/>');
45
+ for (const i of e.monthList)
46
+ t.push('<el type="text" name="month" value="' + i + '" checked="true"/>');
47
+ } else if (u === "cron-expression") {
48
+ if (this.isEmpty(e.expression))
49
+ return this.alert("Cron表达式必须填写"), null;
50
+ t.push('<el type="text" name="expression" value="' + e.expression + '"/>');
51
+ } else
52
+ return this.alert("未知的执行类型:" + u), null;
53
+ return t.push("<parameter><![CDATA[" + e.parameter + "]]></parameter>"), t.push("<expireLogDays>" + e.expireLogDays + "</expireLogDays>"), t.push('<class path="' + e.clazz + '"/>'), t.push("</job>"), t.join("");
54
+ }, this.isEmpty = (e) => e === null || e === "";
55
+ }
56
+ export {
57
+ s as default
58
+ };
@@ -1,7 +1,7 @@
1
1
  import t from "./StatusIndex.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const f = /* @__PURE__ */ o(t, [["__scopeId", "data-v-1f96ab02"]]);
4
+ const m = /* @__PURE__ */ o(t, [["__scopeId", "data-v-92532804"]]);
5
5
  export {
6
- f as default
6
+ m as default
7
7
  };