？<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="模型id" prop="modelId" v-model="form.modelId" placeholder="请输入模型id"/>
                <Field label="" prop="name" v-model="form.name" placeholder="请输入"/>
                <Field label="模型key" prop="modelKey" v-model="form.modelKey" placeholder="请输入模型key"/>
                <Field label="业务系统标识" prop="platformSn" v-model="form.platformSn" placeholder="请输入业务系统标识"/>
                <Field label="bpmn模型xml文件" prop="bpmnXml" v-model="form.bpmnXml" placeholder="请输入bpmn模型xml文件"/>
                <Field label="状态,1.未部署，2.已部署，3.停用" prop="status" v-model="form.status" placeholder="请输入状态,1.未部署，2.已部署，3.停用"/>
                <Field label="创建用户" prop="createUserId" v-model="form.createUserId" placeholder="请输入创建用户"/>
                <Field label="创建用户名称" prop="createUserName" v-model="form.createUserName" placeholder="请输入创建用户名称"/>
            </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: {
                    modelId:[{required: true, message: '请输入模型id', trigger: 'blur'},
                        {max: 64, message: '最多只能录入64个字符', trigger: 'blur'}],
                    name:[{required: true, message: '请输入', trigger: 'blur'},
                        {max: 200, message: '最多只能录入200个字符', trigger: 'blur'}],
                    modelKey:[{required: true, message: '请输入模型key', trigger: 'blur'},
                        {max: 150, message: '最多只能录入150个字符', trigger: 'blur'}],
                    platformSn:[{required: true, message: '请输入业务系统标识', trigger: 'blur'},
                        {max: 200, message: '最多只能录入200个字符', trigger: 'blur'}],
                    bpmnXml:[{required: true, message: '请输入bpmn模型xml文件', trigger: 'blur'},
                        {max: 4294967295, message: '最多只能录入4294967295个字符', trigger: 'blur'}],
                    status:[{required: true, message: '请输入状态,1.未部署，2.已部署，3.停用', trigger: 'blur'},{type: 'integer', trigger: 'blur'}],
                    createUserName:[{required: true, message: '请输入创建用户名称', trigger: 'blur'},
                        {max: 50, message: '最多只能录入50个字符', trigger: 'blur'}],
                }
            };
        }
    };
</script>