diff --git a/manager/src/api/index.js b/manager/src/api/index.js index f87e4f8f..cb583bdd 100644 --- a/manager/src/api/index.js +++ b/manager/src/api/index.js @@ -445,6 +445,21 @@ export const getProgress = () => { return getRequest(`/other/elasticsearch/progress`); }; +// 删除ES中下架的商品 +export const deleteGoodsDown = () => { + return getRequest(`/other/elasticsearch/deleteGoodsDown`); +}; + +// 删除不存在的索引 +export const delSkuIndex = () => { + return getRequest(`/other/elasticsearch/delSkuIndex`); +}; + +// 生成所有商品的缓存 +export const generateGoodsCache = () => { + return getRequest(`/other/elasticsearch/cache`); +}; + // 分页查询自定义分词 export const getCustomWordsPage = (params) => { return getRequest(`/other/customWords/page`, params); diff --git a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue index c38a83a5..5f0ad9d6 100644 --- a/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue +++ b/manager/src/views/sys/setting-manage/setting/GOODS_SETTING.vue @@ -54,9 +54,14 @@ -
+
- +
+ + + + +
@@ -65,7 +70,7 @@