<template>
  <div>
    <h1 class="bt_h1">食品安全</h1>
    <div class="table-a"> 
    <table class="layui-table" style="background-color: #ece5e500;">
        <colgroup>
            <col>
            <col >
        </colgroup>
        <thead>
            <tr style="color:#fff;" class="tr_th">
                <th>安全员</th>
                <th>餐饮店数量</th>
            </tr> 
        </thead>
        <tbody class="bg_tr">
            <tr v-for="(item,index) in datax">
                <td v-text="item.aqy"></td>
                <td v-text="item.cydsl"></td>
            </tr>
        </tbody>
    </table>
    </div> 
  </div>
</template>

<script>
  module.exports = {
        data: function() {
            return {
                  datax:[{aqy:"张黎明",cydsl:"49家"}]
            }
        }, 
        props:["title"],
        methods:{

        },
        computed:{

        }
  }
</script>
<style scoped>
    .bt_h1{
        text-align: center;
        font-size: 20px;
        color: white;
        font-weight: 500;
        margin-top: 8px;
    }
    .table-a table{border:1px solid #F00} 
    .bg_tr tr:hover{
        background-color: #ece5e500 ! important;
    }
    .bg_tr{
        color: #fff;
    }
    .bg_tr td{
       text-align: center;
    }
    .tr_th{
        background: linear-gradient(#415dc0, #9aaab5);
    }
    .tr_th th{
        text-align: center;
    }

</style>

