|
@@ -194,7 +194,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { downloadWithUrl } from '@/utils'
|
|
import { downloadWithUrl } from '@/utils'
|
|
-import { fetchRecordList } from '@/api/user/record/record'
|
|
|
|
|
|
+import { fetchRecordList, importExportToday } from '@/api/user/record/record'
|
|
import { fetchShopRelevanceList, searchBehaviorList } from '@/api/user/supplier/supplier'
|
|
import { fetchShopRelevanceList, searchBehaviorList } from '@/api/user/supplier/supplier'
|
|
import { export_json_to_excel } from '@/vendor/Export2Excel'
|
|
import { export_json_to_excel } from '@/vendor/Export2Excel'
|
|
|
|
|
|
@@ -388,7 +388,8 @@ export default {
|
|
async handleExport() {
|
|
async handleExport() {
|
|
if (this.tabsCurrent === 0) {
|
|
if (this.tabsCurrent === 0) {
|
|
// 导出今日数据
|
|
// 导出今日数据
|
|
- downloadWithUrl('sdadasda', '用户行为记录')
|
|
|
|
|
|
+ const res = await importExportToday(this.listQuery)
|
|
|
|
+ downloadWithUrl(res.data, '用户行为记录')
|
|
} else {
|
|
} else {
|
|
// 导出以往当前数据
|
|
// 导出以往当前数据
|
|
try {
|
|
try {
|