fix: BUG修改
This commit is contained in:
parent
df350343d4
commit
8de65f0974
@ -52,7 +52,8 @@
|
|||||||
<div class="imgPage">
|
<div class="imgPage">
|
||||||
<div class="imgTable" v-if="videoData.records.length">
|
<div class="imgTable" v-if="videoData.records.length">
|
||||||
<div class="img_item" v-for="item in videoData.records" :key="item.id">
|
<div class="img_item" v-for="item in videoData.records" :key="item.id">
|
||||||
<el-image style="width: 100%; height: 182px" :src="item.videoUrl" fit="fill" />
|
<!-- <el-image style="width: 100%; height: 182px" :src="item.videoUrl" fit="fill" /> -->
|
||||||
|
<video style="width: 100%; height: 182px; object-fit: fill" controls :src="item.videoUrl"></video>
|
||||||
<div class="page_text flx-justify-column">
|
<div class="page_text flx-justify-column">
|
||||||
<div class="img_title">
|
<div class="img_title">
|
||||||
<span>{{ item.title }}</span>
|
<span>{{ item.title }}</span>
|
||||||
@ -117,6 +118,7 @@
|
|||||||
multiple
|
multiple
|
||||||
:limit="1"
|
:limit="1"
|
||||||
:on-success="uploadSuccess"
|
:on-success="uploadSuccess"
|
||||||
|
:before-upload="beforeUpload"
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
>
|
>
|
||||||
<el-button class="uploadBtn" type="primary">点击上传</el-button>
|
<el-button class="uploadBtn" type="primary">点击上传</el-button>
|
||||||
@ -234,6 +236,15 @@ const searchSn = ref("");
|
|||||||
|
|
||||||
// 项目或者工程名字
|
// 项目或者工程名字
|
||||||
const searchName = ref<string>("");
|
const searchName = ref<string>("");
|
||||||
|
// 文件上传之前的钩子函数
|
||||||
|
const beforeUpload = file => {
|
||||||
|
console.log(file);
|
||||||
|
const type = file.type;
|
||||||
|
if (type != "video/mp4") {
|
||||||
|
ElMessage.error("请上传视频文件");
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
};
|
||||||
// 页面的项目名称和工程名称的div点击事件
|
// 页面的项目名称和工程名称的div点击事件
|
||||||
const onSearch = async (params: ResAiProjectPage | ResAiEngineerPage) => {
|
const onSearch = async (params: ResAiProjectPage | ResAiEngineerPage) => {
|
||||||
const { result } = await getAIQuestionPage(
|
const { result } = await getAIQuestionPage(
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user