？<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="字段1" prop="fieldOne" v-model="form.fieldOne" placeholder="请输入字段1"/>
                        <Field label="字段2" prop="fieldTwo" v-model="form.fieldTwo" placeholder="请输入字段2"/>
                        <Field label="字段3" prop="fieldThree" v-model="form.fieldThree" type="select" :enumData="dict.fieldThree" placeholder="请选择字段3"/>
                        <Field label="" prop="updateTime" v-model="form.updateTime" type="date" :enumData="dict.updateTime" />
                        <Field label="" prop="updateUser" v-model="form.updateUser" placeholder="请输入"/>
                        <Field label="" prop="createTime" v-model="form.createTime" type="date" :enumData="dict.createTime" />
                        <Field label="" prop="createUser" v-model="form.createUser" placeholder="请输入"/>
            </el-row>
            <form-buttons @submit='submitForm'/>
        </el-form>
    </layout-form>
</template>

<script>
    import form from "@/assets/mixins/form";
    export default {
        mixins: [form],
        toString:[
            "fieldThree",
        ],
        data() {
            return {
                rules: {
                    fieldOne: [
                        { trigger: "blur" },
                    ],
                    fieldThree: [
                        { type: 'integer',trigger: "blur" },
                    ],
                }
            };
        }
    };
</script>