From 4e421338cfa4e03b0d869798b30b8ff8ea6eb359 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期二, 01 七月 2025 18:01:06 +0800
Subject: [PATCH] 视频重构es索引按钮
---
manager/src/views/video/VideoList.vue | 11 ++++++++++-
manager/src/api/video.js | 8 ++++++++
2 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/manager/src/api/video.js b/manager/src/api/video.js
index 42693bf..dd4dff0 100644
--- a/manager/src/api/video.js
+++ b/manager/src/api/video.js
@@ -94,3 +94,11 @@
data: data
})
}
+
+// 閲嶆柊鏋勫缓es绱㈠紩
+export const recreateIndex = () => {
+ return service({
+ url: "/lmk/video/recreate/es/index",
+ method: "POST"
+ })
+}
diff --git a/manager/src/views/video/VideoList.vue b/manager/src/views/video/VideoList.vue
index ad09c4c..e8c0227 100644
--- a/manager/src/views/video/VideoList.vue
+++ b/manager/src/views/video/VideoList.vue
@@ -55,6 +55,10 @@
>
</Form>
+ <Row class="operation padding-row">
+ <Button @click="recreateEsIndex" type="primary">閲嶆柊鏋勫缓es绱㈠紩</Button>
+ </Row>
+
<Modal
v-model="playVideoShow"
:title="playVideoTitle"
@@ -223,7 +227,7 @@
</template>
<script>
-import {getVideos, recommendSet, getVideoById, auditingVideo, up, down} from "@/api/video";
+import {getVideos, recommendSet, getVideoById, auditingVideo, up, down, recreateIndex} from "@/api/video";
import {getVideoTagList} from "@/api/videoTag";
import {getFilePreview} from "@/api/file";
import Editor from '@/components/editor/index.vue'
@@ -398,6 +402,11 @@
this.getTags('')
},
methods: {
+ recreateEsIndex() {
+ recreateIndex().then(res => {
+ this.$Message.success(res.msg)
+ })
+ },
// 绉掕浆x鍒唜绉�
formatSeconds(seconds) {
if (isNaN(seconds) || seconds < 0) return '0绉�';
--
Gitblit v1.8.0