2023年10月15日 修改后台直播页面

This commit is contained in:
bai 2023-10-15 15:07:47 +08:00
parent a3ad006606
commit 797b29d136
2 changed files with 17 additions and 1 deletions

View File

@ -164,6 +164,14 @@ const site: AppRouteModule = {
title: '直播课堂',
}
},
{
path: 'liveRoom2',
name: 'studentLive3u8BroadcastRoom2',
component: () => import('/@/views/site/common/video/videojs/viewPage2.vue'),
meta: {
title: '直播课堂',
}
},
],

View File

@ -88,7 +88,8 @@
</a-table-column>
<a-table-column width="200px" title="操作" data-index="action">
<template #default="{ record }">
<a @click="ylLive(record)">预览</a> |
<a @click="ylLiveNew(record)" >预览 |</a>
<a @click="ylLive(record)" hidden>预览 |</a>
<a v-if="!record?.child['教师全景']?.isOnLine" @click="changeLive(record,true)">开启推流 |</a>
<a v-else @click="changeLive(record,false)">关闭推流 |</a>
<a v-if="record.sfyx == 1" @click="changeKt(record,true)">课堂上线</a>
@ -112,6 +113,7 @@ import showAllLive from './showAllLive.vue';
import { execAvyApi, getAvyCtrlLiveOpenOrCloseUrl } from "/@/views/site/utils/index";
import { JInput } from '/@/components/Form';
import { resumeJob, pauseJob } from '/@/views/monitor/quartz/quartz.api';
import { useRouter } from 'vue-router';
// const _document:any = window.document;
@ -126,6 +128,7 @@ const showAllLiveKey:Ref<string> = ref('showAllLiveKey');
const isShowAllLive:Ref<boolean> = ref(false);
const loading:Ref<boolean> = ref(false);
const { createMessage, createInfoModal } = useMessage();
const route = useRouter();
const queryParam:Ref<any> = ref({});
onMounted(() => {
@ -257,6 +260,11 @@ function ylLive(record){
})
}
function ylLiveNew(record) {
let routeData = route.resolve({ path:'/site/liveRoom2',query:{ id: record.jsbh } });
window.open(routeData.href, '_blank');
}
function changeLive(record, isEnable){
console.log('createInfoModal ->',createInfoModal);
loading.value = true;