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