From 2fd269af9df3653b058deee57bcd7a9f39ff28e7 Mon Sep 17 00:00:00 2001
From: peng <peng.com>
Date: 星期四, 24 七月 2025 14:19:31 +0800
Subject: [PATCH] 修改主页视频发布商品问题

---
 manager/src/views/video/VideoList.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/manager/src/views/video/VideoList.vue b/manager/src/views/video/VideoList.vue
index d493f41..049a6a7 100644
--- a/manager/src/views/video/VideoList.vue
+++ b/manager/src/views/video/VideoList.vue
@@ -202,8 +202,6 @@
                   :page-size-opts="[10, 20, 50]"
                   size="small"
                   show-total
-                  show-elevator
-                  show-sizer
                 ></Page>
               </FormItem>
             </Col>
@@ -483,7 +481,7 @@
       endpoint: '',
       searchGoods: '',
       videoTagList: [],
-      chooseTag: '',
+      chooseTag: [],
       videoTag: '',
       visible: false,
       imgName: '',
@@ -723,6 +721,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 +882,7 @@
     openUploadVideo() {
       this.upLoadVideoShow = true;
       this.videoTagList = []
+      this.chooseTag = []
       this.uploadVideoForm = {
         id: '',
         title: '',
@@ -1058,6 +1074,7 @@
     // 鑾峰彇鍒楄〃鏁版嵁
     getGoodsDataList() {
       let search = this.searchGoodsForm;
+      console.log('-------------------------->',this.searchGoodsForm)
       if (search.pageNumber > 0) {
         search.pageNumber = search.pageNumber - 1;
       }
@@ -1114,13 +1131,14 @@
     },
     // 鍒嗛〉 鏀瑰彉椤电爜
     goodsChangePage(v) {
-      this.searchForm.pageNumber = v;
+      console.log('-------------------------->鍒嗛〉',v);
+      this.searchGoodsForm.pageNumber = v;
       this.getGoodsDataList();
     },
     // 鍒嗛〉 鏀瑰彉椤垫暟
     goodsChangePageSize(v) {
-      this.searchForm.pageNumber = 1;
-      this.searchForm.pageSize = v;
+      this.searchGoodsForm.pageNumber = 1;
+      this.searchGoodsForm.pageSize = v;
       this.getGoodsDataList();
     },
   }

--
Gitblit v1.8.0