|
@@ -140,52 +140,6 @@ function calculateLastWeek() {
|
|
|
const firstDay = lastDay.subtract(6, 'day'); // 一周前
|
|
|
return [firstDay.format('YYYY-MM-DD'), lastDay.format('YYYY-MM-DD')];
|
|
|
}
|
|
|
-
|
|
|
-// async function handleDownload() {
|
|
|
-// downloadLoading.value = true;
|
|
|
-// try {
|
|
|
-// const body = {
|
|
|
-// asin: asinInp.value,
|
|
|
-// date_start: date.value[0],
|
|
|
-// date_end: date.value[1],
|
|
|
-// search_term: searchTermInp.value,
|
|
|
-// marketplace_Ids: marketplaceSelect.value,
|
|
|
-// report_type: reportTypeSelect.value,
|
|
|
-// };
|
|
|
-//
|
|
|
-// const response = await postDownload(body);
|
|
|
-//
|
|
|
-// const blob = new Blob([response.data], { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
|
|
|
-//
|
|
|
-// // 创建一个临时 URL
|
|
|
-// const url = window.URL.createObjectURL(blob);
|
|
|
-//
|
|
|
-// // 创建一个临时的 <a> 元素并触发下载
|
|
|
-// const link = document.createElement('a');
|
|
|
-// link.href = url;
|
|
|
-//
|
|
|
-// // 设置文件名
|
|
|
-// const currentTime = dayjs().format('YYYY-MM-DD_HH_mm_ss');
|
|
|
-// const filename = `TopSearchTerm_${currentTime}.xlsx`;
|
|
|
-//
|
|
|
-// link.setAttribute('download', filename);
|
|
|
-//
|
|
|
-// // 添加到 body, 触发点击, 然后移除
|
|
|
-// document.body.appendChild(link);
|
|
|
-// link.click();
|
|
|
-// document.body.removeChild(link);
|
|
|
-//
|
|
|
-// // 释放 URL 对象
|
|
|
-// window.URL.revokeObjectURL(url);
|
|
|
-//
|
|
|
-// ElMessage.success('文件下载成功');
|
|
|
-// } catch (error) {
|
|
|
-// console.error('==Error==:', error);
|
|
|
-// ElMessage.error('文件下载失败,请重试');
|
|
|
-// } finally {
|
|
|
-// downloadLoading.value = false;
|
|
|
-// }
|
|
|
-// }
|
|
|
</script>
|
|
|
|
|
|
<template>
|
|
@@ -256,7 +210,7 @@ function calculateLastWeek() {
|
|
|
<template v-for="col in brandColumns" #[`${col.field}_default`]="{ row }">
|
|
|
<div v-if="col.field === 'clickedItemName'">
|
|
|
<el-tooltip effect="dark" :content="row.clickedItemName" placement="top" :show-after="300" >
|
|
|
- <div class="line-text font-medium">
|
|
|
+ <div class="line-text">
|
|
|
{{ row.clickedItemName }}
|
|
|
</div>
|
|
|
</el-tooltip>
|