<!DOCTYPE html>
<html>
<head>
    <title>报表1</title>
    <link rel="stylesheet" href="../../lib/bootstrap/dist/css/bootstrap.min.css" />
    <link rel="stylesheet" href="../../css/site.css" />
    <script src="../../lib/jquery/dist/jquery.min.js"></script>
    <script src="../../lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
    <script src="../../lib/jquery.cookie/jquery.cookie.min.js"></script>
    <script src="../../lib/vue/vue.min.js"></script>
    <script src="../../js/site.js" asp-append-version="true"></script>

    <style type="text/css">
        @page {
            size: auto;
        }
    </style>
</head>
<body>
    <div id="findPerson" class="table">
        <div id="result" v-if="result.length > 0">
            <table class="table">
                <thead>
                    <tr>
                        <th colspan="5">报表1</th>
                    </tr>
                    <tr>
                        <th>姓名</th>
                        <th>年龄</th>
                        <th>性别</th>
                        <th>登录用户编号</th>
                        <th>登录用户名</th>
                    </tr>
                </thead>
                <tbody>
                    <tr v-for="i in result">
                        <td>{{i.name}}</td>
                        <td>{{i.age}}</td>
                        <td>{{i.sex}}</td>
                        <td>{{i.uid}}</td>
                        <td>{{i.Uname}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <script type="text/javascript">
        var findPersonPrint = new Vue({
            el: "#findPerson",
            data: {
                url: myjs.urls.getresult,
                result: [],
            },
            created() {
                var sql = myjs.getSqlStr();
                console.log(sql);
                myjs.post(this.url, { sql: sql }, function (d) {
                    findPersonPrint.result = d;
                });
            },
            methods: {
            }
        });
    </script>
</body>
</html>

