<template>
  <div>
    <h1 class="bt_h1">档案管理</h1>
    <div class="table-a"> 
    <table class="layui-table" style="background-color: #ece5e500;">
        <colgroup>
            <col>
            <col>
            <col>
            <col>
            <col>
        </colgroup>
        <thead>
            <tr style="color:#fff;" class="tr_th">
                <th>管理员</th>
                <th>安置户</th>
                <th>购买户</th>
                <th>住宅</th>
                <th>门面</th>
            </tr> 
        </thead>
        <tbody class="bg_tr">
            <tr v-for="(item,index) in datax">
                <td v-text="item.管理员"></td>
                <td v-text="item.安置户"></td>
                <td v-text="item.购买户"></td>
                <td v-text="item.住宅"></td>
                <td v-text="item.门面"></td>
            </tr>
        </tbody>
    </table>
    </div> 
  </div>
</template>

<script>
  module.exports = {
        data: function() {
            return {
                  datax:[]
            }
        }, 
        props:["title"],
        methods:{

        },
        computed:{

        },
        mounted(){//挂载的时候执行
            var that=this;
            getByAjax("./rest/moduledataquery/dagl",function(data){
                that.datax=JSON.parse(data[0].content);
            });
        }
  }
</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>

