Merge branch 'master' of http://61.139.16.27:26684/maojiacai/ba_web
This commit is contained in:
@ -43,7 +43,9 @@
|
||||
import { ref, reactive, watch, onMounted, onBeforeUnmount, nextTick, computed } from "vue";
|
||||
import { ElMessage } from "element-plus";
|
||||
import { Loading } from '@element-plus/icons-vue';
|
||||
import {downFiles} from '@/api/instructCenter'
|
||||
import { downVideoFiles } from '@/api/instructCenter'
|
||||
import { qcckPost , qcckGet} from "@/api/qcckApi.js";
|
||||
// https://lam.clcud.com:1443/bagl/mosty-base/AppUserConfig/image/url/f1c7dd25d0fe45079b49de5ec4637923
|
||||
// 定义组件属性
|
||||
const props = defineProps({
|
||||
modelValue: {
|
||||
@ -80,8 +82,8 @@ const url=ref('')
|
||||
const getVideoSrc = () => {
|
||||
// 确保listQuery.fjid是字符串类型
|
||||
const fjid = JSON.parse(props.listQuery.fjid)?.map(item => item.id).join(',') || '';
|
||||
downFiles(fjid).then(res => {
|
||||
url.value=res.url
|
||||
downVideoFiles(fjid).then(res => {
|
||||
url.value=res
|
||||
});
|
||||
}
|
||||
// 监听对话框显示状态
|
||||
@ -128,7 +130,7 @@ const destroyPlayer = () => {
|
||||
console.log('播放器已销毁');
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('销毁播放器失败:', error);
|
||||
// console.error('销毁播放器失败:', error);
|
||||
}
|
||||
};
|
||||
|
||||
@ -160,7 +162,6 @@ const handleVideoError = (event) => {
|
||||
console.error('视频加载错误:', event.target.error);
|
||||
errorMessage.value = `视频加载失败: ${getErrorMessage(event.target.error.code)}`;
|
||||
loading.value = false;
|
||||
ElMessage.error('视频加载失败,请检查网络或视频链接');
|
||||
};
|
||||
|
||||
// 视频卡顿处理
|
||||
|
||||
@ -157,12 +157,12 @@ const changeSize = (val) => {
|
||||
// 获取列表
|
||||
const getList = () => {
|
||||
pageData.tableConfiger.loading = true;
|
||||
|
||||
|
||||
const promes = {
|
||||
...pageData.pageConfiger,
|
||||
...queryFrom.value,
|
||||
ssbakk:userInfo.pxgs,
|
||||
ssbakkId:userInfo.pxgsid
|
||||
ssbakkId:userInfo.pxgsid
|
||||
}
|
||||
qcckPost(promes,'/mosty-base/bans/njxx/page').then(res => {
|
||||
pageData.tableData = res.records || [];
|
||||
|
||||
Reference in New Issue
Block a user