修复导出问题
This commit is contained in:
@@ -7,9 +7,7 @@
|
|||||||
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
<div id="toolbar">
|
<div id="toolbar">
|
||||||
<form id="searchForm" action="/admin/seize-treasure/treasure/record/export" method="get"
|
<div class="form-group col-sm-3">
|
||||||
target="_blank">
|
|
||||||
<div class="form-group col-sm-3">
|
|
||||||
<label for="queryStartDate" class="control-label">开始时间:</label>
|
<label for="queryStartDate" class="control-label">开始时间:</label>
|
||||||
<input type="text" class="input-sm datetime" name="startTime" id="queryStartDate" placeholder="开始时间">
|
<input type="text" class="input-sm datetime" name="startTime" id="queryStartDate" placeholder="开始时间">
|
||||||
</div>
|
</div>
|
||||||
@@ -21,8 +19,6 @@
|
|||||||
<label for="erbanNo" class="control-label">用户ID:</label>
|
<label for="erbanNo" class="control-label">用户ID:</label>
|
||||||
<input type="text" class="input-sm" name="erbanNo" id="erbanNo" placeholder="">
|
<input type="text" class="input-sm" name="erbanNo" id="erbanNo" placeholder="">
|
||||||
</div>
|
</div>
|
||||||
</form>
|
|
||||||
|
|
||||||
<div class="row"></div>
|
<div class="row"></div>
|
||||||
<div>
|
<div>
|
||||||
<button class="btn btn-primary" id="searchBtn">查询</button>
|
<button class="btn btn-primary" id="searchBtn">查询</button>
|
||||||
@@ -94,7 +90,27 @@ export default {
|
|||||||
|
|
||||||
// 导出
|
// 导出
|
||||||
$('#btnExport').on('click', function () {
|
$('#btnExport').on('click', function () {
|
||||||
$("#searchForm").submit();
|
var poolTypeList;
|
||||||
|
if ($("#poolTypeList").val() && $("#poolTypeList").val().length) {
|
||||||
|
poolTypeList = $("#poolTypeList").val().join();
|
||||||
|
}
|
||||||
|
var poolGroupList;
|
||||||
|
if ($("#poolGroupList").val() && $("#poolGroupList").val().length) {
|
||||||
|
poolGroupList = $("#poolGroupList").val().join();
|
||||||
|
}
|
||||||
|
var poolLevelList;
|
||||||
|
if ($("#poolLevelList").val() && $("#poolLevelList").val().length) {
|
||||||
|
poolLevelList = $("#poolLevelList").val().join();
|
||||||
|
}
|
||||||
|
var obj = {
|
||||||
|
startTime: $('#queryStartDate').val(),
|
||||||
|
endTime: $('#queryEndDate').val(),
|
||||||
|
erbanNo: $('#erbanNo').val(),
|
||||||
|
poolTypeList: poolTypeList,
|
||||||
|
poolGroupList: poolGroupList,
|
||||||
|
poolLevelList: poolLevelList,
|
||||||
|
};
|
||||||
|
window.location.href = `/admin/seize-treasure/treasure/record/export?${param(obj)}`;
|
||||||
});
|
});
|
||||||
|
|
||||||
function tableRefresh() {
|
function tableRefresh() {
|
||||||
|
Reference in New Issue
Block a user