From 9b14cd633e7826f08997b853dcf9852d7e78db6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?lemon=E6=A9=AA?= <17633066053@163.com> Date: Mon, 25 Apr 2022 09:18:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E8=AF=8D=E9=83=A8=E5=88=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/index.js | 11 +- manager/src/store/modules/app.js | 1 + .../views/page/article-manage/hotWords.vue | 185 +++++------------- .../template/historyHotWords.vue | 0 .../article-manage/template/setupHotWords.vue | 135 +++++++++++++ .../template/statisticsHotWords.vue | 130 ++++++++++++ .../article-manage/template/todayHotWords.vue | 162 +++++++++++++++ 7 files changed, 488 insertions(+), 136 deletions(-) create mode 100644 manager/src/views/page/article-manage/template/historyHotWords.vue create mode 100644 manager/src/views/page/article-manage/template/setupHotWords.vue create mode 100644 manager/src/views/page/article-manage/template/statisticsHotWords.vue create mode 100644 manager/src/views/page/article-manage/template/todayHotWords.vue 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 @@ + + + + +