From 9abc13bd82b5da7ec7a468e00a0c4380066d15db Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期三, 23 七月 2025 17:33:22 +0800
Subject: [PATCH] 后台视频发布
---
manager/src/views/video/VideoList.vue | 20 +++++++++++++++++++-
1 files changed, 19 insertions(+), 1 deletions(-)
diff --git a/manager/src/views/video/VideoList.vue b/manager/src/views/video/VideoList.vue
index d493f41..345448c 100644
--- a/manager/src/views/video/VideoList.vue
+++ b/manager/src/views/video/VideoList.vue
@@ -483,7 +483,7 @@
endpoint: '',
searchGoods: '',
videoTagList: [],
- chooseTag: '',
+ chooseTag: [],
videoTag: '',
visible: false,
imgName: '',
@@ -723,6 +723,23 @@
this.uploadVideoForm.goodsList = this.uploadVideoForm.goodsList.filter(item => {
return item.goodsNum >0;
})
+ if (!this.uploadVideoForm.title) {
+ this.$Message.error('鏍囬涓嶈兘涓虹┖');
+ return;
+ }
+ //琛ㄥ崟鏍¢獙
+ if (this.uploadVideoForm.videoContentType==='video') {
+ if (!this.uploadVideoForm.videoFileKey){
+ this.$Message.error('瑙嗛涓嶈兘涓虹┖');
+ return;
+ }
+ }
+ if (this.uploadVideoForm.videoContentType==='img') {
+ if (this.uploadVideoForm.videoImgs<1){
+ this.$Message.error('鍥剧墖涓嶈兘涓虹┖');
+ return;
+ }
+ }
publish(this.uploadVideoForm).then(response => {
if (response.code == 200) {
this.$Message.success("瑙嗛鍙戝竷鎴愬姛");
@@ -867,6 +884,7 @@
openUploadVideo() {
this.upLoadVideoShow = true;
this.videoTagList = []
+ this.chooseTag = []
this.uploadVideoForm = {
id: '',
title: '',
--
Gitblit v1.8.0