1
lzhe
2024-06-21 9c094a1fe3e1ae3dadef6433f8401818fe2b8304
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<template>
    <el-main>
        <el-alert title="SCUI独创, 区别于市面上的规则生成器, 对不是很理解Cron的操作员也可以选择设置的快捷录入" type="success" style="margin-bottom:20px;"></el-alert>
        <el-row :gutter="15">
            <el-col :lg="12">
                <el-card shadow="never" header="默认">
                    <sc-cron v-model="v1" placeholder="请输入Cron定时规则" clearable></sc-cron>
                </el-card>
            </el-col>
            <el-col :lg="12">
                <el-card shadow="never" header="快捷扩展">
                    <sc-cron v-model="v2" placeholder="请输入Cron定时规则" clearable :shortcuts="shortcuts"></sc-cron>
                </el-card>
            </el-col>
        </el-row>
    </el-main>
</template>
 
<script>
    import scCron from '@/components/scCron'
 
    export default {
        name: 'cron',
        components: {
            scCron
        },
        data() {
            return {
                v1: "",
                v2: "",
                shortcuts: [
                    {
                        text: "每天8点和12点 (自定义追加)",
                        value: "0 0 8,12 * * ?"
                    }
                ]
            }
        },
        mounted() {
 
        },
        methods: {
 
        }
    }
</script>