修复导出问题
This commit is contained in:
@@ -7,8 +7,6 @@
|
||||
|
||||
<section class="content">
|
||||
<div id="toolbar">
|
||||
<form id="searchForm" action="/admin/seize-treasure/treasure/record/export" method="get"
|
||||
target="_blank">
|
||||
<div class="form-group col-sm-3">
|
||||
<label for="queryStartDate" class="control-label">开始时间:</label>
|
||||
<input type="text" class="input-sm datetime" name="startTime" id="queryStartDate" placeholder="开始时间">
|
||||
@@ -21,8 +19,6 @@
|
||||
<label for="erbanNo" class="control-label">用户ID:</label>
|
||||
<input type="text" class="input-sm" name="erbanNo" id="erbanNo" placeholder="">
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div class="row"></div>
|
||||
<div>
|
||||
<button class="btn btn-primary" id="searchBtn">查询</button>
|
||||
@@ -94,7 +90,27 @@ export default {
|
||||
|
||||
// 导出
|
||||
$('#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() {
|
||||
|
Reference in New Issue
Block a user