？<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="一件事表 one_basics id" prop="basicsId" v-model="form.basicsId" placeholder="请输入一件事表 one_basics id"/>
                <Field label="分类名称" prop="name" v-model="form.name" placeholder="请输入分类名称"/>
                <Field label="题目类型 1单选 2多选" prop="type" v-model="form.type" placeholder="请输入题目类型 1单选 2多选"/>
                <Field label="是否必答 0否 1是" prop="ismust" v-model="form.ismust" placeholder="请输入是否必答 0否 1是"/>
                <Field label="级数" prop="level" v-model="form.level" placeholder="请输入级数"/>
                <Field label="父级选项id" prop="optionIds" v-model="form.optionIds" placeholder="请输入父级选项id"/>
                <Field label="变更时间" prop="updateTime" v-model="form.updateTime" placeholder="请输入变更时间"/>
                <Field label="变更用户loginName" prop="updateUser" v-model="form.updateUser" placeholder="请输入变更用户loginName"/>
            </el-row>
            <form-buttons @submit='submitForm'/>
        </el-form>
    </layout-form>
</template>

<script>
    import form from "@/assets/mixins/form";
    export default {
        mixins: [form],
        data() {
            return {
                rules: {
                    name:[
                        {max: 255, message: '最多只能录入255个字符', trigger: 'blur'}],
                    optionIds:[
                        {max: 20, message: '最多只能录入20个字符', trigger: 'blur'}],
                    updatetime:[{required: true, message: '请输入变更时间', trigger: 'blur'},],
                    updateUser:[{required: true, message: '请输入变更用户loginName', trigger: 'blur'},
                        {max: 50, message: '最多只能录入50个字符', trigger: 'blur'}],
                }
            };
        }
    };
</script>