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 1/4] =?UTF-8?q?=E7=83=AD=E8=AF=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E4=BB=A3=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 @@ + + + + + From 8d9a64d84b69deb924bb0c6dabab5a6979d3044f Mon Sep 17 00:00:00 2001 From: Chopper Date: Mon, 25 Apr 2022 18:08:29 +0800 Subject: [PATCH 2/4] =?UTF-8?q?=E7=83=AD=E8=AF=8D=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../page/article-manage/HOTWORDS_HISTORY.vue | 157 ++++++++++++++++++ .../page/article-manage/HOTWORDS_TODAY.vue | 157 ++++++++++++++++++ .../page/article-manage/HOTWORD_SETTING.vue | 145 ++++++++++++++++ 3 files changed, 459 insertions(+) create mode 100644 manager/src/views/page/article-manage/HOTWORDS_HISTORY.vue create mode 100644 manager/src/views/page/article-manage/HOTWORDS_TODAY.vue create mode 100644 manager/src/views/page/article-manage/HOTWORD_SETTING.vue diff --git a/manager/src/views/page/article-manage/HOTWORDS_HISTORY.vue b/manager/src/views/page/article-manage/HOTWORDS_HISTORY.vue new file mode 100644 index 00000000..c9fd2aaf --- /dev/null +++ b/manager/src/views/page/article-manage/HOTWORDS_HISTORY.vue @@ -0,0 +1,157 @@ + + + + + diff --git a/manager/src/views/page/article-manage/HOTWORDS_TODAY.vue b/manager/src/views/page/article-manage/HOTWORDS_TODAY.vue new file mode 100644 index 00000000..c9fd2aaf --- /dev/null +++ b/manager/src/views/page/article-manage/HOTWORDS_TODAY.vue @@ -0,0 +1,157 @@ + + + + + diff --git a/manager/src/views/page/article-manage/HOTWORD_SETTING.vue b/manager/src/views/page/article-manage/HOTWORD_SETTING.vue new file mode 100644 index 00000000..b58ff304 --- /dev/null +++ b/manager/src/views/page/article-manage/HOTWORD_SETTING.vue @@ -0,0 +1,145 @@ + + + + + From 9e34b4416546e0cc4b60a9bef40a8bb78fdfea92 Mon Sep 17 00:00:00 2001 From: Chopper Date: Mon, 25 Apr 2022 18:09:49 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E7=83=AD=E8=AF=8D=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/public/config.js | 8 +- manager/src/api/index.js | 5 + .../src/views/page/article-manage/style.scss | 22 +++ .../src/views/page/article-manage/template.js | 8 ++ .../template/historyHotWords.vue | 108 ++++++++++++++ .../article-manage/template/setupHotWords.vue | 2 +- .../template/statisticsHotWords.vue | 132 +++++++----------- 7 files changed, 198 insertions(+), 87 deletions(-) create mode 100644 manager/src/views/page/article-manage/style.scss create mode 100644 manager/src/views/page/article-manage/template.js diff --git a/manager/public/config.js b/manager/public/config.js index ada826fc..048f3158 100644 --- a/manager/public/config.js +++ b/manager/public/config.js @@ -3,10 +3,10 @@ var BASE = { * @description api请求基础路径 */ API_DEV: { - common: "https://common-api.pickmall.cn", - buyer: "https://buyer-api.pickmall.cn", - seller: "https://store-api.pickmall.cn", - manager: "https://admin-api.pickmall.cn" + seller: "http://127.0.0.1:8889", + manager: "http://127.0.0.1:8887", + buyer: "http://127.0.0.1:8888", + common: "http://127.0.0.1:8890", }, API_PROD: { common: "https://common-api.pickmall.cn", diff --git a/manager/src/api/index.js b/manager/src/api/index.js index 776f3f74..709bec3a 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -453,4 +453,9 @@ export const getHotWordsStatistics = (params) => { return getRequest(`/hotwords/hotwords/statistics`,params); }; +// 获取历史热词 +export const getHotWordsHistory = (params) => { + return getRequest(`/hotwords/hotwords/history`,params); +}; + diff --git a/manager/src/views/page/article-manage/style.scss b/manager/src/views/page/article-manage/style.scss new file mode 100644 index 00000000..9994b8af --- /dev/null +++ b/manager/src/views/page/article-manage/style.scss @@ -0,0 +1,22 @@ +/deep/ .ivu-input{ + width: 200px !important; +} + +.label-btns{ + margin-left: 150px; +} + +.ivu-form-item{ + padding: 10px 0; +} + + +.ivu-input-wrapper { + width: 150px; + margin-right: 10px; +} + +/deep/ .ivu-form-item-content { + margin-left: 0 !important; + display: flex; +} diff --git a/manager/src/views/page/article-manage/template.js b/manager/src/views/page/article-manage/template.js new file mode 100644 index 00000000..9b1b1084 --- /dev/null +++ b/manager/src/views/page/article-manage/template.js @@ -0,0 +1,8 @@ +import HOTWORD_SETTING from "./HOTWORD_SETTING"; +import HOTWORDS_HISTORY from "./HOTWORDS_HISTORY"; +import HOTWORDS_TODAY from "./HOTWORDS_TODAY"; +export default { + HOTWORD_SETTING, + HOTWORDS_TODAY, + HOTWORDS_HISTORY +}; diff --git a/manager/src/views/page/article-manage/template/historyHotWords.vue b/manager/src/views/page/article-manage/template/historyHotWords.vue index e69de29b..09377c32 100644 --- a/manager/src/views/page/article-manage/template/historyHotWords.vue +++ b/manager/src/views/page/article-manage/template/historyHotWords.vue @@ -0,0 +1,108 @@ + + + + + + diff --git a/manager/src/views/page/article-manage/template/setupHotWords.vue b/manager/src/views/page/article-manage/template/setupHotWords.vue index 27f4af38..5bf45610 100644 --- a/manager/src/views/page/article-manage/template/setupHotWords.vue +++ b/manager/src/views/page/article-manage/template/setupHotWords.vue @@ -29,7 +29,7 @@ - + diff --git a/manager/src/views/page/article-manage/template/statisticsHotWords.vue b/manager/src/views/page/article-manage/template/statisticsHotWords.vue index dd8afb5e..b78431a5 100644 --- a/manager/src/views/page/article-manage/template/statisticsHotWords.vue +++ b/manager/src/views/page/article-manage/template/statisticsHotWords.vue @@ -3,24 +3,25 @@
- - - + + + +
-
请输入关键词进行查询
-
+
From 5bd66b9ec612d82a44a22c6cbc4d65c77ce0ab23 Mon Sep 17 00:00:00 2001 From: Chopper Date: Mon, 25 Apr 2022 18:16:06 +0800 Subject: [PATCH 4/4] =?UTF-8?q?=E8=BF=98=E5=8E=9F=E6=8E=A5=E5=8F=A3api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/public/config.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/manager/public/config.js b/manager/public/config.js index 048f3158..ada826fc 100644 --- a/manager/public/config.js +++ b/manager/public/config.js @@ -3,10 +3,10 @@ var BASE = { * @description api请求基础路径 */ API_DEV: { - seller: "http://127.0.0.1:8889", - manager: "http://127.0.0.1:8887", - buyer: "http://127.0.0.1:8888", - common: "http://127.0.0.1:8890", + common: "https://common-api.pickmall.cn", + buyer: "https://buyer-api.pickmall.cn", + seller: "https://store-api.pickmall.cn", + manager: "https://admin-api.pickmall.cn" }, API_PROD: { common: "https://common-api.pickmall.cn",