Authored by wangtao

chore: 请求参数优化

@@ -1817,7 +1817,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions @@ -1817,7 +1817,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
1817 } 1817 }
1818 1818
1819 //刚登录查询值班消息 1819 //刚登录查询值班消息
1820 - dutyRightBottomTips(); 1820 + // dutyRightBottomTips();
1821 var connectFlg = false; 1821 var connectFlg = false;
1822 //右下角值班弹窗长连接监控 1822 //右下角值班弹窗长连接监控
1823 var dutyLongLink = function () { 1823 var dutyLongLink = function () {
@@ -1827,7 +1827,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions @@ -1827,7 +1827,7 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
1827 } 1827 }
1828 }, 3 * 60 * 1000); 1828 }, 3 * 60 * 1000);
1829 } 1829 }
1830 - dutyLongLink(); 1830 + // dutyLongLink();
1831 1831
1832 //值班弹窗 1832 //值班弹窗
1833 function dutyRightBottomTips() { 1833 function dutyRightBottomTips() {
@@ -289,11 +289,19 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util', 'sessions', 'common' @@ -289,11 +289,19 @@ layui.define(['laytpl', 'laypage', 'layer', 'form', 'util', 'sessions', 'common'
289 Class.prototype.render = function () { 289 Class.prototype.render = function () {
290 var that = this 290 var that = this
291 , options = that.config; 291 , options = that.config;
  292 + var request = layui.setter.request
292 293
293 options.elem = $(options.elem); 294 options.elem = $(options.elem);
294 options.where = options.where || {}; 295 options.where = options.where || {};
295 options.id = options.id || options.elem.attr('id') || that.index; 296 options.id = options.id || options.elem.attr('id') || that.index;
296 297
  298 + if (request.tokenName) {
  299 + let tokenVal = options.where[request.tokenName];
  300 + if(!tokenVal || tokenVal == ''){
  301 + options.where[request.tokenName] = localStorage.getItem(request.tokenName);
  302 + }
  303 + }
  304 +
297 //请求参数的自定义格式 305 //请求参数的自定义格式
298 options.request = $.extend({ 306 options.request = $.extend({
299 pageName: 'page' 307 pageName: 'page'