修复导出
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import TableHelper from '@/utils/bootstrap-table-helper';
|
||||
import { cleanArray } from '@/utils/maintainer';
|
||||
|
||||
export default {
|
||||
name: "SeizeTreasureRecordAdminView",
|
||||
@@ -110,6 +110,14 @@ export default {
|
||||
poolGroupList: poolGroupList,
|
||||
poolLevelList: poolLevelList,
|
||||
};
|
||||
function param(json) {
|
||||
if (!json) return ''
|
||||
return cleanArray(Object.keys(json).map(key => {
|
||||
if (json[key] === undefined) return ''
|
||||
return encodeURIComponent(key) + '=' +
|
||||
encodeURIComponent(json[key])
|
||||
})).join('&')
|
||||
}
|
||||
window.location.href = `/admin/seize-treasure/treasure/record/export?${param(obj)}`;
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user