From 4465cc64f72a6b5d7416c05a7a29ef53295b4eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B9=E8=BE=89?= <814457906@qq.com> Date: Thu, 6 Apr 2023 14:36:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/system/motionPrescriptionLibrary.js | 11 +++++++++-- src/views/system/motionPrescriptionLibrary/index.vue | 6 +++++- 2 files changed, 14 insertions(+), 3 deletions(-) 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); }, // 文件上传成功处理