Blame view

ant-design-vue-jeecg/src/views/jeecg/modules/VueCronModal.vue 24.5 KB
肖超群 authored
1
2
3
4
5
6
7
8
9
10
11
12
<template>
  <a-modal
    title="cron表达式"
    :width="modalWidth"
    :visible="visible"
    :confirmLoading="confirmLoading"
    @ok="change"
    @cancel="close"
    cancelText="关闭">
    <div class="card-container">
      <a-tabs type="card">
        <a-tab-pane key="1" type="card">
肖超群 authored
13
          <span slot="tab"><a-icon type="schedule"/> 秒</span>
肖超群 authored
14
15
16
17
18
19
          <a-radio-group v-model="result.second.cronEvery">
            <a-row>
              <a-radio value="1">每一秒钟</a-radio>
            </a-row>
            <a-row>
              <a-radio value="2">每隔
肖超群 authored
20
21
                <a-input-number size="small" v-model="result.second.incrementIncrement" :min="1"
                                :max="60"></a-input-number>
肖超群 authored
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
                秒执行 从
                <a-input-number size="small" v-model="result.second.incrementStart" :min="0" :max="59"></a-input-number>
                秒开始
              </a-radio>
            </a-row>
            <a-row>
              <a-radio value="3">具体秒数(可多选)</a-radio>
              <a-select style="width:354px;" size="small" mode="multiple" v-model="result.second.specificSpecific">
                <a-select-option v-for="(val,index) in 60" :key="index" :value="index">{{ index }}</a-select-option>
              </a-select>
            </a-row>
            <a-row>
              <a-radio value="4">周期从
                <a-input-number size="small" v-model="result.second.rangeStart" :min="1" :max="60"></a-input-number>

                <a-input-number size="small" v-model="result.second.rangeEnd" :min="0" :max="59"></a-input-number>

              </a-radio>
            </a-row>
          </a-radio-group>
        </a-tab-pane>
        <a-tab-pane key="2">
肖超群 authored
44
          <span slot="tab"><a-icon type="schedule"/>分</span>
肖超群 authored
45
46
47
48
49
50
51
          <div class="tabBody">
            <a-radio-group v-model="result.minute.cronEvery">
              <a-row>
                <a-radio value="1">每一分钟</a-radio>
              </a-row>
              <a-row>
                <a-radio value="2">每隔
肖超群 authored
52
53
                  <a-input-number size="small" v-model="result.minute.incrementIncrement" :min="1"
                                  :max="60"></a-input-number>
肖超群 authored
54
                  分执行 从
肖超群 authored
55
56
                  <a-input-number size="small" v-model="result.minute.incrementStart" :min="0"
                                  :max="59"></a-input-number>
肖超群 authored
57
58
59
60
61
62
                  分开始
                </a-radio>
              </a-row>
              <a-row>
                <a-radio value="3">具体分钟数(可多选)</a-radio>
                <a-select style="width:340px;" size="small" mode="multiple" v-model="result.minute.specificSpecific">
肖超群 authored
63
64
65
66
                  <a-select-option v-for="(val,index) in Array(60)" :key="index" :value="index"> {{
                      index
                    }}
                  </a-select-option>
肖超群 authored
67
68
69
70
71
72
73
74
75
76
77
78
79
80
                </a-select>
              </a-row>
              <a-row>
                <a-radio value="4">周期从
                  <a-input-number size="small" v-model="result.minute.rangeStart" :min="1" :max="60"></a-input-number>

                  <a-input-number size="small" v-model="result.minute.rangeEnd" :min="0" :max="59"></a-input-number>

                </a-radio>
              </a-row>
            </a-radio-group>
          </div>
        </a-tab-pane>
        <a-tab-pane key="3">
肖超群 authored
81
          <span slot="tab"><a-icon type="schedule"/> 时</span>
肖超群 authored
82
83
84
85
86
87
88
          <div class="tabBody">
            <a-radio-group v-model="result.hour.cronEvery">
              <a-row>
                <a-radio value="1">每一小时</a-radio>
              </a-row>
              <a-row>
                <a-radio value="2">每隔
肖超群 authored
89
90
                  <a-input-number size="small" v-model="result.hour.incrementIncrement" :min="0"
                                  :max="23"></a-input-number>
