Authored by wangtao

chore: 请求参数优化

... ... @@ -1817,7 +1817,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
}
//刚登录查询值班消息
dutyRightBottomTips();
// dutyRightBottomTips();
var connectFlg = false;
//右下角值班弹窗长连接监控
var dutyLongLink = function () {
... ... @@ -1827,7 +1827,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
}
}, 3 * 60 * 1000);
}
dutyLongLink();
// dutyLongLink();
//值班弹窗
function dutyRightBottomTips() {
... ...
... ... @@ -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'
... ...