gds-plus-design-vue 1.1.2 → 1.1.7

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 (68) hide show
  1. package/lib/chartbi.48631362.mjs +44076 -0
  2. package/lib/chartbi.afd83839.js +80 -0
  3. package/lib/element-theme-chalk.ae828c17.js +2 -0
  4. package/lib/gd-initial.js +34 -0
  5. package/lib/gd-initial.mjs +80300 -16
  6. package/lib/main.60763eae.js +1 -0
  7. package/lib/main.f2b00b70.mjs +939 -0
  8. package/lib/messages.083c4ede.js +9 -0
  9. package/lib/messages.7e85146d.mjs +5802 -0
  10. package/lib/style.css +2 -2
  11. package/lib/system.account.65b2f7d4.js +216 -0
  12. package/lib/system.account.93b7df36.mjs +2536 -0
  13. package/lib/system.config.327aded6.js +1 -0
  14. package/lib/system.config.9c46f279.mjs +373 -0
  15. package/lib/system.datasource.4b0951ba.mjs +511 -0
  16. package/lib/system.datasource.8a0c7e0f.js +1 -0
  17. package/lib/system.dict.65f25e4e.mjs +996 -0
  18. package/lib/system.dict.72594c98.js +1 -0
  19. package/lib/system.duplicatechecking.0d47a5ca.js +1 -0
  20. package/lib/system.duplicatechecking.ad111272.mjs +2130 -0
  21. package/lib/system.email.54722948.js +41 -0
  22. package/lib/system.email.923697c6.mjs +7432 -0
  23. package/lib/system.fieldsecurity.7de4ee1d.mjs +1745 -0
  24. package/lib/system.fieldsecurity.d57edb47.js +1 -0
  25. package/lib/system.file.b3558a8b.js +1 -0
  26. package/lib/system.file.f152d4fe.mjs +489 -0
  27. package/lib/system.log.30e5157c.mjs +1450 -0
  28. package/lib/system.log.f243e7d0.js +1 -0
  29. package/lib/system.machine.325b256e.mjs +94 -0
  30. package/lib/system.machine.332fb31c.js +1 -0
  31. package/lib/system.notice.93c4691c.js +1 -0
  32. package/lib/system.notice.e0b84103.mjs +636 -0
  33. package/lib/system.noticereceived.a28ba643.js +1 -0
  34. package/lib/system.noticereceived.c0a19336.mjs +158 -0
  35. package/lib/system.onlineuser.90c08aef.mjs +184 -0
  36. package/lib/system.onlineuser.e0c261ed.js +1 -0
  37. package/lib/system.org.65452f67.js +1 -0
  38. package/lib/system.org.b8d59e5d.mjs +421 -0
  39. package/lib/system.permissions.b8a5f79d.mjs +212 -0
  40. package/lib/system.permissions.c34f44a3.js +9 -0
  41. package/lib/system.plugin.07b3c38e.js +1 -0
  42. package/lib/system.plugin.4911a33d.mjs +946 -0
  43. package/lib/system.pos.6ed35c39.js +1 -0
  44. package/lib/system.pos.c274f13c.mjs +312 -0
  45. package/lib/system.promptmanagement.5a4930b1.js +1 -0
  46. package/lib/system.promptmanagement.fe8b0913.mjs +789 -0
  47. package/lib/system.role.ceb5ed2d.mjs +1509 -0
  48. package/lib/system.role.daedd959.js +1 -0
  49. package/lib/system.timers.69f1792a.mjs +3160 -0
  50. package/lib/system.timers.ef6b6796.js +38 -0
  51. package/lib/system.translation.6351f189.mjs +661 -0
  52. package/lib/system.translation.8905eb73.js +1 -0
  53. package/lib/system.user.12a4e490.mjs +1425 -0
  54. package/lib/system.user.d668538b.js +14 -0
  55. package/lib/system.useraffiliation.b8be03db.js +1 -0
  56. package/lib/system.useraffiliation.c272e688.mjs +1025 -0
  57. package/lib/system.webresource.5049d97b.js +1 -0
  58. package/lib/system.webresource.e9518d87.mjs +723 -0
  59. package/lib/system.welcome.3f1cce96.mjs +45 -0
  60. package/lib/system.welcome.b109df88.js +1 -0
  61. package/locale/en_US.js +258 -18
  62. package/locale/id_ID.js +257 -18
  63. package/locale/vi_VN.js +256 -16
  64. package/locale/zh_CN.js +267 -25
  65. package/package.json +105 -110
  66. package/lib/gd-initial.umd.js +0 -440
  67. package/lib/index.d50ecf4b.mjs +0 -143931
  68. package/lib/main.305313fd.mjs +0 -919
