feat:完善舆情监测功能

This commit is contained in:
zjc
2024-12-26 13:46:27 +08:00
parent 50a6b06381
commit 809c950301
11 changed files with 192 additions and 139 deletions

View File

@@ -106,6 +106,7 @@ const instance = axios.create({
*/
instance.interceptors.request.use(
(config) => {
console.log(config, 'config')
// 规范写法 不可随意自定义
let urlParams = {}
if (config.params) {

View File

@@ -41,10 +41,11 @@ export function getHotWordApi() {
}
// 舆情指数
export function getLineChartApi() {
export function getLineChartApi(data) {
return request({
url: '/api/largeScreen/gsdata/lineChart',
method: 'post'
method: 'get',
params: data
})
}
@@ -55,3 +56,11 @@ export function getAreaApi() {
method: 'post'
})
}
// 景区选择
export function getSpotApi() {
return request({
url: '/api/largeScreen/gsdata/spot',
method: 'post'
})
}