修正一个默认列hide会被覆盖的问题 update public/static/assets/gougu/module/tablePlus.js.
Signed-off-by: 紫Mo.com <490139113@qq.com>
This commit is contained in:
parent
5393049b3c
commit
5fb664c7cc
@ -120,7 +120,7 @@ layui.define(function(exports) {
|
|||||||
let colsStatus = savedCols ? JSON.parse(savedCols) : {};
|
let colsStatus = savedCols ? JSON.parse(savedCols) : {};
|
||||||
let cols = params.cols;
|
let cols = params.cols;
|
||||||
for (var i=0;i<cols[0].length;i++){
|
for (var i=0;i<cols[0].length;i++){
|
||||||
if(cols[0][i].field!=undefined){
|
if(cols[0][i].field!=undefined && colsStatus[cols[0][i].field] != undefined){
|
||||||
cols[0][i].hide=colsStatus[cols[0][i].field];
|
cols[0][i].hide=colsStatus[cols[0][i].field];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -138,7 +138,7 @@ layui.define(function(exports) {
|
|||||||
//重置搜索提交
|
//重置搜索提交
|
||||||
$('body').on('click', '[lay-filter="table-search-reset"]', function () {
|
$('body').on('click', '[lay-filter="table-search-reset"]', function () {
|
||||||
let prev = $(this).prev();
|
let prev = $(this).prev();
|
||||||
if (typeof(prev) != "undefined") {
|
if (typeof(prev) != "undefined" ) {
|
||||||
setTimeout(function () {
|
setTimeout(function () {
|
||||||
prev.click();
|
prev.click();
|
||||||
}, 10)
|
}, 10)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user