diff --git a/src/api/system/motionPrescriptionLibrary.js b/src/api/system/motionPrescriptionLibrary.js index 6279bfb..db307cc 100644 --- a/src/api/system/motionPrescriptionLibrary.js +++ b/src/api/system/motionPrescriptionLibrary.js @@ -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', + }) } \ No newline at end of file diff --git a/src/views/system/motionPrescriptionLibrary/index.vue b/src/views/system/motionPrescriptionLibrary/index.vue index 1a2b01b..db760bb 100644 --- a/src/views/system/motionPrescriptionLibrary/index.vue +++ b/src/views/system/motionPrescriptionLibrary/index.vue @@ -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); }, // 文件上传成功处理