|
|
|
@ -351,7 +351,7 @@ |
|
|
|
|
$('#search-btn').on('click', function(){ |
|
|
|
|
var param = $('.layui-card-header').find(':input').serializeObject(); |
|
|
|
|
param['data_filter[]'] = param['data_filter[]']?param['data_filter[]']:''; |
|
|
|
|
param = Object.assign(param, getUrlParam()); |
|
|
|
|
param = Object.assign(param, urlParams); |
|
|
|
|
//执行重载 |
|
|
|
|
tableIns.reload({ |
|
|
|
|
page: { |
|
|
|
@ -382,17 +382,5 @@ |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
function getUrlParam(name) { |
|
|
|
|
let query = window.location.search.substring(1); |
|
|
|
|
let vars = query.split("&"); |
|
|
|
|
let params = []; |
|
|
|
|
for (let i=0, len = vars.length;i< len;i++) { |
|
|
|
|
let pair = vars[i].split("="); |
|
|
|
|
params[pair[0]] = pair[1]; |
|
|
|
|
} |
|
|
|
|
if (name) return params[name]; |
|
|
|
|
return params; |
|
|
|
|
} |
|
|
|
|
</script> |
|
|
|
|
{/block} |
|
|
|
|