agvcarinfo.html 3.75 KB
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org"
      xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">

<div class="container-div">
    <div class="row">
        <!--<div class="col-sm-12 select-info">-->
            <!--<form id="operlog-form">-->
                <!--<div class="select-list">-->
                    <!--<ul>-->
                        <!--<li>-->
                            <!--<label>系统模块: </label><input type="text" name="title"/>-->
                        <!--</li>-->
                        <!--<li>-->
                            <!--<a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>-->
                        <!--</li>-->
                    <!--</ul>-->
                <!--</div>-->
            <!--</form>-->
        <!--</div>-->
        <!--<div class="btn-group hidden-xs" id="toolbar" role="group">-->
            <!--<a class="btn btn-outline btn-danger btn-rounded" onclick="$.operate.batRemove()" shiro:hasPermission="monitor:logininfor:remove">-->
                <!--<i class="fa fa-trash-o"></i> 批量删除-->
            <!--</a>-->
        <!--</div>-->

        <div class="col-sm-12 select-info">
            <table id="bootstrap-table" data-mobile-responsive="true" class="table table-bordered table-hover"></table>
        </div>
    </div>
</div>

<div th:include="include :: footer"></div>
<script th:inline="javascript">
    var prefix=ctx+'monitor/agvcarinfo';

    $(function() {
        $("#bootstrap-table").bootstrapTable({
            url: prefix + "/list",
            modalName: "库存交易",
            method:"post",
            contentType: "application/x-www-form-urlencoded",
            search: false,
            showRefresh: true, //刷新
            showToggle:true, //视图切换
            showColumns:true, //列选择
            clickToSelect: true,
            sortable: true,                                     // 是否启用排序
            sortStable: true,                                   // 设置为 true 将获得稳定的排序
            sortName: "id",
            sortOrder: "desc",
            showExport: true, //导出
            exportDataType: "selected",                        //导出类型basic', 'all', 'selected'.当前页、所有数据、选中数据
            pagination:true,
            pageNumber: 1,                                      // 初始化加载第一页,默认第一页
            pageSize: 10,                                       // 每页的记录行数(*)
            pageList: [10, 25, 50],                             // 可供选择的每页的行数(*)
            iconSize: 'outline',                                // 图标大小:undefined默认的按钮尺寸 xs超小按钮sm小按钮lg大按钮
            toolbar: '#toolbar',                                // 指定工作栏
            columns: [{
                checkbox: true
            },
                {
                    field : 'carNo',
                    title : '小车'
                },
                {
                    field : 'percentCapacity',
                    title : '电量'
                },
                {
                    field : 'exceptionInfo',
                    title : '错误信息'
                },
                {
                    field : 'date',
                    title : '日期'
                },
            ]
        });

        $.ajax({
            url:prefix+'/list',
            type:"post",
            success:function (value) {
                $("#bootstrap-table").bootstrapTable('load',value.data);
            }
        })
    });
</script>
</body>
</html>