<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="法规标题" prop="policyName" v-model="form.policyName" type="textarea" placeholder="请输入法规标题"/>
                        <Field label="法规类型，" prop="policyType" v-model="form.policyType" type="select" :enumData="dict.policyType" placeholder="请选择法规类型，"/>
                        <Field label="条例" prop="policyitem" v-model="form.policyitem" type="textarea" placeholder="请输入条例"/>
                        <Field label="条款内容"><editor v-model="form.content" :min-height="256"/></Field>
                        <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";
    import Editor from '@/components/Editor';
    export default {
        mixins: [form],
        components: {
            Editor,
        },
        methods: {


        },
        data() {
            return {
                toString:[
                    "source",
                ],
                rules: {
                }
            };
        }
    };
</script>