肖超群 authored
91
92
93
94
95
96
97
98
                  小时执行 从
                  <a-input-number size="small" v-model="result.hour.incrementStart" :min="0" :max="23"></a-input-number>
                  小时开始
                </a-radio>
              </a-row>
              <a-row>
                <a-radio class="long" value="3">具体小时数(可多选)</a-radio>
                <a-select style="width:340px;" size="small" mode="multiple" v-model="result.hour.specificSpecific">
肖超群 authored
99
                  <a-select-option v-for="(val,index) in Array(24)" :key="index">{{ index }}</a-select-option>
肖超群 authored
100
101
102
103
104
105
106
107
108
109
110
111
112
113
                </a-select>
              </a-row>
              <a-row>
                <a-radio value="4">周期从
                  <a-input-number size="small" v-model="result.hour.rangeStart" :min="0" :max="23"></a-input-number>

                  <a-input-number size="small" v-model="result.hour.rangeEnd" :min="0" :max="23"></a-input-number>
                  小时
                </a-radio>
              </a-row>
            </a-radio-group>
          </div>
        </a-tab-pane>
        <a-tab-pane key="4">
肖超群 authored
114
          <span slot="tab"><a-icon type="schedule"/>  天</span>
肖超群 authored
115
116
117
118
119
120
121
          <div class="tabBody">
            <a-radio-group v-model="result.day.cronEvery">
              <a-row>
                <a-radio value="1">每一天</a-radio>
              </a-row>
              <a-row>
                <a-radio value="2">每隔
肖超群 authored
122
123
                  <a-input-number size="small" v-model="result.week.incrementIncrement" :min="1"
                                  :max="7"></a-input-number>
肖超群 authored
124
125
                  周执行 从
                  <a-select size="small" v-model="result.week.incrementStart">
肖超群 authored
126
127
128
129
                    <a-select-option v-for="(val,index) in Array(7)" :key="index" :value="index+1">{{
                        weekDays[index]
                      }}
                    </a-select-option>
肖超群 authored
130
131
132
133
134
135
                  </a-select>
                  开始
                </a-radio>
              </a-row>
              <a-row>
                <a-radio value="3">每隔
肖超群 authored
136
137
                  <a-input-number size="small" v-model="result.day.incrementIncrement" :min="1"
                                  :max="31"></a-input-number>
肖超群 authored
138
139
140
141
142
143
144
145
                  天执行 从
                  <a-input-number size="small" v-model="result.day.incrementStart" :min="1" :max="31"></a-input-number>
                  天开始
                </a-radio>
              </a-row>
              <a-row>
                <a-radio class="long" value="4">具体星期几(可多选)</a-radio>
                <a-select style="width:340px;" size="small" mode="multiple" v-model="result.week.specificSpecific">
肖超群 authored
146
147
148
149
                  <a-select-option v-for="(val,index) in Array(7)" :key="index" :value="index+1">{{
                      weekDays[index]
                    }}
                  </a-select-option>
肖超群 authored
150
151
152
153
154
                </a-select>
              </a-row>
              <a-row>
                <a-radio class="long" value="5">具体天数(可多选)</a-radio>
                <a-select style="width:354px;" size="small" mode="multiple" v-model="result.day.specificSpecific">
肖超群 authored
155
156
157
158
                  <a-select-option v-for="(val,index) in Array(31)" :key="index" :value="index">{{
                      index + 1
                    }}
                  </a-select-option>
肖超群 authored
159
160
161
162
163
164
165
166
167
168
169
                </a-select>
              </a-row>
              <a-row>
                <a-radio value="6">在这个月的最后一天</a-radio>
              </a-row>
              <a-row>
                <a-radio value="7">在这个月的最后一个工作日</a-radio>
              </a-row>
              <a-row>
                <a-radio value="8">在这个月的最后一个
                  <a-select size="small" v-model="result.day.cronLastSpecificDomDay">
肖超群 authored
170
171
172
173
                    <a-select-option v-for="(val,index) in Array(7)" :key="index" :value="index+1">{{
                        weekDays[index]
                      }}
                    </a-select-option>
肖超群 authored
174
175
176
177
178
                  </a-select>
                </a-radio>
              </a-row>
              <a-row>
                <a-radio value="9">
肖超群 authored
179
180
                  <a-input-number size="small" v-model="result.day.cronDaysBeforeEomMinus" :min="1"
                                  :max="31"></a-input-number>
