车架去重数据查询调试3

master
zcstatham 2 years ago
parent b27b86929a
commit 95c1f456c3
  1. 14
      app/view/index/index.html

@ -351,7 +351,7 @@
$('#search-btn').on('click', function(){ $('#search-btn').on('click', function(){
var param = $('.layui-card-header').find(':input').serializeObject(); var param = $('.layui-card-header').find(':input').serializeObject();
param['data_filter[]'] = param['data_filter[]']?param['data_filter[]']:''; param['data_filter[]'] = param['data_filter[]']?param['data_filter[]']:'';
param = Object.assign(param, getUrlParam()); param = Object.assign(param, urlParams);
//执行重载 //执行重载
tableIns.reload({ tableIns.reload({
page: { 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> </script>
{/block} {/block}

Loading…
Cancel
Save