diff --git a/src/views/kc/jiaoshi/index.vue b/src/views/kc/jiaoshi/index.vue index 368d29c..58489cb 100644 --- a/src/views/kc/jiaoshi/index.vue +++ b/src/views/kc/jiaoshi/index.vue @@ -166,7 +166,7 @@ enum Api { */ const list = (params) => defHttp.get({ url: Api.list, params }); const updateAllLive = (params) => defHttp.get({ url: Api.updateAllLive, params }); -const changeAvyLiveApi = (params) => defHttp.get({ url: Api.changeAvyLiveApi, params }); +const changeAvyLiveApi = (params) => defHttp.get({ url: Api.changeAvyLiveApi, params,timeout: 90000 }); const shangXianQuartz = ref({}); diff --git a/src/views/site/common/video/videojs/viewPage.vue b/src/views/site/common/video/videojs/viewPage.vue index bbfae7a..60cfb0f 100644 --- a/src/views/site/common/video/videojs/viewPage.vue +++ b/src/views/site/common/video/videojs/viewPage.vue @@ -120,7 +120,8 @@ enum Api { querySuibi = '/kc/kcKetangSuibi/list', addSuibi = '/kc/kcKetangSuibi/add', // editSuibi = '/kc/kcKetangSuibi/edit' - getKtangInfo = '/ktgl/kcKetangbiao/queryById' + getKtangInfo = '/ktgl/kcKetangbiao/queryById', + savePlayLog = '/jiaoshi/kcZhihuijiaoshiAccessLog/savePlayLog' } /** @@ -131,6 +132,7 @@ const list = (params) => defHttp.get({ url: Api.list, params }); const querySuibi = (params) => defHttp.get({ url: Api.querySuibi, params }); const addSuibi = (params) => defHttp.post({ url: Api.addSuibi, params }); const getKtangInfo = (params) => defHttp.get({ url: Api.getKtangInfo, params }); +const savePlayLog = (params) => defHttp.post({ url: Api.savePlayLog, params, }, { isTransformResponse: false }); // const editSuibi = (params) => defHttp.post({ url: Api.editSuibi, params }); onMounted(() => { @@ -142,12 +144,17 @@ onMounted(() => { tableData.value = list; tableData.value.forEach(x => x.isShow = true);//默认展开 nextTick(() => { - changeLive(tableData.value[0]); + if(tableData.value[0]){ + changeLive(tableData.value[0]); + } + savePlayLogFn(tableData.value[0]); tableData.value.forEach(x => x.isShow = false);//关闭 }) }); getSuibi(); getKcxx(); + //记录播放日志 + isError.value = true; }else{ isError.value = false; @@ -236,6 +243,9 @@ function getKcxx(){ kcCardBoxTitle.value = res.kcmc; }); } +function savePlayLogFn(item){ + savePlayLog({ playUrl: item.pullUrl, jxlId: item.jxlId, jxlName: item.jxlName, jsbh: route.query.id, jsmc: item.jsmc, ketangbiaoId: route.query.ktId,ketangbiaoName: ktangInfo.value.kcmc }) +} function saveSuibi(){ //addSuibi editSuibi