@@ -0,0 +1,3160 @@
1
+ import { n as g, m as I, u as z } from "./chartbi.48631362.mjs";
2
+ import { t as q } from "./messages.7e85146d.mjs";
3
+ function H(a) {
4
+ return window.axios({
5
+ url: "/SysJob/pageJobDetail",
6
+ method: "post",
7
+ data: a
8
+ });
9
+ }
10
+ function Y(a) {
11
+ return window.axios({
12
+ url: "/SysJob/jobTriggerList",
13
+ method: "get",
14
+ params: a
15
+ });
16
+ }
17
+ function W(a) {
18
+ return window.axios({
19
+ url: "/SysJob/pauseAllJob",
20
+ method: "post",
21
+ data: a
22
+ });
23
+ }
24
+ function G(a) {
25
+ return window.axios({
26
+ url: "/SysJob/startAllJob",
27
+ method: "post",
28
+ data: a
29
+ });
30
+ }
31
+ function U(a) {
32
+ return window.axios({
33
+ url: "/SysJob/pauseJob",
34
+ method: "post",
35
+ data: a
36
+ });
37
+ }
38
+ function Q(a) {
39
+ return window.axios({
40
+ url: "/SysJob/startJob",
41
+ method: "post",
42
+ data: a
43
+ });
44
+ }
45
+ function X(a) {
46
+ return window.axios({
47
+ url: "/SysJob/pauseTrigger",
48
+ method: "post",
49
+ data: a
50
+ });
51
+ }
52
+ function Z(a) {
53
+ return window.axios({
54
+ url: "/SysJob/startTrigger",
55
+ method: "post",
56
+ data: a
57
+ });
58
+ }
59
+ function ee(a) {
60
+ return window.axios({
61
+ url: "/SysJob/cancelSleep",
62
+ method: "post",
63
+ data: a
64
+ });
65
+ }
66
+ function te(a) {
67
+ return window.axios({
68
+ url: "/SysJob/persistAll",
69
+ method: "post",
70
+ data: a
71
+ });
72
+ }
73
+ function ae(a) {
74
+ return window.axios({
75
+ url: "/SysJob/jobClusterList",
76
+ method: "get",
77
+ params: a
78
+ });
79
+ }
80
+ function se(a) {
81
+ return window.axios({
82
+ url: "/SysJob/addJobDetail",
83
+ method: "post",
84
+ data: a
85
+ });
86
+ }
87
+ function re(a) {
88
+ return window.axios({
89
+ url: "/SysJob/updateJobDetail",
90
+ method: "post",
91
+ data: a
92
+ });
93
+ }
94
+ function ie(a) {
95
+ return window.axios({
96
+ url: "/SysJob/deleteJobDetail",
97
+ method: "post",
98
+ data: a
99
+ });
100
+ }
101
+ function ne(a) {
102
+ return window.axios({
103
+ url: "/SysJob/addJobTrigger",
104
+ method: "post",
105
+ data: a
106
+ });
107
+ }
108
+ function le(a) {
109
+ return window.axios({
110
+ url: "/SysJob/updateJobTrigger",
111
+ method: "post",
112
+ data: a
113
+ });
114
+ }
115
+ function oe(a) {
116
+ return window.axios({
117
+ url: "/SysJob/deleteJobTrigger",
118
+ method: "post",
119
+ data: a
120
+ });
121
+ }
122
+ function ce(a) {
123
+ return window.axios({
124
+ url: "/SysJob/runJob",
125
+ method: "post",
126
+ data: a
127
+ });
128
+ }
129
+ const de = {
130
+ data() {
131
+ return {
132
+ tableColumns: [
133
+ {
134
+ type: "expand",
135
+ width: "60",
136
+ fixed: !0,
137
+ slotType: "tableExpand"
138
+ },
139
+ {
140
+ transKey: "gd.task.jobId",
141
+ prop: "jobId",
142
+ width: "160",
143
+ label: "\u4F5C\u4E1A\u7F16\u53F7",
144
+ align: "left",
145
+ type: "slot",
146
+ slotType: "jobId"
147
+ },
148
+ {
149
+ label: "\u7EC4\u540D\u79F0",
150
+ prop: "groupname",
151
+ align: "left",
152
+ transKey: "gd.task.groupName"
153
+ },
154
+ {
155
+ label: "\u7C7B\u578B",
156
+ align: "left",
157
+ prop: "jobType",
158
+ width: 120,
159
+ type: "slot",
160
+ slotType: "jobType",
161
+ transKey: "gd.task.type"
162
+ },
163
+ {
164
+ label: "\u63CF\u8FF0",
165
+ align: "left",
166
+ prop: "description",
167
+ type: "slot",
168
+ slotType: "description",
169
+ with: 200,
170
+ transKey: "gd.task.description"
171
+ },
172
+ {
173
+ label: "\u6267\u884C\u65B9\u5F0F",
174
+ align: "left",
175
+ prop: "concurrent",
176
+ type: "slot",
177
+ slotType: "concurrent",
178
+ transKey: "gd.task.concurrent"
179
+ },
180
+ {
181
+ label: "\u521B\u5EFA\u7C7B\u578B",
182
+ prop: "createType",
183
+ align: "left",
184
+ type: "slot",
185
+ slotType: "createType",
186
+ transKey: "gd.task.createType"
187
+ },
188
+ {
189
+ label: "\u989D\u5916\u6570\u636E",
190
+ align: "left",
191
+ prop: "properties",
192
+ type: "slot",
193
+ slotType: "properties",
194
+ with: 200,
195
+ transKey: "gd.task.properties"
196
+ },
197
+ {
198
+ label: "\u66F4\u65B0\u65F6\u95F4",
199
+ align: "center",
200
+ prop: "updatedTime",
201
+ type: "slot",
202
+ slotType: "updatedTime",
203
+ width: 160,
204
+ transKey: "gd.task.updatedTime"
205
+ },
206
+ {
207
+ label: "\u64CD\u4F5C",
208
+ width: 200,
209
+ prop: "action",
210
+ type: "slot",
211
+ slotType: "action",
212
+ align: "left",
213
+ transKey: "gd.task.btn.handle"
214
+ }
215
+ ],
216
+ innerColumns: [
217
+ {
218
+ label: "\u89E6\u53D1\u5668\u7F16\u53F7",
219
+ align: "left",
220
+ prop: "triggerId",
221
+ fixed: "left",
222
+ width: 160,
223
+ type: "slot",
224
+ slotType: "triggerId",
225
+ transKey: "gd.task.triggerId"
226
+ },
227
+ {
228
+ label: "\u7C7B\u578B",
229
+ prop: "triggerType",
230
+ align: "left",
231
+ type: "slot",
232
+ slotType: "triggerType",
233
+ width: 210,
234
+ transKey: "gd.task.type"
235
+ },
236
+ {
237
+ label: "\u53C2\u6570",
238
+ align: "left",
239
+ prop: "args",
240
+ type: "slot",
241
+ slotType: "args",
242
+ width: 230,
243
+ transKey: "gd.task.args"
244
+ },
245
+ {
246
+ label: "\u63CF\u8FF0",
247
+ align: "left",
248
+ ellipsis: !0,
249
+ prop: "description",
250
+ type: "slot",
251
+ slotType: "description",
252
+ width: 200,
253
+ transKey: "gd.task.description"
254
+ },
255
+ {
256
+ label: "\u72B6\u6001",
257
+ align: "left",
258
+ ellipsis: !0,
259
+ prop: "status",
260
+ type: "slot",
261
+ slotType: "status",
262
+ width: 120,
263
+ transKey: "gd.task.status"
264
+ },
265
+ {
266
+ label: "\u8D77\u59CB\u65F6\u95F4",
267
+ prop: "starttime",
268
+ align: "center",
269
+ ellipsis: !0,
270
+ transKey: "gd.task.startTime",
271
+ width: 200
272
+ },
273
+ {
274
+ label: "\u7ED3\u675F\u65F6\u95F4",
275
+ prop: "endtime",
276
+ align: "center",
277
+ ellipsis: !0,
278
+ transKey: "gd.task.endTime",
279
+ width: 200
280
+ },
281
+ {
282
+ label: "\u6700\u8FD1\u8FD0\u884C\u65F6\u95F4",
283
+ prop: "lastruntime",
284
+ align: "center",
285
+ ellipsis: !0,
286
+ transKey: "gd.task.lastRunTime",
287
+ width: 200
288
+ },
289
+ {
290
+ label: "\u4E0B\u4E00\u6B21\u8FD0\u884C\u65F6\u95F4",
291
+ prop: "nextruntime",
292
+ align: "center",
293
+ ellipsis: !0,
294
+ transKey: "gd.task.nextRunTime",
295
+ width: 200
296
+ },
297
+ {
298
+ label: "\u89E6\u53D1\u6B21\u6570",
299
+ align: "left",
300
+ ellipsis: !0,
301
+ prop: "numberofruns",
302
+ transKey: "gd.task.numberOfRuns"
303
+ },
304
+ {
305
+ label: "\u6700\u5927\u89E6\u53D1\u6B21\u6570",
306
+ align: "left",
307
+ ellipsis: !0,
308
+ prop: "maxnumberofruns",
309
+ width: 160,
310
+ transKey: "gd.task.maxNumberOfRuns"
311
+ },
312
+ {
313
+ label: "\u51FA\u9519\u6B21\u6570",
314
+ align: "left",
315
+ ellipsis: !0,
316
+ prop: "numberoferrors",
317
+ width: 100,
318
+ transKey: "gd.task.numberOfErrors"
319
+ },
320
+ {
321
+ label: "\u6700\u5927\u51FA\u9519\u6B21\u6570",
322
+ align: "left",
323
+ ellipsis: !0,
324
+ prop: "maxnumberoferrors",
325
+ width: 160,
326
+ transKey: "gd.task.maxNumberOfErrors"
327
+ },
328
+ {
329
+ label: "\u91CD\u8BD5\u6B21\u6570",
330
+ align: "left",
331
+ ellipsis: !0,
332
+ prop: "numRetries",
333
+ width: 100,
334
+ transKey: "gd.task.numRetries"
335
+ },
336
+ {
337
+ label: "\u91CD\u8BD5\u95F4\u9694ms",
338
+ align: "left",
339
+ ellipsis: !0,
340
+ prop: "retrytimeout",
341
+ width: 160,
342
+ transKey: "gd.task.retryTimeout"
343
+ },
344
+ {
345
+ label: "\u662F\u7ACB\u5373\u542F\u52A8",
346
+ align: "left",
347
+ ellipsis: !0,
348
+ prop: "startNow",
349
+ type: "slot",
350
+ slotType: "startNow",
351
+ width: 140,
352
+ transKey: "gd.task.startNow"
353
+ },
354
+ {
355
+ label: "\u662F\u5426\u542F\u52A8\u65F6\u6267\u884C\u4E00\u6B21",
356
+ align: "left",
357
+ ellipsis: !0,
358
+ prop: "runOnStart",
359
+ type: "slot",
360
+ slotType: "runOnStart",
361
+ width: 170,
362
+ transKey: "gd.task.runOnStart"
363
+ },
364
+ {
365
+ label: "\u662F\u5426\u91CD\u7F6E\u89E6\u53D1\u6B21\u6570",
366
+ align: "left",
367
+ ellipsis: !0,
368
+ prop: "resetOnlyOnce",
369
+ type: "slot",
370
+ slotType: "resetOnlyOnce",
371
+ width: 170,
372
+ transKey: "gd.task.resetOnlyOnce"
373
+ },
374
+ {
375
+ label: "\u66F4\u65B0\u65F6\u95F4",
376
+ align: "center",
377
+ ellipsis: !0,
378
+ prop: "updatedtime",
379
+ width: 200,
380
+ transKey: "gd.task.updatedTime"
381
+ },
382
+ {
383
+ label: "\u64CD\u4F5C",
384
+ width: 220,
385
+ fixed: "right",
386
+ ellipsis: !0,
387
+ prop: "action",
388
+ type: "slot",
389
+ slotType: "action",
390
+ align: "left",
391
+ transKey: "gd.btn.handle"
392
+ }
393
+ ],
394
+ tableButtons: [
395
+ {
396
+ displayName: "\u589E\u52A0\u4F5C\u4E1A",
397
+ functionName: "add",
398
+ show: !0,
399
+ transKey: "gd.task.addJob",
400
+ icon: "el-icon-plus",
401
+ name: "sysTimers:add"
402
+ },
403
+ {
404
+ displayName: "\u542F\u52A8\u6240\u6709\u4F5C\u4E1A",
405
+ functionName: "firingTask",
406
+ show: !0,
407
+ transKey: "gd.task.launchAllTask",
408
+ icon: "el-icon-video-play",
409
+ name: "sysTimers:start"
410
+ },
411
+ {
412
+ displayName: "\u6682\u505C\u6240\u6709\u4F5C\u4E1A",
413
+ functionName: "stopTask",
414
+ show: !0,
415
+ transKey: "gd.task.stopAllTask",
416
+ icon: "el-icon-video-pause",
417
+ btnType: "danger",
418
+ name: "sysTimers:stop"
419
+ },
420
+ {
421
+ displayName: "\u5F3A\u5236\u4F5C\u4E1A",
422
+ functionName: "force",
423
+ show: !0,
424
+ transKey: "gd.task.forceJob",
425
+ icon: "exclamation-circle",
426
+ btnType: "danger",
427
+ name: "sysTimers:force",
428
+ children: [
429
+ {
430
+ transKey: "\u5F3A\u5236\u5524\u9192\u4F5C\u4E1A\u8C03\u5EA6\u5668",
431
+ functionName: "wakeJob",
432
+ show: !0,
433
+ transKey: "gd.task.wakeJob",
434
+ icon: "el-icon-bell",
435
+ key: 1
436
+ },
437
+ {
438
+ transKey: "\u5F3A\u5236\u89E6\u53D1\u6240\u6709\u4F5C\u4E1A\u6301\u4E45\u5316",
439
+ functionName: "triggerJob",
440
+ show: !0,
441
+ icon: "block",
442
+ btnType: "danger",
443
+ key: 2,
444
+ transKey: "gd.task.triggerJob"
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ displayName: "\u96C6\u7FA4\u63A7\u5236",
450
+ functionName: "colony",
451
+ show: !0,
452
+ icon: "el-icon-office-building",
453
+ transKey: "gd.task.colony",
454
+ name: "sysTimers:colony"
455
+ }
456
+ ],
457
+ tableQueries: [{
458
+ transKey: "gd.task.jobId",
459
+ effectType: "input",
460
+ prop: "jobId",
461
+ label: "\u4F5C\u4E1A\u7F16\u53F7",
462
+ placeholder: "\u8BF7\u8F93\u5165",
463
+ placeholderTransKey: "gd.placeholder.input",
464
+ rules: []
465
+ }, {
466
+ transKey: "gd.task.description",
467
+ effectType: "input",
468
+ prop: "description",
469
+ label: "\u63CF\u8FF0",
470
+ placeholder: "\u8BF7\u8F93\u5165",
471
+ placeholderTransKey: "gd.placeholder.input",
472
+ rules: []
473
+ }]
474
+ };
475
+ }
476
+ };
477
+ const ue = {
478
+ props: {
479
+ cron: {
480
+ type: Object,
481
+ default: {
482
+ second: "*",
483
+ min: "*",
484
+ hour: "*",
485
+ day: "*",
486
+ month: "*",
487
+ week: "?",
488
+ year: ""
489
+ }
490
+ },
491
+ check: {
492
+ type: Function,
493
+ default: () => {
494
+ }
495
+ }
496
+ },
497
+ data() {
498
+ return {
499
+ labelCol: {
500
+ xs: {
501
+ span: 24
502
+ },
503
+ sm: {
504
+ span: 6
505
+ }
506
+ },
507
+ wrapperCol: {
508
+ xs: {
509
+ span: 24
510
+ },
511
+ sm: {
512
+ span: 16
513
+ }
514
+ },
515
+ radioStyle: {
516
+ display: "block",
517
+ height: "30px",
518
+ lineHeight: "30px",
519
+ marginBottom: "12px"
520
+ },
521
+ cycle01: 0,
522
+ cycle02: 1,
523
+ average01: 0,
524
+ average02: 1,
525
+ checkboxList: [],
526
+ radioValue: "1",
527
+ checkCopy: [0]
528
+ };
529
+ },
530
+ computed: {
531
+ averageTotal() {
532
+ let a = this.check(this.average01, 0, 58), e = this.check(this.average02, 1, 59 - this.average01);
533
+ return a + "/" + e;
534
+ },
535
+ cycleTotal() {
536
+ let a = this.check(this.cycle01, 0, 58), e = this.check(this.cycle02, this.cycle01 + 1, 59);
537
+ return a + "-" + e;
538
+ }
539
+ },
540
+ watch: {
541
+ "cron.second"(a, e) {
542
+ console.log(a), this.changeRadioValue(a);
543
+ }
544
+ },
545
+ methods: {
546
+ onSearch(a) {
547
+ this.$nextTick(() => {
548
+ setTimeout(() => {
549
+ this.onChange(4);
550
+ }, 0);
551
+ });
552
+ },
553
+ onChange(a) {
554
+ switch (Number(a)) {
555
+ case 1:
556
+ this.$emit("update", "second", "*", "second"), console.log(2);
557
+ break;
558
+ case 2:
559
+ this.$emit("update", "second", this.cycleTotal, "second");
560
+ break;
561
+ case 3:
562
+ this.$emit("update", "second", this.averageTotal, "second");
563
+ break;
564
+ case 4:
565
+ this.checkboxList.length === 0 ? this.checkboxList.push(this.checkCopy[0]) : this.checkCopy = [...this.checkboxList], this.$emit("update", "second", this.checkboxList.join(","), "second");
566
+ break;
567
+ }
568
+ },
569
+ changeRadioValue(a) {
570
+ if (a === "*")
571
+ this.radioValue = "1";
572
+ else if (a.indexOf("-") > -1) {
573
+ const e = a.split("-");
574
+ this.cycle01 = Number(e[0]), this.cycle02 = Number(e[1]), this.radioValue = "2";
575
+ } else if (a.indexOf("/") > -1) {
576
+ const e = a.split("/");
577
+ this.average01 = Number(e[0]), this.average02 = Number(e[1]), this.radioValue = "3";
578
+ } else
579
+ this.checkboxList = [
580
+ ...new Set(a.split(",").map((e) => Number(e)))
581
+ ], this.radioValue = "4";
582
+ }
583
+ },
584
+ mounted() {
585
+ this.changeRadioValue(this.cron.second);
586
+ }
587
+ };
588
+ var he = function() {
589
+ var e = this, t = e._self._c;
590
+ return t("div", [t("el-radio-group", { on: { change: e.onChange }, model: { value: e.radioValue, callback: function(s) {
591
+ e.radioValue = s;
592
+ }, expression: "radioValue" } }, [t("el-radio", { style: e.radioStyle, attrs: { label: "1" } }, [e._v(" " + e._s(e.$i18nt("gd.task.second", "\u79D2")) + "\uFF0C" + e._s(e.$i18nt("gd.task.wildcard", "\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]")) + " ")]), t("el-radio", { style: e.radioStyle, attrs: { label: "2" } }, [e._v(" " + e._s(e.$i18nt("gd.task.periodFrom", "\u5468\u671F\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 0, max: 58 }, on: { input: function(s) {
593
+ return e.onChange(2);
594
+ } }, model: { value: e.cycle01, callback: function(s) {
595
+ e.cycle01 = s;
596
+ }, expression: "cycle01" } }), e._v(" - "), t("el-input", { attrs: { type: "number", min: e.cycle01 + 1, max: 59 }, on: { input: function(s) {
597
+ return e.onChange(2);
598
+ } }, model: { value: e.cycle02, callback: function(s) {
599
+ e.cycle02 = s;
600
+ }, expression: "cycle02" } }), e._v(" " + e._s(e.$i18nt("gd.task.seconds", "\u79D2")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "3" } }, [e._v(" " + e._s(e.$i18nt("gd.task.follow", "\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 0, max: 58 }, on: { input: function(s) {
601
+ return e.onChange(3);
602
+ } }, model: { value: e.average01, callback: function(s) {
603
+ e.average01 = s;
604
+ }, expression: "average01" } }), e._v(" " + e._s(e.$i18nt("gd.task.secondsStart", "\u79D2\u5F00\u59CB\uFF0C\u6BCF")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 59 - e.average01 }, on: { input: function(s) {
605
+ return e.onChange(3);
606
+ } }, model: { value: e.average02, callback: function(s) {
607
+ e.average02 = s;
608
+ }, expression: "average02" } }), e._v(" " + e._s(e.$i18nt("gd.task.seconds", "\u79D2")) + "\uFF0C" + e._s(e.$i18nt("gd.task.executeOnce", "\u6267\u884C\u4E00\u6B21")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "4" } }, [e._v(" " + e._s(e.$i18nt("gd.task.specify", "\u6307\u5B9A")) + " "), t("el-select", { attrs: { multiple: !0, clearable: !0, "collapse-tags": !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onSearch }, model: { value: e.checkboxList, callback: function(s) {
609
+ e.checkboxList = s;
610
+ }, expression: "checkboxList" } }, e._l(60, function(s, r) {
611
+ return t("el-option", { key: s, attrs: { value: r } }, [e._v(" " + e._s(r) + " ")]);
612
+ }), 1)], 1)], 1)], 1);
613
+ }, ge = [], pe = /* @__PURE__ */ g(
614
+ ue,
615
+ he,
616
+ ge,
617
+ !1,
618
+ null,
619
+ "6838641e",
620
+ null,
621
+ null
622
+ );
623
+ const me = pe.exports;
624
+ const fe = {
625
+ props: {
626
+ cron: {
627
+ type: Object,
628
+ default: {
629
+ second: "*",
630
+ min: "*",
631
+ hour: "*",
632
+ day: "*",
633
+ month: "*",
634
+ week: "?",
635
+ year: ""
636
+ }
637
+ },
638
+ check: {
639
+ type: Function,
640
+ default: () => {
641
+ }
642
+ }
643
+ },
644
+ data() {
645
+ return {
646
+ labelCol: {
647
+ xs: {
648
+ span: 24
649
+ },
650
+ sm: {
651
+ span: 6
652
+ }
653
+ },
654
+ wrapperCol: {
655
+ xs: {
656
+ span: 24
657
+ },
658
+ sm: {
659
+ span: 16
660
+ }
661
+ },
662
+ radioStyle: {
663
+ display: "block",
664
+ height: "30px",
665
+ lineHeight: "30px",
666
+ marginBottom: "12px"
667
+ },
668
+ cycle01: 0,
669
+ cycle02: 1,
670
+ average01: 0,
671
+ average02: 1,
672
+ checkboxList: [],
673
+ radioValue: "1",
674
+ checkCopy: [0]
675
+ };
676
+ },
677
+ computed: {
678
+ averageTotal() {
679
+ let a = this.check(this.average01, 0, 58), e = this.check(this.average02, 1, 59 - this.average01);
680
+ return a + "/" + e;
681
+ },
682
+ cycleTotal() {
683
+ let a = this.check(this.cycle01, 0, 58), e = this.check(this.cycle02, this.cycle01 + 1, 59);
684
+ return a + "-" + e;
685
+ }
686
+ },
687
+ watch: {
688
+ "cron.min"(a, e) {
689
+ this.changeRadioValue(a);
690
+ }
691
+ },
692
+ methods: {
693
+ onSearch(a) {
694
+ this.$nextTick(() => {
695
+ setTimeout(() => {
696
+ this.onChange(4);
697
+ }, 0);
698
+ });
699
+ },
700
+ onChange(a) {
701
+ switch (Number(a)) {
702
+ case 1:
703
+ this.$emit("update", "min", "*", "min"), console.log(2);
704
+ break;
705
+ case 2:
706
+ this.$emit("update", "min", this.cycleTotal, "min");
707
+ break;
708
+ case 3:
709
+ this.$emit("update", "min", this.averageTotal, "min");
710
+ break;
711
+ case 4:
712
+ this.checkboxList.length === 0 ? this.checkboxList.push(this.checkCopy[0]) : this.checkCopy = [...this.checkboxList], this.$emit("update", "min", this.checkboxList.join(","), "min");
713
+ break;
714
+ }
715
+ },
716
+ changeRadioValue(a) {
717
+ if (a === "*")
718
+ this.radioValue = "1";
719
+ else if (a.indexOf("-") > -1) {
720
+ const e = a.split("-");
721
+ this.cycle01 = Number(e[0]), this.cycle02 = Number(e[1]), this.radioValue = "2";
722
+ } else if (a.indexOf("/") > -1) {
723
+ const e = a.split("/");
724
+ this.average01 = Number(e[0]), this.average02 = Number(e[1]), this.radioValue = "3";
725
+ } else
726
+ this.checkboxList = [
727
+ ...new Set(a.split(",").map((e) => Number(e)))
728
+ ], this.radioValue = "4";
729
+ }
730
+ },
731
+ mounted() {
732
+ this.changeRadioValue(this.cron.min);
733
+ }
734
+ };
735
+ var ye = function() {
736
+ var e = this, t = e._self._c;
737
+ return t("div", [t("el-radio-group", { on: { input: e.onChange }, model: { value: e.radioValue, callback: function(s) {
738
+ e.radioValue = s;
739
+ }, expression: "radioValue" } }, [t("el-radio", { style: e.radioStyle, attrs: { label: "1" } }, [e._v(" " + e._s(e.$i18nt("gd.task.min", "\u5206\u949F")) + "\uFF0C" + e._s(e.$i18nt("gd.task.wildcard", "\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]")) + " ")]), t("el-radio", { style: e.radioStyle, attrs: { label: "2" } }, [e._v(" " + e._s(e.$i18nt("gd.task.periodFrom", "\u5468\u671F\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 0, max: 58 }, on: { input: function(s) {
740
+ return e.onChange(2);
741
+ } }, model: { value: e.cycle01, callback: function(s) {
742
+ e.cycle01 = s;
743
+ }, expression: "cycle01" } }), e._v(" - "), t("el-input", { attrs: { type: "number", min: e.cycle01 + 1, max: 59 }, on: { input: function(s) {
744
+ return e.onChange(2);
745
+ } }, model: { value: e.cycle02, callback: function(s) {
746
+ e.cycle02 = s;
747
+ }, expression: "cycle02" } }), e._v(" " + e._s(e.$i18nt("gd.task.mins", "\u5206\u949F")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "3" } }, [e._v(" " + e._s(e.$i18nt("gd.task.follow", "\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 0, max: 58 }, on: { input: function(s) {
748
+ return e.onChange(3);
749
+ } }, model: { value: e.average01, callback: function(s) {
750
+ e.average01 = s;
751
+ }, expression: "average01" } }), e._v(" " + e._s(e.$i18nt("gd.task.minStart", "\u5206\u949F\u5F00\u59CB\uFF0C\u6BCF")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 59 - e.average01 }, on: { input: function(s) {
752
+ return e.onChange(3);
753
+ } }, model: { value: e.average02, callback: function(s) {
754
+ e.average02 = s;
755
+ }, expression: "average02" } }), e._v(" " + e._s(e.$i18nt("gd.task.mins", "\u5206\u949F")) + "\uFF0C" + e._s(e.$i18nt("gd.task.executeOnce", "\u6267\u884C\u4E00\u6B21")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "4" } }, [e._v(" " + e._s(e.$i18nt("gd.task.specify", "\u6307\u5B9A")) + " "), t("el-select", { attrs: { multiple: !0, clearable: !0, "collapse-tags": !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onSearch }, model: { value: e.checkboxList, callback: function(s) {
756
+ e.checkboxList = s;
757
+ }, expression: "checkboxList" } }, e._l(60, function(s, r) {
758
+ return t("el-option", { key: s, attrs: { value: r } }, [e._v(" " + e._s(r) + " ")]);
759
+ }), 1)], 1)], 1)], 1);
760
+ }, be = [], ke = /* @__PURE__ */ g(
761
+ fe,
762
+ ye,
763
+ be,
764
+ !1,
765
+ null,
766
+ "140f50cf",
767
+ null,
768
+ null
769
+ );
770
+ const _e = ke.exports;
771
+ const ve = {
772
+ props: {
773
+ cron: {
774
+ type: Object,
775
+ default: {
776
+ second: "*",
777
+ min: "*",
778
+ hour: "*",
779
+ day: "*",
780
+ month: "*",
781
+ week: "?",
782
+ year: ""
783
+ }
784
+ },
785
+ check: {
786
+ type: Function,
787
+ default: () => {
788
+ }
789
+ }
790
+ },
791
+ data() {
792
+ return {
793
+ labelCol: {
794
+ xs: {
795
+ span: 24
796
+ },
797
+ sm: {
798
+ span: 6
799
+ }
800
+ },
801
+ wrapperCol: {
802
+ xs: {
803
+ span: 24
804
+ },
805
+ sm: {
806
+ span: 16
807
+ }
808
+ },
809
+ radioStyle: {
810
+ display: "block",
811
+ height: "30px",
812
+ lineHeight: "30px",
813
+ marginBottom: "12px"
814
+ },
815
+ cycle01: 0,
816
+ cycle02: 1,
817
+ average01: 0,
818
+ average02: 1,
819
+ checkboxList: [],
820
+ radioValue: "1",
821
+ checkCopy: [0]
822
+ };
823
+ },
824
+ computed: {
825
+ averageTotal() {
826
+ let a = this.check(this.average01, 0, 22), e = this.check(this.average02, 1, 23 - this.average01);
827
+ return a + "/" + e;
828
+ },
829
+ cycleTotal() {
830
+ let a = this.check(this.cycle01, 0, 22), e = this.check(this.cycle02, this.cycle01 + 1, 23);
831
+ return a + "-" + e;
832
+ }
833
+ },
834
+ watch: {
835
+ "cron.hour"(a, e) {
836
+ this.changeRadioValue(a);
837
+ }
838
+ },
839
+ methods: {
840
+ onSearch(a) {
841
+ this.$nextTick(() => {
842
+ setTimeout(() => {
843
+ this.onChange(4);
844
+ }, 0);
845
+ });
846
+ },
847
+ onChange(a) {
848
+ switch (Number(a)) {
849
+ case 1:
850
+ this.$emit("update", "hour", "*", "hour"), console.log(2);
851
+ break;
852
+ case 2:
853
+ this.$emit("update", "hour", this.cycleTotal, "hour");
854
+ break;
855
+ case 3:
856
+ this.$emit("update", "hour", this.averageTotal, "hour");
857
+ break;
858
+ case 4:
859
+ this.checkboxList.length === 0 ? this.checkboxList.push(this.checkCopy[0]) : this.checkCopy = [...this.checkboxList], this.$emit("update", "hour", this.checkboxList.join(","), "hour");
860
+ break;
861
+ }
862
+ },
863
+ changeRadioValue(a) {
864
+ if (a === "*")
865
+ this.radioValue = "1";
866
+ else if (a.indexOf("-") > -1) {
867
+ const e = a.split("-");
868
+ this.cycle01 = Number(e[0]), this.cycle02 = Number(e[1]), this.radioValue = "2";
869
+ } else if (a.indexOf("/") > -1) {
870
+ const e = a.split("/");
871
+ this.average01 = Number(e[0]), this.average02 = Number(e[1]), this.radioValue = "3";
872
+ } else
873
+ this.checkboxList = [
874
+ ...new Set(a.split(",").map((e) => Number(e)))
875
+ ], this.radioValue = "4";
876
+ }
877
+ },
878
+ mounted() {
879
+ this.changeRadioValue(this.cron.hour);
880
+ }
881
+ };
882
+ var $e = function() {
883
+ var e = this, t = e._self._c;
884
+ return t("div", [t("el-radio-group", { on: { change: e.onChange }, model: { value: e.radioValue, callback: function(s) {
885
+ e.radioValue = s;
886
+ }, expression: "radioValue" } }, [t("el-radio", { style: e.radioStyle, attrs: { label: "1" } }, [e._v(" " + e._s(e.$i18nt("gd.task.hour", "\u5C0F\u65F6")) + "\uFF0C" + e._s(e.$i18nt("gd.task.wildcard", "\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]")) + " ")]), t("el-radio", { style: e.radioStyle, attrs: { label: "2" } }, [e._v(" " + e._s(e.$i18nt("gd.task.periodFrom", "\u5468\u671F\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 0, max: 22 }, on: { input: function(s) {
887
+ return e.onChange(2);
888
+ } }, model: { value: e.cycle01, callback: function(s) {
889
+ e.cycle01 = s;
890
+ }, expression: "cycle01" } }), e._v(" - "), t("el-input", { attrs: { type: "number", min: e.cycle01 + 1, max: 59 }, on: { input: function(s) {
891
+ return e.onChange(2);
892
+ } }, model: { value: e.cycle02, callback: function(s) {
893
+ e.cycle02 = s;
894
+ }, expression: "cycle02" } }), e._v(" " + e._s(e.$i18nt("gd.task.hours", "\u5C0F\u65F6")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "3" } }, [e._v(" " + e._s(e.$i18nt("gd.task.follow", "\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 0, max: 22 }, on: { input: function(s) {
895
+ return e.onChange(3);
896
+ } }, model: { value: e.average01, callback: function(s) {
897
+ e.average01 = s;
898
+ }, expression: "average01" } }), e._v(" " + e._s(e.$i18nt("gd.task.hourStart", "\u65F6\u5F00\u59CB\uFF0C\u6BCF")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 23 - e.average01 }, on: { input: function(s) {
899
+ return e.onChange(3);
900
+ } }, model: { value: e.average02, callback: function(s) {
901
+ e.average02 = s;
902
+ }, expression: "average02" } }), e._v(" " + e._s(e.$i18nt("gd.task.hours", "\u5C0F\u65F6")) + "\uFF0C" + e._s(e.$i18nt("gd.task.executeOnce", "\u6267\u884C\u4E00\u6B21")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "4" } }, [e._v(" " + e._s(e.$i18nt("gd.task.specify", "\u6307\u5B9A")) + " "), t("el-select", { attrs: { multiple: !0, clearable: !0, "collapse-tags": !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onSearch }, model: { value: e.checkboxList, callback: function(s) {
903
+ e.checkboxList = s;
904
+ }, expression: "checkboxList" } }, e._l(24, function(s, r) {
905
+ return t("el-option", { key: s, attrs: { value: r } }, [e._v(" " + e._s(r) + " ")]);
906
+ }), 1)], 1)], 1)], 1);
907
+ }, we = [], xe = /* @__PURE__ */ g(
908
+ ve,
909
+ $e,
910
+ we,
911
+ !1,
912
+ null,
913
+ "b0a7883b",
914
+ null,
915
+ null
916
+ );
917
+ const Te = xe.exports;
918
+ const Se = {
919
+ props: {
920
+ cron: {
921
+ type: Object,
922
+ default: {
923
+ second: "*",
924
+ min: "*",
925
+ hour: "*",
926
+ day: "*",
927
+ month: "*",
928
+ week: "?",
929
+ year: ""
930
+ }
931
+ },
932
+ check: {
933
+ type: Function,
934
+ default: () => {
935
+ }
936
+ }
937
+ },
938
+ data() {
939
+ return {
940
+ labelCol: {
941
+ xs: {
942
+ span: 24
943
+ },
944
+ sm: {
945
+ span: 6
946
+ }
947
+ },
948
+ wrapperCol: {
949
+ xs: {
950
+ span: 24
951
+ },
952
+ sm: {
953
+ span: 16
954
+ }
955
+ },
956
+ radioStyle: {
957
+ display: "block",
958
+ height: "30px",
959
+ lineHeight: "30px",
960
+ marginBottom: "12px"
961
+ },
962
+ cycle01: 1,
963
+ cycle02: 2,
964
+ average01: 1,
965
+ average02: 1,
966
+ checkboxList: [],
967
+ radioValue: "1",
968
+ checkCopy: [1],
969
+ workday: 1
970
+ };
971
+ },
972
+ computed: {
973
+ workdayTotal() {
974
+ return this.check(this.workday, 1, 31) + "W";
975
+ },
976
+ averageTotal() {
977
+ let a = this.check(this.average01, 1, 30), e = this.check(this.average02, 1, 31 - this.average01);
978
+ return a + "/" + e;
979
+ },
980
+ cycleTotal() {
981
+ let a = this.check(this.cycle01, 1, 30), e = this.check(this.cycle02, this.cycle01 + 1, 31);
982
+ return a + "-" + e;
983
+ }
984
+ },
985
+ watch: {
986
+ "cron.day"(a, e) {
987
+ this.changeRadioValue(a);
988
+ }
989
+ },
990
+ methods: {
991
+ onSearch(a) {
992
+ this.$nextTick(() => {
993
+ setTimeout(() => {
994
+ this.onChange(7);
995
+ }, 0);
996
+ });
997
+ },
998
+ onChange(a) {
999
+ switch (Number(a) === 2 && this.cron.week === "?" && this.$emit("update", "week", "*", "day"), Number(a) !== 2 && this.cron.week !== "?" && this.$emit("update", "week", "?", "day"), Number(a)) {
1000
+ case 1:
1001
+ this.$emit("update", "day", "*", "day");
1002
+ break;
1003
+ case 2:
1004
+ this.$emit("update", "day", "?", "day");
1005
+ break;
1006
+ case 3:
1007
+ this.$emit("update", "day", this.cycleTotal, "day");
1008
+ break;
1009
+ case 4:
1010
+ this.$emit("update", "day", this.averageTotal, "day");
1011
+ break;
1012
+ case 5:
1013
+ this.$emit("update", "day", this.workdayTotal, "day");
1014
+ break;
1015
+ case 6:
1016
+ this.$emit("update", "day", "L", "day");
1017
+ break;
1018
+ case 7:
1019
+ this.checkboxList.length === 0 ? this.checkboxList.push(this.checkCopy[0]) : this.checkCopy = [...this.checkboxList], this.$emit("update", "day", this.checkboxList.join(","), "day");
1020
+ break;
1021
+ }
1022
+ },
1023
+ changeRadioValue(a) {
1024
+ if (a === "*")
1025
+ this.radioValue = "1";
1026
+ else if (a === "?")
1027
+ this.radioValue = "2";
1028
+ else if (a.indexOf("-") > -1) {
1029
+ const e = a.split("-");
1030
+ this.cycle01 = Number(e[0]), this.cycle02 = Number(e[1]), this.radioValue = "3";
1031
+ } else if (a.indexOf("/") > -1) {
1032
+ const e = a.split("/");
1033
+ this.average01 = Number(e[0]), this.average02 = Number(e[1]), this.radioValue = "4";
1034
+ } else if (a.indexOf("W") > -1) {
1035
+ const e = a.split("W");
1036
+ this.workday = Number(e[0]), this.radioValue = "5";
1037
+ } else
1038
+ a === "L" ? this.radioValue = "6" : (this.checkboxList = [
1039
+ ...new Set(a.split(",").map((e) => Number(e)))
1040
+ ], this.radioValue = "7");
1041
+ }
1042
+ },
1043
+ mounted() {
1044
+ this.changeRadioValue(this.cron.day);
1045
+ }
1046
+ };
1047
+ var Ce = function() {
1048
+ var e = this, t = e._self._c;
1049
+ return t("div", [t("el-radio-group", { on: { change: e.onChange }, model: { value: e.radioValue, callback: function(s) {
1050
+ e.radioValue = s;
1051
+ }, expression: "radioValue" } }, [t("el-radio", { style: e.radioStyle, attrs: { label: "1" } }, [e._v(" " + e._s(e.$i18nt("gd.task.day", "\u65E5")) + "\uFF0C" + e._s(e.$i18nt("gd.task.wildcard", "\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]")) + " ")]), t("el-radio", { style: e.radioStyle, attrs: { label: "2" } }, [e._v(e._s(e.$i18nt("gd.task.notSpecified", "\u4E0D\u6307\u5B9A")))]), t("el-radio", { style: e.radioStyle, attrs: { label: "3" } }, [e._v(" " + e._s(e.$i18nt("gd.task.periodFrom", "\u5468\u671F\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 30 }, on: { input: function(s) {
1052
+ return e.onChange(3);
1053
+ } }, model: { value: e.cycle01, callback: function(s) {
1054
+ e.cycle01 = s;
1055
+ }, expression: "cycle01" } }), e._v(" - "), t("el-input", { attrs: { type: "number", min: e.cycle01 + 1, max: 31 }, on: { input: function(s) {
1056
+ return e.onChange(3);
1057
+ } }, model: { value: e.cycle02, callback: function(s) {
1058
+ e.cycle02 = s;
1059
+ }, expression: "cycle02" } }), e._v(" " + e._s(e.$i18nt("gd.task.days", "\u65E5")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "4" } }, [e._v(" " + e._s(e.$i18nt("gd.task.follow", "\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 30 }, on: { input: function(s) {
1060
+ return e.onChange(4);
1061
+ } }, model: { value: e.average01, callback: function(s) {
1062
+ e.average01 = s;
1063
+ }, expression: "average01" } }), e._v(" " + e._s(e.$i18nt("gd.task.dayStart", "\u53F7\u5F00\u59CB\uFF0C\u6BCF")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 31 - e.average01 }, on: { input: function(s) {
1064
+ return e.onChange(3);
1065
+ } }, model: { value: e.average02, callback: function(s) {
1066
+ e.average02 = s;
1067
+ }, expression: "average02" } }), e._v(" " + e._s(e.$i18nt("gd.task.days", "\u65E5")) + "\uFF0C" + e._s(e.$i18nt("gd.task.executeOnce", "\u6267\u884C\u4E00\u6B21")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "5" } }, [e._v(" " + e._s(e.$i18nt("gd.task.monthly", "\u6BCF\u6708")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 31 }, on: { input: function(s) {
1068
+ return e.onChange(5);
1069
+ } }, model: { value: e.workday, callback: function(s) {
1070
+ e.workday = s;
1071
+ }, expression: "workday" } }), e._v(" " + e._s(e.$i18nt("gd.task.workingDay", "\u53F7\u6700\u8FD1\u7684\u90A3\u4E2A\u5DE5\u4F5C\u65E5")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "6" } }, [e._v(e._s(e.$i18nt("gd.task.lasDay", "\u672C\u6708\u6700\u540E\u4E00\u5929")))]), t("el-radio", { style: e.radioStyle, attrs: { label: "7" } }, [e._v(" " + e._s(e.$i18nt("gd.task.specify", "\u6307\u5B9A")) + " "), t("el-select", { attrs: { multiple: !0, clearable: !0, "collapse-tags": !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onSearch }, model: { value: e.checkboxList, callback: function(s) {
1072
+ e.checkboxList = s;
1073
+ }, expression: "checkboxList" } }, [e._l(32, function(s, r) {
1074
+ return [r > 0 ? t("el-option", { key: s, attrs: { value: r } }, [e._v(" " + e._s(r) + " ")]) : e._e()];
1075
+ })], 2)], 1)], 1)], 1);
1076
+ }, De = [], Le = /* @__PURE__ */ g(
1077
+ Se,
1078
+ Ce,
1079
+ De,
1080
+ !1,
1081
+ null,
1082
+ "9b8781bb",
1083
+ null,
1084
+ null
1085
+ );
1086
+ const Oe = Le.exports;
1087
+ const Ve = [
1088
+ { key: 1, value: "\u4E00\u6708" },
1089
+ { key: 2, value: "\u4E8C\u6708" },
1090
+ { key: 3, value: "\u4E09\u6708" },
1091
+ { key: 4, value: "\u56DB\u6708" },
1092
+ { key: 5, value: "\u4E94\u6708" },
1093
+ { key: 6, value: "\u516D\u6708" },
1094
+ { key: 7, value: "\u4E03\u6708" },
1095
+ { key: 8, value: "\u516B\u6708" },
1096
+ { key: 9, value: "\u4E5D\u6708" },
1097
+ { key: 10, value: "\u5341\u6708" },
1098
+ { key: 11, value: "\u5341\u4E00\u6708" },
1099
+ { key: 12, value: "\u5341\u4E8C\u6708" }
1100
+ ], Re = {
1101
+ props: {
1102
+ cron: {
1103
+ type: Object,
1104
+ default: {
1105
+ second: "*",
1106
+ min: "*",
1107
+ hour: "*",
1108
+ day: "*",
1109
+ month: "*",
1110
+ week: "?",
1111
+ year: ""
1112
+ }
1113
+ },
1114
+ check: {
1115
+ type: Function,
1116
+ default: () => {
1117
+ }
1118
+ }
1119
+ },
1120
+ data() {
1121
+ return {
1122
+ labelCol: {
1123
+ xs: {
1124
+ span: 24
1125
+ },
1126
+ sm: {
1127
+ span: 6
1128
+ }
1129
+ },
1130
+ wrapperCol: {
1131
+ xs: {
1132
+ span: 24
1133
+ },
1134
+ sm: {
1135
+ span: 16
1136
+ }
1137
+ },
1138
+ radioStyle: {
1139
+ display: "block",
1140
+ height: "30px",
1141
+ lineHeight: "30px",
1142
+ marginBottom: "12px"
1143
+ },
1144
+ cycle01: 1,
1145
+ cycle02: 2,
1146
+ average01: 1,
1147
+ average02: 1,
1148
+ checkboxList: [],
1149
+ radioValue: "1",
1150
+ checkCopy: [1],
1151
+ monthList: Ve
1152
+ };
1153
+ },
1154
+ computed: {
1155
+ averageTotal() {
1156
+ let a = this.check(this.average01, 1, 11), e = this.check(this.average02, 1, 12 - this.average01);
1157
+ return a + "/" + e;
1158
+ },
1159
+ cycleTotal() {
1160
+ let a = this.check(this.cycle01, 1, 11), e = this.check(this.cycle02, this.cycle01 + 1, 12);
1161
+ return a + "-" + e;
1162
+ }
1163
+ },
1164
+ watch: {
1165
+ "cron.month"(a, e) {
1166
+ this.changeRadioValue(a);
1167
+ }
1168
+ },
1169
+ methods: {
1170
+ onSearch(a) {
1171
+ this.$nextTick(() => {
1172
+ setTimeout(() => {
1173
+ this.onChange(4);
1174
+ }, 0);
1175
+ });
1176
+ },
1177
+ onChange(a) {
1178
+ switch (Number(a)) {
1179
+ case 1:
1180
+ this.$emit("update", "month", "*", "month"), console.log(2);
1181
+ break;
1182
+ case 2:
1183
+ this.$emit("update", "month", this.cycleTotal, "month");
1184
+ break;
1185
+ case 3:
1186
+ this.$emit("update", "month", this.averageTotal, "month");
1187
+ break;
1188
+ case 4:
1189
+ this.checkboxList.length === 0 ? this.checkboxList.push(this.checkCopy[0]) : this.checkCopy = [...this.checkboxList], this.$emit("update", "month", this.checkboxList.join(","), "month");
1190
+ break;
1191
+ }
1192
+ },
1193
+ changeRadioValue(a) {
1194
+ if (a === "*")
1195
+ this.radioValue = "1";
1196
+ else if (a.indexOf("-") > -1) {
1197
+ const e = a.split("-");
1198
+ this.cycle01 = Number(e[0]), this.cycle02 = Number(e[1]), this.radioValue = "2";
1199
+ } else if (a.indexOf("/") > -1) {
1200
+ const e = a.split("/");
1201
+ this.average01 = Number(e[0]), this.average02 = Number(e[1]), this.radioValue = "3";
1202
+ } else
1203
+ this.checkboxList = [
1204
+ ...new Set(a.split(",").map((e) => Number(e)))
1205
+ ], this.radioValue = "4";
1206
+ }
1207
+ },
1208
+ mounted() {
1209
+ this.changeRadioValue(this.cron.month);
1210
+ }
1211
+ };
1212
+ var Ae = function() {
1213
+ var e = this, t = e._self._c;
1214
+ return t("div", [t("el-radio-group", { on: { change: e.onChange }, model: { value: e.radioValue, callback: function(s) {
1215
+ e.radioValue = s;
1216
+ }, expression: "radioValue" } }, [t("el-radio", { style: e.radioStyle, attrs: { label: "1" } }, [e._v(" " + e._s(e.$i18nt("gd.task.month", "\u6708")) + "\uFF0C" + e._s(e.$i18nt("gd.task.wildcard", "\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]")) + " ")]), t("el-radio", { style: e.radioStyle, attrs: { label: "2" } }, [e._v(" " + e._s(e.$i18nt("gd.task.month", "\u6708")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 11 }, on: { input: function(s) {
1217
+ return e.onChange(2);
1218
+ } }, model: { value: e.cycle01, callback: function(s) {
1219
+ e.cycle01 = s;
1220
+ }, expression: "cycle01" } }), e._v(" - "), t("el-input", { attrs: { type: "number", min: e.cycle01 + 1, max: 12 }, on: { input: function(s) {
1221
+ return e.onChange(2);
1222
+ } }, model: { value: e.cycle02, callback: function(s) {
1223
+ e.cycle02 = s;
1224
+ }, expression: "cycle02" } }), e._v(" " + e._s(e.$i18nt("gd.task.months", "\u6708")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "3" } }, [e._v(" " + e._s(e.$i18nt("gd.task.follow", "\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 11 }, on: { input: function(s) {
1225
+ return e.onChange(3);
1226
+ } }, model: { value: e.average01, callback: function(s) {
1227
+ e.average01 = s;
1228
+ }, expression: "average01" } }), e._v(" " + e._s(e.$i18nt("gd.task.monthStart", "\u6708\u5F00\u59CB\uFF0C\u6BCF")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 12 - e.average01 }, on: { input: function(s) {
1229
+ return e.onChange(3);
1230
+ } }, model: { value: e.average02, callback: function(s) {
1231
+ e.average02 = s;
1232
+ }, expression: "average02" } }), e._v(" " + e._s(e.$i18nt("gd.task.months", "\u6708")) + "\uFF0C" + e._s(e.$i18nt("gd.task.executeOnce", "\u6267\u884C\u4E00\u6B21")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "4" } }, [e._v(" " + e._s(e.$i18nt("gd.task.specify", "\u6307\u5B9A")) + " "), t("el-select", { attrs: { multiple: !0, clearable: !0, "collapse-tags": !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onSearch }, model: { value: e.checkboxList, callback: function(s) {
1233
+ e.checkboxList = s;
1234
+ }, expression: "checkboxList" } }, e._l(e.monthList, function(s) {
1235
+ return t("el-option", { key: s.key, attrs: { value: s.key, label: s.value } }, [e._v(" " + e._s(s.value) + " ")]);
1236
+ }), 1)], 1)], 1)], 1);
1237
+ }, Ne = [], je = /* @__PURE__ */ g(
1238
+ Re,
1239
+ Ae,
1240
+ Ne,
1241
+ !1,
1242
+ null,
1243
+ "b99bc840",
1244
+ null,
1245
+ null
1246
+ );
1247
+ const Be = je.exports;
1248
+ const Fe = [
1249
+ { key: 1, value: "\u661F\u671F\u65E5", keyI18n: "gd.task.sunday" },
1250
+ { key: 2, value: "\u661F\u671F\u4E00", keyI18n: "gd.task.monday" },
1251
+ { key: 3, value: "\u661F\u671F\u4E8C", keyI18n: "gd.task.tuesday" },
1252
+ { key: 4, value: "\u661F\u671F\u4E09", keyI18n: "gd.task.wednesday" },
1253
+ { key: 5, value: "\u661F\u671F\u56DB", keyI18n: "gd.task.thursday" },
1254
+ { key: 6, value: "\u661F\u671F\u4E94", keyI18n: "gd.task.friday" },
1255
+ { key: 7, value: "\u661F\u671F\u516D", keyI18n: "gd.task.saturday" }
1256
+ ], Je = {
1257
+ props: {
1258
+ cron: {
1259
+ type: Object,
1260
+ default: {
1261
+ second: "*",
1262
+ min: "*",
1263
+ hour: "*",
1264
+ day: "*",
1265
+ month: "*",
1266
+ week: "?",
1267
+ year: ""
1268
+ }
1269
+ },
1270
+ check: {
1271
+ type: Function,
1272
+ default: () => {
1273
+ }
1274
+ }
1275
+ },
1276
+ data() {
1277
+ return {
1278
+ labelCol: {
1279
+ xs: {
1280
+ span: 24
1281
+ },
1282
+ sm: {
1283
+ span: 6
1284
+ }
1285
+ },
1286
+ wrapperCol: {
1287
+ xs: {
1288
+ span: 24
1289
+ },
1290
+ sm: {
1291
+ span: 16
1292
+ }
1293
+ },
1294
+ radioStyle: {
1295
+ display: "block",
1296
+ height: "30px",
1297
+ lineHeight: "30px",
1298
+ marginBottom: "12px"
1299
+ },
1300
+ cycle01: 2,
1301
+ cycle02: 3,
1302
+ average01: 1,
1303
+ average02: 2,
1304
+ weekday: 2,
1305
+ checkboxList: [],
1306
+ radioValue: "2",
1307
+ checkCopy: [2],
1308
+ weekList: Fe
1309
+ };
1310
+ },
1311
+ computed: {
1312
+ weekdayTotal() {
1313
+ return this.check(this.weekday, 1, 7) + "L";
1314
+ },
1315
+ averageTotal() {
1316
+ let a = this.check(this.average01, 1, 4);
1317
+ return this.check(this.average02, 1, 7) + "#" + a;
1318
+ },
1319
+ cycleTotal() {
1320
+ let a = this.check(this.cycle01, 1, 6), e = this.check(this.cycle02, this.cycle01 + 1, 7);
1321
+ return a + "-" + e;
1322
+ }
1323
+ },
1324
+ watch: {
1325
+ "cron.week"(a, e) {
1326
+ this.changeRadioValue(a);
1327
+ }
1328
+ },
1329
+ methods: {
1330
+ onSearch(a, e) {
1331
+ this.$nextTick(() => {
1332
+ setTimeout(() => {
1333
+ this.onChange(e);
1334
+ }, 0);
1335
+ });
1336
+ },
1337
+ onChange(a) {
1338
+ switch (this.radioValue === 2 && this.cron.day === "?" && this.$emit("update", "day", "*", "week"), this.radioValue !== 2 && this.cron.day !== "?" && this.$emit("update", "day", "?", "week"), Number(a)) {
1339
+ case 1:
1340
+ this.$emit("update", "week", "*", "week");
1341
+ break;
1342
+ case 2:
1343
+ this.$emit("update", "week", "?", "week");
1344
+ break;
1345
+ case 3:
1346
+ this.$emit("update", "week", this.cycleTotal, "week");
1347
+ break;
1348
+ case 4:
1349
+ this.$emit("update", "week", this.averageTotal, "week");
1350
+ break;
1351
+ case 5:
1352
+ this.$emit("update", "week", this.weekdayTotal, "week");
1353
+ break;
1354
+ case 6:
1355
+ this.checkboxList.length === 0 ? this.checkboxList.push(this.checkCopy[0]) : this.checkCopy = [...this.checkboxList], this.$emit("update", "week", this.checkboxList.join(","), "week");
1356
+ break;
1357
+ }
1358
+ },
1359
+ changeRadioValue(a) {
1360
+ if (a === "*")
1361
+ this.radioValue = "1";
1362
+ else if (a === "?")
1363
+ this.radioValue = "2";
1364
+ else if (a.indexOf("-") > -1) {
1365
+ const e = a.split("-");
1366
+ this.cycle01 = Number(e[0]), this.cycle02 = Number(e[1]), this.radioValue = "3";
1367
+ } else if (a.indexOf("#") > -1) {
1368
+ const e = a.split("#");
1369
+ this.average01 = Number(e[0]), this.average02 = Number(e[1]), this.radioValue = "4";
1370
+ } else if (a.indexOf("L") > -1) {
1371
+ const e = a.split("L");
1372
+ this.weekday = Number(e[0]), this.radioValue = "5";
1373
+ } else
1374
+ this.checkboxList = [
1375
+ ...new Set(a.split(",").map((e) => Number(e)))
1376
+ ], this.radioValue = "6";
1377
+ }
1378
+ },
1379
+ mounted() {
1380
+ this.changeRadioValue(this.cron.week);
1381
+ }
1382
+ };
1383
+ var Ie = function() {
1384
+ var e = this, t = e._self._c;
1385
+ return t("div", [t("el-radio-group", { on: { change: e.onChange }, model: { value: e.radioValue, callback: function(s) {
1386
+ e.radioValue = s;
1387
+ }, expression: "radioValue" } }, [t("el-radio", { style: e.radioStyle, attrs: { label: "1" } }, [e._v(" " + e._s(e.$i18nt("gd.task.week", "\u5468")) + "\uFF0C" + e._s(e.$i18nt("gd.task.wildcardL", "\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * ? / L #]")) + " ")]), t("el-radio", { style: e.radioStyle, attrs: { label: "2" } }, [e._v(e._s(e.$i18nt("gd.task.notSpecified", "\u4E0D\u6307\u5B9A")))]), t("el-radio", { style: e.radioStyle, attrs: { label: "3" } }, [e._v(" " + e._s(e.$i18nt("gd.task.periodFrom", "\u5468\u671F\u4ECE")) + " "), t("el-select", { attrs: { clearable: !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(s) {
1388
+ return e.onSearch(s, 3);
1389
+ } }, model: { value: e.cycle01, callback: function(s) {
1390
+ e.cycle01 = s;
1391
+ }, expression: "cycle01" } }, e._l(e.weekList, function(s, r) {
1392
+ return t("el-option", { key: r, attrs: { value: s.key, label: s.value, disabled: s.key === 7 } }, [e._v(" " + e._s(s.keyI18n ? e.$i18nt(s.keyI18n, 0, s.value) : s.value) + " ")]);
1393
+ }), 1), e._v(" - "), t("el-select", { attrs: { clearable: !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(s) {
1394
+ return e.onSearch(s, 3);
1395
+ } }, model: { value: e.cycle02, callback: function(s) {
1396
+ e.cycle02 = s;
1397
+ }, expression: "cycle02" } }, e._l(e.weekList, function(s, r) {
1398
+ return t("el-option", { key: r, attrs: { value: s.key, label: s.value, disabled: s.key <= e.cycle01 } }, [e._v(" " + e._s(s.keyI18n ? e.$i18nt(s.keyI18n, 0, s.value) : s.value) + " ")]);
1399
+ }), 1)], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "4" } }, [e._v(" " + e._s(e.$i18nt("gd.task.only", "\u7B2C")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 4 }, on: { input: function(s) {
1400
+ return e.onChange(4);
1401
+ } }, model: { value: e.average01, callback: function(s) {
1402
+ e.average01 = s;
1403
+ }, expression: "average01" } }), e._v(" " + e._s(e.$i18nt("gd.task.weekIs", "\u5468\u7684")) + " "), t("el-select", { attrs: { clearable: !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(s) {
1404
+ return e.onSearch(s, 4);
1405
+ } }, model: { value: e.average02, callback: function(s) {
1406
+ e.average02 = s;
1407
+ }, expression: "average02" } }, e._l(e.weekList, function(s, r) {
1408
+ return t("el-option", { key: r, attrs: { value: s.key, label: s.value, disabled: s.key <= e.cycle01 } }, [e._v(" " + e._s(s.keyI18n ? e.$i18nt(s.keyI18n, 0, s.value) : s.value) + " ")]);
1409
+ }), 1)], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "5" } }, [e._v(" " + e._s(e.$i18nt("gd.task.lasMonth", "\u672C\u6708\u6700\u540E\u4E00\u4E2A")) + " "), t("el-select", { attrs: { clearable: !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(s) {
1410
+ return e.onSearch(s, 5);
1411
+ } }, model: { value: e.weekday, callback: function(s) {
1412
+ e.weekday = s;
1413
+ }, expression: "weekday" } }, e._l(e.weekList, function(s, r) {
1414
+ return t("el-option", { key: r, attrs: { value: s.key, label: s.value } }, [e._v(" " + e._s(s.keyI18n ? e.$i18nt(s.keyI18n, 0, s.value) : s.value) + " ")]);
1415
+ }), 1)], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "6" } }, [e._v(" " + e._s(e.$i18nt("gd.task.specify", "\u6307\u5B9A")) + " "), t("el-select", { attrs: { multiple: !0, clearable: !0, "collapse-tags": !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: function(s) {
1416
+ return e.onSearch(s, 6);
1417
+ } }, model: { value: e.checkboxList, callback: function(s) {
1418
+ e.checkboxList = s;
1419
+ }, expression: "checkboxList" } }, e._l(e.weekList, function(s, r) {
1420
+ return t("el-option", { key: r, attrs: { value: s.key, label: s.value } }, [e._v(" " + e._s(s.keyI18n ? e.$i18nt(s.keyI18n, 0, s.value) : s.value) + " ")]);
1421
+ }), 1)], 1)], 1)], 1);
1422
+ }, Ke = [], Me = /* @__PURE__ */ g(
1423
+ Je,
1424
+ Ie,
1425
+ Ke,
1426
+ !1,
1427
+ null,
1428
+ "02c7639b",
1429
+ null,
1430
+ null
1431
+ );
1432
+ const Pe = Me.exports;
1433
+ const Ee = {
1434
+ props: {
1435
+ cron: {
1436
+ type: Object,
1437
+ default: {
1438
+ second: "*",
1439
+ min: "*",
1440
+ hour: "*",
1441
+ day: "*",
1442
+ month: "*",
1443
+ week: "?",
1444
+ year: ""
1445
+ }
1446
+ },
1447
+ check: {
1448
+ type: Function,
1449
+ default: () => {
1450
+ }
1451
+ }
1452
+ },
1453
+ data() {
1454
+ return {
1455
+ labelCol: {
1456
+ xs: {
1457
+ span: 24
1458
+ },
1459
+ sm: {
1460
+ span: 6
1461
+ }
1462
+ },
1463
+ wrapperCol: {
1464
+ xs: {
1465
+ span: 24
1466
+ },
1467
+ sm: {
1468
+ span: 16
1469
+ }
1470
+ },
1471
+ radioStyle: {
1472
+ display: "block",
1473
+ height: "30px",
1474
+ lineHeight: "30px",
1475
+ marginBottom: "12px"
1476
+ },
1477
+ cycle01: 0,
1478
+ cycle02: 0,
1479
+ average01: 0,
1480
+ average02: 1,
1481
+ checkboxList: [],
1482
+ radioValue: "1",
1483
+ checkCopy: [],
1484
+ fullYear: 0,
1485
+ maxFullYear: 0
1486
+ };
1487
+ },
1488
+ computed: {
1489
+ averageTotal() {
1490
+ let a = this.check(
1491
+ this.average01,
1492
+ this.fullYear,
1493
+ this.maxFullYear - 1
1494
+ ), e = this.check(this.average02, 1, 10);
1495
+ return a + "/" + e;
1496
+ },
1497
+ cycleTotal() {
1498
+ let a = this.check(
1499
+ this.cycle01,
1500
+ this.fullYear,
1501
+ this.maxFullYear - 1
1502
+ ), e = this.check(
1503
+ this.cycle02,
1504
+ this.cycle01 + 1,
1505
+ this.maxFullYear
1506
+ );
1507
+ return a + "-" + e;
1508
+ }
1509
+ },
1510
+ watch: {
1511
+ "cron.year"(a, e) {
1512
+ this.changeRadioValue(a);
1513
+ }
1514
+ },
1515
+ methods: {
1516
+ onSearch(a) {
1517
+ this.$nextTick(() => {
1518
+ setTimeout(() => {
1519
+ this.onChange(4);
1520
+ }, 0);
1521
+ });
1522
+ },
1523
+ onChange(a) {
1524
+ switch (Number(a)) {
1525
+ case 1:
1526
+ this.$emit("update", "year", "", "year");
1527
+ break;
1528
+ case 2:
1529
+ this.$emit("update", "year", "*", "year");
1530
+ break;
1531
+ case 3:
1532
+ this.$emit("update", "year", this.cycleTotal, "year");
1533
+ break;
1534
+ case 4:
1535
+ this.$emit("update", "year", this.averageTotal, "year");
1536
+ break;
1537
+ case 5:
1538
+ this.checkboxList.length === 0 ? this.checkboxList.push(this.checkCopy[0]) : this.checkCopy = [...this.checkboxList], this.$emit("update", "year", this.checkboxList.join(","), "year");
1539
+ break;
1540
+ }
1541
+ },
1542
+ changeRadioValue(a) {
1543
+ if (a === "")
1544
+ this.radioValue = "1";
1545
+ else if (a === "*")
1546
+ this.radioValue = "2";
1547
+ else if (a.indexOf("-") > -1) {
1548
+ const e = a.split("-");
1549
+ this.cycle01 = Number(e[0]), this.cycle02 = Number(e[1]), this.radioValue = "3";
1550
+ } else if (a.indexOf("/") > -1) {
1551
+ const e = a.split("/");
1552
+ this.average01 = Number(e[0]), this.average02 = Number(e[1]), this.radioValue = "4";
1553
+ } else
1554
+ this.checkboxList = [
1555
+ ...new Set(a.split(",").map((e) => Number(e)))
1556
+ ], this.radioValue = "5";
1557
+ }
1558
+ },
1559
+ created() {
1560
+ let a = Number(new Date().getFullYear());
1561
+ this.fullYear = a, this.maxFullYear = a + 10, this.cycle01 = a, this.cycle02 = this.cycle01 + 1, this.average01 = a, this.checkCopy = [a];
1562
+ },
1563
+ mounted() {
1564
+ this.changeRadioValue(this.cron.year);
1565
+ }
1566
+ };
1567
+ var ze = function() {
1568
+ var e = this, t = e._self._c;
1569
+ return t("div", [t("el-radio-group", { on: { change: e.onChange }, model: { value: e.radioValue, callback: function(s) {
1570
+ e.radioValue = s;
1571
+ }, expression: "radioValue" } }, [t("el-radio", { style: e.radioStyle, attrs: { label: "1" } }, [e._v(e._s(e.$i18nt("gd.task.notFilled", "\u4E0D\u586B\uFF0C\u5141\u8BB8\u7684\u901A\u914D\u7B26[, - * /]")))]), t("el-radio", { style: e.radioStyle, attrs: { label: "2" } }, [e._v(e._s(e.$i18nt("gd.task.annually", "\u6BCF\u5E74")))]), t("el-radio", { style: e.radioStyle, attrs: { label: "3" } }, [e._v(" " + e._s(e.$i18nt("gd.task.periodFrom", "\u5468\u671F\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: e.fullYear, max: e.maxFullYear - 1 }, on: { input: function(s) {
1572
+ return e.onChange(3);
1573
+ } }, model: { value: e.cycle01, callback: function(s) {
1574
+ e.cycle01 = s;
1575
+ }, expression: "cycle01" } }), e._v(" - "), t("el-input", { attrs: { type: "number", min: e.cycle01 + 1, max: e.maxFullYear }, on: { input: function(s) {
1576
+ return e.onChange(2);
1577
+ } }, model: { value: e.cycle02, callback: function(s) {
1578
+ e.cycle02 = s;
1579
+ }, expression: "cycle02" } })], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "4" } }, [e._v(" " + e._s(e.$i18nt("gd.task.follow", "\u4ECE")) + " "), t("el-input", { attrs: { type: "number", min: e.fullYear, max: e.maxFullYear - 1 }, on: { input: function(s) {
1580
+ return e.onChange(4);
1581
+ } }, model: { value: e.average01, callback: function(s) {
1582
+ e.average01 = s;
1583
+ }, expression: "average01" } }), e._v(" " + e._s(e.$i18nt("gd.task.yearStart", "\u5E74\u5F00\u59CB\uFF0C\u6BCF")) + " "), t("el-input", { attrs: { type: "number", min: 1, max: 10 }, on: { input: function(s) {
1584
+ return e.onChange(4);
1585
+ } }, model: { value: e.average02, callback: function(s) {
1586
+ e.average02 = s;
1587
+ }, expression: "average02" } }), e._v(" " + e._s(e.$i18nt("gd.task.years", "\u5E74")) + "\uFF0C" + e._s(e.$i18nt("gd.task.executeOnce", "\u6267\u884C\u4E00\u6B21")) + " ")], 1), t("el-radio", { style: e.radioStyle, attrs: { label: "5" } }, [e._v(" " + e._s(e.$i18nt("gd.task.specify", "\u6307\u5B9A")) + " "), t("el-select", { attrs: { multiple: !0, clearable: !0, "collapse-tags": !0, placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, on: { change: e.onSearch }, model: { value: e.checkboxList, callback: function(s) {
1588
+ e.checkboxList = s;
1589
+ }, expression: "checkboxList" } }, e._l(10, function(s, r) {
1590
+ return t("el-option", { key: s, attrs: { value: r - 1 + e.fullYear } }, [e._v(" " + e._s(r - 1 + e.fullYear) + " ")]);
1591
+ }), 1)], 1)], 1)], 1);
1592
+ }, qe = [], He = /* @__PURE__ */ g(
1593
+ Ee,
1594
+ ze,
1595
+ qe,
1596
+ !1,
1597
+ null,
1598
+ "46839b85",
1599
+ null,
1600
+ null
1601
+ );
1602
+ const Ye = He.exports;
1603
+ const We = {
1604
+ props: {
1605
+ ex: {
1606
+ type: String,
1607
+ default: ""
1608
+ }
1609
+ },
1610
+ data() {
1611
+ return {
1612
+ dayRule: "",
1613
+ dayRuleSup: "",
1614
+ dateArr: [],
1615
+ resultList: [],
1616
+ isShow: !1
1617
+ };
1618
+ },
1619
+ watch: {
1620
+ ex(a, e) {
1621
+ this.expressionChange();
1622
+ }
1623
+ },
1624
+ methods: {
1625
+ expressionChange() {
1626
+ this.isShow = !1;
1627
+ let a = this.ex.split(" "), e = 0, t = [], s = new Date(), r = s.getFullYear(), i = s.getMonth() + 1, o = s.getDate(), l = s.getHours(), d = s.getMinutes(), k = s.getSeconds();
1628
+ this.getSecondArr(a[0]), this.getMinArr(a[1]), this.getHourArr(a[2]), this.getDayArr(a[3]), this.getMonthArr(a[4]), this.getWeekArr(a[5]), this.getYearArr(a[6], r);
1629
+ let _ = this.dateArr[0], b = this.dateArr[1], f = this.dateArr[2], y = this.dateArr[3], p = this.dateArr[4], L = this.dateArr[5], j = this.getIndex(_, k), O = this.getIndex(b, d), V = this.getIndex(f, l), R = this.getIndex(y, o), A = this.getIndex(p, i), K = this.getIndex(L, r);
1630
+ const N = function() {
1631
+ j = 0, k = _[j];
1632
+ }, D = function() {
1633
+ O = 0, d = b[O], N();
1634
+ }, S = function() {
1635
+ V = 0, l = f[V], D();
1636
+ }, v = function() {
1637
+ R = 0, o = y[R], S();
1638
+ }, w = function() {
1639
+ A = 0, i = p[A], v();
1640
+ };
1641
+ r !== L[K] && w(), i !== p[A] && v(), o !== y[R] && S(), l !== f[V] && D(), d !== b[O] && N();
1642
+ e:
1643
+ for (let B = K; B < L.length; B++) {
1644
+ let m = L[B];
1645
+ if (i > p[p.length - 1]) {
1646
+ w();
1647
+ continue;
1648
+ }
1649
+ t:
1650
+ for (let $ = A; $ < p.length; $++) {
1651
+ let u = p[$];
1652
+ if (u = u < 10 ? "0" + u : u, o > y[y.length - 1]) {
1653
+ if (v(), $ === p.length - 1) {
1654
+ w();
1655
+ continue e;
1656
+ }
1657
+ continue;
1658
+ }
1659
+ a:
1660
+ for (let x = R; x < y.length; x++) {
1661
+ let n = y[x], h = n < 10 ? "0" + n : n;
1662
+ if (l > f[f.length - 1]) {
1663
+ if (S(), x === y.length - 1) {
1664
+ if (v(), $ === p.length - 1) {
1665
+ w();
1666
+ continue e;
1667
+ }
1668
+ continue t;
1669
+ }
1670
+ continue;
1671
+ }
1672
+ if (this.checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0 && this.dayRule !== "workDay" && this.dayRule !== "lastWeek" && this.dayRule !== "lastDay") {
1673
+ v();
1674
+ continue t;
1675
+ }
1676
+ if (this.dayRule === "lastDay") {
1677
+ if (this.checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0)
1678
+ for (; n > 0 && this.checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0; )
1679
+ n--, h = n < 10 ? "0" + n : n;
1680
+ } else if (this.dayRule === "workDay") {
1681
+ if (this.checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0)
1682
+ for (; n > 0 && this.checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0; )
1683
+ n--, h = n < 10 ? "0" + n : n;
1684
+ let c = this.formatDate(
1685
+ new Date(m + "-" + u + "-" + h + " 00:00:00"),
1686
+ "week"
1687
+ );
1688
+ c === 1 ? (n++, h = n < 10 ? "0" + n : n, this.checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0 && (n -= 3)) : c === 7 && (this.dayRuleSup !== 1 ? n-- : n += 2);
1689
+ } else if (this.dayRule === "weekDay") {
1690
+ let c = this.formatDate(
1691
+ new Date(m + "-" + u + "-" + n + " 00:00:00"),
1692
+ "week"
1693
+ );
1694
+ if (this.dayRuleSup.indexOf(c) < 0) {
1695
+ if (x === y.length - 1) {
1696
+ if (v(), $ === p.length - 1) {
1697
+ w();
1698
+ continue e;
1699
+ }
1700
+ continue t;
1701
+ }
1702
+ continue;
1703
+ }
1704
+ } else if (this.dayRule === "assWeek") {
1705
+ let c = formatDate(
1706
+ new Date(m + "-" + u + "-" + n + " 00:00:00"),
1707
+ "week"
1708
+ );
1709
+ this.dayRuleSup[1] >= c ? n = (this.dayRuleSup[0] - 1) * 7 + this.dayRuleSup[1] - c + 1 : n = this.dayRuleSup[0] * 7 + this.dayRuleSup[1] - c + 1;
1710
+ } else if (this.dayRule === "lastWeek") {
1711
+ if (checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0)
1712
+ for (; n > 0 && checkDate(m + "-" + u + "-" + h + " 00:00:00") !== !0; )
1713
+ n--, h = n < 10 ? "0" + n : n;
1714
+ let c = formatDate(
1715
+ new Date(m + "-" + u + "-" + h + " 00:00:00"),
1716
+ "week"
1717
+ );
1718
+ this.dayRuleSup < c ? n -= c - this.dayRuleSup : this.dayRuleSup > c && (n -= 7 - (this.dayRuleSup - c));
1719
+ }
1720
+ n = n < 10 ? "0" + n : n;
1721
+ s:
1722
+ for (let c = V; c < f.length; c++) {
1723
+ let M = f[c] < 10 ? "0" + f[c] : f[c];
1724
+ if (d > b[b.length - 1]) {
1725
+ if (D(), c === f.length - 1) {
1726
+ if (S(), x === y.length - 1) {
1727
+ if (v(), $ === p.length - 1) {
1728
+ w();
1729
+ continue e;
1730
+ }
1731
+ continue t;
1732
+ }
1733
+ continue a;
1734
+ }
1735
+ continue;
1736
+ }
1737
+ r:
1738
+ for (let T = O; T < b.length; T++) {
1739
+ let P = b[T] < 10 ? "0" + b[T] : b[T];
1740
+ if (k > _[_.length - 1]) {
1741
+ if (N(), T === b.length - 1) {
1742
+ if (D(), c === f.length - 1) {
1743
+ if (S(), x === y.length - 1) {
1744
+ if (v(), $ === p.length - 1) {
1745
+ w();
1746
+ continue e;
1747
+ }
1748
+ continue t;
1749
+ }
1750
+ continue a;
1751
+ }
1752
+ continue s;
1753
+ }
1754
+ continue;
1755
+ }
1756
+ for (let C = j; C <= _.length - 1; C++) {
1757
+ let E = _[C] < 10 ? "0" + _[C] : _[C];
1758
+ if (u !== "00" && n !== "00" && (t.push(
1759
+ m + "-" + u + "-" + n + " " + M + ":" + P + ":" + E
1760
+ ), e++), e === 5)
1761
+ break e;
1762
+ if (C === _.length - 1) {
1763
+ if (N(), T === b.length - 1) {
1764
+ if (D(), c === f.length - 1) {
1765
+ if (S(), x === y.length - 1) {
1766
+ if (v(), $ === p.length - 1) {
1767
+ w();
1768
+ continue e;
1769
+ }
1770
+ continue t;
1771
+ }
1772
+ continue a;
1773
+ }
1774
+ continue s;
1775
+ }
1776
+ continue r;
1777
+ }
1778
+ }
1779
+ }
1780
+ }
1781
+ }
1782
+ }
1783
+ }
1784
+ t.length === 0 ? this.resultList = ["\u6CA1\u6709\u8FBE\u5230\u6761\u4EF6\u7684\u7ED3\u679C\uFF01"] : this.resultList = t, this.isShow = !0;
1785
+ },
1786
+ getIndex(a, e) {
1787
+ if (e <= a[0] || e > a[a.length - 1])
1788
+ return 0;
1789
+ for (let t = 0; t < a.length - 1; t++)
1790
+ if (e > a[t] && e <= a[t + 1])
1791
+ return t + 1;
1792
+ },
1793
+ getYearArr(a, e) {
1794
+ this.dateArr[5] = this.getOrderArr(e, e + 100), a !== void 0 && (a.indexOf("-") >= 0 ? this.dateArr[5] = this.getCycleArr(a, e + 100, !1) : a.indexOf("/") >= 0 ? this.dateArr[5] = this.getAverageArr(a, e + 100) : a !== "*" && (this.dateArr[5] = this.getAssignArr(a)));
1795
+ },
1796
+ getMonthArr(a) {
1797
+ this.dateArr[4] = this.getOrderArr(1, 12), a.indexOf("-") >= 0 ? this.dateArr[4] = this.getCycleArr(a, 12, !1) : a.indexOf("/") >= 0 ? this.dateArr[4] = this.getAverageArr(a, 12) : a !== "*" && (this.dateArr[4] = this.getAssignArr(a));
1798
+ },
1799
+ getWeekArr(a) {
1800
+ if (this.dayRule === "" && this.dayRuleSup === "")
1801
+ if (a.indexOf("-") >= 0)
1802
+ this.dayRule = "weekDay", this.dayRuleSup = this.getCycleArr(a, 7, !1);
1803
+ else if (a.indexOf("#") >= 0) {
1804
+ this.dayRule = "assWeek";
1805
+ let e = a.match(/[0-9]{1}/g);
1806
+ this.dayRuleSup = [Number(e[1]), Number(e[0])], this.dateArr[3] = [1], this.dayRuleSup[1] === 7 && (this.dayRuleSup[1] = 0);
1807
+ } else
1808
+ a.indexOf("L") >= 0 ? (this.dayRule = "lastWeek", this.dayRuleSup = Number(a.match(/[0-9]{1,2}/g)[0]), this.dateArr[3] = [31], this.dayRuleSup === 7 && (this.dayRuleSup = 0)) : a !== "*" && a !== "?" && (this.dayRule = "weekDay", this.dayRuleSup = this.getAssignArr(a));
1809
+ },
1810
+ getDayArr(a) {
1811
+ this.dateArr[3] = this.getOrderArr(1, 31), this.dayRule = "", this.dayRuleSup = "", a.indexOf("-") >= 0 ? (this.dateArr[3] = this.getCycleArr(a, 31, !1), this.dayRuleSup = "null") : a.indexOf("/") >= 0 ? (this.dateArr[3] = this.getAverageArr(a, 31), this.dayRuleSup = "null") : a.indexOf("W") >= 0 ? (this.dayRule = "workDay", this.dayRuleSup = Number(a.match(/[0-9]{1,2}/g)[0]), this.dateArr[3] = [dayRuleSup.value]) : a.indexOf("L") >= 0 ? (this.dayRule = "lastDay", this.dayRuleSup = "null", this.dateArr[3] = [31]) : a !== "*" && a !== "?" ? (this.dateArr[3] = this.getAssignArr(a), this.dayRuleSup = "null") : a === "*" && (this.dayRuleSup = "null");
1812
+ },
1813
+ getHourArr(a) {
1814
+ this.dateArr[2] = this.getOrderArr(0, 23), a.indexOf("-") >= 0 ? this.dateArr[2] = this.getCycleArr(a, 24, !0) : a.indexOf("/") >= 0 ? this.dateArr[2] = this.getAverageArr(a, 23) : a !== "*" && (this.dateArr[2] = this.getAssignArr(a));
1815
+ },
1816
+ getMinArr(a) {
1817
+ this.dateArr[1] = this.getOrderArr(0, 59), a.indexOf("-") >= 0 ? this.dateArr[1] = this.getCycleArr(a, 60, !0) : a.indexOf("/") >= 0 ? this.dateArr[1] = this.getAverageArr(a, 59) : a !== "*" && (this.dateArr[1] = this.getAssignArr(a));
1818
+ },
1819
+ getSecondArr(a) {
1820
+ this.dateArr[0] = this.getOrderArr(0, 59), a.indexOf("-") >= 0 ? this.dateArr[0] = this.getCycleArr(a, 60, !0) : a.indexOf("/") >= 0 ? this.dateArr[0] = this.getAverageArr(a, 59) : a !== "*" && (this.dateArr[0] = this.getAssignArr(a));
1821
+ },
1822
+ getOrderArr(a, e) {
1823
+ let t = [];
1824
+ for (let s = a; s <= e; s++)
1825
+ t.push(s);
1826
+ return t;
1827
+ },
1828
+ getAssignArr(a) {
1829
+ let e = [], t = a.split(",");
1830
+ for (let s = 0; s < t.length; s++)
1831
+ e[s] = Number(t[s]);
1832
+ return e.sort(this.compare), e;
1833
+ },
1834
+ getAverageArr(a, e) {
1835
+ let t = [], s = a.split("/"), r = Number(s[0]), i = Number(s[1]);
1836
+ for (; r <= e; )
1837
+ t.push(r), r += i;
1838
+ return t;
1839
+ },
1840
+ getCycleArr(a, e, t) {
1841
+ let s = [], r = a.split("-"), i = Number(r[0]), o = Number(r[1]);
1842
+ i > o && (o += e);
1843
+ for (let l = i; l <= o; l++) {
1844
+ let d = 0;
1845
+ t === !1 && l % e === 0 && (d = e), s.push(Math.round(l % e + d));
1846
+ }
1847
+ return s.sort(this.compare), s;
1848
+ },
1849
+ compare(a, e) {
1850
+ return e - a > 0 ? -1 : 1;
1851
+ },
1852
+ formatDate(a, e) {
1853
+ let t = typeof a == "number" ? new Date(a) : a, s = t.getFullYear(), r = t.getMonth() + 1, i = t.getDate(), o = t.getHours(), l = t.getMinutes(), d = t.getSeconds(), k = t.getDay();
1854
+ if (e === void 0)
1855
+ return s + "-" + (r < 10 ? "0" + r : r) + "-" + (i < 10 ? "0" + i : i) + " " + (o < 10 ? "0" + o : o) + ":" + (l < 10 ? "0" + l : l) + ":" + (d < 10 ? "0" + d : d);
1856
+ if (e === "week")
1857
+ return k + 1;
1858
+ },
1859
+ checkDate(a) {
1860
+ let e = new Date(a), t = this.formatDate(e);
1861
+ return a === t;
1862
+ }
1863
+ },
1864
+ mounted() {
1865
+ this.expressionChange();
1866
+ }
1867
+ };
1868
+ var Ge = function() {
1869
+ var e = this, t = e._self._c;
1870
+ return t("div", [t("ul", { staticClass: "popup-result-scroll" }, [e.isShow ? e._l(e.resultList, function(s) {
1871
+ return t("li", { key: s }, [e._v(e._s(s))]);
1872
+ }) : t("li", [e._v(e._s(e.$i18nt("gd.task.resultsCount", "\u8BA1\u7B97\u7ED3\u679C\u4E2D...")))])], 2)]);
1873
+ }, Ue = [], Qe = /* @__PURE__ */ g(
1874
+ We,
1875
+ Ge,
1876
+ Ue,
1877
+ !1,
1878
+ null,
1879
+ "6061b3b7",
1880
+ null,
1881
+ null
1882
+ );
1883
+ const Xe = Qe.exports;
1884
+ const Ze = {
1885
+ name: "CronTab",
1886
+ components: { result: Xe, min: _e, second: me, hour: Te, day: Oe, month: Be, week: Pe, year: Ye },
1887
+ data() {
1888
+ return {
1889
+ visible: !1,
1890
+ fullscreen: !1,
1891
+ sysViewButtons: [
1892
+ {
1893
+ displayName: "\u91CD\u7F6E",
1894
+ functionName: "clearCron",
1895
+ show: !0,
1896
+ keyI18n: "gd.btn.reset",
1897
+ icon: "el-icon-refresh-left",
1898
+ btnType: "danger"
1899
+ },
1900
+ {
1901
+ displayName: "\u786E\u5B9A",
1902
+ functionName: "handleSubmit",
1903
+ show: !0,
1904
+ keyI18n: "gd.btn.confirm",
1905
+ icon: "el-icon-document-checked"
1906
+ }
1907
+ ],
1908
+ crontabValueObj: {
1909
+ second: "*",
1910
+ min: "*",
1911
+ hour: "*",
1912
+ day: "*",
1913
+ month: "*",
1914
+ week: "?",
1915
+ year: ""
1916
+ },
1917
+ confirmLoading: !1,
1918
+ formData: {},
1919
+ activeKey: "second",
1920
+ checkNumber: (a, e, t) => (a = Math.floor(a), a < e ? a = e : a > t && (a = t), a)
1921
+ };
1922
+ },
1923
+ computed: {
1924
+ style() {
1925
+ return "margin-left: 0px;margin-right: 0px;";
1926
+ },
1927
+ crontabValueString() {
1928
+ const a = this.crontabValueObj;
1929
+ return a.second + " " + a.min + " " + a.hour + " " + a.day + " " + a.month + " " + a.week + (a.year === "" ? "" : " " + a.year);
1930
+ }
1931
+ },
1932
+ methods: {
1933
+ updateCrontabValue(a, e) {
1934
+ this.crontabValueObj[a] = e;
1935
+ },
1936
+ init(a) {
1937
+ if (a.cronValue) {
1938
+ let e = a.cronValue.split(/\s+/);
1939
+ if (e.length >= 6) {
1940
+ let t = {
1941
+ second: e[0],
1942
+ min: e[1],
1943
+ hour: e[2],
1944
+ day: e[3],
1945
+ month: e[4],
1946
+ week: e[5],
1947
+ year: e[6] ? e[6] : ""
1948
+ };
1949
+ this.crontabValueObj = {
1950
+ ...t
1951
+ };
1952
+ }
1953
+ console.log(e, this.crontabValueObj);
1954
+ } else
1955
+ this.crontabValueObj = {
1956
+ second: "*",
1957
+ min: "*",
1958
+ hour: "*",
1959
+ day: "*",
1960
+ month: "*",
1961
+ week: "?",
1962
+ year: ""
1963
+ };
1964
+ this.visible = !0;
1965
+ },
1966
+ toggleFullscreen() {
1967
+ this.fullscreen = !this.fullscreen;
1968
+ },
1969
+ closed() {
1970
+ this.fullscreen = !1, this.visible = !1;
1971
+ },
1972
+ doEvent(a) {
1973
+ let e = a.item.functionName;
1974
+ this[e]();
1975
+ },
1976
+ clearCron() {
1977
+ this.crontabValueObj = {
1978
+ second: "*",
1979
+ min: "*",
1980
+ hour: "*",
1981
+ day: "*",
1982
+ month: "*",
1983
+ week: "?",
1984
+ year: ""
1985
+ };
1986
+ },
1987
+ handleSubmit() {
1988
+ let a = this.crontabValueObj, e = a.second + " " + a.min + " " + a.hour + " " + a.day + " " + a.month + " " + a.week + (a.year === "" ? "" : " " + a.year);
1989
+ this.$emit("fill", e), this.handleCancel();
1990
+ },
1991
+ handleCancel() {
1992
+ this.$refs.formRef.resetFields(), this.visible = !1;
1993
+ }
1994
+ }
1995
+ };
1996
+ var et = function() {
1997
+ var e = this, t = e._self._c;
1998
+ return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: "1100", center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, "show-close": !1, top: "80px" }, on: { "update:visible": function(s) {
1999
+ e.visible = s;
2000
+ }, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.task.cronExpressionBuilder", "Cron\u8868\u8FBE\u5F0F\u751F\u6210\u5668"), fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("el-form", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], ref: "formRef", attrs: { model: e.formData }, nativeOn: { submit: function(s) {
2001
+ s.preventDefault();
2002
+ } } }, [t("el-tabs", { attrs: { type: "card" }, model: { value: e.activeKey, callback: function(s) {
2003
+ e.activeKey = s;
2004
+ }, expression: "activeKey" } }, [t("el-tab-pane", { attrs: { name: "second", label: e.$i18nt("gd.task.second", "\u79D2") } }, [t("second", { ref: "second", attrs: { check: e.checkNumber, cron: e.crontabValueObj }, on: { update: e.updateCrontabValue } })], 1), t("el-tab-pane", { attrs: { name: "min", label: e.$i18nt("gd.task.min", "\u5206\u949F") } }, [t("min", { ref: "min", attrs: { check: e.checkNumber, cron: e.crontabValueObj }, on: { update: e.updateCrontabValue } })], 1), t("el-tab-pane", { attrs: { name: "hour", label: e.$i18nt("gd.task.hour", "\u5C0F\u65F6") } }, [t("hour", { ref: "hour", attrs: { check: e.checkNumber, cron: e.crontabValueObj }, on: { update: e.updateCrontabValue } })], 1), t("el-tab-pane", { attrs: { name: "day", label: e.$i18nt("gd.task.day", "\u65E5") } }, [t("day", { ref: "day", attrs: { check: e.checkNumber, cron: e.crontabValueObj }, on: { update: e.updateCrontabValue } })], 1), t("el-tab-pane", { attrs: { name: "month", label: e.$i18nt("gd.task.month", "\u6708") } }, [t("month", { ref: "month", attrs: { check: e.checkNumber, cron: e.crontabValueObj }, on: { update: e.updateCrontabValue } })], 1), t("el-tab-pane", { attrs: { name: "week", label: e.$i18nt("gd.task.week", "\u5468") } }, [t("week", { ref: "week", attrs: { check: e.checkNumber, cron: e.crontabValueObj }, on: { update: e.updateCrontabValue } })], 1), t("el-tab-pane", { attrs: { name: "year", label: e.$i18nt("gd.task.year", "\u5E74") } }, [t("year", { ref: "year", attrs: { check: e.checkNumber, cron: e.crontabValueObj }, on: { update: e.updateCrontabValue } })], 1)], 1), t("el-divider", [e._v(e._s(e.$i18nt("gd.task.timeExpression")))]), t("el-row", { style: e.style, attrs: { gutter: 24, justify: "space-between", type: "flex" } }, [t("el-col", { attrs: { md: 2, sm: 2 } }, [e._v(e._s(e.$i18nt("gd.task.second", "\u79D2")))]), t("el-col", { attrs: { md: 2, sm: 2 } }, [e._v(e._s(e.$i18nt("gd.task.min", "\u5206\u949F")))]), t("el-col", { attrs: { md: 2, sm: 2 } }, [e._v(e._s(e.$i18nt("gd.task.hour", "\u5C0F\u65F6")))]), t("el-col", { attrs: { md: 2, sm: 2 } }, [e._v(e._s(e.$i18nt("gd.task.day", "\u65E5")))]), t("el-col", { attrs: { md: 2, sm: 2 } }, [e._v(e._s(e.$i18nt("gd.task.month", "\u6708")))]), t("el-col", { attrs: { md: 2, sm: 2 } }, [e._v(e._s(e.$i18nt("gd.task.week", "\u5468")))]), t("el-col", { attrs: { md: 3, sm: 3 } }, [e._v(e._s(e.$i18nt("gd.task.year", "\u5E74")))]), t("el-col", { attrs: { md: 8, sm: 8 } }, [e._v(e._s(e.$i18nt("gd.task.cronExpression", "Cron\u8868\u8FBE\u5F0F")))])], 1), t("el-row", { staticClass: "rowd", style: e.style, attrs: { gutter: 24, justify: "space-between", type: "flex" } }, [t("el-col", { attrs: { md: 2, sm: 2 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueObj.second } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueObj.second))])])], 1), t("el-col", { attrs: { md: 2, sm: 2 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueObj.min } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueObj.min))])])], 1), t("el-col", { attrs: { md: 2, sm: 2 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueObj.hour } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueObj.hour))])])], 1), t("el-col", { attrs: { md: 2, sm: 2 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueObj.day } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueObj.day))])])], 1), t("el-col", { attrs: { md: 2, sm: 2 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueObj.month } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueObj.month))])])], 1), t("el-col", { attrs: { md: 2, sm: 2 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueObj.week } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueObj.week))])])], 1), t("el-col", { attrs: { md: 3, sm: 3 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueObj.year } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueObj.year))])])], 1), t("el-col", { attrs: { md: 8, sm: 8 } }, [t("el-tooltip", { attrs: { placement: "top", content: e.crontabValueString } }, [t("span", { staticClass: "line1" }, [e._v(e._s(e.crontabValueString))])])], 1)], 1), t("el-divider", [e._v(e._s(e.$i18nt("gd.task.lastRunsTime", "\u6700\u8FD15\u6B21\u8FD0\u884C\u65F6\u95F4")))]), t("result", { ref: "result", attrs: { ex: e.crontabValueString } })], 1)], 1)], 1);
2005
+ }, tt = [], at = /* @__PURE__ */ g(
2006
+ Ze,
2007
+ et,
2008
+ tt,
2009
+ !1,
2010
+ null,
2011
+ "4d300ed9",
2012
+ null,
2013
+ null
2014
+ );
2015
+ const st = at.exports;
2016
+ const rt = [
2017
+ {
2018
+ key: "@secondly",
2019
+ description: "\u6BCF\u79D2 .0000000",
2020
+ keyI18n: "gd.task.secondly"
2021
+ },
2022
+ {
2023
+ key: "@minutely",
2024
+ description: "\u6BCF\u5206\u949F 00",
2025
+ keyI18n: "gd.task.minutely"
2026
+ },
2027
+ {
2028
+ key: "@hourly",
2029
+ description: "\u6BCF\u5C0F\u65F6 00:00",
2030
+ keyI18n: "gd.task.hourly"
2031
+ },
2032
+ {
2033
+ key: "@daily",
2034
+ description: "\u6BCF\u5929 00:00:00",
2035
+ keyI18n: "gd.task.daily"
2036
+ },
2037
+ {
2038
+ key: "@monthly",
2039
+ description: "\u6BCF\u6708 1 \u53F7 00:00:00",
2040
+ keyI18n: "gd.task.monthlyM"
2041
+ },
2042
+ {
2043
+ key: "@weekly",
2044
+ description: "\u6BCF\u5468\u65E5 00:00:00",
2045
+ keyI18n: "gd.task.weekly"
2046
+ },
2047
+ {
2048
+ key: "@yearly",
2049
+ description: "\u6BCF\u5E74 1 \u6708 1 \u53F7 00:00:00",
2050
+ keyI18n: "gd.task.yearly"
2051
+ },
2052
+ {
2053
+ key: "@workday",
2054
+ description: "\u6BCF\u5468\u4E00\u81F3\u5468\u4E94 00:00:00",
2055
+ keyI18n: "gd.task.workday"
2056
+ }
2057
+ ], it = {
2058
+ data() {
2059
+ return {
2060
+ fullscreen: !1,
2061
+ width: "70%",
2062
+ confirmLoading: !1,
2063
+ visible: !1,
2064
+ title: "\u89E6\u53D1\u5668",
2065
+ sysViewButtons: [
2066
+ {
2067
+ displayName: "\u786E\u5B9A",
2068
+ functionName: "handleSubmit",
2069
+ show: !0,
2070
+ keyI18n: "gd.btn.confirm",
2071
+ icon: "el-icon-document-checked"
2072
+ }
2073
+ ],
2074
+ type: 1,
2075
+ triggerType: "Furion.Schedule.PeriodTrigger",
2076
+ formData: {},
2077
+ detail: {},
2078
+ macroData: rt
2079
+ };
2080
+ },
2081
+ components: { cronTab: st },
2082
+ computed: {
2083
+ endOptions() {
2084
+ let a = this.disabledEnd;
2085
+ return {
2086
+ disabledDate(e) {
2087
+ return a(e, "end");
2088
+ }
2089
+ };
2090
+ },
2091
+ startOptions() {
2092
+ let a = this.disabledEnd;
2093
+ return {
2094
+ disabledDate(e) {
2095
+ return a(e);
2096
+ }
2097
+ };
2098
+ },
2099
+ requiredCron() {
2100
+ return this.triggerType != "Furion.Schedule.PeriodTrigger";
2101
+ },
2102
+ requiredPeriod() {
2103
+ return this.triggerType == "Furion.Schedule.PeriodTrigger";
2104
+ }
2105
+ },
2106
+ methods: {
2107
+ disabledEnd(a, e = "start") {
2108
+ const t = e === "start" ? this.formData.endtime : this.formData.starttime;
2109
+ if (!t)
2110
+ return !1;
2111
+ const s = e === "start" ? "00:00:00" : "23:59:59", r = this.getDictionary("yyyy-MM-dd HH:mm:ss", t), i = this.getDictionary("yyyy-MM-dd", a), o = new Date(r).getTime(), l = new Date(`${i} ${s}`).getTime();
2112
+ return e === "start" ? !(o >= l) : !(o <= l);
2113
+ },
2114
+ closed() {
2115
+ this.fullscreen = !1, this.visible = !1;
2116
+ },
2117
+ init(a, e) {
2118
+ this.fullscreen = !1, this.confirmLoading = !!a, this.visible = !0, this.type = a ? 2 : 1, this.title = a ? this.$i18nt("gd.https.edit", "\u7F16\u8F91") : this.$i18nt("gd.https.add", "\u65B0\u589E"), this.triggerType = a ? a.triggertype : "Furion.Schedule.PeriodTrigger", this.sysViewButtons = this.sysViewButtons.map((s) => (s.name = a ? "sysTimersTrigger:add" : "sysTimersTrigger:edit", s));
2119
+ let t = {
2120
+ jobid: e,
2121
+ retrytimeout: 1e3,
2122
+ startnow: !0,
2123
+ runonstart: !0,
2124
+ resetonlyonce: !0,
2125
+ triggertype: this.triggerType,
2126
+ description: "",
2127
+ maxnumberofruns: 0,
2128
+ maxnumberoferrors: 0,
2129
+ numretries: 0,
2130
+ triggerid: "",
2131
+ cronvalue: "",
2132
+ starttime: "",
2133
+ endtime: "",
2134
+ periodvalue: ""
2135
+ };
2136
+ if (a) {
2137
+ this.detail = { ...a };
2138
+ let s = a.args.replace("[", "").replace("]", "");
2139
+ Object.assign(t, {
2140
+ jobid: e,
2141
+ retrytimeout: a.retrytimeout,
2142
+ startnow: a.startnow,
2143
+ runonstart: a.runonstart,
2144
+ resetonlyonce: a.resetonlyonce,
2145
+ triggertype: this.triggerType,
2146
+ description: a.description,
2147
+ maxnumberofruns: a.maxnumberofruns,
2148
+ maxnumberoferrors: a.maxnumberoferrors,
2149
+ numretries: a.numretries,
2150
+ triggerid: a.triggerid,
2151
+ starttime: a.starttime,
2152
+ endtime: a.endtime,
2153
+ cronvalue: this.triggerType == "Furion.Schedule.PeriodTrigger" ? "" : this.getCronValue(s),
2154
+ periodvalue: this.triggerType == "Furion.Schedule.PeriodTrigger" ? s : ""
2155
+ });
2156
+ }
2157
+ this.formData = t, this.$nextTick(() => {
2158
+ setTimeout(() => {
2159
+ this.confirmLoading = !1, this.$refs.formRef.resetFields();
2160
+ }, 300);
2161
+ });
2162
+ },
2163
+ toggleFullscreen() {
2164
+ this.fullscreen = !this.fullscreen;
2165
+ },
2166
+ doEvent(a) {
2167
+ this.confirmLoading || this.handleSubmit();
2168
+ },
2169
+ getCronValue(a) {
2170
+ let e = a.split(",");
2171
+ return e.length != 2 ? a : e[0].replace(new RegExp('"', "gm"), "").trim();
2172
+ },
2173
+ triggerTypeChange(a) {
2174
+ this.triggerType = a;
2175
+ },
2176
+ selCronTab() {
2177
+ this.$refs.cronTab.init(this.formData);
2178
+ },
2179
+ selMacroData(a) {
2180
+ console.log("selMacroData: ", a), this.formData.cronvalue = a;
2181
+ },
2182
+ handleSubmit() {
2183
+ this.$refs.formRef.validate((a) => {
2184
+ if (a) {
2185
+ let e = "";
2186
+ if (this.triggerType == "Furion.Schedule.PeriodTrigger")
2187
+ e = this.formData.periodvalue + "";
2188
+ else {
2189
+ let t = this.formData.cronvalue.trim(), s = -1;
2190
+ t.startsWith("@") ? s = 0 : t.split(" ").length == 6 ? s = 2 : s = 3, e = `"${t}",${s}`;
2191
+ }
2192
+ this.type == 1 ? this.add(
2193
+ Object.assign(this.formData, {
2194
+ args: e
2195
+ })
2196
+ ) : this.edit(
2197
+ Object.assign(this.formData, {
2198
+ args: e
2199
+ })
2200
+ );
2201
+ }
2202
+ });
2203
+ },
2204
+ add(a) {
2205
+ this.confirmLoading = !0, ne(a).then((e) => {
2206
+ e.success ? setTimeout(() => {
2207
+ this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.handleCancel(), this.$emit("ok", a);
2208
+ }, 1500) : (this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + e.message), this.confirmLoading = !1);
2209
+ });
2210
+ },
2211
+ edit(a) {
2212
+ this.confirmLoading = !0, le(Object.assign({ ...this.detail }, a)).then((e) => {
2213
+ e.success ? setTimeout(() => {
2214
+ this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.handleCancel(), this.$emit("ok", a);
2215
+ }, 1500) : (this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + e.message), this.confirmLoading = !1);
2216
+ });
2217
+ },
2218
+ handleCancel() {
2219
+ this.confirmLoading = !1, this.visible = !1, this.$refs.formRef.resetFields();
2220
+ },
2221
+ crontabFill(a) {
2222
+ this.formData.cronvalue = a;
2223
+ },
2224
+ getDictionary(a, e) {
2225
+ return this.$options.filters.formatTime(e, a);
2226
+ }
2227
+ }
2228
+ };
2229
+ var nt = function() {
2230
+ var e = this, t = e._self._c;
2231
+ return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(s) {
2232
+ e.visible = s;
2233
+ }, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, emitFun: !0, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen, close: e.closed }, slot: "title" }), t("div", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }] }, [t("el-form", { ref: "formRef", attrs: { model: e.formData }, nativeOn: { submit: function(s) {
2234
+ s.preventDefault();
2235
+ } } }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { prop: "triggerid", label: e.$i18nt("gd.task.triggerId", "\u89E6\u53D1\u5668\u7F16\u53F7"), "label-width": "130px", rules: [
2236
+ {
2237
+ required: !0,
2238
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"),
2239
+ trigger: "change"
2240
+ }
2241
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: e.type != 1 }, model: { value: e.formData.triggerid, callback: function(s) {
2242
+ e.$set(e.formData, "triggerid", s);
2243
+ }, expression: "formData.triggerid" } })], 1)], 1), t("el-col", { attrs: { span: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.type", "\u7C7B\u578B"), "label-width": "130px", prop: "triggertype", rules: [
2244
+ {
2245
+ required: !0,
2246
+ message: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"),
2247
+ trigger: "change"
2248
+ }
2249
+ ] } }, [t("el-radio-group", { on: { change: e.triggerTypeChange }, model: { value: e.formData.triggertype, callback: function(s) {
2250
+ e.$set(e.formData, "triggertype", s);
2251
+ }, expression: "formData.triggertype" } }, [t("el-radio", { attrs: { label: "Furion.Schedule.PeriodTrigger" } }, [e._v(" " + e._s(e.$i18nt("gd.task.interval", "\u95F4\u9694")) + " ")]), t("el-radio", { attrs: { label: "Furion.Schedule.CronTrigger" } }, [e._v(" " + e._s(e.$i18nt("gd.task.cronExpression", "Cron\u8868\u8FBE\u5F0F")) + " ")])], 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { directives: [{ name: "show", rawName: "v-show", value: e.triggerType == "Furion.Schedule.PeriodTrigger", expression: "triggerType == 'Furion.Schedule.PeriodTrigger'" }], attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.intervalTime", "\u95F4\u9694\u65F6\u95F4(ms)"), "label-width": "130px", prop: "periodvalue", rules: [
2252
+ {
2253
+ required: e.requiredPeriod,
2254
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
2255
+ }
2256
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { type: "number", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), min: 100, step: 100 }, model: { value: e.formData.periodvalue, callback: function(s) {
2257
+ e.$set(e.formData, "periodvalue", s);
2258
+ }, expression: "formData.periodvalue" } })], 1)], 1), t("el-col", { directives: [{ name: "show", rawName: "v-show", value: e.triggerType == "Furion.Schedule.CronTrigger", expression: "triggerType == 'Furion.Schedule.CronTrigger'" }], attrs: { md: 24, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.cronExpression", "Cron\u8868\u8FBE\u5F0F"), "label-width": "130px", prop: "cronvalue", rules: [
2259
+ {
2260
+ required: e.requiredCron,
2261
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
2262
+ }
2263
+ ] } }, [t("div", { staticClass: "cao_about" }, [t("el-input", { staticStyle: { flex: "1", overflow: "hidden" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.formData.cronvalue, callback: function(s) {
2264
+ e.$set(e.formData, "cronvalue", s);
2265
+ }, expression: "formData.cronvalue" } }), t("div", { staticClass: "cao_setting" }, [t("el-dropdown", { on: { command: e.selMacroData } }, [t("a", { staticClass: "ant-dropdown-link", attrs: { href: "javascript:;" } }, [e._v("Macro")]), t("el-dropdown-menu", { attrs: { slot: "dropdown", placement: "bottom" }, slot: "dropdown" }, e._l(e.macroData, function(s) {
2266
+ return t("el-dropdown-item", { key: s.key, staticStyle: { width: "400px" }, attrs: { command: s.key } }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 9, sm: 7 } }, [e._v(e._s(s.key))]), t("el-col", { attrs: { md: 15, sm: 17 } }, [e._v(" " + e._s(s.keyI18n ? e.$i18nt(s.keyI18n, 0, s.description) : s.description) + " ")])], 1)], 1);
2267
+ }), 1)], 1), t("el-divider", { attrs: { direction: "vertical" } }), t("a", { staticClass: "ant-dropdown-link", attrs: { href: "javascript:;" }, on: { click: e.selCronTab } }, [e._v(" " + e._s(e.$i18nt("gd.task.cronExpression", "Cron\u8868\u8FBE\u5F0F")) + " ")])], 1)], 1)])], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.startTime", "\u5F00\u59CB\u65F6\u95F4"), "label-width": "130px" } }, [t("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "datetime", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), format: "yyyy-MM-dd HH:mm:ss", "value-format": "yyyy-MM-dd HH:mm:ss", "picker-options": e.startOptions }, model: { value: e.formData.starttime, callback: function(s) {
2268
+ e.$set(e.formData, "starttime", s);
2269
+ }, expression: "formData.starttime" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.endTime", "\u7ED3\u675F\u65F6\u95F4"), "label-width": "130px" } }, [t("el-date-picker", { staticStyle: { width: "100%" }, attrs: { type: "datetime", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9"), format: "yyyy-MM-dd HH:mm:ss", "value-format": "yyyy-MM-dd HH:mm:ss", "picker-options": e.endOptions }, model: { value: e.formData.endtime, callback: function(s) {
2270
+ e.$set(e.formData, "endtime", s);
2271
+ }, expression: "formData.endtime" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.maxNumberOfRuns"), "label-width": "130px", prop: "maxnumberofruns", rules: [
2272
+ {
2273
+ required: !0,
2274
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"),
2275
+ trigger: "change"
2276
+ }
2277
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { min: 0, type: "number", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.formData.maxnumberofruns, callback: function(s) {
2278
+ e.$set(e.formData, "maxnumberofruns", s);
2279
+ }, expression: "formData.maxnumberofruns" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.maxNumberOfErrors", "\u6700\u5927\u51FA\u9519\u6B21\u6570"), "label-width": "130px", prop: "maxnumberoferrors", rules: [
2280
+ {
2281
+ required: !0,
2282
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"),
2283
+ trigger: "change"
2284
+ }
2285
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { min: 0, type: "number", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.formData.maxnumberoferrors, callback: function(s) {
2286
+ e.$set(e.formData, "maxnumberoferrors", s);
2287
+ }, expression: "formData.maxnumberoferrors" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.numRetries", "\u91CD\u8BD5\u6B21\u6570"), "label-width": "130px", prop: "numretries", rules: [
2288
+ {
2289
+ required: !0,
2290
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
2291
+ }
2292
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { min: 0, type: "number", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.formData.numretries, callback: function(s) {
2293
+ e.$set(e.formData, "numretries", s);
2294
+ }, expression: "formData.numretries" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.retryTimeout", "\u91CD\u8BD5\u95F4\u9694(ms)"), "label-width": "130px", prop: "retrytimeout", rules: [
2295
+ {
2296
+ required: !0,
2297
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
2298
+ }
2299
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { min: 0, type: "number", placeholder: e.$i18nt("gd.placeholder.select", "\u8BF7\u9009\u62E9") }, model: { value: e.formData.retrytimeout, callback: function(s) {
2300
+ e.$set(e.formData, "retrytimeout", s);
2301
+ }, expression: "formData.retrytimeout" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.startNow", "\u7ACB\u5373\u542F\u52A8"), "label-width": "130px", prop: "startNow" } }, [t("el-radio-group", { model: { value: e.formData.startnow, callback: function(s) {
2302
+ e.$set(e.formData, "startnow", s);
2303
+ }, expression: "formData.startnow" } }, [t("el-radio", { attrs: { label: !0 } }, [e._v(e._s(e.$i18nt("gd.state.yes", "\u662F")))]), t("el-radio", { attrs: { label: !1 } }, [e._v(e._s(e.$i18nt("gd.state.no", "\u5426")))])], 1)], 1)], 1), t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.runOnStart", "\u542F\u52A8\u65F6\u6267\u884C\u4E00\u6B21"), "label-width": "130px", prop: "runOnStart" } }, [t("el-radio-group", { model: { value: e.formData.runonstart, callback: function(s) {
2304
+ e.$set(e.formData, "runonstart", s);
2305
+ }, expression: "formData.runonstart" } }, [t("el-radio", { attrs: { label: !0 } }, [e._v(e._s(e.$i18nt("gd.state.yes", "\u662F")))]), t("el-radio", { attrs: { label: !1 } }, [e._v(e._s(e.$i18nt("gd.state.no", "\u5426")))])], 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 12 } }, [t("el-form-item", { attrs: { "label-width": "130px", prop: "resetOnlyOnce" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.task.resetOnlyOnce", "\u91CD\u7F6E\u89E6\u53D1\u6B21\u6570")) + " "), t("el-tooltip", { attrs: { content: e.$i18nt(
2306
+ "gd.task.resetOnlyOnceTip",
2307
+ "\u662F\u5426\u5728\u542F\u52A8\u65F6\u91CD\u7F6E\u6700\u5927\u89E6\u53D1\u6B21\u6570\u7B49\u4E8E\u4E00\u6B21\u7684\u4F5C\u4E1A; \u89E3\u51B3\u56E0\u6301\u4E45\u5316\u6570\u636E\u5DF2\u5B8C\u6210\u4E00\u6B21\u89E6\u53D1\u4F46\u542F\u52A8\u65F6\u4E0D\u518D\u6267\u884C\u7684\u95EE\u9898"
2308
+ ) } }, [t("i", { staticClass: "el-icon-question" })])], 1), t("el-radio-group", { model: { value: e.formData.resetonlyonce, callback: function(s) {
2309
+ e.$set(e.formData, "resetonlyonce", s);
2310
+ }, expression: "formData.resetonlyonce" } }, [t("el-radio", { attrs: { label: !0 } }, [e._v(e._s(e.$i18nt("gd.state.yes", "\u662F")))]), t("el-radio", { attrs: { label: !1 } }, [e._v(e._s(e.$i18nt("gd.state.no", "\u5426")))])], 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 24, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.description", "\u63CF\u8FF0"), "label-width": "12.5%", prop: "description" } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), rows: 5 }, model: { value: e.formData.description, callback: function(s) {
2311
+ e.$set(e.formData, "description", s);
2312
+ }, expression: "formData.description" } })], 1)], 1)], 1)], 1)], 1)], 1), e.visible ? t("cronTab", { ref: "cronTab", on: { fill: e.crontabFill } }) : e._e()], 1);
2313
+ }, lt = [], ot = /* @__PURE__ */ g(
2314
+ it,
2315
+ nt,
2316
+ lt,
2317
+ !1,
2318
+ null,
2319
+ "9b7f91e1",
2320
+ null,
2321
+ null
2322
+ );
2323
+ const ct = ot.exports, F = `#region
2324
+ using Furion;
2325
+ using Furion.Logging;
2326
+ using Furion.RemoteRequest.Extensions;
2327
+ using Furion.Schedule;
2328
+ using Microsoft.Extensions.DependencyInjection;
2329
+ using System;
2330
+ using System.Data;
2331
+ using System.Linq.Dynamic.Core;
2332
+ using System.Linq.Expressions;
2333
+ using System.Text;
2334
+ using System.Threading;
2335
+ using System.Threading.Tasks;
2336
+ using Yitter.IdGenerator;
2337
+ using Furion.Schedule;
2338
+ #endregion
2339
+
2340
+ namespace Gds.Core.Jobs;
2341
+
2342
+ /// <summary>
2343
+ /// \u793A\u4F8B\u4F5C\u4E1A
2344
+ /// </summary>
2345
+ [JobDetail("\u4F60\u7684\u4F5C\u4E1A\u7F16\u53F7", Description = "\u793A\u4F8B\u4F5C\u4E1A\u63CF\u8FF0", GroupName = "default", Concurrent = false)]
2346
+ [Daily(TriggerId = "\u4F60\u7684\u89E6\u53D1\u5668\u7F16\u53F7", Description = "\u793A\u4F8B\u4F5C\u4E1A\u63CF\u8FF0")]
2347
+ public class JOBCLASS : IJob
2348
+ {
2349
+ \xA0 \xA0 private readonly IServiceProvider _serviceProvider;
2350
+ \xA0 \xA0 public JOBCLASS(IServiceProvider serviceProvider)
2351
+ \xA0 \xA0 {
2352
+ \xA0 \xA0 \xA0 \xA0 _serviceProvider = serviceProvider;
2353
+ \xA0 \xA0 }
2354
+ \xA0 \xA0 public async Task ExecuteAsync(JobExecutingContext context, CancellationToken stoppingToken)
2355
+ \xA0 \xA0 {
2356
+ \xA0 \xA0 \xA0 \xA0 using var serviceScope = _serviceProvider.CreateScope();
2357
+
2358
+ \xA0 \xA0 }
2359
+ }
2360
+ `;
2361
+ const dt = {
2362
+ data() {
2363
+ return {
2364
+ fullscreen: !1,
2365
+ visible: !1,
2366
+ confirmLoading: !1,
2367
+ JobNameData: [],
2368
+ title: "\u4F5C\u4E1A",
2369
+ sysViewButtons: [
2370
+ {
2371
+ displayName: "\u786E\u5B9A",
2372
+ functionName: "handleSubmit",
2373
+ show: !0,
2374
+ transKey: "gd.btn.confirm",
2375
+ icon: "el-icon-document-checked"
2376
+ }
2377
+ ],
2378
+ type: 1,
2379
+ activeKey: "1",
2380
+ createType: 2,
2381
+ disabled: !0,
2382
+ monacoEditor: !1,
2383
+ detail: {},
2384
+ width: "80%",
2385
+ formData: {}
2386
+ };
2387
+ },
2388
+ computed: {
2389
+ getHeight() {
2390
+ return this.height - 100;
2391
+ },
2392
+ height() {
2393
+ return this.screenHeight - (this.fullScreen ? 140 : 210);
2394
+ },
2395
+ ...I(["screenHeight"])
2396
+ },
2397
+ methods: {
2398
+ closed() {
2399
+ this.fullscreen = !1, this.visible = !1, this.activeKey = "1";
2400
+ },
2401
+ doEvent(a) {
2402
+ let e = a.item.functionName;
2403
+ this[e]();
2404
+ },
2405
+ toggleFullscreen() {
2406
+ this.fullscreen = !this.fullscreen;
2407
+ },
2408
+ init(a) {
2409
+ if (this.fullscreen = !1, this.visible = !0, this.type = a ? 2 : 1, this.createType = 2, this.disabled = !0, this.title = a ? this.$i18nt("gd.https.edit", "\u7F16\u8F91") : this.$i18nt("gd.https.add", "\u65B0\u589E"), this.sysViewButtons = this.sysViewButtons.map((e) => (e.name = a ? "sysTimers:edit" : "sysTimers:add", e)), this.monacoEditor && (this.monacoEditor = !1, this.$refs.monacoEditorRef.setData(F)), a) {
2410
+ this.detail = { ...a }, this.disabled = a.createType != 1;
2411
+ let e = this.getHttpJobMessage(a.properties);
2412
+ this.$nextTick(() => {
2413
+ setTimeout(() => {
2414
+ this.formData = {
2415
+ jobid: a.jobid,
2416
+ groupname: a.groupname,
2417
+ createtype: a.createtype,
2418
+ concurrent: a.concurrent,
2419
+ httpmethod: e.httpmethod,
2420
+ includeannotations: a.includeannotations,
2421
+ description: a.description,
2422
+ body: e.body,
2423
+ requesturi: e.requesturi
2424
+ };
2425
+ }, 0);
2426
+ });
2427
+ } else
2428
+ this.$nextTick(() => {
2429
+ setTimeout(() => {
2430
+ this.formData = {
2431
+ groupname: "default",
2432
+ createtype: 2,
2433
+ concurrent: !0,
2434
+ httpmethod: "Get",
2435
+ includeannotations: !0,
2436
+ description: "",
2437
+ body: "",
2438
+ requesturi: ""
2439
+ };
2440
+ }, 100);
2441
+ });
2442
+ },
2443
+ getHttpJobMessage(a) {
2444
+ if (a == null || a === "")
2445
+ return {
2446
+ requesturi: "",
2447
+ httpmethod: "Get",
2448
+ body: ""
2449
+ };
2450
+ let e = JSON.parse(a);
2451
+ if (e.HttpJob === void 0)
2452
+ return {
2453
+ requesturi: "",
2454
+ httpmethod: "Get",
2455
+ body: ""
2456
+ };
2457
+ let t = JSON.parse(e.HttpJob);
2458
+ return {
2459
+ requesturi: t.RequestUri,
2460
+ httpmethod: t.HttpMethod ? t.HttpMethod.Method : "Get",
2461
+ body: t.Body
2462
+ };
2463
+ },
2464
+ changeCreateType(a) {
2465
+ if (this.createType = a, this.disabled = a != 1, a == 1) {
2466
+ let e = Object.assign({}, this.formData), t = JSON.stringify({
2467
+ RequestUri: e.requestUri,
2468
+ HttpMethod: {
2469
+ Method: e.httpMethod
2470
+ },
2471
+ Body: e.body,
2472
+ ClientName: "HttpJob",
2473
+ EnsureSuccessStatusCode: !0
2474
+ }), s = JSON.stringify({
2475
+ HttpJob: t
2476
+ });
2477
+ this.$nextTick(() => {
2478
+ setTimeout(() => {
2479
+ this.formData = { ...this.formData, properties: s };
2480
+ }, 100);
2481
+ });
2482
+ }
2483
+ },
2484
+ changeTabs(a, e) {
2485
+ a.name == 2 && !this.monacoEditor && this.$nextTick(() => {
2486
+ setTimeout(() => {
2487
+ this.monacoEditor = !0, this.$refs.monacoEditorRef.setData(F);
2488
+ }, 0);
2489
+ });
2490
+ },
2491
+ handleSubmit() {
2492
+ this.$refs.formRef.validate((a) => {
2493
+ if (a) {
2494
+ let e = this.createType == 1 ? this.monacoEditor ? this.$refs.monacoEditorRef.getData() : F : "", t = "";
2495
+ if (this.createType == 2) {
2496
+ let s = JSON.stringify({
2497
+ RequestUri: this.formData.requestUri,
2498
+ HttpMethod: {
2499
+ Method: this.formData.httpMethod
2500
+ },
2501
+ Body: this.formData.body,
2502
+ ClientName: "HttpJob",
2503
+ EnsureSuccessStatusCode: !0
2504
+ });
2505
+ t = JSON.stringify({
2506
+ HttpJob: s
2507
+ });
2508
+ }
2509
+ this.type == 1 ? this.add(
2510
+ Object.assign(this.formData, {
2511
+ scriptCode: e,
2512
+ properties: t
2513
+ })
2514
+ ) : this.edit(
2515
+ Object.assign(this.formData, {
2516
+ scriptCode: e,
2517
+ properties: t
2518
+ })
2519
+ );
2520
+ }
2521
+ });
2522
+ },
2523
+ add(a) {
2524
+ this.confirmLoading = !0, se(a).then((e) => {
2525
+ e.success ? (this.$message.success(this.$i18nt("gd.https.addSucc", "\u65B0\u589E\u6210\u529F")), this.visible = !1, this.confirmLoading = !1, this.$emit("ok", a), this.$refs.formRef.resetFields()) : this.$message.error(this.$i18nt("gd.https.addFail", "\u65B0\u589E\u5931\u8D25: ") + e.message);
2526
+ }).finally((e) => {
2527
+ this.confirmLoading = !1;
2528
+ });
2529
+ },
2530
+ edit(a) {
2531
+ this.confirmLoading = !0, re(Object.assign({ ...this.detail }, a)).then((e) => {
2532
+ e.success ? (this.$message.success(this.$i18nt("gd.https.editSucc", "\u7F16\u8F91\u6210\u529F")), this.visible = !1, this.confirmLoading = !1, this.$emit("ok", a), this.$refs.formRef.resetFields()) : this.$message.error(this.$i18nt("gd.https.editFail", "\u7F16\u8F91\u5931\u8D25: ") + e.message);
2533
+ }).finally((e) => {
2534
+ this.confirmLoading = !1;
2535
+ });
2536
+ }
2537
+ }
2538
+ };
2539
+ var ut = function() {
2540
+ var e = this, t = e._self._c;
2541
+ return t("div", [t("el-dialog", { directives: [{ name: "drag", rawName: "v-drag" }], ref: "dialog", class: e.fullscreen ? "gd-dialog gd-dialog-fangda" : "gd-dialog", attrs: { fullscreen: e.fullscreen, visible: e.visible, width: e.width, center: !0, "close-on-click-modal": !1, "append-to-body": !0, "modal-append-to-body": !1, top: "80px", "show-close": !1 }, on: { "update:visible": function(s) {
2542
+ e.visible = s;
2543
+ }, closed: e.closed } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.title, fullscreen: e.fullscreen, buttons: e.sysViewButtons, confirmLoading: e.confirmLoading, showClose: !0 }, on: { changeEvent: e.doEvent, toggleFullscreen: e.toggleFullscreen }, slot: "title" }), t("div", { class: e.fullscreen ? "modal-bodyq" : "modal-body" }, [t("el-form", { directives: [{ name: "loading", rawName: "v-loading", value: e.confirmLoading, expression: "confirmLoading" }], ref: "formRef", attrs: { model: e.formData }, nativeOn: { submit: function(s) {
2544
+ s.preventDefault();
2545
+ } } }, [t("el-tabs", { attrs: { type: "card" }, on: { "tab-click": e.changeTabs }, model: { value: e.activeKey, callback: function(s) {
2546
+ e.activeKey = s;
2547
+ }, expression: "activeKey" } }, [t("el-tab-pane", { attrs: { name: "1", label: e.$i18nt("gd.task.jobInformation", "\u4F5C\u4E1A\u4FE1\u606F") } }, [t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.jobId", "\u4F5C\u4E1A\u7F16\u53F7"), "label-width": "130px", prop: "jobid", rules: [
2548
+ {
2549
+ required: !0,
2550
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
2551
+ }
2552
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), disabled: e.type == 2 }, model: { value: e.formData.jobid, callback: function(s) {
2553
+ e.$set(e.formData, "jobid", s);
2554
+ }, expression: "formData.jobid" } })], 1)], 1), t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.groupName", "\u7EC4\u540D\u79F0"), "label-width": "130px", prop: "groupname", rules: [
2555
+ {
2556
+ required: !0,
2557
+ message: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165")
2558
+ }
2559
+ ] } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.formData.groupname, callback: function(s) {
2560
+ e.$set(e.formData, "groupname", s);
2561
+ }, expression: "formData.groupname" } })], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.createType", "\u521B\u5EFA\u7C7B\u578B"), "label-width": "130px", prop: "createType" } }, [t("el-radio-group", { attrs: { disabled: e.type == 2 }, on: { change: e.changeCreateType }, model: { value: e.formData.createtype, callback: function(s) {
2562
+ e.$set(e.formData, "createtype", s);
2563
+ }, expression: "formData.createtype" } }, [e.type != 1 ? t("el-radio", { attrs: { label: 0 } }, [e._v(" " + e._s(e.$i18nt("gd.task.builtIn", "\u5185\u7F6E")) + " ")]) : e._e(), t("el-radio", { attrs: { label: 1 } }, [e._v(e._s(e.$i18nt("gd.task.script")))]), t("el-radio", { attrs: { label: 2 } }, [e._v(" " + e._s(e.$i18nt("gd.task.httpRequest", "Http\u8BF7\u6C42")) + " ")])], 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.concurrent", "\u6267\u884C\u65B9\u5F0F"), "label-width": "130px", prop: "concurrent" } }, [t("el-radio-group", { model: { value: e.formData.concurrent, callback: function(s) {
2564
+ e.$set(e.formData, "concurrent", s);
2565
+ }, expression: "formData.concurrent" } }, [t("el-radio", { attrs: { label: !0 } }, [e._v(" " + e._s(e.$i18nt("gd.task.parallel", "\u5E76\u884C")) + " ")]), t("el-radio", { attrs: { label: !1 } }, [e._v(" " + e._s(e.$i18nt("gd.task.serial", "\u4E32\u884C")) + " ")])], 1)], 1)], 1), t("el-col", { directives: [{ name: "show", rawName: "v-show", value: e.type != 2 && e.createType == 1, expression: "type != 2 && createType == 1" }], attrs: { md: 12, sm: 24 } }, [t("el-form-item", { attrs: { "label-width": "130px", prop: "includeAnnotations" } }, [t("span", { attrs: { slot: "label" }, slot: "label" }, [e._v(" " + e._s(e.$i18nt("gd.task.scanTrigger", "\u626B\u63CF\u7279\u6027\u89E6\u53D1\u5668")) + " "), t("el-tooltip", { attrs: { placement: "top", content: e.$i18nt("gd.task.scanTriggerTip", "\u6B64\u53C2\u6570\u53EA\u5728\u65B0\u589E\u4F5C\u4E1A\u65F6\u751F\u6548; \u626B\u63CF\u5B9A\u4E49\u5728\u4F5C\u4E1A\u4E0A\u7684\u89E6\u53D1\u5668") } }, [t("i", { staticClass: "el-icon-question" })])], 1), t("el-radio-group", { model: { value: e.formData.includeannotations, callback: function(s) {
2566
+ e.$set(e.formData, "includeannotations", s);
2567
+ }, expression: "formData.includeannotations" } }, [t("el-radio", { attrs: { label: !0 } }, [e._v(e._s(e.$i18nt("gd.state.yes", "\u662F")))]), t("el-radio", { attrs: { label: !1 } }, [e._v(e._s(e.$i18nt("gd.state.no", "\u5426")))])], 1)], 1)], 1)], 1), t("el-row", { attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 24, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.description", "\u63CF\u8FF0"), "label-width": "12.5%", prop: "description" } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), rows: 4 }, model: { value: e.formData.description, callback: function(s) {
2568
+ e.$set(e.formData, "description", s);
2569
+ }, expression: "formData.description" } })], 1)], 1)], 1), t("el-row", { directives: [{ name: "show", rawName: "v-show", value: e.createType == 1, expression: "createType == 1" }], attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 24, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.properties", "\u989D\u5916\u6570\u636E"), "label-width": "12.5%", prop: "properties" } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), rows: 4 }, model: { value: e.formData.properties, callback: function(s) {
2570
+ e.$set(e.formData, "properties", s);
2571
+ }, expression: "formData.properties" } })], 1)], 1)], 1), t("el-row", { directives: [{ name: "show", rawName: "v-show", value: e.createType != 1, expression: "createType != 1" }], attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 24, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.properties", "\u989D\u5916\u6570\u636E"), "label-width": "12.5%", prop: "requestUri" } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165") }, model: { value: e.formData.requesturi, callback: function(s) {
2572
+ e.$set(e.formData, "requesturi", s);
2573
+ }, expression: "formData.requesturi" } })], 1)], 1)], 1), t("el-row", { directives: [{ name: "show", rawName: "v-show", value: e.createType != 1, expression: "createType != 1" }], attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 24, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.requestMethod", "\u8BF7\u6C42\u65B9\u6CD5"), "label-width": "12.5%", prop: "httpMethod" } }, [t("el-radio-group", { model: { value: e.formData.httpmethod, callback: function(s) {
2574
+ e.$set(e.formData, "httpmethod", s);
2575
+ }, expression: "formData.httpmethod" } }, [t("el-radio", { attrs: { label: "Get" } }, [e._v("Get")]), t("el-radio", { attrs: { label: "Post" } }, [e._v("Post")]), t("el-radio", { attrs: { label: "Put" } }, [e._v("Put")]), t("el-radio", { attrs: { label: "Delete" } }, [e._v("Delete")])], 1)], 1)], 1)], 1), t("el-row", { directives: [{ name: "show", rawName: "v-show", value: e.createType != 1, expression: "createType != 1" }], attrs: { gutter: 24 } }, [t("el-col", { attrs: { md: 24, sm: 24 } }, [t("el-form-item", { attrs: { label: e.$i18nt("gd.task.requestMessage", "\u8BF7\u6C42\u62A5\u6587\u4F53"), "label-width": "12.5%", prop: "body" } }, [t("el-input", { staticStyle: { width: "100%" }, attrs: { type: "textarea", placeholder: e.$i18nt("gd.placeholder.input", "\u8BF7\u8F93\u5165"), rows: 4 }, model: { value: e.formData.body, callback: function(s) {
2576
+ e.$set(e.formData, "body", s);
2577
+ }, expression: "formData.body" } })], 1)], 1)], 1)], 1), t("el-tab-pane", { attrs: { name: "2", label: e.$i18nt("gd.task.scriptCode", "\u811A\u672C\u4EE3\u7801"), disabled: e.disabled } }, [t("gd-monaco-editor-ref", { ref: "monacoEditorRef", attrs: { height: e.getHeight } })], 1)], 1)], 1)], 1)], 1)], 1);
2578
+ }, ht = [], gt = /* @__PURE__ */ g(
2579
+ dt,
2580
+ ut,
2581
+ ht,
2582
+ !1,
2583
+ null,
2584
+ "04005e4c",
2585
+ null,
2586
+ null
2587
+ );
2588
+ const pt = gt.exports;
2589
+ const mt = {
2590
+ props: {
2591
+ columns: {
2592
+ type: Array,
2593
+ default: () => []
2594
+ },
2595
+ size: {
2596
+ type: String,
2597
+ default: ""
2598
+ }
2599
+ },
2600
+ data() {
2601
+ return {
2602
+ jobId: "",
2603
+ customSize: "",
2604
+ innerTableLoadData: (a) => Y({
2605
+ JobId: this.jobId
2606
+ }).then((e) => {
2607
+ let t = e.data.map((s) => (s.args = s.args.replace("[", "").replace("]", ""), s));
2608
+ return {
2609
+ pageNo: 1,
2610
+ pageSize: 200,
2611
+ totalRows: t.length,
2612
+ rows: t
2613
+ };
2614
+ }),
2615
+ detail: {}
2616
+ };
2617
+ },
2618
+ methods: {
2619
+ changTableSize(a) {
2620
+ this.customSize = a;
2621
+ },
2622
+ editTriggers(a) {
2623
+ this.$emit("editTriggers", Object.assign(a, { uuid: this.detail.uuid }));
2624
+ },
2625
+ del(a, e) {
2626
+ this.$emit("del", Object.assign(a, { uuid: this.detail.uuid }), e);
2627
+ },
2628
+ triggersOperate(a, e, t) {
2629
+ this.$emit("triggersOperate", a, Object.assign(e, { uuid: this.detail.uuid }), t);
2630
+ },
2631
+ refresh(a) {
2632
+ this.detail = a, this.jobId = a.jobid, this.$refs.table.refresh(), this.customSize = this.size;
2633
+ },
2634
+ dictSwitch(a, e) {
2635
+ let t = this.$options.filters.dictData(e);
2636
+ t = t.length == 0 ? this.dictList : t;
2637
+ let s = t.filter((r) => r.code == a)[0];
2638
+ return s !== void 0 && s.colour ? s.colour : null;
2639
+ }
2640
+ },
2641
+ mounted() {
2642
+ this.customSize = this.tableSize;
2643
+ }
2644
+ };
2645
+ var ft = function() {
2646
+ var e = this, t = e._self._c;
2647
+ return t("gd-tables", { ref: "table", staticClass: "inner-table", attrs: { dataSource: e.innerTableLoadData, columns: e.columns, showPagination: !1, size: e.size, initialLoading: !1, rowKey: (s) => s.triggerId }, on: { changTableSize: e.changTableSize }, scopedSlots: e._u([{ key: "triggerId", fn: function({ row: s }) {
2648
+ return [t("gd-tooltip", { attrs: { rowKey: "triggerid", row: s, highlight: "" }, on: { click: function(r) {
2649
+ return e.editTriggers({ row: s });
2650
+ } } })];
2651
+ } }, { key: "triggerType", fn: function({ row: s }) {
2652
+ return [t("gd-tooltip", { attrs: { rowKey: "triggertype", row: s } })];
2653
+ } }, { key: "args", fn: function({ row: s }) {
2654
+ return [t("gd-tooltip", { attrs: { rowKey: "args", row: s } })];
2655
+ } }, { key: "description", fn: function({ row: s }) {
2656
+ return [t("gd-tooltip", { attrs: { rowKey: "description", row: s } })];
2657
+ } }, { key: "status", fn: function({ row: s }) {
2658
+ return [e.dictSwitch(s.status, "table_timers_status") ? t("el-tag", { class: [`tag-${e.dictSwitch(s.status, "table_timers_status")}`], attrs: { color: e.dictSwitch(s.status, "table_timers_status") } }, [e._v(" " + e._s(e._f("dictType")("table_timers_status", s.status)) + " ")]) : t("span", [e._v(e._s(e._f("dictType")("table_timers_status", s.status)))])];
2659
+ } }, { key: "startNow", fn: function({ row: s }) {
2660
+ return [s.startnow ? t("el-tag", { staticClass: "tag-green", attrs: { color: "green" } }, [e._v(e._s(e.$i18nt("gd.state.yes", "\u662F")))]) : t("el-tag", { staticClass: "tag-red", attrs: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.state.no", "\u5426")))])];
2661
+ } }, { key: "runOnStart", fn: function({ row: s }) {
2662
+ return [s.runonstart ? t("el-tag", { staticClass: "tag-green", attrs: { color: "green" } }, [e._v(e._s(e.$i18nt("gd.state.yes", "\u662F")))]) : t("el-tag", { staticClass: "tag-red", attrs: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.state.no", "\u5426")))])];
2663
+ } }, { key: "resetOnlyOnce", fn: function({ row: s }) {
2664
+ return [s.resetonlyonce ? t("el-tag", { staticClass: "tag-green", attrs: { color: "green" } }, [e._v(e._s(e.$i18nt("gd.state.yes", "\u662F")))]) : t("el-tag", { staticClass: "tag-red", attrs: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.state.no", "\u5426")))])];
2665
+ } }, { key: "action", fn: function(s) {
2666
+ return [e.$hasPerm("sysTimersTrigger:edit") ? t("el-button", { staticClass: "active-color", attrs: { type: "text", size: e.customSize }, on: { click: function(r) {
2667
+ return e.editTriggers(s);
2668
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]) : e._e(), e.$hasPerm("sysTimersTrigger:delete") ? t("el-button", { staticStyle: { color: "red" }, attrs: { type: "text", size: e.customSize }, on: { click: function(r) {
2669
+ return e.del(s.row, 2);
2670
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.del", "\u5220\u9664")) + " ")]) : e._e(), e.$hasPerm("sysTimersTrigger:start") || e.$hasPerm("sysTimersTrigger:stop") ? t("el-dropdown", [t("span", { staticClass: "el-dropdown-link active-color", class: `el-button--${e.customSize}` }, [e._v(" " + e._s(e.$i18nt("gd.btn.more", "\u66F4\u591A")) + " "), t("i", { staticClass: "el-icon-arrow-down" })]), e.$hasPerm("sysTimersTrigger:start") ? t("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [t("el-dropdown-item", [t("span", { class: `el-button--${e.customSize}`, on: { click: function(r) {
2671
+ return e.triggersOperate(1, s.row, s.index);
2672
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.task.launchTrigger", "\u542F\u52A8\u89E6\u53D1\u5668")) + " ")])]), e.$hasPerm("sysTimersTrigger:stop") ? t("el-dropdown-item", [t("span", { class: `el-button--${e.customSize}`, on: { click: function(r) {
2673
+ return e.triggersOperate(2, s.row, s.index);
2674
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.task.stopTrigger", "\u6682\u505C\u89E6\u53D1\u5668")) + " ")])]) : e._e()], 1) : e._e()], 1) : e._e()];
2675
+ } }]) });
2676
+ }, yt = [], bt = /* @__PURE__ */ g(
2677
+ mt,
2678
+ ft,
2679
+ yt,
2680
+ !1,
2681
+ null,
2682
+ "0336848e",
2683
+ null,
2684
+ null
2685
+ );
2686
+ const kt = bt.exports;
2687
+ const _t = {
2688
+ data() {
2689
+ return {
2690
+ visible: !1,
2691
+ columns: [
2692
+ {
2693
+ label: "\u96C6\u7FA4\u7F16\u53F7",
2694
+ align: "left",
2695
+ prop: "clusterid",
2696
+ transKey: "gd.task.clusterNumber"
2697
+ },
2698
+ {
2699
+ label: "\u72B6\u6001",
2700
+ prop: "status",
2701
+ align: "left",
2702
+ type: "slot",
2703
+ slotType: "status",
2704
+ transKey: "gd.task.status"
2705
+ },
2706
+ {
2707
+ label: "\u63CF\u8FF0",
2708
+ align: "left",
2709
+ prop: "description",
2710
+ type: "slot",
2711
+ slotType: "description",
2712
+ width: 180,
2713
+ transKey: "gd.task.description"
2714
+ },
2715
+ {
2716
+ label: "\u66F4\u65B0\u65F6\u95F4",
2717
+ align: "center",
2718
+ prop: "updatedtime",
2719
+ transKey: "gd.task.updatedTime"
2720
+ }
2721
+ ],
2722
+ loadData: (a) => ae(Object.assign(a, this.queryParam)).then((e) => (this.load = !0, {
2723
+ pageNo: 1,
2724
+ pageSize: 10,
2725
+ rows: e.data,
2726
+ totalPage: 0,
2727
+ totalRows: e.data.length
2728
+ })),
2729
+ load: !1
2730
+ };
2731
+ },
2732
+ computed: {
2733
+ ...I(["tableSize"])
2734
+ },
2735
+ methods: {
2736
+ open(a) {
2737
+ this.visible = !0, this.load && this.$nextTick(() => {
2738
+ setTimeout(() => {
2739
+ this.refresh();
2740
+ }, 0);
2741
+ });
2742
+ },
2743
+ handleCancel() {
2744
+ this.visible = !1;
2745
+ },
2746
+ refresh() {
2747
+ this.$refs.table.refresh();
2748
+ },
2749
+ doEvent(a) {
2750
+ let e = a.item.functionName;
2751
+ this[e] && this[e]();
2752
+ }
2753
+ }
2754
+ };
2755
+ var vt = function() {
2756
+ var e = this, t = e._self._c;
2757
+ return t("el-drawer", { attrs: { title: e.$i18nt("gd.task.jobCluster", "\u4F5C\u4E1A\u96C6\u7FA4"), size: 700, visible: e.visible, "show-close": !1 }, on: { "update:visible": function(s) {
2758
+ e.visible = s;
2759
+ }, close: e.handleCancel } }, [t("gd-modal-title", { attrs: { slot: "title", title: e.$i18nt("gd.task.jobCluster", "\u4F5C\u4E1A\u96C6\u7FA4"), modalType: "drawer", buttons: [], emitFun: !0, showFullscreen: !1, showClose: !0 }, on: { changeEvent: e.doEvent, close: e.handleCancel }, slot: "title" }), t("gd-tables", { ref: "table", attrs: { columns: e.columns, dataSource: e.loadData, alert: !0, rowKey: (s) => s.id, showPagination: !1, size: e.tableSize }, scopedSlots: e._u([{ key: "status", fn: function({ row: s }) {
2760
+ return [s.status === 0 ? t("el-tag", { staticClass: "tag-red", attrs: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.colony.crash", "\u5B95\u673A")))]) : e._e(), s.status === 1 ? t("el-tag", { staticClass: "tag-red", attrs: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.colony.working", "\u5DE5\u4F5C\u4E2D")))]) : e._e(), s.status === 2 ? t("el-tag", { staticClass: "tag-red", attrs: { color: "red" } }, [e._v(" " + e._s(e.$i18nt("gd.colony.waitingToBeAwakened", "\u7B49\u5F85\u88AB\u5524\u9192")) + " ")]) : e._e()];
2761
+ } }, { key: "description", fn: function({ row: s }) {
2762
+ return [t("el-tooltip", { attrs: { placement: "top", content: s.description } }, [t("span", { staticClass: "line1" }, [e._v(e._s(s.description))])])];
2763
+ } }]) })], 1);
2764
+ }, $t = [], wt = /* @__PURE__ */ g(
2765
+ _t,
2766
+ vt,
2767
+ $t,
2768
+ !1,
2769
+ null,
2770
+ "b00cbf65",
2771
+ null,
2772
+ null
2773
+ );
2774
+ const xt = wt.exports;
2775
+ const Tt = {
2776
+ name: "GdTimers",
2777
+ props: {
2778
+ height: {
2779
+ type: Number,
2780
+ default: 100
2781
+ }
2782
+ },
2783
+ mixins: [de, q],
2784
+ components: { editTrigger: ct, editForm: pt, colony: xt, childRenTable: kt },
2785
+ data() {
2786
+ return {
2787
+ uuids: "",
2788
+ queryParam: {},
2789
+ sourceData: [],
2790
+ selectedRowKeys: [],
2791
+ currentExpandRow: [],
2792
+ sourceData: [],
2793
+ customSize: this.tableSize,
2794
+ loadData: (a) => H(Object.assign(a, this.queryParam)).then((e) => {
2795
+ let t = [];
2796
+ return e.data.rows.forEach((s) => {
2797
+ t.push(Object.assign(s, { loading: !1, uuid: z(8) }));
2798
+ }), this.sourceData = t, this.expandedRowKeys = [], Object.assign({ ...e.data }, { rows: t });
2799
+ })
2800
+ };
2801
+ },
2802
+ computed: {
2803
+ getHeight() {
2804
+ return this.height;
2805
+ },
2806
+ ...I(["tablePageSize", "tableSize", "labelPosition", "formMode"])
2807
+ },
2808
+ methods: {
2809
+ changTableSize(a) {
2810
+ this.customSize = a;
2811
+ },
2812
+ editForm(a) {
2813
+ this.$refs.editForm.init(a);
2814
+ },
2815
+ addTrigger(a, e) {
2816
+ this.$refs.editTrigger.init(null, a.jobid);
2817
+ },
2818
+ onExpandChange(a) {
2819
+ this.currentExpandRow = a.expanded.map((e) => e.uuid), this.updataTriggerTableData(a.val, 0);
2820
+ },
2821
+ dictSwitch(a, e) {
2822
+ let t = this.$options.filters.dictData(e);
2823
+ t = t.length == 0 ? this.dictList : t;
2824
+ let s = t.filter((r) => r.code == a)[0];
2825
+ return s != null && s.colour ? s.colour : null;
2826
+ },
2827
+ okTrigger(a) {
2828
+ this.updataTriggerTableData(a);
2829
+ },
2830
+ editTriggers(a) {
2831
+ this.uuids = a.uuid, this.$refs.editTrigger.init(a.row, a.row.jobid);
2832
+ },
2833
+ refresh() {
2834
+ this.currentExpandRow = [], this.$refs.table.refresh();
2835
+ },
2836
+ doEvent(a) {
2837
+ let e = a.item.functionName, t = a.key ? a.key : a.item;
2838
+ this[e](t);
2839
+ },
2840
+ add() {
2841
+ this.$refs.editForm.init(null);
2842
+ },
2843
+ del(a, e, t) {
2844
+ let s = this;
2845
+ this.$confirm(s.$i18nt("gd.https.delContent", "\u662F\u5426\u5220\u9664\u9009\u4E2D\u6570\u636E\u7684\u6240\u6709\u8BB0\u5F55?"), s.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2846
+ showClose: !1,
2847
+ confirmButtonLoading: !1,
2848
+ cancelButtonLoading: !1,
2849
+ closeOnClickModal: !1,
2850
+ type: "warning",
2851
+ confirmButtonClass: "el-button--danger",
2852
+ customClass: "custom-alert",
2853
+ confirmButtonText: s.$i18nt("gd.https.delOk", "\u786E\u8BA4\u5220\u9664"),
2854
+ cancelButtonText: s.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2855
+ beforeClose: (r, i, o) => {
2856
+ if (r !== "confirm") {
2857
+ o();
2858
+ return;
2859
+ }
2860
+ i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1;
2861
+ let l = e == 1 ? ie : oe, d = e == 1 ? { jobId: a.jobid } : { jobId: a.jobid, triggerId: a.triggerid };
2862
+ l(d).then((k) => {
2863
+ if (o(), i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, !k.success) {
2864
+ s.$message.error(s.$i18nt("gd.https.delFail", "\u5220\u9664\u5931\u8D25: ") + k.message);
2865
+ return;
2866
+ }
2867
+ s.$message.success(s.$i18nt("gd.https.delSucc", "\u5220\u9664\u6210\u529F")), e == 1 ? s.refresh() : this.updataTriggerTableData(a);
2868
+ }).catch((k) => {
2869
+ s.$message.error(s.$i18nt("gd.error.error", "\u9519\u8BEF") + k.message);
2870
+ });
2871
+ }
2872
+ });
2873
+ },
2874
+ firingTask() {
2875
+ let a = this;
2876
+ this.$confirm(a.$i18nt("gd.task.launchAllTaskTip", "\u662F\u5426\u7ACB\u5373\u542F\u52A8\u6240\u6709\u4F5C\u4E1A?"), a.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2877
+ showClose: !1,
2878
+ confirmButtonLoading: !1,
2879
+ cancelButtonLoading: !1,
2880
+ closeOnClickModal: !1,
2881
+ type: "warning",
2882
+ confirmButtonClass: "el-button--danger",
2883
+ customClass: "custom-alert",
2884
+ confirmButtonText: a.$i18nt("gd.task.launch", "\u7ACB\u5373\u542F\u52A8"),
2885
+ cancelButtonText: a.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2886
+ beforeClose: (e, t, s) => {
2887
+ if (e !== "confirm") {
2888
+ s();
2889
+ return;
2890
+ }
2891
+ t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, G().then((r) => {
2892
+ s(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, r.success ? (a.$message.success(a.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a.refresh()) : a.$message.error(a.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message);
2893
+ }).catch((r) => {
2894
+ a.$message.error(a.$i18nt("gd.error.error", "\u9519\u8BEF") + r.message);
2895
+ });
2896
+ }
2897
+ });
2898
+ },
2899
+ stopTask() {
2900
+ let a = this;
2901
+ this.$confirm(a.$i18nt("gd.task.stopAllTaskTip", "\u662F\u5426\u7ACB\u5373\u6682\u505C\u6240\u6709\u4F5C\u4E1A?"), a.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2902
+ showClose: !1,
2903
+ confirmButtonLoading: !1,
2904
+ cancelButtonLoading: !1,
2905
+ closeOnClickModal: !1,
2906
+ type: "warning",
2907
+ confirmButtonClass: "el-button--danger",
2908
+ customClass: "custom-alert",
2909
+ confirmButtonText: a.$i18nt("gd.task.stop", "\u7ACB\u5373\u505C\u6B62"),
2910
+ cancelButtonText: a.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2911
+ beforeClose: (e, t, s) => {
2912
+ if (e !== "confirm") {
2913
+ s();
2914
+ return;
2915
+ }
2916
+ t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, W().then((r) => {
2917
+ s(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, r.success ? (a.$message.success(a.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a.refresh()) : a.$message.error(a.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message);
2918
+ }).catch((r) => {
2919
+ a.$message.error(a.$i18nt("gd.error.error", "\u9519\u8BEF") + r.message);
2920
+ });
2921
+ }
2922
+ });
2923
+ },
2924
+ wakeJob() {
2925
+ let a = this;
2926
+ this.$confirm(a.$i18nt("gd.task.wakeJobTip", "\u662F\u5426\u5F3A\u5236\u5524\u9192\u4F5C\u4E1A\u8C03\u5EA6\u5668?"), a.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
2927
+ showClose: !1,
2928
+ confirmButtonLoading: !1,
2929
+ cancelButtonLoading: !1,
2930
+ closeOnClickModal: !1,
2931
+ type: "warning",
2932
+ confirmButtonClass: "el-button--danger",
2933
+ customClass: "custom-alert",
2934
+ confirmButtonText: a.$i18nt("gd.task.wake", "\u7ACB\u5373\u5524\u9192"),
2935
+ cancelButtonText: a.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2936
+ beforeClose: (e, t, s) => {
2937
+ if (e !== "confirm") {
2938
+ s();
2939
+ return;
2940
+ }
2941
+ t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, ee().then((r) => {
2942
+ if (s(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, !r.success) {
2943
+ a.$message.error(a.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message);
2944
+ return;
2945
+ }
2946
+ a.$message.success(a.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a.refresh();
2947
+ }).catch((r) => {
2948
+ a.$message.error(a.$i18nt("gd.error.error", "\u9519\u8BEF") + r.message);
2949
+ });
2950
+ }
2951
+ });
2952
+ },
2953
+ triggerJob() {
2954
+ let a = this;
2955
+ this.$confirm(
2956
+ a.$i18nt("gd.task.triggerJobTip", "\u662F\u5426\u5F3A\u5236\u89E6\u53D1\u6240\u6709\u4F5C\u4E1A\u6301\u4E45\u5316?"),
2957
+ a.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
2958
+ {
2959
+ showClose: !1,
2960
+ confirmButtonLoading: !1,
2961
+ cancelButtonLoading: !1,
2962
+ closeOnClickModal: !1,
2963
+ type: "warning",
2964
+ confirmButtonClass: "el-button--danger",
2965
+ customClass: "custom-alert",
2966
+ confirmButtonText: a.$i18nt("gd.task.trigger", "\u7ACB\u5373\u89E6\u53D1"),
2967
+ cancelButtonText: a.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
2968
+ beforeClose: (e, t, s) => {
2969
+ if (e !== "confirm") {
2970
+ s();
2971
+ return;
2972
+ }
2973
+ t.confirmButtonLoading = !0, t.cancelButtonLoading = !0, t.showCancelButton = !1, te().then((r) => {
2974
+ if (s(), t.confirmButtonLoading = !1, t.cancelButtonLoading = !1, t.showCancelButton = !0, !r.success) {
2975
+ a.$message.error(a.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + r.message);
2976
+ return;
2977
+ }
2978
+ a.$message.success(a.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), a.refresh();
2979
+ }).catch((r) => {
2980
+ a.$message.error(a.$i18nt("gd.error.error", "\u9519\u8BEF") + r.message);
2981
+ });
2982
+ }
2983
+ }
2984
+ );
2985
+ },
2986
+ jobOperate(a, e) {
2987
+ let t = this;
2988
+ this.$confirm(
2989
+ a == 1 ? t.$i18nt("gd.task.launchTaskTip", "\u662F\u5426\u7ACB\u5373\u542F\u52A8\u6B64\u4F5C\u4E1A?") : t.$i18nt("gd.task.stopTaskTip", "\u662F\u5426\u7ACB\u5373\u6682\u505C\u6B64\u4F5C\u4E1A?"),
2990
+ t.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
2991
+ {
2992
+ showClose: !1,
2993
+ confirmButtonLoading: !1,
2994
+ cancelButtonLoading: !1,
2995
+ closeOnClickModal: !1,
2996
+ type: "warning",
2997
+ confirmButtonClass: "el-button--danger",
2998
+ customClass: "custom-alert",
2999
+ confirmButtonText: a == 1 ? t.$i18nt("gd.task.launch", "\u7ACB\u5373\u542F\u52A8") : t.$i18nt("gd.task.stop", "\u7ACB\u5373\u505C\u6B62"),
3000
+ cancelButtonText: t.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
3001
+ beforeClose: (s, r, i) => {
3002
+ if (s !== "confirm") {
3003
+ i();
3004
+ return;
3005
+ }
3006
+ r.confirmButtonLoading = !0, r.cancelButtonLoading = !0, r.showCancelButton = !1, (a == 1 ? Q : U)({ jobId: e.jobid }).then((l) => {
3007
+ if (i(), r.confirmButtonLoading = !1, r.cancelButtonLoading = !1, r.showCancelButton = !0, !l.success) {
3008
+ t.$message.error(t.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + l.message);
3009
+ return;
3010
+ }
3011
+ t.$message.success(t.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), t.refresh();
3012
+ }).catch((l) => {
3013
+ t.$message.error(t.$i18nt("gd.error.error", "\u9519\u8BEF") + l.message);
3014
+ });
3015
+ }
3016
+ }
3017
+ );
3018
+ },
3019
+ triggersOperate(a, e, t) {
3020
+ let s = this;
3021
+ this.$confirm(
3022
+ a == 1 ? s.$i18nt("gd.task.launchTriggerTip", "\u662F\u5426\u7ACB\u5373\u542F\u52A8\u6B64\u89E6\u53D1\u5668?") : s.$i18nt("gd.task.stopTriggerTip", "\u662F\u5426\u7ACB\u5373\u505C\u6B62\u6B64\u89E6\u53D1\u5668?"),
3023
+ s.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"),
3024
+ {
3025
+ showClose: !1,
3026
+ confirmButtonLoading: !1,
3027
+ cancelButtonLoading: !1,
3028
+ closeOnClickModal: !1,
3029
+ type: "warning",
3030
+ confirmButtonClass: "el-button--danger",
3031
+ customClass: "custom-alert",
3032
+ confirmButtonText: a == 1 ? s.$i18nt("gd.task.launch", "\u7ACB\u5373\u542F\u52A8") : s.$i18nt("gd.task.stop", "\u7ACB\u5373\u505C\u6B62"),
3033
+ cancelButtonText: s.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
3034
+ beforeClose: (r, i, o) => {
3035
+ if (r !== "confirm") {
3036
+ o();
3037
+ return;
3038
+ }
3039
+ i.confirmButtonLoading = !0, i.cancelButtonLoading = !0, i.showCancelButton = !1, (a == 1 ? Z : X)({ jobId: e.jobid, triggerId: e.triggerid }).then((d) => {
3040
+ if (o(), i.confirmButtonLoading = !1, i.cancelButtonLoading = !1, i.showCancelButton = !0, !d.success) {
3041
+ s.$message.error(s.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + d.message);
3042
+ return;
3043
+ }
3044
+ s.$message.success(s.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), this.updataTriggerTableData(e);
3045
+ }).catch((d) => {
3046
+ s.$message.error(s.$i18nt("gd.error.error", "\u9519\u8BEF") + d.message);
3047
+ });
3048
+ }
3049
+ }
3050
+ );
3051
+ },
3052
+ colony() {
3053
+ this.$refs.colony.open();
3054
+ },
3055
+ force(a) {
3056
+ a == 1 ? this.wakeJob() : this.triggerJob();
3057
+ },
3058
+ jobRun(a) {
3059
+ let e = this;
3060
+ this.$confirm(e.$i18nt("gd.task.jobRunTip", "\u662F\u5426\u7ACB\u5373\u6267\u884C?"), e.$i18nt("gd.https.delTitle", "\u6E29\u99A8\u63D0\u793A"), {
3061
+ showClose: !1,
3062
+ confirmButtonLoading: !1,
3063
+ cancelButtonLoading: !1,
3064
+ closeOnClickModal: !1,
3065
+ type: "warning",
3066
+ confirmButtonClass: "el-button--danger",
3067
+ customClass: "custom-alert",
3068
+ confirmButtonText: e.$i18nt("gd.task.jobRun", "\u7ACB\u5373\u6267\u884C"),
3069
+ cancelButtonText: e.$i18nt("gd.https.delCancel", "\u53D6\u6D88"),
3070
+ beforeClose: (t, s, r) => {
3071
+ if (t !== "confirm") {
3072
+ r();
3073
+ return;
3074
+ }
3075
+ s.confirmButtonLoading = !0, s.cancelButtonLoading = !0, s.showCancelButton = !1, ce({ jobId: a.jobid }).then((i) => {
3076
+ if (r(), s.confirmButtonLoading = !1, s.cancelButtonLoading = !1, s.showCancelButton = !0, !i.success) {
3077
+ e.$message.error(e.$i18nt("gd.https.operateFail", "\u64CD\u4F5C\u5931\u8D25") + i.message);
3078
+ return;
3079
+ }
3080
+ e.$message.success(e.$i18nt("gd.https.operateSucc", "\u64CD\u4F5C\u6210\u529F")), e.refresh();
3081
+ }).catch((i) => {
3082
+ e.$message.error(e.$i18nt("gd.error.error", "\u9519\u8BEF") + i.message);
3083
+ });
3084
+ }
3085
+ });
3086
+ },
3087
+ saveQueries(a) {
3088
+ this.queryParam = a, this.refresh();
3089
+ },
3090
+ updataTriggerTableData(a, e = 1500) {
3091
+ this.$nextTick(() => {
3092
+ setTimeout(() => {
3093
+ const t = a.uuid !== void 0 ? a.uuid : this.uuids;
3094
+ this.uuids = t, this.$refs[`${a.jobid}InnerTableRef${t}`] && this.$refs[`${a.jobid}InnerTableRef${t}`].refresh(a);
3095
+ }, e);
3096
+ });
3097
+ }
3098
+ },
3099
+ mounted() {
3100
+ this.customSize = this.tableSize;
3101
+ }
3102
+ };
3103
+ var St = function() {
3104
+ var e = this, t = e._self._c;
3105
+ return t("div", { staticClass: "gd-page-view" }, [t("div", { staticClass: "page-view-list gd-timers", staticStyle: { padding: "0px" } }, [t("gd-tables", { ref: "table", attrs: { dataSource: e.loadData, size: e.tableSize, pageSize: e.tablePageSize, columns: e.tableColumns, selectedRowKeys: e.selectedRowKeys, height: e.getHeight, filtering: !0, rowKey: "uuid", tableExpand: e.currentExpandRow }, on: { expandChange: e.onExpandChange, changTableSize: e.changTableSize }, scopedSlots: e._u([{ key: "jobId", fn: function({ row: s }) {
3106
+ return [t("gd-tooltip", { attrs: { rowKey: "jobid", row: s, highlight: "" }, on: { click: e.editForm } })];
3107
+ } }, { key: "jobType", fn: function({ row: s }) {
3108
+ return [t("gd-tooltip", { attrs: { rowKey: "jobtype", row: s } })];
3109
+ } }, { key: "description", fn: function({ row: s }) {
3110
+ return [t("gd-tooltip", { attrs: { rowKey: "description", row: s } })];
3111
+ } }, { key: "concurrent", fn: function({ row: s }) {
3112
+ return [s.concurrent ? t("el-tag", { staticClass: "tag-green", attrs: { color: "green" } }, [e._v(e._s(e.$i18nt("gd.task.parallel", "\u5E76\u884C")))]) : t("el-tag", { staticClass: "tag-orange", attrs: { color: "orange" } }, [e._v(e._s(e.$i18nt("gd.task.serial", "serial")))])];
3113
+ } }, { key: "createType", fn: function({ row: s }) {
3114
+ return [s.createtype === 0 ? t("el-tag", { staticClass: "tag-grey", attrs: { color: "grey" } }, [e._v(e._s(e.$i18nt("gd.task.builtIn", "\u5185\u7F6E")))]) : s.createtype === 1 ? t("el-tag", { staticClass: "tag-red", attrs: { color: "red" } }, [e._v(e._s(e.$i18nt("gd.task.script", "script")))]) : t("el-tag", { staticClass: "tag-green", attrs: { color: "green" } }, [e._v(e._s(e.$i18nt("gd.task.httpRequest", "Http\u8BF7\u6C42")))])];
3115
+ } }, { key: "properties", fn: function({ row: s }) {
3116
+ return [t("gd-tooltip", { attrs: { rowKey: "properties", row: s } })];
3117
+ } }, { key: "updatedTime", fn: function({ row: s }) {
3118
+ return [t("gd-tooltip", { attrs: { rowKey: "updatedtime", row: s } })];
3119
+ } }, { key: "action", fn: function(s) {
3120
+ return [e.$hasPerm("sysTimers:edit") ? t("el-button", { staticClass: "active-color", attrs: { type: "text", size: e.customSize }, on: { click: function(r) {
3121
+ return e.editForm(s.row);
3122
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.edit", "\u7F16\u8F91")) + " ")]) : e._e(), e.$hasPerm("sysTimers:delete") ? t("el-button", { staticStyle: { color: "red" }, attrs: { type: "text", size: e.customSize }, on: { click: function(r) {
3123
+ return e.del(s.row, 1, s.row);
3124
+ } } }, [e._v(" " + e._s(e.$i18nt("gd.btn.del", "\u5220\u9664")) + " ")]) : e._e(), e.$hasPerm("sysTimersTrigger:add") || e.$hasPerm("sysTimers:start") || e.$hasPerm("sysTimers:stop") ? t("el-dropdown", [t("span", { staticClass: "el-dropdown-link active-color", class: `el-button--${e.customSize}` }, [e._v(" " + e._s(e.$i18nt("gd.btn.more", "\u66F4\u591A")) + " "), t("i", { staticClass: "el-icon-arrow-down" })]), t("el-dropdown-menu", { attrs: { slot: "dropdown" }, slot: "dropdown" }, [e.$hasPerm("sysTimersTrigger:add") ? t("el-dropdown-item", { attrs: { command: "addTrigger" }, nativeOn: { click: function(r) {
3125
+ return e.addTrigger(s.row, s.index);
3126
+ } } }, [t("span", { class: `el-button--${e.customSize}` }, [e._v(e._s(e.$i18nt("gd.task.addTrigger", "\u589E\u52A0\u89E6\u53D1\u5668")))])]) : e._e(), e.$hasPerm("sysTimers:start") ? t("el-dropdown-item", { nativeOn: { click: function(r) {
3127
+ return e.jobOperate(1, s.row);
3128
+ } } }, [t("span", { class: `el-button--${e.customSize}` }, [e._v(" " + e._s(e.$i18nt("gd.task.launchTask", "\u542F\u52A8\u4F5C\u4E1A")) + " ")])]) : e._e(), e.$hasPerm("sysTimers:stop") ? t("el-dropdown-item", { nativeOn: { click: function(r) {
3129
+ return e.jobOperate(2, s.row);
3130
+ } } }, [t("span", { class: `el-button--${e.customSize}` }, [e._v(" " + e._s(e.$i18nt("gd.task.stopTask", "\u6682\u505C\u4F5C\u4E1A")) + " ")])]) : e._e(), e.$hasPerm("sysTimers:edit") ? t("el-dropdown-item", { nativeOn: { click: function(r) {
3131
+ return e.jobRun(s.row);
3132
+ } } }, [t("span", { class: `el-button--${e.customSize}` }, [e._v(" " + e._s(e.$i18nt("gd.task.jobRun", "\u7ACB\u5373\u6267\u884C")) + " ")])]) : e._e()], 1)], 1) : e._e()];
3133
+ } }, { key: "tableExpand", fn: function(s) {
3134
+ return [t("childRenTable", { ref: `${s.row.jobid}InnerTableRef${s.row.uuid}`, attrs: { columns: e.innerColumns, size: e.tableSize }, on: { editTriggers: e.editTriggers, del: e.del, triggersOperate: e.triggersOperate } })];
3135
+ } }, { key: "operator", fn: function() {
3136
+ return [t("div", { staticClass: "gd-table-operator" }, [t("div", { staticClass: "gd-table-operatorl" }, [t("el-input", { staticClass: "table-operator-input", attrs: { placeholder: e.$i18nt("gd.task.jobId", "\u4F5C\u4E1A\u7F16\u53F7"), clearable: "" }, nativeOn: { keyup: function(s) {
3137
+ return !s.type.indexOf("key") && e._k(s.keyCode, "enter", 13, s.key, "Enter") ? null : e.refresh.apply(null, arguments);
3138
+ } }, model: { value: e.queryParam.jobId, callback: function(s) {
3139
+ e.$set(e.queryParam, "jobId", s);
3140
+ }, expression: "queryParam.jobId" } }), t("div", { staticClass: "table-operator-search", on: { click: e.refresh } }, [t("i", { staticClass: "el-input__icon el-icon-search" })])], 1), t("div", { staticClass: "gd-table-operatorr" }, [t("gd-btn-list", { attrs: { sysViewButtons: e.tableButtons }, on: { functionName: e.doEvent } })], 1)])];
3141
+ }, proxy: !0 }, { key: "filtering", fn: function({ colse: s, visible: r }) {
3142
+ return [t("gd-table-queries-field", { attrs: { columns: e.tableQueries, height: e.getHeight, queryParam: e.queryParam, colse: s, visible: r }, on: { save: e.saveQueries } })];
3143
+ } }]) })], 1), t("editForm", { ref: "editForm", on: { ok: e.refresh } }), t("editTrigger", { ref: "editTrigger", on: { ok: e.okTrigger } }), t("colony", { ref: "colony" })], 1);
3144
+ }, Ct = [], Dt = /* @__PURE__ */ g(
3145
+ Tt,
3146
+ St,
3147
+ Ct,
3148
+ !1,
3149
+ null,
3150
+ "6993e681",
3151
+ null,
3152
+ null
3153
+ );
3154
+ const J = Dt.exports;
3155
+ J.install = function(a) {
3156
+ a.component(J.name, J);
3157
+ };
3158
+ export {
3159
+ J as G
3160
+ };