This commit is contained in:
曹辉 2023-04-06 14:03:20 +08:00
parent 35356544de
commit e57f675a9b

View File

@ -214,6 +214,7 @@
:file-list="fileList"
:on-change="handleChange"
:limit="5"
:before-remove="handleFileremove"
drag
>
<i class="el-icon-upload"></i>
@ -230,17 +231,18 @@
<!-- 查看视频 -->
<el-dialog title="查看" :visible.sync="lookvideoshow" width="1200px" append-to-body>
<div
v-for="(item,index) in lookvideolist"
:key="index"
style="display: inline-block;margin:0 30px 30px 0"
>
<div v-if="lookvideolist.length>0">
<video
v-for="(item,index) in lookvideolist"
:key="index"
:src="item"
style="width:350px;height:200px;display: inline-block;"
style="width:350px;height:200px;display: inline-block;margin:0 30px 30px 0"
controls="controls"
></video>
</div>
<div v-else>
<el-empty description="暂无视频"></el-empty>
</div>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="lookvideoshow = false"> </el-button>
</div>
@ -543,6 +545,10 @@ export default {
handleFileUploadProgress(event, file, fileList) {
this.upload.isUploading = true;
},
//
handleFileremove(file, fileList) {
this.fileList = this.fileList.filter(e => e != file);
},
//
handleFileSuccess(response, file, fileList) {
this.upload.isUploading = false;
@ -555,10 +561,12 @@ export default {
// "",
// { dangerouslyUseHTMLString: true }
// );
this.videourl.push(response.prescriptionVideoUrl);
},
//
submitFileForm() {
this.fileList.forEach(e => {
this.videourl.push(e.response.prescriptionVideoUrl);
});
var obj = {
motionPrescriptionId: this.upload.data.motionPrescriptionId,
prescriptionVideoUrlList: this.videourl