Karsa 5 månader sedan
förälder
incheckning
a638f446cd
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8 1
      src/views/report/List.vue

+ 8 - 1
src/views/report/List.vue

@@ -1,6 +1,7 @@
 <script setup>
 import {ref,onMounted, reactive, onActivated,computed} from 'vue'
 import moment from 'moment';
+import { ElMessage } from 'element-plus'
 import { apiSubClassifyList , apiReportList,apiReportClassifyMenuList } from '@/api/report'
 import Search from '@/components/Search.vue'
 import SelfList from '@/components/SelfList.vue'
@@ -153,7 +154,11 @@ const handlePlayAudio=(item)=>{
 
         let arr = [];
         if(item.video_url) {
-            arr = [item.video_url]
+            arr = [{
+                name: item.video_name,
+                url: item.video_url,
+                time: item.video_play_seconds
+            }]
         }else {
             arr=item.video_list.map(_item=>{
                 return {
@@ -169,6 +174,8 @@ const handlePlayAudio=(item)=>{
             reportId:item.report_id,
             index:0
         })
+    }else {
+        ElMessage.warning('暂无音频')
     }
 }