...
|
...
|
@@ -289,11 +289,19 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util', 'sessions', 'common' |
|
|
Class.prototype.render = function () {
|
|
|
var that = this
|
|
|
, options = that.config;
|
|
|
var request = layui.setter.request
|
|
|
|
|
|
options.elem = $(options.elem);
|
|
|
options.where = options.where || {};
|
|
|
options.id = options.id || options.elem.attr('id') || that.index;
|
|
|
|
|
|
if (request.tokenName) {
|
|
|
let tokenVal = options.where[request.tokenName];
|
|
|
if(!tokenVal || tokenVal == ''){
|
|
|
options.where[request.tokenName] = localStorage.getItem(request.tokenName);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
//请求参数的自定义格式
|
|
|
options.request = $.extend({
|
|
|
pageName: 'page'
|
...
|
...
|
|