<template>
    <layout-form>
        <el-form :model="form" :loading="loading" :rules="rules" size='small' style="width:100%" label-width='120px' ref="form">
            <el-row>
                                    <Field label="节日名称" prop="name" v-model="form.name" placeholder="请输入节日名称"/>
                        <Field label="备注" prop="summary" v-model="form.summary" type="textarea" placeholder="请输入备注"/>
                        <Field label="年份" prop="year" v-model="form.year" placeholder="请输入年份"/>
                        <Field label="开始时间" prop="startTime" v-model="form.startTime" type="date" />
                        <Field label="结束时间" prop="endTime" v-model="form.endTime" type="date" />
                        <Field label="是否工作日" prop="workorholiday" v-model="form.workorholiday" type="select" :enumData="dict.workorholiday" placeholder="请选择是否工作日"/>
            </el-row>

            <form-buttons @submit='submitForm' :noSaveBtn="pageInfo.type === 'view'"/>
        </el-form>
    </layout-form>
</template>

<script>
    import form from "@/assets/mixins/form";
    export default {
        mixins: [form],
        components: {
        },
        methods: {


        },
        data() {
            return {
                toString:[
                    "workorholiday",
                ],
                rules: {
                }
            };
        }
    };
</script>