| | |
| | | data: data |
| | | }) |
| | | } |
| | | |
| | | // 重新构建es索引 |
| | | export const recreateIndex = () => { |
| | | return service({ |
| | | url: "/lmk/video/recreate/es/index", |
| | | method: "POST" |
| | | }) |
| | | } |
| | |
| | | > |
| | | </Form> |
| | | |
| | | <Row class="operation padding-row"> |
| | | <Button @click="recreateEsIndex" type="primary">重新构建es索引</Button> |
| | | </Row> |
| | | |
| | | <Modal |
| | | v-model="playVideoShow" |
| | | :title="playVideoTitle" |
| | |
| | | </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' |
| | |
| | | this.getTags('') |
| | | }, |
| | | methods: { |
| | | recreateEsIndex() { |
| | | recreateIndex().then(res => { |
| | | this.$Message.success(res.msg) |
| | | }) |
| | | }, |
| | | // 秒转x分x秒 |
| | | formatSeconds(seconds) { |
| | | if (isNaN(seconds) || seconds < 0) return '0秒'; |