修改
This commit is contained in:
parent
e57f675a9b
commit
4465cc64f7
@ -44,7 +44,6 @@ export function delMotionPrescriptionLibrary(id) {
|
||||
}
|
||||
|
||||
//点击视频上传
|
||||
|
||||
export function getPrescriptionVideoInfo(id) {
|
||||
return request({
|
||||
url: `/system/motionPrescriptionLibrary/getPrescriptionVideoInfo?motionPrescriptionId=${id}`,
|
||||
@ -55,11 +54,19 @@ export function getPrescriptionVideoInfo(id) {
|
||||
|
||||
|
||||
//上传视频
|
||||
|
||||
export function confirmUploadVideo(data) {
|
||||
return request({
|
||||
url: `/system/motionPrescriptionLibrary/confirmUploadVideo`,
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//删除图
|
||||
export function deletePrescriptionVideo(prescriptionVideoUrl) {
|
||||
return request({
|
||||
url: `/system/motionPrescriptionLibrary/deletePrescriptionVideo?prescriptionVideoUrl=${prescriptionVideoUrl}`,
|
||||
method: 'post',
|
||||
})
|
||||
}
|
||||
@ -257,7 +257,8 @@ import {
|
||||
addMotionPrescriptionLibrary,
|
||||
updateMotionPrescriptionLibrary,
|
||||
getPrescriptionVideoInfo,
|
||||
confirmUploadVideo
|
||||
confirmUploadVideo,
|
||||
deletePrescriptionVideo
|
||||
} from "@/api/system/motionPrescriptionLibrary";
|
||||
import { getToken } from "@/utils/auth";
|
||||
import baseurl from "@/api/baseurl";
|
||||
@ -547,6 +548,9 @@ export default {
|
||||
},
|
||||
//删除文件
|
||||
handleFileremove(file, fileList) {
|
||||
deletePrescriptionVideo(file.response.prescriptionVideoUrl).then(res => {
|
||||
this.$modal.msgSuccess("删除视频成功");
|
||||
});
|
||||
this.fileList = this.fileList.filter(e => e != file);
|
||||
},
|
||||
// 文件上传成功处理
|
||||
|
||||
Loading…
Reference in New Issue
Block a user