@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.
Files changed (135) hide show
  1. package/dist/es/src/app/attachment/AttachmentEdit.vue.js +43 -40
  2. package/dist/es/src/app/attachment/{AttachmentList.vue.js → AttachmentIndex.vue.js} +21 -21
  3. package/dist/es/src/app/attachment/AttachmentIndex.vue2.js +4 -0
  4. package/dist/es/src/app/attachment/api.js +6 -6
  5. package/dist/es/src/app/attachment/index.js +1 -1
  6. package/dist/es/src/app/dict/DictEdit.vue.js +46 -46
  7. package/dist/es/src/app/dict/DictIndex.vue.js +2 -2
  8. package/dist/es/src/app/dict/DictItemEdit.vue.js +1 -1
  9. package/dist/es/src/app/dict/DictItemEdit.vue2.js +39 -38
  10. package/dist/es/src/app/dict/DictPanel.vue.js +2 -2
  11. package/dist/es/src/app/dict/DictPanel.vue2.js +80 -80
  12. package/dist/es/src/app/dict/api.js +22 -20
  13. package/dist/es/src/app/log/LogIndex.vue.js +5 -236
  14. package/dist/es/src/app/log/LogIndex.vue2.js +174 -2
  15. package/dist/es/src/app/log/api.js +39 -7
  16. package/dist/es/src/app/log/components/AccessLogDetail.vue.js +7 -0
  17. package/dist/es/src/app/log/components/AccessLogDetail.vue2.js +240 -0
  18. package/dist/es/src/app/log/components/AccessLogList.vue.js +7 -0
  19. package/dist/es/src/app/log/components/AccessLogList.vue2.js +452 -0
  20. package/dist/es/src/app/log/components/AuditLogDetail.vue.js +7 -0
  21. package/dist/es/src/app/log/components/AuditLogDetail.vue2.js +163 -0
  22. package/dist/es/src/app/log/components/AuditLogList.vue.js +7 -0
  23. package/dist/es/src/app/log/components/AuditLogList.vue2.js +325 -0
  24. package/dist/es/src/app/log/components/ErrorLogDetail.vue.js +7 -0
  25. package/dist/es/src/app/log/components/ErrorLogDetail.vue2.js +187 -0
  26. package/dist/es/src/app/log/components/ErrorLogList.vue.js +7 -0
  27. package/dist/es/src/app/log/components/ErrorLogList.vue2.js +310 -0
  28. package/dist/es/src/app/log/components/LoginLogDetail.vue.js +7 -0
  29. package/dist/es/src/app/log/components/LoginLogDetail.vue2.js +182 -0
  30. package/dist/es/src/app/log/components/LoginLogList.vue.js +7 -0
  31. package/dist/es/src/app/log/components/LoginLogList.vue2.js +303 -0
  32. package/dist/es/src/app/log/components/OperationLogDetail.vue.js +7 -0
  33. package/dist/es/src/app/log/components/OperationLogDetail.vue2.js +229 -0
  34. package/dist/es/src/app/log/components/OperationLogList.vue.js +7 -0
  35. package/dist/es/src/app/log/components/OperationLogList.vue2.js +333 -0
  36. package/dist/es/src/app/log/index.js +3 -3
  37. package/dist/es/src/app/log/ua-icons.vue.js +2 -2
  38. package/dist/es/src/app/log/ua-icons.vue2.js +58 -26
  39. package/dist/es/src/app/metadata/MetadataIndex.vue.js +1 -1
  40. package/dist/es/src/app/metadata/MetadataUpdate.vue.js +1 -1
  41. package/dist/es/src/app/metadata/api.js +5 -5
  42. package/dist/es/src/app/module/ModuleAdd.vue.js +1 -1
  43. package/dist/es/src/app/module/ModuleAdd.vue2.js +70 -66
  44. package/dist/es/src/app/module/ModuleDetail.vue.js +10 -10
  45. package/dist/es/src/app/module/ModuleEdit.vue.js +2 -2
  46. package/dist/es/src/app/module/ModuleEdit.vue2.js +74 -70
  47. package/dist/es/src/app/module/ModuleIndex.vue.js +2 -2
  48. package/dist/es/src/app/module/ModuleIndex.vue2.js +35 -35
  49. package/dist/es/src/app/module/api.js +10 -6
  50. package/dist/es/src/app/module/icon/IconSelectorModal.vue.js +2 -2
  51. package/dist/es/src/app/schedule/CronTypeSelect.vue.js +32 -32
  52. package/dist/es/src/app/schedule/ScheduleAdd.vue.js +3 -3
  53. package/dist/es/src/app/schedule/ScheduleAdd.vue2.js +38 -38
  54. package/dist/es/src/app/schedule/ScheduleEdit.vue.js +1 -1
  55. package/dist/es/src/app/schedule/ScheduleEdit.vue2.js +56 -56
  56. package/dist/es/src/app/schedule/ScheduleIndex.vue.js +18 -18
  57. package/dist/es/src/app/schedule/ScheduleLogList.vue.js +26 -26
  58. package/dist/es/src/app/schedule/ScheduleLogView.vue.js +3 -3
  59. package/dist/es/src/app/schedule/ScheduleLogView.vue2.js +7 -7
  60. package/dist/es/src/app/schedule/api.js +14 -14
  61. package/dist/es/src/app/system/StatusIndex.vue.js +1 -1
  62. package/dist/es/src/app/system/StatusIndex.vue2.js +109 -111
  63. package/dist/es/src/app/system/api.js +2 -3
  64. package/dist/es/style.css +1 -1
  65. package/dist/lib/src/app/attachment/AttachmentEdit.vue.js +1 -1
  66. package/dist/lib/src/app/attachment/AttachmentIndex.vue.js +1 -0
  67. package/dist/lib/src/app/attachment/{AttachmentList.vue2.js → AttachmentIndex.vue2.js} +1 -1
  68. package/dist/lib/src/app/attachment/api.js +1 -1
  69. package/dist/lib/src/app/attachment/index.js +1 -1
  70. package/dist/lib/src/app/dict/DictEdit.vue.js +1 -1
  71. package/dist/lib/src/app/dict/DictIndex.vue.js +1 -1
  72. package/dist/lib/src/app/dict/DictItemEdit.vue.js +1 -1
  73. package/dist/lib/src/app/dict/DictItemEdit.vue2.js +1 -1
  74. package/dist/lib/src/app/dict/DictPanel.vue.js +1 -1
  75. package/dist/lib/src/app/dict/DictPanel.vue2.js +1 -1
  76. package/dist/lib/src/app/dict/api.js +1 -1
  77. package/dist/lib/src/app/log/LogIndex.vue.js +1 -1
  78. package/dist/lib/src/app/log/LogIndex.vue2.js +1 -1
  79. package/dist/lib/src/app/log/api.js +1 -1
  80. package/dist/lib/src/app/log/components/AccessLogDetail.vue.js +1 -0
  81. package/dist/lib/src/app/log/components/AccessLogDetail.vue2.js +1 -0
  82. package/dist/lib/src/app/log/components/AccessLogList.vue.js +1 -0
  83. package/dist/lib/src/app/log/components/AccessLogList.vue2.js +1 -0
  84. package/dist/lib/src/app/log/components/AuditLogDetail.vue.js +1 -0
  85. package/dist/lib/src/app/log/components/AuditLogDetail.vue2.js +1 -0
  86. package/dist/lib/src/app/log/components/AuditLogList.vue.js +1 -0
  87. package/dist/lib/src/app/log/components/AuditLogList.vue2.js +1 -0
  88. package/dist/lib/src/app/log/components/ErrorLogDetail.vue.js +1 -0
  89. package/dist/lib/src/app/log/components/ErrorLogDetail.vue2.js +1 -0
  90. package/dist/lib/src/app/log/components/ErrorLogList.vue.js +1 -0
  91. package/dist/lib/src/app/log/components/ErrorLogList.vue2.js +1 -0
  92. package/dist/lib/src/app/log/components/LoginLogDetail.vue.js +1 -0
  93. package/dist/lib/src/app/log/components/LoginLogDetail.vue2.js +1 -0
  94. package/dist/lib/src/app/log/components/LoginLogList.vue.js +1 -0
  95. package/dist/lib/src/app/log/components/LoginLogList.vue2.js +1 -0
  96. package/dist/lib/src/app/log/components/OperationLogDetail.vue.js +1 -0
  97. package/dist/lib/src/app/log/components/OperationLogDetail.vue2.js +1 -0
  98. package/dist/lib/src/app/log/components/OperationLogList.vue.js +1 -0
  99. package/dist/lib/src/app/log/components/OperationLogList.vue2.js +1 -0
  100. package/dist/lib/src/app/log/index.js +1 -1
  101. package/dist/lib/src/app/log/ua-icons.vue.js +1 -1
  102. package/dist/lib/src/app/log/ua-icons.vue2.js +1 -1
  103. package/dist/lib/src/app/metadata/MetadataIndex.vue.js +1 -1
  104. package/dist/lib/src/app/metadata/MetadataUpdate.vue.js +1 -1
  105. package/dist/lib/src/app/metadata/api.js +1 -1
  106. package/dist/lib/src/app/module/ModuleAdd.vue.js +1 -1
  107. package/dist/lib/src/app/module/ModuleAdd.vue2.js +1 -1
  108. package/dist/lib/src/app/module/ModuleDetail.vue.js +1 -1
  109. package/dist/lib/src/app/module/ModuleEdit.vue.js +1 -1
  110. package/dist/lib/src/app/module/ModuleEdit.vue2.js +1 -1
  111. package/dist/lib/src/app/module/ModuleIndex.vue.js +1 -1
  112. package/dist/lib/src/app/module/ModuleIndex.vue2.js +1 -1
  113. package/dist/lib/src/app/module/api.js +1 -1
  114. package/dist/lib/src/app/module/icon/IconSelectorModal.vue.js +1 -1
  115. package/dist/lib/src/app/schedule/CronTypeSelect.vue.js +1 -1
  116. package/dist/lib/src/app/schedule/ScheduleAdd.vue.js +1 -1
  117. package/dist/lib/src/app/schedule/ScheduleAdd.vue2.js +1 -1
  118. package/dist/lib/src/app/schedule/ScheduleEdit.vue.js +1 -1
  119. package/dist/lib/src/app/schedule/ScheduleEdit.vue2.js +1 -1
  120. package/dist/lib/src/app/schedule/ScheduleIndex.vue.js +1 -1
  121. package/dist/lib/src/app/schedule/ScheduleLogList.vue.js +1 -1
  122. package/dist/lib/src/app/schedule/ScheduleLogView.vue.js +1 -1
  123. package/dist/lib/src/app/schedule/ScheduleLogView.vue2.js +1 -1
  124. package/dist/lib/src/app/schedule/api.js +1 -1
  125. package/dist/lib/src/app/system/StatusIndex.vue.js +1 -1
  126. package/dist/lib/src/app/system/StatusIndex.vue2.js +1 -1
  127. package/dist/lib/src/app/system/api.js +1 -1
  128. package/dist/lib/style.css +1 -1
  129. package/package.json +4 -1
  130. package/dist/es/src/app/attachment/AttachmentList.vue2.js +0 -4
  131. package/dist/es/src/app/log/LogView.vue.js +0 -7
  132. package/dist/es/src/app/log/LogView.vue2.js +0 -164
  133. package/dist/lib/src/app/attachment/AttachmentList.vue.js +0 -1
  134. package/dist/lib/src/app/log/LogView.vue.js +0 -1
  135. 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 { getScheduleSyntax as H } from "./api.js";
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 b = L, N = {
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 = b.type === "add" ? N : E, u = U({ ...I }), B = C;
54
+ }, I = g.type === "add" ? N : E, u = U({ ...I }), B = C;
55
55
  O(
56
56
  u,
57
- (d) => {
58
- d && B("change", u);
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 = (d) => {
70
- g(d.target.value);
71
- }, g = (d) => {
72
- V(), d === "cron-loop" ? p.loop = !0 : d === "cron-hour" ? p.hour = !0 : d === "cron-day" ? p.day = !0 : d === "cron-week" ? p.week = !0 : d === "cron-month" ? p.month = !0 : d === "cron-expression" && (p.expression = !0);
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 = (d) => d.textContent || d.innerText, z = () => {
76
- console.log("loadScheduleSyntax"), b.scheduleId && H(b.scheduleId).then((d) => {
77
- const e = d.getElementsByTagName("job")[0], m = e.getAttribute("type");
78
- g(m), u.cronType = m, u.parameter = w(e.getElementsByTagName("parameter")[0]), u.expireLogDays = parseInt(
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 a = 0; a < f.length; a++) {
84
- const s = f[a].getAttribute("name"), r = f[a].getAttribute("value");
85
- s === "week" && f[a].getAttribute("checked") === "true" ? u.weekList.push(r) : s === "month" && f[a].getAttribute("checked") === "true" ? u.monthList.push(r) : s === "hour" ? u.hour = parseInt(r) : s === "minute" ? u.minute = parseInt(r) : s === "expression" && (u.expression = r);
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 b.type === "add" ? g(u.cronType) : b.type === "edit" && z(), (d, e) => {
90
- const m = v("a-radio"), f = v("a-radio-group"), a = v("a-input-number"), s = v("a-checkbox"), r = v("a-col"), S = v("a-row"), T = v("a-checkbox-group"), D = v("a-input");
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(a, {
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(a, {
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(a, {
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(a, {
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(a, {
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(T, {
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(S, null, {
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(a, {
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(a, {
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(T, {
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(S, null, {
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(a, {
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(a, {
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(a, {
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 t from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-f256dc3c"]]);
3
+ import d from "../../../_virtual/_plugin-vue_export-helper.js";
4
+ const m = /* @__PURE__ */ d(o, [["__scopeId", "data-v-dd4b2211"]]);
5
5
  export {
6
- e as default
6
+ m as default
7
7
  };
@@ -1,6 +1,6 @@
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";
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 { addSchedule as F } from "./api.js";
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 = g(), p = x;
16
+ const y = d, f = b(), m = x;
17
17
  j(
18
18
  () => y.open,
19
- (l) => {
20
- l && _();
19
+ (s) => {
20
+ s && _();
21
21
  }
22
22
  );
23
23
  const c = {
24
24
  name: "",
25
- description: "",
26
- state: "D",
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 = (l) => {
44
- l.cronType !== "" && Object.assign(o, l);
45
- }, m = g(!1), C = () => {
43
+ }, w = (s) => {
44
+ s.cronType !== "" && Object.assign(o, s);
45
+ }, p = b(!1), k = () => {
46
46
  f.value.validateFields().then(() => {
47
- const l = { ...o }, e = new X().buildSyntax(l);
47
+ const s = { ...o }, e = new X().buildSyntax(s);
48
48
  if (e == null)
49
49
  return;
50
- const u = { ...l, syntax: e };
51
- m.value = !0, F(u).then(() => {
52
- N.success("操作成功"), S();
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
- m.value = !1;
54
+ p.value = !1;
55
55
  });
56
56
  });
57
+ }, C = () => {
58
+ m("success"), m("update:open", !1);
57
59
  }, S = () => {
58
- p("success"), p("update:open", !1);
59
- }, D = () => {
60
- p("update:open", !1);
60
+ m("update:open", !1);
61
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, {
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": m.value,
69
+ "confirm-loading": p.value,
70
70
  "destroy-on-close": "",
71
- onOk: C,
72
- onCancel: D
71
+ onOk: k,
72
+ onCancel: S
73
73
  }, {
74
74
  default: t(() => [
75
- a(k, {
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(r, {
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(r, {
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(r, {
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(r, { label: "参数" }, {
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(r, {
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(r, { label: "描述" }, {
145
+ a(l, { label: "描述" }, {
146
146
  default: t(() => [
147
147
  a(v, {
148
148
  autoSize: { minRows: 3, maxRows: 6 },
149
- value: o.description,
150
- "onUpdate:value": e[4] || (e[4] = (n) => o.description = n)
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(r, { label: "状态" }, {
155
+ a(l, { label: "状态" }, {
156
156
  default: t(() => [
157
157
  a(R, {
158
- value: o.state,
159
- "onUpdate:value": e[5] || (e[5] = (n) => o.state = n)
158
+ value: o.status,
159
+ "onUpdate:value": e[5] || (e[5] = (n) => o.status = n)
160
160
  }, {
161
161
  default: t(() => [
162
- a(b, { value: "E" }, {
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(b, { value: "D" }, {
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-50931e68"]]);
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 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";
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 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({
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(i, { emit: b }) {
20
- const m = i, f = y(), p = b, r = y(!1), v = {
19
+ setup(d, { emit: y }) {
20
+ const p = d, f = b(), i = y, r = b(!1), v = {
21
21
  name: "",
22
- description: "",
23
- state: "",
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
- () => m.open,
43
- (l) => {
44
- l && (S(), z());
42
+ () => p.open,
43
+ (n) => {
44
+ n && (S(), z());
45
45
  }
46
46
  );
47
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;
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
- }, w = (l) => {
55
- Object.assign(a, l);
56
- }, C = () => {
54
+ }, k = (n) => {
55
+ Object.assign(a, n);
56
+ }, w = () => {
57
57
  f.value.validateFields().then(() => {
58
- const l = { ...a }, e = new j().buildSyntax(l);
58
+ const n = { ...a }, e = new j().buildSyntax(n);
59
59
  if (e == null)
60
60
  return;
61
- const d = { ...l, syntax: e, id: m.scheduleId };
62
- r.value = !0, F(d).then(() => {
63
- N.success("操作成功"), h();
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
- p("success"), p("update:open", !1);
70
- }, L = () => {
71
- p("update:open", !1);
71
+ i("update:open", !1);
72
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, {
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: i.open,
78
+ open: d.open,
79
79
  "mask-closable": !1,
80
80
  "confirm-loading": r.value,
81
81
  "destroy-on-close": "",
82
- onOk: C,
83
- onCancel: L
82
+ onOk: w,
83
+ onCancel: h
84
84
  }, {
85
85
  default: o(() => [
86
- t(D, {
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(u, {
95
+ t(s, {
96
96
  label: "任务名称",
97
97
  name: "name"
98
98
  }, {
99
99
  default: o(() => [
100
- t(d, {
100
+ t(m, {
101
101
  placeholder: "任务名称",
102
102
  value: a.name,
103
- "onUpdate:value": e[0] || (e[0] = (n) => a.name = n)
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(u, {
108
+ t(s, {
109
109
  label: "执行时间",
110
110
  labelCol: { span: 5 },
111
111
  wrapperCol: { span: 19 }
112
112
  }, {
113
113
  default: o(() => [
114
- t(V, {
114
+ t(E, {
115
115
  type: "edit",
116
- scheduleId: i.scheduleId,
117
- onChange: w
116
+ scheduleId: d.scheduleId,
117
+ onChange: k
118
118
  }, null, 8, ["scheduleId"])
119
119
  ]),
120
120
  _: 1
121
121
  }),
122
- t(u, {
122
+ t(s, {
123
123
  label: "执行类",
124
124
  name: "clazz"
125
125
  }, {
126
126
  default: o(() => [
127
- t(d, {
127
+ t(m, {
128
128
  value: a.clazz,
129
- "onUpdate:value": e[1] || (e[1] = (n) => a.clazz = n)
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(u, { label: "参数" }, {
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] = (n) => a.parameter = n)
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(u, {
144
+ t(s, {
145
145
  label: "日志存储",
146
146
  name: "expireLogDays"
147
147
  }, {
148
148
  default: o(() => [
149
- t(R, {
149
+ t(L, {
150
150
  value: a.expireLogDays,
151
- "onUpdate:value": e[3] || (e[3] = (n) => a.expireLogDays = n)
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(u, { label: "描述" }, {
157
+ t(s, { label: "描述" }, {
158
158
  default: o(() => [
159
159
  t(_, {
160
160
  autoSize: { minRows: 3, maxRows: 6 },
161
- value: a.description,
162
- "onUpdate:value": e[4] || (e[4] = (n) => a.description = n)
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(u, { label: "状态" }, {
167
+ t(s, { label: "状态" }, {
168
168
  default: o(() => [
169
- t(k, {
170
- value: a.state,
171
- "onUpdate:value": e[5] || (e[5] = (n) => a.state = n)
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: "E" }, {
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: "D" }, {
180
+ t(g, { value: 0 }, {
181
181
  default: o(() => e[8] || (e[8] = [
182
182
  c("停用")
183
183
  ])),