肖超群 authored
181
182
183
184
185
                  在本月底前
                </a-radio>
              </a-row>
              <a-row>
                <a-radio value="10">最近的工作日(周一至周五)至本月
肖超群 authored
186
187
                  <a-input-number size="small" v-model="result.day.cronDaysNearestWeekday" :min="1"
                                  :max="31"></a-input-number>
肖超群 authored
188
189
190
191
192
193
194
195

                </a-radio>
              </a-row>
              <a-row>
                <a-radio value="11">在这个月的第
                  <a-input-number size="small" v-model="result.week.cronNthDayNth" :min="1" :max="5"></a-input-number>

                  <a-select size="small" v-model="result.week.cronNthDayDay">
肖超群 authored
196
197
198
199
                    <a-select-option v-for="(val,index) in Array(7)" :key="index" :value="index+1">{{
                        weekDays[index]
                      }}
                    </a-select-option>
肖超群 authored
200
201
202
203
204
205
206
207
                  </a-select>

                </a-radio>
              </a-row>
            </a-radio-group>
          </div>
        </a-tab-pane>
        <a-tab-pane key="5">
肖超群 authored
208
          <span slot="tab"><a-icon type="schedule"/> 月</span>
肖超群 authored
209
210
211
212
213
214
215
          <div class="tabBody">
            <a-radio-group v-model="result.month.cronEvery">
              <a-row>
                <a-radio value="1">每一月</a-radio>
              </a-row>
              <a-row>
                <a-radio value="2">每隔
肖超群 authored
216
217
                  <a-input-number size="small" v-model="result.month.incrementIncrement" :min="0"
                                  :max="12"></a-input-number>
肖超群 authored
218
                  月执行 从
肖超群 authored
219
220
                  <a-input-number size="small" v-model="result.month.incrementStart" :min="0"
                                  :max="12"></a-input-number>
肖超群 authored
221
222
223
224
225
                  月开始
                </a-radio>
              </a-row>
              <a-row>
                <a-radio class="long" value="3">具体月数(可多选)</a-radio>
肖超群 authored
226
227
228
229
230
231
                <a-select style="width:354px;" size="small" filterable mode="multiple"
                          v-model="result.month.specificSpecific">
                  <a-select-option v-for="(val,index) in Array(12)" :key="index" :value="index">{{
                      index + 1
                    }}
                  </a-select-option>
肖超群 authored
232
233
234
235
236
237
238
239
240
241
242
243
244
245
                </a-select>
              </a-row>
              <a-row>
                <a-radio value="4">从
                  <a-input-number size="small" v-model="result.month.rangeStart" :min="1" :max="12"></a-input-number>

                  <a-input-number size="small" v-model="result.month.rangeEnd" :min="1" :max="12"></a-input-number>
                  月之间的每个月
                </a-radio>
              </a-row>
            </a-radio-group>
          </div>
        </a-tab-pane>
        <a-tab-pane key="6">
肖超群 authored
246
          <span slot="tab"><a-icon type="schedule"/> 年</span>
肖超群 authored
247
248
249
250
251
252
253
          <div class="tabBody">
            <a-radio-group v-model="result.year.cronEvery">
              <a-row>
                <a-radio value="1">每一年</a-radio>
              </a-row>
              <a-row>
                <a-radio value="2">每隔
肖超群 authored
254
255
                  <a-input-number size="small" v-model="result.year.incrementIncrement" :min="1"
                                  :max="99"></a-input-number>
肖超群 authored
256
                  年执行 从
肖超群 authored
257
258
                  <a-input-number size="small" v-model="result.year.incrementStart" :min="2019"
                                  :max="2119"></a-input-number>
肖超群 authored
259
260
261
262
263
                  年开始
                </a-radio>
              </a-row>
              <a-row>
                <a-radio class="long" value="3">具体年份(可多选)</a-radio>
肖超群 authored
264
265
266
267
268
269
                <a-select style="width:354px;" size="small" filterable mode="multiple"
                          v-model="result.year.specificSpecific">
                  <a-select-option v-for="(val,index) in Array(100)" :key="index" :value="2019+index">{{
                      2019 + index
                    }}
                  </a-select-option>
肖超群 authored
270
271
272
273
                </a-select>
              </a-row>
              <a-row>
                <a-radio value="4">从
