<template>
    <layout-view>
        <el-descriptions  :title="title" :column="column" :size="size" :colon="false" border>
            <template slot="title">
                <i class="el-icon-tickets"></i>
                基本详细信息
            </template>
            <template slot="extra">
                <el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
            </template>
                                    <el-descriptions-item label="接收消息的用户的唯一标识符" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.userId}}
                        </el-descriptions-item>
                        <el-descriptions-item label="消息的标题" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.title}}
                        </el-descriptions-item>
                        <el-descriptions-item label="消息的内容" label-class-name="labelClass" content-class-name="contentClass">
                            <editor v-model="form.content" :min-height="256"/>
                        </el-descriptions-item>
                        <el-descriptions-item label="是否已读 " label-class-name="labelClass" content-class-name="contentClass">
                            {{ util_formatters("read", form.read) }}
                        </el-descriptions-item>
                        <el-descriptions-item label="消息的优先级，越高表示越紧急，不为空" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.priority}}
                        </el-descriptions-item>
                        <el-descriptions-item label="消息的过期时间，超过此时间则自动标记为已读" label-class-name="labelClass" content-class-name="contentClass">
                            {{ util_formatterDate(form.expireTime)}}
                        </el-descriptions-item>
                        <el-descriptions-item label="消息的来源类型，例如“系统”、“好友”等，可以为空" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.sourceType}}
                        </el-descriptions-item>
        </el-descriptions>

    </layout-view>
</template>

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

        },
        data() {
            return {
                size:"small",
                column:2,
                toString:[
                ],
                toArrays: [

                ],
                toDate: [

                ]
            }
        }
    }
</script>
<style lang="less">
    .labelClass{
        width: 200px;
    }
    .el-descriptions__body{
        margin-left: 5px;
        margin-right: 5px;
        color: #606266;
        background-color: #FFF;
    }
    .contentClass{
        width: 600px;
    }
</style>