|
|
|
@ -987,10 +987,13 @@ layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
|
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} else if(layui.type(options.data) === 'array'){ //已知数据
|
|
|
|
|
var res = {} |
|
|
|
|
,startLimit = curr*options.limit - options.limit |
|
|
|
|
var res = {}; |
|
|
|
|
var startLimit = curr*options.limit - options.limit; |
|
|
|
|
var newData = options.data.concat(); |
|
|
|
|
|
|
|
|
|
res[response.dataName] = options.data.concat().splice(startLimit, options.limit); |
|
|
|
|
res[response.dataName] = options.page
|
|
|
|
|
? newData.splice(startLimit, options.limit) |
|
|
|
|
: newData; |
|
|
|
|
res[response.countName] = options.data.length; |
|
|
|
|
|
|
|
|
|
//记录合计行数据
|
|
|
|
|