fix: BUG修改

This commit is contained in:
kun 2023-06-21 16:20:57 +08:00
parent df350343d4
commit 8de65f0974

View File

@ -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(