修改
This commit is contained in:
parent
4465cc64f7
commit
d962fe78c7
@ -69,4 +69,13 @@ export function deletePrescriptionVideo(prescriptionVideoUrl) {
|
|||||||
url: `/system/motionPrescriptionLibrary/deletePrescriptionVideo?prescriptionVideoUrl=${prescriptionVideoUrl}`,
|
url: `/system/motionPrescriptionLibrary/deletePrescriptionVideo?prescriptionVideoUrl=${prescriptionVideoUrl}`,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//获得图列表
|
||||||
|
export function prescriptionVideoUpload(id) {
|
||||||
|
return request({
|
||||||
|
url: `/system/motionPrescriptionLibrary/prescriptionVideoUpload?id=${id}`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
}
|
}
|
||||||
@ -213,7 +213,6 @@
|
|||||||
:data="upload.data"
|
:data="upload.data"
|
||||||
:file-list="fileList"
|
:file-list="fileList"
|
||||||
:on-change="handleChange"
|
:on-change="handleChange"
|
||||||
:limit="5"
|
|
||||||
:before-remove="handleFileremove"
|
:before-remove="handleFileremove"
|
||||||
drag
|
drag
|
||||||
>
|
>
|
||||||
@ -258,7 +257,8 @@ import {
|
|||||||
updateMotionPrescriptionLibrary,
|
updateMotionPrescriptionLibrary,
|
||||||
getPrescriptionVideoInfo,
|
getPrescriptionVideoInfo,
|
||||||
confirmUploadVideo,
|
confirmUploadVideo,
|
||||||
deletePrescriptionVideo
|
deletePrescriptionVideo,
|
||||||
|
prescriptionVideoUpload
|
||||||
} from "@/api/system/motionPrescriptionLibrary";
|
} from "@/api/system/motionPrescriptionLibrary";
|
||||||
import { getToken } from "@/utils/auth";
|
import { getToken } from "@/utils/auth";
|
||||||
import baseurl from "@/api/baseurl";
|
import baseurl from "@/api/baseurl";
|
||||||
@ -535,15 +535,28 @@ export default {
|
|||||||
},
|
},
|
||||||
//打开视频上传窗口
|
//打开视频上传窗口
|
||||||
uploadopentrue(e) {
|
uploadopentrue(e) {
|
||||||
this.upload.data.motionPrescriptionId = e.id;
|
|
||||||
this.upload.open = true;
|
|
||||||
this.videourl = [];
|
this.videourl = [];
|
||||||
this.fileList = [];
|
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) {},
|
handleChange(file, fileList) {},
|
||||||
// 文件上传中处理
|
// 文件上传中处理
|
||||||
handleFileUploadProgress(event, file, fileList) {
|
handleFileUploadProgress(event, file, fileList) {
|
||||||
|
console.log(fileList);
|
||||||
this.upload.isUploading = true;
|
this.upload.isUploading = true;
|
||||||
},
|
},
|
||||||
//删除文件
|
//删除文件
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user