From f512caa81dd4b1c045cb56efe53d53bc281393a3 Mon Sep 17 00:00:00 2001 From: paulGao Date: Wed, 21 Jul 2021 08:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=88=86=E8=AF=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- manager/src/api/index.js | 21 ++ manager/src/views/customWords/index.vue | 323 ++++++++++++++++++++++++ 2 files changed, 344 insertions(+) create mode 100644 manager/src/views/customWords/index.vue diff --git a/manager/src/api/index.js b/manager/src/api/index.js index da5eb871..c07340ad 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -417,3 +417,24 @@ export const resetPassword = (params) => { export const createIndex = () => { return getRequest(`/elasticsearch`); }; + +// 分页查询自定义分词 +export const getCustomWordsPage = (params) => { + return getRequest(`/manager/custom-words`, params); +}; + +// 添加自定义分词 +export const insertCustomWords = (params) => { + return postRequest(`/manager/custom-words`, params); +}; + +// 修改自定义分词 +export const updateCustomWords = (params) => { + return putRequest(`/manager/custom-words`, params); +}; + +// 删除自定义分词 +export const delCustom = (id) => { + return deleteRequest(`/manager/custom-words/${id}`); +}; + diff --git a/manager/src/views/customWords/index.vue b/manager/src/views/customWords/index.vue new file mode 100644 index 00000000..5638fb08 --- /dev/null +++ b/manager/src/views/customWords/index.vue @@ -0,0 +1,323 @@ + + +