This commit is contained in:
曹辉 2023-04-07 11:10:39 +08:00
parent 4465cc64f7
commit d962fe78c7
2 changed files with 26 additions and 4 deletions

View File

@ -69,4 +69,13 @@ export function deletePrescriptionVideo(prescriptionVideoUrl) {
url: `/system/motionPrescriptionLibrary/deletePrescriptionVideo?prescriptionVideoUrl=${prescriptionVideoUrl}`,
method: 'post',
})
}
//获得图列表
export function prescriptionVideoUpload(id) {
return request({
url: `/system/motionPrescriptionLibrary/prescriptionVideoUpload?id=${id}`,
method: 'get',
})
}

View File

@ -213,7 +213,6 @@
:data="upload.data"
:file-list="fileList"
:on-change="handleChange"
:limit="5"
:before-remove="handleFileremove"
drag
>
@ -258,7 +257,8 @@ import {
updateMotionPrescriptionLibrary,
getPrescriptionVideoInfo,
confirmUploadVideo,
deletePrescriptionVideo
deletePrescriptionVideo,
prescriptionVideoUpload
} from "@/api/system/motionPrescriptionLibrary";
import { getToken } from "@/utils/auth";
import baseurl from "@/api/baseurl";
@ -535,15 +535,28 @@ export default {
},
//
uploadopentrue(e) {
this.upload.data.motionPrescriptionId = e.id;
this.upload.open = true;
this.videourl = [];
this.fileList = [];
this.upload.data.motionPrescriptionId = e.id;
prescriptionVideoUpload(e.id).then(res => {
res.data.prescriptionVideoUrlList.forEach(e => {
var arr = e.split("/");
var obj = {
name: arr[4],
response: {
prescriptionVideoUrl: e
}
};
this.fileList.push(obj);
});
this.upload.open = true;
});
},
//
handleChange(file, fileList) {},
//
handleFileUploadProgress(event, file, fileList) {
console.log(fileList);
this.upload.isUploading = true;
},
//