From b0e40873b6f6ee737276217dc1a8ce274af4ad29 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期三, 02 七月 2025 18:58:01 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 manager/src/views/video/VideoList.vue |   17 +++++++++++++----
 1 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/manager/src/views/video/VideoList.vue b/manager/src/views/video/VideoList.vue
index f017ac9..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"
@@ -186,7 +190,7 @@
           </div>
         </template>
         <template slot-scope="{ row, index }" slot="videoFileKey">
-          <div class="play-text" @click="playVideo(row.videoFileKey, row.title)">鐐瑰嚮鎾斁</div>
+          <div v-if="row.videoContentType === 'video'" class="play-text" @click="playVideo(row.videoFileKey, row.title)">鐐瑰嚮鎾斁</div>
         </template>
         <template slot-scope="{ row, index }" slot="videoDuration">
           <div>{{formatSeconds(row.videoDuration)}}</div>
@@ -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'
@@ -370,7 +374,7 @@
         {
           title: "鏉冮噸",
           key: "weight",
-          width: 170,
+          width: 80,
         },
         {
           title: "鐘舵��",
@@ -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绉�';
@@ -613,7 +622,7 @@
 }
 .video-warp {
   width: 100%;
-  height: 350px;
+  height: 440px;
 }
 .data-item {
   display: flex;

--
Gitblit v1.8.0