<template>
    <layout-form>
        <el-form :model="form" :loading="loading" :rules="rules" size='small' style="width:100%" label-width='120px' ref="form">
            <el-row>
                                    <Field :span="18" label="工程名称" prop="name" v-model="form.name" placeholder="请输入工程名称"/>


                                    <el-col span="18">
          <el-form-item  label="工程附件" class="my-form-field">
            <FileUpload fileSize="300" :fileType="['zip']" v-model="form.projectPath" prePath="/fileupload" />
          </el-form-item>
        </el-col>
                      
                        <Field :span="18" label="工程版本" prop="version" v-model="form.version" placeholder="请输入工程版本"/>
                        <Field :span="18" label="备注" prop="remark" type="textarea" v-model="form.remark" placeholder="请输入备注"/>
            </el-row>

            <form-buttons @submit='submitForm'/>
        </el-form>
    </layout-form>
</template>

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

        },
        data() {
            return {
                rules: {
                    name: [
                        { trigger: "blur" },
                    ],
                    projectPath: [
                        { trigger: "blur" },
                    ],
                    version: [
                        { trigger: "blur" },
                    ],
                    remark: [
                        { trigger: "blur" },
                    ],
                }
            };
        }
    };
</script>