<template>
    <div style="margin-bottom: 20px;">
        <a-button type="primary">添加要求</a-button>
        <a-table style="margin-top: 10px;" :dataSource="dataSource" :pagination="pagination" 
          :columns="columns" :bordered="true" 
        />
    </div>
</template>
<script lang="ts">
import { defineComponent } from 'vue';
export default defineComponent({
    data() {
        return {
            dataSource: [],
            pagination: {
                current: 1,
                pageSize: 10,
                total: 0,
                showTotal: total => `共 ${total} 条数据`
            },
            columns: [
                {
                    title: '策略编号',
                    dataIndex: 'actNo',
                    key: 'actNo',
                },
                {
                    title: '内控策略',
                    dataIndex: 'actName',
                    key: 'actName',
                },
                {
                    title: '内控要求',
                    dataIndex: 'domain',
                    key: 'domain',
                },
                {
                    title: '适用对象',
                    dataIndex: 'domain',
                    key: 'domain',
                },
                {
                    title: '管理制度',
                    dataIndex: 'domain',
                    key: 'domain',
                },
                {
                    title: '职责分工',
                    dataIndex: 'domain',
                    key: 'domain',
                },
                {
                    title: '执行规则',
                    dataIndex: 'operation',
                    key: 'operation',
                },
            ],
        }
    }
})
</script>