peng
2025-07-23 9abc13bd82b5da7ec7a468e00a0c4380066d15db
后台视频发布
1个文件已修改
20 ■■■■■ 已修改文件
manager/src/views/video/VideoList.vue 20 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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: '',