肖超群 authored
274
275
                  <a-input-number size="small" v-model="result.year.rangeStart" :min="2019"
                                  :max="2119"></a-input-number>
肖超群 authored
276
277
278
279
280
281
282
283
284
285

                  <a-input-number size="small" v-model="result.year.rangeEnd" :min="2019" :max="2119"></a-input-number>
                  年之间的每一年
                </a-radio>
              </a-row>
            </a-radio-group>
          </div>
        </a-tab-pane>
      </a-tabs>
      <div class="bottom">
肖超群 authored
286
        <span class="value">{{ this.cron.label }}</span>
肖超群 authored
287
288
289
290
291
      </div>
    </div>
  </a-modal>
</template>
<script>
肖超群 authored
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
import pick from 'lodash.pick'

export default {
  name: 'VueCron',
  props: ['data', 'i18n'],
  data() {
    return {
      visible: false,
      confirmLoading: false,
      size: 'large',
      weekDays: ['天', '一', '二', '三', '四', '五', '六'].map(val => '星期' + val),
      result: {
        second: {
          cronEvery: '',
          incrementStart: 3,
          incrementIncrement: 5,
          rangeStart: 1,
          rangeEnd: 0,
          specificSpecific: [],
肖超群 authored
311
        },
肖超群 authored
312
313
314
315
316
317
318
        minute: {
          cronEvery: '',
          incrementStart: 3,
          incrementIncrement: 5,
          rangeStart: 1,
          rangeEnd: '0',
          specificSpecific: [],
肖超群 authored
319
        },
肖超群 authored
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
        hour: {
          cronEvery: '',
          incrementStart: 3,
          incrementIncrement: 5,
          rangeStart: '0',
          rangeEnd: '0',
          specificSpecific: [],
        },
        day: {
          cronEvery: '',
          incrementStart: 1,
          incrementIncrement: '1',
          rangeStart: '',
          rangeEnd: '',
          specificSpecific: [],
          cronLastSpecificDomDay: 1,
          cronDaysBeforeEomMinus: '',
          cronDaysNearestWeekday: '',
        },
        week: {
          cronEvery: '',
          incrementStart: 1,
          incrementIncrement: '1',
          specificSpecific: [],
          cronNthDayDay: 1,
          cronNthDayNth: '1',
        },
        month: {
          cronEvery: '',
          incrementStart: 3,
          incrementIncrement: 5,
          rangeStart: 1,
          rangeEnd: 1,
          specificSpecific: [],
        },
        year: {
          cronEvery: '',
          incrementStart: 2017,
          incrementIncrement: 1,
          rangeStart: 2019,
          rangeEnd: 2019,
          specificSpecific: [],
        },
        label: ''
      },
      output: {
        second: {
          cronEvery: '',
          incrementStart: '',
          incrementIncrement: '',
          rangeStart: '',
          rangeEnd: '',
          specificSpecific: [],
        },
        minute: {
          cronEvery: '',
          incrementStart: '',
          incrementIncrement: '',
          rangeStart: '',
          rangeEnd: '',
          specificSpecific: [],
        },
        hour: {
          cronEvery: '',
          incrementStart: '',
          incrementIncrement: '',
          rangeStart: '',
          rangeEnd: '',
          specificSpecific: [],
        },
        day: {
          cronEvery: '',
          incrementStart: '',
          incrementIncrement: '',
          rangeStart: '',
          rangeEnd: '',
          specificSpecific: [],
          cronLastSpecificDomDay: '',
          cronDaysBeforeEomMinus: '',
          cronDaysNearestWeekday: '',
肖超群 authored
400
        },
肖超群 authored
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
        week: {
          cronEvery: '',
          incrementStart: '',
          incrementIncrement: '',
          specificSpecific: [],
          cronNthDayDay: '',
          cronNthDayNth: '',
        },
        month: {
          cronEvery: '',
          incrementStart: '',
          incrementIncrement: '',
          rangeStart: '',
          rangeEnd: '',
          specificSpecific: [],
        },
        year: {
          cronEvery: '',
          incrementStart: '',
          incrementIncrement: '',
          rangeStart: '',
          rangeEnd: '',
          specificSpecific: [],
肖超群 authored
424
        }
肖超群 authored
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
      }
    }
  },
  computed: {
    modalWidth() {
      return 608;
    },
    text() {
      return Language['cn']
    },
    secondsText() {
      let seconds = '';
      let cronEvery = this.result.second.cronEvery;
      switch (cronEvery.toString()) {
        case '1':
          seconds = '*';
          break;
        case '2':
          seconds = this.result.second.incrementStart + '/' + this.result.second.incrementIncrement;
          break;
        case '3':
          this.result.second.specificSpecific.map(val => {
            seconds += val + ','
          });
          seconds = seconds.slice(0, -1);
          break;
        case '4':
          seconds = this.result.second.rangeStart + '-' + this.result.second.rangeEnd;
          break;
      }
      return seconds;
    },
    minutesText() {
      let minutes = '';
      let cronEvery = this.result.minute.cronEvery;
      switch (cronEvery.toString()) {
        case '1':
          minutes = '*';
          break;
        case '2':
          minutes = this.result.minute.incrementStart + '/' + this.result.minute.incrementIncrement;
          break;
        case '3':
          this.result.minute.specificSpecific.map(val => {
            minutes += val + ','
          });
          minutes = minutes.slice(0, -1);
          break;
        case '4':
          minutes = this.result.minute.rangeStart + '-' + this.result.minute.rangeEnd;
          break;
      }
      return minutes;
    },
    hoursText() {
      let hours = '';
      let cronEvery = this.result.hour.cronEvery;
      switch (cronEvery.toString()) {
        case '1':
          hours = '*';
          break;
        case '2':
          hours = this.result.hour.incrementStart + '/' + this.result.hour.incrementIncrement;
          break;
        case '3':
          this.result.hour.specificSpecific.map(val => {
            hours += val + ','
          });
          hours = hours.slice(0, -1);
          break;
        case '4':
          hours = this.result.hour.rangeStart + '-' + this.result.hour.rangeEnd;
          break;
      }
      return hours;
    },
    daysText() {
      let days = '';
      let cronEvery = this.result.day.cronEvery;
      switch (cronEvery.toString()) {
        case '1':
          break;
        case '2':
        case '4':
        case '11':
          days = '?';
          break;
        case '3':
          days = this.result.day.incrementStart + '/' + this.result.day.incrementIncrement;
          break;
        case '5':
          this.result.day.specificSpecific.map(val => {
            days += val + ','
          });
          days = days.slice(0, -1);
          break;
        case '6':
          days = "L";
          break;
        case '7':
          days = "LW";
          break;
        case '8':
          days = this.result.day.cronLastSpecificDomDay + 'L';
          break;
        case '9':
          days = 'L-' + this.result.day.cronDaysBeforeEomMinus;
          break;
        case '10':
          days = this.result.day.cronDaysNearestWeekday + "W";
          break
      }
      return days;
    },
    weeksText() {
      let weeks = '';
      let cronEvery = this.result.day.cronEvery;
      switch (cronEvery.toString()) {
        case '1':
        case '3':
        case '5':
          weeks = '?';
          break;
        case '2':
          weeks = this.result.week.incrementStart + '/' + this.result.week.incrementIncrement;
          break;
        case '4':
          this.result.week.specificSpecific.map(val => {
            weeks += val + ','
          });
          weeks = weeks.slice(0, -1);
          break;
        case '6':
        case '7':
        case '8':
        case '9':
        case '10':
          weeks = "?";
          break;
        case '11':
          weeks = this.result.week.cronNthDayDay + "#" + this.result.week.cronNthDayNth;
          break;
      }
      return weeks;
    },
    monthsText() {
      let months = '';
      let cronEvery = this.result.month.cronEvery;
      switch (cronEvery.toString()) {
        case '1':
          months = '*';
          break;
        case '2':
          months = this.result.month.incrementStart + '/' + this.result.month.incrementIncrement;
          break;
        case '3':
          this.result.month.specificSpecific.map(val => {
            months += val + ','
          });
          months = months.slice(0, -1);
          break;
        case '4':
          months = this.result.month.rangeStart + '-' + this.result.month.rangeEnd;
          break;
      }
      return months;
    },
    yearsText() {
      let years = '';
      let cronEvery = this.result.year.cronEvery;
      switch (cronEvery.toString()) {
        case '1':
          years = '*';
          break;
        case '2':
          years = this.result.year.incrementStart + '/' + this.result.year.incrementIncrement;
          break;
        case '3':
          this.result.year.specificSpecific.map(val => {
            years += val + ','
          });
          years = years.slice(0, -1);
          break;
        case '4':
          years = this.result.year.rangeStart + '-' + this.result.year.rangeEnd;
          break;
      }
      return years;
    },
    cron() {
      return {
        value: this.result,
        label: `${this.secondsText || '*'} ${this.minutesText || '*'} ${this.hoursText || '*'} ${this.daysText || '*'} ${this.monthsText || '*'} ${this.weeksText || '*'} ${this.yearsText || '*'}`
      }
    },
  },
  watch: {
    data() {
      //this.rest(this.data);
肖超群 authored
624
    }
肖超群 authored
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
  },
  methods: {
    show() {
      //this.rest(pick(this.data.value,'second','minute','hour','day','week','month','year'));
      //this.rest(this.data.value);
      Object.assign(this.data.value, this.result);
      console.log('data初始化', this.data);
      //this.result = this.data.value;
      this.visible = true;
    },
    getValue() {
      return this.cron;
    },
    change() {
      console.log('返回前', this.cron);
      this.$emit('change', this.cron);
      this.close();
      this.visible = false;
    },
    close() {
      this.visible = false;
      //this.$emit('close')
    },
    rest(data) {
      for (let i in data) {
        console.log(data[i]);
        if (data[i] instanceof Object) {
          this.rest(data[i])
        } else {
          switch (typeof data[i]) {
            case 'object':
              data[i] = [];
              break;
            case 'string':
              data[i] = '';
              break;
            case 'number':
              data[i] = null;
              break;
          }
        }
      }
    },
    callback(key) {
      //console.log(key)
    }
  }
}
肖超群 authored
673
674
675
</script>

