将行业热门话题洞察的需要修改成columns

This commit is contained in:
lq
2025-06-21 16:57:01 +08:00
29 changed files with 1312 additions and 150 deletions

View File

@ -12,7 +12,7 @@
</template>
</a-button>
<template #content>
<p>基于xxx获取数据xxx一段文字描述该数据的获取方式和来源等xxx</p>
<p style="margin: 0">基于该行业用户内容中提及频率较高的关键词按热度进行排序反映近期关注焦点</p>
</template>
</a-popover>
</a-space>
@ -92,7 +92,9 @@
</template>
</a-button>
<template #content>
<p>基于xxx获取数据xxx一段文字描述该数据的获取方式和来源等xxx</p>
<p style="margin: 0">
对该行业下用户内容进行情绪分析按情绪类别统计占比提取占比最高者作为行业情绪代表
</p>
</template>
</a-popover>
</a-space>
@ -153,7 +155,7 @@
</template>
</a-button>
<template #content>
<p>基于xxx获取数据xxx一段文字描述该数据的获取方式和来源等xxx</p>
<p style="margin: 0">指当前周期中首次出现或相较上一周期词频显著增长的关键词反映近期出现的新关注点</p>
</template>
</a-popover>
</a-space>
@ -306,6 +308,12 @@ const getIndustryEmotions = async () => {
industry_id: selectedIndustry.value,
time_dimension: selectedTimePeriod.value,
};
if (selectedIndustry.value == undefined) {
return;
}
if (selectedSubCategory.value == undefined) {
return;
}
if (selectedSubCategory.value != 0) {
params['industry_id'] = selectedSubCategory.value;
}
@ -356,6 +364,12 @@ const getKeywordTrendsList = async () => {
industry_id: selectedIndustry.value,
time_dimension: selectedTimePeriod.value,
};
if (selectedIndustry.value == undefined) {
return;
}
if (selectedSubCategory.value == undefined) {
return;
}
if (selectedSubCategory.value != 0) {
params['industry_id'] = selectedSubCategory.value;
}
@ -380,12 +394,20 @@ const getNewKeywordList = async () => {
industry_id: selectedIndustry.value,
time_dimension: selectedTimePeriod.value,
};
if (selectedSubCategory.value != 0) {
if (selectedIndustry.value == undefined) {
return;
}
if (selectedSubCategory.value == undefined) {
return;
}
if (selectedSubCategory.value != 0 && selectedSubCategory.value != undefined) {
params['industry_id'] = selectedSubCategory.value;
}
const res = await fetchNewKeywordList(params);
// 这里需要根据API返回的数据结构处理成tagRows需要的格式
keywordList.value = res;
if (res.code == 200) {
// 这里需要根据API返回的数据结构处理成tagRows需要的格式
keywordList.value = res.data;
}
};
const drawChart = () => {