sh-view 2.6.2 → 2.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/packages/components/global-components/sh-form/form.vue +110 -108
- package/packages/components/global-components/sh-form/js/useForm.js +3 -0
- package/packages/components/global-components/sh-form/query.vue +70 -68
- package/packages/components/global-components/sh-table/components/sh-column.vue +69 -69
- package/packages/components/global-components/sh-table/grid.vue +160 -159
- package/packages/components/global-components/sh-table/table.vue +218 -217
- package/packages/components/other-components/sh-cron-modal/mixin/cron-hooks.js +179 -177
- package/packages/components/other-components/sh-cron-modal/tabs/cron-day-box.vue +101 -99
- package/packages/components/other-components/sh-cron-modal/tabs/cron-hour-box.vue +68 -66
- package/packages/components/other-components/sh-cron-modal/tabs/cron-minute-box.vue +68 -66
- package/packages/components/other-components/sh-cron-modal/tabs/cron-month-box.vue +68 -66
- package/packages/components/other-components/sh-cron-modal/tabs/cron-second-box.vue +68 -66
- package/packages/components/other-components/sh-cron-modal/tabs/cron-week-box.vue +126 -125
- package/packages/components/other-components/sh-cron-modal/tabs/cron-year-box.vue +59 -57
- package/packages/components/other-components/sh-preview/components/sh-excel.vue +929 -927
- package/packages/components/other-components/sh-preview/components/sh-word.vue +78 -76
- package/packages/vxeTable/render/cell/vxe-render-checkbox.vue +28 -26
- package/packages/vxeTable/render/cell/vxe-render-checkgroup.vue +43 -42
- package/packages/vxeTable/render/cell/vxe-render-code.vue +36 -34
- package/packages/vxeTable/render/cell/vxe-render-goption.vue +104 -103
- package/packages/vxeTable/render/cell/vxe-render-href.vue +21 -19
- package/packages/vxeTable/render/cell/vxe-render-input.vue +53 -52
- package/packages/vxeTable/render/cell/vxe-render-money.vue +33 -31
- package/packages/vxeTable/render/cell/vxe-render-progress.vue +28 -26
- package/packages/vxeTable/render/cell/vxe-render-radio.vue +28 -26
- package/packages/vxeTable/render/cell/vxe-render-radiogroup.vue +43 -42
- package/packages/vxeTable/render/cell/vxe-render-select.vue +52 -51
- package/packages/vxeTable/render/cell/vxe-render-switch.vue +28 -26
- package/packages/vxeTable/render/cell/vxe-render-table.vue +51 -50
- package/packages/vxeTable/render/cell/vxe-render-textarea.vue +28 -26
- package/packages/vxeTable/render/cell/vxe-render-time.vue +44 -41
- package/packages/vxeTable/render/cell/vxe-render-tree.vue +63 -60
- package/packages/vxeTable/render/cell/vxe-render-upload.vue +28 -26
- package/packages/vxeTable/render/filters/vxe-filter-input.vue +25 -23
- package/packages/vxeTable/render/footer/vxe-footer-input.vue +23 -21
- package/packages/vxeTable/render/footer/vxe-footer-money.vue +30 -28
- package/packages/vxeTable/render/header/vxe-header-money.vue +31 -29
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sh-cron-config-list">
|
|
3
|
-
<vxe-radio-group v-model="type">
|
|
4
|
-
<div class="item">
|
|
5
|
-
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每时</vxe-radio>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="item">
|
|
8
|
-
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
-
<span> 从 </span>
|
|
10
|
-
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
-
<span> 时 至 </span>
|
|
12
|
-
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
-
<span> 时 </span>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="item">
|
|
16
|
-
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
-
<span> 从 </span>
|
|
18
|
-
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
-
<span> 时开始,间隔 </span>
|
|
20
|
-
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
-
<span> 时 </span>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="item">
|
|
24
|
-
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
-
<div class="list">
|
|
26
|
-
<vxe-checkbox-group v-model="valueList">
|
|
27
|
-
<template v-for="i in specifyRange" :key="i">
|
|
28
|
-
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
-
</template>
|
|
30
|
-
</vxe-checkbox-group>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</vxe-radio-group>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
-
import cronProps from '../mixin/cron-props'
|
|
40
|
-
import cronEmits from '../mixin/cron-emits'
|
|
41
|
-
import cronHooks from '../mixin/cron-hooks'
|
|
42
|
-
export default defineComponent({
|
|
43
|
-
name: 'CronHourBox',
|
|
44
|
-
props: {
|
|
45
|
-
...cronProps
|
|
46
|
-
},
|
|
47
|
-
emits: cronEmits,
|
|
48
|
-
setup(props, context) {
|
|
49
|
-
const { proxy } = getCurrentInstance()
|
|
50
|
-
const { $vUtils } = proxy
|
|
51
|
-
const { emit, slots } = context
|
|
52
|
-
|
|
53
|
-
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
-
defaultValue: '*',
|
|
55
|
-
minValue: 0,
|
|
56
|
-
maxValue: 23,
|
|
57
|
-
valueRange: { start: 0, end: 23 },
|
|
58
|
-
valueLoop: { start: 0, interval: 1 }
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sh-cron-config-list">
|
|
3
|
+
<vxe-radio-group v-model="type">
|
|
4
|
+
<div class="item">
|
|
5
|
+
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每时</vxe-radio>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="item">
|
|
8
|
+
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
+
<span> 从 </span>
|
|
10
|
+
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
+
<span> 时 至 </span>
|
|
12
|
+
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
+
<span> 时 </span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="item">
|
|
16
|
+
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
+
<span> 从 </span>
|
|
18
|
+
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
+
<span> 时开始,间隔 </span>
|
|
20
|
+
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
+
<span> 时 </span>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="item">
|
|
24
|
+
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
+
<div class="list">
|
|
26
|
+
<vxe-checkbox-group v-model="valueList">
|
|
27
|
+
<template v-for="i in specifyRange" :key="i">
|
|
28
|
+
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
+
</template>
|
|
30
|
+
</vxe-checkbox-group>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</vxe-radio-group>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
+
import cronProps from '../mixin/cron-props'
|
|
40
|
+
import cronEmits from '../mixin/cron-emits'
|
|
41
|
+
import cronHooks from '../mixin/cron-hooks'
|
|
42
|
+
export default defineComponent({
|
|
43
|
+
name: 'CronHourBox',
|
|
44
|
+
props: {
|
|
45
|
+
...cronProps
|
|
46
|
+
},
|
|
47
|
+
emits: cronEmits,
|
|
48
|
+
setup(props, context) {
|
|
49
|
+
const { proxy } = getCurrentInstance()
|
|
50
|
+
const { $vUtils } = proxy
|
|
51
|
+
const { emit, slots } = context
|
|
52
|
+
|
|
53
|
+
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
+
defaultValue: '*',
|
|
55
|
+
minValue: 0,
|
|
56
|
+
maxValue: 23,
|
|
57
|
+
valueRange: { start: 0, end: 23 },
|
|
58
|
+
valueLoop: { start: 0, interval: 1 }
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
...useCron
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<style scoped></style>
|
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sh-cron-config-list">
|
|
3
|
-
<vxe-radio-group v-model="type">
|
|
4
|
-
<div class="item">
|
|
5
|
-
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每分</vxe-radio>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="item">
|
|
8
|
-
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
-
<span> 从 </span>
|
|
10
|
-
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
-
<span> 分 至 </span>
|
|
12
|
-
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
-
<span> 分 </span>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="item">
|
|
16
|
-
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
-
<span> 从 </span>
|
|
18
|
-
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
-
<span> 分开始,间隔 </span>
|
|
20
|
-
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
-
<span> 分 </span>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="item">
|
|
24
|
-
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
-
<div class="list">
|
|
26
|
-
<vxe-checkbox-group v-model="valueList">
|
|
27
|
-
<template v-for="i in specifyRange" :key="i">
|
|
28
|
-
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
-
</template>
|
|
30
|
-
</vxe-checkbox-group>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</vxe-radio-group>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
-
import cronProps from '../mixin/cron-props'
|
|
40
|
-
import cronEmits from '../mixin/cron-emits'
|
|
41
|
-
import cronHooks from '../mixin/cron-hooks'
|
|
42
|
-
export default defineComponent({
|
|
43
|
-
name: 'CronMinuteBox',
|
|
44
|
-
props: {
|
|
45
|
-
...cronProps
|
|
46
|
-
},
|
|
47
|
-
emits: cronEmits,
|
|
48
|
-
setup(props, context) {
|
|
49
|
-
const { proxy } = getCurrentInstance()
|
|
50
|
-
const { $vUtils } = proxy
|
|
51
|
-
const { emit, slots } = context
|
|
52
|
-
|
|
53
|
-
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
-
defaultValue: '*',
|
|
55
|
-
minValue: 0,
|
|
56
|
-
maxValue: 59,
|
|
57
|
-
valueRange: { start: 0, end: 59 },
|
|
58
|
-
valueLoop: { start: 0, interval: 1 }
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sh-cron-config-list">
|
|
3
|
+
<vxe-radio-group v-model="type">
|
|
4
|
+
<div class="item">
|
|
5
|
+
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每分</vxe-radio>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="item">
|
|
8
|
+
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
+
<span> 从 </span>
|
|
10
|
+
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
+
<span> 分 至 </span>
|
|
12
|
+
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
+
<span> 分 </span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="item">
|
|
16
|
+
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
+
<span> 从 </span>
|
|
18
|
+
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
+
<span> 分开始,间隔 </span>
|
|
20
|
+
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
+
<span> 分 </span>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="item">
|
|
24
|
+
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
+
<div class="list">
|
|
26
|
+
<vxe-checkbox-group v-model="valueList">
|
|
27
|
+
<template v-for="i in specifyRange" :key="i">
|
|
28
|
+
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
+
</template>
|
|
30
|
+
</vxe-checkbox-group>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</vxe-radio-group>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
+
import cronProps from '../mixin/cron-props'
|
|
40
|
+
import cronEmits from '../mixin/cron-emits'
|
|
41
|
+
import cronHooks from '../mixin/cron-hooks'
|
|
42
|
+
export default defineComponent({
|
|
43
|
+
name: 'CronMinuteBox',
|
|
44
|
+
props: {
|
|
45
|
+
...cronProps
|
|
46
|
+
},
|
|
47
|
+
emits: cronEmits,
|
|
48
|
+
setup(props, context) {
|
|
49
|
+
const { proxy } = getCurrentInstance()
|
|
50
|
+
const { $vUtils } = proxy
|
|
51
|
+
const { emit, slots } = context
|
|
52
|
+
|
|
53
|
+
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
+
defaultValue: '*',
|
|
55
|
+
minValue: 0,
|
|
56
|
+
maxValue: 59,
|
|
57
|
+
valueRange: { start: 0, end: 59 },
|
|
58
|
+
valueLoop: { start: 0, interval: 1 }
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
...useCron
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<style scoped></style>
|
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sh-cron-config-list">
|
|
3
|
-
<vxe-radio-group v-model="type">
|
|
4
|
-
<div class="item">
|
|
5
|
-
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每月</vxe-radio>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="item">
|
|
8
|
-
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
-
<span> 从 </span>
|
|
10
|
-
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
-
<span> 月 至 </span>
|
|
12
|
-
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
-
<span> 月 </span>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="item">
|
|
16
|
-
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
-
<span> 从 </span>
|
|
18
|
-
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
-
<span> 月开始,间隔 </span>
|
|
20
|
-
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
-
<span> 月 </span>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="item">
|
|
24
|
-
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
-
<div class="list">
|
|
26
|
-
<vxe-checkbox-group v-model="valueList">
|
|
27
|
-
<template v-for="i in specifyRange" :key="i">
|
|
28
|
-
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
-
</template>
|
|
30
|
-
</vxe-checkbox-group>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</vxe-radio-group>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
-
import cronProps from '../mixin/cron-props'
|
|
40
|
-
import cronHooks from '../mixin/cron-hooks'
|
|
41
|
-
import cronEmits from '../mixin/cron-emits'
|
|
42
|
-
export default defineComponent({
|
|
43
|
-
name: 'CronMonthBox',
|
|
44
|
-
props: {
|
|
45
|
-
...cronProps
|
|
46
|
-
},
|
|
47
|
-
emits: cronEmits,
|
|
48
|
-
setup(props, context) {
|
|
49
|
-
const { proxy } = getCurrentInstance()
|
|
50
|
-
const { $vUtils } = proxy
|
|
51
|
-
const { emit, slots } = context
|
|
52
|
-
|
|
53
|
-
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
-
defaultValue: '*',
|
|
55
|
-
minValue: 1,
|
|
56
|
-
maxValue: 12,
|
|
57
|
-
valueRange: { start: 1, end: 12 },
|
|
58
|
-
valueLoop: { start: 1, interval: 1 }
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sh-cron-config-list">
|
|
3
|
+
<vxe-radio-group v-model="type">
|
|
4
|
+
<div class="item">
|
|
5
|
+
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每月</vxe-radio>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="item">
|
|
8
|
+
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
+
<span> 从 </span>
|
|
10
|
+
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
+
<span> 月 至 </span>
|
|
12
|
+
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
+
<span> 月 </span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="item">
|
|
16
|
+
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
+
<span> 从 </span>
|
|
18
|
+
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
+
<span> 月开始,间隔 </span>
|
|
20
|
+
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
+
<span> 月 </span>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="item">
|
|
24
|
+
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
+
<div class="list">
|
|
26
|
+
<vxe-checkbox-group v-model="valueList">
|
|
27
|
+
<template v-for="i in specifyRange" :key="i">
|
|
28
|
+
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
+
</template>
|
|
30
|
+
</vxe-checkbox-group>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</vxe-radio-group>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
+
import cronProps from '../mixin/cron-props'
|
|
40
|
+
import cronHooks from '../mixin/cron-hooks'
|
|
41
|
+
import cronEmits from '../mixin/cron-emits'
|
|
42
|
+
export default defineComponent({
|
|
43
|
+
name: 'CronMonthBox',
|
|
44
|
+
props: {
|
|
45
|
+
...cronProps
|
|
46
|
+
},
|
|
47
|
+
emits: cronEmits,
|
|
48
|
+
setup(props, context) {
|
|
49
|
+
const { proxy } = getCurrentInstance()
|
|
50
|
+
const { $vUtils } = proxy
|
|
51
|
+
const { emit, slots } = context
|
|
52
|
+
|
|
53
|
+
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
+
defaultValue: '*',
|
|
55
|
+
minValue: 1,
|
|
56
|
+
maxValue: 12,
|
|
57
|
+
valueRange: { start: 1, end: 12 },
|
|
58
|
+
valueLoop: { start: 1, interval: 1 }
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
...useCron
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<style scoped></style>
|
|
@@ -1,66 +1,68 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sh-cron-config-list">
|
|
3
|
-
<vxe-radio-group v-model="type">
|
|
4
|
-
<div class="item">
|
|
5
|
-
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每秒</vxe-radio>
|
|
6
|
-
</div>
|
|
7
|
-
<div class="item">
|
|
8
|
-
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
-
<span> 从 </span>
|
|
10
|
-
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
-
<span> 秒 至 </span>
|
|
12
|
-
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
-
<span> 秒 </span>
|
|
14
|
-
</div>
|
|
15
|
-
<div class="item">
|
|
16
|
-
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
-
<span> 从 </span>
|
|
18
|
-
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
-
<span> 秒开始,间隔 </span>
|
|
20
|
-
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
-
<span> 秒 </span>
|
|
22
|
-
</div>
|
|
23
|
-
<div class="item">
|
|
24
|
-
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
-
<div class="list">
|
|
26
|
-
<vxe-checkbox-group v-model="valueList">
|
|
27
|
-
<template v-for="i in specifyRange" :key="i">
|
|
28
|
-
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
-
</template>
|
|
30
|
-
</vxe-checkbox-group>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</vxe-radio-group>
|
|
34
|
-
</div>
|
|
35
|
-
</template>
|
|
36
|
-
|
|
37
|
-
<script>
|
|
38
|
-
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
-
import cronProps from '../mixin/cron-props'
|
|
40
|
-
import cronHooks from '../mixin/cron-hooks'
|
|
41
|
-
import cronEmits from '../mixin/cron-emits'
|
|
42
|
-
export default defineComponent({
|
|
43
|
-
name: 'CronSecondBox',
|
|
44
|
-
props: {
|
|
45
|
-
...cronProps
|
|
46
|
-
},
|
|
47
|
-
emits: cronEmits,
|
|
48
|
-
setup(props, context) {
|
|
49
|
-
const { proxy } = getCurrentInstance()
|
|
50
|
-
const { $vUtils } = proxy
|
|
51
|
-
const { emit, slots } = context
|
|
52
|
-
|
|
53
|
-
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
-
defaultValue: '*',
|
|
55
|
-
minValue: 0,
|
|
56
|
-
maxValue: 59,
|
|
57
|
-
valueRange: { start: 0, end: 59 },
|
|
58
|
-
valueLoop: { start: 0, interval: 1 }
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
return
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="sh-cron-config-list">
|
|
3
|
+
<vxe-radio-group v-model="type">
|
|
4
|
+
<div class="item">
|
|
5
|
+
<vxe-radio :label="TypeEnum.every" v-bind="beforeRadioAttrs">每秒</vxe-radio>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="item">
|
|
8
|
+
<vxe-radio :label="TypeEnum.range" v-bind="beforeRadioAttrs">区间</vxe-radio>
|
|
9
|
+
<span> 从 </span>
|
|
10
|
+
<vxe-input v-model="valueRange.start" v-bind="typeRangeAttrs" />
|
|
11
|
+
<span> 秒 至 </span>
|
|
12
|
+
<vxe-input v-model="valueRange.end" v-bind="typeRangeAttrs" />
|
|
13
|
+
<span> 秒 </span>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="item">
|
|
16
|
+
<vxe-radio :label="TypeEnum.loop" v-bind="beforeRadioAttrs">循环</vxe-radio>
|
|
17
|
+
<span> 从 </span>
|
|
18
|
+
<vxe-input v-model="valueLoop.start" v-bind="typeLoopAttrs" />
|
|
19
|
+
<span> 秒开始,间隔 </span>
|
|
20
|
+
<vxe-input v-model="valueLoop.interval" v-bind="typeLoopAttrs" />
|
|
21
|
+
<span> 秒 </span>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="item">
|
|
24
|
+
<vxe-radio :label="TypeEnum.specify" v-bind="beforeRadioAttrs">指定</vxe-radio>
|
|
25
|
+
<div class="list">
|
|
26
|
+
<vxe-checkbox-group v-model="valueList">
|
|
27
|
+
<template v-for="i in specifyRange" :key="i">
|
|
28
|
+
<vxe-checkbox :label="i" v-bind="typeSpecifyAttrs">{{ i }}</vxe-checkbox>
|
|
29
|
+
</template>
|
|
30
|
+
</vxe-checkbox-group>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</vxe-radio-group>
|
|
34
|
+
</div>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
import { defineComponent, computed, getCurrentInstance, watch } from 'vue'
|
|
39
|
+
import cronProps from '../mixin/cron-props'
|
|
40
|
+
import cronHooks from '../mixin/cron-hooks'
|
|
41
|
+
import cronEmits from '../mixin/cron-emits'
|
|
42
|
+
export default defineComponent({
|
|
43
|
+
name: 'CronSecondBox',
|
|
44
|
+
props: {
|
|
45
|
+
...cronProps
|
|
46
|
+
},
|
|
47
|
+
emits: cronEmits,
|
|
48
|
+
setup(props, context) {
|
|
49
|
+
const { proxy } = getCurrentInstance()
|
|
50
|
+
const { $vUtils } = proxy
|
|
51
|
+
const { emit, slots } = context
|
|
52
|
+
|
|
53
|
+
const useCron = cronHooks(props, context, proxy, {
|
|
54
|
+
defaultValue: '*',
|
|
55
|
+
minValue: 0,
|
|
56
|
+
maxValue: 59,
|
|
57
|
+
valueRange: { start: 0, end: 59 },
|
|
58
|
+
valueLoop: { start: 0, interval: 1 }
|
|
59
|
+
})
|
|
60
|
+
|
|
61
|
+
return {
|
|
62
|
+
...useCron
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
})
|
|
66
|
+
</script>
|
|
67
|
+
|
|
68
|
+
<style scoped></style>
|