<style lang="less">
肖超群 authored
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
.card-container {
  background: #fff;
  overflow: hidden;
  padding: 12px;
  position: relative;
  width: 100%;

  .ant-tabs {
    border: 1px solid #e6ebf5;
    padding: 0;

    .ant-tabs-bar {
      margin: 0;
      outline: none;
      border-bottom: none;

      .ant-tabs-nav-container {
        margin: 0;

        .ant-tabs-tab {
          padding: 0 24px !important;
          background-color: #f5f7fa !important;
          margin-right: 0px !important;
          border-radius: 0;
          line-height: 38px;
          border: 1px solid transparent !important;
          border-bottom: 1px solid #e6ebf5 !important;
        }

        .ant-tabs-tab-active.ant-tabs-tab {
          color: #409eff;
          background-color: #fff !important;
          border-right: 1px solid #e6ebf5 !important;
          border-left: 1px solid #e6ebf5 !important;
          border-bottom: 1px solid #fff !important;
          font-weight: normal;
          transition: none !important;
肖超群 authored
713
        }
肖超群 authored
714
      }
肖超群 authored
715
    }
肖超群 authored
716
717
718
719
720
721
722
723
724
725
726
727
728
729

    .ant-tabs-tabpane {
      padding: 15px;

      .ant-row {
        margin: 10px 0;
      }

      .ant-select, .ant-input-number {
        width: 100px;
      }
    }
  }
}
肖超群 authored
730
731
</style>
<style lang="less" scoped>
肖超群 authored
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
.container-widthEn {
  width: 755px;
}

.container-widthCn {
  width: 608px;
}

.language {
  text-align: center;
  position: absolute;
  right: 13px;
  top: 13px;
  border: 1px solid transparent;
  height: 40px;
  line-height: 38px;
  font-size: 16px;
  color: #409eff;
  z-index: 1;
  background: #f5f7fa;
  outline: none;
  width: 47px;
  border-bottom: 1px solid #e6ebf5;
  border-radius: 0;
}

.card-container {
  .bottom {
    display: flex;
    justify-content: center;
    padding: 10px 0 0 0;

    .cronButton {
      margin: 0 10px;
      line-height: 40px;
肖超群 authored
767
    }
肖超群 authored
768
769
770
771
772
773
774
775
776
777
778
  }
}

.tabBody {
  .a-row {
    margin: 10px 0;

    .long {
      .a-select {
        width: 354px;
      }
肖超群 authored
779
    }
肖超群 authored
780
781
782

    .a-input-number {
      width: 110px;
肖超群 authored
783
    }
肖超群 authored
784
785
  }
}
肖超群 authored
786
</style>