<template>
  <div style="height:100%;overflow-y:auto;position: absolute;">
    <h1 class="bt_h1">掌上云社区</h1>
    <div style="color:#fff;margin-top:5px;">掌上云社区管理员： 刘家蓉</div>
    <div class="table-a"> 
    <table class="layui-table" style="background-color: #ece5e500;">
        <colgroup>
            <col>
            <col width="150">
            <col>
            <col >
        </colgroup>
        <thead>
            <tr style="color:#fff;" class="tr_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>
            </tr>
        </tbody>
    </table>
    </div> 
  </div>
</template>

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

        },
        computed:{

        },
        mounted(){//挂载的时候执行
            var that=this;
            getByAjax("./rest/moduledataquery/zsysq",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>

