<template>
    <!-- 审批详情列表 -->
    <div>
        <el-table :data="auditingList" border>
            <el-table-column
                align="center"
                label="审批部门"
                prop="deptName"
            ></el-table-column>
            <el-table-column align="center" label="审批状态">
                <template slot-scope="{ row }">
                    <el-tag size="mini" v-if="row.status == 0">待审批</el-tag>
                    <el-tag type="success" size="mini" v-if="row.status == 1"
                        >通过</el-tag
                    >
                    <el-tag type="danger" size="mini" v-if="row.status == 2"
                        >已驳回</el-tag
                    >
                </template>
            </el-table-column>
            <el-table-column align="center" label="审批意见">
                <template slot-scope="{ row }">
                    {{ row.reasonRejection }}
                </template>
            </el-table-column>
        </el-table>
    </div>
</template>

<script>
    export default {
        props: {
            auditingList: {
                type: Array,
                default: () => {
                    return []
                },
            },
        },
    }
</script>
