peng
2025-07-24 2fd269af9df3653b058deee57bcd7a9f39ff28e7
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();
    },
  }