| | |
| | | } |
| | | }, |
| | | createData:function(d){ |
| | | var i = 1; |
| | | for(var k in d){ |
| | | d[k].tableId = i ++; |
| | | } |
| | | var data = d; |
| | | this.beginLayUi(data); |
| | | }, |
| | |
| | | , last: false //不显示尾页 |
| | | } |
| | | , cols: [[ |
| | | { field: 'id', width: 59, align: 'center', unresize: true, title: '序号' } |
| | | , { field: 'username', width: 90, align: 'center', unresize: true, title: '图层名称' } |
| | | , { field: 'style1', width: 95, align: 'center', unresize: true, title: '图层属性1' } |
| | | , { field: 'style2', width: 95, align: 'center', unresize: true, title: '图层属性2' } |
| | | { field: 'tableId', width: 59, align: 'center', unresize: true, title: '序号' } |
| | | , { field: 'geoName', width: 90, align: 'center', unresize: true, title: '图层名称' } |
| | | , { field: 'databaseName', width: 95, align: 'center', unresize: true, title: '图层属性1' } |
| | | , { field: 'serviceUrl', width: 95, align: 'center', unresize: true, title: '图层属性2' } |
| | | , { fixed: 'right', width: 115, align: 'center', unresize: true, title: '操作', toolbar: '#demoTable' } |
| | | ]], |
| | | data: data, |