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