<template>
    <a-card :bordered="false" v-show="visible" class="card" :title="modalTitle">
        <a-row :gutter="48" slot="extra">
            <a-col :md="48" :sm="48">
              <span class="table-page-search-submitButtons" style="float: right">
                <a-button style="margin-left: 8px" type="default" @click="handleCancel()">返回</a-button>
              </span>
            </a-col>
        </a-row>
        <detail-list title="" :col="2">
                                                                                                    <detail-list-item term="巡检人ID">{{ model.createdUserId }}</detail-list-item>
                                                                                                                                                                    <detail-list-item term="主管ID">{{ model.updateUserId }}</detail-list-item>
                                                                                                            <detail-list-item term="更新人">{{ model.updateUserName }}</detail-list-item>
                                                                                                            <detail-list-item term="更新时间">{{ model.updateTime }}</detail-list-item>
                                                                                                            <detail-list-item term="巡检任务ID">{{ model.taskId }}</detail-list-item>
                                                                                                            <detail-list-item term="备注">{{ model.remark }}</detail-list-item>
                                                                                                            <detail-list-item term="延迟小时">{{ model.lateHour }}</detail-list-item>
                                                        </detail-list>
    </a-card>
</template>

<script>
    import DetailList from '@/components/tools/DetailList'
    const DetailListItem = DetailList.Item

    export default {
        name: 'FillUpdateRecordDetail',
        components: {
            DetailList,
            DetailListItem
        },
        data () {
            return {
                confirmLoading: false,
                mdl: {},
                modalTitle: null,
                visible: false,
                // 下拉框map
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            model: {
                                                                                                                    'createdUserId': null,
                                                                                                                                                                                        'updateUserId': null,
                                                                                                'updateUserName': null,
                                                                                                'updateTime': null,
                                                                                                'taskId': null,
                                                                                                'remark': null,
                                                                                                'lateHour': null,
                                                            }
            }
        },
        created () {
            // 下拉框map
            
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        },
        methods: {
            base (record) {
                this.visible = true
                this.modalTitle = '详情'
                this.model = record
            },
            handleCancel () {
                this.visible = false
                this.confirmLoading = false
                this.$emit('ok')
            }
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        }
    }
</script>
