1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
| $traineesTable.bootstrapTable('destroy'); $traineesTable.bootstrapTable({ url: '/users/***', method: 'GET', dataType: 'json', striped: true, pagination: true, sidePagination: "server",
queryParamsType: "undefined", queryParams: function (params) { return { currentPage: params.pageNumber, pageSize: params.pageSize, realName: 'abc' }; }, responseHandler: function (res) { return { total: res.data.total, rows: res.data.traineeList }; }, columns: [{ field: 'id', title: '序号', visible: false }, { field: 'loginName', title: '账号' }, { field: 'realName', title: '姓名' }, { title: '操作', field: 'realName', align: 'center', formatter: function (value, row, index) { return '这里是返回字符串'; } }], onLoadSuccess: function () { } })
|