修改提交

This commit is contained in:
曹辉 2023-05-04 16:14:33 +08:00
parent 8ca4a52e6a
commit 2f0cc75952
2 changed files with 13 additions and 7 deletions

View File

@ -123,7 +123,11 @@ export default {
this.uploadbtn = true; this.uploadbtn = true;
this.filedata.type = this.type; this.filedata.type = this.type;
this.items = this.item; this.items = this.item;
if (this.tovideo) { if (this.tovideo == null) {
this.video.VideoPath = null;
} else if (this.tovideo == "") {
this.video.VideoPath = null;
} else {
this.videoForm.showVideoPath = this.videoForm.showVideoPath =
process.env.VUE_APP_BASE_API + this.tovideo; process.env.VUE_APP_BASE_API + this.tovideo;
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo;
@ -134,10 +138,13 @@ export default {
tovideo: { tovideo: {
handler(newimg, oldimg) { handler(newimg, oldimg) {
this.uploadbtn = true; this.uploadbtn = true;
if (this.tovideo) { if (newimg == null) {
this.videoForm.showVideoPath = this.video.VideoPath = null;
process.env.VUE_APP_BASE_API + this.tovideo; } else if (newimg == "") {
this.video.VideoPath = process.env.VUE_APP_BASE_API + this.tovideo; this.video.VideoPath = null;
} else {
this.videoForm.showVideoPath = process.env.VUE_APP_BASE_API + newimg;
this.video.VideoPath = process.env.VUE_APP_BASE_API + newimg;
} }
} }
}, },

View File

@ -997,7 +997,6 @@ export default {
} }
this.form.trainingItemPrice = checkPlan; this.form.trainingItemPrice = checkPlan;
}, },
// //
addPictureUrl() { addPictureUrl() {
this.idd++; this.idd++;
@ -1035,8 +1034,8 @@ export default {
); );
} }
} }
console.log(this.form.trainingItemDirectoryList);
}, },
// //
itemDirectoryUrl(item) { itemDirectoryUrl(item) {
let items = JSON.parse(item); let items = JSON.parse(item);