diff --git a/manager/src/api/index.js b/manager/src/api/index.js index 599600f4..776f3f74 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -439,11 +439,18 @@ export const setHotWords = (params) => { }; // 删除热搜词 -export const deleteHotWords = (words) => { - return deleteRequest(`/hotwords/hotwords/${words}`); +export const deleteHotWords = (params) => { + return deleteRequest(`/hotwords/hotwords`,params); }; // 获取热搜词 export const getHotWords = () => { return getRequest(`/hotwords/hotwords`); }; + +// 获取热词统计 +export const getHotWordsStatistics = (params) => { + return getRequest(`/hotwords/hotwords/statistics`,params); +}; + + diff --git a/manager/src/store/modules/app.js b/manager/src/store/modules/app.js index 71fc509c..03f81e98 100644 --- a/manager/src/store/modules/app.js +++ b/manager/src/store/modules/app.js @@ -21,6 +21,7 @@ const app = { path: '', name: 'home_index' }], + hotWords:[], //今日热词数据 // 面包屑数组 左侧菜单 menuList: [], tagsList: [...otherRouter.children], //这块是面包屑的内容不能删除 diff --git a/manager/src/views/page/article-manage/hotWords.vue b/manager/src/views/page/article-manage/hotWords.vue index 69f750ba..2753774b 100644 --- a/manager/src/views/page/article-manage/hotWords.vue +++ b/manager/src/views/page/article-manage/hotWords.vue @@ -1,154 +1,71 @@ - - \ No newline at end of file + diff --git a/manager/src/views/page/article-manage/template/historyHotWords.vue b/manager/src/views/page/article-manage/template/historyHotWords.vue new file mode 100644 index 00000000..e69de29b diff --git a/manager/src/views/page/article-manage/template/setupHotWords.vue b/manager/src/views/page/article-manage/template/setupHotWords.vue new file mode 100644 index 00000000..27f4af38 --- /dev/null +++ b/manager/src/views/page/article-manage/template/setupHotWords.vue @@ -0,0 +1,135 @@ + + + + diff --git a/manager/src/views/page/article-manage/template/statisticsHotWords.vue b/manager/src/views/page/article-manage/template/statisticsHotWords.vue new file mode 100644 index 00000000..dd8afb5e --- /dev/null +++ b/manager/src/views/page/article-manage/template/statisticsHotWords.vue @@ -0,0 +1,130 @@ + + + + + diff --git a/manager/src/views/page/article-manage/template/todayHotWords.vue b/manager/src/views/page/article-manage/template/todayHotWords.vue new file mode 100644 index 00000000..1f8802ab --- /dev/null +++ b/manager/src/views/page/article-manage/template/todayHotWords.vue @@ -0,0 +1,162 @@ + + + + +