| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768 |
- @{
- Layout = "~/Views/Shared/Main.cshtml";
- }
- <div class="layui-form">
- <div class="layui-col-md3" >
- <div class="layui-inline">
- <div class="layui-form-text">查询</div>
- <input id="search" name="search" class="layui-text" />
- </div>
- </div>
- </div>
- <div id="demo" class="layui-table"></div>
- <script>
- layui.use('table', function () {
- var table = layui.table;
- table.render({
- elem: '#demo',
- url: '/Point/GetData',
- data: {},
- toolbar:'defaultToolbar',
- cols: [[
- { title: '序号', fixed: 'left',type:'numbers' },
- { field: 'academeName', title: '学院名', align: 'center' },
- { field: 'gradeName', title: '年级名称', align: 'center' },
- { field: 'specialtyName', title: '专业名称', align: 'center' },
- { field: 'className', title: '班级名称', align: 'center' },
- { field: 'studentName', title: '学生名', align: 'center' },
- { field: 'studentSex', title: '性别', align: 'center' },
- { field: 'studentIDNum', title: '身份证号码', align: 'center' },
- { field: 'studentNumber', title: '学生编号', align: 'center' }
- ]]
- })
- })
- window.tablereload = function () {
- table.reload('demo', {
- //where: { // 传递数据异步请求时携带的字段
- // aaa: '111',
- // bbb: '222'
- // //…
- //},
- //height: 1000 // 重设高度
- });
- }
- //$.post("/index/select", function (myg) {//印证有没有获取数据
- // console.log(myg);
- //})
- </script>
|