123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>检测报告查询</title>
- </head>
- <body>
- <div class="layui-card layadmin-header">
- <div class="layui-breadcrumb" lay-filter="breadcrumb">
- <a lay-href="">主页</a>
- <a><cite>车辆检测管理</cite></a>
- <a><cite>检测报告查询</cite></a>
- </div>
- </div>
- <div class="layui-fluid">
- <div class="layui-row layui-col-space15">
- <div class="layui-col-md12">
- <div class="layui-card">
- <!--<div class="layui-card-header">开启头部工具栏</div>-->
- <div class="layui-card-body">
- <div class="test-table-reload-btn" style="margin-bottom: 10px;">
- 搜索车牌:
- <div class="layui-inline">
- <input class="layui-input" name="车牌号" id="test-table-demoReload" style="text-transform:uppercase;">
- <!--autocomplete="off"-->
- </div>
- 检测日期:
- <div class="layui-input-inline">
- <input type="text" class="layui-input" id="test-laydate-range-date" placeholder=" - ">
- </div>
- <button class="layui-btn" data-type="reload">搜索</button>
- </div>
- <table class="layui-hide" id="test-table-toolbar" lay-filter="test-table-toolbar"></table>
- <!--<script type="text/html" id="test-table-toolbar-toolbarDemo">-->
- <!--<div class="layui-btn-container">-->
- <!--<button class="layui-btn layui-btn-sm" lay-event="getCheckData">获取选中行数据</button>-->
- <!--<button class="layui-btn layui-btn-sm" lay-event="getCheckLength">获取选中数目</button>-->
- <!--<button class="layui-btn layui-btn-sm" lay-event="isAll">验证是否全选</button>-->
- <!--</div>-->
- <!--</script>-->
- <!--<script type="text/html" id="test-table-toolbar-barDemo">-->
- <!--<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>-->
- <!--<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>-->
- <!--</script>-->
- </div>
- </div>
- </div>
- </div>
- </div>
- </body>
- <script>
- layui.use(['admin', 'table','laydate'], function(){
- var admin = layui.admin
- ,$ = layui.$
- ,laydate = layui.laydate
- ,table = layui.table;
- table.render({
- elem: '#test-table-toolbar'
- ,url:'/detection/testReportSelect'
- ,method:'post'
- ,toolbar: '#test-table-toolbar-toolbarDemo'
- ,title: '用户数据表'
- ,cols: [[
- {type: 'checkbox', fixed: 'left'}
- // ,{field:'id', title:'ID', width:80, fixed: 'left', unresize: true, sort: true}
- ,{field:'检测顺序号', title:'检测顺序号', width:120, edit: 'text'}
- ,{field:'车牌号', title:'车牌', width:120, edit: 'text'}
- ,{field:'车牌颜色', title:'车牌颜色', width:120, edit: 'text'}
- ,{field:'车主姓名', title:'车主姓名', width:120, edit: 'text'}
- ,{field:'基准质量', title:'用户名', width:120, edit: 'text'}
- ,{field:'最大总质量', title:'使用性质', width:120, edit: 'text'}
- ,{field:'测试工况环境温度每秒数据', title:'环境温度', width:120, edit: 'text'}
- ,{field:'测试工况环境大气压力每秒数据', title:'大气压力', width:120, edit: 'text'}
- ,{field:'测试工况环境相对湿度每秒数据', title:'相对湿度', width:120, edit: 'text'}
- ,{field:'测试工况HC测试结果', title:'HC', width:120, edit: 'text'}
- ,{field:'测试工况CO测试结果', title:'CO', width:120, edit: 'text'}
- ,{field:'测试工况NO测试结果', title:'NO', width:120, edit: 'text'}
- ,{field:'测试工况CO2测试结果', title:'CO2', width:120, edit: 'text'}
- ,{field:'排放检合格不合格测判定结果', title:'判定结果', width:120, edit: 'text'}
- ,{field:'检测日期', title:'检测日期', width:120, edit: 'text'}
- ,{field:'工况检测的起止时间', title:'检测起止时间', width:120, edit: 'text'}
- ,{field:'车架号', title:'车架号', width:120, edit: 'text'}
- ,{field:'总犯规次数', title:'犯规次数', width:120, edit: 'text'}
- ,{field:'内部唯一性检测序列号', title:'检测序列号', width:120, edit: 'text'}
- ,{field:'登录员', title:'登录员', width:120, edit: 'text'}
- ,{field:'检测分类', title:'检测分类', width:120, edit: 'text'}
- ,{field:'CO限值', title:'CO限值', width:120, edit: 'text'}
- ,{field:'报告单编号', title:'报告单编号', width:120, edit: 'text'}
- // ,{fixed: 'right', title:'操作', toolbar: '#test-table-toolbar-barDemo', width:150}
- ]]
- ,page: true
- });
- var active = {
- reload: function(){
- var demoReload = $('#test-table-demoReload');
- var date = $('#test-laydate-range-date');
- //执行重载
- table.reload('test-table-toolbar', {
- where: {
- '车牌号': demoReload.val(),
- 'date': date.val()
- }
- });
- }
- };
- $('.test-table-reload-btn .layui-btn').on('click', function(){
- var type = $(this).data('type');
- active[type] ? active[type].call(this) : '';
- });
- laydate.render({
- elem: '#test-laydate-range-date'
- // ,range: true
- ,range: '~'
- });
- // //头工具栏事件
- // table.on('toolbar(test-table-toolbar)', function(obj){
- // var checkStatus = table.checkStatus(obj.config.id);
- // switch(obj.event){
- // case 'getCheckData':
- // var data = checkStatus.data;
- // layer.alert(JSON.stringify(data));
- // break;
- // case 'getCheckLength':
- // var data = checkStatus.data;
- // layer.msg('选中了:'+ data.length + ' 个');
- // break;
- // case 'isAll':
- // layer.msg(checkStatus.isAll ? '全选': '未全选');
- // break;
- // };
- // });
- // //监听行工具事件
- // table.on('tool(test-table-toolbar)', function(obj){
- // var data = obj.data;
- // if(obj.event === 'del'){
- // layer.confirm('真的删除行么', function(index){
- // obj.del();
- // layer.close(index);
- // });
- // } else if(obj.event === 'edit'){
- // layer.prompt({
- // formType: 2
- // ,value: data.email
- // }, function(value, index){
- // obj.update({
- // email: value
- // });
- // layer.close(index);
- // });
- // }
- // });
- });
- </script>
- </html>
|