<div class="main" id="main" v-cloak>
    <div class="breadcrumb-box">
        <el-breadcrumb separator="/">
            <el-breadcrumb-item><i class="el-icon-s-home"></i><a href="javascript:void(0)" onclick="location.href=location.href">登录日志</a></el-breadcrumb-item>
        </el-breadcrumb>
    </div>
    <div class="table-list-box">
        <template>
            <el-table :data="dataList" style="width: 100%" border>
                <el-table-column label="登录时间" prop="Thedate" width="200" align="center"></el-table-column>
                <el-table-column label="登录Ip" prop="Ip" align="center"></el-table-column>
                <el-table-column label="登录入口" prop="Url" align="center"></el-table-column>
            </el-table>
        </template>
    </div>
    <ui-page-panel v-model="pageInfo" v-if="pageInfo.RecordCount>0" v-on:change="loadData()"></ui-page-panel>
</div>
<script type="text/javascript">
    //vue实例化
    var vue = new Vue({
        el: "#main",
        data: {
            dataList: [],
            pageInfo: { PageSize: 15, CurrentPage: 1, RecordCount: 0, PageCount: 1 },
        },
        methods: {
            loadData: function () {
                loadData();
            },
        }
    });

    //加载数据
    function loadData()
    {
        vue.ajax({
            url: "@Url.ActionUrl("PageListData")",
            data: vue.pageInfo,
            success: function (data) {
                vue.dataList = data.Data;
                vue.pageInfo = data.PageInfo;
            }
        });
    }
    loadData();
</script>




