<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.name}}
                        </el-descriptions-item>
                        <el-descriptions-item label="工号" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.number}}
                        </el-descriptions-item>
                        <el-descriptions-item label="职务" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.userpost}}
                        </el-descriptions-item>
                        <el-descriptions-item label="职称" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.posttitle}}
                        </el-descriptions-item>
                        <el-descriptions-item label="政治面貌 " label-class-name="labelClass" content-class-name="contentClass">
                            {{ util_formatters("politicalstatus", form.politicalstatus) }}
                        </el-descriptions-item>
                        <el-descriptions-item label="党员 " label-class-name="labelClass" content-class-name="contentClass">
                            {{ util_formatters("dangyuan", form.dangyuan) }}
                        </el-descriptions-item>
                        <el-descriptions-item label="电话" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.phone}}
                        </el-descriptions-item>
                        <el-descriptions-item label="手机" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.mobile}}
                        </el-descriptions-item>
                        <el-descriptions-item label="星级" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.starlevel}}
                        </el-descriptions-item>
                        <el-descriptions-item label="个人简介" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.summary}}
                        </el-descriptions-item>
                        <el-descriptions-item label="照片" label-class-name="labelClass" content-class-name="contentClass">
                            <imageUpload v-model="form.photoPath" prePath="/file/preview"/>
                        </el-descriptions-item>
                        <el-descriptions-item label="岗位职责" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.duty}}
                        </el-descriptions-item>
                        <el-descriptions-item label="服务承诺" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.promise}}
                        </el-descriptions-item>
                        <el-descriptions-item label="办理事项" label-class-name="labelClass" content-class-name="contentClass">
                            {{form.business}}
                        </el-descriptions-item>
                        <el-descriptions-item label="是否在线" label-class-name="labelClass" content-class-name="contentClass">
                            {{ util_formatters("online", form.online) }}
                        </el-descriptions-item>
        </el-descriptions>

    </layout-view>
</template>

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

        },
        data() {
            return {
                size:"small",
                column:2,
                toString:[
                    "politicalstatus",
                    "dangyuan",
                    "starlevel",
                    "online",
                ],
                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>