<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="模板code" prop="code" v-model="form.code" placeholder="请输入模板code"/>
                        <Field label="备注" prop="summary" v-model="form.summary" type="textarea" placeholder="请输入备注"/>
                        <Field label="" prop="content" v-model="form.content" type="textarea" placeholder="请输入"/>
                        <Field label="模板选择 " prop="type" v-model="form.type" type="select" :enumData="dict.type" placeholder="请选择模板选择 "/>
                        <Field label="系统来源" prop="source" v-model="form.source" type="select" :enumData="dict.source" 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:[
                    "type",
                    "source",
                ],
                rules: {
                }
            };
        }
    };
</script>