feat:对接工单模块接口

This commit is contained in:
zjc
2025-01-01 12:59:32 +08:00
parent d2c0db5270
commit 0742c6fa93
19 changed files with 616 additions and 772 deletions

View File

@@ -33,15 +33,15 @@
<script setup>
import primary from '@/assets/images/item-primary.png'
import error from '@/assets/images/item-error.png'
import { getVideoListApi } from '@/api/home'
import { getVideoListApi, postRefreshApi } from '@/api/home'
import Hls from 'hls.js'
let list = ref(2)
let list = ref([])
const getRefs = (el) => {
if (el) {
const hls = new Hls()
hls.loadSource('https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8')
hls.loadSource('http://36.138.38.16:6106/live/042f4987808b444aa96c1e8bc6e3ad2a/hls.m3u8')
hls.attachMedia(el)
hls.on(Hls.Events.MANIFEST_PARSED, () => {
el.play()
@@ -52,6 +52,7 @@
let res = await getVideoListApi({
businessVideoDisplayPosition: ''
})
list.value = res.data
}
onMounted(() => {
getVideoList()